/* Spojovací study pages (layouts/viewer): the minimal chrome, the info layers and the layout switcher.
   Loaded after styles.css (the engine's, unchanged). Czech UI. */

/* ------------------------------------------------------------- fewer chips: one scene control */
/* The context, season and before / after live in the proposal chip (Před | Po and "Ortofoto · bez listí ▾"); the
   separate ground and season chips leave the row (their choices are in the scene menu, Layers and the time card). */
body.study #groundCtl, body.study #groundChip, body.study #seasonChip,
body.study .chipbar #groundCtl, body.study .chipbar #groundChip, body.study .chipbar #seasonChip { display: none !important; }
/* The site pill keeps the words "Visual-study placement" in the credits only (no duplicated label). */
.study .vs-badge { display: none !important; }
/* The chip shows the compact proposal label ("Návrh · nepostaveno"); the full one stays its name, title and ⓘ note. */
.study .proposal-chip .pl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.study .proposal-chip .pl-short { display: inline; }
.study .proposal-chip { gap: 6px; }

.scene-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 8px; margin-left: 2px; border: 0;
  border-left: 1px solid var(--line-2); border-radius: 0 8px 8px 0; background: transparent; cursor: pointer; font-size: 12.5px;
  color: var(--ink); white-space: nowrap;
}
.scene-btn:hover { background: var(--soft); }
.scene-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-left-color: var(--ink); }
.scene-btn .ico { width: 15px; height: 15px; flex: none; }
.scene-btn .sb-sea { color: var(--muted-text); }
.scene-btn[aria-expanded="true"] .sb-sea { color: #d8d8de; }
.scene-btn .sb-ctx + .sb-sea::before { content: '· '; }
body.maximized .scene-btn { display: none; }

/* the scene menu (#groundMenu): context radios, then the trees by date */
#groundMenu .scene-sec + .scene-sec { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 6px; }
#groundMenu .mh { padding: 6px 8px 4px; }
#groundMenu .key-dates { display: flex; gap: 4px; padding: 2px 8px 6px; flex-wrap: wrap; }
#groundMenu .tc-note { margin: 2px 8px 4px; font-size: 12px; line-height: 1.4; color: var(--muted-text); }
#groundMenu .tc-note.strong { color: var(--ink); }
#groundMenu .pz-row { display: flex; align-items: center; gap: 8px; padding: 2px 8px 6px; font-size: 12.5px; }

/* ------------------------------------------------------------- the layout switcher (site pill) */
.layout-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 9px; border-radius: 8px; flex: none;
  border: 1px solid rgba(95, 76, 236, 0.45); background: var(--white); color: var(--purple-ink); font-weight: 600; font-size: 12.5px;
  cursor: pointer; white-space: nowrap;
}
.layout-btn:hover { background: var(--purple-tint); }
.layout-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.layout-btn .ico { width: 14px; height: 14px; }
.pop.layout-menu { width: 360px; }
.layout-menu .mh { padding: 6px 8px 4px; }
.lay-opt {
  display: grid; grid-template-columns: 18px 1fr; gap: 1px 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font-size: 13px; align-items: center;
}
.lay-opt:hover { background: var(--soft); }
.lay-opt .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); grid-row: span 2; align-self: start; margin-top: 2px; }
.lay-opt.here .radio { border: 4.5px solid var(--purple); }
.lay-opt .t { font-weight: 600; }
.lay-opt .s { grid-column: 2; color: var(--muted-text); font-size: 11.5px; line-height: 1.35; }
.lay-h { margin-top: 4px; border-top: 1px solid var(--hair); padding-top: 8px !important; }
.layout-menu .mfoot { font-size: 11.5px; }

/* ------------------------------------------------------------- the Informace chip, panel and card */
.info-chip { border-color: rgba(13, 13, 13, 0.16); }
.info-chip.on { border-color: var(--ink); }
.info-chip .n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600;
  display: inline-grid; place-items: center;
}
.info-chip .n[hidden] { display: none; }
.chipbar > #infoChip { order: -1; }
body.maximized #infoPanel { display: none !important; }

