/*
 * Property OS · the workspace (2. 12. 2026): one named navigation on the side, the page beside it. Loaded last.
 *
 * The ground is a warm light paper, the working surfaces nearly white, the text graphite; violet is the choice, the
 * focus and the main series of a chart; yellow belongs to Orbit alone. In the dark look the same meanings stand on
 * stepped graphite surfaces. The tokens are those of css/theme.css and css/palettes.css, redefined for the two looks
 * of Eventscout the app starts in.
 */

/* ---------- the two looks ---------- */
html[data-theme][data-palette="es-den"] body.shell-body {
  --bg: #f4f1ea; --bg-grad: #f4f1ea;
  --surface: #f9f7f2; --surface-1: #fffefb; --surface-2: #f0ece4; --surface-3: #e3ded3;
  --line: rgba(46, 40, 24, 0.10); --line-strong: rgba(46, 40, 24, 0.20);
  --text-strong: #1c1d21; --text: #2e2f35; --text-muted: #65645f; --placeholder: #8e8c84;
  --accent: #5b4bdb; --accent-hi: #7d70ea; --accent-deep: #4636c4; --accent-text: #4a3bc8; --on-accent: #ffffff; --accent-2: #b9b3a6;
  --card-grad: var(--surface-1);
  --shadow-card: 0 1px 2px rgba(46, 40, 24, 0.04);
}
html[data-theme][data-palette="es-noc"] body.shell-body {
  --bg: #131417; --bg-grad: #131417;
  --surface: #17181c; --surface-1: #1c1d22; --surface-2: #24262c; --surface-3: #30323a;
  --line: rgba(255, 255, 255, 0.075); --line-strong: rgba(255, 255, 255, 0.16);
  --text-strong: #f5f5f7; --text: #dddde3; --text-muted: #9b9ca6; --placeholder: #6f707a;
  --accent: #9d93ff; --accent-hi: #bdb6ff; --accent-deep: #5b4bdb; --accent-text: #b3abff; --on-accent: #131417; --accent-2: #6d6f7a;
  --card-grad: var(--surface-1);
  --shadow-card: none;
}
/* the buttons of the workspace: graphite and violet, never the gold of Virtual OS */
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:disabled:hover { background: var(--accent-deep); color: #fff; border-color: transparent; box-shadow: none; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover { background: var(--accent); }
html[data-theme="dark"] :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover { color: #131417; }

/* ---------- the frame ---------- */

/* ---------- a page of the portfolio ---------- */
.pw-win { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: 100%; min-height: 0; background: var(--bg); }
.pw-page { padding: 22px 28px 48px; gap: 18px; max-width: 1560px; }
/* the one heading of a page, with the named way back above it and what belongs beside it on the right */
.pw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; min-width: 0; }
.pw-head__main { display: grid; gap: 4px; min-width: 0; }
.pw-h1 { margin: 0; font: 650 26px/32px var(--font-sans); letter-spacing: -0.02em; color: var(--text-strong); overflow-wrap: anywhere; }
.pw-head__sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.pw-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* cards are flat sheets on the paper; tables have soft horizontal lines only */
.pw-panel { box-shadow: none; }
.pw-table td, .pw-table th { font-variant-numeric: tabular-nums; }

/* ---------- Orbit and Nastavení as pages ---------- */
.jv-win.jv-win--page { height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.jv-win--page .pw-head--orbit { align-items: center; padding: 18px 28px 6px; }
.jv-win--page .jv-who { padding: 0; }
.jv-win--page .jv-who .pw-h1 { font-size: 22px; line-height: 28px; }
.jv-win--page .jv { height: auto; min-height: 0; padding: 8px 28px 16px; }
.sys-win.sys-win--page { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; background: var(--bg); color: var(--text); }
.sys-win--page > .pw-head { padding: 22px 28px 14px; }
.sys-win--page .sys-body { min-height: 0; margin: 0 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-1); overflow: hidden; }
.sys-win--page .sys-pane { max-width: 860px; }
.sys-win--page .sys-nav__item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
@media (max-width: 820px) {
  .pw-page { padding: 14px 14px 36px; }
  .sys-win--page .sys-body { margin: 0 12px 16px; }
  .jv-win--page .jv, .jv-win--page .pw-head--orbit { padding-left: 14px; padding-right: 14px; }
}

/* ---------- shared pieces of a page ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pw-head--compact .pw-h1 { font-size: 21px; line-height: 27px; }
.pw-panel__lead { margin: -4px 0 0; font-size: 13.5px; line-height: 20px; color: var(--text-muted); max-width: 78ch; }
.pw-subhead { margin: 6px 0 0; font: 600 13px/18px var(--font-sans); color: var(--text-strong); }
.pw-panel h4.pw-subhead { margin: 6px 0 0; }
.pw-chart-note { margin: 0; font-size: 12px; line-height: 17px; color: var(--text-muted); }
.pw-figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.pw-table tr.is-selected { --row-tint: var(--accent-soft); }
.pw-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; color: var(--text-strong); }
.pw-table tr.is-running td { color: var(--text-muted); }
.pw-rowacts { display: inline-flex; gap: 12px; }
.pw-search { width: min(320px, 100%); height: 36px; }
.pw-empty.pw-listnone { display: grid; gap: 10px; justify-items: start; }

/* a long choice: a search field with its list of results */
.pw-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pw-pick__label { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.pw-pick__input { width: min(300px, 62vw); height: 36px; }
.pw-pick__list { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; width: max(100%, 300px); max-height: 320px; overflow: auto; margin: 0; padding: 4px; list-style: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-1); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16); }
.pw-pick__list[hidden] { display: none; }
.pw-pick__opt { display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 19px; color: var(--text); }
.pw-pick__opt b { font-weight: 550; color: var(--text-strong); }
.pw-pick__opt small { font-size: 12px; color: var(--text-muted); }
.pw-pick__opt:hover, .pw-pick__opt.is-active { background: var(--accent-soft); }
.pw-pick__opt[aria-selected="true"] b { color: var(--accent-text); }
.pw-pick__none { padding: 8px 10px; font-size: 13px; color: var(--text-muted); }

