/*
 * Property OS · the console (3. 12. 2026, Štěpán: „it still looks like web pages, 0 % futuristic“). Loaded last.
 *
 * The workspace reads as an instrument panel, not as a page: a nearly black ground with a faint grid, panels one step
 * lighter held by hairlines and corner marks instead of shadows and round cards, labels in a machine face in capitals,
 * the amounts large and light, the series of data lit. Violet stays the choice, the focus and the main series; yellow
 * stays with Orbit. Nothing unfolds behind a web triangle: what opens is a switch that says + or −.
 * The light look keeps the same geometry on a cold pale ground.
 */

/* ---------- the two looks ---------- */
html[data-theme][data-palette="es-noc"] body.shell-body {
  --bg: #07080d; --bg-grad: #07080d;
  --surface: #0a0c13; --surface-1: #0e1019; --surface-2: #151826; --surface-3: #1f2335;
  --line: rgba(157, 147, 255, 0.13); --line-strong: rgba(157, 147, 255, 0.30);
  --text-strong: #f2f2fa; --text: #c9cad9; --text-muted: #8689a3; --placeholder: #5d607a;
  --accent: #9d93ff; --accent-hi: #c4bdff; --accent-deep: #6f61f0; --accent-text: #b3abff; --on-accent: #07080d; --accent-2: #4a4e68;
  --accent-soft: rgba(157, 147, 255, 0.12);
  --card-grad: var(--surface-1); --shadow-card: none;
  --hud-glow: rgba(157, 147, 255, 0.55); --hud-grid: rgba(157, 147, 255, 0.045); --hud-halo: rgba(111, 97, 240, 0.16);
  --hud-cyan: #7fd3e6;
}
html[data-theme][data-palette="es-den"] body.shell-body {
  --bg: #e9ebf1; --bg-grad: #e9ebf1;
  --surface: #eef0f5; --surface-1: #f7f8fb; --surface-2: #e4e7ef; --surface-3: #d3d8e4;
  --line: rgba(40, 36, 110, 0.14); --line-strong: rgba(40, 36, 110, 0.30);
  --text-strong: #12131c; --text: #2b2d3c; --text-muted: #5d6078; --placeholder: #878aa0;
  --accent: #5b4bdb; --accent-hi: #7d70ea; --accent-deep: #4636c4; --accent-text: #4a3bc8; --on-accent: #ffffff; --accent-2: #a9adbf;
  --accent-soft: rgba(91, 75, 219, 0.10);
  --card-grad: var(--surface-1); --shadow-card: none;
  --hud-glow: rgba(91, 75, 219, 0.0); --hud-grid: rgba(40, 36, 110, 0.05); --hud-halo: rgba(91, 75, 219, 0.07);
  --hud-cyan: #1f7f95;
}
body.shell-body {
  /* one face in the whole app (Štěpán 3. 12. 2026): the labels keep capitals and spacing, not a second font */
  --hud-mono: var(--font-sans);
  --radius-s: 3px; --radius-m: 4px; --radius-l: 6px;
}

/* ---------- the ground: a faint grid and a halo behind the navigation ---------- */
/* a window on the desk is a solid pane of the console with the same faint grid */
.pw-win, .jv-win, .sys-win { background:
    linear-gradient(var(--hud-grid) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--bg); }
.shell-body * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- the rail ---------- */

/* ---------- the status line above every page: where the person is, the day and the time ---------- */
@keyframes hud-pulse { 50% { opacity: 0.35; } }

/* ---------- a page: its heading ---------- */
.pw-page { padding: 20px 28px 44px; gap: 16px; }
.pw-h1 { font: 300 32px/38px var(--font-sans); letter-spacing: -0.025em; }
.pw-head__sub { font: 400 12.5px/18px var(--hud-mono); color: var(--text-muted); }

/* ---------- a panel: a hairline frame with two corner marks, its name a label of an instrument ---------- */
.pw-panel, .ov-result, .ov-attention, .fin-first, .fin-month, .pw-hero, .pw-kpi, .sys-card {
  position: relative; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-1) 92%, transparent); box-shadow: none;
}
:is(.pw-panel, .ov-result, .ov-attention, .fin-first, .fin-month, .pw-hero)::before,
:is(.pw-panel, .ov-result, .ov-attention, .fin-first, .fin-month, .pw-hero)::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border: 0 solid var(--accent); opacity: 0.75; }
:is(.pw-panel, .ov-result, .ov-attention, .fin-first, .fin-month, .pw-hero)::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; border-radius: 14px 0 0 0; }
:is(.pw-panel, .ov-result, .ov-attention, .fin-first, .fin-month, .pw-hero)::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 14px 0; }
.pw-panel__head h3, .pw-panel > h3, .ov-attention h2, .ov-attention h3, .ov-chart__head b, .ov-chart__head h3, .fin-sum__label, .ov-result__q, .pw-subhead, .pw-kpi__label {
  margin: 0; font: 600 12.5px/18px var(--hud-mono); color: var(--text-muted);
}
.pw-panel__head h3::before, .ov-result__q::before, .fin-sum__label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--accent); box-shadow: 0 0 8px var(--hud-glow); vertical-align: 1px; }
.fin-month__title { color: var(--text-strong) !important; }
.pw-panel__tools { font-family: var(--hud-mono); font-size: 12.5px; }
.pw-panel__lead, .pw-chart-note, .pw-note { font-size: 12px; line-height: 18px; color: var(--text-muted); }