.pop.info-card { width: 372px; }
.info-disc { margin: 0 16px 6px; font-size: 11.5px; line-height: 1.4; color: var(--muted-text); }
#infoList { padding: 0 8px 4px; }
.ig { border-top: 1px solid var(--hair); }
.ig > summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 6px; cursor: pointer; list-style: none; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-text);
}
.ig > summary::-webkit-details-marker { display: none; }
.ig > summary .ig-t { flex: 1; }
.ig > summary .ig-n { font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; font-weight: 500; }
.ig > summary .ig-c { width: 14px; height: 14px; transition: transform 0.15s; }
.ig[open] > summary .ig-c { transform: rotate(180deg); }
.il { padding: 2px 0 6px; }
.il + .il { border-top: 1px dashed var(--hair); }
.il-row { padding: 4px 4px 2px; font-size: 13px; }
.il-row .il-t { flex: 1; min-width: 0; }
.il.on .il-row .il-t { font-weight: 600; }
.il-busy { color: var(--muted-text); font-weight: 400; }
.il-sw { display: inline-flex; gap: 2px; flex: none; }
.il-sw i { display: block; width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.il-leg, .il-src, .il-note { margin: 0 4px 0 28px; font-size: 11.5px; line-height: 1.4; color: var(--muted-text); }
.il-leg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.il-note { margin-top: 3px; padding: 5px 8px; background: var(--soft); border-radius: 6px; color: var(--ink); }
.il-src a, .ic-src a { color: var(--purple-ink); text-decoration: none; white-space: nowrap; }
.il-src a:hover, .ic-src a:hover { text-decoration: underline; }
.il-src .ico, .ic-src .ico { width: 11px; height: 11px; vertical-align: -1px; margin-left: 1px; }
.il-dlico { margin-right: 2px; }
.kind { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 16px; background: var(--soft-2); color: var(--ink); }
.kind-official { background: #e3f2ea; color: #1e5a3c; }
.kind-measured { background: #e6eefb; color: #23457a; }
.kind-computed { background: #fff3d6; color: #6b4a00; }
.kind-estimate { background: #fde8e1; color: #7a2e1c; }
.kind-illustrative { background: var(--na-tint); color: var(--muted-text); }
.info-foot { justify-content: space-between; }
.info-foot a { color: var(--purple-ink); font-weight: 500; text-decoration: none; }

.pop.info-feat {
  width: 330px; right: calc(var(--gap) + var(--drawer-space)); top: var(--chrome-top); left: auto; bottom: auto;
  max-height: calc(100% - var(--chrome-top) - var(--chrome-bottom)); z-index: 29;
}
.info-feat .pop-head { padding: 8px 6px 4px 12px; gap: 6px; }
.info-feat .pop-head h2 { font-size: 14px; line-height: 1.25; }
.info-feat .ic-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.info-feat .ic-pager { display: inline-flex; align-items: center; gap: 0; font-size: 12px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.info-feat .ic-pager .xbtn { width: 26px; height: 26px; font-size: 18px; line-height: 1; }
.info-feat .ic-pager .xbtn:disabled { opacity: 0.35; cursor: default; }
.ic-body { padding: 0 14px 12px; font-size: 12.5px; }
.ic-layer { color: var(--muted-text); font-size: 12px; margin-bottom: 6px; }
.ic-kv { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 4px 10px; margin: 0 0 8px; }
.ic-kv dt { color: var(--muted-text); }
.ic-kv dd { margin: 0; overflow-wrap: anywhere; }
.ic-note { margin: 6px 0; padding: 6px 8px; background: var(--soft); border-radius: 6px; font-size: 12px; line-height: 1.4; }
.ic-src { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted-text); }
body.maximized .info-feat { top: calc(var(--gap) + 48px); }

/* ------------------------------------------------------------- tablet, phone, short windows */
@media (max-width: 1023px) {
  .chipbar > #infoChip { order: 0; }
}
@media (max-width: 640px) {
  .layout-btn { height: 26px; padding: 0 4px 0 7px; font-size: 12px; }
  .pop.layout-menu { left: var(--gap) !important; right: var(--gap) !important; width: auto; }
  .scene-btn { padding: 0 4px 0 6px; }
  .scene-btn .sb-sea, .scene-btn .sb-ctx { display: none; }
  .pop.info-feat { left: 0; right: 0; top: auto; bottom: var(--credits-h); width: auto; max-height: 52%; border-radius: 16px 16px 0 0; z-index: 27; }
  .study .proposal-chip { justify-content: flex-start; }
  .study .proposal-chip .plabel { flex: 1 1 auto; white-space: nowrap; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .scene-btn .sb-sea, .scene-btn .sb-ctx { display: none; }
  .info-chip .lbl { display: none; }
}

/* ------------------------------------------------------------- Task Z: minimal chrome (layouts/viewer/README.md 7) */
/* One "Pohled ▾" menu replaces the five view radios (Analysis is entered by picking an analysis); Sdílet, Panel území,
   Vrstvy modelu, Měřit and Klávesy move into one "⋯" menu. The engine's buttons stay in the page for their handlers. */
.view-btn { display: none; }
body.study .view-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 8px; border: 0; border-radius: calc(var(--radius) - 1px);
  background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
body.study .view-btn:hover { background: var(--soft); }
body.study .view-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
body.study .view-btn .sw { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
body.study .view-btn .k { color: var(--muted-text); }
body.study .view-btn[aria-expanded="true"] .k { color: #d8d8de; }
body.study .view-btn .ico { width: 14px; height: 14px; }
body.study #modeGroup, body.study #shareBtn, body.study #rightToggle, body.study #leftToggle, body.study .tools .tool-pill { display: none !important; }
.pop.view-menu { width: 300px; }
.pop.more-menu { width: 300px; }
.view-menu .mh { padding: 6px 8px 4px; }
.view-menu .mode-item, .more-views .mode-item {
  display: grid; grid-template-columns: 18px 1fr; gap: 0 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent;
  text-align: left; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; align-items: center;
}
.view-menu .mode-item:hover, .more-views .mode-item:hover { background: var(--soft); }
.view-menu .mode-item[aria-checked="true"], .more-views .mode-item[aria-checked="true"] { background: var(--purple-tint); }
.view-menu .mode-item .sw, .more-views .mode-item .sw { width: 14px; height: 14px; border-radius: 4px; grid-row: span 2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.view-menu .mode-item .t, .more-views .mode-item .t { font-weight: 600; }
.view-menu .mode-item .s, .more-views .mode-item .s { grid-column: 2; font-size: 11.5px; color: var(--muted-text); }
.view-menu .mfoot { font-size: 11.5px; }
.more-list { display: flex; flex-direction: column; padding: 4px; }
.more-item { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.more-item:hover, .more-item:focus-visible { background: var(--soft); }
.more-views { display: none; }
body.study .more-btn .ico { width: 18px; height: 18px; }
/* the badge of a picked proposal object wraps instead of overflowing the panel */
.badge.proposal { white-space: normal; overflow-wrap: anywhere; max-width: 100%; display: inline-block; line-height: 1.35; }

/* the info layers' point labels: screen-space HTML anchored to their 3D points (constant pixel size) */
.info-labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.info-label {
  position: absolute; left: 0; top: 0; margin: -9px 0 0 8px; padding: 1px 5px; border-radius: 4px; white-space: nowrap;
  font: 600 12px/16px var(--font); color: #0d0d0d; background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.info-label[hidden] { display: none; }
body.maximized .info-labels { z-index: 2; }
/* the info layers' legend under the analysis legend */
.legend.info-legend { margin-top: 6px; padding: 6px 10px; font-size: 12px; }
.info-legend .il-h { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-text); margin-bottom: 2px; }
.info-legend .il-row { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.info-legend .il-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.info-legend .il-more { color: var(--muted-text); font-size: 11.5px; }
.legend.info-legend[hidden] { display: none; }

@media (max-width: 1023px) {
  /* tablet and phone: no view row (the views are in ⋯); the chips move up into row 2 */
  body.study .viewbar { display: none !important; }
  body.study .chipbar { top: var(--row2); }
  body.study .more-views { display: block; border-top: 1px solid var(--hair); margin-top: 2px; padding: 4px; }
}
@media (max-width: 640px) {
  /* phone: no scale bar either */
  body.study #scalebar { display: none !important; }
  .pop.more-menu { left: var(--gap) !important; right: var(--gap) !important; width: auto; }
  .legend.info-legend { display: none; }
}
.panel-lang-note { margin: 0 14px 6px; padding: 5px 8px; border-radius: 6px; background: var(--soft); font-size: 11.5px; line-height: 1.4; color: var(--muted-text); }

/* Task DL (30. 10. 2026): downloads are buttons run by src/dl.js (the host's downloads capability); they look like
   the links they replace. <html data-dl="off">: this view cannot save, the download parts are hidden or disabled. */
.il-src button.il-dl, .ic-src button.il-dl { font: inherit; color: var(--purple-ink); background: none; border: 0; padding: 0; margin: 0; cursor: pointer; white-space: nowrap; line-height: inherit; }
.il-src button.il-dl:hover, .ic-src button.il-dl:hover { text-decoration: underline; }
.info-foot button#infoAll { color: var(--purple-ink); font-weight: 500; text-decoration: none; }
.info-foot button#infoAll:hover { text-decoration: underline; }
button.dl-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.dl-item .dl-st { flex: none; margin-left: 4px; }
.dl-all-row { margin: 2px 0 10px; }
.dl-all-row .link-btn { font-weight: 600; }
.dlb[aria-busy="true"] { cursor: progress; opacity: .75; }
.dlb[aria-disabled="true"] { opacity: .5; cursor: not-allowed; text-decoration: none; }
.dlb:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 3px; }
.dl-st { margin-left: 6px; font-size: 11.5px; color: var(--muted-text); white-space: nowrap; }
.dl-st:empty { display: none; }
.dl-st[data-state="saved"] { color: var(--ok); }
.dl-st[data-state="unavailable"], .dl-st[data-state="format_off"], .dl-st[data-state="error"], .dl-st[data-state="too_large"] { color: var(--bad); }
.dl-off-note { display: none; }
[data-dl="off"] .dl-off-note { display: block; }
[data-dl="off"] .dl-x { display: none !important; }
.dl-not-here { margin-top: 10px; }

/* v9: editor */
/* "✎ Upravit objemy" (actions bar) and its panel (src/ui/editpanel.js): a side panel over the live 3D, a bottom sheet on a
   phone; the impact block stays on top while the list and the controls scroll. Tones: green within, amber near, red over. */
.ed-btn { position: relative; }
.ed-btn .ed-glyph { font-size: 16px; line-height: 1; width: 18px; text-align: center; }
.ed-btn .ed-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px var(--white); }
.ed-btn[aria-pressed="true"] .ed-dot { box-shadow: 0 0 0 2px var(--purple-tint); }
/* open: a purple tint, so ▶ Prezentace beside it stays the one ink (primary) button */
body.study #editBtn[aria-pressed="true"], body.study #editBtn[aria-pressed="true"]:hover {
  background: var(--purple-tint); color: var(--purple-ink); box-shadow: inset 0 0 0 1.5px var(--purple);
}
/* an edited layout: the proposal chip says so ("… · upraveno"; its name and title too) */
.proposal-chip .pl-ed { display: none; }
body.ed-edited .proposal-chip .pl-ed { display: inline; color: var(--purple); }
/* the editor's note in an impact overlay's legend (computed for the original layout) */
.legend .ed-legend-note { font-size: 11.5px; font-weight: 500; color: var(--purple-ink); background: var(--purple-tint); border-radius: 6px; padding: 3px 7px; margin-top: 6px; box-shadow: inset 2px 0 0 var(--purple); }
/* the impact block's one-line summary (the phone sheet only) */
.ed-isum { display: none; }
.ed-panel {
  position: fixed; z-index: 25; right: var(--gap); top: var(--chrome-top); bottom: var(--chrome-bottom); width: min(360px, calc(100vw - 2 * var(--gap)));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift-strong);
  display: flex; flex-direction: column; overflow: hidden; font-size: 12.5px; line-height: 1.4;
}
.ed-grip { display: none; flex: none; padding: 7px 0 2px; cursor: ns-resize; touch-action: none; }
.ed-grip span { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto; }
.ed-head { display: flex; align-items: center; gap: 0; padding: 8px 6px 6px 14px; border-bottom: 1px solid var(--hair); flex: none; }
.ed-tt { flex: 1; min-width: 0; }
.ed-tt h2 { font-size: 15px; margin: 0; outline: none; }
.ed-sub { font-size: 11.5px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-head .xbtn:disabled { opacity: 0.35; cursor: default; background: transparent; }
.ed-head .xbtn .ico { width: 17px; height: 17px; }
.ed-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.ed-impact { position: sticky; top: 0; z-index: 1; background: var(--white); padding: 10px 14px 8px; border-bottom: 1px solid var(--hair); box-shadow: 0 6px 10px -10px rgba(0, 0, 0, 0.25); }
.ed-k { color: var(--muted-text); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.ed-k em { font-style: normal; font-weight: 400; }
.ed-v { display: block; font-variant-numeric: tabular-nums; }
.ed-v b { font-size: 14px; font-weight: 600; }
.ed-d { margin-left: 6px; font-size: 11.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.ed-s { font-size: 11.5px; color: var(--muted-text); }
.ed-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ed-kv .ed-v b { font-size: 16px; }
.ed-hpp { padding-bottom: 6px; }
.ed-bar { position: relative; height: 8px; margin: 5px 0 3px; border-radius: 4px; background: var(--soft-2); }
.ed-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ok); }
.ed-hpp.t-near .ed-bar i { background: #c98a00; }
.ed-hpp.t-over .ed-bar i { background: var(--bad); }
.ed-bar .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.ed-bar .mk.m95 { background: var(--muted); }
.ed-bar .mk.mpdf { width: 0; border-left: 2px dashed var(--ink); background: none; }
.ed-rows { display: flex; flex-direction: column; }
.ed-r { position: relative; display: grid; grid-template-columns: 124px 1fr; gap: 0 8px; padding: 4px 0 4px 12px; border-top: 1px solid var(--hair); align-items: baseline; }
.ed-r::before { content: ''; position: absolute; left: 1px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ed-r.t-none::before { background: var(--line-2); }
.ed-r.t-near::before { background: #c98a00; }
.ed-r.t-over::before { background: var(--bad); }
.ed-r.t-over .ed-v b { color: var(--bad); }
.ed-r.t-near .ed-v b { color: #6b4a00; }
.ed-r .ed-v { font-size: 12.5px; }
.ed-r .ed-v b { font-size: 13.5px; }
.ed-sl { display: block; }
.ed-hpp.t-near .ed-kv b { color: #6b4a00; }
.ed-hpp.t-over .ed-kv b { color: var(--bad); }
.ed-i { border: 0; background: none; padding: 0 2px; font: inherit; font-size: 12px; color: var(--purple-ink); cursor: pointer; line-height: 1; }
.ed-i[aria-expanded="true"] { color: var(--ink); }
.ed-info { margin: 4px 0 2px; padding: 5px 7px; border-radius: 6px; background: var(--soft); font-size: 11.5px; color: var(--ink); grid-column: 1 / -1; font-weight: 400; }
.ed-warn { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hair); font-size: 11.5px; }
.ed-warn summary { cursor: pointer; font-weight: 600; color: var(--bad); }
.ed-warn ul { margin: 4px 0 0; padding: 0 0 0 16px; max-height: 120px; overflow: auto; }
.ed-warn li { margin: 2px 0; }
.ed-po { margin: 6px 0 0; padding: 5px 8px; border-radius: 6px; background: var(--purple-tint); color: var(--purple-ink); font-size: 11.5px; }
.ed-pick { padding: 10px 14px 0; }
.ed-sel { padding: 6px 14px 4px; }
.ed-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ed-fk { font-size: 11.5px; color: var(--muted-text); margin-right: 2px; }
.ed-f { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.ed-f:hover { background: var(--soft); }
.ed-f[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ed-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; border: 1px solid var(--hair-strong); border-radius: var(--radius-s); }
.ed-list li { display: grid; grid-template-columns: 22px minmax(56px, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 2px 8px 2px 4px; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.ed-list li:first-child { border-top: 0; }
.ed-list li.on { background: var(--purple-tint); }
.ed-list li.rm .ed-name b { text-decoration: line-through; color: var(--muted-text); }
.ed-list input { margin: 0 0 0 4px; accent-color: var(--purple); }
.ed-name { border: 0; background: none; padding: 4px 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); white-space: nowrap; }
.ed-mark { color: var(--purple); font-weight: 700; margin-left: 3px; }
.ed-np, .ed-hp { font-size: 11.5px; color: var(--muted-text); white-space: nowrap; }
.ed-fl { font-size: 10.5px; font-weight: 600; padding: 0 5px; border-radius: 4px; line-height: 16px; white-space: nowrap; background: var(--na-tint); color: var(--muted-text); }
.ed-fl.ok { background: var(--ok-tint); color: var(--ok); }
.ed-fl.over { background: var(--bad-tint); color: var(--bad); }
.ed-ctl { padding: 8px 14px 4px; }
.ed-hint { margin: 4px 0 8px; color: var(--muted-text); }
.ed-selhead { margin: 2px 0 6px; }
.ed-row { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px dashed var(--hair); }
.ed-rl { font-size: 12px; color: var(--ink); }
.ed-rc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ed-step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; background: var(--white); }
.ed-step.off { opacity: 0.55; }
.ed-sb { width: 30px; height: 28px; border: 0; background: var(--white); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; color: var(--ink); }
.ed-sb:hover:not(:disabled) { background: var(--soft); }
.ed-sb:disabled { color: #b8b7c0; cursor: default; }
.ed-sv { min-width: 64px; padding: 0 6px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; border-left: 1px solid var(--hair-strong); border-right: 1px solid var(--hair-strong); line-height: 28px; }
.ed-tog { min-width: 44px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.ed-tog[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ed-tog[aria-checked="mixed"] { background: var(--purple-tint); border-color: var(--purple-light); }
.ed-tog:disabled { opacity: 0.5; cursor: default; }
.ed-sides { display: inline-flex; gap: 2px; }
.ed-side { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted-text); }
.ed-side[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ed-side:disabled { opacity: 0.45; cursor: default; }
.ed-chk { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.ed-chk input { accent-color: var(--purple); }
.ed-move { display: inline-grid; grid-template-columns: repeat(4, 30px); border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.ed-move .ed-sb + .ed-sb { border-left: 1px solid var(--hair-strong); }
.ed-skip, .ed-why { font-size: 11px; color: var(--muted-text); }
.ed-rowb { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; border-top: 1px dashed var(--hair); }
.ed-foot { padding: 8px 14px 12px; border-top: 1px solid var(--hair); }
.ed-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-foot .dl-st { margin-left: 0; }
.ed-note { margin: 8px 0 0; font-size: 11px; color: var(--muted-text); }
.ed-panel .btn.small[disabled] { opacity: 0.5; cursor: default; }
/* labels of the selected buildings: screen-space HTML anchored above their tops */
.ed-labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.ed-label {
  position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 6px; white-space: nowrap; font: 600 12px/16px var(--font);
  color: #fff; background: var(--purple); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ed-label.bad { background: var(--bad); }
.ed-label[hidden] { display: none; }
body.maximized .ed-panel, body.maximized .ed-labels { display: none !important; }
@media (max-width: 640px) {
  .ed-panel {
    left: 0; right: 0; top: auto; bottom: var(--credits-h); width: auto; height: 44%; max-height: 55%; border-radius: 16px 16px 0 0; z-index: 26;
  }
  /* the impact block folds to one line (tap: the full block); the 3D above the sheet keeps its room */
  .ed-isum {
    display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 12.5px;
    color: var(--ink); text-align: left; cursor: pointer; min-height: 32px; font-variant-numeric: tabular-nums;
  }
  .ed-isum-t { flex: 1; min-width: 0; }
  .ed-isum-w { color: var(--bad); font-weight: 600; }
  .ed-isum-c { flex: none; color: var(--muted-text); }
  .ed-impact:not(.open) > :not(.ed-isum):not(.ed-po) { display: none; }
  .ed-impact .ed-po { margin-top: 2px; }
  /* touch targets of at least 40 px */
  .ed-sb { width: 42px; height: 40px; font-size: 17px; }
  .ed-sv { line-height: 40px; min-width: 60px; }
  .ed-side { width: 40px; height: 40px; font-size: 13px; }
  .ed-tog { height: 40px; min-width: 56px; }
  .ed-move { grid-template-columns: repeat(4, 42px); }
  .ed-f { padding: 8px 12px; }
  .ed-name { padding: 10px 0; }
  .ed-grip { display: block; }
  .ed-head { padding: 2px 4px 4px 12px; }
  .ed-impact { padding: 6px 12px 6px; }
  .ed-kv .ed-v b { font-size: 14px; }
  .ed-hpp > .ed-s, .ed-sl { display: none; }
  .ed-r { padding-top: 2px; padding-bottom: 2px; grid-template-columns: 124px 1fr; }
  .ed-warn ul { max-height: 72px; }
  .ed-pick, .ed-sel, .ed-ctl, .ed-foot { padding-left: 12px; padding-right: 12px; }
  .ed-list { max-height: 160px; }
  .ed-row { grid-template-columns: 112px 1fr; }
}

/* v9: presentation */
/* "▶ Prezentace" (#presBtn, src/ui/presentation.js; the right-most, primary button of the actions bar, a screen icon
   below 1024 px) and the presentation over the live 3D: the slide card (bottom left; a bottom sheet on a phone), the bar
   (top right), the overview figure, the PDF dialog. body.pres-on hides the viewer's chrome like the full map; the
   proposal chip ("nepostaveno"), the credits, the legend and the info labels stay. */
.pres-btn { gap: 6px; padding: 0 12px 0 10px; }
.pres-btn .pres-tri { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.pres-btn .pres-scr { display: none; }
.pres-btn .pres-scr .f, .pres-b .ico .f { fill: currentColor; stroke: none; }
body.pres-on .chrome:not(.chipbar):not(#hudProposal):not(#attribution), body.pres-on .chipbar > :not(#hudProposal),
body.pres-on .scene-btn, body.pres-on .ed-panel, body.pres-on .ed-labels, body.pres-on #infoCard { display: none !important; }
body.pres-on .chipbar { top: var(--gap); left: var(--gap); right: auto; transform: none; width: auto; max-width: calc(100vw - 2 * var(--gap) - 480px); justify-content: flex-start; }
body.pres-on .chipbar::after { display: none; }
body.pres-on .hud.bl { left: auto; right: var(--gap); bottom: calc(var(--credits-h) + 10px); align-items: flex-end; max-width: 340px; }
body.pres-on .toast { top: calc(var(--gap) + 52px); bottom: auto; }
.pres-ui { position: fixed; inset: 0; z-index: 24; pointer-events: none; }
.pres-ui > * { pointer-events: auto; }
.pres-card {
  position: absolute; left: var(--gap); bottom: calc(var(--credits-h) + 10px); width: min(420px, calc(100vw - 2 * var(--gap)));
  max-height: calc(100% - var(--credits-h) - 2 * var(--gap) - 52px); overflow: auto; overscroll-behavior: contain; padding: 16px 18px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift-strong); font-size: 13px; line-height: 1.45;
}
.pres-kick { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple-ink); }
.pres-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-ink); font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.pres-title { margin: 6px 0 0; font-family: var(--font-head); font-size: 20px; line-height: 1.22; outline: none; }
.pres-lead { margin: 6px 0 0; color: #2a2a30; }
.pres-ednote { margin: 6px 0 0; padding: 5px 8px; border-radius: 6px; background: var(--purple-tint); color: var(--purple-ink); font-size: 12px; }
.pres-bul, .pres-warn { margin: 8px 0 0; padding: 0 0 0 16px; }
.pres-bul li { margin: 3px 0; }
.pres-bul li::marker { color: var(--purple); }
.pres-warn li { margin: 2px 0; color: var(--bad); font-size: 12px; }
.pres-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.pres-tile { min-width: 0; padding: 7px 9px; border-radius: var(--radius-s); background: var(--soft); }
.pres-tile.ed { box-shadow: inset 3px 0 0 var(--purple); }
.pres-tile .pres-tag { margin-bottom: 3px; }
.pres-tl { font-size: 11.5px; color: var(--muted-text); }
.pres-tv { font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-tv b { font-size: 17px; font-weight: 700; }
.pres-tv span { font-size: 12px; color: #2a2a30; }
.pres-tn { font-size: 11px; line-height: 1.35; color: var(--muted-text); }
/* the source and honesty lines: pinned to the bottom of a card that scrolls */
.pres-foot { position: sticky; bottom: -14px; margin: 10px -18px -14px; padding: 6px 18px 14px; background: var(--white); border-top: 1px solid var(--hair); }
.pres-src { margin: 0; font-size: 11.5px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-hon { margin: 6px 0 0; padding-left: 9px; border-left: 3px solid #c9c9cf; font-size: 11.5px; color: #2a2a30; }
.pres-hon.ed { border-left-color: var(--purple); color: var(--purple-ink); }
.pres-bar {
  position: absolute; top: var(--gap); right: var(--gap); height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 4px 2px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift);
}
.pres-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 8px; border: 0;
  border-radius: var(--radius-s); background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.pres-b:hover:not(:disabled) { background: var(--soft); }
.pres-b:disabled { color: #b8b7c0; cursor: default; }
.pres-b:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#presPlay, #presPlay:hover { background: var(--ink); color: #fff; }
.pres-n { min-width: 54px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted-text); }
.pres-pdf { margin-left: 2px; }
.pres-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--soft-2); }
.pres-prog i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--purple); }
.pres-fill { opacity: 0.5; transform: scaleX(0); transform-origin: left center; }
@keyframes pres-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pres-fig { position: absolute; top: calc(var(--gap) + 56px); right: var(--gap); width: 250px; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); }
.pres-fig img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pres-fig figcaption { margin-top: 5px; font-size: 11px; line-height: 1.35; color: var(--muted-text); }
.pres-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(246, 247, 243, 0.96); }
.pres-mcard { width: min(400px, calc(100vw - 32px)); }
.pres-mcard h2 { margin: 0 0 6px; font-size: 16px; }
.pres-mst { margin: 0 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pres-mnote { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-text); }
.pres-mfoot { display: flex; justify-content: flex-end; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .pres-fill { display: none; } }
@media (max-width: 1023px) {
  .pres-btn { padding: 0 8px; }
  .pres-btn .pres-tri { display: none; }
  .pres-btn .pres-scr { display: block; }
  .pres-pdf .lbl { display: none; }
}
/* a phone, and a narrow portrait window: the card is a bottom sheet (ui/presentation.js SHEET_MQ, the same queries) */
@media (max-width: 640px), (orientation: portrait) and (max-width: 1023px) {
  .pres-card { left: 0; right: 0; bottom: var(--credits-h); width: auto; height: 44%; max-height: none; padding: 12px 14px; border-radius: 16px 16px 0 0; }
  .pres-foot { bottom: -12px; margin: 8px -14px -12px; padding: 6px 14px 12px; }
  body.pres-on .hud.bl { top: calc(var(--gap) + 52px + 44px); bottom: auto; }
  body.pres-on .scale-row { display: none; }
  .pres-fig { display: none; }
}
@media (max-width: 640px) {
  body.pres-on .chipbar { top: calc(var(--gap) + 52px); right: var(--gap); max-width: none; }
  body.pres-on .hud.bl { max-width: calc(100vw - 2 * var(--gap)); }
  .pres-bar { left: var(--gap); justify-content: space-between; }
  .pres-title { font-size: 17px; }
}

/* v9: integration */
/* The one-line toolbar (src/ui/shell.js fitToolbar; ≥ 1024 px wide, > 500 px tall): the view button and the chip row
   follow the site pill on row 1, the actions stay right; each compaction step is a body class (tb-sea, tb-view,
   tb-scene, tb-brand, tb-ovk, tb-pz, tb-edit, tb-wrap). The full map and the presentation keep their own layout. */
body.study.tb1:not(.maximized):not(.pres-on) .site-pill { max-width: none; }
body.study.tb1:not(.maximized):not(.pres-on) .viewbar { left: var(--tb-vb-l, 50%); transform: none; }
body.study.tb1:not(.maximized):not(.pres-on) .chipbar {
  --h2: var(--h1);
  top: var(--row1); left: var(--tb-chip-l, 50%); transform: none; width: max-content; max-width: var(--tb-chip-w, none);
  justify-content: flex-start; flex-wrap: nowrap; row-gap: 8px;
}
body.study.tb1:not(.maximized):not(.pres-on) .chipbar > * { flex-shrink: 0; max-width: none; } /* natural widths: the fit measures them */
body.study.tb1:not(.maximized):not(.pres-on) .chipbar .chip, body.study.tb1:not(.maximized):not(.pres-on) .chipbar .proposal-chip { border-radius: var(--radius); }
body.study.tb1:not(.maximized):not(.pres-on) .chipbar .seg2 button, body.study.tb1:not(.maximized):not(.pres-on) .chipbar .scene-btn { height: 30px; }
body.study.tb1.tb-wrap:not(.maximized):not(.pres-on) .chipbar { flex-wrap: wrap; width: var(--tb-chip-w); }
body.study.tb1:not(.maximized):not(.pres-on) #infoPanel { left: var(--tb-info-l, var(--gap)); }
body.study.tb1 #maxBtn .lbl { display: none; }
body.study.tb1.tb-sea #sceneBtn .sb-sea, body.study.tb1.tb-scene #sceneBtn .sb-sea, body.study.tb1.tb-scene #sceneBtn .sb-ctx { display: none; }
body.study.tb1.tb-view #viewBtn .k { display: none; }
body.study.tb1.tb-brand .site-pill .brand .logo { display: none; }
body.study.tb1.tb-brand .site-pill .brand .symbol { display: block; }
body.study.tb1.tb-ovk .chipbar .chip .k { display: none; }
.proposal-chip .pl-tiny { display: none; }
body.study.tb1.tb-pz .proposal-chip .pl-short { display: none; }
body.study.tb1.tb-pz .proposal-chip .pl-tiny { display: inline; }
body.study.tb1.tb-edit #editBtn .lbl { display: none; }
/* the view switch as labelled radios (tb-seg: Fotorealistický | Model | Výšky | Plán; tb-seg-tiny: Foto … Plán;
   tb-seg-mini: without the swatches); the "Pohled ▾" menu only when they do not fit */
body.study.tb1.tb-seg:not(.maximized):not(.pres-on) #modeGroup { display: flex !important; }
body.study.tb1.tb-seg:not(.maximized):not(.pres-on) #viewBtn { display: none; }
body.study.tb1.tb-seg .viewbar .mode { flex: none; gap: 6px; padding: 0 10px 0 8px; font-size: 13px; }
body.study.tb1.tb-seg .viewbar .mode .sw { width: 14px; height: 14px; border-radius: 4px; }
body.study.tb1.tb-seg .viewbar .mode .l-full.has-compact { display: none; }
body.study.tb1.tb-seg .viewbar .mode .l-compact { display: inline; }
body.study.tb1.tb-seg-tiny .viewbar .mode .l-full, body.study.tb1.tb-seg-tiny .viewbar .mode .l-compact { display: none !important; }
body.study.tb1.tb-seg-tiny .viewbar .mode .l-tiny { display: inline; }
body.study.tb1.tb-seg-mini .viewbar .mode { padding: 0 9px; }
body.study.tb1.tb-seg-mini .viewbar .mode .sw { display: none; }
/* Celá mapa in ⋯ only (and the F key); the analysis by its short name */
body.study.tb1.tb-max #maxBtn, body.study.tb1.tb-max .actions .div { display: none; }
body.study.tb1.tb-ovt #overlayChip .ov-long { display: none; }
body.study.tb1.tb-ovt #overlayChip .ov-short { display: inline-flex; }
body.study.tb1.tb-ovs #overlayChip .ov-short .subj { max-width: 60px; }
body.study.tb1.tb-nobrand .site-pill .brand, body.study.tb1.tb-nobrand .site-pill .site-id > .sep { display: none; }
/* the proposal label is never cut: its short form where the full one would not fit (shell.fitToolbar) */
body.study.pz-tiny .proposal-chip .pl-short { display: none; }
body.study.pz-tiny .proposal-chip .pl-tiny { display: inline; }
body.study .proposal-chip .plabel { text-overflow: clip; }
/* the credits strip: one line with "Zdroje (n)" at every width above a phone (app.fitAttribution keeps one line on a
   study page; the engine's tablet rules would let it run to many lines) */
@media (min-width: 641px) and (max-width: 1279px) {
  body.study .attribution { display: flex; white-space: nowrap; padding: 2px 12px; line-height: normal; }
  body.study .attribution.wrap { flex-wrap: wrap; white-space: normal; }
  body.study .attribution .credits { display: flex; }
  body.study .attribution .honest { display: flex; margin-left: auto; }
  body.study .attribution .honest::before { content: none; }
  body.study .attribution .honest > * + * { margin-left: 0; }
  body.study .attribution .more { display: inline-block; min-height: 24px; padding: 0 4px; margin: 0; }
  body.study .attribution .honest button { min-height: 24px; padding: 0; margin: 0; }
}

/* the first visit: a hint under ▶ Prezentace (top and right from shell.js; --ph-ax is the notch's x) */
.pres-hint {
  position: fixed; z-index: 21; display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 8px; border-radius: 10px;
  background: var(--ink); color: #fff; box-shadow: var(--lift); font-size: 12.5px; max-width: calc(100vw - 2 * var(--gap));
}
.pres-hint::before {
  content: ''; position: absolute; top: -4px; left: var(--ph-ax, 50%); width: 10px; height: 10px; margin-left: -5px;
  background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}
.ph-go { position: relative; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; font-weight: 500; cursor: pointer; padding: 5px 6px; white-space: nowrap; }
.ph-go .ph-tri { font-size: 10px; }
.ph-x { position: relative; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #fff; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.ph-go:hover, .ph-x:hover { background: rgba(255, 255, 255, 0.14); }
.ph-x .ico { width: 15px; height: 15px; }
body.pres-on .pres-hint, body.maximized .pres-hint, body.ed-open .pres-hint, body.doc-open .pres-hint, body.drawer-open .pres-hint { display: none; }
body:has(.pop:not([hidden])) .pres-hint { display: none; } /* a menu or card open: it gives way */

/* ⋯ › Dokument studie: the study document over the 3D (one frame; the 3D keeps its state) */
.more-item.more-doc { display: flex; flex-direction: column; gap: 1px; text-decoration: none; border-bottom: 1px solid var(--hair); border-radius: 8px 8px 0 0; margin-bottom: 2px; }
.more-item.more-doc b { font-weight: 600; }
.more-item.more-doc span { font-size: 11.5px; color: var(--muted-text); }
.panel-lang-note .doc-link { color: var(--purple-ink); font-weight: 600; }
.doc-ov { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--white); }
.doc-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px var(--gap) 8px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.doc-bar h2 { font-size: 15px; margin: 0; white-space: nowrap; }
.doc-sub { flex: 1; min-width: 0; color: var(--muted-text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-back { gap: 6px; height: 34px; padding: 0 12px 0 10px; }
.doc-back .ico { width: 16px; height: 16px; }
.doc-frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--white); }
@media (max-width: 640px) {
  .doc-sub { display: none; }
  .doc-bar h2 { flex: 1; }
}
.pres-links { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pres-link {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-s); background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 500; text-decoration: none;
}
.pres-link:hover { background: var(--ink-hover); }
.pres-hint.far::before { display: none; }

/* v10: layers – the walking heatmap's own legend row (Potenciál | Změna, the kind, ⓘ: src/maplayers.js) */
.ped-x { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.ped-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: var(--soft-2); }
.ped-b { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 500; line-height: 20px; padding: 0 9px; border-radius: 999px; cursor: pointer; }
.ped-b[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ped-b:focus-visible, .ped-i:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.ped-i { margin-left: auto; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--soft-2); color: var(--purple-ink); font: inherit; font-size: 12px; line-height: 22px; text-align: center; cursor: pointer; padding: 0; }
.ped-i[aria-expanded="true"] { background: var(--purple-tint); color: var(--ink); }

/* v10: editor */
/* "✎ Upravit objemy" as a developer configurator (src/ui/editpanel.js): the preset switch under the head, collapsible
   sections (Hmota · Jádra a chodby · Byty · Parkování · Náklady · Bilance · Úpravy dle předpisů), the depth slider with the
   allowed range shaded and the binding rule, the mix bar with draggable dividers, size sliders with the standard range,
   cost and capacity tables. Tones as v9: green within, amber near, red over; violet = the study's / the editor's own. */
.ed-panel.ed10 { width: min(392px, calc(100vw - 2 * var(--gap))); }
.ed-preset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 14px 7px; border-bottom: 1px solid var(--hair); flex: none; font-size: 12px; }
.ed-preset[hidden] { display: none; }
.ed-pl { color: var(--muted-text); font-weight: 600; font-size: 11.5px; }
.ed-psel { flex: 1; min-width: 0; height: 30px; border: 1px solid rgba(95, 76, 236, 0.45); border-radius: var(--radius-s); background: var(--white); color: var(--purple-ink); font: inherit; font-weight: 600; padding: 0 6px; }
.ed-psel:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.ed-pe { font-size: 11px; font-weight: 600; color: var(--purple); }
.ed-preset .ed-info { flex-basis: 100%; }
.ed-impact.pending .ed-r[data-row="byty"] .ed-v b, .ed-impact.pending .ed-r[data-row="cost"] .ed-v b { opacity: 0.6; }
.ed-busy { color: var(--muted-text); font-size: 11.5px; }
.ed-fnd summary { color: var(--purple-ink); }
/* sections */
.ed-sec { border-top: 1px solid var(--hair); }
.ed-sec[hidden] { display: none; }
.ed-sec > summary { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px 8px; cursor: pointer; list-style: none; user-select: none; }
.ed-sec > summary::-webkit-details-marker { display: none; }
.ed-sec > summary::before { content: '›'; color: var(--muted); width: 8px; transition: transform 0.15s; display: inline-block; font-weight: 600; }
.ed-sec[open] > summary::before { transform: rotate(90deg); }
.ed-sec > summary:hover { background: var(--soft); }
.ed-sec > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.ed-st { font-weight: 600; font-size: 13px; }
.ed-ss { margin-left: auto; font-size: 11.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.ed-sb2 { padding: 0 14px 10px; }
.ed10 .ed-pick { padding-bottom: 6px; }
.ed10 .ed-list { max-height: 168px; }
.ed10 .ed-row { grid-template-columns: 118px 1fr; }
.ed-row-top { align-items: start; }
.ed-wide { flex-basis: 100%; }
.ed-lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; color: var(--purple-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* segmented choice */
/* wrapping options stretch to full rows; the 1 px gaps over the container's colour are the dividers in both directions */
.ed-seg { display: inline-flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; background: var(--hair-strong); }
.ed-sg { flex: 1 1 auto; border: 0; background: var(--white); font: inherit; font-size: 12px; padding: 4px 9px; min-height: 28px; cursor: pointer; color: var(--ink); }
@media (hover: hover) { .ed-sg:hover:not(:disabled):not([aria-checked="true"]) { background: var(--soft); } }
.ed-sg[aria-checked="true"] { background: var(--ink); color: #fff; }
.ed-sg.dflt:not([aria-checked="true"])::after { content: '•'; color: var(--purple); margin-left: 3px; }
.ed-sg:disabled { opacity: 0.5; cursor: default; }
.ed-sg:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
/* range sliders (depth, corridor, sizes): the track carries the shading */
.ed-rangew { padding: 2px 0 2px; }
.ed-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.ed-range:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.ed-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--track, var(--soft-2)); }
.ed-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track, var(--soft-2)); }
.ed-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ed-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.ed-cor { --track: linear-gradient(90deg, var(--soft-2) 0 calc(var(--fire) - 1px), var(--bad) calc(var(--fire) - 1px) calc(var(--fire) + 1px), #f3d9d3 calc(var(--fire) + 1px) 100%); }
.ed-size { --track: linear-gradient(90deg, transparent 0 calc(var(--typ) - 1px), var(--purple-ink) calc(var(--typ) - 1px) calc(var(--typ) + 1px), transparent calc(var(--typ) + 1px) 100%),
  linear-gradient(90deg, var(--soft-2) 0 var(--lo), var(--purple-light) var(--lo) var(--hi), var(--soft-2) var(--hi) 100%); }
.ed-rlab { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.ed-fire { color: var(--bad); }
.ed-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 10.5px; color: var(--muted-text); margin: 2px 0 4px; }
.ed-leg i { display: inline-block; width: 10px; height: 6px; border-radius: 2px; margin-right: -4px; }
.ed-leg .k-ok { background: #3c9a6a; }
.ed-leg .k-praxe { background: #e7c64a; }
.ed-leg .k-zadani { background: #e6913a; }
.ed-leg .k-blok { background: #c9503d; }
.ed-depth { border-top: 1px dashed var(--hair); padding: 2px 0 6px; }
.ed-depth .ed-row { border-top: 0; }
.ed-row-d .ed-rc b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ed-badge { margin: 4px 0 2px; }
.ed-bdg { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--purple-tint); color: var(--purple-ink); }
.ed-bdg.c-zadani { background: #fdf0dc; color: #6b4a00; }
.ed-bdg.c-pbs, .ed-bdg.c-psp { background: #eef2f6; color: #223; }
.ed-bdg.over { background: var(--bad-tint); color: var(--bad); }
.ed-bdg.wait { background: var(--soft); color: var(--muted-text); font-weight: 500; }
.ed-dlines { font-size: 12px; line-height: 1.45; }
.ed-dlines > div { margin: 2px 0; }
.ed-dlines .bad, .ed-dlines.bad { color: var(--bad); }
.ed-fix { margin-left: 8px; vertical-align: baseline; }
.ed-sum { margin: 6px 0 2px; padding: 6px 8px; border-radius: var(--radius-s); background: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.ed-sum .ed-k { display: inline-flex; }
.ed-sel1 { box-shadow: inset 3px 0 0 var(--purple); }
.ed-plleg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11px; color: var(--muted-text); margin: 2px 0 4px; }
.ed-plleg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: -5px; border: 1px solid rgba(0, 0, 0, 0.12); }
/* the flat mix bar */
.ed-mix { margin: 2px 0 8px; }
.ed-mixbar { position: relative; height: 38px; border-radius: var(--radius-s); overflow: visible; background: var(--soft-2); touch-action: none; }
.ed-mseg { position: absolute; top: 0; bottom: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 6px; font-size: 10.5px; line-height: 1.15; color: #1d1a3a; font-variant-numeric: tabular-nums; }
.ed-mseg:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.ed-mseg:nth-child(4) { color: #fff; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.ed-ml { font-weight: 600; white-space: nowrap; }
.ed-mv, .ed-mn { white-space: nowrap; }
.ed-mh { position: absolute; top: -3px; bottom: -3px; width: 14px; margin-left: -7px; cursor: ew-resize; z-index: 2; touch-action: none; }
.ed-mh::after { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--ink); border-radius: 1px; }
.ed-mh:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; border-radius: 4px; }
.ed-mixach { position: relative; height: 5px; margin: 4px 0 3px; border-radius: 3px; overflow: hidden; background: var(--soft-2); }
.ed-mixach i { position: absolute; top: 0; bottom: 0; }
.ed-sz { display: grid; grid-template-columns: 70px 1fr 56px; align-items: center; gap: 0 8px; padding: 1px 0; font-size: 12px; }
.ed-sz > .ed-s { grid-column: 2 / -1; margin-top: -3px; font-size: 10.5px; }
.ed-sz > b { text-align: right; font-variant-numeric: tabular-nums; }
.ed-szl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ed-szl i { width: 9px; height: 9px; border-radius: 2px; }
/* parking reserve */
.ed-resbar { position: relative; height: 8px; margin: 4px 0 3px; border-radius: 4px; background: var(--soft-2); }
.ed-resbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ok); }
.ed-resbar.t-near i { background: #c98a00; }
.ed-resbar.t-over i { background: var(--bad); }
.ed-resbar .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.ed-resbar .mk.m2 { width: 0; border-left: 2px dashed var(--ink); background: none; }
/* cost */
.ed-cost { padding: 2px 0 4px; }
.ed-cost .ed-kv .ed-v b { font-size: 17px; }
.ed-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.ed-cc { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--radius-s); background: var(--soft); font-variant-numeric: tabular-nums; min-width: 0; }
.ed-cc b { font-size: 13.5px; }
.ed-cc .ed-s { font-size: 10.5px; }
.ed-cbars { display: flex; flex-direction: column; gap: 3px; margin: 4px 0; }
.ed-cb { display: grid; grid-template-columns: 1fr 70px 52px; align-items: center; gap: 6px; font-size: 11px; }
.ed-cbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted-text); }
.ed-cb i { display: block; height: 7px; border-radius: 3px; background: var(--purple-light); }
.ed-cbv { text-align: right; font-variant-numeric: tabular-nums; }
.ed-notes { margin: 4px 0; padding: 0 0 0 16px; font-size: 11.5px; color: var(--muted-text); }
/* bilance */
.ed-tab { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.ed-tab caption { text-align: left; font-weight: 600; font-size: 12px; padding: 2px 0 4px; }
.ed-tab td { padding: 2px 0; border-top: 1px solid var(--hair); }
.ed-tab td.num { text-align: right; white-space: nowrap; }
.ed-tab .u { color: var(--muted-text); font-size: 11px; }
.ed-tab tr.sec th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-text); padding: 7px 0 2px; }
/* the fix list of a compliant variant */
.ed-fxnote { margin: 0 0 6px; }
.ed-fxchips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ed-chip { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 18px; white-space: nowrap; background: var(--na-tint); color: var(--muted-text); }
.ed-chip.t-ok { background: var(--ok-tint); color: var(--ok); }
.ed-chip.t-near { background: #fdf0dc; color: #6b4a00; }
.ed-chip.t-auth { background: var(--purple-tint); color: var(--purple-ink); }
.ed-chip.t-design { background: #eef2f6; color: #2a3340; }
.ed-chip.off { background: var(--na-tint); color: var(--muted-text); }
.ed-fx { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.ed-fx li { border-top: 1px solid var(--hair); }
.ed-fx summary { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; cursor: pointer; list-style: none; }
.ed-fx summary::-webkit-details-marker { display: none; }
.ed-fx summary .ed-chip { flex: none; min-width: 74px; text-align: center; }
/* the sticky impact block stays compact (≈ 170 px): the rows as two columns, their sub-lines behind ⓘ and in the sections;
   above the sections' own controls (mix handles z 2); the sections scroll below it */
.ed10 .ed-impact { z-index: 5; padding: 8px 14px 6px; }
.ed10 .ed-body { scroll-padding-top: calc(var(--imp-h, 0px) + 8px); }
.ed10 .ed-hpp { padding-bottom: 4px; }
.ed10 .ed-hpp > .ed-s { display: none; }
.ed10 .ed-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ed10 .ed-r { grid-template-columns: 1fr; padding: 3px 0 3px 12px; }
.ed10 .ed-r::before { top: 8px; }
.ed10 .ed-r .ed-k { font-size: 11px; }
.ed10 .ed-r .ed-v { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed10 .ed-r .ed-v b { font-size: 13px; }
.ed10 .ed-r .ed-sl { display: none; }
.ed10 .ed-r .ed-info { white-space: normal; }
.ed10 .ed-warn { margin-top: 2px; padding-top: 3px; }
.ed10 .ed-warn ul { max-height: 96px; }
.ed-po10 { margin: 8px 14px 0; }
.ed-po10[hidden] { display: none; }
.ed-fx summary b { flex: none; }
.ed-fxb { padding: 2px 0 6px 80px; font-size: 11.5px; line-height: 1.4; }
.ed-fxb .ed-k { display: inline; }
@media (max-width: 640px) {
  .ed-panel.ed10 { width: auto; }
  .ed-preset { padding: 4px 12px 5px; }
  .ed-sec > summary { padding: 10px 12px; min-height: 40px; align-items: center; }
  .ed-sb2 { padding: 0 12px 10px; }
  .ed-sg { min-height: 40px; padding: 6px 10px; }
  .ed-psel { height: 40px; }
  .ed10 .ed-row { grid-template-columns: 104px 1fr; }
  .ed-range { height: 36px; }
  .ed-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -8px; }
  .ed-mixbar { height: 44px; }
  .ed-mh { width: 24px; margin-left: -12px; }
  .ed-mh::after { left: 11px; }
  .ed-impact:not(.open) > .ed-fnd { display: none; }
  .ed-fxb { padding-left: 0; }
}
/* v10: editor – fix round: the target class (a limit of the study's brief or a recommendation, never a regulation fail;
   the tokens are the public panel's --vk-target*), amber lines for the brief in the depth block, the public-space line in
   Náklady */
.ed-r.t-target::before { background: var(--vk-target-line, #8ea0b8); }
.ed-r.t-target .ed-v b { color: var(--vk-target, #4b6383); }
.ed-dlines .brief { color: #6b4a00; }
.ed-label.brief { background: #b07a00; }
.ed-psite { box-shadow: inset 3px 0 0 var(--vk-target-line, #8ea0b8); }
.ed-psite .ed-k { display: inline; font-weight: 600; }
/* the one-line toolbar's last steps before "Pohled ▾" (src/ui/shell.js SEG_STEPS): the variant on the proposal chip cut
   (tb-pzx), then hidden (tb-pzx2); its full name stays the chip's tooltip, accessible name and ⓘ */
body.study.tb1.tb-pzx .proposal-chip .pl-ed { display: inline-block; max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; white-space: pre; vertical-align: bottom; }
body.study.tb1.tb-pzx2 .proposal-chip .pl-ed { display: none; }

/* v10: presentation */
/* The v10 deck (src/present.js, ui/presentation.js): numbered section heads, pillars, principle lists, colour keys,
   few-row tables and the callouts over the 3D. One accent for problems and key elements (--bad), one for
   opportunities and green (--ok); the controls stay in the brand purple. */
.pres-kick { color: var(--bad); flex-wrap: nowrap; align-items: flex-start; }
.pres-kick > span:not(.pres-tag) { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.pres-kick > .pres-tag { flex: none; }
.pres-no { font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: 0; padding-right: 8px; margin-right: 1px; border-right: 2px solid var(--bad); line-height: 1; }
.pres-pil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pres-pi { min-width: 0; }
.pres-pic { display: block; width: 34px; height: 34px; color: var(--ink); }
.pres-pno { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--bad); }
.pres-pt { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--bad); line-height: 1.3; }
.pres-pi p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #2a2a30; }
.pres-dia { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: pd; }
.pres-dia li { position: relative; margin: 4px 0; padding-left: 26px; font-size: 12.5px; line-height: 1.4; counter-increment: pd; }
.pres-dia li::before { content: counter(pd); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.pres-dia b { font-weight: 700; }
.pres-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; }
.pres-sw li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pres-sw i { flex: none; width: 12px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.2); }
.pres-tbl { margin: 10px 0 0; }
.pres-tbl figcaption { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bad); }
.pres-tbl table { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pres-tbl th, .pres-tbl td { padding: 4px 0; border-bottom: 1px solid var(--hair-strong); text-align: left; font-weight: 400; vertical-align: baseline; }
.pres-tbl thead th { padding-top: 2px; border-bottom: 1.5px solid var(--ink); font-size: 10px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-text); }
.pres-tbl .n { padding-left: 8px; text-align: right; white-space: nowrap; }
.pres-tbl tr.b th, .pres-tbl tr.b td { font-weight: 700; }
.pres-tnote { margin: 4px 0 0; font-size: 11px; color: var(--muted-text); }
.pres-fig.wide { width: min(560px, calc(100vw - 420px - 4 * var(--gap))); }
.pres-cos { position: absolute; inset: 0; pointer-events: none !important; overflow: hidden; }
.pres-co { position: absolute; left: 0; top: 0; --c: var(--bad); }
.pres-co.k-opportunity, .pres-co.k-space { --c: var(--ok); }
.pres-co > * { position: absolute; left: 0; top: 0; will-change: transform; }
.pres-co-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.35); }
.pres-co-line { height: 2px; margin-top: -1px; transform-origin: 0 50%; background: var(--c); }
.pres-co-box {
  display: flex; flex-direction: column; padding: 4px 9px 5px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.96); border-left: 3px solid var(--c);
  box-shadow: var(--lift); white-space: nowrap; font-size: 11.5px; line-height: 1.3;
}
.pres-co-box b { color: var(--c); font-size: 12.5px; font-weight: 700; }
.pres-co-box span { color: #2a2a30; }
@media (max-width: 640px), (orientation: portrait) and (max-width: 1023px) {
  .pres-pil { gap: 8px; }
  .pres-pi p { font-size: 11.5px; }
  .pres-co-box { padding: 3px 7px 4px 8px; font-size: 10.5px; }
  .pres-co-box b { font-size: 11px; }
}
/* v10 fix (QA10-17): table headers stay readable on a phone (≥ 12 px); a 4-column table wraps its headers */
@media (max-width: 640px) {
  .pres-tbl thead th { font-size: 12px; letter-spacing: 0.01em; white-space: normal; }
  .pres-tbl figcaption { font-size: 12px; }
  .pres-tbl table { font-size: 13px; }
  .pres-tbl .n { white-space: normal; }
  .pres-tnote { font-size: 12px; }
}

/* v10: public */
/* "Veřejný prostor" (src/ui/publicpanel.js): a right panel like ✎ (classes ed-panel / ed-sec reused), opened from the
   ✎ panel's section "Veřejný prostor"; verdict chips (✓ splněno green, ✗ nesplněno red = regulation only, § stanovisko
   úřadu amber, ◎ cíl / doporučení neutral grey-blue, i informace grey), the street list with the cross-section strip
   editor, named-space cards, blue-green tiles, the 3D toggles and legend in the foot.
   The verdict token of the "cíl / doporučení" class (a brief target, the study's own criterion or a recommendation:
   never a regulation fail) is shared: other modules reuse the class `.vk-target` and the variables below. */
:root { --vk-target: #4b6383; --vk-target-tint: #e7edf4; --vk-target-line: #8ea0b8; }
.vk-target { color: var(--vk-target); }
.vk-target.vk-chip, .vk-chip.vk-target { background: var(--vk-target-tint); color: var(--vk-target); border-radius: 999px; padding: 0 6px; }
.vp-panel { z-index: 25; }
body.vp-open .pres-hint { display: none; }
.vp-back .ico { width: 18px; height: 18px; }
.vp-back[hidden] { display: none; }
.vp-v { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1; flex: none; }
.vp-v.v-ok { background: var(--ok-tint); color: var(--ok); }
.vp-v.v-fail { background: var(--bad-tint); color: var(--bad); }
.vp-v.v-authority { background: #fdf0dc; color: #6b4a00; }
.vp-v.v-info { background: var(--soft-2); color: var(--muted-text); }
.vp-v.v-target { background: var(--vk-target-tint); color: var(--vk-target); }
.vp-imp { position: sticky; top: 0; z-index: 1; background: var(--white); padding: 9px 14px 6px; border-bottom: 1px solid var(--hair); box-shadow: 0 6px 10px -10px rgba(0, 0, 0, 0.25); }
.vp-counts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.vp-cnt { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 2px 8px 2px 3px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.vp-cnt:hover { background: var(--soft); }
.vp-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
.vp-k { display: flex; flex-direction: column; min-width: 0; padding-left: 7px; border-left: 2px solid var(--line-2); }
.vp-k b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-k .ed-s { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-k.t-ok { border-left-color: var(--ok); }
.vp-k.t-fail { border-left-color: var(--bad); }
.vp-k.t-fail b { color: var(--bad); }
.vp-k.t-authority { border-left-color: #c98a00; }
.vp-k.t-target { border-left-color: var(--vk-target-line); }
.vp-k.t-target b { color: var(--vk-target); }
.vp-st { margin-top: 5px; font-size: 11px; color: var(--muted-text); }
.vp-st.busy::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--purple); animation: vp-pulse 1s ease-in-out infinite; vertical-align: 0; }
.vp-st.bad { color: var(--bad); }
@keyframes vp-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .vp-st.busy::before { animation: none; } }
.vp-sh { margin: 8px 0 3px; font-size: 11.5px; font-weight: 600; color: var(--muted-text); }
.vp-streets { border: 1px solid var(--hair-strong); border-radius: var(--radius-s); overflow: hidden; }
.vp-sr + .vp-sr, .vp-xbox + .vp-sr { border-top: 1px solid var(--hair); }
.vp-sr.on { background: var(--purple-tint); }
.vp-sb { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 22px; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 5px 8px; font: inherit; font-size: 12px; text-align: left; cursor: pointer; color: var(--ink); }
.vp-sb:hover { background: var(--soft); }
.vp-sty { color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-sw { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-sw.bad { color: var(--bad); font-weight: 600; }
.vp-xbox { padding: 4px 8px 8px; background: var(--soft); border-top: 1px solid var(--hair); }
.vp-xbox .ed-row { border-top: 0; }
.vp-sel { height: 28px; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--white); font: inherit; font-size: 12px; color: var(--ink); padding: 0 4px; }
.vp-xbar { display: flex; gap: 2px; height: 34px; margin: 4px 0 3px; }
.vp-xs { flex: 1 1 0; min-width: 18px; border: 0; border-radius: 4px; padding: 0; font: inherit; font-size: 10.5px; color: #1d1a3a; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); font-variant-numeric: tabular-nums; }
.vp-xs.on { box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 1px var(--purple); }
.vp-xs span { white-space: nowrap; }
.vp-xtot { font-size: 11.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.vp-xtot.bad { color: var(--bad); }
.vp-xctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.vp-xiss { margin-top: 4px; font-size: 11px; color: var(--bad); }
.ed-row.vp-stack { grid-template-columns: 1fr; gap: 3px; }
.ed-row.vp-stack .ed-seg { width: 100%; }
.vp-range { display: flex; align-items: center; gap: 8px; width: 100%; }
.vp-range .ed-range { flex: 1; min-width: 0; }
.vp-rv { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.vp-retail > div + div { margin-top: 3px; }
.vp-card { margin: 6px 0; padding: 7px 9px; border: 1px solid var(--hair-strong); border-radius: var(--radius-s); background: var(--white); }
.vp-card.on { box-shadow: inset 3px 0 0 var(--purple); background: var(--purple-tint); }
.vp-ch { display: flex; align-items: center; gap: 6px; }
.vp-ch b { flex: 1; min-width: 0; font-size: 12.5px; }
.vp-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.vp-card.on .vp-n { background: var(--purple); }
.vp-cm { margin-top: 3px; font-size: 11.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.vp-cp { margin-top: 3px; font-size: 11.5px; }
.vp-scs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.vp-sc { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-ink); }
.vp-sc.off { background: var(--soft-2); color: #8b8a96; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.2); cursor: help; }
.vp-gh { display: flex; align-items: center; gap: 4px; margin: 9px 0 3px; font-weight: 600; font-size: 12px; }
.vp-chk { display: grid; grid-template-columns: 22px 1fr; gap: 0 4px; align-items: start; padding: 3px 0; border-top: 1px dashed var(--hair); font-size: 12px; }
.vp-chk .vp-v { margin-top: 1px; }
.vp-chk .ed-info { grid-column: 2; }
.vp-chk.c-fail .vp-ct { color: var(--bad); }
.vp-chk.c-target .vp-ct { color: var(--vk-target); }
.ed-sec-vp.vp-na .ed-ss { color: var(--muted-text); }
.vp-bg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
.vp-tile { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--radius-s); background: var(--soft); min-width: 0; }
.vp-tile b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-tile .ed-s { font-size: 10.5px; }
.vp-tab { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vp-tab td, .vp-tab th { padding: 2px 4px; border-top: 1px solid var(--hair); text-align: right; white-space: nowrap; }
.vp-tab td:first-child, .vp-tab th:first-child { text-align: left; white-space: normal; }
.vp-tab th { font-weight: 600; font-size: 10.5px; color: var(--muted-text); }
.vp-tw { overflow-x: auto; margin: 4px 0; }
.vp-typ { min-width: 420px; }
.vp-foot { display: flex; flex-direction: column; gap: 6px; }
.vp-3d { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.vp-3d .ed-info { flex-basis: 100%; }
.vp-legend { display: flex; flex-wrap: wrap; gap: 2px 9px; font-size: 10.5px; color: var(--muted-text); }
.vp-li { display: inline-flex; align-items: center; gap: 4px; }
.vp-li i { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.ed-sec-vp .vp-openb { margin-top: 2px; }
@media (max-width: 640px) {
  .vp-imp { padding: 6px 12px 5px; }
  .vp-kv { display: none; }
  .vp-counts { margin-bottom: 2px; }
  .vp-sb { padding: 9px 8px; }
  .vp-xs { min-width: 26px; }
  .vp-sel { height: 40px; }
  .vp-cnt { padding: 6px 10px 6px 4px; }
}

/* v10: urban */
/* "Varianty urbanismu" (src/ui/urbanpanel.js): typology cards with plan icons generated by the generator, the fit badges,
   parameter sliders, the impact block with site-check chips, the comparison table; the entries in the Layout ▾ and ⋯ menus.
   The panel reuses the ✎ panel's frame and parts (.ed-panel.ed10, .ed-impact, .ed-r, .ed-seg, .ed-range, .ed-sec). */
body.urb-open .pres-hint { display: none; }
.urb-menu .lay-opt { width: 100%; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.urb-menu .lay-opt:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.urb-mh-s { font-weight: 400; color: var(--muted-text); }
.urb-panel .ed-body { overflow-x: hidden; }
.urb-hint { margin: 2px 0 8px; color: var(--muted-text); font-size: 12px; }
.urb-busy { color: var(--muted-text); }
.urb-impact > .btn { margin: 2px 0 4px; }
.urb-err { background: var(--bad-tint); color: var(--bad); }
.urb-h { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.urb-h .urb-reset { margin-left: auto; }
.urb-typ, .urb-par, .urb-acts { padding: 10px 14px 6px; border-top: 1px solid var(--hair); }
.urb-typ .ed-info, .urb-par .ed-info { margin-top: 2px; }
.urb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.urb-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 4px 5px; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); background: var(--white); font: inherit; color: var(--ink); cursor: pointer; text-align: center;
}
@media (hover: hover) { .urb-card:hover:not(.on) { background: var(--soft); } }
.urb-card.on { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); background: var(--purple-tint); }
.urb-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.urb-ico { display: block; width: 56px; height: 64px; flex: none; }
.urb-ico svg { display: block; width: 100%; height: 100%; }
.urb-cn { font-size: 11.5px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.urb-cs { font-size: 10.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.urb-fit { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.urb-fit.f-ok { background: var(--ok-tint); color: var(--ok); }
.urb-fit.f-near { background: #fdf0dc; color: #6b4a00; }
.urb-fit.f-over { background: var(--bad-tint); color: var(--bad); }
.urb-fit.f-na { background: var(--soft-2); color: var(--muted-text); }
.urb-preset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; }
.urb-preset .urb-pl { display: inline; font-size: 11.5px; font-weight: 600; color: var(--muted-text); }
.urb-why { margin: 6px 0 2px; font-size: 11.5px; line-height: 1.4; }
.urb-refline { margin: 2px 0 0; font-size: 11.5px; line-height: 1.6; }
.urb-rl { font-weight: 600; color: var(--muted-text); }
.urb-ref1 { white-space: nowrap; }
.urb-more { margin-top: 8px; }
.urb-more > summary, .urb-about > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--purple-ink); padding: 3px 0; }
.urb-cards-s { margin: 4px 0 2px; }
.urb-cards-s .urb-ico { width: 42px; height: 48px; }
.urb-cards-s .urb-cn { font-size: 11px; font-weight: 500; }
.urb-about { margin-top: 6px; padding-top: 4px; border-top: 1px dashed var(--hair); font-size: 12px; }
.urb-about > summary { display: flex; align-items: center; gap: 6px; }
.urb-about > summary > span:first-child { flex: 1; min-width: 0; }
.urb-desc { margin: 4px 0; }
.urb-fitrow { margin: 4px 0 2px; }
.urb-pm { margin: 2px 0 4px; padding: 0 0 0 16px; font-size: 11.5px; }
.urb-pm li { margin: 1px 0; }
.urb-pm li.pl::marker { content: '+  '; color: var(--ok); font-weight: 700; }
.urb-pm li.mi::marker { content: '−  '; color: var(--bad); font-weight: 700; }
.urb-mp { margin: 4px 0; font-size: 11.5px; }
.urb-refs ul { margin: 2px 0 4px; padding: 0 0 0 2px; list-style: none; font-size: 11.5px; }
.urb-refs li { margin: 3px 0; }
.urb-st { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 15px; white-space: nowrap; }
.urb-st.s-ok { background: var(--ok-tint); color: var(--ok); }
.urb-st.s-st { background: var(--purple-tint); color: var(--purple-ink); }
.urb-st.s-un { background: #fdf0dc; color: #6b4a00; }
.urb-src { color: var(--purple-ink); font-size: 11px; }
.urb-alg { margin: 4px 0 0; }
/* the site checks (under the sticky impact block) */
.urb-checks { padding: 2px 14px 8px; }
.urb-checks:empty { display: none; }
.urb-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.urb-chips .ed-info { flex-basis: 100%; margin: 0; }
.urb-chip { display: inline-flex; align-items: center; gap: 1px; padding: 1px 3px 1px 8px; border-radius: 999px; font-size: 11px; line-height: 17px; white-space: nowrap; }
.urb-chip.t-ok { background: var(--ok-tint); color: var(--ok); }
.urb-chip.t-info { background: var(--purple-tint); color: var(--purple-ink); }
.urb-chip.t-near { background: #fdf0dc; color: #6b4a00; }
.urb-chip.t-over { background: var(--bad-tint); color: var(--bad); font-weight: 600; }
.urb-pending .ed-v b { opacity: 0.7; }
/* parameters */
.urb-main { display: flex; flex-direction: column; }
.urb-p { padding: 4px 0 2px; border-top: 1px dashed var(--hair); }
.urb-main > .urb-p:first-child { border-top: 0; }
.urb-pl { display: flex; align-items: center; gap: 3px; font-size: 12px; min-width: 0; }
.urb-pv { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.urb-p.chg .urb-pv, .urb-def { color: var(--purple-ink); }
.urb-pe .ed-seg { margin-top: 3px; }
.urb-grp > summary { padding-left: 0; padding-right: 0; }
.urb-grp .ed-sb2 { padding: 0 0 6px; }
/* actions, the hand-edit confirmation */
.urb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 6px; }
.urb-confirm { margin: 8px 14px 4px; padding: 8px 10px; border-radius: var(--radius-s); background: #fdf0dc; color: #4d3500; font-size: 12px; }
.urb-confirm[hidden] { display: none; }
.urb-confirm p { margin: 0 0 6px; }
/* the comparison */
.urb-cmp .ed-sb2 { padding-top: 2px; }
.urb-tw { overflow-x: auto; margin: 4px 0 6px; overscroll-behavior-x: contain; }
.urb-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.urb-tbl th, .urb-tbl td { padding: 3px 3px 3px 6px; border-top: 1px solid var(--hair); text-align: right; white-space: nowrap; vertical-align: top; }
.urb-tbl thead th { border-top: 0; vertical-align: bottom; padding-bottom: 4px; position: relative; }
.urb-tbl .urb-tl { position: sticky; left: 0; z-index: 1; text-align: left; white-space: normal; font-weight: 500; min-width: 82px; max-width: 96px; background: var(--white); box-shadow: 6px 0 6px -6px rgba(0, 0, 0, 0.18); }
.urb-tbl thead .urb-tl { display: flex; align-items: center; gap: 3px; font-weight: 600; color: var(--muted-text); }
.urb-colb { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; max-width: 76px; margin-left: auto; padding: 3px 4px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: right; }
.urb-colb b { font-size: 11.5px; }
.urb-colb span { font-size: 10px; line-height: 1.2; color: var(--muted-text); white-space: normal; }
@media (hover: hover) { .urb-colb:hover { background: var(--soft); } }
.urb-colb[aria-pressed="true"] { background: var(--purple-tint); box-shadow: inset 0 0 0 1px var(--purple); }
.urb-colb:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.urb-colb b { display: inline-flex; align-items: center; gap: 3px; }
.urb-x { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--soft-2); color: var(--muted-text); font-size: 11px; font-weight: 400; line-height: 16px; text-align: center; cursor: pointer; }
.urb-x:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.urb-x:hover { background: var(--bad-tint); color: var(--bad); }
.urb-tbl td.on { background: rgba(95, 76, 236, 0.06); }
.urb-tbl td.t-over { color: var(--bad); font-weight: 600; }
.urb-tbl td.t-near { color: #6b4a00; }
.urb-dlrow th, .urb-dlrow td { border-top: 1px solid var(--hair-strong); }
.urb-honest { color: var(--ink); }
@media (max-width: 640px) {
  .urb-panel { height: 52%; max-height: 62%; }
  .urb-checks { padding-left: 12px; padding-right: 12px; }
  .urb-typ, .urb-par, .urb-acts { padding-left: 12px; padding-right: 12px; }
  .urb-card { padding: 6px 2px; }
  .urb-ico { width: 46px; height: 52px; }
  .urb-cs { display: none; }
  .urb-confirm { margin-left: 12px; margin-right: 12px; }
  .urb-x { width: 24px; height: 24px; line-height: 24px; font-size: 13px; }
  .urb-colb { padding: 6px 4px; }
}
/* v10: urban – fix round: a cell over the brief's 291 m Bpv is a target (not a regulation), "neurčeno" / "chybí podklady" muted */
.urb-tbl td.t-target { color: var(--vk-target, #4b6383); }

/* v10: realism – the "Léto" chip next to the date in the time pill (src/ui/timebar.js), and the legend's date line
   of a sun, shadow or sun-hours analysis shown on another date than its 21. 3. (src/app.js realismDateNote) */
.tb-summer {
  display: inline-flex; align-items: center; height: 32px; padding: 0 9px; border-radius: var(--radius-s); border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; flex: none;
}
.tb-summer:hover { border-color: var(--ink); }
.tb-summer:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.legend-state.rm-date-note { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .tb-summer { padding: 0 7px; font-size: 12px; }
}
/* v10: realism – end */

/* v10: card – the Výběr card of a picked house (ui/propcard.js) and a quieter language note */
.panel-lang-note { background: none; padding: 0; margin: 2px 16px 10px; font-size: 11.5px; }
#rightPanel:has(#tab-inspect[aria-selected="true"]) .panel-lang-note { display: none; } /* Výběr is Czech */
.card-block.pc { padding: 16px 16px 14px; border-color: var(--line); border-radius: 14px; }
.pc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.pc-head h3 { margin: 0 4px 0 0; font: 650 22px/1.15 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.pc-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pc-chip.accent { background: var(--purple-tint); color: var(--purple-ink); }
.pc-chip.soft { background: var(--na-tint); color: var(--muted-text); }
.pc-chip.warn { background: #fff3d6; color: #6b4a00; }
.pc-sub { margin: 4px 0 14px; font-size: 13px; color: var(--muted-text); }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.pc-stat { min-width: 0; padding: 8px 9px 7px; border-radius: 10px; background: var(--soft); }
.pc-k { font-size: 11px; line-height: 1.2; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-v { margin-top: 3px; font-size: 16px; line-height: 1.2; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-v.long { font-size: 14px; letter-spacing: -0.015em; }
.pc-s { margin-top: 1px; font-size: 11px; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.pc-ok { flex: none; color: var(--ok); font-weight: 600; }
.pc-bad { flex: none; color: #8a5a00; font-weight: 600; }
.pc-actions { display: flex; gap: 8px; padding: 2px 0 12px; }
.pc-actions .btn { border-radius: 999px; padding: 7px 14px; font-size: 12.5px; }
.pc-src { margin: 0 0 4px; font-size: 12px; line-height: 1.45; color: var(--muted-text); }
.pc-src b { font-weight: 600; color: var(--ink); }
@media (max-width: 420px) {
  .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v10: mp – the Výšky legend's Metropolitní plán ceilings row (src/mplimits.js) */
.rm-mp-legend { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); }
.rm-mp-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rm-mp-head b { font-weight: 600; flex: 1; }
.rm-mp-sw { display: inline-flex; gap: 2px; }
.rm-mp-sw i { display: block; width: 10px; height: 10px; border-radius: 2px; border: 1px solid rgba(13, 13, 13, 0.18); }
.rm-mp-txt { margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--muted-text); }


/* v10: urban2 – "Varianty urbanismu" presets first (src/ui/urbanpanel.js). Since the lite round the tiles, the preset cards, the
   folded lines, the chips and the comparison are styled in the `v10: lite-var` block at the end of this file; what stays here:
   the warnings list, the folded "Pokročilé" frame and the rules of "Návrhové zásady". */
.urb-wl { margin: 0; padding: 0 0 0 16px; max-height: 140px; overflow: auto; font-size: 11.5px; }
.urb-adv .urb-advd { border-top: 0; }
.urb-zl { list-style: none; margin: 0; padding: 0; }
.urb-zr { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 0 6px; align-items: baseline; padding: 3px 0; font-size: 12px; }
.urb-zs { font-weight: 700; text-align: center; }
.urb-zr.s-ok .urb-zs { color: var(--ok); }
.urb-zr.s-warn .urb-zs, .urb-zr.s-warn .urb-zv { color: #6b4a00; }
.urb-zr.s-na .urb-zs, .urb-zr.s-na .urb-zv, .urb-zr.s-pending .urb-zs, .urb-zr.s-pending .urb-zv { color: var(--muted-text); font-weight: 400; }
.urb-zv { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .urb-zr { font-size: 11.5px; }
  .urb-zv { white-space: normal; max-width: 46vw; }
}
/* v10: urban2 – end */
/* v10: kontrola – "Kontrolní tabulka" first in the Data tab of the study pages (src/ui/kontrola.js): the summary line
   with coloured dots, folded groups, one row per údaj (údaj, hodnota, status chip) that opens to source, date, impact and
   where to verify. Tones: ověřeno green, orientační neutral sand, nutno ověřit amber; the label is always written. */
:root { --kt-or: #8b836c; --kt-or-ink: #4f4a3c; --kt-or-tint: #efece3; --kt-ov: #c98a00; --kt-ov-ink: #6b4a00; --kt-ov-tint: #fdf0dc; }
.kt { min-width: 0; padding: 12px 12px 8px; white-space: normal; overflow-wrap: anywhere; }
.pane .kt h4.kt-title { margin: 0 0 4px; font-size: 14px; }
.kt-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kt-sum b { font-weight: 650; }
.kt-cnt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.kt-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--na); }
.kt-dot.kt-overeno { background: var(--ok); }
.kt-dot.kt-orientacni { background: var(--kt-or); }
.kt-dot.kt-overit { background: var(--kt-ov); }
.pane .kt p.kt-note { margin: 0 0 8px; font-size: 11.5px; line-height: 1.4; color: var(--muted-text); }
.kt-g { border-top: 1px solid var(--line); }
.kt-g > summary {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 2px; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 600; border-radius: 6px;
}
.kt-g > summary::-webkit-details-marker { display: none; }
.kt-g > summary::before {
  content: ''; flex: none; width: 6px; height: 6px; margin: 0 2px 0 3px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform 0.15s ease;
}
.kt-g[open] > summary::before { transform: rotate(45deg); }
.kt-g > summary:focus-visible, .kt-rb:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
@media (hover: hover) { .kt-g > summary:hover, .kt-rb:hover { background: var(--soft); } }
.kt-gn { flex: 1; min-width: 0; }
.kt-gc { flex: none; font-size: 11.5px; font-weight: 400; color: var(--muted-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kt-gw { flex: none; padding: 0 7px; border-radius: 999px; background: var(--kt-ov-tint); color: var(--kt-ov-ink); font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.kt-rows { list-style: none; margin: 0 0 6px; padding: 0; }
.kt-r { border-radius: 6px; }
.kt-r + .kt-r { border-top: 1px solid var(--hair); }
.kt-r.open { background: var(--soft); }
.kt-rb {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: start; width: 100%; min-height: 36px;
  padding: 6px 4px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.kt-u { grid-column: 1; font-size: 12px; line-height: 1.35; min-width: 0; }
.kt-h { grid-column: 1; font-size: 12px; line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; }
.kt-rb .kt-chip { grid-column: 2; grid-row: 1 / span 2; margin-top: 1px; }
.kt-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600;
  line-height: 18px; white-space: nowrap; background: var(--na-tint); color: var(--muted-text);
}
.kt-chip.kt-overeno { background: var(--ok-tint); color: var(--ok); }
.kt-chip.kt-orientacni { background: var(--kt-or-tint); color: var(--kt-or-ink); }
.kt-chip.kt-overit { background: var(--kt-ov-tint); color: var(--kt-ov-ink); }
.kt-chip .kt-dot { width: 6px; height: 6px; }
.kt-d { padding: 0 4px 8px; }
.kt-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 0; font-size: 11.5px; line-height: 1.4; }
.kt-dl dt { color: var(--muted-text); white-space: nowrap; }
.kt-dl dd { margin: 0; min-width: 0; }
.kt-dl a { color: var(--purple-ink); }
.kt-rdl { padding: 2px 4px 10px; gap: 6px 10px; align-items: start; }
.pane .kt p.kt-foot { margin: 8px 0 2px; font-size: 12px; }
.kt-gen { color: var(--muted-text); font-size: 11.5px; }
@media (max-width: 640px) {
  .kt { padding: 10px 10px 6px; }
  .kt-rb, .kt-g > summary { min-height: 40px; }
}
/* v10: kontrola – end */
/* v10: data wrap – the Data tab's English source notes (src/ui/sources.js: .src p.muted.small, .kv dd) carry long licence
   URLs with no break opportunity, which pushed the pane ~380 px sideways: break long tokens anywhere (min-content sizing). */
#pane-data .src p, #pane-data .kv > dd { overflow-wrap: anywhere; }
/* v10: data wrap – end */
/* v10: pohledy – "Pohledy pro vizualizaci (ZIP)" in the ⋯ menu and its dialog (src/ui/pohledy.js; the dialog reuses the
   presentation's .pres-modal card, the bar is styles.css .progress) */
.more-item.poh-more { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--hair); border-radius: 0 0 8px 8px; margin-top: 2px; }
.more-item.poh-more b { font-weight: 600; }
.more-item.poh-more span { font-size: 11.5px; color: var(--muted-text); }
.more-item.poh-more[aria-disabled="true"] { opacity: 0.55; }
.poh-modal .poh-card { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.poh-prev { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 10px; border-radius: 6px; border: 1px solid var(--hair); background: var(--soft); }
.poh-prev[hidden] { display: none; }
@media (max-width: 640px) {
  .poh-modal { place-items: end center; padding-bottom: 12px; }
  .poh-modal .poh-card { width: calc(100vw - 24px); }
}
/* v10: pohledy – end */
/* v10: edtabs – "✎ Upravit objemy" is one section with two tabs (src/ui/edtabs.js): Varianty urbanismu | Úpravy domů,
   under the title of #urbPanel and #edPanel */
.ed-head:has(+ .ed-tabs) { border-bottom: 0; padding-bottom: 2px; }
.ed-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--hair); flex: none; }
.ed-tab { flex: 1 1 0; min-width: 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--muted-text); padding: 7px 4px 6px; min-height: 36px; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ed-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--purple); }
@media (hover: hover) { .ed-tab:hover:not([aria-selected="true"]) { color: var(--ink); } }
.ed-tab:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; border-radius: 4px; }
@media (max-width: 640px) { .ed-tab { min-height: 42px; font-size: 13.5px; } }
/* v10: edtabs – end */
/* v10: lite-var – "Varianty urbanismu" lightened (src/ui/urbanpanel.js; every rule scoped with #urbPanel, so the ✎ editor is
   unaffected): the title with one ⓘ, four flat tiles, folded lines without rules and with regular-weight titles, flat two-column
   preset cards (plan icon, name, one line of numbers; the attribution and the principles behind their ⓘ), ONE popover for every
   ⓘ (#urbPop), flat chips and sliders, a quieter comparison. One accent (violet); the tones (green, amber, red) keep their meaning. */
/* the title and its ⓘ; the ⓘ glyph as in the ✎ editor, a bigger hit area on a phone */
#urbPanel .ed-tt { display: flex; align-items: center; gap: 2px; }
#urbPanel .urb-i { position: relative; flex: none; padding: 2px 3px; font-size: 12px; line-height: 1; color: var(--purple-ink); }
@media (hover: hover) { #urbPanel .urb-i:hover { color: var(--ink); } }
#urbPanel .urb-i:focus-visible, #urbPanel .urb-ptight:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-radius: 4px; }
#urbPanel .urb-i[aria-expanded="true"] { color: var(--ink); }
/* the popover: short, inside the panel, placed by the script next to its button */
#urbPanel .urb-pop {
  position: fixed; z-index: 40; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; background: var(--white); color: var(--ink);
  box-shadow: var(--lift-strong), 0 0 0 1px var(--line); font-size: 12px; line-height: 1.45; overflow: auto; overscroll-behavior: contain; outline: none;
}
#urbPanel .urb-pop[hidden] { display: none; }
#urbPanel .urb-pop p { margin: 0 0 6px; }
#urbPanel .urb-pop p:last-child, #urbPanel .urb-pop ul:last-child { margin-bottom: 0; }
#urbPanel .urb-pop a { color: var(--purple-ink); }
#urbPanel .urb-pop .urb-rlist { margin: 2px 0 6px; padding: 0 0 0 2px; list-style: none; }
#urbPanel .urb-pop .urb-rlist li { margin: 3px 0; }
/* the sticky numbers: four flat tiles in a row (a tone dot instead of a coloured bar) */
#urbPanel .ed-impact.urb-impact { padding: 8px 14px 9px; border-bottom: 0; box-shadow: 0 8px 8px -10px rgba(0, 0, 0, 0.22); }
#urbPanel .urb-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
#urbPanel .urb-k { display: flex; flex-direction: column; min-width: 0; padding: 5px 6px; border: 0; border-radius: 8px; background: var(--soft); }
#urbPanel .urb-k b { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#urbPanel .urb-kl { display: flex; align-items: center; gap: 0; font-size: 11px; font-weight: 400; color: var(--muted-text); white-space: nowrap; }
#urbPanel .urb-kl::before { content: ''; flex: none; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--line-2); }
#urbPanel .urb-k.t-ok .urb-kl::before { background: var(--ok); }
#urbPanel .urb-k.t-near .urb-kl::before { background: #c98a00; }
#urbPanel .urb-k.t-over .urb-kl::before { background: var(--bad); }
#urbPanel .urb-k.t-target .urb-kl::before { background: var(--vk-target-line, #8ea0b8); }
#urbPanel .urb-k.t-near b { color: #6b4a00; }
#urbPanel .urb-k.t-over b { color: var(--bad); }
#urbPanel .urb-k.t-target b { color: var(--vk-target, #4b6383); }
#urbPanel .urb-ks { font-size: 10px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#urbPanel .urb-kl .urb-i { margin-left: auto; padding: 2px 0 2px 2px; }
#urbPanel .urb-hint0 { display: flex; align-items: center; gap: 2px; margin: 0; font-size: 12.5px; color: var(--ink); }
#urbPanel .urb-ctx { margin: 0 0 5px; font-size: 11.5px; color: var(--muted-text); }
/* the folded lines: no rules, regular-weight titles */
#urbPanel .urb-checks { padding: 2px 0 0; }
#urbPanel .ed-sec { border-top: 0; }
#urbPanel .ed-sec > summary { padding: 6px 14px; min-height: 32px; align-items: center; }
#urbPanel .ed-st { font-weight: 400; font-size: 13px; }
#urbPanel .ed-ss { font-size: 11.5px; }
#urbPanel .urb-zas > summary { gap: 6px; }
#urbPanel .urb-zas > summary .urb-i { margin-left: -4px; }
#urbPanel .urb-zsum { color: var(--ink); font-weight: 500; }
#urbPanel .urb-wn { color: var(--bad); font-weight: 500; }
#urbPanel .ed-sb2 { padding: 0 14px 8px; }
#urbPanel .urb-detrows { display: flex; flex-direction: column; margin-bottom: 2px; }
#urbPanel .urb-detrows .ed-r { grid-template-columns: 112px 1fr; border-top: 0; padding: 2px 0 2px 12px; }
#urbPanel .urb-detrows .ed-r .ed-v { white-space: normal; }
#urbPanel .urb-detrows .ed-k { font-weight: 400; }
#urbPanel .urb-chips { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 4px; }
#urbPanel .urb-chip { display: inline-flex; align-items: center; gap: 0; padding: 1px 0; border-radius: 0; background: none; font-size: 11.5px; line-height: 18px; white-space: nowrap; color: var(--ink); }
#urbPanel .urb-chip::before { content: ''; flex: none; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ok); }
#urbPanel .urb-chip.t-info::before { background: var(--purple); }
#urbPanel .urb-chip.t-near::before { background: #c98a00; }
#urbPanel .urb-chip.t-over::before { background: var(--bad); }
#urbPanel .urb-chip.t-over { color: var(--bad); font-weight: 600; }
#urbPanel .urb-zr { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 0 6px; padding: 2px 0; border-top: 0; }
#urbPanel .urb-zt { display: inline-flex; align-items: center; gap: 0; }
#urbPanel .urb-zv { font-weight: 500; }
/* the presets: a quiet heading, flat two-column cards */
#urbPanel .urb-pre { padding: 8px 14px 4px; border-top: 0; }
#urbPanel .urb-h { display: flex; align-items: center; gap: 0; margin: 0 0 6px; font-size: 13px; font-weight: 400; }
#urbPanel .urb-pgrid { display: flex; flex-direction: column; gap: 2px; }
#urbPanel .urb-pw { position: relative; display: block; min-width: 0; }
#urbPanel .urb-pc {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 46px; padding: 4px 44px 4px 6px; border: 0; border-radius: 10px; background: transparent;
  box-shadow: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
@media (hover: hover) { #urbPanel .urb-pc:hover:not([aria-checked="true"]) { background: var(--soft); } }
#urbPanel .urb-pc[aria-checked="true"] { background: var(--purple-tint); box-shadow: inset 0 0 0 1.5px var(--purple); }
#urbPanel .urb-pc .urb-ico { width: 34px; height: 38px; }
#urbPanel .urb-ptx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#urbPanel .urb-pn { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
#urbPanel .urb-pnums { display: flex; flex-wrap: wrap; gap: 0 5px; font-size: 11px; line-height: 1.35; color: var(--muted-text); font-variant-numeric: tabular-nums; }
#urbPanel .urb-pnums > span { white-space: nowrap; }
#urbPanel .urb-pnums > span:not(:last-child)::after { content: ' ·'; }
#urbPanel .urb-pci { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 4px 5px; }
#urbPanel .urb-ptight {
  position: absolute; right: 38px; bottom: 6px; padding: 0 7px; border: 0; border-radius: 999px; background: #fdf0dc; color: #6b4a00; font: inherit;
  font-size: 10.5px; font-weight: 600; line-height: 16px; cursor: pointer;
}
#urbPanel .urb-pdesc { margin: 8px 0 2px; font-size: 12px; line-height: 1.4; }
#urbPanel .urb-own { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; }
#urbPanel .urb-ownb { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-ink); font-size: 10.5px; font-weight: 600; line-height: 16px; }
/* v10: urban3 – the presets in four small groups; the groups after the first behind one folded line "Další předvolby" */
#urbPanel .urb-gh { margin: 8px 0 2px 6px; font-size: 11.5px; font-weight: 400; color: var(--muted-text); }
#urbPanel .urb-pg:first-child .urb-gh { margin-top: 0; }
#urbPanel .urb-prem { margin: 6px -14px 0; }
#urbPanel .urb-prem > summary { padding-left: 14px; padding-right: 14px; }
#urbPanel .urb-prem-b { padding: 0 14px 4px; }
/* actions: small, quiet buttons */
#urbPanel .urb-acts { padding: 4px 14px 4px; border-top: 0; }
#urbPanel .urb-acts:empty { display: none; }
#urbPanel .urb-row { gap: 6px; margin: 2px 0 2px; }
#urbPanel .urb-acts .btn.small { padding: 4px 10px; font-size: 12px; }
#urbPanel .urb-confirm { margin: 6px 14px 2px; }
/* "Pokročilé": flat cards, flat segmented controls, light sliders */
#urbPanel .urb-adv { border-top: 0; }
#urbPanel .urb-typ, #urbPanel .urb-par, #urbPanel .urb-advb .urb-typ, #urbPanel .urb-advb .urb-par { padding: 4px 14px 6px; border-top: 0; }
#urbPanel .urb-card { border: 0; background: var(--soft); border-radius: 10px; box-shadow: none; }
#urbPanel .urb-card .urb-ico { width: 44px; height: 50px; }
#urbPanel .urb-cards-s .urb-ico { width: 36px; height: 42px; }
@media (hover: hover) { #urbPanel .urb-card:hover:not(.on) { background: var(--soft-2); } }
#urbPanel .urb-card.on { background: var(--purple-tint); box-shadow: inset 0 0 0 1.5px var(--purple); }
#urbPanel .urb-more > summary, #urbPanel .urb-about > summary { display: flex; align-items: center; gap: 6px; list-style: none; font-weight: 400; color: var(--ink); }
#urbPanel .urb-more > summary::-webkit-details-marker, #urbPanel .urb-about > summary::-webkit-details-marker { display: none; }
#urbPanel .urb-more > summary::before, #urbPanel .urb-about > summary::before { content: '›'; display: inline-block; width: 8px; color: var(--muted); font-weight: 600; transition: transform 0.15s; }
#urbPanel .urb-more[open] > summary::before, #urbPanel .urb-about[open] > summary::before { transform: rotate(90deg); }
#urbPanel .urb-about { margin-top: 6px; padding-top: 0; border-top: 0; font-size: 12px; }
#urbPanel .urb-fitrow { display: flex; align-items: center; gap: 0; margin: 3px 0; }
#urbPanel .ed-seg { padding: 2px; gap: 2px; border: 0; background: var(--soft); border-radius: 8px; }
#urbPanel .ed-sg { border-radius: 6px; background: transparent; }
#urbPanel .ed-sg[aria-checked="true"] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line-2); }
#urbPanel .urb-p { padding: 3px 0 2px; border-top: 0; }
#urbPanel .urb-pl { gap: 0; }
#urbPanel .urb-pl .urb-def { margin-left: 6px; font-size: 11px; }
#urbPanel .urb-grp > summary, #urbPanel .urb-adv .ed-sec > summary { padding-left: 0; padding-right: 0; }
#urbPanel .urb-adv > .urb-advd > summary { padding-left: 14px; padding-right: 14px; }
/* the comparison */
#urbPanel .urb-tbl { font-size: 11.5px; }
#urbPanel .urb-tbl th, #urbPanel .urb-tbl td { border-top: 0; }
#urbPanel .urb-tbl tbody tr:nth-child(even) > * { background: transparent; }
#urbPanel .urb-tbl .urb-tl { min-width: 54px; max-width: 70px; box-shadow: 6px 0 6px -6px rgba(0, 0, 0, 0.14); }
#urbPanel .urb-tbl thead .urb-tl { justify-content: flex-start; }
#urbPanel .urb-cmp .urb-tbl th.urb-tl { max-width: 70px; }
#urbPanel .urb-cmp .urb-row { margin-top: 6px; }
@media (max-width: 640px) {
  #urbPanel .ed-impact.urb-impact { padding: 6px 12px 8px; }
  #urbPanel .urb-kv { gap: 5px; }
  #urbPanel .urb-k { padding: 5px 6px; }
  #urbPanel .urb-k b { font-size: 12.5px; }
  #urbPanel .urb-kl { font-size: 10.5px; }
  #urbPanel .urb-ks { font-size: 10px; }
  #urbPanel .ed-sec > summary { padding: 0 12px; min-height: 42px; }
  #urbPanel .ed-sb2 { padding: 0 12px 8px; }
  #urbPanel .urb-pre, #urbPanel .urb-typ, #urbPanel .urb-par, #urbPanel .urb-advb .urb-typ, #urbPanel .urb-advb .urb-par { padding-left: 12px; padding-right: 12px; }
  #urbPanel .urb-prem { margin-left: -12px; margin-right: -12px; }
  #urbPanel .urb-prem > summary { padding-left: 12px; padding-right: 12px; }
  #urbPanel .urb-prem-b { padding-left: 12px; padding-right: 12px; }
  #urbPanel .urb-acts { padding-left: 12px; padding-right: 12px; }
  #urbPanel .urb-adv > .urb-advd > summary { padding-left: 12px; padding-right: 12px; }
  #urbPanel .urb-pc { padding-left: 4px; gap: 9px; }
  /* touch targets of at least 40 px: the ⓘ boxes are 40 x 40 and cancel their size with negative margins */
  #urbPanel .urb-i { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; margin: -13px -14px; padding: 0; }
  #urbPanel .urb-kl .urb-i { margin: -13px -14px -13px auto; }
  #urbPanel .urb-pci { margin: 0; right: 0; }
  #urbPanel .urb-ptight::before { content: ''; position: absolute; top: -12px; bottom: -12px; left: -8px; right: -8px; }
  #urbPanel .btn.small { min-height: 40px; padding: 4px 12px; }
  #urbPanel .ed-head .xbtn { width: 40px; height: 40px; }
  #urbPanel .ed-sg { min-width: 40px; }
  #urbPanel .ed-lnk { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  #urbPanel .urb-range { height: 40px; }
  #urbPanel .urb-colb { min-height: 40px; }
  #urbPanel .urb-more > summary, #urbPanel .urb-about > summary { min-height: 40px; }
  #urbPanel .urb-card { min-height: 40px; }
  #urbPanel .urb-chip { min-height: 24px; }
  #urbPanel .urb-pop { font-size: 12.5px; }
}
/* v10: lite-var – end */
/* v10: lite-ed – "Úpravy domů" (the volume editor, #edPanel, src/ui/editpanel.js) lightened: the title with one ⓘ (no grey subtitle),
   the HPP number with its bar and four flat tiles (Byty, Parkování, Nejvyšší bod, Náklady), one row of small toggles (Upozornění,
   Zjištění, Podrobnosti), the houses as wrapped pills, regular-weight folded sections without rules, flat controls, ONE popover for every
   ⓘ (#edPop, src/ui/edpop.js: the same behaviour as in the Varianty urbanismu tab). Every rule is scoped with #edPanel, so the
   other panels (#urbPanel, #vpPanel) and the rest of the page are unaffected. One accent (violet); green / amber / red keep their meaning. */
/* the title and its ⓘ; the variant row */
#edPanel .ed-head { padding: 8px 6px 4px 14px; }
#edPanel .ed-tt { display: flex; align-items: center; gap: 2px; }
#edPanel .ed-ti { display: inline-flex; }
#edPanel .ed-preset { gap: 4px 8px; padding: 4px 14px 8px; border-bottom: 0; }
#edPanel .ed-pl { font-size: 12px; font-weight: 400; }
#edPanel .ed-psel { height: 32px; border: 0; background: var(--soft); color: var(--ink); font-weight: 500; border-radius: var(--radius-s); padding: 0 8px; cursor: pointer; }
#edPanel .ed-psel:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#edPanel .ed-pe { font-weight: 500; }
/* ⓘ: the glyph as in the other tab, a bigger hit area on a phone; the popover is placed by the script next to its button */
#edPanel .ed-i { position: relative; flex: none; padding: 2px 3px; font-size: 12px; line-height: 1; color: var(--purple-ink); background: none; border: 0; cursor: pointer; }
@media (hover: hover) { #edPanel .ed-i:hover { color: var(--ink); } }
#edPanel .ed-i:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-radius: 4px; }
#edPanel .ed-i[aria-expanded="true"] { color: var(--ink); }
#edPanel .ed-pop {
  position: fixed; z-index: 40; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; background: var(--white); color: var(--ink);
  box-shadow: var(--lift-strong), 0 0 0 1px var(--line); font-size: 12px; line-height: 1.45; overflow: auto; overscroll-behavior: contain; outline: none;
}
#edPanel .ed-pop[hidden] { display: none; }
#edPanel .ed-pop p { margin: 0; }
/* the sticky numbers */
#edPanel .ed-impact { padding: 8px 14px 9px; border-bottom: 0; box-shadow: 0 8px 8px -10px rgba(0, 0, 0, 0.22); }
#edPanel .ed-hpp { padding-bottom: 2px; }
#edPanel .ed-hpp .ed-k { font-size: 12px; font-weight: 400; }
#edPanel .ed-hpp .ed-v { display: flex; align-items: baseline; gap: 8px; }
#edPanel .ed-hpp .ed-v b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
#edPanel .ed-hpp .ed-d { margin-left: 0; }
#edPanel .ed-bar { height: 6px; margin: 6px 0 2px; }
#edPanel .ed-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; margin-top: 8px; }
#edPanel .ed-tile { position: relative; min-width: 0; padding-left: 9px; }
#edPanel .ed-tile::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; border-radius: 1px; background: var(--hair-strong); }
#edPanel .ed-tile.t-near::before { background: #c98a00; }
#edPanel .ed-tile.t-over::before { background: var(--bad); }
#edPanel .ed-tile.t-target::before { background: var(--vk-target-line, #8ea0b8); }
#edPanel .ed-tile .ed-k { font-size: 11.5px; font-weight: 400; gap: 0; }
#edPanel .ed-tile .ed-v { margin-top: 0; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
#edPanel .ed-tile .ed-v b { font-size: 14.5px; font-weight: 600; }
#edPanel .ed-tile.t-near .ed-v b { color: #6b4a00; }
#edPanel .ed-tile.t-over .ed-v b { color: var(--bad); }
#edPanel .ed-tile.t-target .ed-v b { color: var(--vk-target, #4b6383); }
#edPanel .ed-flag { font-size: 11.5px; font-weight: 500; color: var(--muted-text); }
#edPanel .ed-tile.t-over .ed-flag { color: var(--bad); }
#edPanel .ed-tile.t-near .ed-flag { color: #6b4a00; }
#edPanel .ed-impact.pending .ed-tile[data-row="byty"] .ed-v b, #edPanel .ed-impact.pending .ed-tile[data-row="cost"] .ed-v b { opacity: 0.6; }
#edPanel .ed-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#edPanel .ed-flagb {
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--soft);
  color: var(--muted-text); font: inherit; font-size: 12px; cursor: pointer;
}
#edPanel .ed-flagb::after { content: '▾'; font-size: 9px; }
#edPanel .ed-flagb[aria-expanded="true"]::after { content: '▴'; }
#edPanel .ed-flagb[aria-expanded="true"] { background: var(--soft-2); color: var(--ink); }
#edPanel .ed-flagb.fw { background: var(--bad-tint); color: var(--bad); font-weight: 600; }
@media (hover: hover) { #edPanel .ed-flagb:hover { background: var(--soft-2); } }
#edPanel .ed-flagb:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#edPanel .ed-fl2 { margin-top: 6px; font-size: 12px; }
#edPanel .ed-fl2 ul { margin: 2px 0 0; padding: 0 0 0 16px; max-height: 120px; overflow: auto; }
#edPanel .ed-fl2 li { margin: 2px 0; }
#edPanel .ed-fl-warn li { color: var(--bad); }
#edPanel .ed-dets { margin-top: 6px; }
#edPanel .ed-dr { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; padding: 3px 0; font-size: 12px; }
#edPanel .ed-dr .ed-k { font-size: 12px; font-weight: 400; }
#edPanel .ed-dr .ed-v b { font-weight: 600; }
#edPanel .ed-dr.t-over .ed-v b { color: var(--bad); }
#edPanel .ed-dr.t-near .ed-v b { color: #6b4a00; }
#edPanel .ed-po10 { margin: 8px 14px 0; padding: 0; border-radius: 0; background: none; color: var(--purple-ink); font-size: 12px; }
/* the selection: "Vybrat" chips and the houses as pills */
#edPanel .ed-pick { padding: 8px 14px 2px; }
#edPanel .ed-filters { gap: 6px; }
#edPanel .ed-fk { margin-right: 0; font-size: 12px; }
#edPanel .ed-f { border: 0; background: var(--soft); padding: 3px 11px; min-height: 28px; font-size: 12px; }
@media (hover: hover) { #edPanel .ed-f:hover { background: var(--soft-2); } }
#edPanel .ed-f[aria-pressed="true"] { background: var(--ink); color: #fff; }
#edPanel .ed-sel { padding: 2px 0 0; }
#edPanel .ed-houses > summary { display: flex; align-items: baseline; gap: 8px; padding: 7px 0 5px; cursor: pointer; list-style: none; user-select: none; }
#edPanel .ed-houses > summary::-webkit-details-marker { display: none; }
#edPanel .ed-houses > summary::before { content: '›'; color: var(--muted); width: 8px; transition: transform 0.15s; display: inline-block; font-weight: 600; }
#edPanel .ed-houses[open] > summary::before { transform: rotate(90deg); }
#edPanel .ed-houses > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-radius: 4px; }
#edPanel .ed-pills { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-wrap: wrap; gap: 5px; }
#edPanel .ed-pill { margin: 0; padding: 0; }
#edPanel .ed-pill .ed-name {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--soft);
  font-size: 12px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
}
#edPanel .ed-pill .ed-name b { font-weight: 500; }
@media (hover: hover) { #edPanel .ed-pill:not(.on) .ed-name:hover { background: var(--soft-2); } }
#edPanel .ed-pill.on .ed-name { background: var(--ink); color: #fff; }
#edPanel .ed-pill .ed-name:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#edPanel .ed-pill.rm .ed-name b { text-decoration: line-through; color: var(--muted-text); }
#edPanel .ed-pill.on.rm .ed-name b { color: #ddd; }
#edPanel .ed-fd { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--na); }
#edPanel .ed-fd.ok { background: var(--ok); }
#edPanel .ed-fd.over { background: var(--bad); }
#edPanel .ed-mark { margin-left: 0; color: var(--purple-light); font-weight: 700; }
#edPanel .ed-pill:not(.on) .ed-mark { color: var(--purple); }
/* the folded sections: no rules, regular-weight titles */
#edPanel .ed-sec { border-top: 0; }
#edPanel .ed-sec > summary { padding: 8px 14px; min-height: 36px; align-items: center; }
#edPanel .ed-st { font-weight: 400; font-size: 13.5px; }
#edPanel .ed-ss { font-size: 12px; }
#edPanel .ed-sb2 { padding: 0 14px 10px; }
#edPanel .ed-hint { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted-text); }
#edPanel .ed-selhead { display: flex; flex-wrap: wrap; align-items: center; gap: 0 3px; margin: 0 0 4px; }
#edPanel .ed-selhead b { font-size: 14px; font-weight: 600; }
/* rows: a quiet label, the controls flat */
#edPanel .ed-row { grid-template-columns: 122px minmax(0, 1fr); gap: 3px 8px; padding: 4px 0; border-top: 0; }
#edPanel .ed-rl { font-size: 12.5px; color: var(--muted-text); }
#edPanel .ed-rowb { gap: 6px; padding: 6px 0 2px; border-top: 0; align-items: center; }
#edPanel .ed-step { border: 0; background: var(--soft); }
#edPanel .ed-sv { border-left: 0; border-right: 0; }
#edPanel .ed-tog { border: 0; background: var(--soft); }
#edPanel .ed-tog[aria-checked="true"] { background: var(--ink); color: #fff; }
#edPanel .ed-tog[aria-checked="mixed"] { background: var(--purple-tint); color: var(--purple-ink); }
#edPanel .ed-side { border: 0; background: var(--soft); }
#edPanel .ed-side[aria-pressed="true"] { background: var(--ink); color: #fff; }
#edPanel .ed-move { border: 0; background: var(--soft); }
#edPanel .ed-move .ed-sb + .ed-sb { border-left: 0; }
#edPanel .ed-seg { border: 0; padding: 2px; gap: 2px; background: var(--soft); }
#edPanel .ed-sg { border-radius: 6px; background: transparent; }
#edPanel .ed-sg[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { #edPanel .ed-sg:hover:not([aria-checked="true"]):not(:disabled) { background: var(--soft-2); } }
#edPanel .ed-depth { border-top: 0; padding: 2px 0 4px; }
#edPanel .ed-leg { gap: 2px 10px; margin: 0 0 2px; }
#edPanel .ed-sum { margin: 6px 0 2px; padding: 0; border-radius: 0; background: none; font-size: 12px; }
#edPanel .ed-sel1 { box-shadow: none; }
#edPanel .ed-psite { box-shadow: none; }
#edPanel .ed-po { margin: 6px 0 0; padding: 0; background: none; color: var(--purple-ink); font-size: 12px; }
#edPanel .ed-cgrid { gap: 8px 14px; margin: 8px 0; }
#edPanel .ed-cc { padding: 0 0 0 9px; border-radius: 0; background: none; box-shadow: inset 2px 0 0 var(--hair-strong); }
#edPanel .ed-cc .ed-k { font-weight: 400; }
#edPanel .ed-notes { margin: 6px 0 4px; padding: 0 0 0 16px; }
#edPanel .ed-warn { border-top: 0; margin-top: 6px; }
/* the balance table (its class was ed-tab, the class of the tab strip's buttons) */
#edPanel .ed-bil { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
#edPanel .ed-bil caption { text-align: left; font-weight: 400; font-size: 12.5px; padding: 2px 0 4px; color: var(--muted-text); }
#edPanel .ed-bil td { padding: 3px 0; border-top: 1px solid var(--hair); }
#edPanel .ed-bil td.num { text-align: right; white-space: nowrap; }
#edPanel .ed-bil .u { color: var(--muted-text); font-size: 11px; }
#edPanel .ed-bil tr.sec th { text-align: left; font-size: 11px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-text); padding: 8px 0 2px; }
#edPanel .ed-chip { font-weight: 500; }
#edPanel .ed-fx li { border-top: 1px solid var(--hair); }
/* the footer: buttons and one line with its ⓘ */
#edPanel .ed-foot { padding: 8px 14px 12px; border-top: 0; }
#edPanel .ed-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-text); }
@media (max-width: 640px) {
  /* touch targets of at least 40 px: the ⓘ boxes are 40 x 40 and cancel their size with negative margins */
  #edPanel .ed-i { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; margin: -13px -14px; padding: 0; }
  #edPanel .ed-tile .ed-k .ed-i { margin-left: -12px; }
  #edPanel .ed-head { padding: 0 2px 0 12px; }
  #edPanel .ed-head .xbtn { width: 40px; height: 40px; }
  #edPanel .ed-preset { padding: 2px 12px 6px; }
  #edPanel .ed-psel { height: 40px; }
  #edPanel .ed-impact { padding: 4px 12px 6px; }
  /* the one-line summary alone until it is tapped (the id selectors above would otherwise show every part) */
  #edPanel .ed-impact:not(.open) > :not(.ed-isum):not(.ed-po) { display: none; }
  #edPanel .ed-isum { min-height: 40px; }
  #edPanel .ed-hpp .ed-v b { font-size: 19px; }
  #edPanel .ed-flagb { min-height: 40px; padding: 0 14px; }
  #edPanel .ed-f { min-height: 40px; padding: 0 14px; }
  #edPanel .ed-pill .ed-name { min-height: 40px; padding: 0 14px; font-size: 12.5px; }
  #edPanel .ed-houses > summary { min-height: 40px; align-items: center; padding: 0; }
  #edPanel .ed-pick { padding: 4px 12px 0; }
  #edPanel .ed-sec > summary { min-height: 44px; padding: 8px 12px; }
  #edPanel .ed-sb2 { padding: 0 12px 10px; }
  #edPanel .ed-row { grid-template-columns: 104px minmax(0, 1fr); padding: 3px 0; }
  #edPanel .ed-foot { padding: 6px 12px 10px; }
  #edPanel .ed-po10 { margin: 4px 12px 0; }
  #edPanel .ed-lnk { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  #edPanel .btn.small { min-height: 40px; padding: 4px 12px; }
  #edPanel .ed-fx summary, #edPanel .ed-warn > summary { min-height: 40px; align-items: center; }
  #edPanel .ed-mh { width: 32px; margin-left: -16px; }
  #edPanel .ed-mh::after { left: 15px; }
  #edPanel .ed-dr { min-height: 40px; align-items: center; }
  #edPanel .ed-pop { font-size: 12.5px; }
  #edPanel .ed-sg { min-height: 40px; }
}
/* v10: lite-ed – end */
/* v19: info-menu – Informace as a menu bar (src/ui/infomenu.js). v19.1: no panel behind it – a slim floating bar of the groups
   and the open group's list as a small card under its tab; the canvas stays visible */
#infoPanel.im-wide { width: max-content; max-width: calc(100vw - 24px); height: auto; max-height: none; background: transparent; border: 0;
  box-shadow: none; overflow: visible; pointer-events: none; }
#infoPanel.im-wide > .grip, #infoPanel.im-wide > .pop-head, #infoPanel.im-wide > .info-disc, #infoPanel.im-wide > .info-foot { display: none; }
#infoPanel.im-wide #infoList { padding: 0; overflow: visible; }
.im { position: relative; pointer-events: none; }
.im-bar, .im-drop { pointer-events: auto; }
.im-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.im-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 1px; min-height: 40px; box-sizing: border-box; background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius, 12px); box-shadow: var(--lift); } /* v19.3: the top bar's card (40 px, 12 px, glass, lift) */
.im-tab { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; } /* v19.3: the top bar's buttons (36 px, 13 px 500) */
.im-tab:hover { background: var(--soft); }
.im-tab .im-tt { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.im-tab.open .im-tt { border-bottom-color: var(--ink); font-weight: 600; }
.im-tab.has-on .im-tt { color: var(--purple-ink, var(--purple)); }
.im-tab .im-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 600;
  line-height: 18px; text-align: center; }
.im-tab .im-c { width: 14px; height: 14px; opacity: .55; transition: transform .15s; }
.im-tab.open .im-c { transform: rotate(180deg); }
.im-end { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding-left: 4px; border-left: 1px solid var(--hair); height: 24px; }
.im-i { display: inline-grid; place-items: center; width: 32px; height: 36px; border-radius: 10px; color: var(--muted-text); font-size: 14px; cursor: help; }
.im-act { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--purple-ink, var(--purple)); font: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.im-act:hover, .im-x:hover { background: var(--soft); }
.im-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.im-tab:focus-visible, .im-it:focus-visible, .im-act:focus-visible, .im-x:focus-visible, .im-i:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.im-drop { position: absolute; top: calc(100% + 6px); display: flex; flex-direction: column; width: max-content; max-width: min(520px, calc(100vw - 24px));
  padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift-strong, var(--shadow-float));
  max-height: calc(100vh - 180px); overflow: auto; overscroll-behavior: contain; }
.im-it { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.im-it:hover { background: var(--soft); }
.im-it .im-it-t { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.im-it.on .im-it-t { color: var(--purple-ink, var(--purple)); font-weight: 600; border-bottom-color: currentColor; }
.im-it .im-sw { display: inline-flex; gap: 2px; width: 46px; flex: none; justify-content: flex-start; opacity: .45; }
.im-it.on .im-sw { opacity: 1; }
.im-it .im-sw i { display: block; width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.im-busy { font-size: 12px; color: var(--muted-text); }
.im-back { padding: 2px 4px 8px; }
@media (max-width: 640px) {
  /* the phone: the bar sits above the credits, the list opens upwards; the map above stays live */
  #infoPanel.im-wide { left: var(--gap); right: var(--gap); top: auto; bottom: calc(var(--credits-h, 40px) + 8px); width: auto; height: auto; border-radius: 0; }
  .im-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .im-tabs, .im-end { width: 100%; min-width: 0; }
  .im-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .im-end { margin-left: 0; padding: 2px 0 0; border-left: 0; border-top: 1px solid var(--hair); justify-content: flex-end; }
  .im-drop { top: auto; bottom: calc(100% + 6px); left: 0 !important; right: 0; width: auto; max-width: none; max-height: 52vh; }
}
/* v19: info-menu – end */
/* v20: forma-edit – the label next to the pointer while a handle is dragged (src/ui/editpanel.js) */
.ed-drag-tag { position: fixed; left: 0; top: 0; z-index: 60; padding: 5px 10px; border-radius: 8px; background: #1f1a3d; color: #fff;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ed-drag-tag[hidden] { display: none; }
/* v20: forma-edit – end */
/* v21: plan-view – the "Plán" view as a site plan (src/planview.js): labels over the canvas and the legend card */
.plan-layer { position: fixed; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; }
.plan-layer[hidden] { display: none; }
.plan-lbl { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap; line-height: 1.15;
  font-family: var(--font, system-ui), system-ui, sans-serif; will-change: transform; }
.plan-house b { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.plan-house span { font-size: 10.5px; font-weight: 500; color: #fff; opacity: .92; font-variant-numeric: tabular-nums; }
.plan-house { text-shadow: 0 0 2px #2d1fa3, 0 0 4px #2d1fa3, 0 0 7px rgba(45, 31, 163, .6); }
.plan-house[data-detail="0"] { display: none; }
.plan-house[data-detail="1"] span { display: none; }
.plan-house[data-detail="1"] b { font-size: 11px; }
.plan-street b { font-size: 11px; font-weight: 600; font-style: italic; color: #6b6a66; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 6px #fff; }
.plan-park b { font-size: 12px; font-weight: 600; color: #4f7a3a; text-shadow: 0 0 3px #fff, 0 0 5px #fff; }
.plan-legend { position: fixed; left: var(--gap, 12px); bottom: calc(var(--chrome-bottom, 64px) + 8px); z-index: 19; width: 248px; padding: 12px 14px 10px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift); font-size: 12px; color: var(--ink); }
.plan-legend[hidden] { display: none; }
.plan-legend h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-legend .pl-sub { margin: 2px 0 8px; color: var(--muted-text); font-size: 12px; }
.plan-legend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.plan-legend li { display: flex; align-items: center; gap: 8px; }
.pl-sw { display: inline-block; flex: none; width: 22px; height: 12px; border-radius: 2px; }
.pl-new { background: #6650ef; }
.pl-old { background: #2b2c30; }
.pl-plot { height: 0; border-top: 2px dashed #d6453d; border-radius: 0; }
.pl-ug { height: 0; border-top: 1.5px dashed #6b6f78; border-radius: 0; }
.pl-park { background: rgba(159, 207, 134, .45); }
.pl-green { background: #eef3e6; box-shadow: inset 0 0 0 1px #dfe7d4; }
.pl-road { background: #dedcd6; }
.pl-tree { display: inline-block; width: 9px; height: 9px; margin: 0 2px; border-radius: 50%; background: rgba(143, 191, 114, .7); vertical-align: -1px; }
.plan-legend .pl-foot { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--hair); color: var(--muted-text); font-size: 10.5px; }
body.pres-on .plan-legend, body.maximized .plan-legend { display: none; }
@media (max-width: 640px) { .plan-legend { width: auto; right: var(--gap, 12px); bottom: calc(var(--credits-h, 40px) + 64px); font-size: 11px; }
  .plan-legend ul { grid-template-columns: 1fr 1fr; } }
/* v21: plan-view – end */
/* v22: credits-info – the credits strip as a pill (ⓘ + the OpenStreetMap credit) bottom right; the ⓘ opens a card with all of it */
body.credits-compact .attribution { left: auto; right: var(--gap, 12px); bottom: 6px; min-height: 28px; max-width: calc(100vw - 2 * var(--gap, 12px));
  padding: 2px 10px 2px 3px; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); box-shadow: var(--lift); font-size: 11px; color: var(--muted-text); }
body.credits-compact:not(.credits-open) .attribution .credits > span, /* v34.2: only the ⓘ (the user's request) */
body.credits-compact:not(.credits-open) .attribution .more,
body.credits-compact:not(.credits-open) .attribution .honest { display: none; }
body.credits-compact:not(.credits-open) .attribution .credits { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.credits-i { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink); cursor: pointer; }
.credits-i:hover, .credits-i[aria-expanded="true"] { background: var(--soft); }
.credits-i .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.credits-i:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
body.credits-compact.credits-open .attribution { display: block; width: min(560px, calc(100vw - 2 * var(--gap, 12px))); padding: 10px 14px 12px 10px;
  white-space: normal; line-height: 1.55; border-radius: 12px; background: var(--white); color: #2a2a30; font-size: 11.5px; z-index: 40;
  max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain; }
body.credits-compact.credits-open .attribution::before { content: 'Zdroje dat a licence'; display: block; margin: 1px 0 6px 28px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
body.credits-compact.credits-open .attribution .credits-i { position: absolute; left: 8px; top: 8px; }
body.credits-compact.credits-open .attribution { position: fixed; }
body.credits-compact.credits-open .attribution .credits { display: inline; }
body.credits-compact.credits-open .attribution .credits > span { display: inline; }
body.credits-compact.credits-open .attribution .more { display: inline-block; margin-left: 4px; min-height: 0; padding: 0 2px; }
body.credits-compact.credits-open .attribution .honest { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--hair); white-space: normal; }
body.credits-compact.credits-open .attribution .honest .tail { display: inline; }
/* v22: credits-info – end */
/* v23: time-mini – the time pill small and minimal, bottom right next to the compass (desktop; the phone keeps its own row) */
@media (min-width: 641px) {
  body.study .timebar { left: auto; right: calc(var(--gap) + 52px); width: auto; transform: none; }
  body.study .tb-pill { height: 40px; gap: 6px; padding: 0 5px 0 4px; }
  body.study .play-btn { width: 30px; height: 30px; }
  body.study .play-btn .ico { width: 12px; height: 12px; }
  body.study .slider-wrap { flex: none; width: 132px; min-width: 0; height: 28px; }
  body.study .slider-wrap input[type=range] { height: 18px; }
  body.study .ticks { display: none; }
  body.study .time-label { min-width: 38px; font-size: 13px; }
  body.study .date-btn { height: 30px; gap: 4px; padding: 0 7px; font-size: 12px; background: transparent; }
  body.study .date-btn:hover { background: var(--soft); }
  body.study .date-btn[aria-expanded="true"] { background: var(--ink); }
  body.study .date-btn .leaf { width: 14px; height: 14px; }
  body.study .date-btn .caret { display: none; }
  body.study .tb-summer { height: 28px; padding: 0 8px; font-size: 12px; border-color: var(--line); }
  body.study .tb-card { left: auto; right: 0; transform: none; }
}
/* v23: time-mini – end */
/* v24: pz-quiet – the proposal chip without the "Návrh · upraveno ⓘ" words: only Před | Po and the scene button stay visible.
   The label stays for assistive technology (the group's aria-labelledby); Po's title keeps "s návrhem (nepostaveno)". */
body.study #hudProposal .pdot, body.study #hudProposal #pzInfo { display: none !important; }
body.study #hudProposal .plabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.study #hudProposal { padding-left: 3px; gap: 4px; }
@media (max-width: 640px) { body.study #hudProposal { flex: 0 0 auto; width: auto; max-width: 100%; } }
/* v24: pz-quiet – end */
/* v18.3: ma-focus – every slide points at its subject in the 3D: the callouts draw in (dot, then leader, then label, staggered),
   the focus pointer (kind "focus", the accent) keeps a soft pulse on its point; a compact card folds its details */
.pres-co.k-focus { --c: var(--purple); }
.pres-cos.go .pres-co-dot { animation: pres-co-dot .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 160ms + 250ms); }
.pres-cos.go .pres-co-line { animation: pres-co-fade .35s ease-out both; animation-delay: calc(var(--i, 0) * 160ms + 450ms); }
.pres-cos.go .pres-co-box { animation: pres-co-box .45s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 600ms); }
.pres-co.k-focus .pres-co-dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.pres-co.k-focus .pres-co-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.pres-cos.go .pres-co.k-focus .pres-co-dot::after {
  animation: pres-co-pulse 1.8s ease-out infinite; animation-delay: calc(var(--i, 0) * 160ms + 900ms); opacity: 0; }
.pres-co.k-focus .pres-co-box { padding: 7px 11px 8px; border-left: 3px solid var(--c); box-shadow: 0 8px 24px rgba(31, 26, 61, .18); }
.pres-co.k-focus .pres-co-box b { display: block; font-size: 14px; color: var(--ink); }
.pres-co.k-focus .pres-co-box span { display: block; font-size: 12px; color: var(--muted-text); margin-top: 1px; }
.pres-co.k-focus .pres-co-line { height: 2px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, transparent)); }
@keyframes pres-co-dot { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes pres-co-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pres-co-box { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes pres-co-pulse { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 2.6; } }
@media (prefers-reduced-motion: reduce) { .pres-co-dot, .pres-co-line, .pres-co-box, .pres-co.k-focus .pres-co-dot::after { animation: none !important; } }
.pres-more { margin-top: 8px; border-top: 1px solid var(--hair); padding-top: 6px; }
.pres-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--purple-ink, var(--purple)); padding: 4px 0; }
.pres-more > summary::-webkit-details-marker { display: none; }
.pres-more > summary::after { content: '▾'; font-size: 11px; transition: transform .15s; }
.pres-more[open] > summary::after { transform: rotate(180deg); }
.pres-more > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.pres-cos:not(.go) .pres-co > * { opacity: 0; }
/* v18.3: ma-focus – end */
/* v18.4: ma-simple – a compact card: the essentials only (title, one line, one quiet source line) */
.pres-card:has(.pres-foot-min) { padding-bottom: 10px; }
.pres-card:has(.pres-foot-min) .pres-title { font-size: 20px; line-height: 1.2; }
.pres-card:has(.pres-foot-min) > .pres-lead { font-size: 14px; margin-bottom: 2px; }
.pres-foot-min { border-top: 0; padding-top: 4px; margin-top: 4px; }
.pres-foot-min .pres-src { font-size: 11px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
/* v18.4: ma-simple – end */

/* v30: cost-mgmt */
/* "Náklady" (#cmBtn, src/ui/costpanel.js; left of Prezentace) and its card (left, between the top and bottom chrome; a
   bottom sheet on a phone): the summary investment budget live from the model; the 3D shows its parts (src/cmviz.js) with
   HTML callouts (.cm-cos). Series colours: the validated categorical slots 1–5 of the data-viz reference palette. */
.cm-btn { gap: 6px; }
/* "Výhledy" (#viewsBtn, index.html): the views from the flats as a map tool (src/viewcheck.js) */
.vc-btn { gap: 6px; }
.vc-btn .ico { width: 16px; height: 16px; }
.cm-btn .ico { width: 16px; height: 16px; }
.cm-panel {
  position: fixed; z-index: 26; left: var(--gap); top: var(--chrome-top); bottom: var(--chrome-bottom); width: min(410px, calc(100vw - 2 * var(--gap)));
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift-strong);
  font-size: 12.5px; line-height: 1.4; color: var(--ink); overflow: hidden;
}
.cm-head { position: relative; flex: none; padding: 12px 44px 10px 16px; border-bottom: 1px solid var(--hair); }
.cm-kick { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple-ink); }
.cm-tag { padding: 1px 7px; border-radius: 999px; background: var(--soft-2); color: var(--muted-text); font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.cm-tag.ed { background: var(--purple-tint); color: var(--purple-ink); }
.cm-title { margin: 4px 0 0; font-family: var(--font-head); font-size: 18px; line-height: 1.2; }
.cm-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--muted-text); }
.cm-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink); cursor: pointer; }
.cm-x:hover { background: var(--soft); }
.cm-x .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cm-x:focus-visible, .cm-row:focus-visible, .cm-sor:focus-visible, .cm-sb:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.cm-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 12px 16px 14px; }
.cm-load { margin: 16px; color: var(--muted-text); }
.cm-hero { display: grid; gap: 8px; }
.cm-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.cm-total .cm-tl { flex-basis: 100%; }
.cm-total b { font-family: var(--font-head); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cm-u { font-size: 13px; color: var(--muted-text); }
.cm-tl { font-size: 11px; color: var(--muted-text); }
.cm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.cm-tile { min-width: 0; padding: 6px 8px; border-radius: var(--radius-s); background: var(--soft); display: flex; flex-direction: column; }
.cm-tile b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-tn { font-size: 10.5px; line-height: 1.3; color: var(--muted-text); }
/* the stacked bar: 2 px surface gaps between the fills, rounded ends */
.cm-bar { display: flex; gap: 2px; height: 14px; margin: 14px 0 6px; }
.cm-seg { min-width: 3px; cursor: pointer; }
.cm-seg:first-child { border-radius: 4px 0 0 4px; }
.cm-seg:last-child { border-radius: 0 4px 4px 0; }
.cm-leg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: 11.5px; }
.cm-leg li { display: flex; align-items: center; gap: 6px; min-width: 0; cursor: default; }
.cm-leg li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-leg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-sw { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.cm-viz { display: flex; align-items: center; gap: 2px; margin: 12px 0 4px; padding: 2px; border-radius: 10px; background: var(--soft); }
.cm-vl { padding: 0 8px 0 6px; font-size: 11px; color: var(--muted-text); }
.cm-sb { flex: 1; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cm-sb[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); font-weight: 600; }
.cm-ramp { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-text); }
.cm-ramp i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d9e8fb, #5b9be6, #1f5fae); }
.cm-tab { margin-top: 10px; }
.cm-th, .cm-row, .cm-d, .cm-sum, .cm-sor { display: grid; grid-template-columns: 14px 1fr auto; gap: 0 8px; align-items: start; }
.cm-th { grid-template-columns: 1fr auto; padding: 0 2px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-text); border-bottom: 1px solid var(--line); }
.cm-row { padding: 6px 2px; border-bottom: 1px solid var(--hair); cursor: pointer; border-radius: 4px; }
.cm-row:hover, .cm-row.on { background: var(--soft); }
.cm-row.zero { color: var(--muted-text); }
.cm-row .cm-sw { margin-top: 3px; }
.cm-l { min-width: 0; display: flex; flex-direction: column; }
.cm-ln { font-weight: 500; }
.cm-m { font-size: 10.5px; color: var(--muted-text); }
.cm-a, .cm-sum b, .cm-d b, .cm-sor b { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cm-car { display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.cm-row[aria-expanded="true"] .cm-car { transform: rotate(-135deg); margin-bottom: -1px; }
.cm-d { grid-template-columns: 1fr auto; padding: 6px 2px; font-weight: 600; border-bottom: 1px solid var(--line); }
.cm-sum { grid-template-columns: 1fr auto; margin-top: 6px; padding: 9px 10px; border-radius: var(--radius-s); background: var(--soft-2); font-size: 13px; font-weight: 700; }
.cm-sum b { font-size: 16px; }
.cm-so { margin: 0 0 4px 22px; border-left: 2px solid var(--hair); }
.cm-sor { grid-template-columns: 52px 1fr auto; padding: 3px 4px 3px 8px; font-size: 11.5px; cursor: pointer; border-radius: 4px; }
.cm-sor.sub { grid-template-columns: 1fr auto; cursor: default; }
.cm-sor:hover { background: var(--soft); }
.cm-son { color: var(--muted-text); font-variant-numeric: tabular-nums; }
.cm-sid small { color: var(--muted-text); }
.cm-note { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted-text); }
.cm-fold { margin-top: 10px; border-top: 1px solid var(--hair); padding-top: 8px; }
.cm-fold > summary { cursor: pointer; font-weight: 600; font-size: 12.5px; }
.cm-ct { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cm-ct th, .cm-ct td { padding: 3px 4px; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.cm-ct tbody th { text-align: left; font-weight: 400; color: var(--muted-text); white-space: normal; }
.cm-ct thead th { font-weight: 600; }
.cm-ct .me { background: var(--purple-tint); }
.cm-ct thead small { display: block; font-weight: 400; color: var(--purple-ink); }
.cm-ct tr.tot td, .cm-ct tr.tot th { font-weight: 700; color: var(--ink); }
.cm-par { display: grid; gap: 4px; margin-top: 6px; }
.cm-pr { display: grid; grid-template-columns: 1fr 92px 64px; align-items: center; gap: 6px; font-size: 11.5px; }
.cm-pr em { font-style: normal; font-size: 10px; color: #8a5a00; }
.cm-pr input { width: 100%; height: 26px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.cm-pr.ch input { border-color: var(--purple); background: var(--purple-tint); }
.cm-pr small { color: var(--muted-text); }
.cm-par + .cm-note + .btn { margin-top: 6px; }
.cm-src { margin: 6px 0 0; padding-left: 16px; font-size: 11px; color: var(--muted-text); }
.cm-src li { margin: 3px 0; }
.cm-out { margin-top: 12px; font-size: 11px; line-height: 1.45; color: #2a2a30; }
.cm-out p { margin: 4px 0; }
.cm-hon { padding-left: 8px; border-left: 3px solid #c9c9cf; }
.cm-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.cm-srcl { font-size: 10.5px; color: var(--muted-text); cursor: help; }
/* callouts over the 3D */
.cm-cos { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.cm-co { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16); font-size: 11.5px; white-space: nowrap; color: var(--ink); will-change: transform; }
.cm-co i { width: 9px; height: 9px; border-radius: 3px; }
.cm-co b { font-variant-numeric: tabular-nums; }
.cm-co.so { padding: 2px 6px; font-size: 11px; gap: 4px; }
.cm-co::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.08); }
body.cm-on .layers-card, body.cm-on #infoCard { display: none !important; }
body.pres-on .cm-panel, body.pres-on .cm-cos, body.maximized .cm-panel { display: none !important; }
@media (max-width: 1023px) {
  .cm-btn .lbl { display: none; }
}
@media (max-width: 640px), (orientation: portrait) and (max-width: 1023px) {
  .cm-panel { left: 0; right: 0; top: auto; bottom: var(--credits-h); width: auto; height: 46%; border-radius: 16px 16px 0 0; }
  .cm-total b { font-size: 24px; }
}
/* v31: výkaz výměr – the second tab of the Náklady card */
.cm-tabs { flex: none; display: flex; gap: 2px; margin: 8px 16px 0; padding: 2px; border-radius: 10px; background: var(--soft); }
.cm-tb { flex: 1; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.cm-tb[aria-selected="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); font-weight: 600; }
.cm-tb:focus-visible, .cm-vo:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.cm-vlead { margin: 0 0 8px; font-size: 11.5px; color: #2a2a30; }
.cm-vv { margin-top: 10px; border-top: 1px solid var(--line); }
.cm-vo { width: 100%; display: grid; grid-template-columns: 14px 54px 1fr auto 12px; align-items: center; gap: 0 8px; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border-radius: 4px; }
.cm-vo:hover, .cm-vo.open { background: var(--soft); }
.cm-von { color: var(--muted-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-vot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cm-vo small { color: var(--muted-text); font-size: 11px; }
.cm-vo.open .cm-car { transform: rotate(-135deg); }
.cm-vbox { padding: 4px 2px 8px 10px; border-left: 2px solid var(--hair); margin-left: 6px; }
.cm-uk { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 4px 0 6px; font-size: 11px; }
.cm-uk dt { color: var(--muted-text); }
.cm-uk dd { margin: 0; font-variant-numeric: tabular-nums; }
.cm-vd { margin: 8px 0 2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--purple-ink); }
.cm-vi { display: grid; grid-template-columns: 26px 62px 1fr auto; gap: 1px 6px; padding: 4px 0; border-bottom: 1px solid var(--hair); font-size: 11.5px; }
.cm-vc { color: var(--muted-text); font-variant-numeric: tabular-nums; text-align: right; }
.cm-vk { color: var(--muted-text); font-variant-numeric: tabular-nums; }
.cm-vp em { font-style: normal; font-size: 10px; color: #8a5a00; }
.cm-vm { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cm-vx { grid-column: 3 / 5; display: block; padding: 2px 6px; border-radius: 4px; background: var(--soft); font: 10.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2a2a30; white-space: normal; overflow-wrap: anywhere; }
.cm-vn { grid-column: 3 / 5; font-size: 10.5px; color: var(--muted-text); }
@media (max-width: 640px), (orientation: portrait) and (max-width: 1023px) {
  .cm-vi { grid-template-columns: 22px 1fr auto; }
  .cm-vk { display: none; }
  .cm-vx, .cm-vn { grid-column: 2 / 4; }
}

/* v33: vp-adaptive – the honesty line of the public space (bottom left, over the scale bar) */
.vp-note { max-width: min(420px, calc(100vw - 2 * var(--gap, 12px))); padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.86); color: #2a2a30; font-size: 11px; line-height: 1.35; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); pointer-events: none; }
.vp-note[hidden] { display: none; }

/* v34: key numbers – their own bar at the bottom centre of the page, always visible (ui/keybar.js) */
.kbar { position: fixed; z-index: 22; left: 50%; transform: translateX(-50%); bottom: var(--band); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; width: min(560px, calc(100vw - 2 * var(--gap) - 520px)); min-width: 380px; padding: 6px; border-radius: var(--radius); background: var(--glass, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--line); box-shadow: var(--lift); font-family: var(--font); }
.kbar[hidden] { display: none; }
.kb-t { display: flex; flex-direction: column; min-width: 0; padding: 6px 9px 5px; border-radius: 9px; background: var(--soft); cursor: default; }
.kb-l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted-text); white-space: nowrap; }
.kb-d { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2, #c9c9c4); }
.kb-t.t-ok .kb-d { background: var(--ok); }
.kb-t.t-near .kb-d { background: #c98a00; }
.kb-t.t-over .kb-d { background: var(--bad); }
.kb-t.t-target .kb-d { background: var(--vk-target-line, #8ea0b8); }
.kb-v { font-size: 17px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.kb-t.t-near .kb-v { color: #6b4a00; }
.kb-t.t-over .kb-v { color: var(--bad); }
.kb-t.t-target .kb-v { color: var(--vk-target, #4b6383); }
.kb-s { font-size: 10.5px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* narrower screens: above the bottom band (the time pill and the scale keep their places) */
@media (max-width: 1400px) {
  .kbar { width: min(520px, calc(100vw - 2 * var(--gap) - 220px)); min-width: 0; }
}
@media (max-width: 640px) {
  .kbar { gap: 4px; padding: 4px; width: calc(100vw - 2 * var(--gap)); }
  .kb-t { padding: 4px 6px; }
  .kb-v { font-size: 14px; }
  .kb-s { display: none; }
}
body.maximized .kbar { bottom: calc(var(--credits-h) + 56px); }
/* v35: on the phone the open Varianty sheet (z-index 26, 44 % high) sat over the key bar: the bar rides just above it */
@media (max-width: 640px) { body.urb-open .kbar { bottom: calc(var(--credits-h) + 44% + 6px); } }

/* v34: presets – one long list, each row the plan and the name */
#urbPanel .urb-plist { display: flex; flex-direction: column; gap: 4px; }
#urbPanel .urb-pl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: 10px; background: var(--soft);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
#urbPanel .urb-pl:hover { background: var(--soft-2, #ecebe6); }
#urbPanel .urb-pl[aria-checked="true"] { border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 1px var(--purple) inset; }
#urbPanel .urb-pl:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#urbPanel .urb-plico { width: 70px; height: 80px; border-radius: 6px; background: var(--white); }
#urbPanel .urb-pln { flex: 1; min-width: 0; line-height: 1.3; }

/* v34: mp-audit – the verdict key of the house envelopes in the Výšky legend */
.rm-mp-key { display: flex; gap: 12px; margin-top: 4px; font-size: 11px; color: var(--muted-text); }
.rm-mp-key span { display: inline-flex; align-items: center; gap: 5px; }
.rm-mp-key i { width: 10px; height: 10px; border-radius: 2px; }
.rm-mp-key i.ok { background: rgba(46, 158, 92, 0.75); }
.rm-mp-key i.over { background: rgba(214, 69, 69, 0.8); }
.rm-mp-key i.none { background: rgba(140, 140, 153, 0.75); } /* hol: podmíněně (VERDICT_RGB.none) */

/* v34.2: the bottom band cleaned up – the key numbers sit at the very bottom (the credits are only an ⓘ now), the time pill
   folds into a sun button next to the compass (ui/sundock.js) */
body.credits-compact .kbar { bottom: 8px; }
@media (max-width: 640px) { body.credits-compact .kbar { bottom: var(--band); } }
.sun-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass, rgba(255, 255, 255, 0.92)); box-shadow: var(--lift); color: #b07a00; cursor: pointer; }
.sun-btn .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sun-btn:hover { background: #fff; }
.sun-btn[aria-expanded="true"] { background: var(--ink); color: #ffd25e; border-color: var(--ink); }
.sun-btn.playing:not([aria-expanded="true"]) { box-shadow: 0 0 0 2px #ffd25e, var(--lift); }
.sun-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
body.sun-dock:not(.tb-open) #timebar { display: none !important; }
body.sun-dock.tb-open #timebar { left: auto !important; right: var(--gap) !important; transform: none !important; bottom: calc(var(--band) + 54px) !important;
  width: min(440px, calc(100vw - 2 * var(--gap))) !important; }
@media (max-width: 640px) { .sun-btn { width: 42px; height: 42px; } body.sun-dock.tb-open #timebar { bottom: calc(var(--band) + 152px) !important; } }

/* v34.3: the cost tile of the key numbers bar opens Náklady */
.kb-t.kb-link { cursor: pointer; }
.kb-t.kb-link:hover { background: var(--soft-2, #ecebe6); }
.kb-t.kb-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }

/* v35: doporučení předvoleb – the toggle in the heading, one verdict badge per row, the ranked view's second line, the
   why-popover's groups (artifact/src/ui/urbanpanel.js renderPresets / recBadge / recPop; v10/recommend/SPEC.md § 7) */
#urbPanel .urb-h .ed-seg { margin-left: auto; }
#urbPanel .urb-pw { position: relative; display: block; min-width: 0; }
#urbPanel .urb-pw > .urb-pl { padding-right: 104px; }
#urbPanel .urb-plb { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; min-height: 26px;
  padding: 2px 9px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; }
#urbPanel .urb-plb.f-ok { background: var(--ok-tint); color: var(--ok); }
#urbPanel .urb-plb.f-near { background: #fdf0dc; color: #6b4a00; }
#urbPanel .urb-plb.f-over { background: var(--bad-tint); color: var(--bad); }
#urbPanel .urb-plb:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
#urbPanel .urb-plb[aria-expanded="true"] { border-color: currentColor; }
#urbPanel .urb-tag { display: inline-block; padding: 0 5px; border-radius: 999px; font-size: 9.5px; font-weight: 600; line-height: 14px; }
#urbPanel .urb-tag.t-overit { border: 1px solid #c98a00; color: #6b4a00; background: transparent; }
#urbPanel .urb-tag.t-adapt { background: var(--purple-tint); color: var(--purple-ink); }
#urbPanel .urb-tag.t-vynos { border: 1px solid var(--muted-text); color: var(--muted-text); background: transparent; }
#urbPanel .urb-pltags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
#urbPanel .urb-plr { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--muted-text); line-height: 1.3; overflow-wrap: anywhere; }
#urbPanel .urb-rech { margin: 2px 0 6px 2px; }
#urbPanel .urb-rec { margin-bottom: 6px; }
#urbPanel .urb-rest { margin: 4px 0 0; }
#urbPanel .urb-rest > summary { padding: 6px 2px; font-size: 12px; color: var(--muted-text); cursor: pointer; }
#urbPanel .urb-rest > .urb-plist { margin-top: 4px; }
#urbPanel .urb-adb { background: var(--purple-tint); color: var(--purple-ink); }
#urbPanel .urb-recfoot { margin-top: 8px; font-size: 11px; color: var(--muted-text); }
#urbPanel .urb-popb .urb-pop0 { font-size: 11.5px; color: var(--muted-text); }
#urbPanel .urb-popb .urb-popv, #urbPanel .urb-popb .urb-popn, #urbPanel .urb-popb .urb-popb0 { margin: 4px 0; font-size: 12px; }
#urbPanel .urb-popb .urb-popb0 { color: var(--muted-text); }
#urbPanel .urb-popb .urb-grp { margin: 8px 0 2px; font-size: 12px; font-weight: 600; }
#urbPanel .urb-popb .urb-recl .urb-zr { grid-template-columns: 14px minmax(0, 1fr) auto; }
#urbPanel .urb-popb .urb-zn { display: block; font-size: 11px; color: var(--ink); opacity: 0.85; line-height: 1.35; }
#urbPanel .urb-popb .urb-zsrc { display: block; font-size: 10.5px; color: var(--muted-text); line-height: 1.3; }
#urbPanel .urb-popb .urb-more > summary { font-size: 11.5px; color: var(--muted-text); cursor: pointer; padding: 2px 0; }
#urbPanel .urb-popb .urb-popf { margin-top: 8px; font-size: 10.5px; color: var(--muted-text); }
@media (max-width: 640px) {
  #urbPanel .urb-pw > .urb-pl { padding-right: 96px; }
  #urbPanel .urb-plb { min-height: 40px; right: 4px; padding: 2px 8px; }
  #urbPanel .urb-rest > summary { min-height: 40px; display: flex; align-items: center; }
}
/* end v35 */

/* ---- v35 review fixes (after the v35 block: same specificity, later wins) */
/* v35 review: the view toggle sits beside the heading (an h3 holds phrasing content only) */
#urbPanel .urb-hrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
#urbPanel .urb-hrow > .urb-h { margin: 0; }
#urbPanel .urb-hrow > .ed-seg { margin-left: auto; }
/* v35 review: the badge stacks the verdict and its "ověřit" tag (≈ 80 px, inside the row's reserved 104 / 96 px); darker ok ink
   (4,95 : 1 on the ok tint, WCAG 1.4.3) */
#urbPanel .urb-plb { flex-direction: column; gap: 1px; }
#urbPanel .urb-plb.f-ok { color: #2a7350; }
/* v35 review: the popover lines reuse the zásady classes, whose label is inline-flex and value nowrap – stacked and wrapping here */
#urbPanel .urb-popb .urb-recl .urb-zt { display: block; min-width: 0; }
/* the value column is at most 40 % of the line (a percentage TRACK resolves against the list width; max-width on an auto track did not), the label takes the rest */
#urbPanel .urb-popb .urb-recl .urb-zr { grid-template-columns: 14px minmax(0, 1fr) fit-content(40%); }
#urbPanel .urb-popb .urb-recl .urb-zv { white-space: normal; overflow-wrap: anywhere; text-align: right; }
#urbPanel .urb-pop .urb-wl { max-height: none; }
/* hol: key bar with five tiles (ui/hkeybar.js: HPP, Byty, Stání, Náklady, Výška – MA's numbers per variant) */
.kbar.hk5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 641px) { .kbar.hk5 { width: min(660px, calc(100vw - 2 * var(--gap) - 220px)); } }
@media (max-width: 640px) { .kbar.hk5 { gap: 3px; } .kbar.hk5 .kb-v { font-size: 12.5px; } .kbar.hk5 .kb-t { padding: 4px 4px; } .kbar.hk5 .kb-l { font-size: 10.5px; gap: 4px; } }
/* end */

/* hol: Byty a parkování – the exploded building (src/hfloors.js) */
.hf-strip { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 14px; width: max-content;
  max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; padding: 8px 10px 8px 14px; border-radius: 999px;
  background: var(--panel-bg, #fff); color: var(--text, #1d1d22); box-shadow: 0 6px 22px rgba(20, 20, 40, 0.14); font-size: 12.5px; white-space: nowrap; }
.hf-strip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hf-s-t { font-weight: 600; }
.hf-s-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.hf-s-mix { display: inline-flex; gap: 10px; color: var(--muted-text, #555); font-variant-numeric: tabular-nums; }
.hf-s-pp { color: var(--muted-text, #555); }
.hf-s-hint { color: var(--muted-text, #888); font-size: 11.5px; }
.hf-s-x { border: 0; border-radius: 999px; padding: 5px 12px; background: #1d1d22; color: #fff; font: inherit; cursor: pointer; }
.hf-s-x:hover { background: #3a3a44; }
.hf-hint { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 5px 9px; border-radius: 7px; background: #1d1d22; color: #fff;
  font-size: 12px; box-shadow: 0 4px 14px rgba(20, 20, 40, 0.2); }
.hf-card { position: fixed; left: 0; top: 0; z-index: 40; width: 320px; pointer-events: none; background: rgba(255, 255, 255, 0.97); color: #1d1d22;
  border-radius: 10px; box-shadow: 0 6px 22px rgba(20, 20, 40, 0.18); padding: 10px 12px; font-size: 12.5px; line-height: 1.4; }
.hf-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.hf-card p { margin: 4px 0 0; }
.hf-mix { display: grid; grid-template-columns: 1fr; gap: 3px; }
.hf-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, 0.05); }
.hf-bar i { display: block; height: 100%; }
.hf-src { margin: 4px 0 0; color: var(--muted-text, #666); font-size: 11px; line-height: 1.35; }
.kb-t.hf-act { cursor: pointer; }
.kb-t.hf-act:hover { background: rgba(91, 75, 214, 0.08); }
@media (max-width: 720px) { .hf-strip { border-radius: 14px; gap: 8px 12px; } .hf-s-hint { display: none; } .hf-card { width: 260px; } }
.hf-cta { margin: 6px 0 0; font-size: 11.5px; font-weight: 600; color: #4b3fbf; }
/* the open floor (114 West's drawer): plan, mix, houses and the level stack */
.hf-sheet { position: fixed; right: 16px; top: 64px; z-index: 45; width: 468px; max-height: calc(100vh - 64px - 150px); overflow: auto;
  background: rgba(255, 255, 255, 0.98); color: #1d1d22; border-radius: 12px; box-shadow: 0 10px 34px rgba(20, 20, 40, 0.2);
  padding: 12px 14px 12px; font-size: 12.5px; line-height: 1.4; }
.hf-sh-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hf-sh-t b { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; }
.hf-sh-t span { color: #5a5a64; font-variant-numeric: tabular-nums; }
.hf-sh-nav { display: flex; gap: 4px; flex: none; }
.hf-sh-nav button { width: 32px; height: 32px; border: 1px solid #dedde6; border-radius: 8px; background: #fff; color: #1d1d22; font: inherit;
  font-size: 13px; cursor: pointer; }
.hf-sh-nav button:hover:not([disabled]) { background: #f1f0f6; }
.hf-sh-nav button[disabled] { opacity: 0.35; cursor: default; }
.hf-sh-nav .hf-sh-x { background: #1d1d22; border-color: #1d1d22; color: #fff; font-size: 16px; }
.hf-sh-nav .hf-sh-x:hover { background: #3a3a44; }
.hf-sh-body { display: flex; gap: 8px; align-items: flex-start; }
.hf-stack { display: flex; flex-direction: column; gap: 2px; flex: none; width: 34px; }
.hf-st { height: 17px; padding: 0; border: 0; border-radius: 4px; background: #eeedf3; color: #5a5a64; font: inherit; font-size: 10px;
  font-variant-numeric: tabular-nums; cursor: pointer; line-height: 17px; }
.hf-st:hover { background: #e0def0; color: #1d1d22; }
.hf-st[aria-current="true"] { background: #1d1d22; color: #fff; font-weight: 600; }
.hf-sh-plan { display: block; flex: none; background: #faf9f6; border-radius: 8px; }
.hf-sh-plan text { font-family: inherit; }
.hf-fl { cursor: default; }
.hf-fl.on { stroke: #1d1d22; stroke-width: 2px; }
.hf-sh-info { margin: 6px 0 2px; min-height: 17px; color: #3a3a44; font-variant-numeric: tabular-nums; }
.hf-sh-mix { display: grid; gap: 5px; margin-top: 6px; }
.hf-sh-types { display: flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; color: #5a5a64; }
.hf-sh-types i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hf-sh-types b { color: #1d1d22; font-weight: 600; }
.hf-sh-houses { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.hf-hc { border: 1px solid #dedde6; border-radius: 999px; background: #fff; padding: 3px 9px; font: inherit; font-size: 11.5px; color: #1d1d22;
  cursor: pointer; font-variant-numeric: tabular-nums; }
.hf-hc[aria-pressed="true"] { background: #1d1d22; border-color: #1d1d22; color: #fff; }
@media (max-width: 720px) {
  .hf-sheet { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 58vh; padding: 10px 10px; }
  .hf-sh-t b { font-size: 17px; }
}

/* near: the floor drawer's colour switch (dispozice / dostupnost), sales-status pills and the flat list of floors without a plan */
.hf-cs { display: inline-flex; gap: 4px; margin-left: 6px; }
.hf-cs .hf-hc { padding: 2px 8px; font-size: 11.5px; }
.hf-sh-mix .hf-cs { margin: 6px 0 0; }
.hf-st { display: inline-block; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 17px; font-weight: 600; color: #1d1d22; background: #e6e3dc; }
.hf-st.st-dostupne { background: #cfe8d3; color: #1f5a2b; }
.hf-st.st-predrezervovano, .hf-st.st-rezervovano { background: #f6e0b6; color: #6b4708; }
.hf-st.st-prodano { background: #e4e1db; color: #55524c; }
.hf-st.st-pripravujeme { background: #dbe5f1; color: #2b4466; }
.hf-list { display: grid; gap: 3px; max-height: 240px; overflow: auto; margin: 6px 0; padding-right: 2px; }
.hf-li { display: grid; grid-template-columns: 10px 54px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.hf-li > i { width: 10px; height: 10px; border-radius: 2px; }
.hf-li > b { font-variant-numeric: tabular-nums; }
.hf-sh-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .hf-cs { display: none; } .hf-sh-mix .hf-cs { display: inline-flex; } }

/* near: inside a flat - the view from its window (hfloors.js enterFlat), 114 West's lavender accent */
.hf-view { position: fixed; right: 16px; top: 64px; z-index: 46; width: 400px; max-height: calc(100vh - 64px - 24px); overflow: auto;
  background: rgba(255, 255, 255, 0.98); color: #1d1d22; border-radius: 12px; box-shadow: 0 10px 34px rgba(20, 20, 40, 0.2);
  padding: 12px 14px; font-size: 12.5px; line-height: 1.4; display: grid; gap: 8px; }
.hf-v-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hf-v-t b { display: block; font-size: 22px; line-height: 1.05; letter-spacing: -0.01em; }
.hf-v-t span { color: #5a5a64; font-variant-numeric: tabular-nums; }
.hf-view .hf-sh-x { width: 32px; height: 32px; border: 1px solid #1d1d22; border-radius: 8px; background: #1d1d22; color: #fff; font: inherit; font-size: 16px; cursor: pointer; flex: none; }
.hf-v-st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.hf-v-st a { color: #4b3fbf; }
.hf-v-l { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6a75; }
.hf-v-dirs { display: flex; flex-wrap: wrap; gap: 4px; }
.hf-v-dirs .hf-hc { display: inline-flex; align-items: center; gap: 5px; }
.hf-v-cam { width: 7px; height: 7px; border-radius: 50%; background: #a99dff; display: inline-block; }
.hf-v-photo { margin: 0; display: grid; gap: 6px; }
.hf-v-img { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; display: block; }
.hf-v-all { display: inline-block; margin-top: 6px; font-size: 12.5px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hf-v-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.hf-v-photo figcaption { color: #4c4b56; font-size: 11.5px; }
.hf-v-photo figcaption b { color: #4b3fbf; margin-right: 4px; }
/* NEAR: the view's approval (src/hfloors.js reviewBar, src/reviewstore.js) */
.hf-rv { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #f4f3f8; }
.hf-rv .hf-hc { padding: 3px 9px; font-size: 12px; }
.hf-rv .hf-hc[disabled] { opacity: 0.55; cursor: not-allowed; }
.hf-rv-ok[aria-pressed="true"] { background: #2d7a4c; border-color: #2d7a4c; color: #fff; }
.hf-rv-bad[aria-pressed="true"] { background: #a33a2c; border-color: #a33a2c; color: #fff; }
.hf-rv-p { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.hf-rv-p.st-ok { background: #dff0e5; color: #2d7a4c; }
.hf-rv-p.st-bad { background: #f6e0dc; color: #a33a2c; }
.hf-rv-p.st-todo { background: #f3ecd4; color: #7a6420; }
.hf-rv-n { font-size: 11.5px; color: #5d5c66; }
.hf-rv-c { flex-basis: 100%; margin: 0; font-size: 11.5px; color: #3d3a52; }
.hf-rv-was { color: #6b6880; font-style: italic; }
/* the closest real photograph under a view (src/viewrefs.js) */
.hf-real { display: grid; gap: 5px; margin-top: 6px; }
.hf-real-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; font-weight: 600; color: #3d3a52; }
.hf-real-g { font: 600 10.5px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 4px; border: 1px solid currentColor; }
.hf-real-g.g-good { color: #2f7d4f; } .hf-real-g.g-partial { color: #9a7414; } .hf-real-g.g-weak { color: #6b6880; }
.hf-real-n { font-weight: 400; color: #6b6880; }
.hf-real-ph { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #e5e3ec; width: 100%; }
.hf-real-c { margin: 0; font-size: 11px; color: #5d5c66; }
.hf-v-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: #f2f0fb; color: #3d3a52; font-size: 12px; }
.hf-v-b { display: flex; gap: 6px; }
.hf-v-b .hf-hc { padding: 5px 12px; font-size: 12px; }
.hf-box { position: fixed; inset: 0; z-index: 80; background: rgba(14, 14, 22, 0.88); display: grid; place-content: center; gap: 10px; padding: 24px; cursor: zoom-out; }
.hf-box img, .hf-box canvas { max-width: min(96vw, 1600px); max-height: 82vh; width: auto; height: auto; border-radius: 6px; }
.hf-box p { color: #e8e7f2; font-size: 12.5px; max-width: 1100px; margin: 0; }
@media (max-width: 720px) { .hf-view { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 52vh; } }

/* near: 114 West's stacking plan (rendero-vision-web hud/ScenePanel.tsx) beside the exploded building, and its level card */
.hf-plan { position: fixed; right: 16px; top: 64px; z-index: 44; width: 292px; padding: 14px 16px 12px; border-radius: 16px; color: #0d0d0d;
  background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(13, 13, 13, 0.08); box-shadow: 0 18px 44px rgba(20, 18, 60, 0.16), 0 2px 6px rgba(20, 18, 60, 0.06);
  font-size: 12px; line-height: 1.35; display: grid; gap: 10px; }
.hf-plan-facts { margin: 0; display: flex; align-items: center; gap: 7px; color: #4a4a52; font-variant-numeric: tabular-nums; }
.hf-plan-facts i { width: 3px; height: 3px; border-radius: 50%; background: #b4b2bd; }
.hf-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hf-plan-over { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #77757f; }
.hf-plan-read { color: #5f4cec; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hf-plan-box { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: 12px; height: 232px; }
.hf-plan-elev { position: relative; height: 100%; }
.hf-plan-row { position: absolute; left: 0; display: block; padding: 0; margin: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(13, 13, 13, 0.07); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.9); overflow: hidden; transition: background 0.15s, transform 0.15s; }
.hf-plan-row[data-kind="parter"] { background: rgba(176, 142, 82, 0.22); }
.hf-plan-row[data-kind="pp"] { background: rgba(13, 13, 13, 0.13); }
.hf-plan-row:hover, .hf-plan-row[data-state="hover"], .hf-plan-row:focus-visible { background: #e3deff; box-shadow: inset 0 0 0 1.5px #5f4cec; outline: none; transform: translateX(3px); }
.hf-plan-free { position: absolute; left: 0; top: 0; bottom: 1px; background: rgba(76, 164, 99, 0.55); pointer-events: none; }
.hf-plan-tiers { position: relative; list-style: none; margin: 0; padding: 0; height: 100%; border-left: 1px solid rgba(13, 13, 13, 0.1); }
.hf-plan-tiers li { position: absolute; left: 10px; right: 0; display: flex; flex-direction: column; justify-content: center; }
.hf-plan-tiers b { font-size: 12px; font-weight: 600; }
.hf-plan-tiers span { font-size: 11px; color: #77757f; font-variant-numeric: tabular-nums; }
.hf-plan-leg { margin: 0; display: flex; align-items: center; gap: 6px; color: #5d5c66; font-size: 11px; }
.hf-plan-leg i { width: 10px; height: 10px; border-radius: 2px; background: rgba(76, 164, 99, 0.55); }
.hf-plan-leg span { margin-left: auto; color: #5f4cec; font-weight: 600; }
.hf-lvh { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 0 6px; margin-bottom: 4px; }
.hf-lvn { font-size: 34px; line-height: 0.95; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hf-lvu { font-size: 12px; font-weight: 700; color: #5f4cec; }
.hf-lvt { font-size: 12.5px; color: #44434c; justify-self: end; }
@media (max-width: 720px) { .hf-plan { display: none; } }

/* near: the open storey's flat labels, following the camera (hfloors.js placePlan) */
.hf-fl3-host { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hf-fl3 { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; gap: 1px; justify-items: center; padding: 3px 7px 4px;
  border-radius: 8px; border: 1px solid rgba(13, 13, 13, 0.1); background: rgba(255, 255, 255, 0.93); color: #1d1d22; cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 18, 60, 0.14); font: inherit; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.hf-fl3 b { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-fl3 b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b9b6ae; }
.hf-fl3[data-st="dostupne"] b::before { background: #3f9a5c; }
.hf-fl3[data-st="rezervovano"] b::before, .hf-fl3[data-st="predrezervovano"] b::before { background: #d39a2a; }
.hf-fl3[data-st="pripravujeme"] b::before { background: #7f8fb0; }
.hf-fl3 span { font-size: 10px; color: #55545e; font-variant-numeric: tabular-nums; }
.hf-fl3:hover, .hf-fl3.on { background: #5f4cec; border-color: #5f4cec; color: #fff; z-index: 2; }
.hf-fl3:hover span, .hf-fl3.on span { color: #e8e5ff; }
.hf-fl3:focus-visible { outline: 2px solid #5f4cec; outline-offset: 2px; }
.hf-fl3 { grid-auto-flow: column; gap: 5px; align-items: baseline; padding: 3px 7px; }
.hf-fl3.dot { padding: 0; width: 9px; height: 9px; border-radius: 50%; overflow: hidden; gap: 0; }
.hf-fl3.dot b, .hf-fl3.dot span { display: none; }
.hf-fl3.dot[data-st="dostupne"] { background: #3f9a5c; border-color: #fff; }
.hf-v-tog { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hf-v-tog-n { flex-basis: 100%; color: #5d5c66; font-size: 11px; }
/* near: the drone photos switch (dronetex.js) */
.dt-chip { position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 35;
  border: 1px solid rgba(13, 13, 13, 0.12); border-radius: 999px; padding: 6px 12px 6px 26px; background: rgba(255, 255, 255, 0.92); color: #1d1d22;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(20, 18, 60, 0.14); }
.dt-chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #b9b6ae; }
.dt-chip[aria-pressed="true"]::before { background: #5f4cec; box-shadow: 0 0 0 3px rgba(95, 76, 236, 0.22); }
.dt-chip:focus-visible { outline: 2px solid #5f4cec; outline-offset: 2px; }

/* near, minimal (the user, 19. 11. 2026: "make the UI design more minimalistic, it is all over the places"): one place for
   each thing. An open storey has its card only (the strip's totals and colour switch are in it); while the building is
   apart, the strip carries the totals and the key-number bar steps aside (the strip then sits at the bottom); the drone
   photos' switch stacks with the legend and the scale bar instead of lying over them. */
.hf-strip.hf-open { display: none !important; }
body:has(.hf-strip:not([hidden])) #keyBar, body:has(.hf-sheet:not([hidden])) #keyBar, body:has(.hf-view:not([hidden])) #keyBar { display: none !important; }
.hud.bl .dt-chip { position: relative; left: auto; bottom: auto; z-index: auto; pointer-events: auto; }
.hf-sh-info:empty { display: none; }
.hf-src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.hf-sh-nav button:not(.hf-sh-x) { display: none; }   /* the storeys' list beside the plan does it (and ↑ ↓) */
.hf-sheet { max-height: calc(100vh - 64px - 16px); }

/* near: the project switch NEAR ↔ Švábky (src/projects.js) - in the top bar after the brand, and the project's card */
.topbar .proj-switch { margin-left: 10px; }
.topbar .proj-switch button { white-space: nowrap; }
.proj-card { position: fixed; z-index: 30; left: max(12px, env(safe-area-inset-left, 0px)); top: 112px; width: min(330px, calc(100vw - 24px));
  max-height: calc(100vh - 200px); overflow: auto; padding: 0; }
.proj-card .pop-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 4px 16px; }
.proj-card .pc-title { font-size: 15px; font-weight: 600; margin: 0; flex: 1; letter-spacing: -0.01em; }
.proj-card .pc-body { padding: 0 16px 14px; }
.proj-card .pc-place { margin: 0 0 10px; color: var(--ink-2, #52525b); font-size: 12.5px; }
.proj-card .pc-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 12.5px; }
.proj-card .pc-kv dt { color: var(--ink-2, #52525b); }
.proj-card .pc-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.proj-card .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2, #52525b); margin: 6px 0 6px; font-weight: 600; }
.proj-card .pc-vars { display: grid; gap: 4px; margin-bottom: 10px; }
.proj-card .pc-vars button { display: grid; text-align: left; gap: 1px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.proj-card .pc-vars button:hover { border-color: rgba(95, 76, 236, 0.45); }
.proj-card .pc-vars button[aria-checked="true"] { border-color: #5f4cec; box-shadow: inset 0 0 0 1px #5f4cec; background: rgba(95, 76, 236, 0.06); }
.proj-card .pv-l { font-weight: 600; font-size: 13px; }
.proj-card .pv-s { font-size: 11.5px; color: var(--ink-2, #52525b); }
.proj-card .pc-note { font-size: 11.5px; color: var(--ink-2, #52525b); margin: 8px 0 0; line-height: 1.45; }
.proj-card .pc-open { display: flex; justify-content: center; margin-top: 4px; text-decoration: none; }
@media (max-width: 640px) { .proj-card { top: auto; bottom: 120px; max-height: 45vh; } .topbar .proj-switch button { padding: 0 7px; } }
/* svabky: with the project switch the site label would repeat "NEAR living": kept for its popover's anchor, not shown */
body.has-projects .topbar #siteId .sep, body.has-projects .topbar #siteLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
/* svabky: the key bar's numbers are NEAR living's: not shown while another project is open */
body.proj-other #keyBar { display: none !important; }
