/* Kvatr's app. The homepage's palette and type (the DTU deck's): navy and cream, an orange accent,
   Noto Sans for every word (docs/languages.md, L26). Built for the phone first. Dark mode follows the system
   setting. Every text colour holds WCAG AA (4.5:1) in both themes. Since kvatr #98 (2026-10-29) the signed-in
   pages are white surfaces on paper with thin rules, the menu with what one works as at its top, and the
   type a step smaller on a wide screen. */

:root {
    --navy: #16232E;
    --cream: #F5F3EE;
    --orange: #F0925E;

    --bg: #F7F6F2;
    --surface: #FFFFFF;
    --surface-2: #F1EFEA;
    --text: #16232E;
    --muted: #5A6673;
    --accent: #A9481A;
    --accent-soft: #FBEDE4;
    --accent-text: #FBFAF7;
    --danger: #A12C1E;
    /* A ground that carries a message, and its words: the error strip (kvatr #108). White on the red, 7.3:1. */
    --danger-ground: #A12C1E;
    --on-danger: #FFFFFF;
    /* A change that rose (/kvatr/now's chips, docs/now.md rule 5): the colour only repeats the sign and the arrow. 6.5:1 on the tile. */
    --up: #1D6B38;
    --border: #E5E2DB;
    --hint-edge: rgb(0 0 0 / 0.14);

    --font-head: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    --radius: 10px;

    /* The window's foot (kvatr #379, lane AN-B; the block »The window's foot« below): the footer line's height above the safe area's inset — its
       1.25rem line, its 0.15rem padding twice and its 1px rule; the footer takes it as its height —; a band's height (--band-line); and how much of
       the window the bands standing there take (--bands, by their count, set under »Kvatr's banner«), which every height of the window's under
       the page subtracts. */
    --footer-line: calc(1.55rem + 1px);
    --band-line: 6.5rem;
    --bands: 0rem;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10181F;
        --surface: #172129;
        --surface-2: #1E2A33;
        --text: #ECE8E1;
        --muted: #A3B0BA;
        --accent: #F0925E;
        --accent-soft: #2B2520;
        --accent-text: #16232E;
        --danger: #F2A08F;
        /* The dark theme draws a danger as its form errors are drawn: the light red as words on a dark ground — here a dark red, 6.3:1.
           White on --danger, the light red made for words, was 2.1:1. */
        --danger-ground: #5C1A12;
        --on-danger: #F2A08F;
        --up: #7CCB95;
        --border: #28343E;
        --hint-edge: rgb(0 0 0 / 0.45);
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: 1.75rem; margin: 0 0 0.75rem; }

a { color: var(--accent); }

.skip-link { position: absolute; inset-inline-start: -999px; }
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

/* A landing's element (js/nav.js's kvatrLand, Components/LandsHere.razor; kvatr #266): a heading or a section the script gave the focus's
   start — data-landed while it holds that focus, which the script sets and takes off at the blur —, so no ring is drawn around it; an
   element that holds the focus by any other hand keeps its ring (kvatr #348 TP4-2). A control's ring is its own. */
[data-landed]:focus { outline: none; }

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--navy);
    color: var(--cream);
}
.app-header .brand { color: var(--cream); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.app-header .who { margin-inline-start: auto; color: var(--cream); text-decoration: none; }
.app-header .who:hover { text-decoration: underline; }
.app-header .sign-out { margin: 0; }

.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.link-button.delete { color: var(--danger); }

/* The page's column; the sheet's one size container, and --box-inside a box's inside: the full rows' cap (the tables' block, open point 2). */
.app-main { width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; container-type: inline-size; --box-inside: calc(100cqw - 2px); }

.sign-in { max-width: 24rem; }

.stack { display: flex; flex-direction: column; gap: 0.5rem; }

label { font-weight: 600; }

input {
    font: inherit;
    font-size: 1.15rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

/* The quiet button (kvatr #98, §3): white, the accent's border and words; the page's one primary is button-primary (the lane 3 block). */
.button {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}
/* A button's margin is a form's, under its fields (kvatr #109): a stack's first button — or the span that holds it with its Cancel — 0.5rem
   below the stack's gap; two buttons one under the other in a stack (the receipts' »Save« and »Save as an agreement«) the gap alone between
   them. A lone action in its own paragraph (.action-line: the Stripe card's, the export's, the pay page's and the invoice's) 0.5rem below the
   paragraph's margin. Everywhere else a button stands at its line's or row's spacing: no rule takes a margin away (LookRulesTests). */
.stack > .button, .stack > span > .button { margin-top: 0.5rem; }
.stack > .button + .button { margin-top: 0; }
.action-line > .button { margin-top: 0.5rem; }

.form-error { color: var(--danger); margin: 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.notice { padding: 1rem; background: var(--surface); border-radius: var(--radius); }

/* The »Something went wrong« strip (MainLayout; blazor.web.js's own too): its words on the message's ground in both themes, and its foot clear of
   the phone's bottom edge — iOS Safari's floating bar sat over its lower half (kvatr #108): 0.75rem above the safe area's inset, as the footer
   pads its line, so the words keep their 0.75rem above the inset's edge. The padding's own line after the shorthand, so a browser without env()
   keeps the 0.75rem. No viewport-fit=cover: only the footer and the window's foot handle a safe area, the menu and the header do not. Over everything (kvatr #379, lane
   AN-B): over the window's foot — the toast and Kvatr's banner, 12 —, the menu (20) and the menus that open (30). */
#blazor-error-ui { display: none; position: fixed; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 40; padding: 0.75rem 1rem; padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: var(--danger-ground); color: var(--on-danger); }
#blazor-error-ui .reload { color: var(--on-danger); }

/* ---- Pages ---- */

h2 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.card h2 { margin-top: 0; }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 0.35rem 0; }

.meta { color: var(--muted); font-size: 0.9rem; margin-inline-start: 0.5rem; }
/* Blazor drops the whitespace beside an @if block, so a link button after one touched what came before it: a refund's row read »14-OCT
   20:33Paid from the bank«. The gap is the button's own, as .meta's (a table row's words stand in its cell's span, its gap theirs). */
.refunds .link-button, .debts .link-button, .to-send-back .link-button { margin-inline-start: 0.5rem; }
/* A guest's row (kvatr #413, #337): the same drop ran its state, its text's line and its buttons together — »ExpectedWill be sent in the
   morningChangeCancelCopy the guest's link«. Every part after the name stands apart by a gap of its own, as .meta's; »Your guests«' words
   stand in lane 3's span, apart from each other by its gap, as a table's cell's; the plate's and the rules' » · …« join what is before them. */
:is(.guests-mine, .guests-day) > li > :is(span, a, button, input):not(:first-child, .guest-plate, .guest-signed) { margin-inline-start: 0.5rem; }
.kind { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-inline-end: 0.35rem; }

.form-done { color: var(--text); background: var(--surface); border-inline-start: 4px solid var(--accent); padding: 0.5rem 0.75rem; margin: 0.5rem 0; }

/* The Stripe card's wait (BillingAdmin.razor; docs/payments.md, »The card«): while »Connect your Stripe« or »Continue with Stripe«
   runs, up to about twenty seconds, a small ring turns beside the line that says what for — standing still under reduced motion. */
.stripe-waiting { display: flex; align-items: center; gap: 0.5rem; }
.stripe-waiting:empty { margin: 0; }
.spinner { display: inline-block; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spinner-turn 0.8s linear infinite; }
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
}

/* A bar of tabs across a page's top (kvatr #98): links, each tab at its own address, the page's own marked; a long bar wraps into two rows on a
   wide screen, and on a narrow one the bar scrolls sideways instead. The community's filter wears the same bar with buttons. */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); margin: 0 0 1.5rem; }
