/* v2.1 — City domains (water, energy, green spaces and assets): the shared kit.
   Uses the dashboard's variables (--navy, --ink, --muted, --line, --accent) and follows its light / dark theme. */
:root { --dom-ok: #1f8a5b; --dom-warn: #d08b17; --dom-critical: #c0392b; --dom-unknown: #8fa1b3; --dom-panel: #fff; --dom-soft: #f6f9fc; --dom-dash: #c9d6e2; }
html[data-theme="dark"] { --dom-panel: #111f2e; --dom-soft: #16283a; --dom-dash: #2a4560; }

section.card.dom-module { padding: 18px 20px 22px; }
.dom-root a { color: var(--accent); }
.dom-root input[type="checkbox"], .dom-root input[type="radio"], .dom-sheet input[type="checkbox"] { width: auto; min-width: 0; flex: none; margin: 0; padding: 0; box-shadow: none; }
.dom-loading { padding: 18px; color: var(--muted); font-size: 13.5px; }
.dom-empty { padding: 18px; border: 1px dashed var(--dom-dash); border-radius: 12px; background: var(--dom-soft); color: var(--muted); text-align: center; }
.dom-empty.small { padding: 10px 12px; font-size: 13px; text-align: left; }
.dom-empty.bad, .dom-root .bad, .dom-sheet .bad, .dom-modal .bad { color: var(--dom-critical); }
.dom-none { color: var(--muted); font-style: italic; }
.dom-need { color: var(--muted); font-size: 12.5px; margin-top: 3px; max-width: 760px; line-height: 1.4; }
.dom-link { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.dom-link:hover { text-decoration: underline; }
.dom-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
a.primary.dom-btn { color: #fff; }
.dom-root button, .dom-sheet button, .dom-modal button { cursor: pointer; }
.dom-root button.is-busy, .dom-modal button.is-busy { opacity: .6; pointer-events: none; }
.dom-root button.icon { padding: 4px 8px; min-width: 0; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* ---- head, city, tabs */
.dom-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.dom-title { display: flex; gap: 12px; align-items: center; }
.dom-title h2 { margin: 0; font-size: 21px; color: var(--navy); }
.dom-title p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.dom-ico { font-size: 26px; width: 46px; height: 46px; border-radius: 12px; background: var(--dom-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.dom-city { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.dom-city select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--dom-dash); background: var(--dom-panel); color: var(--ink); font: inherit; font-weight: 600; min-width: 150px; }
.dom-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0 16px; overflow-x: auto; }
.dom-tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.dom-tabs a:hover { color: var(--navy); }
.dom-tabs a.active { color: var(--navy); border-bottom-color: var(--accent); }
.dom-tab-badge { background: var(--dom-critical); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.dom-tab-badge:empty { display: none; }

/* ---- panels, tables, toolbars */
.dom-panel { background: var(--dom-panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.dom-panel h3 { margin: 0 0 10px; font-size: 15px; color: var(--navy); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dom-panel h3 small { color: var(--muted); font-weight: 500; }
.dom-panel h3 .dom-link { font-size: 12.5px; margin-left: auto; }
.dom-root h4, .dom-sheet h4, .dom-modal h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.dom-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.dom-col-side.wide { min-width: 0; }
.dom-cols:has(.dom-col-side.wide) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1150px) { .dom-cols, .dom-cols:has(.dom-col-side.wide) { grid-template-columns: 1fr; } }
.dom-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.dom-toolbar.tight { margin: 8px 0; }
.dom-toolbar.wrap { flex-wrap: wrap; }
.dom-toolbar h4 { margin: 0; }
.dom-toolbar select, .dom-toolbar input[type="search"], .dom-toolbar input[type="date"] { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--dom-dash); background: var(--dom-panel); color: var(--ink); font: inherit; font-size: 13.5px; }
.dom-toolbar input[type="search"] { min-width: 220px; }
.dom-inline, .dom-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.dom-count { font-weight: 700; color: var(--navy); }
.dom-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dom-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent; }
.dom-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dom-table tr:last-child td { border-bottom: 0; }
.dom-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dom-table.tiny { font-size: 12px; } .dom-table.tiny td, .dom-table.tiny th { padding: 4px 8px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.dom-table.inv tbody tr { cursor: pointer; }
.dom-table.inv tbody tr:hover td { background: var(--dom-soft); }
.dom-table.compact td { padding: 6px 10px; }
.dom-table th.sortable { cursor: pointer; user-select: none; }
.dom-table th.sorted::after { content: " ▲"; font-size: 9px; } .dom-table th.sorted.desc::after { content: " ▼"; }
.dom-filters td { padding: 4px 6px; background: var(--dom-soft); }
.dom-filters input, .dom-filters select { width: 100%; min-width: 70px; padding: 4px 6px; border: 1px solid var(--dom-dash); border-radius: 6px; font: inherit; font-size: 12.5px; background: var(--dom-panel); color: var(--ink); box-sizing: border-box; }
.dom-table.info th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 13px; white-space: normal; font-weight: 600; }
.dom-pager { display: flex; gap: 10px; align-items: center; padding: 10px 2px 0; font-size: 13px; color: var(--muted); }
.dom-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.dom-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dom-dash); background: var(--dom-panel); color: var(--ink); font-size: 13px; font-weight: 600; }
.dom-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
html[data-theme="dark"] .dom-pill.active { background: #1f6fb2; border-color: #1f6fb2; color: #fff; }
.dom-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; margin-right: 6px; vertical-align: middle; }
.dom-pill .dom-dot { margin-right: 0; }
.dom-dot.rep { background: #e0732a; outline: 2px dashed #7a2ad6; outline-offset: 1px; }
.dom-list { margin: 0; padding-left: 18px; font-size: 13.5px; } .dom-list li { margin: 4px 0; }
.dom-details { margin-top: 8px; } .dom-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.dom-url { word-break: break-all; }
.dom-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--dom-dash); background: var(--dom-soft); margin-bottom: 14px; }
.dom-banner span { color: var(--muted); font-size: 13.5px; flex: 1; min-width: 260px; }
.dom-ok-box { padding: 10px 12px; border-radius: 10px; border: 1px solid #bfe3cf; background: #e6f5ec; color: #176a45; font-size: 13.5px; }
html[data-theme="dark"] .dom-ok-box { background: #12301f; border-color: #1f5a3a; color: #9ad9b6; }
.dom-progress { margin-top: 8px; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--dom-soft); border: 1px solid var(--line); }
.dom-offer { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-color: var(--accent); }

/* ---- chips, sources, estimates */
.dom-chip { display: inline-flex; gap: 5px; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--dom-soft); color: var(--ink); white-space: nowrap; text-decoration: none; }
.dom-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dom-unknown); flex: none; }
.dom-chip.st-ok i { background: var(--dom-ok); } .dom-chip.st-warn i { background: var(--dom-warn); } .dom-chip.st-critical i { background: var(--dom-critical); }
.dom-chip.kind { background: transparent; }
.dom-chip.ticket { border-color: var(--accent); color: var(--accent); }
button.dom-chip { cursor: pointer; } button.dom-chip.active { outline: 2px solid var(--accent); }
.dom-src { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); }
.dom-src-k { font-size: 11px; }
.dom-est { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: #fdf3df; color: #7a5312; border: 1px solid #f1d9a3; cursor: help; vertical-align: middle; }
html[data-theme="dark"] .dom-est { background: #3a2c10; color: #f1d9a3; border-color: #6b531c; }
.dom-legend { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.dom-legend.col { flex-direction: column; align-items: flex-start; }
.dom-legend-note { font-size: 12px; color: var(--muted); flex: 1; min-width: 240px; }
.dom-statebar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--dom-soft); min-width: 90px; }
.dom-statebar i { display: block; } .dom-statebar .ok { background: var(--dom-ok); } .dom-statebar .warn { background: var(--dom-warn); } .dom-statebar .critical { background: var(--dom-critical); } .dom-statebar .unknown { background: var(--dom-unknown); opacity: .55; }

/* ---- indicators */
.dom-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dom-kpi { position: relative; background: var(--dom-panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px 12px 18px; overflow: hidden; }
.dom-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #9fb3c6; }
.dom-kpi.ok::before { background: var(--dom-ok); } .dom-kpi.warn::before { background: var(--dom-warn); } .dom-kpi.critical::before { background: var(--dom-critical); }
.dom-kpi.missing { border-style: dashed; background: var(--dom-soft); } .dom-kpi.missing::before { background: transparent; }
.dom-kpi-label { font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dom-kpi-value { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 5px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dom-kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.dom-kpi-foot { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.dom-kpi-basis { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; font-style: italic; }
.dom-kpi-none { font-weight: 700; color: var(--muted); margin-top: 6px; font-size: 13.5px; }
.dom-kpi-need { font-size: 12.5px; color: var(--muted); margin: 4px 0 6px; line-height: 1.4; }
.dom-chart { position: relative; height: 220px; } .dom-chart.small { height: 170px; margin-top: 10px; }

/* ---- hot water */
.dom-hot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 6px; }
.dom-hot-grid div { background: var(--dom-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.dom-hot-grid b { display: block; font-size: 22px; color: var(--navy); } .dom-hot-grid span { font-size: 12px; color: var(--muted); }
.dom-address { display: flex; gap: 8px; margin: 12px 0 8px; }
.dom-address input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--dom-dash); font: inherit; background: var(--dom-panel); color: var(--ink); }
.dom-address-out { margin-bottom: 8px; }

/* ---- alerts */
.dom-alert { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--dom-warn); border-radius: 10px; margin-bottom: 8px; background: var(--dom-panel); }
.dom-alert.sev-critical { border-left-color: var(--dom-critical); } .dom-alert.sev-info { border-left-color: #9fb3c6; }
.dom-alert.resolved { opacity: .62; }
.dom-alert-main { flex: 1; min-width: 0; }
.dom-alert-title { font-weight: 700; color: var(--navy); font-size: 14px; }
.dom-alert-detail { font-size: 13.5px; margin-top: 2px; }
.dom-alert-basis { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.dom-alert-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dom-alert-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }

/* ---- sources */
.dom-thresholds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dom-thresholds label, .dom-perm label:not(.dom-check) { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dom-thr { display: flex; gap: 6px; align-items: center; } .dom-thr input { width: 110px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--dom-dash); font: inherit; background: var(--dom-panel); color: var(--ink); } .dom-thr em { font-style: normal; }
.dom-thresholds .actions, .dom-perm .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.dom-perm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .dom-perm > div { display: flex; flex-direction: column; gap: 6px; } .dom-perm input[type="text"] { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--dom-dash); font: inherit; background: var(--dom-panel); color: var(--ink); }

/* ---- map */
.dom-mapwrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; height: min(68vh, 720px); min-height: 440px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--dom-panel); }
.dom-mapwrap.side-off { grid-template-columns: 0 minmax(0, 1fr); } .dom-mapwrap.side-off .dom-map-side { display: none; }
.dom-mapwrap.dom-max { position: fixed; inset: 0; z-index: 3000; height: auto; border-radius: 0; border: 0; }
.dom-map-side { padding: 12px 12px 16px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--dom-panel); }
.dom-map-side h4:first-child { margin-top: 0; }
.dom-layer { display: flex; gap: 6px; align-items: center; padding: 5px 4px; font-size: 13px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.dom-layer:hover { background: var(--dom-soft); }
.dom-layer.empty .dom-layer-name { color: var(--muted); }
.dom-layer .dom-dot { margin-right: 0; }
.dom-layer-name { flex: 1; line-height: 1.25; } .dom-layer-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dom-map-total { font-size: 24px; font-weight: 800; color: var(--navy); }
.dom-map-main { position: relative; min-width: 0; }
.dom-map { position: absolute; inset: 0; background: #e9eef3; }
.dom-map-tools { position: absolute; top: 10px; right: 10px; z-index: 500; display: flex; gap: 6px; }
.dom-map-tools button { box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 7px 11px; font-weight: 600; }
.dom-map-msg { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 500; background: rgba(11,43,73,.92); color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 13px; max-width: 80%; text-align: center; }
.dom-under { margin-top: 14px; }
.dom-minimap { height: 340px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.dom-add { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; } @media (max-width: 800px) { .dom-add { grid-template-columns: 1fr; } }
.dom-form-col { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
body.dom-has-max { overflow: hidden; }

/* ---- element sheet (right side) */
.dom-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 3200; background: var(--dom-panel); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -14px 0 40px rgba(5,20,35,.22); display: flex; flex-direction: column; font-size: 13.5px; }
.dom-sheet[hidden] { display: none; }
.dom-sheet header { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); position: relative; }
.dom-sheet h3, .dom-full-head h3 { margin: 2px 34px 6px 0; font-size: 18px; color: var(--navy); line-height: 1.25; }
.dom-full-head h3 { font-size: 22px; }
.dom-sheet-layer { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.dom-sheet-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dom-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--dom-soft); color: var(--ink); font-size: 14px; }
.dom-sheet-tabs { display: flex; border-bottom: 1px solid var(--line); }
.dom-sheet-tabs button { flex: 1; padding: 10px 6px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; border-radius: 0; box-shadow: none; }
.dom-sheet-tabs button.active { color: var(--navy); border-bottom-color: var(--accent); }
.dom-sheet-body { flex: 1; overflow-y: auto; padding: 12px 16px 16px; }
.dom-sheet-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--dom-soft); }
.dom-sheet-actions button, .dom-sheet-actions .dom-btn { flex: 1 1 46%; font-size: 13px; padding: 8px 8px; text-align: center; }
.dom-full .dom-sheet-actions { background: transparent; border: 0; padding: 10px 0 14px; } .dom-full .dom-sheet-actions button, .dom-full .dom-sheet-actions .dom-btn { flex: 0 0 auto; padding: 8px 14px; }
.dom-full-head { margin: 10px 0 0; }
.dom-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--dom-soft); }
.dom-box.missing { border-style: dashed; }
.dom-box h4 { margin-top: 0; }
.dom-box-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dom-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }
.dom-facts div { display: flex; flex-direction: column; } .dom-facts span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; } .dom-facts b { font-size: 14px; color: var(--navy); word-break: break-word; }
.dom-readings { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dom-readings > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--dom-panel); display: flex; flex-direction: column; gap: 2px; }
.dom-readings > div.missing { border-style: dashed; background: var(--dom-soft); }
.dom-readings span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.dom-readings b { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; } .dom-readings b small { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 600; }
.dom-readings em { font-size: 11.5px; color: var(--muted); font-style: normal; line-height: 1.35; }
.dom-readings > div.bad b { color: var(--dom-critical); }
.dom-photos { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; } .dom-photos img { height: 110px; border-radius: 8px; border: 1px solid var(--line); }
.dom-timeline .tl { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dom-timeline .tl:last-child { border-bottom: 0; } .tl-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } .dom-timeline .tl.cancelled { opacity: .55; }
.dom-file { cursor: pointer; }
.dom-root button.danger, .dom-sheet button.danger { color: var(--dom-critical); border-color: #e09c9c; }

/* ---- dialogs */
.dom-modal label { margin-bottom: 8px; }
.dom-modal label.dom-check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.dom-modal input[type="checkbox"] { width: auto; }
.dom-modal input[type="file"] { padding: 6px; }
.dom-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dom-mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
html[data-theme="dark"] .modal.dom-modal-host { background: #111f2e; color: var(--ink); }
html[data-theme="dark"] .modal.dom-modal-host input, html[data-theme="dark"] .modal.dom-modal-host select, html[data-theme="dark"] .modal.dom-modal-host textarea { background: #16283a; color: var(--ink); border-color: #2a4560; }

/* ---- menu: the sub-pages of a domain */
#mainNav .nav-group[data-group^="dom-"] .nav-sub a svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) { .dom-mapwrap { grid-template-columns: 1fr; height: 78vh; } .dom-mapwrap .dom-map-side { display: none; } .dom-mapwrap.side-off .dom-map-side { display: block; position: absolute; z-index: 600; inset: 0 30% 0 0; } .dom-sheet { width: 100vw; } }

/* ---- what is not connected yet: one compact list instead of a wall of empty cards */
.dom-missing { border-style: dashed; background: var(--dom-soft); }
.dom-missing h3 small { font-weight: 500; font-size: 12.5px; }
.dom-missing dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 22px; }
.dom-missing dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--navy); }
.dom-missing dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---- the sheet inside the dashboard: its header is not the page header; the AI button moves aside while it is open */
.dom-sheet header { background: var(--dom-panel); color: var(--ink); box-shadow: none; display: block; min-height: 0; height: auto; margin: 0; border-radius: 0; }
.dom-sheet header .small { color: var(--muted); }
body.dom-has-sheet .ai-fab { right: calc(min(460px, 100vw) + 20px); }
@media (max-width: 760px) { body.dom-has-sheet .ai-fab { display: none; } }

