/*
 * Property OS · the windows of the portfolio (js/property/) and what the product adds to the desk of Virtual OS:
 * the logo of Eventscout, the switch of the language, the cards of the keys and of the accounts in Nastavení systému.
 * Colours come from the tokens of the theme (css/theme.css, css/palettes.css): violet on the dark ground of
 * Eventscout and on the light one. Orbit itself stays yellow.
 *
 * A window on a wide screen is the container `win` (css/desktop.css): the layouts inside follow its width with
 * @container win, and a phone (the window is the page) with @media (max-width: 820px).
 */

/* ---------- the brand ---------- */
/* The colours of Eventscout, by the names of its web: violet on the dark ground, the gold of the moon of the logo. */
:root { --violet: #9d93ff; --violet-deep: #5b4bdb; --ground: #08090d; --moon: #e9c891; }
/* What was the blue of Virtual OS (buttons of the system, the chosen row, focus rings) is the deep violet here, light and dark. */
:root[data-theme] body.shell-body { --sys-blue: var(--violet-deep); --sys-blue-hover: #6a5be6; }
html[data-theme] .desk-conn__net--ok, html[data-theme] .desk-conn__switch.is-on { background: var(--violet-deep); }
.shell-body ::selection { background: var(--violet-deep); color: #fff; }
/* Orbit keeps its own yellow whatever the look of the OS is */
html[data-theme][data-palette] body.shell-body {
  --orbit-grad: linear-gradient(135deg, #ffe16b 0%, #ffca15 45%, #ffb000 100%);
  --orbit-fg: #1a1400;
  --orbit-soft: rgba(255, 202, 21, 0.12);
  --orbit-line: rgba(255, 202, 21, 0.42);
  --sys-violet: #7d70ea;
  --sys-gold: #c9a463;
}
/* Switzer has no Cyrillic: a Russian or Ukrainian page uses the font of the system, so one text is one face */
html:is([lang="ru"], [lang="uk"]) body.shell-body { --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-family: var(--font-sans); }

.logo__mark { width: 28px; height: 28px; color: var(--text-strong); display: block; }
.gate-card { position: relative; border-top-color: var(--accent); }
.gate-top { display: flex; justify-content: center; margin: -18px 0 -6px; }
.gate-brand--logo { gap: 14px; }
.gate-brand--logo .gate-logo { width: 46px; height: 46px; flex: none; }
.gate-brand--logo b { display: block; font-size: 24px; line-height: 28px; letter-spacing: -0.015em; color: var(--text-strong); }
.gate-brand--logo span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.gate-foot { margin: 0; font-size: 12px; color: var(--text-muted); text-align: center; }
/* three languages: on a narrow card they go under each other rather than out of it */
.seg--lang { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.seg--lang button { min-width: 72px; text-align: center; flex: 1 1 auto; }
.wizard-lang { margin-top: 20px; }
.wizard .gate-brand--logo b { font-size: 18px; line-height: 22px; }
.wizard .gate-brand--logo .gate-logo { width: 34px; height: 34px; }

.desk-menu__btn--logo { display: inline-flex; align-items: center; padding: 3px 6px; }
.desk-menu__btn--logo .logo__mark { width: 24px; height: 24px; }
.desk-name { font: 600 13px/18px var(--font-sans); color: var(--text-strong); letter-spacing: -0.005em; margin-left: 2px; }
.desk-lang { all: unset; box-sizing: border-box; cursor: pointer; padding: 3px 8px; border-radius: 7px; font: 600 12px/18px var(--font-sans); color: var(--text-strong); border: 1px solid var(--line-strong); }
.desk-lang:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.desk-lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the three languages under the switch */
.desk-langbox { position: relative; }
.desk-lang__pop { width: 190px; gap: 2px; padding: 6px; }
.desk-lang__item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font: 500 13px/18px var(--font-sans); color: var(--text-strong); }
.desk-lang__item b { min-width: 24px; font: 600 11.5px/18px var(--font-sans); color: var(--text-muted); letter-spacing: 0.02em; }
.desk-lang__item:hover, .desk-lang__item:focus-visible { background: color-mix(in srgb, var(--text-strong) 10%, transparent); }
.desk-lang__item[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-text); }
.desk-lang__item[aria-checked="true"] b { color: var(--accent-text); }
/* the currency of the amounts beside the language (js/shell/currency-menu.js): the crown and the currencies with a rate
   of ČNB, each with its rate, and under them whose rates they are and what the conversion is not */
.desk-cur { min-width: 30px; text-align: center; }
.desk-cur.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.desk-cur__pop { width: 268px; }
.desk-cur__list { display: grid; gap: 2px; }
.desk-cur__item { align-items: flex-start; }
.desk-cur__item b { min-width: 22px; font-size: 13px; line-height: 18px; text-align: center; }
.desk-cur__name { display: grid; min-width: 0; }
.desk-cur__name small { font: 500 11.5px/16px var(--font-sans); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.desk-cur__item[aria-checked="true"] small { color: var(--accent-text); opacity: 0.85; }
.desk-cur__item:disabled { cursor: default; opacity: 0.5; }
.desk-cur__item:disabled:hover { background: none; }
.desk-cur__foot { margin: 6px 4px 2px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 4px; font: 500 11.5px/16px var(--font-sans); color: var(--text-muted); }
.desk-cur__foot[hidden] { display: none; }
/* in Nastavení the five currencies stand under their label: beside it they would squeeze it on a phone */
.sys-line:has(> .seg--cur) { flex-direction: column; align-items: stretch; gap: 8px; }
.seg--cur button { min-width: 56px; white-space: nowrap; display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; }
.seg--cur button b { font-weight: 650; }
/* a window of the portfolio while another currency than the crown is shown: by which rate, and the way back */
.pw-curwrap[hidden] { display: none; }
.pw-cur { display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: var(--accent-soft); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line);
  font: 500 12.5px/18px var(--font-sans); color: var(--text-strong); }
.pw-cur__sign { flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font: 650 12.5px/1 var(--font-sans); }
.pw-cur p { margin: 0; min-width: 0; flex: 1 1 auto; }
.pw-cur__back { all: unset; box-sizing: border-box; flex: none; cursor: pointer; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--accent-line); font: 600 12px/18px var(--font-sans); color: var(--accent-text); white-space: nowrap; }
.pw-cur__back:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pw-cur__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@container win (max-width: 620px) { .pw-cur { flex-wrap: wrap; padding: 7px 12px; } .pw-cur p { flex-basis: calc(100% - 40px); } }
@media (max-width: 820px) { .pw-cur { flex-wrap: wrap; padding: 7px 12px; } .pw-cur p { flex-basis: calc(100% - 40px); } .desk-cur__pop { width: min(268px, calc(100vw - 24px)); } }
/* the marks of the six windows carry their own tile, as the marks of Orbit and Nastavení systému: the places that show
   them (the dock, a minimized window, the bar of a window) only give the size. Without this the dock drew them 27 px
   small inside a dark tile of 50 px, beside an Orbit that filled its tile. */
svg.op-mark { display: block; width: 100% !important; height: 100% !important; }
.desk-app__icon:has(> svg.op-mark) { background: none; border: 0; padding: 0; overflow: visible; }

/* Orbit: the note that the key is missing, and the quiet card that opens a window */
.jv-note__link { all: unset; cursor: pointer; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.jv-note__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.jv-card--link { opacity: 0.92; }

/* Nastavení systému: the sections of the product */
.sys-icon--violet { background: var(--sys-violet, #7d70ea); }
.sys-icon--gold { background: var(--sys-gold, #c9a463); }
.sys-note--bad, .sys-note[data-tone="bad"] { color: var(--bad); }
.sys-note[data-tone="good"] { color: var(--ok); }
.sys-key__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys-key__head h3 { margin: 0; }
.sys-key__result { font-weight: 500; }
/* the pane is as wide as its place, never as its widest row (in Russian the row of the microphone made it 430 px
   wide on a phone of 390 px and the numbers at the right edge were lost) */
/* the same for the window itself and its side list: no part of Nastavení systému is wider than its place */
.sys-win, .sys-side, .sys-nav { grid-template-columns: minmax(0, 1fr); }
.sys-body, .sys-side > *, .sys-nav__item { min-width: 0; }
.sys-pane, .sys-card { grid-template-columns: minmax(0, 1fr); }
.sys-pane > *, .sys-card > *, .sys-line > * { min-width: 0; }
.sys-win .btn-row { flex-wrap: wrap; }
.sys-line > span:first-child { flex: 0 1 auto; }
.sys-slide .sys-range { flex: 1 1 60px; min-width: 40px; }
.sys-card .field { margin-top: 10px; }
.sys-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
/* a row of an account: who, role, last login, actions; in a narrow window the actions go to their own line instead
   of squeezing the name and the date (3. 12. 2026, with „Změnit heslo“ there are three of them) */
.sys-user { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sys-user__who { flex: 1 1 200px; min-width: 0; }
.sys-user > .badge, .sys-user__seen { flex: none; white-space: nowrap; }
.sys-user__acts { margin-left: auto; }
.sys-user:first-of-type { border-top: 0; }
.sys-user.is-off { opacity: 0.55; }
.sys-user__who b, .sys-user__who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-user__who small, .sys-user__seen { color: var(--text-muted); font-size: 12px; }
.sys-user__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* ---------- the window of a module ---------- */
/* the one column of the window is as wide as the window, never as its widest content: a page that asked for more
   (a table, the numbers of a card) made the whole window 510 px wide on a phone of 390 px and lost its right side */
.pw-win { background: var(--bg); grid-template-columns: minmax(0, 1fr); }
.pw-title { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; margin-right: 96px; min-width: 0; font: 600 13px/18px var(--font-sans); color: var(--text-muted); pointer-events: none; }
.pw-title b { color: var(--text-strong); font-weight: 600; }
.pw-title__icon { width: 18px; height: 18px; flex: none; border-radius: 5px; overflow: hidden; }
.pw-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-crumb:not(:empty)::before { content: "·"; margin-right: 8px; opacity: 0.6; }
.pw-body { overflow: auto; min-width: 0; min-height: 0; outline: none; scrollbar-gutter: stable; }
.pw-page { display: grid; gap: 16px; padding: 20px 24px 40px; max-width: 1500px; margin: 0 auto; align-content: start; }
.pw-page > * { min-width: 0; }

.pw-muted { color: var(--text-muted); }
.pw-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.pw-empty { margin: 0; padding: 18px 4px; color: var(--text-muted); font-size: 14px; }
.pw-neg { color: var(--bad); }
.pw-pos { color: var(--ok); }
.pw-warn { color: var(--warn); font-weight: 600; }
.pw-inline { margin-left: 8px; }
.pw-nowrap { white-space: nowrap; }
.pw-count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text); font: 600 12px/18px var(--font-sans); text-align: center; }
.pw-link { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.pw-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.pw-link--ext::after { content: " ↗"; font-size: 0.85em; opacity: 0.8; }
.pw-stack { display: grid; gap: 16px; align-content: start; }
.pw-grid { display: grid; gap: 16px; align-items: start; }
.pw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-grid--doc { grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); }
.pw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pw-seg button { white-space: nowrap; }

/* tiles with a number */
.pw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pw-kpi { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--card-grad, var(--surface-1)); border: 1px solid var(--line); min-width: 0; }
.pw-kpi__label { font: 500 12px/16px var(--font-sans); color: var(--text-muted); }
.pw-kpi__value { font: 600 24px/30px var(--font-sans); letter-spacing: -0.015em; color: var(--text-strong); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-kpi__sub { font-size: 12px; line-height: 16px; color: var(--text-muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.pw-kpi--accent { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface-1); }
.pw-kpi--good .pw-kpi__value { color: var(--ok); }
.pw-kpi--warn .pw-kpi__value { color: var(--warn); }
.pw-kpi--bad .pw-kpi__value { color: var(--bad); }

/* cards */
.pw-panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 18px 18px; display: grid; gap: 12px; min-width: 0; }
.pw-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.pw-panel__head h3 { margin: 0; font: 600 15px/20px var(--font-sans); color: var(--text-strong); }
.pw-panel__tools { display: flex; align-items: center; gap: 10px; font-size: 12.5px; min-width: 0; }
.pw-panel h4 { margin: 0 0 8px; font: 600 13px/18px var(--font-sans); color: var(--text-strong); }

.pw-facts { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.4fr); gap: 7px 14px; margin: 0; font-size: 14px; line-height: 20px; }
.pw-facts dt { color: var(--text-muted); }
.pw-facts dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-details summary { cursor: pointer; font-weight: 500; color: var(--accent-text); font-size: 13.5px; }
.pw-details[open] summary { margin-bottom: 10px; }
.pw-desc { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--text); }
.pw-desc.is-short { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pw-reasons { margin: 0; padding: 10px 14px; border-radius: var(--radius-m); background: var(--warn-bg); color: var(--text); font-size: 13.5px; line-height: 1.5; }

/* tables */
/* A cell keeps to one line: a date, a number or a badge never break. A column of names (.pw-td--name) and one of free
   text (.pw-td--long) may take two lines and are never narrower than that needs, so a name does not stand in three
   lines of a column 90 px wide. A table that does not fit its card scrolls sideways inside it (js/property/ui.js
   table): the first column stays in place and the edge where more waits fades out. */
.pw-tablewrap { overflow-x: auto; margin: 0 -4px; scrollbar-width: thin; }
.pw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 19px; }
/* a heading longer than its numbers („Zálohy od nájemníků“ over „40 700 Kč“) takes two lines before the table has to scroll */
.pw-table th { text-align: left; font: 500 12px/16px var(--font-sans); color: var(--text-muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.pw-table th.num { min-width: 86px; }
.pw-table th:not(.num) { white-space: nowrap; }
.pw-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; white-space: nowrap; background: var(--row-tint, transparent); }
.pw-table td.pw-td--name { white-space: normal; min-width: 164px; }
.pw-table td.pw-td--long { white-space: normal; min-width: 260px; }
.pw-table tbody tr:last-child td { border-bottom: 0; }
.pw-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pw-table td.num { white-space: nowrap; }
.pw-table tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 600; color: var(--text-strong); }
.pw-table tr.is-link { cursor: pointer; }
.pw-table tr.is-vacant { --row-tint: var(--warn-bg); }
.pw-table tr.is-current { --row-tint: var(--accent-soft); }
.pw-table tr.is-link:hover, .pw-table tr.is-link:focus-visible { --row-tint: var(--accent-soft); }
.pw-table tr.is-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pw-table tr.is-bad td:first-child, .pw-table tr.is-debt td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.pw-table tr.is-warn td:first-child, .pw-table tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.pw-table tr.is-ok td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.pw-table tr.is-past td { opacity: 0.6; }
.pw-table tr.is-orbit td:first-child { box-shadow: inset 3px 0 0 #ffca15; }
.pw-tablewrap.is-scroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.pw-tablewrap.is-scroll.is-end { -webkit-mask-image: none; mask-image: none; }
/* the tint of a row lies over the ground of the card, so nothing shows through the column that stays */
.pw-tablewrap.is-scroll .pw-table :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: linear-gradient(var(--row-tint, transparent), var(--row-tint, transparent)), var(--surface-1); }
.pw-rowacts { display: inline-flex; gap: 12px; white-space: nowrap; }
.pw-propcell { display: flex; align-items: center; gap: 10px; min-width: 214px; }
.pw-propcell > span:last-child { min-width: 0; }
.pw-propcell b, .pw-propcell small { display: block; }
/* stronger than .pw-cover (a photo that fills its box): this one has a size of its own */
.pw-propcell > .pw-propcell__img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; background: var(--surface-3); }
.pw-propcell > .pw-avatar { flex: none; }
/* a movement of money: what it was, and under it the property it belongs to */
.pw-move { display: grid; gap: 2px; }
.pw-move small { font-size: 12px; line-height: 16px; }

/* tabs */
.pw-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); scrollbar-width: none; }
.pw-tab { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 14px 11px; font: 500 14px/18px var(--font-sans); color: var(--text-muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.pw-tab:hover { color: var(--text-strong); }
.pw-tab[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--accent); font-weight: 600; }
.pw-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.pw-tab__count { min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font: 600 11px/17px var(--font-sans); text-align: center; }
/* tabs that do not fit one row (js/property/ui.js tabs): pills in rows; the last ones were cut off without a sign */
.pw-tabs.is-pills { flex-wrap: wrap; gap: 6px; overflow: visible; border-bottom: 0; }
.pw-tabs.is-pills .pw-tab { padding: 6px 13px; margin: 0; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface-1); font-size: 13.5px; }
.pw-tabs.is-pills .pw-tab[aria-selected="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.pw-tabpane { display: grid; gap: 16px; }

/* how a tenant pays */
.pw-moral { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 99px; font: 600 12.5px/18px var(--font-sans); white-space: nowrap; }
.pw-moral i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pw-moral--ok { color: var(--ok); background: var(--ok-bg); }
.pw-moral--late { color: var(--warn); background: var(--warn-bg); }
.pw-moral--debt { color: var(--bad); background: var(--bad-bg); }
.pw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); flex: none; }
.pw-dot--ok { background: var(--ok); }
.pw-dot--warn { background: var(--warn); }
.pw-dot--bad { background: var(--bad); }
.pw-dot--muted { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pw-paydots { display: inline-flex; gap: 3px; align-items: center; }
.pw-payline { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.pw-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 13px/1 var(--font-sans); color: var(--text-strong); background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--line-strong); }
.pw-avatar--ok { box-shadow: inset 0 0 0 2px var(--ok); }
.pw-avatar--late { box-shadow: inset 0 0 0 2px var(--warn); }
.pw-avatar--debt { box-shadow: inset 0 0 0 2px var(--bad); }
.pw-avatar--big { width: 72px; height: 72px; font-size: 24px; }
.pw-orbit-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: rgba(255, 202, 21, 0.16); color: #b98200; font: 600 11.5px/18px var(--font-sans); white-space: nowrap; }
html[data-theme="dark"] .pw-orbit-badge { color: #ffd54a; }
.pw-orbit-badge::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, #ffe16b, #ffb000); }
.pw-energy { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; font: 700 12px/1 var(--font-sans); color: #fff; background: #8a8a96; }
.pw-energy--A { background: #009a4d; } .pw-energy--B { background: #4db233; } .pw-energy--C { background: #a6c41a; color: #1c1c22; }
.pw-energy--D { background: #f5d319; color: #1c1c22; } .pw-energy--E { background: #f5a61a; color: #1c1c22; } .pw-energy--F { background: #ed661a; } .pw-energy--G { background: #db2626; }

/* alerts */
.pw-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pw-alert { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 13.5px; line-height: 19px; }
.pw-alert__icon { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); color: #fff; background: var(--text-muted); }
.pw-alert--danger { background: var(--bad-bg); } .pw-alert--danger .pw-alert__icon { background: var(--bad); color: var(--bg); }
.pw-alert--warning { background: var(--warn-bg); } .pw-alert--warning .pw-alert__icon { background: var(--warn); color: var(--bg); }
.pw-alert__text { color: var(--text-strong); text-decoration: none; }
a.pw-alert__text:hover { text-decoration: underline; text-underline-offset: 2px; }
.pw-alerts--inline { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* charts */
.pw-figure { margin: 0; display: grid; gap: 8px; }
.pw-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pw-chart__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pw-chart__zero { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pw-chart__axis { font: 500 11px/1 var(--font-sans); fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.pw-chart__mark { font: 600 11px/1 var(--font-sans); fill: var(--warn); }
.pw-chart__bar { fill: var(--accent); transition: opacity 0.12s; }
.pw-chart__bar.is-a { fill: var(--accent); }
.pw-chart__bar.is-b { fill: var(--accent-2, #e9c891); }
.pw-chart__bar.is-c { fill: var(--ok); }
.pw-chart__bar.is-neg { fill: var(--bad); }
.pw-chart__bar.is-muted { opacity: 0.45; }
.pw-chart__bar:hover { opacity: 0.75; }
.pw-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pw-chart__area { fill: var(--accent); opacity: 0.12; }
.pw-chart__dot { fill: var(--surface-1); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pw-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); }
.pw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pw-legend__key { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.pw-legend__key.is-b { background: var(--accent-2, #e9c891); }
.pw-legend__key.is-c { background: var(--ok); }
.pw-spark { width: 100%; height: 44px; display: block; }
.pw-spark__line { fill: none; stroke: currentColor; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pw-spark__area { fill: currentColor; opacity: 0.14; }

/* meters */
.pw-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-live__item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); }
.pw-live__item span { font-size: 12px; color: var(--text-muted); }
.pw-live__item b { font: 600 18px/24px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pw-live__at { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pw-live__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pw-pulse 2s infinite; }
@keyframes pw-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .pw-live__pulse { animation: none; } }
.pw-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pw-meter { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-m); background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-text); }
.pw-meter--gas { color: #e08a3c; } .pw-meter--water { color: #4f9fd8; }
.pw-meter__head { display: flex; justify-content: space-between; align-items: baseline; font: 600 13px/18px var(--font-sans); color: var(--text-strong); text-transform: capitalize; }
.pw-meter__rate { font: 600 26px/30px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.pw-meter .pw-facts { font-size: 12.5px; line-height: 18px; gap: 4px 10px; }

/* the list of properties and the map */
.pw-split { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.pw-listhead { margin: 0 0 8px; font-size: 13px; }
.pw-proplist { display: grid; gap: 8px; }
.pw-prop { 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: var(--radius-m); background: var(--surface-1); border: 1px solid var(--line); }
.pw-prop:hover, .pw-prop.is-hover { border-color: var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--surface-1); }
.pw-prop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-prop__photo { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: block; }
.pw-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-cover--none { background: var(--surface-3); }
.pw-prop__main { display: grid; gap: 2px; min-width: 0; }
.pw-prop__main b { font: 600 15px/20px var(--font-sans); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-prop__addr { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-prop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); margin-top: 2px; }
.pw-prop__side { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: 12.5px; }
.pw-prop__side b { font: 600 15px/20px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pw-prop__tenant { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.pw-split__map { position: sticky; top: 0; }
.pw-map { height: min(640px, 70vh); min-height: 380px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; z-index: 0; }
.pw-map__wait { padding: 16px; }
.pw-map--sketch { display: grid; align-content: center; gap: 10px; padding: 18px; height: auto; min-height: 0; }
.pw-sketch { width: 100%; height: auto; }
.pw-sketch__land { fill: var(--surface-3); stroke: var(--line-strong); stroke-width: 1.5; }
.pw-sketch__pin circle { fill: var(--accent); stroke: var(--surface-1); stroke-width: 2.5; cursor: pointer; }
.pw-sketch__pin.is-vacant circle { fill: var(--warn); }
.pw-pin-wrap { background: none; border: 0; }
.pw-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; display: grid; place-items: center; font: 700 13px/1 system-ui, sans-serif; color: #fff; background: #5b4bdb; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.pw-pin--late { background: #d9832a; } .pw-pin--debt { background: #d13b33; } .pw-pin--vacant { background: #7b7b86; }
.pw-map .leaflet-container { font-family: var(--font-sans); }

/* the card of a property */
.pw-cardhead { display: grid; gap: 10px; }
.pw-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pw-hero__photo { all: unset; cursor: zoom-in; display: block; height: 190px; border-radius: var(--radius-l); overflow: hidden; background: var(--surface-3); }
.pw-hero__photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-hero__text { display: grid; gap: 8px; align-content: center; min-width: 0; }
.pw-hero__text h2, .pw-dochead h2 { margin: 0; font: 600 26px/32px var(--font-sans); letter-spacing: -0.02em; color: var(--text-strong); }
.pw-hero__addr { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.pw-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pw-hero__nums { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 6px; }
.pw-hero__nums span { display: grid; gap: 1px; }
.pw-hero__nums small { font-size: 12px; color: var(--text-muted); }
.pw-hero__nums b { font: 600 18px/24px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pw-hero__tenant { display: inline-flex; align-items: center; gap: 7px; }
.pw-hero--tenant { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pw-dochead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.pw-docacts { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-docacts .btn { text-decoration: none; }

/* photos */
.pw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pw-gallery__item { all: unset; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: block; }
.pw-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.pw-gallery__item:hover img { transform: scale(1.04); }
.pw-gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-light { border: 0; padding: 0; background: rgba(4, 5, 8, 0.94); width: 100vw; height: 100vh; max-width: none; max-height: none; display: grid; place-items: center; }
.pw-light:not([open]) { display: none; }
.pw-light::backdrop { background: rgba(4, 5, 8, 0.9); }
.pw-light__img { max-width: min(94vw, 1500px); max-height: 84vh; border-radius: 10px; object-fit: contain; }
.pw-light__nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 72px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 34px; cursor: pointer; }
.pw-light__nav:hover { background: rgba(255, 255, 255, 0.24); }
.pw-light__nav--prev { left: 18px; } .pw-light__nav--next { right: 18px; }
.pw-light__bar { position: fixed; bottom: 18px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 14px; color: #fff; font: 500 13px/1 var(--font-sans); }
.pw-video { width: 100%; max-height: 520px; border-radius: var(--radius-m); background: #000; }
.pw-beforeafter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pw-beforeafter .pw-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 8px; }
.pw-timeline { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.pw-timeline__item { display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--line-strong); font-size: 13px; line-height: 18px; min-width: 200px; flex: 1 1 200px; align-content: start; }
.pw-timeline__item time { font: 600 12px/16px var(--font-sans); color: var(--text-muted); }
.pw-timeline__item--renovation_start, .pw-timeline__item--renovation_end { border-left-color: var(--accent); background: var(--accent-soft); }
.pw-timeline__item--purchase { border-left-color: var(--accent-2, #e9c891); }

/* documents and the floor plan */
.pw-floorplan { background: var(--surface-2); border-radius: var(--radius-m); padding: 12px; overflow: auto; text-align: center;
  --fp-wall: var(--text-strong); --fp-room: var(--surface-1); --fp-text: var(--text-strong); --fp-dim: var(--text-muted); --fp-win: var(--accent); }
.pw-floorplan img { max-width: 100%; max-height: 520px; height: auto; background: #fbfaf7; border-radius: 10px; padding: 6px; }
.pw-doc { display: inline-flex; align-items: center; gap: 10px; min-width: 230px; }
.pw-doc__icon { flex: none; width: 30px; height: 36px; border-radius: 5px; display: grid; place-items: center; font: 700 9px/1 var(--font-sans); letter-spacing: 0.04em; color: #fff; background: #c9433b; }
.pw-doc__icon--floorplan, .pw-doc__icon--project { background: #5b4bdb; }
.pw-doc__icon--penb { background: #2f9a5d; } .pw-doc__icon--insurance { background: #c9a463; color: #1c1c22; }
.pw-paper { background: #fff; color: #1c1c22; border-radius: var(--radius-m); padding: 44px 52px; box-shadow: var(--shadow-card, 0 2px 14px rgba(0, 0, 0, 0.12)); font-size: 14px; line-height: 1.6; }
.pw-paper h1 { margin: 0; text-align: center; font: 600 24px/30px var(--font-sans); color: #101016; }
.pw-paper__sub { text-align: center; color: #6b6b76; font-size: 12.5px; margin: 4px 0 18px; }
.pw-paper h2 { margin: 22px 0 6px; font: 600 14.5px/20px var(--font-sans); color: #5b4bdb; }
.pw-paper p { margin: 0 0 8px; }
.pw-paper dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; }
.pw-paper dt { color: #6b6b76; } .pw-paper dd { margin: 0; }
.pw-paper__place { margin-top: 30px !important; }
.pw-paper__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 60px; }
.pw-paper__sign span { border-top: 1px solid #444; padding-top: 6px; color: #6b6b76; font-size: 12.5px; }
.pw-reminder { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-2); }
.pw-reminder header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.pw-reminder__body { margin: 0; white-space: pre-line; font-size: 13.5px; line-height: 1.55; }

/* defects */
.pw-defects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pw-defect { display: grid; gap: 4px; padding: 11px 14px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--warn); }
.pw-defect--done { border-left-color: var(--ok); opacity: 0.85; }
.pw-defect__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pw-defect p { margin: 0; font-size: 13.5px; line-height: 1.5; }

/* opportunities */
.pw-opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.pw-opp { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: var(--radius-m); background: var(--surface-2); border: 1px solid var(--line); }
.pw-opp__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent-text); }
.pw-opp__body { display: grid; gap: 6px; min-width: 0; }
.pw-opp header, .pw-offer header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pw-opp h4, .pw-offer h4 { margin: 0; font: 600 15px/20px var(--font-sans); color: var(--text-strong); }
.pw-opp p, .pw-offer p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.pw-opp__effect { font-weight: 600; color: var(--ok); }
/* what a proposal brings in a year: the number an owner compares proposals by */
.pw-opp__year { font: 600 19px/25px var(--font-sans); letter-spacing: -0.01em; color: var(--ok); font-variant-numeric: tabular-nums; }
.pw-offers { display: grid; gap: 12px; }
.pw-offer { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: var(--radius-m); background: var(--surface-2); border: 1px solid var(--line); }
.pw-offer--recommend { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pw-offer__photo { all: unset; cursor: zoom-in; display: block; height: 170px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.pw-offer__photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-offer__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pw-offer__nums { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.pw-offer__nums span { display: grid; gap: 1px; }
.pw-offer__nums small { font-size: 12px; color: var(--text-muted); }
.pw-offer__nums b { font: 600 17px/22px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pw-offer__verdict { font-weight: 600; color: var(--text-strong); }
.pw-offer__caveats { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--warn); }
.pw-offer__src { font-size: 13px; }

/* ---------- Přehled: the owner's view (js/property/prehled.js, app/owner.php) ----------
   Answers under the questions an owner asks, not a board of tiles. Three colours carry meaning everywhere here:
   violet is the owner's (equity, the instalment that lowers the debt), the warm red is the bank's, green is free money. */
.shell-body { --ow-mine: var(--violet-deep); --ow-bank: #c7705f; --ow-cash: #1f9d68; --ow-run: #8b8ea3; --ow-capex: #c9a463; }

/* a question for Orbit that goes on from an answer */
.ow-ask { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 12px 4px 9px; border-radius: 99px;
  border: 1px solid var(--orbit-line, rgba(255, 202, 21, 0.42)); background: var(--orbit-soft, rgba(255, 202, 21, 0.12)); color: var(--text-strong); font: 500 12.5px/18px var(--font-sans); }
.ow-ask__mark { flex: none; width: 10px; height: 10px; border-radius: 3.5px; background: linear-gradient(135deg, #ffe16b, #ffb000); }
.ow-ask:hover { background: rgba(255, 202, 21, 0.26); }
.ow-ask:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* what the properties earned me, and what cannot wait */
.ow-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; align-items: stretch; }
.ow-hero__main { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 26px 28px 18px; border-radius: var(--radius-l); border: 1px solid var(--accent-line);
  background: radial-gradient(120% 150% at 0% 0%, var(--accent-soft), transparent 64%), var(--surface-1); }
.ow-eyebrow { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.ow-headline { margin: 0; font: 600 32px/40px var(--font-sans); letter-spacing: -0.022em; color: var(--text-strong); text-wrap: balance; }
.ow-headline em { font-style: normal; color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ow-headline em.pw-neg { color: var(--bad); }
.ow-sub { margin: 0; max-width: 64ch; font-size: 15px; line-height: 23px; color: var(--text); }
.ow-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; border-top: 1px solid var(--line-strong); }
.ow-fig { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 14px 14px 6px 0; }
.ow-fig + .ow-fig { padding-left: 16px; border-left: 1px solid var(--line); }
.ow-fig__label { font: 500 12px/16px var(--font-sans); color: var(--text-muted); }
.ow-fig__value { font: 600 22px/28px var(--font-sans); letter-spacing: -0.015em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-fig__sub { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ow-fig.is-good .ow-fig__value { color: var(--ok); }
.ow-fig.is-bad .ow-fig__value { color: var(--bad); }
.ow-fig.is-accent .ow-fig__value { color: var(--accent-text); }
.ow-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ow-asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ow-how { min-width: 0; font-size: 12.5px; color: var(--text-muted); }
.ow-how summary { cursor: pointer; padding: 4px 0; font-weight: 500; color: var(--accent-text); }
.ow-how ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; max-width: 72ch; line-height: 18px; }
.ow-attention { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px 20px 16px; border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.ow-attention header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ow-attention h3 { margin: 0; font: 600 15px/20px var(--font-sans); color: var(--text-strong); }
.ow-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ow-todo__item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-radius: var(--radius-m); background: var(--warn-bg); }
.ow-todo__item--danger { background: var(--bad-bg); }
.ow-todo__mark { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); color: var(--bg); background: var(--warn); }
.ow-todo__item--danger .ow-todo__mark { background: var(--bad); }
.ow-todo__body { display: grid; gap: 7px; min-width: 0; }
.ow-todo__text { color: var(--text-strong); text-decoration: none; font-size: 13.5px; line-height: 19px; }
.ow-todo__text:hover { text-decoration: underline; text-underline-offset: 2px; }
.ow-todo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ow-todo__meta:empty { display: none; }
.ow-todo__stake { font: 600 12.5px/18px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.ow-attention__none { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ow-attention__more { justify-self: start; font-size: 13px; }

/* what is left of 100 Kč of rent */
.ow-bar { display: flex; gap: 2px; height: 46px; border-radius: 12px; overflow: hidden; }
.ow-bar__seg { flex: 1 1 0; min-width: 6px; display: grid; place-items: center; font: 600 13.5px/1 var(--font-sans); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--ow-run); }
.ow-bar__seg--interest { background: var(--ow-bank); }
.ow-bar__seg--principal { background: var(--ow-mine); }
.ow-bar__seg--capex { background: var(--ow-capex); color: #1c1c22; }
.ow-bar__seg--cash { background: var(--ow-cash); }
.ow-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 12px 26px; }
.ow-legend__item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.ow-legend__key { width: 12px; height: 12px; margin-top: 4px; border-radius: 4px; background: var(--ow-run); }
.ow-legend__item--interest .ow-legend__key { background: var(--ow-bank); }
.ow-legend__item--principal .ow-legend__key { background: var(--ow-mine); }
.ow-legend__item--capex .ow-legend__key { background: var(--ow-capex); }
.ow-legend__item--cash .ow-legend__key { background: var(--ow-cash); }
.ow-legend__item--short .ow-legend__key { background: var(--bad); }
.ow-legend__item--short .ow-legend__num b { color: var(--bad); }
.ow-legend__item b { display: block; font: 600 14px/20px var(--font-sans); color: var(--text-strong); }
.ow-legend__item small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ow-legend__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* what is mine and what the bank's */
.ow-split { display: flex; gap: 3px; }
/* a part is never narrower than its number: on a phone the smaller share would cut it */
.ow-split__part { flex: 1 1 0; min-width: max-content; display: grid; gap: 1px; align-content: center; padding: 11px 14px; border-radius: 12px; }
.ow-split__part span, .ow-split__part small { font: 500 12px/16px var(--font-sans); }
.ow-split__part b { font: 600 19px/25px var(--font-sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-split__part--mine { background: var(--ow-mine); color: #fff; }
.ow-split__part--bank { background: color-mix(in srgb, var(--ow-bank) 18%, var(--surface-2)); color: var(--text-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ow-bank) 50%, transparent); }
.ow-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; }
.ow-stat { display: grid; gap: 1px; align-content: start; min-width: 0; }
.ow-stat span, .ow-stat small { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ow-stat b { font: 600 17px/24px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* where money leaks */
.ow-leaks, .ow-dates { list-style: none; margin: 0; padding: 0; display: grid; }
.ow-leaks li + li, .ow-dates li + li { border-top: 1px solid var(--line); }
.ow-leak { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 -8px; padding: 10px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.ow-leak:hover, .ow-date:hover { background: var(--accent-soft); }
.ow-leak:focus-visible, .ow-date:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ow-leak__what b { display: block; font: 600 14px/20px var(--font-sans); color: var(--text-strong); }
.ow-leak__what small { display: block; font-size: 12.5px; line-height: 18px; color: var(--text-muted); }
.ow-leak__num { text-align: right; white-space: nowrap; }
.ow-leak__num b { display: block; font: 600 16px/22px var(--font-sans); color: var(--bad); font-variant-numeric: tabular-nums; }
.ow-leak__num small { font-size: 11.5px; line-height: 15px; color: var(--text-muted); }

/* what a worse year would do */
.ow-knobs { display: grid; gap: 4px; }
.ow-knob { display: grid; grid-template-columns: minmax(128px, 0.9fr) minmax(120px, 1.7fr) 86px; gap: 12px; align-items: center; font-size: 13.5px; line-height: 20px; color: var(--text-strong); }
.ow-knob__value { text-align: right; font: 600 13.5px/20px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ow-result { display: grid; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-2); border: 1px solid var(--line); }
.ow-result span { font: 500 12px/16px var(--font-sans); color: var(--text-muted); }
.ow-result b { font: 600 19px/26px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.15s; }
.ow-result small { font-size: 11.5px; line-height: 15px; color: var(--text-muted); }
.ow-result.is-worse b { color: var(--warn); }
.ow-result.is-bad b { color: var(--bad); }
.ow-result.is-better b { color: var(--ok); }
.ow-limit { margin: 0; padding: 10px 14px; border-radius: var(--radius-m); background: var(--ok-bg); color: var(--text-strong); font-size: 13.5px; line-height: 20px; }
.ow-stress__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ow-stress__foot .btn { flex: none; }

/* what has a date */
.ow-date { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 -8px; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.ow-date__day { font: 600 13px/18px var(--font-sans); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-date__what b { display: block; font: 500 13.5px/19px var(--font-sans); color: var(--text-strong); }
.ow-date__what small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ow-date__when { padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--text); font: 600 12px/18px var(--font-sans); white-space: nowrap; }
.ow-date.is-near .ow-date__when { background: var(--warn-bg); color: var(--warn); }
.ow-date.is-late .ow-date__when { background: var(--bad-bg); color: var(--bad); }

/* every property in one line */
.ow-verdict { display: inline-flex; gap: 8px; align-items: baseline; }
.ow-verdict i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.ow-verdict--warn i { background: var(--warn); }
.ow-verdict--bad i { background: var(--bad); }

/* ---------- narrower windows and the phone ---------- */
@container win (max-width: 1100px) {
  .ow-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ow-fig:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ow-fig:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@container win (max-width: 1040px) {
  .ow-hero { grid-template-columns: minmax(0, 1fr); }
}
@container win (max-width: 1180px) {
  .pw-split { grid-template-columns: minmax(0, 1fr); }
  .pw-split__map { position: static; order: -1; }
  .pw-map { height: 320px; min-height: 0; }
  .pw-grid--doc { grid-template-columns: minmax(0, 1fr); }
}
@container win (max-width: 1040px) {
  .pw-grid--2, .pw-beforeafter { grid-template-columns: minmax(0, 1fr); }
  .pw-hero { grid-template-columns: 220px minmax(0, 1fr); }
  .pw-hero__photo { height: 150px; }
}
@media (max-width: 820px) {
  .pw-page { padding: 14px 12px 32px; gap: 12px; }
  .ow-hero { grid-template-columns: minmax(0, 1fr); }
  .ow-hero__main { padding: 18px 16px 14px; }
  .ow-headline { font-size: 24px; line-height: 31px; }
  .ow-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ow-fig:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ow-fig:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ow-fig__value { font-size: 19px; line-height: 25px; }
  .ow-bar__seg { font-size: 12px; }
  .ow-knob { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .ow-knob .ow-knob__range { grid-column: 1 / -1; order: 3; }
  .ow-date { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .ow-date__day { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted); }
  .ow-stress__foot { flex-direction: column; }
  .pw-table th, .pw-table td { padding-left: 8px; padding-right: 8px; }
  .pw-title { margin-right: 8px; justify-content: flex-start; }
  .pw-split, .pw-grid--2, .pw-grid--doc, .pw-beforeafter, .pw-hero, .pw-offer { grid-template-columns: minmax(0, 1fr); }
  .pw-split__map { position: static; order: -1; }
  .pw-map { height: 260px; min-height: 0; }
  .pw-hero__photo { height: 180px; }
  .pw-hero--tenant { grid-template-columns: auto minmax(0, 1fr); }
  .pw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-kpi__value { font-size: 19px; line-height: 26px; }
  .pw-prop { grid-template-columns: 72px minmax(0, 1fr); }
  .pw-prop__photo { width: 72px; height: 60px; }
  .pw-prop__side { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .pw-live { grid-template-columns: minmax(0, 1fr); }
  .pw-paper { padding: 22px 18px; }
  .pw-paper dl, .pw-facts { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .pw-paper dd, .pw-facts dd { margin-bottom: 8px; }
  .pw-offer__photo { height: 190px; }
  .sys-card .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sys-user__seen { display: none; }
  .desk-name { display: none; }
}
