body { font-family: system-ui, sans-serif; margin: 0; padding: 12px; background: #1a1d23; color: #e8eaed; max-width: 640px; margin-inline: auto; }
h1 { font-size: 1.2rem; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
h3 { font-size: 1rem; margin: 12px 0 6px; color: #9aa0a6; }
input, select, textarea, button, a.btn { font-size: 16px; width: 100%; box-sizing: border-box; margin: 6px 0; padding: 10px; border-radius: 8px; border: 1px solid #444; background: #2b3038; color: inherit; }
button, a.btn { display: block; text-align: center; text-decoration: none; background: #3d6cb5; border: none; cursor: pointer; color: inherit; }
button.secondary, a.btn.secondary { background: #444; }
.card { background: #252930; border-radius: 10px; padding: 12px; margin: 10px 0; }
.search-hit { border-bottom: 1px solid #333; }
.search-hit .search-hit-body {
  width: 100%; text-align: left; background: transparent; border: none; border-radius: 0;
  color: inherit; cursor: pointer; display: block; padding: 10px; margin: 0; box-sizing: border-box;
}
.search-schedule-btn {
  display: block; width: calc(100% - 20px); margin: 0 10px 10px; padding: 10px;
  background: #3d6cb5; border: none; border-radius: 8px; color: inherit; font-size: 16px; cursor: pointer;
}
.planned-row { padding: 0; border-bottom: 1px solid #333; }
.planned-row .planned-toggle { width: 100%; text-align: left; background: transparent; border: none; color: inherit; padding: 10px; cursor: pointer; }
.planned-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
.planned-actions .btn, .planned-actions .secondary { margin: 0; }
.premise { padding: 10px; border-bottom: 1px solid #333; cursor: pointer; display: block; text-decoration: none; color: inherit; }
.premise.done { color: #7dcea0; }
.hidden { display: none; }
.err { color: #e74c3c; }
.ok { color: #7dcea0; }
label { font-size: 0.85rem; color: #aaa; display: block; margin-top: 8px; }
#search { position: sticky; top: 0; z-index: 2; }
.premise-meta { font-size: 1.05rem; font-weight: 600; }
.premise-sub { font-size: 0.8rem; color: #9aa0a6; margin-top: 2px; }
#searchStats { font-size: 0.85rem; color: #9aa0a6; margin: 4px 0 0; }
.hint { font-size: 0.8rem; color: #9aa0a6; margin: 8px 0; line-height: 1.35; }
.meter-group { border: 1px solid #3a4452; border-radius: 8px; padding: 10px; margin: 10px 0; background: #22262d; }
.meter-line { margin: 8px 0; padding-bottom: 8px; border-bottom: 1px dashed #3a3f47; }
.meter-line:last-of-type { border-bottom: none; }
.meter-control { margin-top: 8px; padding-top: 8px; border-top: 1px solid #4a5563; }
.meter-control-sum { background: #1e2430 !important; color: #7dcea0; font-weight: 600; }
.photo-ok { color: #7dcea0; font-size: 0.8rem; }
.photo-warn { color: #f5b041; font-size: 0.8rem; }
.resource-line { font-size: 0.9rem; color: #bbb; margin: 4px 0; }
#netBanner { font-size: 0.85rem; padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
#netBanner.online { background: #1e3a2f; color: #7dcea0; }
#netBanner.offline { background: #3d2a1e; color: #f5b041; }
#netBanner.syncing { background: #1e2a3a; color: #85c1e9; }
.photo-preview { max-width: 100%; max-height: 120px; border-radius: 6px; margin-top: 6px; display: block; }
.photo-remove { width: auto; margin: 4px 0 8px; padding: 6px 12px; font-size: 0.85rem; }
.top-nav { margin-bottom: 8px; }
.section-title { font-size: 0.95rem; color: #9aa0a6; margin: 0 0 8px; font-weight: 600; }
.sync-banner { font-size: 0.85rem; padding: 10px 12px; border-radius: 8px; margin: 0 0 10px; line-height: 1.4; }
.sync-banner.ok { background: #1e3a2f; color: #7dcea0; }
.sync-banner.pending { background: #3d2a1e; color: #f5b041; }
.sync-banner.empty { background: #2b3038; color: #9aa0a6; }
.sync-badge { font-size: 0.75rem; font-weight: 500; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: #333; color: #bbb; }
.premise.sync-ok .sync-badge { background: #1e3a2f; color: #7dcea0; }
.premise.sync-pending .sync-badge { background: #3d2a1e; color: #f5b041; }
.meter-verification { font-size: 0.8rem; color: #9aa0a6; margin: 2px 0 10px; line-height: 1.35; }
.meter-verification.expired { color: #f5b041; }
.meter-op-toggle { display: flex; gap: 8px; margin: 10px 0 6px; }
.meter-op-option {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: 8px;
  border: 1px solid #444; background: #2b3038; font-size: 0.9rem; cursor: pointer;
  position: relative;
}
.meter-op-option input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.meter-op-option:has(input:checked) { background: #2e4a6e; border-color: #3d6cb5; font-weight: 600; }
.meter-op-option.fault-opt:has(input:checked) { background: #5a3030; border-color: #c05050; }
.meter-fault-block { margin: 6px 0 10px; }
.meter-title { display: block; margin-bottom: 2px; }
.added-meter-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.added-meter-head .secondary { width: auto; margin: 0; padding: 8px 12px; font-size: 0.85rem; }
.added-meter-card { margin-top: 10px; }
#btnAddMeter, #btnAddBoiler { margin-top: 10px; }
.added-boiler-card { margin-top: 10px; }