/* ---- tables inside the dashboard's .table-scroll: text wraps, action buttons stay in view */
.dom-root .dom-table td, .dom-sheet .dom-table td { white-space: normal; overflow-wrap: anywhere; }
.dom-root .dom-table td.nowrap, .dom-root .dom-table td.num { white-space: nowrap; overflow-wrap: normal; }
.dom-root .dom-table td.nowrap button { margin-left: 4px; }
.dom-table.info td.small .dom-src, .dom-table .dom-src { flex-wrap: wrap; }
.dom-table.inv td { overflow-wrap: normal; }

/* ===================== v2.2 — works and reports, lighting, commerce ===================== */
.dom-root-like { min-height: 200px; }
.pre { white-space: pre-wrap; word-break: break-word; }
/* the five steps of a report */
.dom-steps { list-style: none; display: flex; margin: 0 0 12px; padding: 0; counter-reset: step; }
.dom-steps li { flex: 1; position: relative; text-align: center; font-size: 11.5px; color: var(--muted); padding-top: 26px; min-width: 0; }
.dom-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: var(--dom-soft); border: 1.5px solid var(--dom-dash); font-size: 11px; font-weight: 700; z-index: 1; }
.dom-steps li::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--dom-dash); }
.dom-steps li:first-child::after { display: none; }
.dom-steps li b { display: block; font-size: 12px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dom-steps li.done::before { background: var(--dom-ok); border-color: var(--dom-ok); color: #fff; content: '✓'; }
.dom-steps li.done::after { background: var(--dom-ok); }
.dom-steps li.current::before { box-shadow: 0 0 0 3px rgba(31, 138, 91, .22); }
.dom-steps li.current b { color: var(--navy); font-weight: 700; }
.dom-chip.stage-new i { background: var(--dom-unknown); } .dom-chip.stage-triaged i { background: #5b8fd6; } .dom-chip.stage-in_progress i { background: var(--dom-warn); }
.dom-chip.stage-scheduled i { background: #7a5ad6; } .dom-chip.stage-resolved i { background: var(--dom-ok); } .dom-chip.stage-rejected i { background: #777; }
.dom-chip.stage-planned i { background: #5b8fd6; } .dom-chip.stage-announced i { background: var(--dom-critical); }
/* follow-up tasks */
.dom-tasks { list-style: none; margin: 0 0 10px; padding: 0; }
.dom-tasks li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dom-tasks li:last-child { border-bottom: 0; }
.dom-tasks li span { flex: 1; min-width: 0; } .dom-tasks li b { display: block; font-size: 13.5px; font-weight: 600; } .dom-tasks li em { font-style: normal; font-size: 12px; color: var(--muted); }
.dom-tasks li.done b { text-decoration: line-through; color: var(--muted); }
.dom-check-btn { width: 22px; height: 22px; min-width: 22px !important; padding: 0 !important; border-radius: 6px; border: 1.5px solid var(--dom-dash); background: var(--dom-panel); color: var(--dom-ok); font-weight: 800; line-height: 1; flex: none; }
/* before / after */
.dom-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.dom-ba-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dom-ba .dom-photos img { height: 86px; }
.dom-file { cursor: pointer; }
.dom-timeline .tl.internal { opacity: .8; }
/* funnel */
.dom-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.dom-funnel div { border: 1px solid var(--line); border-top: 4px solid var(--dom-unknown); border-radius: 10px; padding: 8px 10px; background: var(--dom-soft); }
.dom-funnel b { display: block; font-size: 24px; color: var(--navy); } .dom-funnel span { font-size: 12px; color: var(--muted); }
.dom-funnel .stage-triaged { border-top-color: #5b8fd6; } .dom-funnel .stage-in_progress { border-top-color: var(--dom-warn); } .dom-funnel .stage-scheduled { border-top-color: #7a5ad6; } .dom-funnel .stage-resolved { border-top-color: var(--dom-ok); }
.dom-funnel .tone-critical { border-top-color: var(--dom-critical); } .dom-funnel .tone-warn { border-top-color: var(--dom-warn); } .dom-funnel .tone-ok { border-top-color: var(--dom-ok); }
/* element picker */
.dom-picklist { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; margin-top: 6px; }
.dom-pick { text-align: left; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--dom-panel); color: var(--ink); display: flex; flex-direction: column; gap: 1px; }
.dom-pick:hover { border-color: var(--accent); }
/* QR labels */
.dom-qr-big { width: 220px; margin: 6px auto 10px; background: #fff; padding: 8px; border-radius: 8px; } .dom-qr-big svg { width: 100%; height: auto; display: block; }
.dom-print { display: none; }
@media print {
    body.dom-printing > *:not(.dom-print) { display: none !important; }
    body.dom-printing { background: #fff !important; }
    body.dom-printing .dom-print { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; padding: 6mm; }
    .dom-qr-label { display: flex; gap: 3mm; align-items: center; border: 0.3mm solid #999; border-radius: 2mm; padding: 2.5mm; break-inside: avoid; color: #000; font-family: Arial, sans-serif; }
    .dom-qr-code { width: 26mm; flex: none; } .dom-qr-code svg { width: 100%; height: auto; display: block; }
    .dom-qr-text { display: flex; flex-direction: column; min-width: 0; font-size: 8pt; line-height: 1.25; }
    .dom-qr-text b { font-size: 9.5pt; overflow: hidden; text-overflow: ellipsis; } .dom-qr-text em { font-style: normal; margin-top: 1mm; } .dom-qr-text small { color: #555; font-family: monospace; }
}

/* ===================== v2.3 — waste: collection routes ===================== */
.dom-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; background: #888; box-shadow: 0 0 0 2px #fff; }
.dom-routemap { height: 380px; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0; overflow: hidden; }
.dom-plan { display: flex; flex-direction: column; gap: 12px; }
.dom-plan > div > b { display: block; margin-bottom: 4px; font-size: 13px; }
.dom-plan .dom-check { margin-right: 14px; display: inline-flex; gap: 6px; align-items: center; }
.dom-root .good, .dom-sheet .good { color: var(--dom-ok); font-weight: 700; }

/* ---- v2.4 forum (staff side) ---- */
.dom-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .dom-grid3 { grid-template-columns: 1fr; } }
.fo-list, .fo-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fo-thread { max-height: 52vh; overflow: auto; padding-right: 4px; }
.fo-post { border: 1px solid var(--line); border-left: 4px solid #8fa1b3; border-radius: 10px; padding: 10px 12px; background: var(--card, #fff); }
.fo-post.official { border-left-color: #1f6fb2; background: rgba(31, 111, 178, .06); }
.fo-post.off { border-left-color: var(--dom-warn); }
.fo-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; } .fo-meta b { color: var(--ink); } .fo-meta code { font-size: 11px; opacity: .8; }
.fo-title { font-weight: 700; margin: 2px 0; } .fo-text { white-space: normal; overflow-wrap: anywhere; }
.fo-photos { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; } .fo-photos img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.fo-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .fo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-actions button { padding: 5px 10px; font-size: 12.5px; }

/* ---- v2.5 public safety ---- */
.dom-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; } @media (max-width: 1150px) { .dom-cols2 { grid-template-columns: 1fr; } }
.sf-filter .sf-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; } .sf-filter .sf-row:last-child { margin-bottom: 0; }
.sf-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 0 4px 0 8px; } .sf-lbl:first-child { margin-left: 0; }
.sf-filter button { padding: 5px 10px; font-size: 12.5px; } .sf-filter input[type="date"], .sf-filter select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 13px; }
.sf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.sf-chip.on { background: #1f6fb2; border-color: #1f6fb2; color: #fff; } .sf-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sf-bars { display: flex; flex-direction: column; gap: 5px; } .sf-bar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.sf-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sf-bar-t { height: 10px; border-radius: 6px; background: rgba(128, 128, 128, .15); overflow: hidden; } .sf-bar-t i { display: block; height: 100%; border-radius: 6px; } .sf-bar b { text-align: right; }
.sf-heat { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; } .sf-heat-row { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; font-size: 11px; }
.sf-heat-row > span { color: var(--muted); } .sf-heat-row i { display: flex; align-items: center; justify-content: center; height: 22px; border-radius: 3px; font-style: normal; font-size: 10px; color: #fff; outline: 1px solid rgba(128, 128, 128, .12); }
.sf-heat-h span { text-align: center; }
.sf-trend { display: flex; align-items: flex-end; gap: 2px; height: 110px; } .sf-trend i { flex: 1; background: #a8323e; border-radius: 2px 2px 0 0; min-width: 2px; opacity: .85; } .sf-trend-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sf-anom { border-left: 4px solid var(--dom-warn); padding: 6px 10px; margin: 8px 0; border-radius: 0 8px 8px 0; background: rgba(208, 139, 23, .07); } .sf-anom.critical { border-left-color: var(--dom-critical); background: rgba(192, 57, 43, .07); } .sf-anom.info { border-left-color: #7a5ad6; background: rgba(122, 90, 214, .07); }
.sf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.sf-unit { display: block; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-size: 13px; cursor: pointer; } .sf-unit input { width: auto; margin-right: 6px; }
.dom-root .sf-filter input[type="date"], .dom-root .sf-filter select { width: auto; display: inline-block; min-width: 0; }
.dom-root table.sf-wide { min-width: 620px; } .dom-root table.sf-wide td { word-break: normal; overflow-wrap: normal; }

/* ---- v2.6 the city today ---- */
.op-src { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.op-facts { list-style: none; margin: 0 0 8px; padding: 0; } .op-facts li { padding: 6px 10px; border-left: 3px solid var(--line); margin-bottom: 4px; border-radius: 0 6px 6px 0; }
.op-facts li.critical { border-left-color: var(--dom-critical); background: rgba(192, 57, 43, .06); } .op-facts li.warn { border-left-color: var(--dom-warn); background: rgba(208, 139, 23, .06); } .op-facts li.ok { border-left-color: var(--dom-ok); }
.op-ai { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0 12px; background: rgba(31, 111, 178, .05); } .op-ai p { margin: 0 0 6px; line-height: 1.5; }
.op-tl { display: grid; grid-template-columns: 118px 22px 1fr; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .op-tl-t { color: var(--muted); font-size: 12px; } .op-tl-i { text-align: center; }
.op-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .op-link button { padding: 3px 9px; font-size: 12px; }
.op-task { padding: 7px 0; border-top: 1px solid var(--line); } .op-task.done b { text-decoration: line-through; opacity: .7; } .op-task .dom-check { display: flex; flex-direction: row; align-items: center; gap: 8px; } .op-task input { width: auto; }
.op-savings { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 10px; }
@media print { body.dom-print-morning .sidebar, body.dom-print-morning header, .cityops-root .dom-toolbar, .cityops-root .dom-tabs, .cityops-root .dom-head { display: none !important; } }
.sf-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.sf-step { border: 1px solid var(--line); border-top: 4px solid #8fa1b3; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); } .sf-step b { color: var(--ink); font-size: 13px; }
.sf-step.done { border-top-color: #1f8a5b; } .sf-step.done span { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- v2.7 — rail, mobility, climate, material exchange, external sources */
.mb-basis { margin: 4px 2px 14px; padding: 9px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.mb-map { height: 360px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mb-chart { position: relative; height: 300px; } .mb-chart.short { height: 190px; }
.mb-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 70px; padding: 4px 0 0; border-bottom: 1px solid var(--line); }
.mb-hours i { display: block; min-height: 1px; background: #5d6d7e; border-radius: 2px 2px 0 0; }
.mb-hours-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 8px; }
.mb-miss td { background: rgba(192, 57, 43, .07); } .mb-off td { opacity: .5; } .mb-here td { background: rgba(30, 142, 90, .09); }
.mb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; }
.mb-temp span { display: inline-block; min-width: 38px; padding: 2px 4px; border-radius: 4px; color: #fff; font: 700 12px/1.3 system-ui, sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.mb-warn { border-color: #e67e22; } .mb-wrow { padding: 6px 10px; margin: 4px 0; border-left: 4px solid #d4ac0d; background: var(--dom-soft); border-radius: 0 8px 8px 0; }
.mb-wrow.sev-severe { border-left-color: #e67e22; } .mb-wrow.sev-extreme { border-left-color: #c0392b; }
.mb-form { display: grid; gap: 10px; margin: 10px 0; } .mb-form.two { grid-template-columns: 1fr 1fr; }
.mb-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mb-form input, .mb-form select, .mb-form textarea { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--dom-panel); color: inherit; font: inherit; font-weight: 400; }
.mb-form small { font-weight: 400; }
.mb-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; } .mb-pick legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; } .mb-pick label { font-size: 13px; white-space: nowrap; }
.mb-key { width: 100%; padding: 10px; font: 600 13px/1.4 ui-monospace, Consolas, monospace; border: 1px dashed var(--accent); border-radius: 8px; background: var(--dom-soft); color: inherit; }
.mb-dest { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 5px 0 9px; font-size: 13px; } .mb-dest i { position: absolute; left: 0; bottom: 3px; height: 3px; background: #2f7d5b; border-radius: 2px; } .mb-dest em { font-style: normal; color: var(--muted); font-size: 12px; }
.mb-eq { margin-top: 6px; padding: 6px 10px; background: var(--dom-soft); border-radius: 8px; font-size: 13.5px; }
.mb-listing.offer { border-left: 4px solid #2f7d5b; } .mb-listing.request { border-left: 4px solid #2471a3; } .mb-matches { margin-top: 8px; font-size: 13px; }
.mb-pop { margin-left: auto; font-size: 13px; } .mb-small { font-size: 13px; font-weight: 500; line-height: 1.35; display: inline-block; }
.mb-tall { max-height: 420px; overflow: auto; } .mb-src td { vertical-align: top; } .mb-src td:first-child { min-width: 230px; } .mb-live { margin-top: 10px; }
a.dom-btn { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 800px) { .mb-form.two { grid-template-columns: 1fr; } }
.mb-src td:nth-child(2) { min-width: 260px; } .mb-src td:nth-child(3) { min-width: 170px; } .mb-src td:nth-child(4) { white-space: nowrap; text-align: right; }
/* v2.7.1 — live trains on the map */
.mb-map.mb-map-tall { height: 560px; } .mb-grow { flex: 1; } .mb-unoff { border-style: dashed; color: var(--muted); }
.mb-train { position: relative; width: 38px; height: 38px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid #1e8e5a; color: #1e8e5a; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 10px/1.05 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.mb-train b { font-size: 9px; color: #c0392b; letter-spacing: .2px; } .mb-train span { color: #1c2833; }
.mb-train i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -30px 0 0 -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid currentColor; transform-origin: 6px 30px; }
.mb-train.late1 { border-color: #d68910; color: #d68910; } .mb-train.late2 { border-color: #c0392b; color: #c0392b; } .mb-train.unk { border-color: #7f8c8d; color: #7f8c8d; }
.mb-train.est { border-style: dashed; } .mb-train.stale { background: #e5e8e8; opacity: .85; }
.mb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); } .mb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mb-lg { display: inline-block; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%; border: 3px solid #1e8e5a; background: #fff; }
.mb-lg.late1 { border-color: #d68910; } .mb-lg.late2 { border-color: #c0392b; } .mb-lg.gps { border-color: #5d6d7e; } .mb-lg.est { border-color: #5d6d7e; border-style: dashed; border-width: 2px; } .mb-lg.stale { border-color: #7f8c8d; background: #e5e8e8; }
.mb-trpop { font-size: 13px; line-height: 1.45; min-width: 190px; } .mb-trpop .late1, .dom-table td.late1 { color: #b9770e; font-weight: 700; } .mb-trpop .late2, .dom-table td.late2 { color: #c0392b; font-weight: 700; } .mb-trpop .ok { color: #1e8e5a; font-weight: 700; } .mb-trpop a { display: inline-block; margin-top: 4px; }
.mb-trrow { cursor: pointer; } .mb-trrow:hover td { background: var(--dom-soft); }
/* v2.7.2 — live delay next to the timetable */
.mb-late1 { color: #b9770e; font-weight: 700; } .mb-ok { color: #1e8e5a; font-weight: 700; }

/* v2.7.4 — "explain step by step" on the proposals of the assistant */
.mb-ai-scroll { max-height: min(78vh, 900px); }
.mb-steps-btn { margin-top: 6px; } .mb-steps-btn.on { border-color: var(--accent); color: var(--accent); }
.mb-steps-row > td { padding: 0 !important; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.mb-steps { padding: 12px 16px 14px; border-left: 3px solid var(--accent); font-size: 13.5px; }
.mb-steps h4 { margin: 0 0 6px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.mb-steps ol { margin: 6px 0 8px 20px; padding: 0; } .mb-steps li { margin: 4px 0; line-height: 1.45; }
.mb-steps-note { font-weight: 600; margin: 4px 0 6px; }
.mb-steps-ai { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mb-steps-text { white-space: pre-line; margin: 6px 0 8px; line-height: 1.5; }

/* v2.8 — a stop the train has (by estimate) already left */
.mb-passed td { opacity: .5; }

/* v2.11 — the traffic plan of an event */
.tp-swatch { display: inline-block; width: 16px; height: 6px; border-radius: 3px; margin: 0 6px 2px 0; vertical-align: middle; }
.tp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 0; vertical-align: middle; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tp-legend { margin: 6px 0 2px; } .tp-legend .tp-swatch, .tp-legend .tp-dot { margin-left: 12px; } .tp-legend .tp-swatch:first-child { margin-left: 0; }
.tp-zone { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.tp-zone-h { display: flex; align-items: center; gap: 8px; } .tp-zone-h input[data-f="name"] { flex: 1; min-width: 0; } .tp-zone-h button { padding: 4px 10px; font-size: 12px; }
.tp-rad { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; } .tp-rad input { width: 84px; }
.tp-zone-f { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; } .tp-zone-f .dom-check { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; } .tp-zone-f input { width: auto; }
.tp-kind { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0 0 0 auto; } .tp-kind select { width: auto; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tp-line { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 5px; color: #fff; font-weight: 700; font-size: 12.5px; text-align: center; }
.tp-adv { margin: 6px 0; } .tp-adv ul { margin: 3px 0 0; padding-left: 20px; } .tp-adv li { margin-bottom: 3px; line-height: 1.45; }
.tp-detours td { vertical-align: top; }
#tpPanel h4 { margin: 14px 0 6px; }
#tpPanel textarea { width: 100%; box-sizing: border-box; } #tpPanel .dom-chip[hidden] { display: none; } #tpPanel h3 .dom-chip { margin-left: 8px; }