/* ---------- the amounts: large and light, the main one lit ---------- */
.ov-result__value { font: 300 60px/62px var(--font-sans); letter-spacing: -0.04em; text-shadow: 0 0 34px var(--hud-glow); }
.fin-sum__value { font: 300 46px/50px var(--font-sans); letter-spacing: -0.035em; text-shadow: 0 0 28px var(--hud-glow); }
.sb__value, .pw-hero__cash b, .pw-kpi__value { font-weight: 350; letter-spacing: -0.03em; }
.ov-result__about, .fin-sum__sub { font: 400 12.5px/18px var(--hud-mono); color: var(--text-muted); }
.pw-neg, .is-neg > .zb__value { text-shadow: 0 0 18px color-mix(in srgb, var(--bad) 45%, transparent); }

/* ---------- controls: switches of a console, not form fields of a page ---------- */
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--small { min-height: 34px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; font: 600 12.5px/18px var(--hud-mono); color: var(--text-strong); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text-strong); }
: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-soft); border-color: var(--accent); color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent-soft), 0 0 18px -6px var(--hud-glow); }
html[data-theme="light"] :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary, html[data-theme="light"] :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover { color: var(--accent-deep); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
html[data-theme="dark"] :is(.pw-win, .jv-win, .sys-win, dialog.gal) .btn--primary:hover { color: #fff; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .seg { padding: 0; gap: 0; border-radius: 9px; border: 1px solid var(--line-strong); background: transparent; overflow: hidden; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .seg button { min-height: 34px; min-width: 0; padding: 7px 13px; border-radius: 0; border-right: 1px solid var(--line); font: 600 12.5px/18px var(--hud-mono); color: var(--text-muted); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .seg button:last-child { border-right: 0; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--accent); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .input, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .select, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .pw-search, :is(.pw-win, .jv-win, .sys-win, dialog.gal) .pw-pick__input, :is(.pw-win, .jv-win, .sys-win, dialog.gal) input[type="number"], :is(.pw-win, .jv-win, .sys-win, dialog.gal) textarea { border-radius: 8px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 80%, transparent); font-family: var(--hud-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-strong); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) :is(.input, .pw-search, .pw-pick__input):focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 20px -6px var(--hud-glow); outline: none; }
.pw-pick__list { border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-1); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.pw-pick__label, .wi-knob label, .pw-toolbar > .pw-muted { font: 500 12.5px/18px var(--hud-mono); color: var(--text-muted); }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) input[type="range"] { accent-color: var(--accent); }

/* what opens says + and −, as a switch of a panel: no triangle of a web page */
.pw-details > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: 600 12.5px/18px var(--hud-mono); color: var(--text-strong); cursor: pointer; }
.pw-details > summary::-webkit-details-marker { display: none; }
.pw-details > summary::before { content: "+"; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--accent); color: var(--accent); font: 600 12px/1 var(--hud-mono); }
.pw-details[open] > summary::before { content: "−"; background: var(--accent-soft); }
.pw-details > summary:hover { background: var(--accent-soft); border-color: var(--accent); }
.pw-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* links inside the workspace are commands, not underlined words */
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .pw-page a:not(.btn):not(.pw-back):not(.zb__row):not(.pw-prop__open):not(.ov-todo__main) { text-decoration: none; }
.ov-result__links > a, .ov-attention__more, .ov-picked__open, .wi__links a, .pw-prop__open { font: 600 12.5px/18px var(--hud-mono); color: var(--accent-text); text-decoration: none; }
.ov-result__links > a::after, .ov-attention__more::after, .ov-picked__open::after, .wi__links a::after { content: " ›"; }
.ov-result__links > a:hover, .ov-attention__more:hover, .ov-picked__open:hover, .wi__links a:hover { color: var(--accent-hi); text-shadow: 0 0 12px var(--hud-glow); }