/* ---------- the chart of the months ---------- */
.mc { display: block; outline: none; border-radius: 10px; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.mc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mc__svg { display: block; width: 100%; height: auto; overflow: visible; }
.mc .pw-chart__zero { stroke: var(--text-muted); stroke-width: 1.25; }
.mc .pw-chart__axis.is-zero, .mc .pw-chart__axis.is-on { fill: var(--text-strong); font-weight: 650; }
.mc__bar { fill: var(--accent); }
.mc__bar.is-neg { fill: var(--accent); fill-opacity: 0.55; }
.mc__bar.is-running { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mc__bar.is-on { fill: var(--accent-deep); fill-opacity: 1; }
html[data-theme="dark"] .mc__bar.is-on { fill: var(--accent-hi); }
.mc__flow { fill: var(--text-muted); fill-opacity: 0.22; }
.mc__flow--out { fill-opacity: 0.38; }
.mc__band { fill: var(--accent-soft); }
.mc__guide { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 2 3; }
.mc__mark { font: 600 11px/1 var(--font-sans); fill: var(--text-muted); }
.pw-legend__key.is-cf { background: var(--accent); }
.pw-legend__key.is-in { background: var(--text-muted); opacity: 0.3; }
.pw-legend__key.is-out { background: var(--text-muted); opacity: 0.5; }

/* ---------- Přehled: the first screen ---------- */
.ov-first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 344px); gap: 16px; align-items: stretch; }
.ov-result { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 22px 14px; border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.ov-result__q { margin: 0; font: 600 15px/20px var(--font-sans); color: var(--text-muted); }
.ov-result__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; }
.ov-result__value { font: 650 56px/60px var(--font-sans); letter-spacing: -0.035em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-result__about { display: grid; gap: 1px; padding-bottom: 6px; font-size: 13.5px; line-height: 19px; color: var(--text); }
.ov-result__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; }
.ov-chart { display: grid; gap: 6px; min-width: 0; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.ov-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; min-height: 22px; }
.ov-chart__head h3 { margin: 0; font: 600 13.5px/20px var(--font-sans); color: var(--text-strong); }
.ov-picked { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13.5px; line-height: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.ov-picked b { color: var(--text-strong); }
.ov-attention { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 18px 14px; border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.ov-attention header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ov-attention h2 { margin: 0; font: 600 15px/20px var(--font-sans); color: var(--text-strong); }
.ov-todo { margin: 0; padding: 0; list-style: none; display: grid; }
.ov-todo__item { display: grid; gap: 6px; justify-items: start; padding: 10px 0 10px 12px; border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--warn); }
.ov-todo__item:first-child { border-top: 0; }
.ov-todo__item--danger { box-shadow: inset 3px 0 0 var(--bad); }
.ov-todo__item--info { box-shadow: inset 3px 0 0 var(--line-strong); }
.shell-body a.ov-todo__main { display: grid; gap: 3px; color: inherit; text-decoration: none; border-radius: 6px; }
.ov-todo__main:hover .ov-todo__text { text-decoration: underline; }
.ov-todo__main:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ov-todo__text { font: 550 13.5px/19px var(--font-sans); color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ov-todo__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; line-height: 17px; color: var(--text-muted); }
.ov-todo__stake { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-todo__act { display: inline-flex; align-items: center; gap: 6px; }
.ov-attention__none { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ov-attention__more { justify-self: start; font-size: 13px; }
.ov-estimate { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface); }
.ov-estimate header { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-strong); }
.ov-estimate p { margin: 0; }
.ov-estimate__value { font-size: 15px; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* the waterfall */
.wf { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 8px; }
.wf__col { display: grid; grid-template-rows: 150px auto auto; gap: 6px; min-width: 0; text-align: center; }
.wf__plot { position: relative; }
.wf__zero { position: absolute; left: -4px; right: -4px; height: 0; border-top: 1px solid var(--text-muted); }
.wf__bar { position: absolute; left: 14%; right: 14%; border-radius: 4px; background: var(--text-muted); opacity: 0.4; }
.wf__col--total .wf__bar { background: var(--accent); opacity: 1; }
.wf__col--earned .wf__bar { background: var(--text-strong); opacity: 0.78; }
.wf__col--total.is-neg .wf__bar { opacity: 0.55; }
.wf__value { font: 600 13.5px/18px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf__col--minus .wf__value { font-weight: 500; color: var(--text); }
.wf__label { font-size: 12px; line-height: 16px; color: var(--text-muted); overflow-wrap: anywhere; hyphens: auto; }

/* what is mine: one bar of today's value */
.eq-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; }
.eq-bar__mine { background: var(--accent); min-width: 6px; }
.eq-bar__bank { background: var(--text-muted); opacity: 0.38; min-width: 6px; }
.eq-legend { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.eq-legend__item { display: grid; gap: 1px; padding-left: 12px; box-shadow: inset 3px 0 0 var(--accent); }
.eq-legend__item--bank { box-shadow: inset 3px 0 0 var(--line-strong); }
.eq-legend dt { font-size: 12.5px; color: var(--text-muted); }
.eq-legend dd { margin: 0; font: 650 20px/26px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.eq-legend small { font-size: 12.5px; color: var(--text-muted); }

/* bars around one zero */
.zb { margin: 0; padding: 0; list-style: none; display: grid; }
.shell-body a.zb__row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 1fr) minmax(84px, auto); gap: 12px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.zb li:first-child .zb__row { border-top: 0; }
.zb__row:hover { background: var(--accent-soft); }
.zb__row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.zb__name { display: grid; min-width: 0; }
.zb__name b { font: 550 13.5px/19px var(--font-sans); color: var(--text-strong); }
.zb__name small { font-size: 12px; line-height: 16px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zb__track { position: relative; height: 18px; }
.zb__zero { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1px solid var(--text-muted); }
.zb__bar { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--accent); }
.zb__row.is-neg .zb__bar { background: var(--bad); }
.zb__value { text-align: right; font: 600 13.5px/19px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zb__row.is-neg .zb__value { color: var(--bad); }

/* ---------- „Co když?“ ---------- */
.wi { scroll-margin-top: 12px; outline: none; }
.wi__grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr); gap: 20px 32px; align-items: start; }
.wi__inputs { display: grid; gap: 12px; }
.wi-knob { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.wi-knob__label { grid-column: 1 / -1; font: 550 13.5px/18px var(--font-sans); color: var(--text-strong); }
.wi-knob__slide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wi-knob__slide small { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; }
.wi-knob__range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.wi-knob__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent calc(var(--zero, 0%) - 1px), var(--text-muted) calc(var(--zero, 0%) - 1px), var(--text-muted) calc(var(--zero, 0%) + 1px), transparent calc(var(--zero, 0%) + 1px)), var(--surface-3); }
.wi-knob__range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-3); }
.wi-knob__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--accent-deep); border: 3px solid var(--surface-1); box-shadow: 0 0 0 1px var(--line-strong); }
.wi-knob__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-deep); border: 3px solid var(--surface-1); box-shadow: 0 0 0 1px var(--line-strong); }
.wi-knob__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wi-knob__field { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.wi-knob__num { width: 76px; height: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.wi__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.wi__result { display: grid; gap: 12px; min-width: 0; }
.sb { display: grid; gap: 14px; padding-bottom: 20px; position: relative; }
.sb__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: end; }
.sb__label { font: 550 13px/18px var(--font-sans); color: var(--text-strong); }
.sb__num { grid-row: 1 / span 1; grid-column: 2; display: grid; justify-items: end; }
.sb__value { font: 650 24px/28px var(--font-sans); letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb__row.is-neg .sb__value { color: var(--bad); }
.sb__diff { font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb__track { grid-column: 1 / -1; position: relative; height: 26px; border-radius: 5px; background: var(--surface-2); }
.sb__bar { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; background: var(--accent); transition: left 0.16s ease-out, width 0.16s ease-out, background-color 0.16s; }
.sb__row.is-neg .sb__bar { background: var(--bad); }
.sb__pin { position: absolute; top: 1px; bottom: 1px; border-radius: 4px; border: 2px solid var(--text-strong); pointer-events: none; }
.sb__pin[hidden] { display: none; }
.sb__zero { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 1.5px solid var(--text-strong); z-index: 1; }
.sb__base { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 1.5px dashed var(--text-muted); z-index: 1; }
.sb__axis { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; font-size: 11.5px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sb__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sb__axis span.is-start { transform: none; }
.sb__axis span.is-end { transform: translateX(-100%); }
.sb-figure.is-still .sb__bar { transition: none; }
@media (prefers-reduced-motion: reduce) { .sb__bar { transition: none; } }
.wi-sentence { margin: 0; font: 600 15px/21px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.wi-sentence.is-neg { color: var(--bad); }
.wi-pinned { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--text-strong); font-size: 12.5px; line-height: 18px; }
.wi-pinned[hidden] { display: none; }
.wi-pinned > div { display: grid; gap: 1px; min-width: 0; font-variant-numeric: tabular-nums; }
.wi__below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.wi-split { margin: 6px 0 0; display: grid; gap: 0; }
.wi-split > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.wi-split > div:first-child { border-top: 0; }
.wi-split dt { color: var(--text); }
.wi-split dd { margin: 0; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wi__links { display: grid; gap: 8px; align-content: start; font-size: 13.5px; line-height: 20px; }
.wi__links p { margin: 0; }

/* ---------- Finance ---------- */
.fin-bar__range { font-size: 12.5px; }
.fin-first { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 18px 22px; border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.fin-sum { display: grid; gap: 4px; align-content: start; min-width: 0; }
.fin-sum__label { font: 600 14px/19px var(--font-sans); color: var(--text-muted); }
.fin-sum__value { font: 650 44px/50px var(--font-sans); letter-spacing: -0.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-sum__sub { font-size: 12.5px; line-height: 18px; color: var(--text-muted); }
.fin-sum__parts { margin: 12px 0 0; display: grid; gap: 0; }
.fin-sum__parts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.fin-sum__parts dt { font-size: 13px; color: var(--text); }
.fin-sum__parts dd { margin: 0; font: 600 13.5px/19px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fin-sum__parts small { grid-column: 1 / -1; font-size: 11.5px; line-height: 15px; color: var(--text-muted); }
.fin-chart { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fin-chart__legend { justify-content: flex-end; }
.fin-month__title { font-variant-numeric: tabular-nums; }
.fin-month__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; }
.fin-month .pw-facts { grid-template-columns: minmax(0, 1fr) auto; }
.fin-month .pw-facts dd { text-align: right; font-variant-numeric: tabular-nums; }
.fin-month__total { font-weight: 600; color: var(--text-strong); }
.fin-month__notable { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.fin-month__notable li { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Nemovitosti: the list beside the map ---------- */
.pw-split { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.1fr); }
.pw-proplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pw-proplist[hidden] { display: none; }
li.pw-prop { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-m); background: var(--surface-1); border: 1px solid var(--line); position: relative; cursor: default; padding: 0; }
li.pw-prop[hidden] { display: none; }
li.pw-prop.is-hover { border-color: var(--accent-line); }
li.pw-prop.is-selected { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); background: var(--surface-1); }
.pw-prop__pick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: inherit; }
.pw-prop__pick:hover { background: var(--accent-soft); }
.pw-prop__pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-prop.is-selected .pw-prop__main b { color: var(--accent-text); }
.pw-prop__main b { white-space: normal; overflow-wrap: anywhere; }
.pw-split__map { display: grid; gap: 8px; position: sticky; top: 0; order: 0; }
.pw-map { height: min(560px, calc(100dvh - 240px)); min-height: 320px; }
/* the chosen property: a bubble over its pin with „Otevřít detail“ (3. 12. 2026); one without a pin has it in its row */
.pw-map .pw-bubble .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; background: var(--surface-1); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.pw-map .pw-bubble .leaflet-popup-content { margin: 0; min-width: 190px; font: 400 13px/18px var(--font-sans); }
.pw-map .pw-bubble .leaflet-popup-tip { background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: none; }
.pw-map a.pw-bubble__in { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; color: inherit; text-decoration: none; cursor: pointer; }
.pw-map a.pw-bubble__in:hover { background: var(--surface-2); }
.pw-map a.pw-bubble__in:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pw-bubble__in b { font: 650 14px/19px var(--font-sans); color: var(--text-strong); }
.pw-bubble__in > span:not(.btn) { font-size: 12.5px; color: var(--text-muted); }
.pw-map .pw-bubble__btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin-top: 10px; color: #fff; }
.shell-body a.pw-prop__open { justify-self: end; margin: 0 12px 10px; }
.pw-prop__open[hidden] { display: none; }
.pw-pin.is-selected { outline: 3px solid #1c1d21; outline-offset: 2px; transform: scale(1.18); }
.pw-pin.is-out { opacity: 0.28; }
.pw-sketch__pin.is-selected circle { stroke: var(--text-strong); stroke-width: 3.5; r: 10px; }
.pw-sketch__pin.is-out { opacity: 0.25; }
.pw-sketch__pin:focus-visible { outline: none; }
.pw-sketch__pin:focus-visible circle { stroke: var(--accent-text); stroke-width: 4; }
.pw-viewseg { display: none; }
@container win (max-width: 900px) {
  .pw-viewseg { display: block; }
  .pw-split { grid-template-columns: minmax(0, 1fr); }
  .pw-split[data-view="list"] .pw-split__map { display: none; }
  .pw-split[data-view="map"] .pw-split__list { display: none; }
  .pw-split__map { position: static; order: 0; }
  .pw-map { height: min(560px, calc(100dvh - 300px)); }
  .ov-first, .wi__grid, .wi__below, .fin-first, .fin-month__grid { grid-template-columns: minmax(0, 1fr); }
}
@container win (max-width: 720px) {
  .wf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .wf__col { grid-template-rows: 110px auto auto; }
  .ov-result__value { font-size: 44px; line-height: 50px; }
}

/* ---------- the card of a property ---------- */
.pw-cardhead { gap: 14px; }
.pw-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.pw-hero__photo { position: relative; height: auto; aspect-ratio: 3 / 2; max-height: min(52vh, 440px); width: 100%; }
.pw-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-hero__photo--none, .pw-hero__photo.is-missing { cursor: default; display: grid; place-items: center; color: var(--text-muted); font-size: 13.5px; }
.pw-hero__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(20, 20, 24, 0.72); color: #fff; font: 600 12px/18px var(--font-sans); font-variant-numeric: tabular-nums; }
.pw-hero__text { gap: 14px; align-content: center; }
.pw-hero__cash { display: grid; gap: 2px; }
.pw-hero__cash > span { font: 600 14px/19px var(--font-sans); color: var(--text-muted); }
.pw-hero__cash b { font: 650 48px/54px var(--font-sans); letter-spacing: -0.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-hero__cash small { font-size: 12.5px; color: var(--text-muted); }
.pw-hero__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px; margin: 0; }
.pw-hero__num { display: grid; gap: 1px; min-width: 0; padding-left: 12px; box-shadow: inset 2px 0 0 var(--line-strong); }
.pw-hero__num span { font-size: 12.5px; color: var(--text-muted); }
.pw-hero__num b { font: 600 18px/24px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pw-hero__num small { font-size: 12px; color: var(--text-muted); }
.pw-hero__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.pw-tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.pw-dochead { display: flex; justify-content: flex-end; }
.pw-paper__title { margin: 0 0 4px; font: 700 20px/26px var(--font-sans); text-align: center; }
.pw-paper h3 { margin: 14px 0 4px; font: 700 14px/20px var(--font-sans); }
.pw-assume { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.pw-assume > div { display: flex; gap: 8px; }
.pw-assume dt { color: var(--text-muted); }
.pw-assume dd { margin: 0; font-weight: 600; color: var(--text-strong); }
@container win (max-width: 760px) {
  .pw-hero { grid-template-columns: minmax(0, 1fr); }
  .pw-hero__cash b { font-size: 40px; line-height: 46px; }
}

/* ---------- the gallery ---------- */
.gal { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0d0e11; color: #f2f2f4; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.gal:not([open]) { display: none; }
.gal::backdrop { background: #0d0e11; }
.gal__top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; min-width: 0; }
.gal__title { margin: 0; font: 600 15px/20px var(--font-sans); color: #fff; min-width: 0; overflow-wrap: anywhere; }
.gal__count { font: 600 13px/20px var(--font-sans); color: #c9c9d1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gal__space { flex: 1; }
.gal .btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.gal .btn:hover { background: rgba(255, 255, 255, 0.2); }
.gal .btn[aria-pressed="true"] { background: #fff; color: #131417; }
.gal .btn:focus-visible, .gal__nav:focus-visible, .gal__thumb:focus-visible { outline: 2px solid #b3abff; outline-offset: 2px; }
.gal__stage { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 0; }
.gal__frame { display: grid; place-items: center; min-width: 0; min-height: 0; height: 100%; }
.gal__img, .gal .pw-spatial { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; grid-area: 1 / 1; }
.gal__img[hidden] { display: none; }
.gal .pw-spatial:focus-visible { outline: 2px solid #b3abff; outline-offset: 3px; }
.gal__missing { margin: 0; color: #c9c9d1; font-size: 14px; }
.gal__nav { all: unset; box-sizing: border-box; cursor: pointer; justify-self: center; width: 46px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 32px; line-height: 1; }
.gal__nav:hover { background: rgba(255, 255, 255, 0.22); }
.gal__nav:disabled { opacity: 0.3; cursor: default; }
.gal__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 8px 18px 4px; min-height: 30px; font-size: 12.5px; line-height: 18px; color: #c9c9d1; }
.gal__foot p { margin: 0; }
.gal__foot a { color: #cfc9ff; }
.gal__thumbs { display: flex; gap: 6px; padding: 8px 18px 14px; overflow-x: auto; scrollbar-width: thin; }
.gal__thumb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 76px; height: 54px; border-radius: 7px; overflow: hidden; opacity: 0.55; border: 2px solid transparent; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__thumb:hover { opacity: 0.85; }
.gal__thumb.is-on { opacity: 1; border-color: #fff; }
@media (max-width: 820px) { .gal__stage { grid-template-columns: 52px minmax(0, 1fr) 52px; } .gal__nav { width: 40px; } }
/* the line icons of the navigation */

/* ---- found by the layout probe of tools/ui-check.mjs ------------------------------------------------------------ */
/* a hint beside the heading of a panel wraps under it instead of pushing the page wider than the screen */
.pw-panel__tools { flex-wrap: wrap; }
.pw-panel__tools > .pw-muted { white-space: normal; min-width: 0; flex: 0 1 auto; }
/* beside the navigation a notebook of 1280 px leaves a table about 960 px: the cells give up a little air, not a column */
@container win (max-width: 1100px) { .pw-table td, .pw-table th { padding-left: 6px; padding-right: 6px; } }
/* a narrow page: the name and its reason above, the bar and the amount under them */
@container win (max-width: 560px) {
  .shell-body a.zb__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .zb__name { grid-column: 1 / -1; }
}
/* what a panel holds never makes the panel wider than its place: a wide table scrolls inside its own wrap */
.pw-panel > * { min-width: 0; }
