:root {
  color-scheme: light;
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #f8fafb; --surface-3: #f1f4f6;
  --border: #e5e9ed; --border-strong: #d3dae0;
  --text: #1c2830; --text-2: #4f5e69; --text-3: #8794a0;
  --brand: #0b7a7e; --brand-600: #08676b; --brand-50: #ebf6f6; --brand-100: #d2ecec; --brand-ring: #0b7a7e33;
  --danger: #bf3f37; --danger-50: #fdf1f0; --danger-100: #f6d8d5;
  --warn: #a8650f; --warn-50: #fdf6e9;
  --age-fresh: #2f9e6d; --age-warn: #d4a20b; --age-alert: #e57620; --age-critical: #d6423d; --age-missing: #97a3ad;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px #1b2d3a12; --shadow: 0 6px 22px #1b2d3a17; --shadow-lg: 0 18px 56px #172c3a2b;
  font-family: var(--font); color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; font-size: 13px; line-height: 1.5; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
svg:not([class*="leaflet"]) { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconSprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
button:hover:not(:disabled) { background: var(--surface-2); border-color: #b8c3cc; color: var(--text); }
button:active:not(:disabled) { transform: translateY(.5px); }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
button.secondary { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }
button.secondary:hover:not(:disabled) { background: var(--brand-100); color: var(--brand-600); border-color: #b5dcdc; }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger:hover:not(:disabled) { background: #a5342d; border-color: #a5342d; color: #fff; }
button.dangerSoft { background: var(--danger-50); border-color: var(--danger-100); color: var(--danger); }
button.dangerSoft:hover:not(:disabled) { background: #fbe3e1; border-color: #eab8b3; color: #a5342d; }
button.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
button.ghost:hover:not(:disabled) { background: var(--surface-3); border-color: transparent; }
button.iconOnly { width: 34px; padding: 0; }
button.active, button[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); }
button.textButton { min-height: 26px; padding: 2px 4px; border: 0; background: transparent; color: var(--brand); font-size: 12px; }
button.textButton:hover:not(:disabled) { background: var(--brand-50); color: var(--brand-600); }
button.full { width: 100%; }
.buttonRow { display: flex; gap: 8px; margin-top: 10px; }
.buttonRow > button { flex: 1; min-width: 0; }
.stackActions { display: grid; gap: 8px; }
.badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center; }
.count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--surface-3); color: var(--text-3); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.pill { padding: 2px 9px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; white-space: nowrap; }

/* Inputs */
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font-size: 12.5px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b8c3cc; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: #a3aeb7; }
textarea { min-height: 36px; max-height: 150px; resize: vertical; line-height: 1.5; }
input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); flex: none; }
.field { display: block; margin: 12px 0 0; color: var(--text-2); font-size: 12px; font-weight: 500; }
.fieldLabel { display: block; margin-bottom: 6px; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inputAction { display: flex; gap: 8px; margin-top: 6px; }
.inputAction input { margin: 0; min-width: 0; }
.searchField { position: relative; display: block; }
.searchField svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.searchField input { margin: 0; padding-left: 32px; }
.searchField.small input { padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.checkField { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.checkField input { margin-top: 2px; }
.checkField strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.checkField small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 1px; }
.checkField.disabled { opacity: .55; cursor: default; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: var(--surface-3); gap: 2px; }
.segmented button { flex: 1; min-height: 28px; padding: 3px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 12px; }
.segmented button:hover:not(:disabled) { background: #ffffffa8; border: 0; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 0; font-weight: 600; }
.segmented button .mini { color: var(--text-3); font-weight: 500; font-size: 11px; }
.segmented.small button { min-height: 26px; font-size: 11.5px; }
.toggle { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.hint { margin: 6px 0 0; color: var(--text-3); font-size: 11.5px; line-height: 1.6; }
.message { margin: 8px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { color: var(--danger); }
.message.ok { color: var(--age-fresh); }

/* App bar with task tabs */
.appbar { display: flex; align-items: flex-end; gap: 14px; height: 52px; padding: 0 12px 0 16px; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); flex-shrink: 0; position: relative; z-index: 1500; }
.brand { display: flex; align-items: center; gap: 10px; align-self: center; flex-shrink: 0; }
.brandMark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; }
.brandMark svg { width: 18px; height: 18px; stroke-width: 1.7; }
.brandText { display: flex; align-items: baseline; gap: 6px; }
.brandText strong { font-size: 14px; font-weight: 650; letter-spacing: .2px; }
.brandText span { color: var(--text-3); font-size: 11px; font-weight: 600; }
.tabStrip { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-width: 0; height: 100%; padding-top: 8px; }
.tabList { display: flex; align-items: flex-end; gap: 4px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabList.overflowing { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.tabList::-webkit-scrollbar { display: none; }
.taskTab { position: relative; display: flex; align-items: center; gap: 8px; flex: none; width: 214px; height: 40px; padding: 0 6px 0 11px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; background: transparent; color: var(--text-2); text-align: left; cursor: pointer; transition: background .15s; }
.taskTab:hover { background: var(--surface-3); }
.taskTab[aria-selected="true"] { background: var(--bg); border-color: var(--border); color: var(--text); }
.taskTab[aria-selected="true"]::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand); }
.tabStatus { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--border-strong); }
.tabStatus.pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.tabStatus.working { background: var(--age-warn); }
.tabStatus.done { background: var(--age-fresh); }
.tabStatus.busy { background: var(--brand); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--brand-ring); } }
.tabText { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tabText strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.tabText small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11px; }
.tabSource { flex: none; padding: 0 5px; border-radius: 4px; background: var(--brand-50); color: var(--brand-600); font-size: 10px; font-weight: 700; line-height: 16px; }
.tabSource.ground { background: #f1edfb; color: #6146b8; }
.tabClose { display: grid; place-items: center; width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); opacity: 0; }
.taskTab:hover .tabClose, .taskTab[aria-selected="true"] .tabClose, .tabClose:focus-visible { opacity: 1; }
.tabClose:hover:not(:disabled) { background: var(--border); color: var(--text); border: 0; }
.tabClose svg { width: 13px; height: 13px; }
.newTab { align-self: center; margin-bottom: 3px; min-height: 32px; padding: 4px 11px; border: 1px dashed var(--border-strong); background: var(--surface); color: var(--brand-600); }
.newTab:hover:not(:disabled) { border-style: solid; border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.emptyTabs { align-self: center; color: var(--text-3); font-size: 12px; padding: 0 6px 6px; }
.appActions { display: flex; align-items: center; gap: 2px; align-self: center; flex-shrink: 0; }
.menuWrap { position: relative; }
.menu { position: absolute; z-index: 1600; top: calc(100% + 6px); right: 0; min-width: 190px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.menu > button { width: 100%; justify-content: flex-start; gap: 9px; border: 0; background: transparent; font-weight: 500; color: var(--text); }
.menu > button:hover:not(:disabled) { background: var(--surface-3); border: 0; }
.menu > button svg { color: var(--text-3); }
.helpPanel { width: 340px; padding: 16px 18px; color: var(--text-2); font-size: 12.5px; }
.helpPanel strong { display: block; color: var(--text); font-size: 13px; margin: 2px 0 6px; }
.helpPanel ol { margin: 0 0 14px; padding-left: 18px; line-height: 1.8; }
.helpPanel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; }
.helpPanel dt { padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--text); height: fit-content; }
.helpPanel dd { margin: 0; }
.helpPanel p { margin: 0; color: var(--text-3); font-size: 11.5px; }