/* ---------- marks of a state: a lamp and a word ---------- */
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; background: transparent; font: 600 12.5px/18px var(--hud-mono); white-space: nowrap; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
:is(.pw-win, .jv-win, .sys-win, dialog.gal) .badge:not([class*="badge--"]) { color: var(--text-muted); }
.pw-count { font-family: var(--hud-mono); border-radius: 99px; }
.ow-ask { border-radius: 10px; font-family: var(--hud-mono); font-size: 12.5px; }

/* ---------- tables: readings in rows ---------- */
.pw-table th { font: 600 12.5px/18px var(--hud-mono); color: var(--text-muted); border-bottom-color: var(--line-strong); }
.pw-table td { border-bottom-color: var(--line); font-size: 13px; }
.pw-table td.num, .pw-table td .pw-nowrap { font-variant-numeric: tabular-nums; }
.pw-table tr.is-selected td { background: var(--accent-soft); }
.pw-table tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.pw-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* ---------- charts: the series are lit, the scale is a scale of an instrument ---------- */
.pw-chart__axis, .mc text, .sb__axis, .zb__value, .wf__value { font-family: var(--hud-mono); letter-spacing: 0.02em; }
.mc__bar { fill: var(--accent); }
html[data-theme="dark"] .mc__bar:not(.is-running) { filter: drop-shadow(0 0 5px var(--hud-glow)); }
html[data-theme="dark"] .mc__bar.is-on { fill: #fff; filter: drop-shadow(0 0 9px var(--accent)); }
.mc__bar.is-on { fill: var(--accent-deep); }
.mc__flow { fill: var(--hud-cyan); fill-opacity: 0.16; }
.mc__guide { stroke: var(--accent); stroke-dasharray: 2 4; }
.wf__bar, .zb__bar, .sb__bar, .eq-bar > * { border-radius: 99px; }
html[data-theme="dark"] :is(.sb__bar, .zb__bar, .eq-bar__mine) { box-shadow: 0 0 14px -2px var(--hud-glow); }
html[data-theme="dark"] :is(.sb__row.is-neg .sb__bar, .zb__row.is-neg .zb__bar) { box-shadow: 0 0 14px -2px var(--bad); }
.sb__track, .zb__track { border-radius: 99px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.sb__label { font-family: var(--hud-mono); font-size: 12.5px; }
.sb__label { color: var(--text-muted); }

/* ---------- things to solve, properties, the photo ---------- */
.ov-todo__item { padding-left: 14px; }
.ov-todo__meta { font: 500 12.5px/18px var(--hud-mono); }
.pw-prop, .shell-body .pw-prop { border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-1) 92%, transparent); box-shadow: none; }
.pw-prop.is-selected, li.pw-prop.is-selected { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent), 0 0 22px -10px var(--hud-glow); }
.pw-prop img, .pw-gallery__item, .pw-gallery__item img, .pw-hero__photo, .pw-hero__photo img, .pw-map { border-radius: 10px; }
.pw-hero__photo { outline: 1px solid var(--line-strong); outline-offset: 3px; }
.pw-tabs { gap: 0; border-bottom: 1px solid var(--line-strong); }
.pw-tabs a, .pw-tabs button { border-radius: 0; font: 600 12.5px/18px var(--hud-mono); }
.pw-tabs [aria-selected="true"], .pw-tabs .is-on, .pw-tabs [aria-current] { box-shadow: inset 0 -2px 0 var(--accent); color: var(--text-strong); background: var(--accent-soft); }

/* ---------- the gallery and what floats over the workspace ---------- */
.gal { border-radius: 0; }
.gal__title, .gal__count, .gal__status, .gal__note { font-family: var(--hud-mono); font-size: 11px; }
.gal__img, .gal__thumb, .gal__thumb img, .pw-spatial { border-radius: 10px; }

/* ---------- panels come on, they do not scroll in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pw-page > * { animation: hud-on 0.32s cubic-bezier(.2, .7, .2, 1) both; }
  .pw-page > *:nth-child(2) { animation-delay: 0.04s; } .pw-page > *:nth-child(3) { animation-delay: 0.08s; } .pw-page > *:nth-child(4) { animation-delay: 0.12s; } .pw-page > *:nth-child(n+5) { animation-delay: 0.16s; }
  @keyframes hud-on { from { opacity: 0; transform: translateY(6px); } }
}

/* the card of a property: the readings beside the photo */
.pw-hero__cash > span, .pw-hero__cash > small, .pw-hero__num > span, .pw-hero__num > small, .pw-hero__nums dt, .pw-hero__nums small { font: 500 12.5px/18px var(--hud-mono); color: var(--text-muted); }
.pw-hero__cash b { font-weight: 300; text-shadow: 0 0 28px var(--hud-glow); }
.pw-hero__links a, .pw-hero a:not(.btn) { font: 600 12.5px/18px var(--hud-mono); }
.pw-dl dt, .pw-kv dt, .pw-kv > span:first-child { font-family: var(--hud-mono); font-size: 12.5px; color: var(--text-muted); }

