:root {
  --ink: #16212b;
  --muted: #5b6876;
  --line: #dde3e9;
  --bg: #f1f4f6;
  --panel: #ffffff;
  --accent: #0b6e99;
  --accent-dark: #085676;
  --accent-soft: #e3f1f7;
  --top: #14232f;
  --ok: #1a7f4b;
  --ok-soft: #e2f4ea;
  --warn: #8a5a00;
  --warn-soft: #fdf0d2;
  --wait: #475569;
  --wait-soft: #e8ecf0;
  --bad: #b3261e;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(16, 28, 38, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid #1fa3c9; outline-offset: 2px; }
.icon { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
code { background: #e8edf1; padding: 1px 5px; border-radius: 4px; }

/* ---------------------------------------------------------------- top bar */
#top { flex: none; height: 52px; display: flex; align-items: stretch; gap: 20px; padding: 0 14px; background: var(--top); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand div { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 15px; letter-spacing: 0.04em; }
.brand span { font-size: 11px; color: #9fb3c2; }
#tabs { display: flex; align-items: stretch; gap: 2px; margin-left: 8px; min-width: 0; }
#tabs button { display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; background: none; color: #b9c8d3; font-weight: 500; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
#tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
#tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #1fa3c9; background: rgba(255, 255, 255, 0.09); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pill { border: 1px solid #e0a800; background: rgba(224, 168, 0, 0.14); color: #ffd666; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill:hover { background: rgba(224, 168, 0, 0.26); }
.user { display: flex; align-items: center; gap: 8px; }
.user div { display: flex; flex-direction: column; line-height: 1.15; }
.user strong { font-size: 12.5px; font-weight: 600; }
.user span { font-size: 11px; color: #9fb3c2; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #2c4a5e; color: #fff !important; display: grid; place-items: center; font-weight: 600; font-size: 12px !important; }

/* ---------------------------------------------------------------- layout */
#app { flex: 1; min-height: 0; display: grid; grid-template-columns: 304px minmax(0, 1fr) 324px; }
.panel { background: var(--panel); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#left { border-right: 1px solid var(--line); }
#right { border-left: 1px solid var(--line); }
.panel-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 14px 8px; }
.panel-head h2 { font-size: 16px; font-weight: 650; }
.panel-head p { font-size: 12px; margin-top: 1px; }
.count { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; min-width: 26px; text-align: center; padding: 1px 8px; font-weight: 600; font-size: 12px; color: var(--muted); }
.panel-foot { flex: none; padding: 10px 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: #fbfcfd; }
.summary-text { flex: none; padding: 0 14px 10px; color: var(--muted); font-size: 12.5px; }
.empty-state { padding: 22px 14px; text-align: center; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid #c6d0d9; border-radius: 6px; background: #fff; font-weight: 550; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: #93a3b1; background: #f6f8fa; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: 0.5; }
.btn.block { width: 100%; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.icon-btn { flex: none; border: 0; background: none; padding: 4px; border-radius: 5px; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: #edf1f4; color: var(--ink); }

.search { flex: none; display: flex; align-items: center; gap: 7px; margin: 0 14px 10px; padding: 0 9px; border: 1px solid #c6d0d9; border-radius: 6px; color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; padding: 6px 0; background: none; color: var(--ink); min-width: 0; }

/* ---------------------------------------------------------------- areas */
.area-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; display: grid; gap: 6px; align-content: start; }
.area-card { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.area-card:hover { border-color: #a9b8c5; }
.area-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #f7fbfd; }
.thumb { flex: none; width: 62px; height: 62px; border-radius: 6px; overflow: hidden; background: #dfe6ec; display: grid; place-items: center; color: #7d8c99; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.empty { background: repeating-linear-gradient(135deg, #e6ebf0 0 6px, #f1f4f6 6px 12px); }
.area-card .body { flex: 1; min-width: 0; display: grid; gap: 2px; align-content: start; }
.area-card .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.area-card strong { font-weight: 600; overflow-wrap: anywhere; }
.meta { font-size: 11.5px; color: var(--muted); }
.note { font-size: 11.5px; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 3px 6px; margin-top: 3px; }
.badge { flex: none; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.badge.ready { background: var(--ok-soft); color: var(--ok); }
.badge.processing { background: var(--warn-soft); color: var(--warn); }
.badge.queued { background: var(--wait-soft); color: var(--wait); }
.progress { height: 5px; border-radius: 3px; background: #e6ebf0; overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: #e0a100; border-radius: 3px; transition: width 0.9s linear; }
.quota { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.quota strong { color: var(--ink); }

/* ---------------------------------------------------------------- order form */
.order-form { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: grid; gap: 14px; align-content: start; }
.order-form section { display: grid; gap: 8px; }
.order-form section.disabled { opacity: 0.5; }
.order-form h3, .fb-form h3 { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.step { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 11.5px; }
.extent { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--accent-soft); }
.extent strong { font-size: 16px; }
.extent span { font-size: 12px; color: var(--muted); }
.extent.bad { background: #fdecea; }
.error { color: var(--bad); font-size: 12px; font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); min-height: 0; }
.fld { display: grid; gap: 4px; font-weight: 550; font-size: 12.5px; }
.fld input[type="text"], .fld textarea { font-weight: 400; border: 1px solid #c6d0d9; border-radius: 6px; padding: 7px 9px; width: 100%; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.scene-list { display: grid; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-weight: 400; }
.scene { display: flex; align-items: center; gap: 8px; padding: 5px 9px; cursor: pointer; }
.scene + .scene { border-top: 1px solid var(--line); }
.scene:has(input:checked) { background: var(--accent-soft); }
.scene .cloud { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.scene .cloud.high { color: var(--warn); }
.checks { display: grid; gap: 5px; font-weight: 400; }
.checks label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.checks.inline { display: flex; gap: 14px; flex-wrap: wrap; }
.checks i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.checks .muted { margin-left: auto; font-size: 11.5px; }
.order-form .summary { border-top: 1px solid var(--line); padding-top: 10px; gap: 4px; }
.order-form .summary div { display: flex; justify-content: space-between; font-size: 12.5px; }
.order-form .summary span { color: var(--muted); }
.actions { display: flex; gap: 8px; justify-content: flex-end; }

.seg { display: flex; border: 1px solid #c6d0d9; border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { flex: 1 1 auto; border: 0; background: none; padding: 5px 7px; font-size: 12px; white-space: nowrap; font-weight: 550; display: flex; align-items: center; justify-content: center; gap: 5px; flex-direction: row; line-height: 1.2; }
.seg button + button { border-left: 1px solid #c6d0d9; }
.seg button:hover:not(:disabled):not(.on) { background: #f1f4f6; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:disabled { opacity: 0.45; }
.seg small { display: block; font-weight: 400; font-size: 10.5px; opacity: 0.85; }
.seg button:has(small) { flex-direction: column; gap: 0; }

/* ---------------------------------------------------------------- feedback */
.add-row { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 6px; }
#right > .small { flex: none; padding: 0 14px 10px; }
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.chip i, .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fb-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; display: grid; gap: 6px; align-content: start; }
.fb-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; display: grid; gap: 6px; cursor: pointer; background: #fff; }
.fb-item:hover { border-color: #a9b8c5; }
.fb-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #f7fbfd; }
.fb-top { display: flex; align-items: center; gap: 7px; }
.fb-top strong { font-weight: 600; flex: 1; }
.fb-top .shape { color: var(--muted); }
.fb-item p { overflow-wrap: anywhere; }
.ctx { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; background: #edf1f4; border-radius: 4px; padding: 1px 6px; color: #3b4855; }
.tag.strong { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.tag.obj { background: #ede7f6; color: #4a2f8a; font-weight: 600; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.fb-item .meta { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }

.fb-form { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: grid; gap: 13px; align-content: start; }
.fb-form h3 span { font-weight: 400; font-size: 12px; }
.ctx-box { background: #f6f8fa; border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; display: grid; gap: 5px; }
.lbl, legend { font-size: 12.5px; font-weight: 550; padding: 0; margin-bottom: 5px; }
.ctx-box .lbl { font-size: 11.5px; color: var(--muted); margin: 0; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat input, .rating input { position: absolute; opacity: 0; pointer-events: none; }
.cat span { display: flex; align-items: center; gap: 6px; border: 1px solid #c6d0d9; border-radius: 6px; padding: 6px 8px; font-size: 12px; cursor: pointer; height: 100%; }
.cat i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.cat input:checked + span { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); font-weight: 600; }
.cat input:focus-visible + span, .rating input:focus-visible + span { outline: 2px solid #1fa3c9; outline-offset: 2px; }
.rating { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rating label span { display: grid; place-items: center; width: 30px; height: 28px; border: 1px solid #c6d0d9; border-radius: 6px; cursor: pointer; font-weight: 600; }
.rating input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rating .scale { font-size: 11px; flex-basis: 100%; }

/* ---------------------------------------------------------------- map stage */
#stage { position: relative; min-width: 0; overflow: hidden; background: #dfe5ea; }
.map { position: absolute; inset: 0; }
#stage.with-table .map { bottom: 240px; }
#map-b { display: none; }
/* no z-index on the maps: popups must be able to rise above the floating panels */
.maplibregl-popup { z-index: 7; }
.maplibregl-ctrl-attrib.maplibregl-compact { max-width: 380px; }
#stage.compare #map-b { display: block; }
#stage.compare #map-a { pointer-events: none; background: transparent; }
#stage.compare #map-a .maplibregl-canvas, #stage.compare #map-a .maplibregl-marker, #stage.compare #map-a .maplibregl-popup-content, #stage.compare #map-a .maplibregl-ctrl { pointer-events: auto; }
#stage.tooling .maplibregl-canvas { cursor: crosshair; }
.float { position: absolute; z-index: 5; background: rgba(255, 255, 255, 0.97); border-radius: var(--radius); box-shadow: var(--shadow); }

#swipe { display: none; position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 32, 0.45); cursor: ew-resize; touch-action: none; }
#stage.with-table #swipe { bottom: 240px; }
#swipe::before { content: ""; position: absolute; inset: 0 -12px; }
#swipe .grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 999px; padding: 5px 9px 7px; font-size: 17px; font-weight: 700; line-height: 1; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); border: 1px solid rgba(15, 23, 32, 0.3); letter-spacing: 1px; }
/* above the floating panels (5), below the results table (6, later in the DOM) */
.swipe-label { display: none; position: absolute; z-index: 6; top: calc(50% + 28px); background: rgba(20, 35, 47, 0.88); color: #fff; padding: 4px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
#swipe-left { right: calc(100% - var(--x, 50%) + 10px); }
#swipe-right { left: calc(var(--x, 50%) + 10px); }
#stage.compare #swipe, #stage.compare .swipe-label { display: block; }

#layers { top: 12px; left: 12px; width: 272px; max-height: calc(100% - 24px); display: flex; flex-direction: column; }
#stage.with-table #layers { max-height: calc(100% - 264px); }
.lp-head { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 12px; font-weight: 650; font-size: 13px; text-align: left; }
.lp-head .chev { margin-left: auto; color: var(--muted); transition: transform 0.15s; }
#layers.collapsed .chev { transform: rotate(-90deg); }
#layers.collapsed .lp-body { display: none; }
#layers.collapsed { width: auto; }
.lp-body { overflow-y: auto; padding: 2px 12px 12px; display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.field { display: grid; gap: 5px; }
.field > label:first-child { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.radio-list { display: grid; gap: 4px; }
.radio-list label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.slider { display: grid; grid-template-columns: auto 1fr 44px; align-items: center; gap: 8px; font-size: 12px; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; color: var(--ink) !important; }
.slider.disabled { opacity: 0.45; }
.slider input { width: 100%; accent-color: var(--accent); }
.slider output { text-align: right; font-variant-numeric: tabular-nums; }
.checks.classes label { font-size: 12px; }
.stats { font-size: 11.5px; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); margin: 0; }

#tools { top: 12px; right: 52px; display: flex; overflow: hidden; }
#tools button { border: 0; background: none; padding: 7px 10px; display: flex; align-items: center; gap: 6px; font-weight: 550; font-size: 12.5px; }
#tools button + button { border-left: 1px solid var(--line); }
#tools button:hover { background: #f1f4f6; }
#tools button.on { background: var(--accent); color: #fff; }

#tool-hint { bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; background: rgba(20, 35, 47, 0.94); color: #fff; max-width: calc(100% - 300px); }
#stage.with-table #tool-hint { bottom: 256px; }
#tool-hint[hidden] { display: none; }
#tool-hint .hint-live { color: #ffd23f; white-space: nowrap; font-variant-numeric: tabular-nums; }
#tool-hint button { border: 1px solid rgba(255, 255, 255, 0.35); background: none; color: #fff; border-radius: 5px; padding: 3px 9px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
#tool-hint button:hover { background: rgba(255, 255, 255, 0.14); }
#tool-hint button.primary { background: #1fa3c9; border-color: #1fa3c9; }

#legend { left: 12px; bottom: 12px; width: 272px; padding: 9px 11px; display: grid; gap: 5px; z-index: 4; }
#stage.with-table #legend { bottom: 252px; }
#legend[hidden] { display: none; }
.lg-title { font-weight: 650; font-size: 12.5px; }
.ramp { height: 10px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.15); }
.ramp-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
#legend .classes { display: grid; gap: 3px; font-size: 12px; }
#legend .classes span { display: flex; align-items: center; gap: 6px; }
#legend .classes i { width: 14px; height: 10px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.15); flex: none; }
.lg-note { font-size: 11px; color: var(--muted); }
.lg-note em { font-style: normal; color: var(--warn); font-weight: 600; }

#loading { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 18px; font-weight: 550; max-width: 420px; text-align: center; }
#loading[hidden] { display: none; }

.measure-label { background: rgba(20, 35, 47, 0.94); color: #fff; border-radius: 6px; padding: 3px 4px 3px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow); }
.measure-label strong { color: #ffd23f; font-variant-numeric: tabular-nums; }
.measure-label span { color: #c5d2dc; }
.measure-label button { border: 0; background: none; color: #c5d2dc; padding: 2px; display: grid; border-radius: 4px; }
.measure-label button:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------------------------------------------------------------- table of results */
#table { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 240px; background: #fff; border-top: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 -2px 10px rgba(16, 28, 38, 0.12); }
#table[hidden] { display: none; }
.tb-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); }
.tb-head .tabs { display: flex; gap: 2px; }
.tb-head .tabs button { border: 0; background: none; padding: 6px 10px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tb-head .tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.tb-head .muted { font-size: 12px; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-scroll { flex: 1; overflow: auto; }
#table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
#table th { position: sticky; top: 0; background: #f6f8fa; text-align: left; padding: 6px 10px; font-weight: 600; white-space: nowrap; cursor: pointer; border-bottom: 1px solid var(--line); user-select: none; }
#table th.sorted { color: var(--accent-dark); }
#table td { padding: 5px 10px; border-bottom: 1px solid #edf1f4; white-space: nowrap; }
#table tbody tr { cursor: pointer; }
#table tbody tr:hover { background: var(--accent-soft); }
.level { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.level::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* ---------------------------------------------------------------- popups, toasts, dialog */
.maplibregl-popup-content { padding: 11px 13px; border-radius: var(--radius); font: inherit; font-size: 12.5px; box-shadow: var(--shadow); }
.maplibregl-popup-close-button { font-size: 18px; padding: 2px 7px; color: var(--muted); }
.pop-title { font-weight: 650; font-size: 13px; display: flex; align-items: center; gap: 6px; padding-right: 16px; margin-bottom: 5px; }
.pop-feature table { border-collapse: collapse; width: 100%; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pop-feature th { text-align: left; font-weight: 400; color: var(--muted); padding: 1px 10px 1px 0; }
.pop-feature td { text-align: right; font-weight: 550; padding: 1px 0; }
.pop-feature .btn { margin-top: 7px; width: 100%; }
.pop-fb p { margin-bottom: 5px; overflow-wrap: anywhere; }

#toasts { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--top); color: #fff; border-radius: 7px; padding: 9px 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; animation: toast-in 0.2s ease-out; }
.toast button { border: 0; background: none; color: #6fd3ee; font-weight: 650; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

dialog { border: 0; border-radius: 12px; padding: 0; max-width: 560px; width: calc(100% - 40px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); color: var(--ink); }
dialog::backdrop { background: rgba(15, 23, 32, 0.5); }
dialog form { padding: 22px 24px; display: grid; gap: 10px; }
dialog h2 { font-size: 18px; }
dialog h3 { font-size: 13.5px; margin-top: 4px; }
dialog ul { list-style: disc; padding-left: 18px; display: grid; gap: 4px; }
dialog .actions { margin-top: 8px; justify-content: space-between; }

@media (max-width: 1250px) {
  #app { grid-template-columns: 270px minmax(0, 1fr) 290px; }
  #tabs button span { display: none; }
  .user div { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
