/* V7: compact inspector UI. Authentication and admin retain their own styles. */
.sheet {background:#fff; --border:#e1e7ed; --muted:#536473; --text:#172838; --accent:#0b6bcb}
.map-toolbar {--text:#172838;--accent:#0b6bcb}
.sheet .grip {background:#bac6cf}
.sheet-content {padding:4px 12px 24px}
.address-card {background:#f4f6f8;box-shadow:none;margin-bottom:8px;padding:12px;gap:9px}
.address-clear {min-width:44px;min-height:44px;background:#e5ebf1}
.house-progress {margin:0 4px 12px;color:#536473;font-size:12px;font-weight:650}
.house-progress progress {display:block;width:100%;height:7px;border:0;border-radius:5px;margin-top:6px;appearance:none;accent-color:#0b6bcb;overflow:hidden}
.house-progress progress::-webkit-progress-bar {background:#e1e7ed;border-radius:5px}
.house-progress progress::-webkit-progress-value {background:#0b6bcb;border-radius:5px}
.house-progress progress::-moz-progress-bar {background:#0b6bcb;border-radius:5px}
.collapsible {margin-bottom:8px;background:#f4f6f8;border:1px solid #e6ebef;box-shadow:none;border-radius:13px;overflow:hidden}
.collapsible summary {padding:11px 12px;min-height:60px;gap:10px}
.collapsible[open] {background:#fff}
.collapsible[open]>summary {background:#f4f6f8;border-bottom:1px solid #e6ebef}
.collapsible-icon {width:40px;height:40px;flex:none;border-radius:11px}
.collapsible-icon svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-gis {background:#ede9fe;color:#7c3aed}
.icon-odpu {background:#fff0d5;color:#b86b00}
.icon-apt {background:#dcfce7;color:#13803c}
.icon-commercial {background:#dbeafe;color:#2563eb}
.collapsible-title {font-size:15px;font-weight:700}
.collapsible-sub {font-size:12px;line-height:1.3;color:#536473}
.collapsible-body {padding:10px 9px 12px}
.kv-row {font-size:13px;gap:10px}
.kv-value {overflow-wrap:anywhere}
.apt-search {width:100%;height:44px;padding:0 12px;border:1px solid #cbd5df;border-radius:10px;background:#f4f6f8;color:#172838;font-size:16px}
.apt-filters {display:flex;gap:5px;margin:7px 0;flex-wrap:wrap}
.apt-filters button {flex:1;min-height:44px;border:1px solid #d9e1e8;background:#fff;border-radius:9px;color:#536473;padding:5px 6px;font-size:12px;font-weight:650;cursor:pointer}
.apt-filters button[aria-pressed=true] {background:#e6eef8;border-color:#9ec4e9;color:#0b4f9a}
.apt-cards,.obj-list {gap:0;margin:0}
.compact-meter {border-bottom:1px solid #e1e7ed;padding:3px 0 5px}
.compact-meter:last-child {border-bottom:0}
.compact-meter-row,.compact-meter-row.enter-btn {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) 12px;align-items:center;gap:7px;width:100%;min-width:0;min-height:62px;text-align:left;padding:9px 5px;border:0;border-radius:8px;background:#fff;color:#172838;font:inherit;cursor:pointer;transform:none}
.compact-meter-row:hover {background:#f4f6f8}
.compact-id {min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;line-height:1.3}
.compact-id strong {font-size:14px;font-weight:700}
.compact-id small {font-size:11px;color:#536473}
.compact-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;min-width:0}
.compact-pair .stat-label {font-size:10px;color:#536473;line-height:1.3;overflow-wrap:anywhere}
.compact-pair .stat-value {font-size:14px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;word-break:normal;font-variant-numeric:tabular-nums}
.compact-pair .stat-value:empty::before {content:'—';color:#8494a3}
.compact-pair .stat-value.strong {font-size:14px;color:#0b4f9a}
.compact-chevron {font-size:22px;color:#687989}
.photo-indicator {align-self:flex-start;font-size:10px;color:#0b4f9a;background:#e6eef8;border-radius:4px;padding:1px 5px}
.compact-details {margin:0 5px 2px}
.compact-details>summary {display:flex;min-height:44px;padding:3px 8px;color:#0b4f9a;font-size:12px;font-weight:650;cursor:pointer;border:0;background:transparent;justify-content:flex-end}
.compact-details>summary::after {content:'⌄';margin-left:5px}
.compact-details[open]>summary::after {content:'⌃'}
.compact-details[open] {background:#f4f6f8;border-radius:9px;padding:4px 8px 8px}
.compact-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.compact-actions .primary-small {min-height:44px;background:#e6eef8;color:#0b4f9a;border-radius:9px}
.meter-block {padding:12px;background:#f4f6f8;border-radius:12px;margin:0 0 9px}
.meter-block+.meter-block {border-top:0;padding:12px}
.meter-title {font-size:16px}
.meter-subtitle {font-size:12px;color:#536473;overflow-wrap:anywhere}
.meter-block .reading-row {background:white;padding:12px;border-radius:10px}
.meter-block .stat-value.strong {color:#0b4f9a}
.meter-block>.enter-btn {width:100%;margin-top:10px;background:#0b6bcb}
.meter-block .apt-more>summary {background:transparent;border:0;padding:6px 0;min-height:44px}
.entry {background:#fff;--accent:#0b6bcb;--border:#e1e7ed}
.entry-head {background:#fff}
.entry-back {background:#eef2f5}
.entry-prev {display:block;background:#f4f6f8;padding:16px}
.entry-prev-value {font-size:38px;color:#172838;margin-top:6px}
.entry-input {background:#fff;color:#172838;letter-spacing:0;text-align:left;border:2px solid #aebdc9;font-size:26px;min-height:56px}
.entry-input::placeholder {font-size:17px;color:#687989}
.entry-photo-btn {color:#0b4f9a;background:#f4f8fc;border-color:#9bafc2;min-height:124px}
.entry-save {background:#0b6bcb}
.entry-input[aria-invalid=true] {border-color:#b3261e}
@media(min-width:640px){
  .sheet {left:auto;right:16px;margin:0;top:76px;bottom:12px;height:auto;max-height:none;width:min(456px,48vw);max-width:none;transform:none!important}
  .sheet-handle {display:none}
  .sheet-header {cursor:default}
  .sheet-content {padding:8px 14px 24px}
  .compact-pair .stat-value,.compact-pair .stat-value.strong {font-size:16px}
}
@media(max-width:360px){.compact-meter-row,.compact-meter-row.enter-btn{gap:4px;padding-inline:3px}.compact-id strong{font-size:13px}.compact-pair .stat-value,.compact-pair .stat-value.strong{font-size:13px}.collapsible-body{padding-inline:6px}}
.bypass-badge {color:#a61b16;background:#fde8e7;border-left:4px solid #ca2924;padding:7px 9px;border-radius:6px;font-size:13px;font-weight:700;margin:6px 0}
.bypass-item {border-left:3px solid #ca2924;padding:6px 9px;margin:5px 0;overflow-wrap:anywhere;font-size:13px}
.field-location {padding:4px 8px;font-size:12px;color:#536473}
.field-location select {font-size:16px;max-width:100%;min-height:38px;border:1px solid #cbd5df;border-radius:8px;background:#fff;color:#172838;padding:4px}
#field-dialog {width:min(520px,92vw);max-height:85dvh;overflow:auto;border:0;border-radius:14px;padding:16px;color:#172838}
#field-dialog::backdrop {background:#17283888}
#field-dialog button {background:#e6eef8;color:#0b4f9a;border:0;border-radius:8px;padding:10px;margin:4px;min-height:44px}
#field-dialog button:disabled {opacity:.55}
#field-dialog input {width:100%;font-size:16px;padding:8px;border:1px solid #cbd5df;border-radius:8px}
#field-dialog img {display:block;max-width:100%;max-height:55vh;object-fit:contain}
#field-dialog video {width:100%;max-height:50vh;background:#111;object-fit:contain;border-radius:10px}
#field-dialog [hidden],#entry-location[hidden],#entry-prev-field[hidden],#entry-reading-field[hidden],#entry-object-gallery[hidden] {display:none!important}
#entry-object-gallery {margin-top:12px;min-height:44px}
.entry-location-options {display:flex;gap:8px;flex-wrap:wrap}
.entry-location-options label {flex:1;min-width:135px;display:flex;align-items:center;gap:6px;padding:12px;border:1px solid #cbd5df;border-radius:10px;font-size:14px;cursor:pointer}
.entry-location-options input {accent-color:#0b6bcb;width:18px;height:18px}
.entry-location-options label:has(input:checked) {background:#e6eef8;border-color:#0b6bcb}
#field-dialog p {overflow-wrap:anywhere}
@media(max-width:639px){
 .sheet.apt-keyboard {top:var(--apt-top,0px);bottom:auto;height:var(--apt-height,100dvh);max-height:var(--apt-height,100dvh);transform:none!important;transition:none!important;z-index:35;touch-action:pan-y}
 .sheet.apt-keyboard .sheet-content {overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain}
 .sheet.apt-keyboard #apt-search {position:sticky;top:0;z-index:2;background:#fff}
}