/* Context bar */
.contextBar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; padding: 7px 16px; background: var(--bg); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.contextMain { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stationField { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-3); font-size: 12px; font-weight: 500; }
.stationField select { width: 230px; margin: 0; padding: 6px 10px; font-weight: 600; color: var(--text); background: var(--surface); }
.sourceBadge { padding: 2px 8px; border-radius: 5px; background: var(--brand-50); color: var(--brand-600); font-size: 11px; font-weight: 600; white-space: nowrap; }
.sourceBadge.ground { background: #f1edfb; color: #6146b8; }
.contextMeta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.contextStats { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.summary { display: flex; gap: 2px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 64px; padding: 2px 10px; border-left: 1px solid var(--border); line-height: 1.25; }
.stat:first-child { border-left: 0; }
.stat span { color: var(--text-3); font-size: 11px; }
.stat strong { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.stat.attention strong { color: var(--warn); }
.agingBar { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--border-strong); }
.agingTitle { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: help; }
.agingChips { display: flex; gap: 5px; }
.agingChip { min-height: 30px; padding: 3px 10px 3px 8px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); gap: 6px; font-size: 11.5px; color: var(--text-2); }
.agingChip i { width: 8px; height: 8px; border-radius: 50%; background: var(--chip); flex: none; }
.agingChip strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.agingChip[aria-pressed="true"] { background: color-mix(in srgb, var(--chip) 12%, #fff); border-color: var(--chip); color: var(--text); }
.agingChip.empty { opacity: .6; background: transparent; border-color: transparent; }
.agingChip { flex: none; height: 30px; }
.agingChip.critical:not(.empty) strong { color: var(--age-critical); }

/* Layout */
main { display: grid; grid-template-columns: 300px minmax(360px, 1fr) 368px; flex: 1; min-height: 0; }
.panel { min-height: 0; background: var(--surface); }
.panel.left { overflow-y: auto; border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: #cdd5dc transparent; }
.panel.right { display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--border); }

/* Left steps */
.welcomeCard { margin: 16px; padding: 20px 18px; border: 1px dashed #b9d9d9; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--brand-50), #fff); text-align: center; }
.welcomeIcon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.welcomeIcon svg { width: 22px; height: 22px; }
.welcomeCard h2 { margin: 12px 0 6px; font-size: 15px; }
.welcomeCard p { margin: 0 0 14px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.step { padding: 16px 18px 18px; border-bottom: 1px solid var(--border); }
.step.locked { opacity: .55; }
.stepHead { display: flex; align-items: flex-start; gap: 11px; }
.stepHead > div { flex: 1; min-width: 0; }
.stepHead h2 { margin: 0; font-size: 13.5px; font-weight: 650; }
.stepSummary { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }
.stepIndex { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--border-strong); color: var(--text-3); font-size: 11.5px; font-weight: 700; flex: none; }
.stepIndex.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepIndex.done svg { width: 13px; height: 13px; stroke-width: 2.6; }
.stepIndex.active { border-color: var(--brand); color: var(--brand); }
.stepBody { padding-left: 0; }
.stepBody > .message:first-of-type, #syncStatus { margin-top: 10px; }
.chipGroup { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 30px; padding: 3px 10px 3px 9px; border-radius: 15px; gap: 5px; font-size: 12px; background: var(--surface); }
.chip svg { width: 13px; height: 13px; color: var(--text-3); }
.chip .mini { color: var(--text-3); font-size: 11px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); font-weight: 600; }
.chip[aria-pressed="true"] svg, .chip[aria-pressed="true"] .mini { color: var(--brand-600); }
.fieldNote { color: var(--text-3); font-weight: 400; font-size: 11px; margin-left: 4px; }
.groupTools { display: grid; gap: 8px; padding: 0 14px 10px; flex-shrink: 0; }
.groupTools .searchField input { padding-top: 6px; padding-bottom: 6px; }
.lookupBar { padding: 8px 0 4px; }
.lookupBar .hint { margin: 0 0 2px; }
.lookupBar .hint.error { color: var(--danger); }
.lookupBar .buttonRow { margin-top: 6px; }
.lookupBar .buttonRow button { font-size: 12px; min-height: 30px; }
.suggestion { margin-top: 6px; padding: 7px 9px; border-radius: 7px; background: var(--brand-50); color: var(--text-2); font-size: 11.5px; line-height: 1.55; }
.suggestion strong { display: block; color: var(--brand-600); font-size: 11.5px; }
.suggestion.warn { background: var(--warn-50); }
.suggestion.warn strong { color: var(--warn); }
.suggestion .buttonRow { margin-top: 6px; }
.suggestion .buttonRow button { min-height: 26px; padding: 2px 9px; font-size: 11.5px; flex: none; }
.miniItem.withActions { cursor: default; }
.linkRow { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; text-align: left; white-space: normal; color: var(--text); font-size: 12px; }
.linkRow:hover:not(:disabled) { background: transparent; border: 0; color: var(--brand-600); }
.linkRow small { color: var(--text-3); font-size: 11px; line-height: 1.5; }
.suggestPin span { display: block; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px #1c283055; }
.stat.clickable { cursor: pointer; border-radius: 6px; }
.stat.clickable:hover { background: var(--surface); }
.stepBody > .full:first-child, .stepBody > .progressTrack + .message + .full { margin-top: 12px; }
.stepBody > button.full { margin-top: 12px; }
.progressTrack { height: 6px; margin-top: 12px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progressFill { height: 100%; width: 0; border-radius: 4px; background: var(--brand); transition: width .4s ease; }
.progressFill.indeterminate { width: 35% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.disclosure { margin-top: 12px; }
.disclosure > summary { display: flex; align-items: center; gap: 4px; padding: 4px 0; color: var(--text-2); font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; width: 6px; height: 6px; margin: 0 6px 0 2px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(-45deg); transition: transform .15s; }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.taskTable { max-height: 260px; margin-top: 6px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.taskRow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.taskRow:last-child { border-bottom: 0; }
.taskRow strong { font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.taskRow small { grid-column: 1 / -1; color: var(--text-3); }
.taskRow small.error { color: var(--danger); }
.stateChip { padding: 0 7px; border-radius: 9px; font-size: 10.5px; font-weight: 600; line-height: 18px; background: var(--surface-3); color: var(--text-2); height: fit-content; }
.stateChip.fetched { background: #e9f6ef; color: #23784f; }
.stateChip.error, .stateChip.review { background: var(--danger-50); color: var(--danger); }
.stateChip.pending { background: var(--warn-50); color: var(--warn); }
.scopeCard { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.scopeCard strong { display: block; font-size: 13px; color: var(--text); }
.scopeCard span { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; line-height: 1.55; }
.filterNote { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 9px; border-radius: 7px; background: var(--warn-50); color: var(--warn); font-size: 11.5px; }
.tools .disclosure { margin-top: 0; }
.toolBlock { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.toolBlock > strong { font-size: 12.5px; }

/* Map */
.mapWrap { position: relative; min-width: 0; min-height: 0; background: #eef2f2; }
#map { width: 100%; height: 100%; background: #f3f6f6; }
.leaflet-container { font-family: var(--font); }
.mutedRoadTiles { filter: grayscale(1) saturate(.2) brightness(1.1) contrast(.82); opacity: .82; }
.mapTop { position: absolute; z-index: 500; top: 14px; left: 14px; right: 150px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; pointer-events: none; }
.mapTop > * { pointer-events: auto; }
.mapTitle { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; background: #fffffff2; box-shadow: var(--shadow-sm); font-size: 12px; max-width: 360px; }
.mapTitle strong { white-space: nowrap; }
.mapTitle span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }
.contextDot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.mapToolbar { display: flex; align-items: center; gap: 2px; height: 38px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: #fffffff2; box-shadow: var(--shadow-sm); }
.mapToolbar button { min-height: 30px; padding: 4px 9px; border: 0; background: transparent; font-size: 12px; }
.mapToolbar button:hover:not(:disabled) { background: var(--surface-3); border: 0; }
.mapToolbar button.active, .mapToolbar button[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-600); }
.toolbarDivider { width: 1px; height: 18px; margin: 0 3px; background: var(--border-strong); }
.mapRight { position: absolute; z-index: 520; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mapButton { height: 38px; border-color: var(--border); background: #fffffff2; box-shadow: var(--shadow-sm); font-size: 12px; }
.warnButton { color: var(--warn); background: #fffaf0f2; border-color: #f0dcb4; }
.layersMenu { width: 236px; padding: 12px; }
.menuLabel { display: block; margin: 10px 0 6px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.menuLabel:first-child { margin-top: 0; }
.drawingPanel { position: absolute; z-index: 520; top: 64px; left: 14px; width: 290px; padding: 12px 13px; border: 1px solid var(--brand-100); border-radius: 10px; background: #fffffff7; box-shadow: var(--shadow); }
.drawingPanel strong { display: block; color: var(--brand-600); font-size: 12.5px; }
.drawingPanel span { display: block; margin-top: 3px; color: var(--text-2); font-size: 11.5px; line-height: 1.6; }
.mapEmpty { position: absolute; z-index: 450; top: 45%; left: 50%; width: min(340px, 80%); transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.emptyMapIcon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 16px; background: #fff; color: #7fb2b2; box-shadow: var(--shadow-sm); }
.emptyMapIcon svg { width: 26px; height: 26px; }
.mapEmpty strong { display: block; color: #3f5b62; font-size: 15px; }
.mapEmpty p { margin: 6px 0 0; color: #7a9096; font-size: 12.5px; line-height: 1.7; }
.legend { position: absolute; z-index: 500; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: calc(100% - 90px); padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fffffff2; color: var(--text-2); font-size: 11.5px; pointer-events: none; box-shadow: var(--shadow-sm); }
.legend:empty { display: none; }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.legend i.square { border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 2px #1c2830; }
.legend i.line { width: 16px; height: 0; border-radius: 0; border-top: 2px dotted #5b8f90; background: none; }
.legend i.line.solid { border-top-style: solid; }
.legend i.zip { width: 14px; height: 10px; border-radius: 2px; border: 1px dashed #6f8aa3; background: #6f8aa312; }
.latlonLabel { color: #9eb0b4; font-size: 10px; white-space: nowrap; text-shadow: 0 1px #fff; }
.zipLabel { color: #5f7890; font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff; transform: translate(-50%, -50%); pointer-events: none; }
.zipLabel small { display: block; font-weight: 500; font-size: 10px; color: #7d93a6; text-align: center; }
.zipLabel small.stray { color: var(--warn); }
.hideZipLabels .zipLabel { display: none; }
.zoneVertex { background: #fff; border: 2px solid #234b5a; color: #234b5a; border-radius: 50%; box-shadow: 0 1px 5px #102e4033; cursor: grab; text-align: center; line-height: 20px; font-size: 10px; font-weight: 700; }
.zoneVertexStart { background: #fff0c2; border-color: #bd6500; color: #7a3700; cursor: pointer; line-height: 26px; }
.zoneVertex span { display: block; }
.zoneLabel { padding: 4px 9px; border: 1px solid #c8d5d9; border-radius: 7px; background: #fffffff5; color: #2f4956; box-shadow: 0 2px 7px #304f5c1a; font-size: 11px; font-weight: 600; }
.zoneLabel::before { display: none; }
.groupMapLabel { cursor: pointer; pointer-events: auto; }
.groupMapLabel:hover, .groupMapLabel:focus-visible, .groupMapLabel.mapSelectedLabel { background: #fff8d8; border-color: var(--brand); outline: 2px solid var(--brand); }
.groupMapLabel .ageDot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.selectionDock { position: absolute; z-index: 600; left: 50%; bottom: 58px; width: min(540px, calc(100% - 32px)); transform: translateX(-50%); padding: 13px 15px 14px; border: 1px solid var(--brand-100); border-radius: var(--radius-lg); background: #fffffffa; box-shadow: var(--shadow-lg); animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.selectionHead { display: flex; align-items: center; gap: 10px; }
.selectionHead strong { color: var(--brand-600); font-size: 13px; }
.selectionHead .textButton { margin-left: auto; }
.selectionMix { padding: 1px 8px; border-radius: 9px; background: var(--warn-50); color: var(--warn); font-size: 11px; }
.selectionFields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.selectionFields .field { margin-top: 8px; }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; max-width: 280px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.popup strong { display: block; font-size: 13px; margin-bottom: 2px; }
.popup .popupRow { color: var(--text-2); }
.popup .popupRow b { color: var(--text-3); font-weight: 500; margin-right: 4px; }
.popup .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.popup .attention { color: var(--warn); }
.popup .muted { color: var(--text-3); }
.leaflet-control-zoom a { color: var(--text-2) !important; }
.leaflet-control-attribution:empty { display: none; }
.leaflet-bar { border: 1px solid var(--border) !important; box-shadow: var(--shadow-sm) !important; border-radius: 9px !important; overflow: hidden; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 500; line-height: 19px; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag.business { background: #eef1f8; color: #3c4f86; }
.tag.residential { background: #eef6f1; color: #2f6b4b; }
.tag.attention { background: var(--warn-50); color: var(--warn); }
.ageTag { --age: var(--age-missing); display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 7px; border-radius: 9px; background: color-mix(in srgb, var(--age) 11%, #fff); color: color-mix(in srgb, var(--age) 70%, #1c2830); font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.ageTag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--age); flex: none; }
.ageTag.fresh { --age: var(--age-fresh); } .ageTag.warn { --age: var(--age-warn); } .ageTag.alert { --age: var(--age-alert); } .ageTag.critical { --age: var(--age-critical); }
.ageTag small { font-weight: 500; opacity: .85; }

/* Right panel */
.resultTabs { display: flex; padding: 0 10px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.resultTabs button { flex: 1; min-height: 46px; padding: 6px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-3); font-size: 12.5px; }
.resultTabs button:hover:not(:disabled) { background: transparent; color: var(--text); border-bottom-color: var(--border-strong); }
.resultTabs button[aria-selected="true"] { color: var(--brand-600); border-bottom-color: var(--brand); font-weight: 650; }
.resultTabs button[aria-selected="true"] .count { background: var(--brand-50); color: var(--brand-600); }
.tabPane { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cdd5dc transparent; }
#pane-groups { overflow: hidden; }
.paneHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; flex-shrink: 0; }
.paneHead h2 { margin: 0; font-size: 13.5px; }
.paneHead .hint { margin-top: 2px; }
.paneHead.stacked { display: block; }
.scopeBanner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px 8px; padding: 7px 8px 7px 11px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-600); font-size: 12px; flex-shrink: 0; }
.cardList { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 14px 14px; scrollbar-width: thin; scrollbar-color: #cdd5dc transparent; }
#pane-zones .cardList, #pane-exports .cardList { overflow: visible; }
.paneFooter { padding: 12px 14px 10px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.paneActions { padding: 0 14px 4px; display: grid; gap: 8px; }
.empty { padding: 34px 16px; color: var(--text-3); font-size: 12px; line-height: 1.8; text-align: center; }
.groupCard { position: relative; margin: 8px 0; padding: 12px 12px 12px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.groupCard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--group); }
.groupCard:hover { border-color: #c6d3d8; box-shadow: var(--shadow-sm); }
.groupCard.mapSelected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.groupTitle { display: flex; align-items: baseline; gap: 8px; }
.groupTitle strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.groupTitle span { color: var(--text-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.groupMeta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.groupNote { margin: 7px 0 0; color: var(--text-3); font-size: 11.5px; }
.groupNote.attention { color: var(--warn); }
.cardActions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cardActions > button { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.cardActions > button:first-child { flex: 1; }
.floatingMenu { width: max-content; min-width: 168px; max-width: 280px; }
.zoneCard, .fileCard { margin: 8px 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
.zoneCard header, .fileCard header { display: flex; align-items: center; gap: 8px; }
.zoneCard header strong, .fileCard header strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.zoneCard p, .fileCard p { margin: 6px 0 0; color: var(--text-3); font-size: 11.5px; }
.zoneCard p.zoneOld { color: var(--warn); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fileCard.rolled { background: var(--surface-2); }
.fileCard.rolled header strong { color: var(--text-3); }
.recordList { padding: 4px 14px 14px; }
.recordRow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; width: 100%; margin: 6px 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-align: left; white-space: normal; font-size: 12px; color: var(--text); }
.recordRow:hover:not(:disabled) { border-color: #c6d3d8; background: var(--surface); }
.recordRow.active { border-color: var(--brand); background: var(--brand-50); }
.recordRow strong { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.recordRow .recordMeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; color: var(--text-3); font-size: 11px; }
.recordRow .statusText { color: var(--text-2); font-size: 11.5px; }
.loadMore { width: 100%; margin-top: 4px; }
.exceptionBlock { margin: 0 14px; padding: 2px 12px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.exceptionBlock[open] { padding-bottom: 12px; }
.exceptionBody .miniList { max-height: 200px; margin-top: 4px; }
.miniList { display: grid; gap: 6px; overflow-y: auto; }
.miniItem { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; white-space: normal; font-size: 12px; color: var(--text); }
.miniItem small { color: var(--text-3); font-size: 11px; line-height: 1.5; }
.zoneEditor { margin: 0 14px 12px; padding: 12px; border: 1px solid var(--brand-100); border-radius: 10px; background: #f7fcfc; }
.zoneEditor strong { font-size: 12.5px; color: var(--brand-600); }

/* Status bar & toasts */
.statusBar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 16px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.statusIndicator { width: 6px; height: 6px; border-radius: 50%; background: var(--age-fresh); flex-shrink: 0; }
.statusIndicator.error { background: var(--danger); }
.statusIndicator.busy { background: var(--brand); animation: pulse 1.4s ease-in-out infinite; }
.topStatus { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 11.5px; }
.topStatus.error { color: var(--danger); }
.statusTrailing { margin-left: auto; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.toastStack { position: fixed; z-index: 2500; right: 18px; bottom: 40px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 10px 10px 10px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: var(--text); font-size: 12.5px; pointer-events: auto; animation: toastIn .2s ease-out; }
.toast.leaving { animation: toastOut .2s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
.toast > svg { color: var(--age-fresh); }
.toast.error { border-color: var(--danger-100); }
.toast.error > svg { color: var(--danger); }
.toast span { flex: 1; line-height: 1.55; }
.toast button { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.toast .toastClose { width: 26px; padding: 0; border: 0; background: transparent; color: var(--text-3); }

/* Popovers & dialogs */
.popover { position: fixed; z-index: 1700; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.popoverHead { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.popoverHead strong { font-size: 14px; }
.popoverHead .hint { flex: 1; margin: 0; }
.historyPanel { top: 56px; right: 12px; width: min(640px, calc(100vw - 24px)); }
.historyBody { display: grid; grid-template-columns: 268px 1fr; min-height: 300px; }
.historyBody .calendar { padding: 14px; border-right: 1px solid var(--border); }
.historyList { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 14px; }
.historyListHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.historyListHead .searchField { width: 160px; }
.historyList .miniList { max-height: 340px; }
.runItem { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.runItem.current { border-color: var(--brand); background: var(--brand-50); }
.runItem strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.runItem small { grid-column: 1 / 2; color: var(--text-3); font-size: 11px; }
.runItem .runActions { grid-row: 1 / 3; grid-column: 2; display: flex; gap: 6px; }
.runItem .runActions button { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.runItem input[type="checkbox"] { grid-row: 1 / 3; }
.runItem.selectable { grid-template-columns: auto 1fr; cursor: pointer; }
.runItem.selectable small { grid-column: 2; }
.runItem.disabled { opacity: .55; cursor: not-allowed; }
.calendar { user-select: none; }
.calendarHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendarHead strong { font-size: 13px; }
.calendarHead button { width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; }
.calendarHead button:hover:not(:disabled) { background: var(--surface-3); border: 0; }
.calendarGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendarGrid .weekday { padding: 3px 0; color: var(--text-3); font-size: 10.5px; text-align: center; }
.day { position: relative; flex-direction: column; gap: 0; height: 34px; min-height: 0; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.day:hover:not(:disabled) { background: var(--surface-3); border-color: transparent; }
.day.outside { color: #c3ccd3; }
.day.today { font-weight: 700; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.day.has { color: var(--text); font-weight: 600; }
.day.has::after { content: attr(data-count); position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); min-width: 14px; height: 11px; padding: 0 3px; border-radius: 6px; background: var(--brand-100); color: var(--brand-600); font-size: 8.5px; font-weight: 700; line-height: 11px; }
.day.has { padding-bottom: 8px; }
.day.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.selected::after { background: #ffffff40; color: #fff; }
.day.selected:hover:not(:disabled) { background: var(--brand-600); }
.day:disabled { opacity: 1; cursor: default; }
.overlay { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; background: #15283480; backdrop-filter: blur(3px); }
.dialogCard { width: min(440px, calc(100vw - 32px)); max-height: 88dvh; overflow-y: auto; padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); }
.dialogCard.wide { width: min(720px, calc(100vw - 32px)); }
dialog.dialogCard::backdrop { background: #15283480; backdrop-filter: blur(3px); }
.dialogEyebrow { display: block; margin-bottom: 6px; color: var(--brand); font-size: 11.5px; font-weight: 600; }
.dialogCard h2 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.dialogMessage { margin: 12px 0 4px; color: var(--text-2); font-size: 13px; line-height: 1.85; white-space: pre-line; }
.dialogActions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialogActions button { min-width: 88px; min-height: 36px; }
.dialogActions .spacer { flex: 1; }
.dropZone { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; padding: 26px 18px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--text-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropZone:hover, .dropZone.dragging { border-color: var(--brand); background: var(--brand-50); }
.dropZone.ready { border-style: solid; border-color: var(--brand); background: var(--brand-50); }
.dropZone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropZone svg { width: 28px; height: 28px; color: var(--brand); }
.dropZone strong { color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.dropZone span { color: var(--text-3); font-size: 11.5px; }
.cleanupBody { display: grid; grid-template-columns: 268px 1fr; gap: 18px; margin-top: 16px; }
.cleanupBody .calendar { padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.quickRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.quickRow button { min-height: 28px; padding: 2px 4px; font-size: 11.5px; }
.cleanupList { display: flex; flex-direction: column; min-width: 0; }
.cleanupList .miniList { max-height: 296px; padding: 1px; }
.cleanupTotals { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: var(--danger-50); color: var(--danger); font-size: 12px; }
.cleanupTotals:empty { display: none; }
.dangerZone { margin-top: 18px; padding: 4px 12px 10px; border: 1px solid var(--danger-100); border-radius: 10px; }
.dangerZone > summary { color: var(--danger); }
.stoppedMessage { max-width: 520px; margin: 20vh auto; padding: 36px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 18px; text-align: center; }
/* Web version: the sign-in ended; covers everything (dialogs included) until the sign-in page opens. */
.rolesList { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.rolesRow { display: grid; grid-template-columns: 80px minmax(110px, 1.3fr) minmax(80px, 1fr) 84px minmax(70px, 1fr) 150px 110px; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 12px; overflow-wrap: anywhere; }
.rolesRow:last-child { border-bottom: 0; }
.rolesHead { position: sticky; top: 0; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.rolesRow.muted { color: var(--text-3); }
.signedOutCover { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(244, 246, 248, .94); color: var(--text); font-size: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 1440px) { main { grid-template-columns: 284px minmax(320px, 1fr) 340px; } .stat { min-width: 56px; padding: 2px 8px; } .stat strong { font-size: 15px; } .taskTab { width: 190px; } .contextMeta { max-width: 220px; } }
@media (max-width: 1360px) { .contextMeta { display: none; } .stat { min-width: 50px; padding: 2px 7px; } .stationField select { width: 210px; } }
@media (max-width: 1180px) { .contextBar { flex-wrap: wrap; } .contextStats { width: 100%; justify-content: space-between; } }
@media (max-width: 1280px) { .brandText span { display: none; } .mapToolbar button span:not(.badge) { display: none; } .mapToolbar button { padding: 4px 8px; } .historyBtnLabel { display: none; } }
@media (max-width: 1100px) { .brandText { display: none; } main { grid-template-columns: 260px minmax(280px, 1fr) 300px; } .taskTab { width: 168px; } .newTab span { display: none; } .agingChip { padding: 3px 8px 3px 7px; } .summary .stat:nth-child(n+4) { display: none; } #historyBtn span { display: none; } }
@media (max-width: 860px) { body { height: auto; overflow: auto; } main { grid-template-columns: 1fr; } .mapWrap { height: 560px; order: -1; } .panel.left { border-right: 0; } .panel.right { height: 560px; border-left: 0; border-top: 1px solid var(--border); } .contextStats { flex-wrap: wrap; } .agingBar { padding-left: 0; border-left: 0; } .historyBody, .cleanupBody { grid-template-columns: 1fr; } .historyBody .calendar { border-right: 0; border-bottom: 1px solid var(--border); } .mapTop { right: 14px; top: 60px; } .mapRight { top: 14px; } .statusBar { position: sticky; bottom: 0; z-index: 900; } }
/* 2.8.1: who is logged in, in 账号设置 */
.accountInfo { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #dfe8ec; border-radius: 10px; background: #f8fbfb; font-size: 13px; display: grid; gap: 6px; }
.accountInfo.ok { border-color: #bfe0d6; background: #f1faf6; }
.accountInfo.error { border-color: #f0c9c4; background: #fdf4f3; color: #8a2f25; }
.accountInfo dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.accountInfo dt { color: #607a84; } .accountInfo dd { margin: 0; color: #1f3038; word-break: break-all; }
/* Display time zone */
.zoneOptions { display: grid; gap: 6px; margin-top: 12px; }
.zoneOption { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; font-size: 12.5px; }
.zoneOption:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.zoneOption input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); flex: none; }
.zoneOption span { flex: 1; min-width: 0; }
.zoneOption small { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
/* Web version: the source system's captcha next to its input */
.captchaRow { display: flex; align-items: flex-end; gap: 10px; }
.captchaRow .field { flex: 1; min-width: 0; }
button.captchaImage { flex: none; width: 120px; height: 36px; min-height: 36px; padding: 0; overflow: hidden; background: var(--surface-2); }
button.captchaImage img { display: block; width: 100%; height: 100%; object-fit: contain; }