@media (max-width: 899px) {
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
}
.tab { flex: none; font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.55rem 0.85rem; color: var(--muted); text-decoration: none; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active, .tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
/* A tab's count (kvatr #152, Operations' list): the rows under the tab, after its words — the heavier figure of the drawn bar. */
.tab-count { font-weight: 600; }
/* The administration's group row (kvatr #136; docs/product.md »The administration's groups«): People, Places, Money and The house above the
   chosen group's row of sections, the same links as a bar's tabs; the four wrap on every screen — four short words —, where the row under
   them scrolls sideways on a narrow one. The chosen group is the current of its set (aria-current="true"), marked as a bar's own tab. */
.tab-groups { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 0.25rem; }
.tab-groups .tab[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
/* A page's facts under its h1, above its bar (kvatr #98): muted, a dot drawn between them here, so no separator is a word. Each fact an
   inline block, so a line breaks between facts, never inside one, and a wrapped line starts with its dot; the block drops the dot's
   leading space, hence the margin. */
.page-facts { margin: -0.4rem 0 1rem; font-size: 0.9rem; color: var(--muted); }
.page-facts span { display: inline-block; }
.page-facts span + span { margin-inline-start: 0.3em; }
.page-facts span + span::before { content: " \2022  "; }

/* ---- kvatr #98 lane 3: the rows and buttons (docs/product.md »The menu«) ---- */

/* The places (HousePage's Places): a row is its head line — the kind, the name, the details, the »Meeting spot« switch, then the actions'
   cell at its end — and under it its question, its two forms and its answer line, each a full line; the list in the tables' box (§3's
   tables: its ground, border and corners the box's, and no margin of its own, which would not collapse inside the scrolling box), its
   tint the tables' too; the rows' depth 1.25rem a level on top of the row's own 0.75rem. */
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.tree li:last-child { border-bottom: 0; }
.tree li > .row-question, .tree li > form, .tree li > .form-error, .tree li > .form-done { flex: 1 1 100%; }
/* A row's form the whole line under the head line — .inline-form's 24rem would let it sit beside a short row's facts —, its fields at 24rem. */
.tree li > form { max-width: none; }
.tree li > form > * { max-width: 24rem; }
.tree .depth-1 { padding-inline-start: 2rem; }
.tree .depth-2 { padding-inline-start: 3.25rem; }
.tree .depth-3 { padding-inline-start: 4.5rem; }
.tree .depth-4 { padding-inline-start: 5.75rem; }
.tree .depth-5 { padding-inline-start: 7rem; }
/* The row's actions, one cell at its end: the tables' cell, ruled in §3's tables' block below with every table's. */

/* The buttons (§3): .button is the quiet one (the sheet's head); the page's one primary is filled, its 1px border kept so a primary and a
   quiet button side by side stand the same height, a darker accent under the pointer (--accent-text on it about 7:1 light, 5:1 dark); the
   quiet hover scoped to the quiet; a disabled one muted, with no hover. A head's action stands at its row's end, wrapping on a phone. */
.button-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
/* The hovers where a pointer hovers: on a touch screen a tap would leave the tint standing. The buttons' states are ruled here alone
   (LookRulesTests): a later .button:hover elsewhere would win the cascade over these. */
@media (hover: hover) {
    .button:not(.button-primary):not(:disabled):hover { background: var(--accent-soft); }
    .button-primary:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 85%, #000); border-color: color-mix(in srgb, var(--accent) 85%, #000); }
}
.button:disabled { background: var(--surface); border-color: var(--border); color: var(--muted); cursor: default; }
/* The wait for the circuit (kvatr #102; docs/product.md »The first click«): UntilLive's fieldset around the page has no box of its own —
   the reset for an engine that would draw one anyway, a fieldset's min-content widening a phone's page to its widest table —; a .button
   under it takes the disabled look above, every control the plain cursor and a field its own look (a native part takes the engine's
   disabled drawing), the signature pad's canvas no crosshair. A circuit that never comes is said by the layout's error strip after ten
   seconds: hidden from the start, as display cannot be animated from none, and gone once the fieldset enables; on the screen alone, as
   its specificity would beat the print sheet's display: none; and never over blazor.web.js's own strip, which it shows at once with an
   inline display when a connection fails after its negotiate (:not([style])). */
.until-live { display: contents; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.until-live:disabled :is(button, input, select, textarea) { cursor: default; opacity: 1; }
.until-live:disabled canvas { cursor: default; }
@media screen {
    body:has(.until-live:disabled) #blazor-error-ui:not([style]) { display: block; visibility: hidden; animation: until-live-stuck 0s 10s forwards; }
}
@keyframes until-live-stuck { to { visibility: visible; } }
.head-action { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem 0.75rem; }

/* The tiles (§3): summary figures — a label and its figure, never a control — in a row that wraps, only where the figures are the point
   (Billing, Balance, Numbers); a lone tile capped, not stretched across the row. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0 1rem; padding: 0; }
.tiles:has(> .tile:only-child) { grid-template-columns: minmax(14rem, 22rem); }
.tile { margin: 0; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tile dt { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.tile dd { margin: 0.15rem 0 0; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .tile-note { font-size: 0.85rem; font-weight: 400; color: var(--muted); }

/* Home (§2): its head is the desk's .desk-head (the desk's region), the title with the faces' control; under it the shared top and the cards in
   one grid, two columns from a window of 64rem — the desk's two columns' width —, a card a cell in its order, a line that is no card across
   both; one column under it. */
@media (min-width: 64rem) {
    .home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
    .home-grid > * { margin: 0; }
    .home-grid > :not(.card) { grid-column: 1 / -1; }
}

/* A switch (§3): the profile's — its word and its answers, plain posts on a static page — in one line that wraps under the word on a narrow
   screen; a refusal keeps its place right before the answers, so with one showing the line wraps: the word, the refusal, the answers. News by
   mail's form takes part in the line (display: contents) and still posts. The interactive switches are a label.check already. */
.switch-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 0.5rem 0 0.25rem; }
.switch-line > p { margin: 0; }
.switch-line > form { display: contents; }
.switch-line .form-error { flex: 1 1 100%; }
.switch-line .chips { margin: 0; }

/* The width (§3): every page 72rem (.app-main, in the sheet's head); on a wide screen 2rem/2.5rem round it, a form of fields at 24rem and
   one holding a textarea or the signature pad at 46rem — :where has no specificity, so a form with a width of its own keeps it —, the
   signed-out pages' forms at their page's width. The type there (§3) on lane 1's 93.75% root, a rem 15px: h2 keeps its 1.3rem and gains
   600; the bare fields are 16px in px, never under the 16px below which iOS Safari zooms into a field (a large iPhone on its side is wider
   than 900px), :root lifting them over the element rules later in the sheet. A field a class sizes for a row or a line (.list, .task-actions,
   .add-product, .kiosk-catering, .report-ask, .community-search, .news-slot, .news-louder-form inputs, .community-me and .news-filter selects, a template's
   .template-body) is max(its size, 16px) in its own rule, on every screen (kvatr #98's cleanup; LookRulesTests sweeps them). */
@media (min-width: 900px) {
    .app-main { padding: 2rem 2.5rem 3rem; }
    :where(form.stack) { max-width: 24rem; }
    :where(form.stack:has(textarea, canvas)) { max-width: 46rem; }
    .sign-up form.stack, .qr-page form.stack { max-width: none; }
    h2 { font-weight: 600; }
    :root :is(input, select, textarea) { font-size: 16px; }
    .button { padding: 0.5rem 1rem; }
    .stack > .button { align-self: flex-start; }
    /* The sticker's big buttons at their form's width, as on a phone: »It isn't working« as »Buy«, its shop's. */
    .stack > .button-big { align-self: stretch; }
}
/* What reads as running text keeps its measure on the screen (a print keeps the page's width): a receipt, an invoice, a post's words, a
   task's text, a task's history where it is a plain list (Reception's, a supplier's), the signature pad outside a form; a conversation
   (.thread.chat: the desk's room, Messages, the talk under a task, a question or a post) keeps its own. */
@media screen {
    .app-main :is(.news-text, .task-text, .thread:not(.chat), .signature-pad), article.receipt, article.invoice { max-width: 46rem; }
}
/* The signed-out pages (signing in and up, the sticker's, the pay page, the answer after a fix) keep their widths, centred in the column. */
.app-main :is(.sign-in, .sign-up, .qr-page) { margin-inline: auto; }
/* The terms and the DPA signed out (the plain header's page) centred as the other signed-out pages; signed in they stand with the running text. */
.app-header + .app-main .legal { margin-inline: auto; }

/* ---- end of kvatr #98 lane 3 ---- */

/* ---- kvatr #98 §3: the tables (docs/product.md »The menu«) ---- */

/* The box (§3): every screen table — the invoice's lines, a print sheet, aside — and the places' tree stand alone in it: white, a thin border,
   the corners. It scrolls sideways where its table is wider than the column, so a phone's page never does; two boxes one after the other stand
   Numbers' 1.5rem apart; the table fills it, its own margin none.
   The scroll hint (§3's »later«): a soft shadow inside an edge while the table runs on past it, gone once the box is scrolled to that edge — four
   layers on the box's ground, no script. On top, two covers in the ground that scroll with the table (local), at its start and at its end; under
   them, two shadows held at the box's edges (scroll). A cover hides its edge's shadow while the table's end stands there and goes with it as the
   table scrolls, so a box that fits shows none. A cover is 1rem, solid for 0.75rem, and the shadow ends at 0.75rem: none of it through the
   cover's fade at rest, and the shadow whole once 15px of the table are out of sight (14px at 1440, 1rem 15px there), so a row's end just past
   the edge shows it too. Each cover a pixel past its end, as insurance: with 2.5rem covers, at a fractional x, one fell half a pixel short and
   left a hairline of the shadow by the border; with these it measures the same at 0 and 100%. The two physical edges alike, so right-to-left
   needs nothing of its own. The shadow's colour is the palette's --hint-edge, deeper in the dark theme so it reads on the dark ground. The head's
   ground, a record's tint and a cell's own ground paint over it. Longhands only: a background shorthand here would set the layers back. */
.table-box {
    margin: 0.5rem 0; overflow-x: auto; background-color: var(--surface);
    background-image: linear-gradient(to right, var(--surface) 0.75rem, transparent 1rem), linear-gradient(to left, var(--surface) 0.75rem, transparent 1rem),
        linear-gradient(to right, var(--hint-edge), transparent 0.75rem), linear-gradient(to left, var(--hint-edge), transparent 0.75rem);
    background-position: -1px 0, calc(100% + 1px) 0, 0 0, 100% 0; background-size: 1rem 100%; background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll; border: 1px solid var(--border); border-radius: var(--radius);
}
/* The scroll hint drawn by the scroll itself (kvatr #109), where the browser can — Chrome 115+, Safari 26+; Firefox and an older Safari
   keep the covers above —: two registered colours, the shadows at the box's two edges, set by scroll-driven animations on the box's own
   inline scroll, no cover: the start's comes in over the first 15px of scroll and then holds on a range that ends past the scroll's end,
   the end's goes over 15px ending a pixel before the scroll's end — the browser stops a fractional scroll at a whole pixel short of it,
   and a range to 100% left the end's shadow a level or two at that end. A box that fits has no scroll timeline, so it draws no shadow:
   no device pixel of one beside its border at a fractional position, where the covers' clip stopped half a pixel short (docs/product.md
   »Open after lane 3«). The start's hold never finishes, by design: a finished animation keeps its hold time even when its timeline goes
   inactive (Web Animations §4.4.15, §4.5.1), and a box scrolled on a phone turned to fit kept its full start shadow. Right to left the
   start is the right edge. On paper the print rule's shorthand takes the layers away. */
@property --hint-start { syntax: '<color>'; inherits: false; initial-value: transparent; }
@property --hint-end { syntax: '<color>'; inherits: false; initial-value: transparent; }
@supports (animation-timeline: scroll()) {
    .table-box {
        background-image: linear-gradient(to right, var(--hint-start), transparent 0.75rem), linear-gradient(to left, var(--hint-end), transparent 0.75rem);
        background-position: 0 0, 100% 0; background-attachment: scroll, scroll;
        animation: table-hint-start linear none, table-hint-start-on linear none, table-hint-end linear both;
        animation-timeline: scroll(self inline), scroll(self inline), scroll(self inline);
        animation-range: 0px 15px, 15px calc(100% + 1px), calc(100% - 16px) calc(100% - 1px);
    }
    .table-box:dir(rtl) { background-image: linear-gradient(to right, var(--hint-end), transparent 0.75rem), linear-gradient(to left, var(--hint-start), transparent 0.75rem); }
}
@keyframes table-hint-start { from { --hint-start: transparent; } to { --hint-start: var(--hint-edge); } }
@keyframes table-hint-start-on { from, to { --hint-start: var(--hint-edge); } }
@keyframes table-hint-end { from { --hint-end: var(--hint-edge); } to { --hint-end: transparent; } }
.table-box + .table-box { margin-top: 1.5rem; }
.table-box > table { width: 100%; margin: 0; }
/* The head: a muted uppercase word on --surface-2, as a place's kind; a head that holds a name keeps its case and spacing (Numbers' company
   columns: uppercased, a Turkish reader's »Linie Fiskeri« would read »LİNİE FİSKERİ«). No table is its head alone: one that can be empty
   draws its line under it (kvatr #98, the empty table, below), so the head keeps its rule. */
.table-box thead th { background: var(--surface-2); color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: bottom; }
.table-box thead th.head-name { text-transform: none; letter-spacing: normal; }
/* A table's own min-width only where the box pushed a cell of it past three lines on a phone (the look at 375 in English, German, Polish
   and Arabic against main): Numbers' window table, its row labels — the narrowest width at which none runs past three, its box scrolling
   instead. A cell past three lines on main too is left as main wraps it. */
.table-box > table.numbers-window { min-width: 26rem; }
/* The rules, each table's own: a row's first and last cell 0.75rem from the box's edge, as the tree's rows; none under the last row, the box's
   border closing it; a row and its answer's line in a full-width row right under it read as one (#95, answers-in-sight). */
.table-box :is(th, td):first-child { padding-inline-start: 0.75rem; }
.table-box :is(th, td):last-child { padding-inline-end: 0.75rem; }
/* On a phone the outer cells 0.5rem off the edge: the pixels the box's border and edge take back for the table, so fewer boxes scroll by a
   sliver where main's table fitted the column. */
@media (max-width: 600px) {
    .table-box :is(th, td):first-child { padding-inline-start: 0.5rem; }
    .table-box :is(th, td):last-child { padding-inline-end: 0.5rem; }
}
.table-box tbody:last-child > tr:last-child > * { border-bottom: 0; }
.table-box tr:has(+ :is(.row-note, .row-form, .row-answer)) > td { border-bottom: none; }
.table-box tr.row-answer > td { padding-block-start: 0; }
/* The record under the pointer on --surface-2 — a row with its note, its question or form and its line, as the tree's item with its forms —,
   a row of a table without records alike, where a pointer hovers: on a touch screen a tap would leave the tint standing. The ground is the
   record's and the row's, so a cell with its own (a receipt's signature on its white paper) keeps it. Never Numbers' section headings, nor
   an empty table's line: no row to act on (kvatr #98, the empty table). */
@media (hover: hover) {
    .tree li:hover, .table-box tbody.record:hover, .table-box tbody:not(.record) > tr:not(.section, .table-empty):hover { background: var(--surface-2); }
}
/* On paper the table shown as wide as it is, never a cut scroller: one as wide as the paper prints whole, on the box's ground plain — no scroll
   hint, the shorthand setting its layers back. */
@media print {
    .table-box { overflow: visible; background: var(--surface); }
}

/* The cell (§3): a row's actions in its last cell, td.actions, inside lane 3's span.row-actions — wrapping between its words, and a word of
   several onto further lines as the cell narrows, each of its words whole and its lines at the cell's end (a button centres its own unless
   told): the cell no wider than its longest word, so on a phone the row grows taller and its actions stay in view; muted, never hidden and never faded, so a touch screen and a keyboard always reach them, until the record is under the pointer or
   holds the focus, and lit where nothing can hover; the destructive word last in --danger; a word underlined under its own pointer and
   focus. What stands in the cell beside its words — K2's question, its form and its lines (/kvatr's balances) — reads from its start. The
   lit .delete wins by a class more; the touch rule over the muted words is the one tie decided by its place, as lane 3's was. */
.table-box td.actions { text-align: end; }
.table-box td.actions > :not(.row-actions) { text-align: start; }
.row-actions { margin-inline-start: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 0.75rem; font-size: 0.9rem; }
/* A list's row in its flow (kvatr #483 item 1, lane BR): Blazor drops the whitespace beside an @if, and a row's words ran into its acts —
   »… · GLSPhoto of the labelHand over«, »CancelCancel this and the rest«. The acts stand in the span, apart from each other by its gap, and the
   span 0.5rem after the row's words, as .meta does; in the tree's flex row its auto margin holds it at the row's end. */
:is(li, p):not(.tree > li) > span.row-actions:not(:first-child) { margin-inline-start: 0.5rem; }
.table-box .row-actions :is(.link-button, a) { color: var(--muted); text-decoration: none; text-align: inherit; white-space: normal; }
.table-box .row-actions :is(.link-button, a):is(:hover, :focus-visible) { text-decoration: underline; }
:is(.tree li, .table-box tbody.record):is(:hover, :focus-within) .row-actions :is(.link-button, a) { color: var(--accent); }
:is(.tree li, .table-box tbody.record):is(:hover, :focus-within) .row-actions .link-button.delete { color: var(--danger); }
@media (hover: none) {
    .table-box .row-actions :is(.link-button, a) { color: var(--accent); }
    .table-box .row-actions .link-button.delete { color: var(--danger); }
}
/* A row's full rows, each one cell over every column, under it in its record: its note (a sentence about the row, muted), its question or
   its form (what its cell opened, the question's »Yes, …« level with its words), its line (#95). The row form's padding wins over the
   outer cells' by a type selector more (tr.row-form, 0,2,2 against 0,2,1), never by its place. */
.table-box tr.row-note > td { padding-block-start: 0; color: var(--muted); font-size: 0.9rem; }
.table-box tr.row-form > td { padding: 0.75rem 1rem 1rem; }
.table-box .row-question { margin: 0; }
/* An empty table's one line (kvatr #98; docs/product.md »The empty table«; Components/TableEmpty.razor): a row in a body of its own under the
   head, »Nothing yet.«, muted at a note's size, its paragraph without a margin so its row is as tall as a table's row; its content held in
   view and capped at the box as a note's (below), so it never makes its table wider. */
.table-box tr.table-empty > td { color: var(--muted); font-size: 0.9rem; }
.table-box tr.table-empty > td > p { margin: 0; }
/* A full row's content stays in view while its box scrolls (group 2's open point 2): the note's, the question's or form's and the line's
   content — and an empty table's line's (kvatr #98) — held at its own cell's padding from the box's visible start — a question opened
   from a word at a wide row's far end stands where the reader is — and never wider than the box less that padding on both sides. The
   width is the page's column's: .app-main a container of its inline size (its own rule, in the sheet's head), and --box-inside the
   inside of a box in it — 100cqw, the column, less the box's 2px border, as a box fills the column; in a card (a kiosk's products) less
   the card's 1.25rem padding and 1px border on both sides too; MoneyMovements' box in /kvatr's row form is capped as the form's other
   content is. The column is the sheet's one size container, never the box nor anything else inside UntilLive's fieldset: in Chrome 156
   such a container loses its content's layout — the table 0×0 in a 2px box — when one render removes a node inside it and inserts one
   into the fieldset, as a list's action and its answer under the list do (box-collapse). A row form's form keeps its 24rem under the
   cap; on a phone the note's and the line's padding is the outer cells' 0.5rem. */
.app-main .card { --box-inside: calc(100cqw - 2.5rem - 4px); }
.table-box :is(tr.row-note, tr.row-answer, tr.table-empty) > td > * { position: sticky; inset-inline-start: 0.75rem; max-width: calc(var(--box-inside) - 1.5rem); }
.table-box tr.row-form > td > * { position: sticky; inset-inline-start: 1rem; max-width: calc(var(--box-inside) - 2rem); }
.table-box tr.row-form > td > .inline-form { max-width: min(24rem, calc(var(--box-inside) - 2rem)); }
@media (max-width: 600px) {
    .table-box :is(tr.row-note, tr.row-answer, tr.table-empty) > td > * { inset-inline-start: 0.5rem; max-width: calc(var(--box-inside) - 1rem); }
}
/* A join request's email breaks anywhere (group 2's open point 3): an address is one word but at its hyphens, and at its whole width it
   pushed »Approve · Refuse« out of view on a phone. */
.table-box td.join-email { overflow-wrap: anywhere; }
/* The companies at a place's places (kvatr #115): »0 people« stands alone in its cell, at the cell's start as a name would — no gap before
   it, as .meta keeps after a name on a line. */
.table-box .place-companies .meta { margin-inline-start: 0; }
/* A date, an amount or a phone number in a table stays whole (kvatr #110's open point, Ida's decisions of 2026-11-03 and 2026-11-04): on a
   phone a day broke at its hyphens over three lines (»25-« »OCT-« »2026«) where the box wrapped its cells instead of scrolling, a day and time
   and an Arabic day at their spaces, »DKK 12,345.50« and »20 00 00 02« at their spaces. A cell draws each in its element through
   Components/Whole.cs — a date in <time datetime>, an amount in <data value>, a phone number in <data value="tel:…"> —, kept on one line
   here, on paper too: its column is as wide as its longest, and where the table is then wider than a phone's box the box scrolls, its hint
   showing it. A date or an amount inside a sentence wraps with the sentence's words. */
.table-box :is(time, data) { white-space: nowrap; }
/* /kvatr's rate line: its »Accept« a word in the accent, as the prices' cell lights it. */
.prices-rate .link-button { color: var(--accent); margin-inline-start: 0.5rem; }

/* ---- end of kvatr #98 §3's tables ---- */
.inline-form { margin: 0.5rem 0; max-width: 24rem; }

.list { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
.list th, .list td { text-align: start; padding-block: 0.45rem; padding-inline: 0 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.list th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.list .link-button { color: var(--accent); }
/* /kvatr's »Test SMS« (KvatrPage.razor; docs/global.md G42): a kept text as it would have been sent, its line breaks kept, a long link broken. */
.test-sms-text { white-space: pre-wrap; overflow-wrap: anywhere; }

select { font: inherit; font-size: 1rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.check { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; }
.plain li a + a, .plain li > a:not(:first-child) { margin-inline-start: 0.75rem; }

/* /kvatr's community section (Components/Pages/KvatrCommunity.razor): the bans and the reports as plain rows, a row's actions in a
   line that wraps (a gap, not the whitespace Blazor drops beside an @if); a removed line, a picture and a solved line read as lines,
   never as someone's words; the words as written, their line breaks kept. */
.kvatr-bans, .kvatr-reports { list-style: none; margin: 0.5rem 0; padding: 0; }
.kvatr-bans li, .kvatr-reports li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.kvatr-bans li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.kvatr-bans .meta { margin-inline-start: 0; }
.ban-reason { flex: 1 1 100%; overflow-wrap: anywhere; }
.report-words { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-line { color: var(--muted); font-style: italic; }
.report-meta { display: flex; flex-wrap: wrap; gap: 0 0.75rem; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.report-actions, .report-ask, .mop-up-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0.35rem 0 0; }
.lift-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }
.report-ask input:not([type=checkbox]) { font-size: max(1rem, 16px); padding: 0.4rem 0.5rem; }
.kvatr-bans .link-button, .report-actions .link-button, .report-actions a, .report-ask .link-button, .mop-up-ask .link-button, .kvatr-more .link-button { color: var(--accent); }
.kvatr-community-mop-up .stack { max-width: 24rem; }

/* /kvatr's »Now« (Components/Pages/KvatrNow.razor; docs/now.md, lane N1): the tiles in Billing's grid, each one's month under its label, its
   change's chip and its spark line; what waits a list of counters, a zero muted; the health a line per term and its words; the map's land and
   its dots. A change's colour only repeats its sign and arrow (rule 5) — up --up, down --danger, flat --muted, each 4.5:1 or more on the tile
   in both themes —, and the spark line's last segment wears its chip's class, so the tail and the chip say one fact. No style attribute: the
   two SVGs take their colours from here. */
.kvatr-now > section { margin-top: 1.5rem; }
.now-when { display: block; font-size: 0.8rem; }
.now-chip { font-weight: 600; }
.now-up { color: var(--up); }
.now-down { color: var(--danger); }
.now-same { color: var(--muted); }
.tile dd.now-spark-box { margin: 0.5rem 0 0.25rem; line-height: 0; }
.now-spark { display: block; width: 100%; height: 2rem; overflow: visible; }
.now-spark-line { stroke: var(--muted); stroke-width: 2; }
.now-spark-last { stroke: currentColor; stroke-width: 2.5; }
.kvatr-waits { list-style: none; max-width: 40rem; margin: 0.5rem 0; padding: 0; }
.kvatr-waits li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.now-number { font-weight: 600; font-variant-numeric: tabular-nums; }
.now-none, .now-none a { color: var(--muted); }
.now-none .now-number { font-weight: 400; }
.kvatr-health { max-width: 40rem; margin: 0.5rem 0; }
.kvatr-health > div { padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.kvatr-health dt { font-weight: 600; }
.kvatr-health dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.now-lanes, .now-codes { display: flex; flex-wrap: wrap; gap: 0.15rem 1.25rem; list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.now-late { color: var(--danger); font-weight: 600; }
.house-map { display: block; width: 100%; height: auto; max-height: 28rem; margin: 0.5rem 0 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
/* The land a veil of --muted on the sea's --surface-2, a dot --accent: 3.3:1 or more against the land and 5:1 against the sea, in both themes. */
.house-map path { fill: var(--muted); fill-opacity: 0.3; }
.house-map-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---- Fault reporting ---- */

.optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
textarea { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
input[type="file"] { font: inherit; }

.qr-page { max-width: 28rem; }
.qr-page .where { color: var(--muted); margin: 0; }
/* A guest's parking permit (docs/parking.md »The permit's page«): the plate large, so a swapped digit shows at once. */
.permit-page .permit-plate { font-size: 2.5rem; font-weight: 600; letter-spacing: 0.05em; margin: 0; }
.permit-page .permit-country { margin: 0 0 0.75rem; color: var(--muted); }
.button-big { font-size: 1.25rem; padding: 1rem 1.25rem; }
/* The call after hours on the sticker's page (docs/mobile-api.md §29, »Locked out«): under the page's own content, the emergency line first. */
.qr-call { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.qr-call-emergency { color: var(--muted); }
.qr-call-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* A refused call's line on a row of its own right before the buttons (#95), a paragraph's space under it, as switch-line's refusal (kvatr #109). */
.qr-call-buttons .form-error { flex: 1 1 100%; margin-bottom: 0.5rem; }
/* The call after hours on Home and the desk (docs/mobile-api.md §29 »The web«, »Home's call«; Components/HomeCall.razor): the emergency line first, as on
   the sticker's page; the two buttons in a row; in a house of several sites a row a site, its name before its own pair, a refused call's line on a row of
   its own between them (#95). The first press asks in the pair's place: the pressed button's own word, then »Send« and »Cancel«. On the desk a plain
   titled part at the page's top, as its reports are; a house whose read failed says its one line in the part's place. */
.home-call-emergency { color: var(--muted); }
.home-call-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.home-call-sites > li > [role="group"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.home-call-site { flex: 1 1 8rem; font-weight: 600; }
.home-call-sites .form-error { flex: 1 1 100%; margin: 0; }
.home-call-asked { font-weight: 600; margin-inline-end: 0.25rem; }
.home-call-at { margin: 0 0 0.25rem; }
.home-call-failed { margin: 0; }
.desk-call { margin: 0 0 1.25rem; }
.desk-call h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }

/* The QR page's question (docs/satisfaction.md): four faces in a row, each with its word; the chosen one marked by more than its colour. */
.rating { margin: 0 0 1rem; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.75rem 0; }
.face { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.25rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.face.chosen { border: 2px solid var(--accent); font-weight: 600; }
.face-mark { font-size: 2rem; line-height: 1; }
.face-word { font-size: 0.85rem; text-align: center; }
.rating-line { margin: 0.5rem 0; }
/* The rating line is a stack: its button at the stack's gap under the comment, not the form's 0.5rem below it. */
.rating-line .button { align-self: flex-start; margin-top: 0; }
.about-data { margin: 1rem 0; color: var(--muted); font-size: 0.9rem; }
.about-data summary { cursor: pointer; }
/* The answer after a fixed fault (docs/satisfaction.md phase 2): two of the faces above, »Yes« 👍 and »No« 👎, and the thumb given. */
.faces.yes-no { grid-template-columns: repeat(2, 1fr); max-width: 16rem; }
.answer-given { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 0.5rem 0; }
.answer-mark { font-size: 1.5rem; line-height: 1; }

.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.task { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.task.open { border-inline-start-color: var(--accent); }
.task.in-progress { border-inline-start-color: var(--muted); }
.task.done { opacity: 0.75; }
.task-head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.task .status { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.task-text { margin: 0.4rem 0; }
.task-photos { display: flex; gap: 0.5rem; margin: 0.4rem 0; }
.thumb { width: 6rem; height: 6rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.task-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.task-actions input { flex: 1 1 10rem; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; }
/* Operations' list (kvatr #152): the search under the bar of tabs, a form's width on a wide screen and the page's on a narrow one. */
.tasks-search { max-width: 24rem; margin: -0.5rem 0 1rem; }
.tasks-search input { width: 100%; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; }

.sticker-language { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.qr-sticker { margin: 0; padding: 1rem; border: 1px dashed var(--border); border-radius: var(--radius); background: #FFFFFF; color: #16232E; text-align: center; break-inside: avoid; }
.qr-sticker img { width: 100%; max-width: 10rem; height: auto; }
.qr-sticker figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.qr-sticker .meta { color: #4A5866; margin: 0; }

@media print {
    .app-header, .topbar, .sidebar, .scrim, .no-print, #blazor-error-ui { display: none; }
    body { background: #FFFFFF; }
    .app-main { max-width: none; padding: 0; }
}

/* ---- Kiosk ---- */

.shop { display: flex; flex-direction: column; gap: 0.5rem; }
.product { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.product label { font-weight: 600; display: flex; flex-direction: column; }
.product .price { font-weight: 400; color: var(--muted); }
.product input { width: 5rem; text-align: center; }
.purchase-receipt { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; }
.purchase-receipt h2 { margin-top: 0; }
.receipt h2 { margin-top: 0; }
.add-product, .kiosk-catering { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.add-product input, .kiosk-catering input[type=number] { flex: 1 1 8rem; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; }
.list input { font-size: max(1rem, 16px); padding: 0.4rem 0.5rem; width: 100%; }
.list tr.inactive td { color: var(--muted); }
.month-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.month-nav .link-button { color: var(--accent); }
/* A pager's step that cannot be taken (kvatr #483 item 2, lane BR): »← Previous« on the room's current week was drawn as »Next →« was, in its
   colour with the pointer. Disabled, it looks it, as a disabled button does: muted, not underlined, the plain cursor. The four pagers whose
   step can be disabled carry the class — the room's week, a company's usage, the house's money movements and its lists of money; after
   the month line's accent, which it outweighs by its place. */
.pager-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.25rem; }

/* ---- A task's page ---- */

.where { color: var(--muted); margin: 0; }
.status-line { margin: 0 0 0.75rem; }
.status-line .status { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid var(--border); }
.status-line .status.open { border-color: var(--accent); color: var(--accent); }
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.thread li { display: flex; flex-direction: column; padding: 0.5rem 0.75rem; border-radius: var(--radius); }
.thread .message { background: var(--surface); border: 1px solid var(--border); }
.thread .event { color: var(--muted); font-size: 0.9rem; padding: 0.15rem 0.75rem; }
.thread .meta { margin-inline-start: 0; }
.task-head a { color: var(--text); }

/* ---- The assistant's conversation and card (the desk, Messages, DeskAssistant.razor, AssistantCard.razor; the web demo's page that first drew them is gone, kvatr #323) ---- */

.chat { max-width: 44rem; }
.chat .message { align-self: flex-start; max-width: 85%; animation: chat-rise 0.2s ease-out; }
.chat .message.mine { align-self: flex-end; background: var(--bg); }
/* The answer's place while it comes (DeskAssistant.razor): Kvatr's bubble with three dots pulsing in turn, the words beside them. */
.chat .thinking { color: var(--muted); }
.thinking-line { display: inline-flex; align-items: center; gap: 0.5rem; }
.dots { display: inline-flex; gap: 0.25rem; }
.dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; opacity: 0.35; animation: chat-dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-0.15rem); }
}
@keyframes chat-rise {
    from { opacity: 0; transform: translateY(0.3rem); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .chat .message, .dots i { animation: none; }
    .dots i { opacity: 0.7; }
}
.quote-card { max-width: 44rem; }
.quotes li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.quote-line { display: flex; justify-content: space-between; gap: 1rem; }
.quote-price { white-space: nowrap; font-weight: 600; }
.quote-note { color: var(--muted); }
.quote-warning { color: var(--danger); }
.quote-total { text-align: end; margin: 0.75rem 0; }
.quote-actions { display: flex; gap: 0.75rem; margin: 0; }

/* ---- Invoices ---- */

.invoice { background: #FFFFFF; color: #16232E; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.invoice a { color: #A9481A; }
.invoice .small, .invoice .meta { color: #4A5866; }
.invoice .list th, .invoice .list td { border-bottom-color: #DEDBD3; }
.invoice .list th { color: #4A5866; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.invoice h1 { margin-bottom: 0.25rem; }
.party { font-style: normal; line-height: 1.4; }
.buyer { margin: 1.25rem 0; }
.facts, .totals { display: grid; grid-template-columns: auto auto; gap: 0.15rem 1rem; margin: 0.5rem 0; }
.facts dt, .totals dt { color: #4A5866; }
.facts dd, .totals dd { margin: 0; }
.totals { justify-content: end; text-align: end; margin-top: 1rem; }
.invoice-lines td:nth-child(n+2), .invoice-lines th:nth-child(n+2) { text-align: end; }
.invoice-lines td:nth-child(n+2) { white-space: nowrap; }
.pay { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid #DEDBD3; }
/* The pay page as the check (docs/payments.md, »The invoice's QR code«): the PDF's 64-character fingerprint breaks where it must on a phone. */
.pay-page .facts dd code.fingerprint { overflow-wrap: anywhere; font-size: 0.85em; }
/* Every page's fingerprint breaks where it must on a phone (kvatr #483 item 3, lane BR): a signed receipt's »Fingerprint (SHA-256)« ran off the
   page's edge on an iPhone, its 64 characters one word, and the page scrolled sideways; the contract's PDF's under it, outside the article's own
   rule, too. */
code.fingerprint { overflow-wrap: anywhere; }
.pay-page .check { margin: 0.75rem 0 0; }
.reverse-charge { text-align: end; margin-top: 0.5rem; }
.draft-mark { display: inline-block; padding: 0.2rem 0.6rem; border: 2px solid #A12C1E; color: #A12C1E; border-radius: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

@media print {
    .invoice { border: 0; padding: 0; }
}

/* ---- People ---- */

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-inline-end: 0.5rem; flex: none; }
.avatar.initials { background: var(--border); color: var(--text); font-size: 0.8rem; font-weight: 600; }
.avatar.large { width: 7.5rem; height: 7.5rem; margin-inline-end: 0; font-size: 2.25rem; }
.profile { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }

/* ---- Receipts ---- */

.signature-pad { display: block; width: 100%; aspect-ratio: 5 / 2; touch-action: none; cursor: crosshair; background: #FFFFFF; color: #16232E; border: 1px dashed var(--muted); border-radius: var(--radius); }
.signature { display: block; width: 100%; height: auto; }
.signature-cell { width: 8rem; background: #FFFFFF; color: #16232E; }
.signature-box { max-width: 30rem; margin-top: 1.5rem; border-bottom: 1px solid #16232E; }
.receipt { background: #FFFFFF; color: #16232E; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.receipt .facts dt { color: #4A5866; }
@media print {
    .receipt { border: 0; padding: 0; }
}

/* ---- The terms and the DPA (Components/Pages/Legal) ---- */

.legal { max-width: 46rem; line-height: 1.55; }
.legal h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.legal h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.legal p { margin: 0 0 0.7rem; }
.legal ol, .legal ul { margin: 0 0 0.7rem; padding-inline-start: 1.6rem; }
.legal li { margin: 0.2rem 0; }
.legal li > p { margin: 0 0 0.5rem; }
.legal-version, .legal-language { color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 0 0.9rem; }
.table-scroll table { border-collapse: collapse; min-width: 40rem; font-size: 0.9rem; }
.table-scroll th, .table-scroll td { border: 1px solid var(--border); padding: 0.4rem 0.5rem; text-align: start; vertical-align: top; }
.legal-versions { margin-top: 2rem; }
.legal-versions h2 { font-size: 1rem; }

@media print {
    .legal { max-width: none; font-size: 10pt; }
    .table-scroll { overflow: visible; }
    .table-scroll table { min-width: 0; width: 100%; }
    .legal h2 { break-after: avoid; }
}

/* ---- Contracts ---- */

.contract { max-width: 46rem; line-height: 1.55; }
.contract h2 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.contract h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.contract p { margin: 0 0 0.7rem; }
.contract code { overflow-wrap: anywhere; }
.parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem; }
.party .signature-box { margin-top: 0.25rem; }
.party p { margin: 0.2rem 0; }
.template-body { min-height: 22rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: max(0.9rem, 16px); }
.party-form { border-inline-start: 3px solid var(--border); padding-inline-start: 0.75rem; }

/* ---- The menu, as Claude's console has it ---- */

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
/* The shell fills the window: a column on a narrow screen — the top bar, then the page's column taking the rest —, a grid beside the menu on a wide one. */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
/* The page's column (MainLayout; kvatr #379, lane AN-B): main, then the window's foot, in a column that fills the window's height beside the menu, so
   the foot stands at the window's bottom on a short page. main's own box is as it was. The visitor's column holds the header too, and fills the window
   itself. No overflow on it or on the shell: the window's foot is sticky, and an overflow on an ancestor would hold it to that box. */
.app-column { display: flex; flex-direction: column; flex: 1 0 auto; }
.app-column:has(> .app-header) { min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
/* The logo in a .brand link (Components/Logo.razor), in brand/kvatr-logo.svg's proportions: the mark's box is
   64 units to the word's 54.6, and the word starts 14.7 units after the mark. */
.brand { display: inline-flex; align-items: center; gap: 0.27em; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.brand-mark { width: auto; height: 1.17em; flex: none; }
.sidebar { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0.6rem; background: var(--surface); border-inline-end: 1px solid var(--border); font-size: 0.875rem; }
.sidebar-head { display: flex; align-items: center; gap: 0.35rem; padding-block: 0.25rem 0.5rem; padding-inline: 0 0.1rem; }
.sidebar-head .brand { flex: 1; padding-inline-start: 0.6rem; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 8px; color: inherit; cursor: pointer; }
.icon-button:hover { background: var(--surface-2); }
.topbar .icon-button:hover { background: var(--surface-2); }
.icon { width: 1.15rem; height: 1.15rem; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.45rem 0.6rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .icon { color: var(--muted); }
.nav-item.active .icon { color: var(--accent); }
.nav-item.sub { padding-inline-start: 2.4rem; color: var(--muted); }
.nav-item.sub.active { color: var(--accent); }
.account { position: relative; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.account summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 8px; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { background: var(--surface-2); }
.account summary .avatar { margin-inline-end: 0; }
.account .who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.account-menu { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 100%; padding: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.account-menu form { margin: 0; }

/* The language menu (docs/languages.md, phase 3): a plain form of buttons, in the menu bar and on the profile. */
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 8px; cursor: pointer; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-choices { display: flex; flex-direction: column; max-height: min(70vh, 32rem); overflow-y: auto; margin: 0.25rem 0 0; padding: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.language-choices button { text-align: start; padding: 0.4rem 0.6rem; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.language-choices button:hover { background: var(--bg); }
.language-choices button.chosen { font-weight: 600; }
.language-choices button.chosen::before { content: "✓ "; }
.app-header .language-menu { margin-inline-start: auto; color: var(--cream); }
.app-header .language-choices { position: absolute; inset-inline-end: 0; z-index: 30; min-width: 12rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.scrim { display: none; }

/* A narrow screen: the menu slides in over the page from the menu button. */
@media (max-width: 899px) {
    .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 20; width: 17rem; max-width: 85vw; transform: translateX(-100%); transition: transform 0.2s ease; }
    /* Written right to left, the menu slides in from the right (#91). */
    [dir="rtl"] .sidebar { transform: translateX(100%); }
    .nav-toggle:checked ~ .shell .sidebar { transform: none; }
    .nav-toggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgb(0 0 0 / 0.45); }
}

/* A wide screen: the menu stands on the left; folded away, the top bar with the menu button comes back. */
@media (min-width: 900px) {
    /* A step smaller than the phone's 16px (kvatr #98): every rem follows, the menu's width and the inputs too. */
    html { font-size: 93.75%; }
    .shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); align-content: start; }
    .topbar { display: none; }
    .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    /* Folded away: the top bar over the page's column, which takes the rest of the window's height (a fraction of the shell's min-height). */
    .nav-toggle:checked ~ .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .nav-toggle:checked ~ .shell .sidebar { display: none; }
    .nav-toggle:checked ~ .shell .topbar { display: flex; }
}

/* The footer line (Components/Layout/AppFooter.razor), as J4's web has it: fixed to the window's bottom beside the menu,
   under the menu and its scrim on a narrow screen, never printed (no-print); .app-main's 3rem at its foot keeps a page's
   end clear of it. No z-index: it paints over the page before it, and the error bar after it paints over it.
   translateZ(0) holds it still while iOS Safari's address bar moves (J4's iPad lesson); tabular figures keep the
   ticking seconds from shaking the line. Its height is the root's --footer-line above the inset — what its line, padding and rule make —, so the
   window's foot stands on it exactly. */
.app-footer { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; height: calc(var(--footer-line) + env(safe-area-inset-bottom, 0px)); padding: 0.15rem 1rem calc(0.15rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; line-height: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateZ(0); }
.app-footer-dot { margin: 0 0.15rem; }
@media (min-width: 900px) {
    .app-footer { inset-inline-start: 15.5rem; }
    .nav-toggle:checked ~ .shell .app-footer { inset-inline-start: 0; }
}

/* The window's foot (MainLayout; docs/announcements.md »The banner on the web«, kvatr #379 lane AN-B, Jens's word of 2026-11-15: »bottom is good«): the
   toast of a new message and Kvatr's banner, after the page in the page's column. Sticky at the window's bottom — on the footer line where there is one
   (the shell's), at the safe area's inset where there is none (the visitor's) —, so it stays in view while the page scrolls; a sticky box stays inside
   its column, so at the page's end it rests after main and covers no row, and on a short page the auto margin sets it at the window's bottom. Its
   height is what it holds, no number: empty, it takes no room. Over the page and under the menu and its scrim (20, 15); the error strip over it (40).
   The pointer goes through it but for the banners and the toast. Never printed (no-print in the markup). */
.window-foot { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 12; display: flex; flex-direction: column; margin-top: auto; pointer-events: none; }
.shell .window-foot { bottom: calc(var(--footer-line) + env(safe-area-inset-bottom, 0px)); }

/* ---- Hjælp her, urgency, nearby ---- */

.choice { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.choices legend { font-weight: 600; margin-bottom: 0.25rem; padding: 0; }
.position-line { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
.urgent { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 4px; background: #A12C1E; color: #FFFFFF; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kind-help { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 4px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.nearby { margin-bottom: 1.5rem; }
.nearby li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }

/* /sign-up (Components/Pages/SignUpPage.razor): a little wider than signing in; the mobile beside its country code. */
.sign-up { max-width: 32rem; }
/* The script shows the zone's select or its line by the hidden attribute, which a display of the class's own would override. */
.sign-up [hidden] { display: none !important; }
/* A mobile number beside its country's calling code (G24; Components/CallingCode.razor), on every form that takes one. */
.phone { display: flex; gap: 0.5rem; }
.phone select { flex: 0 1 45%; min-width: 0; }
.phone input { flex: 1 1 auto; min-width: 0; }
.sign-up .accept { align-items: flex-start; }
.sign-up .accept input { margin-top: 0.25rem; }

/* ---- The community (docs/mobile-api.md §23 »The web«): the join card and the board ---- */

.community-line { font-size: 1.1rem; font-weight: 600; margin-top: 0; }
.community-ask { margin: 0 0 1rem; }
.community-ask summary { display: inline-block; padding: 0.35rem 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.community-ask[open] summary { margin-bottom: 0.5rem; }
.community-ask .stack { max-width: 36rem; }
.community-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 0.5rem; }
.community-filter { margin: 0; }
.community-search { flex: 1 1 14rem; max-width: 22rem; margin: 0; }
.community-search input { width: 100%; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; }
.community-issues { list-style: none; margin: 0; padding: 0; }
.community-issue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.community-issue-title { flex: 1 1 100%; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.community-issue-meta { color: var(--muted); font-size: 0.9rem; }
.community-solved { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.community-solved::before { content: "✓ "; }
.community-unread { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.community-none { color: var(--muted); }
.community-more { margin: 0.75rem 0; }
.community-more .link-button, .community-me .link-button { color: var(--accent); }
.community-me { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.community-me select { font-size: max(0.9rem, 16px); padding: 0.35rem 0.5rem; }
.community-leave-ask { flex: 1 1 100%; }

/* ---- A question of the community (Components/Pages/CommunityIssuePage.razor) ---- */

.issue-asker { color: var(--muted); margin: 0 0 0.75rem; }
.status-line .status.solved { border-color: var(--accent); color: var(--accent); }
.status-line .button { margin-inline-start: 0.5rem; padding: 0.35rem 0.85rem; }
.show-earlier { margin: 0 0 0.5rem; }
.show-earlier .link-button { color: var(--accent); }
.issue-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-picture-link { align-self: flex-start; margin-top: 0.25rem; }
.issue-picture { display: block; max-width: 100%; max-height: 20rem; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.bubble-menu { align-self: flex-end; font-size: 0.9rem; }
.bubble-menu summary { cursor: pointer; list-style: none; color: var(--muted); padding: 0 0.35rem; }
.bubble-menu summary::-webkit-details-marker { display: none; }
.bubble-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; margin-top: 0.25rem; color: var(--accent); }
.bubble-actions .check { font-size: 0.9rem; color: var(--text); }
.composer { margin-top: 1rem; }

/* The profile's hidden people: a name and its »Show again« in a line. */
.hidden-people li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.hidden-people .link-button { color: var(--accent); }

/* A new house's first steps on Home: a step taken is greyed (Home.razor). */
.first-steps ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 0.4em; }
.first-steps li.done a { color: var(--muted, inherit); }

/* Printing never shows the phone-width top bar: the rules above set it after the print block near the top, so a printed page
   (the QR sheet, an invoice) at a phone's width showed »≡ Kvatr« above it (Jens's test run, 2026-10-15). */
@media print {
    .shell .topbar, .nav-toggle:checked ~ .shell .topbar { display: none; }
}

/* The desk (docs/screens.md, phase 2): Home's two faces, the house select, the strip, the chips, and the list with its days and »Now«. */
.home-faces { display: inline-flex; margin: 0 0 1rem; padding: 0.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.home-faces button { border: 0; background: none; color: var(--text); font: inherit; padding: 0.35rem 1rem; border-radius: 999px; cursor: pointer; }
.home-faces button[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
/* The desk's head (kvatr #98): the title with the two faces' control beside it, one row that wraps on a narrow screen (lane 2 names the
   pages' head; this is the desk's own until then). */
.desk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.desk-head h1 { margin: 0; }
.desk-head .home-faces { margin: 0; }
/* The tiles at equal height: each item a flex box its tile fills. */
.strip { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem; }
.strip li { display: flex; }
.strip a, .strip button { display: block; width: 100%; text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.strip .detail { display: block; color: var(--muted); font-size: 0.9rem; }
/* The shared top on the desk, compact (SharedTop's Compact; kvatr #98): »Need help?« one line under the tiles, the person's reports a plain titled list. */
.desk-help { margin: 0 0 1rem; color: var(--muted); }
.desk-reports { margin: 0 0 1.25rem; }
.desk-reports h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.strip li.zero a, .strip li.zero button { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.chips button { border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; padding: 0.25rem 0.75rem; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.desk { list-style: none; margin: 0; padding: 0; }
.desk .earlier { margin: 0.5rem 0 0; }
.desk .day { margin: 1.25rem 0 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.desk .empty { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0; }
.desk .line { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.desk .line time { color: var(--muted); font-variant-numeric: tabular-nums; }
.desk .line .where, .desk .line .text, .desk .line .names, .desk .line .fold { grid-column: 2; }
.desk .line .names { color: var(--muted); font-size: 0.9rem; }
.desk .line .text a { color: var(--text); }
.desk .now { display: flex; gap: 0.75rem; align-items: center; margin: 0.75rem 0; color: var(--accent); font-weight: 600; }
.desk .now::after { content: ""; flex: 1; border-top: 2px solid var(--accent); }
.desk details summary { cursor: pointer; }
.desk .fold ol { list-style: none; margin: 0.25rem 0 0; padding: 0; padding-inline-start: 0.5rem; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 900px) {
    .desk .line { grid-template-columns: 3.5rem 14rem 1fr; }
    .desk .line .where { grid-column: 2; }
    .desk .line .text, .desk .line .names, .desk .line .fold { grid-column: 3; }
}

/* The desk's room with Kvatr (docs/screens.md phase 4, »The layout«): after the day's plan, under the list; from a window of 64rem — the
   reception's iPad on its side — beside the desk's column as a bordered rail of 22rem from the top (kvatr #98), in the page's 72rem. The
   rail keeps the window's height — sticky, the footer line and the bands of Kvatr's banner (--bands) cleared — and the thread scrolls inside it, the composer always at its foot
   (Jens on stage, 2026-10-29: the composer had sunk under the whole history); today.js opens the thread at its end and follows a new line,
   through scrollTop, never column-reverse (WebKit's scroll anchoring is unproven). Its bubbles quiet on the rail's surface, mine in the
   accent's tint. Under 64rem the room is the plain column after the list, growing with the page. The room's system lines keep a confirm's
   lines one a row; a card fills the column; its checkbox stands beside its line. */
.desk-room { margin: 2rem 0 0; }
.desk-room .chat { max-width: none; }
.desk-room .event { white-space: pre-line; }
.desk-room .card-message { max-width: 100%; align-self: stretch; }
.desk-room .quote-card { max-width: none; margin: 0.25rem 0 0; }
.desk-room .quote-check { display: flex; gap: 0.5rem; align-items: baseline; }
.desk-room .quote-check .quote-line { flex: 1; }
.desk-room .quote-status { font-weight: 600; }
.desk-room-empty { color: var(--muted); }
.desk-room h2 { font-size: 1rem; margin: 0 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.desk-room .thread .message { background: var(--surface-2); border: 0; }
.desk-room .chat .message.mine { background: var(--accent-soft); }
.desk-room .meta { font-size: 0.75rem; color: var(--muted); }
@media (min-width: 64rem) {
    .desk-columns:has(.desk-room) { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0 2rem; align-items: start; }
    .desk-columns .desk-room { margin: 0; position: sticky; top: 1rem; max-height: calc(100vh - 3rem - var(--bands, 0rem)); display: flex; flex-direction: column; padding: 1rem 1rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .desk-columns .desk-room .thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}

/* ---- Satisfaction (Components/Pages/SatisfactionPage.razor, Admin/SatisfactionAdmin.razor; docs/satisfaction.md) ---- */

/* The weeks: eight columns in the page's 72rem, a narrow screen scrolling the table in its box (§3's tables) rather than the page; a row's
   place indented by how deep it lies under the reader's top, 1.25rem a level on the box's 0.75rem; a line under twenty answerers faded
   (rule 4), the share without sign-in under it. */
.sat-weeks { min-width: 46rem; }
/* The weeks' head on one line: an open week's column is narrow, and its »Week 44, so far« broken over four lines stood a tall band of the
   head's ground over the others' words (§3's tables, the reading of group 1). */
.sat-weeks thead th { white-space: nowrap; }
.sat-weeks th[scope=row] { font-size: 1rem; font-weight: 600; color: var(--text); }
.sat-weeks .depth-1 th[scope=row] { padding-inline-start: 2rem; }
.sat-weeks .depth-2 th[scope=row] { padding-inline-start: 3.25rem; }
.sat-weeks .depth-3 th[scope=row] { padding-inline-start: 4.5rem; }
.sat-weeks td { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* On paper the weeks wrap to the paper's width, as the legal texts' tables do: at their 46rem of unbroken cells the box's overflow, shown on
   paper, widened the printed page and shrank the whole printout to fit (§3's tables, the reading of group 1). */
@media print {
    .sat-weeks { min-width: 0; }
    .sat-weeks td, .sat-weeks thead th { white-space: normal; }
}
.sat-line, .sat-anon, .sat-few { display: block; }
.sat-line.muted, .sat-anon, .sat-few, .sat-none { color: var(--muted); }
.sat-anon, .sat-few { font-size: 0.8rem; }
/* The ▼ after an Asked line whose share fell beyond chance from the week before (phase 3): a reason to look, marked as one. */
.sat-fell { margin-inline-start: 0.3em; color: var(--danger); }

/* The comments: the face and its word, then the topic, the place and the hour; the words as written, their line breaks kept; a
   voided one struck through and marked. */
.sat-comments { list-style: none; margin: 0.5rem 0; padding: 0; }
.sat-comments > li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.sat-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0; }
.sat-comment-head .meta { margin-inline-start: 0; }
.sat-comment-words { margin: 0.25rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sat-comments .voided .sat-comment-words { color: var(--muted); text-decoration: line-through; }
.sat-voided { padding: 0.05rem 0.45rem; border-radius: 4px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
/* A 👎's line after a fixed fault (docs/satisfaction.md phase 2): named by design, marked as the reporter's own report, its task named. */
.sat-named { padding: 0.05rem 0.45rem; border-radius: 4px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.sat-task-what { color: var(--text); }
.sat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0; font-size: 0.9rem; }
.sat-actions .link-button, .sat-actions a { color: var(--accent); }
/* Phase 4's marks on a comment: »Names a person« beside the head as the 👎's mark, »Reads as a fault: “…”« beside its two buttons. */
.sat-names { padding: 0.05rem 0.45rem; border-radius: 4px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.sat-fault { color: var(--text); overflow-wrap: anywhere; }
/* The week's summary at the top of the Comments tab (phase 4): the head's counts, the themes as a plain list, what made it muted. */
.sat-summary { margin: 0.5rem 0 1.25rem; }
.sat-summary-week { margin: 0.25rem 0 0.5rem; }
.sat-summary-head { margin: 0.25rem 0; font-variant-numeric: tabular-nums; }
.sat-summary-lines { margin: 0.25rem 0; padding-inline-start: 1.25rem; }
.sat-summary-lines li { padding: 0.15rem 0; overflow-wrap: anywhere; }
.sat-void { max-width: 24rem; }
/* »Replies to the house« (phase 3): the form, then the replies as the comments are listed, how long each stands beside its place;
   one no longer shown faded. */
.sat-reply { max-width: 36rem; }
.sat-reply-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.sat-reply-list > li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.sat-reply-list .gone .sat-comment-words { color: var(--muted); }
.sat-stands { font-size: 0.8rem; color: var(--muted); }

/* »Numbers« (docs/screens.md, phase 2): the window chooser is the chips; the table says what it counts and over which window, its head the
   tables' box's (§3's tables). */
.numbers { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.numbers th, .numbers td { text-align: start; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.numbers thead th .small { display: block; font-size: 0.8rem; }
.numbers td.value, .numbers td.earlier, .numbers thead th.value, .numbers thead th.earlier { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numbers td.earlier, .numbers thead th.earlier { color: var(--muted); }
.numbers tr.section th { padding-top: 1.25rem; font-size: 1.05rem; border-bottom: 2px solid var(--border); }
.numbers tbody th { font-weight: 400; }
.numbers .muted { color: var(--muted); }

/* ---- The week's question (Components/PromptCard.razor; docs/satisfaction.md phase 3, »The cards«) ---- */

/* The QR page's faces in a card of the shared top, on the page's ground so they stand out of the card; held while an answer is on its
   way; the face given after the tap; »Skip« and the line why under the faces. */
.prompt-house { margin: -0.4rem 0 0.4rem; }
.prompt-question { font-size: 1.1rem; font-weight: 600; margin: 0.25rem 0 0; }
.prompt-card .face { background: var(--bg); }
.prompt-card .face:disabled { cursor: progress; opacity: 0.6; }
.prompt-given { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0.25rem; font-weight: 600; }
.prompt-actions { margin: 0 0 0.5rem; }
.prompt-actions .link-button { color: var(--accent); }
.prompt-why { margin: 0; }
.prompt-refused { margin: 1rem 0; }

/* ---- »The house this week« (Components/HouseWeekCard.razor; docs/satisfaction.md phase 3, »The cards«) ---- */

/* Per topic its lines under each week's label, faded under twenty answerers (rule 4); the replies as the house's own words, each with
   its place and day under it, its line breaks kept. */
.house-week-house { margin: -0.4rem 0 0.25rem; }
.house-week-topic { margin: 0.75rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.house-week-topic h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.house-week-when { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0.5rem 0 0.1rem; }
.house-week-line { margin: 0; font-variant-numeric: tabular-nums; }
.house-week-line.muted { color: var(--muted); }
.house-week-none { margin: 0; color: var(--muted); }
.house-week-replies { list-style: none; margin: 0; padding: 0; }
.house-week-replies li { padding: 0.25rem 0; }
.house-week-reply { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.house-week-replies .meta { display: block; margin-inline-start: 0; }
.house-week-who { margin: 0.75rem 0 0; }

/* ---- The profile's »My answers« and »Don't ask me« (Components/Pages/ProfilePage.razor; docs/satisfaction.md phase 3) ---- */

/* Each answer: the face and its word with the topic, where and when, the person's own line as written; »Withdraw« under it, the question
   asked in its place, »Withdrawn« faded. */
.my-answers > li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.my-answer-head { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.my-answer-head .face-mark { font-size: 1.5rem; }
.my-answers .meta { margin: 0.1rem 0 0; }
.my-answer-line { margin: 0.25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-answer-withdrawn { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.my-answer-actions { margin: 0.25rem 0 0; }
/* The profile's picture links: a row of their own under »Save the picture«. */
.photo-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.75rem 0 1.5rem; }
/* A profile form whose save button is the last thing before the next field: the same air under it (kvatr #351). */
.profile-field { margin-bottom: 1.5rem; }
.my-answer-actions .link-button { color: var(--accent); }
.withdraw-ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0.25rem 0 0; }
.dont-ask-me { margin: 0 0 1rem; }

/* ---- The profile's »Signed in« (Components/ProfileSignedIn.razor; docs/signed-in.md) ---- */

/* Each session: »This device« on the page's own, the kind and the label, the country with »New country«, the sign-in's day and the last day of
   use; »Sign out« under it, the question asked in its place. */
.signed-in > li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.signed-in-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 0; }
.signed-in .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; margin: 0.1rem 0 0; }
.signed-in-this, .signed-in-new { font-size: 0.8rem; font-weight: 600; padding: 0.05rem 0.4rem; border: 1px solid var(--border); border-radius: 0.25rem; }
.signed-in-new { border-color: var(--accent); color: var(--accent); }
.signed-in-actions, .signed-in-others { margin: 0.25rem 0 0; }
.signed-in-actions .link-button, .signed-in-others .link-button { color: var(--accent); }
.signed-in-ask, .signed-in-others-ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0.25rem 0 0; }
.signed-in-others, .signed-in-others-ask { margin-top: 0.75rem; }
.signed-in-help { margin: 0.75rem 0 0; }

/* The join link (docs/mobile-api.md §29): the company page's box and /join/{token}. */
.join-link { word-break: break-all; }
.join-qr svg { width: 10rem; height: 10rem; }
.join-requests td { vertical-align: middle; }

/* ---- Check in's web (docs/mobile-api.md §29, »The web«; lane W1): the house's section, a company's page and the staff's days ---- */

/* The switch above what it does; a line's range in even figures, broken where it must; the forms as narrow as the others. */
.check-in-switch { margin: 0.75rem 0 0.25rem; font-weight: 600; }
.check-in-networks .check-in-addresses { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.check-in-network-form, .check-in-phone { max-width: 24rem; }
/* A month of days: the month between its arrows; the times and the hours in even figures, never broken. */
.check-in-month strong { font-weight: 600; }
.check-in-days td:nth-child(n+4) { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The company's places: the picker scrolls in a long house; »In now« its number, plainly. */
.company-places-picker { max-height: 20rem; overflow-y: auto; margin-bottom: 0.5rem; }
.company-in-now { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0.25rem 0 1rem; }
/* ---- Check in on the web (docs/mobile-api.md §29, »The web«; lane W2): the desk's »Now« line and my control, the first-time screen ---- */

/* The desk's top: the line of people in per site, then my state in words and the taps, a site picked beside »Check in«. */
.check-in-now { margin: 0 0 0.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.check-in-control { margin: 0 0 1rem; }
.check-in-state { margin: 0 0 0.25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.check-in-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.25rem 0; }
.check-in-record { display: inline-flex; align-items: center; gap: 0.4rem; }
/* The first-time screen's sentences — four, and a quarter's fifth since §30 —: a reading width, wherever the screen stands. */
.check-in-intro-text p { max-width: 42rem; }
/* »Numbers«' Check in rows: a table per site, its caption the site's name, the numbers in even columns. */
.numbers-check-in caption { text-align: start; font-weight: 600; padding: 0.75rem 0.75rem 0.25rem; }
.numbers-check-in .value { font-variant-numeric: tabular-nums; }
/* Kvatr's box's Check in: a block per house, its curve per weekday in the numbers' table. */
.kvatr-check-in-house { margin: 0 0 1.5rem; }
.kvatr-check-in-house .value { font-variant-numeric: tabular-nums; }
/* The profile's Check in: per house the first-time screen, or the two switches as chips and »My days«, a day a line. */
.profile-check-in-house { margin: 0 0 1.5rem; }
.profile-check-in-switch { margin: 0.75rem 0 0.25rem; }
.my-days { margin: 0.25rem 0; font-variant-numeric: tabular-nums; }
.my-days-months { display: flex; gap: 1rem; margin: 0.25rem 0 0; }
/* The first-time screen in a page's place: the heading, the four sentences, the switch and »OK«. */
.check-in-intro { margin: 0 0 1.5rem; }
/* The sticker's Check in, above the call: a block of its own on the code's page — none where it holds no button and no refusal. */
.qr-check-in { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.qr-check-in:not(:has(button, .form-error)) { display: none; }

/* ---- A quarter on the web (docs/mobile-api.md §30, »The web«; lane Q2): the meeting spots, the switches, the desk's quarters and the counts ---- */

/* The places page's »Meeting spot«: a small switch on the place's line, beside its details. */
.meeting-spot { display: inline-flex; align-items: center; gap: 0.35rem; margin-inline-start: 0.5rem; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
/* The house's switch »Quarters« under Check in's, as Check in's stands: the switch above what it does. */
.quarters-switch { margin: 0.75rem 0 0.25rem; font-weight: 600; }
/* »Numbers«' quarters: the asked and the met in a table each, its caption the table's name, the weeks in even columns. */
.numbers-quarters caption { text-align: start; font-weight: 600; padding: 0.75rem 0.75rem 0.25rem; }
/* Kvatr's box's quarters: a block per house, its weeks' asked and met in the numbers' table. */
.kvatr-quarters-house { margin: 0 0 1.5rem; }
/* The mark that keeps a quarter on the desk (docs/mobile-api.md §30, »The mark keeps the quarter«; K5; Components/QuarterMark.razor): the four
   masters stacked over the mark with the light out — its four panes in the masters' dark ink, cut by a master's own outline. At rest, the arm's
   top alone, until the desk's script (today.js) sets --quarter-elapsed, the time since the quarter's start, through CSSOM; from then the quarter's
   fifteen minutes run as one animation per layer, each pane lit for its quarter of them — the arm's top, the arm's bottom, the stem's bottom,
   the stem's top —, the mark at rest before the start (filled backwards) and the light out after the end (filled forwards). */
.quarter-mark { --mark-ink: #16232E; display: inline-grid; flex: none; width: 2rem; aspect-ratio: 51.78 / 59; }
.quarter-mark > * { grid-area: 1 / 1; display: block; width: 100%; height: 100%; visibility: hidden; }
.quarter-mark > .quarter-mark-15 { visibility: visible; }
.quarter-mark img { display: block; width: 100%; height: 100%; }
.quarter-mark-out { background: var(--mark-ink); -webkit-mask: url(../img/kvatr-mark-15.svg) center / contain no-repeat; mask: url(../img/kvatr-mark-15.svg) center / contain no-repeat; }
.quarter-mark[style*="--quarter-elapsed"] > * { animation-duration: 900s; animation-timing-function: step-end; animation-fill-mode: both; animation-delay: calc(var(--quarter-elapsed) * -1); }
.quarter-mark[style*="--quarter-elapsed"] > .quarter-mark-15 { animation-name: quarter-mark-15; }
.quarter-mark[style*="--quarter-elapsed"] > .quarter-mark-30 { animation-name: quarter-mark-30; }
.quarter-mark[style*="--quarter-elapsed"] > .quarter-mark-45 { animation-name: quarter-mark-45; }
.quarter-mark[style*="--quarter-elapsed"] > .quarter-mark-00 { animation-name: quarter-mark-00; }
.quarter-mark[style*="--quarter-elapsed"] > .quarter-mark-out { animation-name: quarter-mark-out; }
@keyframes quarter-mark-15 { 0% { visibility: visible; } 25%, 100% { visibility: hidden; } }
@keyframes quarter-mark-30 { 0% { visibility: hidden; } 25% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes quarter-mark-45 { 0%, 25% { visibility: hidden; } 50% { visibility: visible; } 75%, 100% { visibility: hidden; } }
@keyframes quarter-mark-00 { 0%, 50% { visibility: hidden; } 75% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes quarter-mark-out { 0% { visibility: hidden; } 100% { visibility: visible; } }
@media (prefers-color-scheme: dark) { .quarter-mark { --mark-ink: #F3F2EE; } }
/* The desk's own next quarter under the Check in control: the mark beside its lines — the time and the place, who with, what the mark does. */
.desk-quarter { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
/* Gone at its end (today.js sets hidden, as the app's card goes): hidden wins over the block's own display. */
.desk-quarter[hidden] { display: none; }
.desk-quarter-text { display: flex; flex-direction: column; margin: 0; font-variant-numeric: tabular-nums; }
.desk-quarter-with { color: var(--muted); }
/* The open quarters under the strip: a line each, its asker, its own line and the names of those in after it. */
.desk-quarters { list-style: none; margin: 0 0 1rem; padding: 0; }
.desk-quarters li { padding: 0.25rem 0; }
.desk-quarter-line { font-weight: 600; font-variant-numeric: tabular-nums; }
/* A line gone at its quarter's time (today.js sets hidden, as the app's open list drops it): hidden wins whatever display a line is given, and
   the list goes with its last line — none, no list. */
.desk-quarters li[hidden] { display: none; }
.desk-quarters:not(:has(> li:not([hidden]))) { display: none; }

/* ---- The house's news on the web (docs/mobile-api.md §31, »The web«; lane N3) ---- */

/* The feed (Components/Pages/NewsPage.razor): »New post« and the work calendar, the place filter, and a row per post — its title, the kind's mark
   with building work's slot, its place, time and replies, my unread — as the community's board draws its questions. */
.news-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.news-new { display: inline-block; margin-top: 0; text-decoration: none; }
.news-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin: 0 0 0.75rem; }
.news-filter select { max-width: 100%; font-size: max(0.95rem, 16px); padding: 0.4rem 0.6rem; }
.news-for { margin-top: 0.5rem; }
.news-posts { list-style: none; margin: 0; padding: 0; }
.news-post { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.news-post-title { flex: 1 1 100%; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.news-post-kind { color: var(--accent); font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.news-post-meta { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.news-unread { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.news-none { color: var(--muted); }
.news-more { margin: 0.75rem 0; }
.news-more .link-button { color: var(--accent); }
/* The form (Components/NewsForm.razor), new and the change: the kind side by side, building work's slots a row each — »Date«, »From«, »To« with their
   words above them — and a slot that is over as a plain line; the switches as the page's checks. */
.news-form { max-width: 36rem; }
.news-kind { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.25rem 0; }
.news-slots { margin: 0.25rem 0; padding: 0.5rem 0.75rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.news-slots legend { padding: 0 0.25rem; font-weight: 600; }
.news-slot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; padding: 0.35rem 0; }
.news-slot label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; font-weight: 400; }
.news-slot input { font-size: max(1rem, 16px); padding: 0.45rem 0.55rem; }
.news-slot .link-button, .news-slot-actions .link-button { color: var(--accent); }
.news-slot-over { margin: 0.35rem 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-slot-actions { margin: 0.25rem 0 0; }
.news-form-where { margin: 0; color: var(--muted); }
.news-tell-line { margin: 0; }
.news-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.25rem 0 0; }
/* The post (Components/Pages/NewsPostPage.razor): its place and kind, the slots — the running one lit, an ended one quiet —, who posted, the house's
   words in a card of their own, the tools, the tap and its count, then the thread and the composer as a question of the community's. */
.news-post-where { margin: 0; color: var(--muted); }
.news-post-slots { list-style: none; margin: 0.5rem 0; padding: 0; font-variant-numeric: tabular-nums; }
.news-post-slots li { padding: 0.1rem 0; }
.news-post-slots .running { color: var(--accent); font-weight: 600; }
.news-post-slots .ended { color: var(--muted); }
.news-posted { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.news-text { display: flex; flex-direction: column; margin: 0 0 1rem; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); }
.news-words { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-tools .link-button:not(.delete), .news-louder .link-button { color: var(--accent); }
.news-remove-ask { flex: 1 1 100%; }
.news-louder { margin: 0 0 1rem; }
.news-louder-count { margin: 0; font-weight: 600; }
.news-louder-names { list-style: none; margin: 0.25rem 0; padding: 0; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.news-louder-more { margin: 0.25rem 0; }
.news-noted { margin: 0.5rem 0; font-weight: 600; }
.news-louder-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.5rem 0; }
.news-louder-form input { flex: 1 1 14rem; font-size: max(1rem, 16px); padding: 0.5rem 0.7rem; }
.news-file { align-self: flex-start; overflow-wrap: anywhere; }
/* The work calendar (Components/Pages/NewsCalendarPage.razor): the range with ‹ and › beside it, a day each with its slots as lines, the running one lit. */
.news-calendar-range { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-calendar-nav { display: flex; gap: 1rem; margin: 0.25rem 0 0.75rem; font-size: 1.4rem; }
.news-calendar-nav a { text-decoration: none; padding: 0 0.35rem; }
.news-calendar-none { color: var(--muted); }
.news-calendar-day h2 { margin: 1.25rem 0 0.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.news-calendar-slots { list-style: none; margin: 0; padding: 0; }
.news-calendar-slot { padding: 0.3rem 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.news-calendar-slot a { color: var(--text); font-weight: 600; }
.news-calendar-slot.running .news-calendar-when { color: var(--accent); font-weight: 600; }
.news-calendar-where { color: var(--muted); }
/* The profile's »News by mail« under the email (Components/Pages/ProfilePage.razor): its word, its two answers as Check in's switches, its line. */
.news-by-mail { margin: 1rem 0; }
.news-by-mail-switch { margin: 0 0 0.25rem; font-weight: 600; }
.news-by-mail .small { margin: 0; }

/* The profile's »Your calendar« (docs/booking.md »(a) The feed«): the address whole in its field, the two buttons on one line. */
.feed-url { width: 100%; max-width: 46rem; box-sizing: border-box; font-size: 1rem; }
.feed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
/* The desk's »The day's plan« under »Now« (Components/DeskPlan.razor): a line a slot — its hours, the running one lit, its title to the post, its place. */
.desk-plan { margin: 1rem 0; }
.desk-plan h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.desk-plan-slots { list-style: none; margin: 0; padding: 0; }
.desk-plan-slots li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.desk-plan-slots a { color: var(--text); font-weight: 600; }
.desk-plan-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.desk-plan-slots .running .desk-plan-when { color: var(--accent); font-weight: 600; }

/* ---- The menu's head and its groups (kvatr #98): what one works as, and the groups that fold ---- */

/* The switcher: the mark and the name of a house, or Kvatr, in a quiet box; its list drops under it, a button per choice with the roles or
   the companies under the name; one choice alone is the box without a chevron. */
.house-switch { position: relative; flex: 1; min-width: 0; }
.house-switch summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); list-style: none; cursor: pointer; font-weight: 600; }
.house-switch summary::-webkit-details-marker { display: none; }
.house-switch summary .icon { color: var(--muted); }
.house-switch.one { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; font-weight: 600; }
.house-switch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-switch-menu { position: absolute; inset-inline: 0; top: calc(100% + 0.25rem); z-index: 30; display: flex; flex-direction: column; margin: 0; padding: 0.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(22 35 46 / 0.14); }
.house-switch-menu .eyebrow { padding: 0.35rem 0.6rem 0.15rem; }
.house-switch-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; width: 100%; padding: 0.45rem 0.6rem; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.house-switch-menu button:hover { background: var(--surface-2); }
.house-switch-menu button[aria-current="true"] { color: var(--accent); font-weight: 600; }
.house-switch-menu button .small { font-weight: 400; }
.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
/* A group: its head a small capital word with a chevron that turns when open; its lines as the menu's. */
.group { margin-top: 0.6rem; }
.group summary { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.6rem; border-radius: 8px; list-style: none; cursor: pointer; }
.group summary::-webkit-details-marker { display: none; }
.group summary:hover { background: var(--surface-2); }
.group summary .icon { width: 0.95rem; height: 0.95rem; color: var(--muted); transition: transform 0.15s ease; }
.group[open] > summary .icon { transform: rotate(180deg); }
.group .nav { padding-top: 2px; }
/* The first part's head »You« (kvatr #331; NavMenu.razor): a group's head as its summary draws it, without the chevron, for it never folds. */
.menu-head { display: flex; align-items: center; padding: 0.35rem 0.6rem; }
.menu-head + .nav { padding-top: 2px; }
@media (prefers-reduced-motion: reduce) {
    .group summary .icon { transition: none; }
}

/* ---- The house guide on the web (docs/guide.md »The web«; kvatr #125, lane G1b) ---- */

/* The page (Components/Pages/GuidePage.razor): the house's own sections under no heading, then each site's and building's under its path; a section a
   row that opens — its kind's icon and its name, »Public« as a quiet mark beside it —, open on the house's text with its line breaks and links, a Wi-Fi
   section's two fields, and the day it was saved. */
.guide-none { color: var(--muted); }
.guide-place { margin: 0 0 1.25rem; }
.guide-place h2 { margin: 1.25rem 0 0.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; overflow-wrap: anywhere; }
.guide-sections { list-style: none; margin: 0; padding: 0; }
.guide-section { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.guide-row summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; cursor: pointer; list-style: none; font-weight: 600; overflow-wrap: anywhere; }
.guide-row summary::-webkit-details-marker { display: none; }
.guide-row summary .icon { color: var(--accent); }
.guide-public { padding: 0.05rem 0.5rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.75rem; font-weight: 600; }
.guide-body { margin: 0.5rem 0 0; overflow-wrap: anywhere; }
.guide-wifi { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 1rem; margin: 0.5rem 0 0; }
.guide-wifi dt { color: var(--muted); }
.guide-wifi dd { margin: 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }   /* a password's spaces as written (lane R4's reading) */
.guide-updated { margin: 0.35rem 0 0; color: var(--muted); }
/* The editor's tools in place: who reads a place under its heading, who changed a section under its row, »Edit« and »Remove« quiet in the accent
   (a removal in red), its question on its own line, »Add a section« under the place. */
.guide-read-by { margin: 0 0 0.5rem; color: var(--muted); }
.guide-changed { margin: 0.25rem 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0.25rem 0 0; }
.guide-edit, .guide-add-button { color: var(--accent); }
.guide-remove-ask { flex: 1 1 100%; }
.guide-add { margin: 0.5rem 0 0; }
/* The form (Components/GuideSectionForm.razor), in a row or under a place: the nine kinds side by side, each with its icon; the fields; the switch
   with its lines; »Save« and »Cancel«. */
.guide-form { max-width: 36rem; margin: 0.5rem 0 0.75rem; }
.guide-kinds { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.25rem 0; padding: 0.5rem 0.75rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.guide-kinds legend { padding: 0 0.25rem; font-weight: 600; }
.guide-kind { display: inline-flex; align-items: center; gap: 0.35rem; }
.guide-kind .icon { color: var(--accent); }
.guide-title-hint, .guide-public-line, .guide-public-page { margin: 0; color: var(--muted); }
.guide-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.25rem 0 0; }
/* Rule 14's wait, for an editor before the house's acceptance: the service's sentence, and for the root's administration the way to /accept after it. */
.guide-waiting { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
/* A refused form's text kept to copy once the editor may no longer save it here (the reading's must-fix 1): a read-only field under the refusal. */
.guide-kept { max-width: 36rem; margin: 0.25rem 0 0.75rem; }
.guide-kept-text { width: 100%; font-size: max(1rem, 16px); padding: 0.5rem 0.7rem; color: var(--muted); }

/* Booking on the web (docs/booking.md »The web«; kvatr #19, lane W). »Book«: the resources, one line each; the week's grid of the server's marks — a free slot
   a button, the others their word muted, mine accented, »You're busy« under its slot —; the pick's form at a form's width. */
.book-resources li { margin: 0.25rem 0; }
.book-resources button[aria-pressed=true] { font-weight: 600; text-decoration: none; }
.book-week-nav { display: flex; gap: 1rem; }
.book-week { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.book-week th, .book-week td { border-bottom: 1px solid var(--border); padding: 0.2rem 0.35rem; text-align: center; vertical-align: top; }
.book-week th[scope=row] { text-align: end; color: var(--muted); white-space: nowrap; }
.book-week td[data-state=booked], .book-week td[data-state=closed], .book-week td[data-state=past] { color: var(--muted); }
.book-week td[data-state=mine] { color: var(--accent); font-weight: 600; }
.book-week .slot { width: 100%; min-height: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.book-week .slot[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); }
.book-week .slot-busy { display: block; color: var(--muted); font-size: 0.8rem; }
.book-form, .guest-link-form, .catering-order { max-width: 24rem; }
.book-skipped ul { margin: 0.25rem 0 0.75rem; }
.book-mine-list > li, .guest-links > li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.book-catering { margin: 0.5rem 0 0 1rem; }
.book-catering h3 { font-size: 1rem; margin: 0.25rem 0; }
/* A parcel's label's photo opened in place on the shelf (docs/reception.md »The web«; lane R3's reading's nit 2): at most its row's width, as a room's picture. */
img.parcel-label { display: block; max-width: 100%; max-height: 24rem; height: auto; border-radius: 8px; border: 1px solid var(--border); margin: 0.25rem 0; }

/* ---- A list and the open thing (Components/ListAndOpen.razor; kvatr #150, #152), and Messages in it ---- */

/* One shape for Messages and, next, Tasks: the list, and the open thing beside it. Under 64rem the list is the page, and what is open takes
   its place (data-open, the page's) with the page's own way back in it (.split-back). From 64rem — the desk's two columns' width — the two
   stand side by side in the page's 72rem: the list at the desk rail's 22rem, the open thing at the 46rem measure; each keeps the window's
   height — less the page's own top and the footer line, 5rem, and the bands of Kvatr's banner standing at the window's foot (--bands) — and
   scrolls on its own, so a long list never pushes the open thing away and what is open keeps its foot in view. */
.split { display: block; }
.split[data-open="yes"] > .split-list, .split[data-open="no"] > .split-open { display: none; }
.split-back { margin: 0 0 0.75rem; }
@media (min-width: 64rem) {
    .split { display: grid; grid-template-columns: 22rem minmax(0, 46rem); gap: 0 2rem; align-items: start; }
    .split[data-open] > .split-list { display: block; position: sticky; top: 1rem; max-height: calc(100vh - 5rem - var(--bands, 0rem)); overflow-y: auto; }
    .split[data-open] > .split-open { display: flex; flex-direction: column; position: sticky; top: 1rem; max-height: calc(100vh - 5rem - var(--bands, 0rem)); min-height: 0; overflow-y: auto; }
    .split-back { display: none; }
}

/* Tasks in it (Components/Pages/DriftPage.razor; kvatr #152 point 1, lane TW2): the open task's row in the list on the accent's tint, as Messages' open room's;
   the pane's sentence while no task is open. From 64rem the open task is its page's own flow — the pane scrolls as a whole and the thread grows within it, as
   on the task's own page, never squeezed to the pane's foot as a room's thread is —, and a row in the list's 22rem is compact (the owner's decision of
   2026-11-12, lane TP2), as a Messages row reads: its status with who has it, »Urgent«, »Help« or »Round«, its title, its place with its time and its day with
   »Late«; who gave it, »{n} reported it«, »Escalated«, its description, photos and done line and its acts — »Start«, the note, »Done«, »Reopen« — are the
   open task's, at the right. display: none takes them out of the tab order and the accessibility tree; under 64rem, where the list is the page, a row keeps
   all of it. The markup is one (Components/TasksList.razor). */
.split-list .task:has(.task-head a[aria-current="page"]) { background: var(--accent-soft); }
.tasks-choose { margin: 0; }
@media (min-width: 64rem) {
    .tasks-page .split[data-open] > .split-open { display: block; }
    .tasks-page .split-list .task :is(.task-given-by, .task-me-too, .task-escalated, .task-text, .task-photos, .task-done-line, .task-actions, .task-reopen) { display: none; }
}

/* Messages' list (Components/Pages/MessagesPage.razor): its head with the two ways to start, the search, the filter's chips, and the rows —
   a face or a kind's mark, the title with its time, a second line, the last line's words and the badge; a row the app's dot lights reads
   brighter, the open room's row on the accent's tint. An invitation is a row that leads to its own address, with its two answers under it. */
.rooms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.75rem; }
.rooms-head h1 { flex: 1 1 auto; margin: 0; }
.rooms-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.rooms-acts .link-button, .rooms-tools .link-button, .room-acts .link-button, .room-tools .link-button, .invitation-open .link-button { color: var(--accent); }
.rooms-search { width: 100%; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; margin: 0 0 0.75rem; }
.rooms-filter { margin: 0 0 0.5rem; }
.rooms-tools { margin: 0 0 0.5rem; font-size: 0.9rem; }
.rooms { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--border); }
.room-row { border-bottom: 1px solid var(--border); }
.room-link { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.1rem 0.65rem; align-items: baseline; padding: 0.6rem 0.35rem; color: var(--text); text-decoration: none; }
.room-link[aria-current="page"] { background: var(--accent-soft); }
/* Kvatr's row before its room is made is a button (docs/messages.md M16, Trap 11), drawn as the links beside it. */
button.room-link { width: 100%; margin: 0; border: 0; border-radius: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.room-face { grid-row: 1 / span 3; align-self: start; flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.room-face .avatar { width: 2.25rem; height: 2.25rem; margin: 0; }
.room-face:has(.avatar) { background: none; }
.room-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-when { color: var(--muted); font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.room-second, .room-preview { grid-column: 2; color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row[data-unread="yes"] .room-preview { color: var(--text); font-weight: 600; }
.room-unread { grid-column: 3; justify-self: end; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.room-row[data-kind="invitation"] .room-second { grid-column: 2 / span 2; white-space: normal; }
.room-acts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0 0.35rem 0.6rem 3.25rem; font-weight: 600; }

/* The menu's count beside »Messages« (Components/Layout/MessagesCount.razor): a pill at the line's end. */
.nav-count { margin-inline-start: auto; min-width: 1.35rem; padding: 0 0.4rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 0.75rem; font-weight: 700; text-align: center; }

/* The open room's head: who or what, a line under it, and its tools — the mute, »The group«, »Open the task«. */
.room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.75rem; padding: 0 0 0.75rem; border-bottom: 1px solid var(--border); }
.room-names { flex: 1 1 12rem; min-width: 0; }
.room-names h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.room-names p { margin: 0; }
.room-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 0.9rem; }

/* A conversation (Components/Conversation.razor): the thread's lines as bubbles — the others' left under their picture or initials, mine
   right on the accent's tint, a system line centred and quiet —, a picture as a thumbnail, a PDF as a row, and the typing box at the foot.
   From 64rem the thread scrolls inside the open pane, so the typing box stays in view (wwwroot/js/messages.js keeps it at its end);
   narrower it grows with the page. A file that waits to be sent is a line with its name — never a picture of it —, and while a file is
   dragged over the conversation the script's class (dropping) marks it and shows where to drop. */
.conversation { display: flex; flex-direction: column; min-width: 0; }
.conversation .chat { max-width: none; }
.conversation .thread .message { flex-direction: row; align-items: flex-end; gap: 0.5rem; padding: 0; border: 0; background: none; }
.conversation .chat .message.mine { flex-direction: row-reverse; background: none; }
.conversation .message > .avatar { margin: 0; }
.conversation .thread .event { align-self: center; align-items: center; text-align: center; font-style: italic; }
.conversation .meta { font-size: 0.75rem; color: var(--muted); }
.bubble { display: flex; flex-direction: column; min-width: 0; padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.conversation .mine .bubble { border-color: transparent; background: var(--accent-soft); }
.chat-words, .chat-line { white-space: pre-wrap; overflow-wrap: anywhere; }
/* The ways under an answer of Kvatr's (docs/mobile-api.md §45, lane A1): a link a row under the words. */
.chat-ways { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.4rem; }
.chat-way { overflow-wrap: anywhere; }
.chat-picture-link { align-self: flex-start; margin-top: 0.25rem; }
.chat-picture { display: block; max-width: min(100%, 15rem); max-height: 12rem; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.chat-file { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); overflow-wrap: anywhere; }
.typing-box { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.75rem 0 0; padding: 0.75rem 0 0; border-top: 1px solid var(--border); }
.typing-text { width: 100%; resize: vertical; font-size: max(1rem, 16px); }
.typing-send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.typing-file, .typing-several, .typing-editing { margin: 0; overflow-wrap: anywhere; }
.typing-editing .link-button { color: var(--accent); }
.typing-file .link-button { color: var(--accent); }
.drop-here { display: none; margin: 0.5rem 0 0; padding: 0.75rem; border: 2px dashed var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; text-align: center; }
.conversation.dropping .drop-here { display: block; }
/* On a touch screen Enter breaks the line (messages.js): the hint of the keys is a keyboard's. */
@media (pointer: coarse) {
    .typing-send .small { display: none; }
}
@media (min-width: 64rem) {
    .split-open .room-body, .split-open .conversation { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
    .split-open .room-body[hidden] { display: none; }
    .split-open .conversation .thread { flex: 1 1 auto; min-height: 6rem; overflow-y: auto; }
}

/* »New message«, »Join a group by code« and a group's sheet (Components/MessagesNew.razor, GroupSheet.razor): the picker's people in a list
   that scrolls on its own, a row's name the way to write to them, and the sheet's rows with their acts. */
.picker-search { width: 100%; font-size: max(1rem, 16px); padding: 0.55rem 0.7rem; margin: 0 0 0.5rem; }
.picker { max-height: 20rem; overflow-y: auto; margin: 0 0 0.75rem; border-block: 1px solid var(--border); }
.picker-person, .group-person { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.picker-person .check { flex: 0 1 auto; }
.picker-name { display: inline-flex; align-items: center; color: var(--text); font-weight: 600; text-decoration: none; }
.picker-none { margin: 0 0 0.75rem; }
.picker-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.split-open > section > h2 { margin-top: 0; }
.group-sheet h3 { margin: 1.25rem 0 0.35rem; font-size: 1rem; }
.group-sheet .link-button, .picker-acts .link-button { color: var(--accent); }
.group-write { font-weight: 600; }

/* The directory's rows (Components/Pages/DirectoryPage.razor; kvatr #206): a person's photo, name, company and »Write«, a company's logo, name, line
   and places, spaced as a group sheet's row — Razor drops the white space before an @if, and the name and the company ran together. */
.directory-person, .directory-company { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.join-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
/* A task someone has (kvatr #152, lanes T1 and T2): a new task's status that names whom it was given to keeps the name's own letters, on Operations'
   list and the task's page; and the day's field takes a date's width in its row, not the row's. */
.status.held { text-transform: none; letter-spacing: 0; }
.task-due input { flex: 0 1 11rem; }

/* The toast of a new message (Components/Layout/MessagesToast.razor; docs/messages.md M29): one at a time at the window's foot, clear of the
   footer line, at the end of the line on a wide window and the width of a phone's less its gutters; who wrote — never the words (kvatr #180
   item 9) —, then »Open« and »Close«. Its region is drawn in every circuit, empty between toasts, so a screen reader hears each as it comes (role status);
   the region lets the pointer through to the page, the toast itself takes it. Under the menu and its scrim when they slide in. Since kvatr #379 lane
   AN-B it stands in the window's foot, on its top edge: over Kvatr's banner when one stands, and where it stood before when none does — 2.25rem
   above the window's bottom and the safe area's inset, the foot standing on the footer line. Out of the foot's flow, so a toast that comes and goes
   never changes the page's length. */
.toast-region { position: absolute; inset-inline: 1rem; bottom: 100%; padding-bottom: calc(2.25rem - var(--footer-line)); display: flex; justify-content: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; flex-direction: column; gap: 0.4rem; width: min(100%, 24rem); padding: 0.75rem 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(22 35 46 / 0.18); }
.toast-words { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.toast-from { display: block; }
.toast-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0; }
.toast-acts .link-button { color: var(--accent); }
/* A row's answer in the task page's holder's and day's rows (kvatr #170, answers-in-sight): a line of its own between the field and its buttons. */
.task-actions > .form-error, .task-actions > .form-done { flex-basis: 100%; margin: 0; }

/* »Send by mail or SMS« under its line (Components/SendOutDialog.razor; kvatr #151 point 5, lane MW4): the words as they will go set apart, who gets it by each
   channel and who is skipped as short lists under quiet headings, the SMS's lines under its switch, the answer and the buttons at its foot. */
.send-out { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.send-out h3 { margin: 0; font-size: 1rem; }
.send-out h4 { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.send-out p, .send-out ul { margin: 0; }
.send-out-words { padding: 0.5rem 0.65rem; border-radius: 8px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.send-out-people { padding-inline-start: 1.1rem; }
.send-out-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.35rem; }
.send-out-acts .link-button { color: var(--accent); }
/* »Make it a task«'s »Where?« under a direct room's line (kvatr #151 point 1, lane MW6), standing as the send-out dialog stands. */
.task-where { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.task-where select { max-width: 100%; }
.task-where-note { margin: 0; color: var(--muted); }
.task-where-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.task-where-acts .link-button { color: var(--accent); }
/* Several files in one go (kvatr #151 point 6, lane MW4): the files that wait under the typing box as a run, one line each with its »Remove«. */
.typing-files { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
/* Mentions (kvatr #151 point 7, lane MW4): a held line's mention tinted, one of me stronger on a ground of its own; the picker under the typing box, the room's
   people as buttons, the marked one the keys' (aria-selected). */
.mention { font-weight: 600; color: var(--accent); }
.mention-me { font-weight: 700; color: var(--text); background: var(--surface-2); border-radius: 4px; padding: 0 0.15rem; }
.mention-picker { display: flex; flex-direction: column; max-height: 14rem; overflow-y: auto; margin: 0; padding: 0.25rem 0; list-style: none; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.mention-row { display: block; width: 100%; padding: 0.35rem 0.75rem; border: 0; background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer; }
.mention-row[aria-selected="true"] { background: var(--accent-soft); }
.mention-nobody { margin: 0; }
/* A mention in a group's line is a button that opens the group's sheet (§16 »What the web and the app draw«; lane MW7): drawn as the chip it is, a pointer and the focus ring its own. */
button.mention { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-align: inherit; }
button.mention-me { font-weight: 700; color: var(--text); background: var(--surface-2); border-radius: 4px; padding: 0 0.15rem; }
button.mention:hover { text-decoration: underline; }
/* A question on a line (stage's browser run of 2026-11-12, finding G; Components/Conversation.razor, the hosts' LineFoot): »Remove this message?«, »Hide this
   person?«, a moderator's »Delete« or »Ban« on a line of its own under the line's menu, the question then its »Yes« and »Cancel« alone — never in the menu's row. */
.bubble-question { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin: 0.35rem 0 0; font-size: 0.9rem; }
.bubble-question .link-button { color: var(--accent); }
.bubble-question .check { font-size: 0.9rem; color: var(--text); }

/* The house's »Hints« (Components/Pages/HouseHintsPage.razor; docs/hints.md §4, lane H2): a row is its line, the English under it, its facts and its
   acts, apart from the next row by a rule; the acts in a line as Satisfaction's, wrapping on a phone; a hint's line breaks anywhere — it is a sender's
   own words, a long one without a space among them. */
.house-hints-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.house-hints-list > li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.house-hint-line { margin: 0; overflow-wrap: anywhere; }
.house-hint-english, .house-hint-facts { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.house-hint-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0.35rem 0 0; font-size: 0.9rem; }
.house-hint-actions .link-button, .house-hint-actions a { color: var(--accent); }
.house-hints-note { max-width: 36rem; }

/* Kvatr's box's »Announcements« (Components/Pages/KvatrAnnouncements.razor; docs/announcements.md, kvatr #379 lane AN1): the form's »When« a box with its
   two moments side by side; a row is its words, its facts as a small grid of label and value, its translations in a list that folds — a language's own
   name, its words, »Change« — and its acts in a line, wrapping on a phone; apart from the next row by a rule. A row begins with the banner itself. */
.announcement-form { max-width: 46rem; }
.announcement-when { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; margin: 0.25rem 0; padding: 0.5rem 0.75rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.announcement-when legend { padding: 0 0.25rem; font-weight: 600; }
.announcement-when label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; font-weight: 400; }
.announcement-when .small { flex-basis: 100%; margin: 0; }
.announcement-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.announcement-list > li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.announcement-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.1rem 0.75rem; margin: 0.35rem 0 0; font-size: 0.9rem; }
.announcement-facts dt { color: var(--muted); }
.announcement-facts dd { margin: 0; overflow-wrap: anywhere; }
.announcement-row-meta { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; margin: 0.25rem 0 0; }
.announcement-texts { margin: 0.35rem 0 0; font-size: 0.9rem; }
.announcement-texts summary { cursor: pointer; color: var(--muted); }
.announcement-texts ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.announcement-texts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; padding: 0.25rem 0; border-top: 1px solid var(--border); }
.announcement-language { flex: 0 0 8rem; color: var(--muted); }
.announcement-words { flex: 1 1 16rem; overflow-wrap: anywhere; }
.announcement-change { flex: 1 1 100%; font: inherit; font-size: max(1rem, 16px); padding: 0.45rem 0.55rem; }
.announcement-actions, .announcement-question { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0.35rem 0 0; font-size: 0.9rem; }
:where(.announcement-actions, .announcement-question, .announcement-texts) .link-button { color: var(--accent); }
.announcement-change-buttons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }

/* Kvatr's banner (Components/Layout/AnnouncementBanner.razor; docs/announcements.md »The banner on the web«, kvatr #379 lanes AN1 and AN-B): one band a
   standing announcement, in the window's foot — a bar at the window's bottom, as J4's web has its own, edge to edge of the page's column, over the page
   and under the toast —: its words at the line's start, the times' line, »Read more« and »Close« at the line's end, in a line that wraps on a phone; on a
   wide screen its words line up with the page's own (main's 72rem and its 2.5rem). A soft shadow at the stack's top and a hairline between two bands;
   the three standing (rule 4) share at most half the window's height and scroll inside it beyond that. The level's look is here alone, ONE palette for
   light and for dark as J4's bar (the lead's word of 2026-11-15, the app's banners the same), each ground solid and its words, »Read more«, »Close«,
   a failed close's line and the focus ring in the ground's own word colour — never the accent, which fails on the red and the blue:
     critical  #A12C1E, white #FFFFFF       7.26:1 (the app's red, the light theme's --danger-ground)
     warning   #F5C400, navy  #16232E       9.73:1 (yellow carries no white)
     info      #1D5FA8, white #FFFFFF       6.45:1
   (LookRulesTests computes them.) The critical one's words bold. The same block begins a row on /kvatr's »Announcements«, as its readers see it. */
.announcements { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; pointer-events: auto; box-shadow: 0 -2px 8px rgb(0 0 0 / 0.25); }
.announcement { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 0; padding: 0.6rem 1rem; background: var(--announcement-ground); color: var(--announcement-words); }
.announcement + .announcement { box-shadow: inset 0 1px 0 rgb(0 0 0 / 0.2); }
.announcement-critical { --announcement-ground: #A12C1E; --announcement-words: #FFFFFF; }
.announcement-warning { --announcement-ground: #F5C400; --announcement-words: #16232E; }
.announcement-info { --announcement-ground: #1D5FA8; --announcement-words: #FFFFFF; }
.announcement-text { flex: 1 1 18rem; margin: 0; overflow-wrap: anywhere; }
.announcement-critical .announcement-text { font-weight: 600; }
.announcement-times { margin: 0; font-variant-numeric: tabular-nums; }
.announcement-close-form { margin: 0; margin-inline-start: auto; }
.announcement > .announcement-close { margin-inline-start: auto; }
.announcement :is(.announcement-more, .link-button) { color: var(--announcement-words); text-decoration: underline; }
.announcement :is(a, button):focus-visible { outline: 2px solid var(--announcement-words); outline-offset: 2px; }
.announcement .form-error { flex-basis: 100%; color: var(--announcement-words); }
@media (min-width: 900px) {
    :root { --band-line: 2.7rem; }
    .window-foot .announcement { min-height: var(--band-line); padding-inline: max(2.5rem, calc((100% - 72rem) / 2 + 2.5rem)); }
}
/* What the bands take of the window (kvatr #379, lane AN-B, the lead's round after the look): --bands is one, two or three times --band-line for the
   bands standing in the window's foot, 0rem with none — set on the root, so the root's own scroll padding and every pane under the page read the same
   number. Every height of the window's a rule under the page takes subtracts it (Messages' and Tasks' split panes, Today's room rail;
   LookRulesTests names the heights that are the window's own), so a pane's foot — a typing box — ends above the bar. On a wide screen --band-line is
   a band on one line, 2.7rem — its 0.6rem padding twice and its 1.5rem line —, and the band's own min-height, so a one-line band is that tall; the
   hairline between two takes no room. Below 900px a band wraps, three or four lines at a phone's 390px (72–91px measured by the lead), and there
   --band-line is 6.5rem, AN ESTIMATE of a wrapped band (three or four lines at a phone's 390px measure 5.9rem and 7.4rem) — the one guessed number of the lane, used only for these heights and the scroll padding, never
   for the band's own height. A band longer than its token costs a pane those extra lines, under the bar, until the page is scrolled to its end.
   And nothing is scrolled into view under the bar: while the foot holds a band, the root's scroll padding at the bottom is the bands and, signed in,
   the footer line under them — a typing box scrolled to »nearest« and a control reached by Tab stop above the bar. */
:root:has(.window-foot .announcement) { --bands: var(--band-line); scroll-padding-bottom: calc(var(--bands) + env(safe-area-inset-bottom, 0px)); }
:root:has(.window-foot .announcement + .announcement) { --bands: calc(2 * var(--band-line)); }
:root:has(.window-foot .announcement + .announcement + .announcement) { --bands: calc(3 * var(--band-line)); }
:root:has(.shell .window-foot .announcement) { scroll-padding-bottom: calc(var(--footer-line) + var(--bands) + env(safe-area-inset-bottom, 0px)); }

/* The record of changes (Components/Pages/Admin/ChangesAdmin.razor, Components/Pages/KvatrChanges.razor; docs/audit.md »Where it shows«, lane AU1): a row's
   what is the kind's title, what it concerned under it, and a line per changed field under that; a value is kept as it was typed, a long one without a space
   among them breaking anywhere. */
.changes-what .changes-title, .changes-what .changes-concerned { display: block; }
.changes-what .changes-lines { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.changes-what .changes-lines li { padding: 0.1rem 0; }

/* Kvatr's journal (Components/Pages/KvatrJournal.razor; docs/journal.md »Where it shows«, lane JO1): the notes a list, each a head line — the house, who wrote
   it, when, »New« — over its words, drawn as text with the lines they were written with, a long word without a space breaking anywhere; its »Delete« and the
   question under them. The filter and the search on one line where they fit. */
.journal-filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; margin: 1rem 0 0.5rem; }
.journal-notes { list-style: none; margin: 0.5rem 0; padding: 0; }
.journal-notes > li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.journal-note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; margin: 0; font-size: 0.9rem; color: var(--muted); }
.journal-note-house { font-weight: 600; color: var(--text); }
.journal-note-new { font-weight: 600; color: var(--accent); }
.journal-note-text { margin: 0.25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-note-actions, .journal-note-question { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0.35rem 0 0; font-size: 0.9rem; }