/* ---------- the map: night tiles under lit pins (the tiles are a picture of another house, only their colours turn) ---------- */
html[data-theme="dark"] .pw-map .leaflet-tile-pane { filter: invert(1) hue-rotate(205deg) saturate(0.45) brightness(0.82) contrast(0.92); }
html[data-theme="dark"] .pw-map .leaflet-container { background: #0b0d15; }
.pw-map .leaflet-control-zoom a, .pw-map .leaflet-control-attribution { border-radius: 6px; }
html[data-theme="dark"] .pw-map .leaflet-control-zoom a { background: var(--surface-1); color: var(--text-strong); border-color: var(--line-strong); }
html[data-theme="dark"] .pw-map .leaflet-control-attribution { background: rgba(7, 8, 13, 0.7); color: var(--text-muted); }
.pw-pin { box-shadow: 0 0 0 2px var(--bg), 0 0 16px var(--hud-glow); }
.pw-pin.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 22px var(--accent); }

/* ---------- lamps of a tenant ---------- */
.pw-moral { padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; background: transparent; font: 600 12.5px/18px var(--hud-mono); }
.pw-moral i { width: 5px; height: 5px; box-shadow: 0 0 7px currentColor; }
.pw-avatar { border-radius: 50%; font-family: var(--hud-mono); }

/* ---------- Orbit as a page of the console ---------- */
.jv-win--page :is(.jv-panel, .jv-card, .jv-stage, .jv-thread, .jv-body, .jv-compose, .jv-note, .jv-input, .jv-msg) { border-radius: 14px; }
.jv-win--page .jv-input { font-family: var(--hud-mono); }

.ow-date__what b { font-size: 12.5px; line-height: 17px; letter-spacing: -0.01em; }
.ow-date__when, .ow-date__when .badge { font-size: 11px; }

/* =====================================================================================================================
 * The desk again (Stepan 3. 12. 2026: the Apple layout with the dock, but with this new look): the bar above, the dock
 * below, windows with the three dots. They wear the console: hairlines, corner marks, the machine face.
 * ================================================================================================================== */
.desk-menu__btn:not(.desk-menu__btn--logo) { font: 700 12.5px/18px var(--font-sans); border-radius: 7px; }
.desk-clock { font: 500 12.5px/18px var(--hud-mono); color: var(--text-strong); }
.desk-status .desk-lang { border-radius: 7px; font-family: var(--hud-mono); }

/* the dock: a rail of the console with a lamp under what runs */
.desk-dock { border-radius: 20px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-1) 78%, transparent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px -18px var(--hud-glow); backdrop-filter: blur(14px); }
.desk-dock__app .desk-app__icon { border-radius: 13px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 0.16s ease-out, box-shadow 0.16s; }
.desk-dock__app:hover .desk-app__icon { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 0 22px -4px var(--hud-glow); }
.desk-dock__app.is-running { background: linear-gradient(var(--accent), var(--accent)) center bottom / 14px 2px no-repeat; filter: drop-shadow(0 2px 5px var(--hud-glow)); }
.desk-dock [data-tip]::before { border-radius: 8px; font: 600 12.5px/18px var(--hud-mono); }
@media (prefers-reduced-motion: reduce) { .desk-dock__app .desk-app__icon { transition: none; } .desk-dock__app:hover .desk-app__icon { transform: none; } }

/* a window: the three dots stay, the frame is a hairline with a lit edge */
.chrome { background: transparent; border-bottom: 1px solid var(--line-strong); }
.chrome-strip { height: 38px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.chrome-bar { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.pw-title { font: 600 12.5px/18px var(--hud-mono); }
.pw-title b { font-weight: 600; }
.pw-title__icon { border-radius: 8px; }

/* in a narrow window the headings of a table are set tighter: a long Ukrainian or Russian one keeps to two lines */
@container win (max-width: 1100px) { .pw-table th { letter-spacing: 0.02em; } }

/* no capitals with spacing anywhere in a window (Štěpán 3. 12. 2026: it leaves the Apple look): labels are plain small text */
.shell-body :is(.pw-win, .jv-win, .sys-win, dialog.gal) :is(.ow-eyebrow, .field > label, .field > .field-label, .fieldset > legend, details.advanced > summary, .group-label, .tbl th) { text-transform: none; letter-spacing: 0; }
.shell-body :is(.pw-win, .jv-win, .sys-win) :is(.group-label, .tbl th) { font-size: 12px; }
