/* Shell and shared component vocabulary (see js/SCREEN-CONTRACT.md). */
* { box-sizing: border-box; scrollbar-color: rgba(58, 68, 89, .4) rgba(58, 68, 89, .05); } /* scroll tracks see-through, about 5% (founder, 7 Nov 2026) */
/* The hidden attribute always hides: layout classes (.stack, .card, flex/grid) must never override it. */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--c-body); background: var(--c-page); }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c-primary-border); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, bdi.num { font-variant-numeric: tabular-nums; }
.dt th.num, .dt td.num { text-align: end; } /* number columns: header and cells on the same edge */

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; } /* sidebar is the first column: right in RTL, left in LTR */
.side { background: var(--c-side); align-self: stretch; min-height: 100vh; } /* full page height column */
.side__inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 20px; }
.logo { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 4px 4px 0; margin-bottom: 22px; color: var(--c-text); font-size: 36px; font-weight: 800; letter-spacing: .5px; }
.logo svg { width: 40px; height: 46px; }
.biz { background: var(--c-side-card); border-radius: 12px; padding: 16px; margin-bottom: 22px; }
.biz__name { font-weight: 700; font-size: 16px; color: var(--c-text); }
.biz__sub { font-size: 12px; color: var(--c-body); margin-top: 4px; }
/* The business switch: an icon at the box's far edge, centred on the name row; its text is the tooltip (founder, 7 Nov 2026). */
.biz { position: relative; }
.biz > .biz__name { padding-inline-end: 32px; }
.biz__sub { list-style: none; cursor: pointer; }
.biz__sub::-webkit-details-marker { display: none; }
.biz__switch { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--c-text); transition: transform .15s; }
.biz__switch:hover { background: rgba(230, 212, 143, .6); }
.biz details[open] .biz__switch { transform: rotate(180deg); }
/* A long business name in the switcher wraps inside the box, never past the side menu (founder screenshot, 23 Nov 2026). */
.biz details .stack .btn { white-space: normal; max-width: 100%; height: auto; min-height: 36px; padding-block: 6px; justify-content: flex-start; text-align: start; line-height: 1.35; overflow-wrap: anywhere; }
.shell:not(.shell--rail) .biz__sub, .shell--unpinned .side:is(:hover, :focus-within) .biz__sub { position: absolute; inset-inline-end: 10px; top: 16px; margin: 0; }
.shell:not(.shell--rail) .biz:not(:has(details[open])) .biz__sub { top: 50%; transform: translateY(-50%); }
.shell--rail .biz__switch { display: none; }
.shell--unpinned .side:is(:hover, :focus-within) .biz__switch { display: inline-flex; }
.shell--unpinned .side:is(:hover, :focus-within) .biz:not(:has(details[open])) .biz__sub { top: 50%; transform: translateY(-50%); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
/* HES-15: tighter rows than before (13px/8px gaps), still a comfortable click area; long names wrap, never cut. */
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 42px; border-radius: 12px; color: var(--c-body); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.nav a:hover { background: rgba(230, 212, 143, .45); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--c-side-active); color: var(--c-text); font-weight: 700; }
.nav svg { width: 22px; height: 22px; flex: none; }
/* Menu groups (HES-15): the heading looks like a menu item and only opens or closes; the open/close arrow at the row's far end (the left in
   Hebrew); sub-items indented inward; the group of the current screen gets a softer mark than the current item itself. */
.nav__group > details > summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 42px; border-radius: 12px; color: var(--c-body); font-size: 15px; line-height: 1.35; cursor: pointer; list-style: none; }
.nav__group > details > summary::-webkit-details-marker { display: none; }
.nav__group > details > summary:hover { background: rgba(230, 212, 143, .45); }
.nav__group--current > details > summary { color: var(--c-text); font-weight: 600; background: rgba(230, 212, 143, .28); }
.nav__chev { display: inline-flex; margin-inline-start: auto; transition: transform .15s; font-style: normal; }
.nav__group > details[open] .nav__chev { transform: rotate(180deg); }
.nav__sub { margin-top: 2px; padding-inline-start: 22px; gap: 2px; }
.nav__sub a { padding: 8px 12px; min-height: 38px; font-size: 14.5px; }
.nav__sub svg { width: 20px; height: 20px; }
/* The fixed bottom part of the menu (settings, support), apart from the work area. */
.side__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4d6a3; }
/* SET10, the settings page: topics as cards, each a list of links. */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.set-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.set-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--c-text); text-decoration: none; }
.set-link:hover { background: rgba(230, 212, 143, .35); text-decoration: none; }
.set-link > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.set-link > svg:last-child { opacity: .55; }
[dir="rtl"] .set-link > svg:last-child { transform: scaleX(-1); }
.side__spacer { flex: 1; }
/* The sidebar is exactly the viewport height: the nav scrolls inside it, the logo, card, admin link and user card (logout) always stay visible. */
.side__inner { height: 100dvh; }
.side__inner > * { flex: none; }
.side__inner > .side__spacer { flex: 1 1 0; }
.user > :not(.user__avatar) { min-width: 0; flex: 1 1 auto; }
.user__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__inner > nav { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -6px; padding: 0 6px; } /* transparent scroll track (founder, 7 Nov 2026) */
.side__adminnav { padding-bottom: 12px; border-bottom: 1px solid #e4d6a3; margin-bottom: 16px; }
.synth { border: 1px solid #e4d6a3; background: rgba(255, 253, 244, .35); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.synth__title { font-weight: 700; color: var(--c-text); font-size: 14px; }
.synth__sub { font-size: 11.5px; color: var(--c-muted); margin-top: 6px; }
.side__admin { display: block; color: var(--c-body); font-size: 14px; padding: 6px 0 18px; border-bottom: 1px solid #e4d6a3; margin-bottom: 16px; }
.user { display: flex; align-items: flex-start; gap: 12px; } /* the initial level with the name and role, not with the sign-out under them (founder, 7 Nov 2026) */
.user__avatar { width: 40px; height: 40px; border-radius: 50%; background: #c9d5f2; color: var(--c-text); font-weight: 700; display: grid; place-items: center; font-size: 16px; flex: none; }
.user__name { font-weight: 700; color: var(--c-text); }
.user__role { font-size: 12px; color: var(--c-muted); }

.col { display: flex; flex-direction: column; min-width: 0; }
.top { height: var(--topbar-h); background: var(--c-top); border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); gap: 16px; position: sticky; top: 0; z-index: 5; }
.search { position: relative; width: 360px; max-width: 40vw; }
.search input { width: 100%; height: 44px; border-radius: 10px; border: 0; background: var(--c-search); padding: 0 44px 0 16px; color: var(--c-body); }
html[dir="ltr"] .search input { padding: 0 16px 0 44px; }
.search svg { position: absolute; top: 12px; inset-inline-start: 14px; width: 20px; height: 20px; color: var(--c-muted); }
.top__actions { display: flex; gap: 10px; }
.page { padding: 34px var(--pad) 24px; flex: 1; width: 100%; min-width: 0; } /* full available width (founder, 24 Oct 2026) */
.foot { display: flex; justify-content: space-between; padding: 14px var(--pad) 18px; font-size: 12px; color: var(--c-muted); }

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.crumbs { font-size: 12px; color: var(--c-link); margin-bottom: 10px; }
.page-head h1 { font-size: 30px; line-height: 1.2; margin: 0; color: var(--c-text); font-weight: 700; }
.page-head .sub { color: var(--c-body); font-size: 14px; margin: 8px 0 0; }
.page-head__actions { display: flex; gap: 10px; align-items: center; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--c-line); background: #fff; color: var(--c-text); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: #cfc6a6; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-text); }
.btn--primary:hover { border-color: var(--c-primary-border); }
.btn--outlined { border: 2px solid var(--c-primary-border); }
.btn--dark { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--c-link); }
.btn--muted { background: var(--c-cream); border-color: #e2d6ae; color: var(--c-chip-text); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- cards ---------- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 22px 20px; }
.card h2, .card__title { font-size: 20px; font-weight: 700; color: var(--c-text); margin: 0 0 16px; }
.card--hint { background: var(--c-hint); border-color: var(--c-hint); }
.card--muted { background: var(--c-cream); border-color: var(--c-cream); }
.card--yellow { background: #f0e3b1; border-color: #f0e3b1; }
.card--info { background: var(--c-info-bg); border-color: var(--c-info-bg); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--sm { gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.dt__fit { width: 1%; white-space: nowrap; } /* a column as narrow as its widest value (founder, 7 Nov 2026) */
.dt__fit .input, .dt__fit .select, .dt__fit .combo { width: 100%; min-width: 0; }
.dt__nowrap { white-space: nowrap; }
.row--field { flex-wrap: nowrap; } /* a control with a button beside it on one line (founder, 7 Nov 2026) */
.row--field > .input, .row--field > .select { flex: 1 1 auto; min-width: 0; width: auto; }
.row--field > .btn { flex: none; white-space: nowrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; }
.grid-2--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
.sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }
/* No top bar outside the overview (founder, 7 Nov 2026): nothing to clear, so sticky columns and frames start level with the page (founder, 10 Nov 2026). */
body:not(:has(header.top)) { --topbar-h: 0px; }

.stat { padding: 20px; min-height: 124px; }
.stat__label { color: var(--c-body); font-size: 13px; }
.stat__value { font-size: 30px; font-weight: 800; color: var(--c-text); margin: 10px 0 8px; }
.stat__note { font-size: 12px; color: var(--c-link); }
/* Compact summary boxes (founder, 8 Nov 2026: "reduce the height"): the label and its note on the start side, the figure beside them. */
.stat:not(.ovr-stat) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 4px; min-height: 0; padding: 12px 18px; }
.stat:not(.ovr-stat) > .stat__label { grid-column: 1; grid-row: 1; margin: 0; }
.stat:not(.ovr-stat) > .stat__note { grid-column: 1; grid-row: 2; margin: 0; }
.stat:not(.ovr-stat) > .stat__value { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 26px; line-height: 1.1; }
.stat:not(.ovr-stat) > :not(.stat__label):not(.stat__note):not(.stat__value) { grid-column: 1 / -1; }

/* ---------- hint band ---------- */
.band { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--c-hint); border-radius: var(--r-card); padding: 18px; }
.band__label { font-weight: 700; color: var(--c-text); }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn { min-height: 44px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-chip); background: var(--c-chip); color: var(--c-chip-text); font-size: 12px; white-space: nowrap; }
.chip--ok { background: var(--c-ok-bg); color: var(--c-ok); }
.chip--warn { background: var(--c-chip); color: var(--c-chip-text); }
.chip--info { background: var(--c-info-bg); color: var(--c-info); }
.chip--muted { background: #efede6; color: var(--c-muted); }
.chip--hold { background: var(--c-hold-bg); color: var(--c-hold); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tab { border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-ctl); padding: 8px 14px; font-weight: 500; cursor: pointer; color: var(--c-text); }
.tab[aria-pressed="true"], .tab[aria-selected="true"] { background: var(--c-hint); border-color: var(--c-hint); font-weight: 700; }
/* Segmented choice: base rules here so every screen gets them (until 23 Nov 2026 they lived only in screens-reg.css, loaded by REG01). */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt { border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-ctl); padding: 10px 14px; min-height: 44px; cursor: pointer; color: var(--c-text); text-align: start; font: inherit; }
.seg__opt[aria-pressed="true"], .seg__opt[aria-checked="true"] { background: var(--c-hint); border-color: var(--c-primary-border); font-weight: 700; }
.seg__opt[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- forms ---------- */
.filters { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 13px; color: var(--c-body); }
.field__hint { font-size: 12px; color: var(--c-muted); }
.field__error { font-size: 12px; color: var(--c-hold); }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-ctl); background: #fff; padding: 0 12px; color: var(--c-text); }
.textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border: 2px solid var(--c-primary-border); }
.input--active { border: 2px solid var(--c-primary-border); }
.input--error { border-color: var(--c-hold); }
.input[readonly] { background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- tables ---------- */
.dt-wrap { border: 1px solid var(--c-line); border-radius: 12px; overflow: auto; max-height: calc(100vh - var(--topbar-h) - 48px); background: #fff; } /* the table scrolls inside its frame so the header row stays frozen (founder, 24 Oct 2026) */
.dt { width: 100%; border-collapse: collapse; }
.dt thead { position: sticky; top: 0; z-index: 2; }
.dt thead th, .dt thead td { background: var(--c-cream); }
.dt th { background: var(--c-cream); font-weight: 500; font-size: 12px; color: var(--c-body); text-align: start; padding: 13px 14px; }
.dt td { padding: 0 14px; height: 50px; border-top: 1px solid var(--c-line-soft); color: var(--c-body); font-size: 13px; text-align: start; }
.dt--tall td { height: 66px; }
.dt tbody tr:nth-child(even) td { background: var(--c-row-alt); }
.dt__link { font-weight: 700; color: var(--c-text); }
.dt a.dt__link:hover { color: var(--c-link); }
.dt .muted-link, .dt td.tone { color: var(--c-link); }
.dt input.input { min-height: 36px; }
.dt-foot:empty { display: none; }
.dt-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: var(--c-muted); }
.dt-note { font-size: 12px; color: var(--c-muted); margin-top: 12px; }
/* ui.dataTable: sortable headers (a button per header, aria-sort) and a search box under each searchable header */
.dt-block .dt-wrap { overflow-x: auto; }
.dt__sort { all: unset; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.dt__sort:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; border-radius: 4px; }
.dt th[aria-sort="ascending"] .dt__sort, .dt th[aria-sort="descending"] .dt__sort { color: var(--c-text); font-weight: 700; }
.dt__sort-ind { font-size: 10px; }
.dt__filters td, .dt .dt__filters td { background: var(--c-cream); height: auto; padding: 0 8px 8px; border-top: 0; }
.dt__multi { all: unset; box-sizing: border-box; display: block; width: 100%; min-width: 64px; min-height: 30px; padding: 4px 8px; font-size: 12px; font-weight: 400; color: var(--c-body); background: var(--c-bg, #fff); border: 1px solid var(--c-line); border-radius: 8px; cursor: pointer; text-align: start; white-space: nowrap; }
.dt__multi::after { content: ' ▾'; font-size: 10px; }
.dt__multi.is-active { border-color: var(--c-link); color: var(--c-text); font-weight: 700; }
.dt__multi:focus-visible { outline: 2px solid var(--c-link); outline-offset: 1px; }
.dt__multi-panel { position: fixed; z-index: 1000; min-width: 180px; max-width: 320px; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 8px; }
.dt__multi-actions { display: flex; gap: 6px; margin-bottom: 6px; }
.dt__multi-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; }
.dt__multi-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.dt__multi-item:hover { background: var(--c-row-alt); }
@media print { .dt__filters { display: none; } }
.dt input.dt__filter { min-height: 30px; width: 100%; min-width: 64px; font-size: 12px; padding: 4px 8px; box-sizing: border-box; }

/* ---------- summary panel ---------- */
.summary { background: #f0e3b1; border-radius: var(--r-card); padding: 22px 20px; }
.summary h2 { font-size: 20px; font-weight: 700; color: var(--c-text); margin: 0 0 18px; }
.summary__row { display: flex; gap: 8px; justify-content: flex-start; font-size: 13px; color: var(--c-muted); margin: 0 0 14px; }
.summary__row b { color: var(--c-text); font-weight: 700; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.summary__total span { font-weight: 700; color: var(--c-text); font-size: 15px; }
.summary__total strong { font-size: 28px; font-weight: 800; color: var(--c-text); }
.small { font-size: 12px; color: var(--c-muted); }

/* key · value rows used in detail cards */
.kv { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0 0 14px; font-size: 14px; }
.kv__k { color: var(--c-muted); font-size: 13px; }
.kv__k::after { content: " ·"; }
.kv__v { color: var(--c-text); font-weight: 600; }

/* ---------- banners ---------- */
.banner { border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.banner__title { font-weight: 700; color: var(--c-text); margin: 0 0 6px; }
.banner__body { margin: 0; font-size: 13px; color: var(--c-body); }
.banner__actions { margin-top: 8px; font-weight: 700; font-size: 13px; }
.banner__actions a, .banner__actions button { color: var(--c-link); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.banner--info { background: var(--c-info-bg); }
.banner--ok { background: var(--c-ok-bg); }
.banner--warn { background: var(--c-warn-bg); }
.banner--unknown { background: var(--c-warn-bg); }
.banner--hold { background: var(--c-hold-bg); }
/* ui.markInvalid: the controls a server error names */
.input[aria-invalid="true"], .select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--c-hold); box-shadow: 0 0 0 1px var(--c-hold); }
[role="group"][aria-invalid="true"], [role="radiogroup"][aria-invalid="true"] { outline: 2px solid var(--c-hold); outline-offset: 3px; border-radius: 6px; }
input[type="checkbox"][aria-invalid="true"], input[type="radio"][aria-invalid="true"] { outline: 2px solid var(--c-hold); outline-offset: 2px; }

/* ---------- document preview ---------- */
.doc { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 28px 28px 22px; }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; }
.doc__issuer { font-size: 22px; font-weight: 800; color: var(--c-text); }
.doc__title { font-size: 24px; font-weight: 700; color: var(--c-text); margin: 28px 0 12px; }
.doc__meta { font-size: 12px; color: var(--c-link); padding-bottom: 20px; border-bottom: 1px solid var(--c-line); margin-bottom: 20px; }
.doc .dt-wrap { margin: 18px 0; }
.doc__totals .kv { margin-bottom: 12px; }
.doc__grand { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--c-line); padding-top: 14px; margin-top: 8px; }
.doc__grand span { font-weight: 700; color: var(--c-text); }
.doc__grand strong { font-size: 28px; font-weight: 800; color: var(--c-text); }
.doc__foot { border-top: 1px solid var(--c-line); margin-top: 16px; padding-top: 16px; font-size: 12px; color: var(--c-muted); }

.actions-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 24px; }
.actions-bar__main { display: flex; gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; color: var(--c-text); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { margin-bottom: 14px; }
.timeline b { color: var(--c-text); display: block; }

/* ---------- create cards (DOC02) ---------- */
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.kind-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 26px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.kind-card h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; color: var(--c-text); }
.kind-card h2 svg { width: 24px; height: 24px; }
.kind-card p { margin: 0; color: var(--c-body); }
.kind-card .btn { align-self: flex-start; }
.later-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.later { background: transparent; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.later h3 { margin: 0; font-size: 14px; color: var(--c-text); }
.later p { margin: 0; font-size: 13px; }

.toast { position: fixed; bottom: 20px; inset-inline-start: 20px; background: var(--c-text); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }

@media (max-width: 1100px) {
  /* minmax(0, 1fr), not 1fr: a wide child (a table, a long select) scrolls inside instead of widening the column past the window (founder,
     9 Nov 2026: the expense screen ran off a phone's screen) */
  .grid-2, .grid-2--wide { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .later-grid { grid-template-columns: minmax(0, 1fr); }
  .kind-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); } /* a wide child never widens the page past the viewport */
  .side { min-height: 0; }
  .side__inner { position: static; height: auto; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid > .field { grid-column: auto !important; }
  .row--field { flex-wrap: wrap; }
  .row--field > select, .row--field > .select { min-width: 0 !important; flex: 1 1 100%; }
  .page-head { flex-direction: column; }
  .search { width: 100%; max-width: none; }
  .top { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .top__actions { flex-wrap: wrap; min-width: 0; max-width: 100%; } /* 390 px: the three top-bar actions wrap instead of scrolling the page sideways */
  .page { padding: 20px 16px; }
}

/* the business-wide notice above the page (shell.js: the registration import is not finished) */
.page-notice { padding: 24px var(--pad) 0; width: 100%; }
.page-notice .banner { margin-bottom: 0; }
@media (max-width: 760px) { .page-notice { padding: 20px 16px 0; } }

/* frame alignment fixes */
.page:focus { outline: none; }
.kind-card > div, .kind-card .btn, .later > div { align-self: flex-end; }

/* IMP02 import wizard (founder 23 Oct 2026): stepper, one step panel, prev/next, the "full details" expander */
.wiz-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.wiz-step { flex: 1 1 120px; min-width: 0; }
.wiz-step__btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--r-ctl); background: var(--c-card); color: var(--c-text); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.wiz-step__btn:disabled { cursor: not-allowed; }
.wiz-step__num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; background: var(--c-line-soft); color: var(--c-muted); }
.wiz-step__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-step--done .wiz-step__num { background: var(--c-ok-bg); color: var(--c-ok); }
.wiz-step--current .wiz-step__btn { border-color: var(--c-primary-border); box-shadow: inset 0 -3px 0 var(--c-primary); font-weight: 600; }
.wiz-step--current .wiz-step__num { background: var(--c-primary); color: var(--c-primary-text); }
.wiz-step--open .wiz-step__num { background: var(--c-info-bg); color: var(--c-info); }
.wiz-step--locked .wiz-step__btn { color: var(--c-hint); background: var(--c-page); }
.wiz-panel .wiz-of { margin: 0; color: var(--c-muted); }
.wiz-panel .wiz-body { margin: 0; max-width: 72ch; }
.wiz-checks h3 { margin: 0 0 4px; font-size: 14px; }
.wiz-checks ul { margin: 0; padding-inline-start: 20px; }
.wiz-action { padding-top: 12px; border-top: 1px solid var(--c-line-soft); }
.wiz-action > .btn--primary, .wiz-action form .btn--primary { min-width: 180px; }
.wiz-secondary { margin: 8px 0 0; }
.wiz-reject { margin-top: 8px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-line-soft); }
/* The step fits the window (founder, 8 Nov 2026): wizard-fit.js sets the panel height; the middle scrolls, the nav stays at the foot and, while the page itself scrolls, at the window bottom. */
.wiz-panel { display: flex; flex-direction: column; }
.wiz-foot { position: sticky; bottom: 0; background: var(--c-card); z-index: 2; padding: 12px 0 4px; border-top: 1px solid var(--c-line-soft); }
.wiz-panel > .wiz-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: inherit; padding-inline: 2px; }
/* One scroll only (founder, 10 Nov 2026: two scrollbars): a table inside the scrolling step is shown at its full height; the step scrolls. */
.wiz-scroll .dt-wrap { max-height: none !important; height: auto !important; overflow-y: visible; }
/* A step whose content is one long table (founder, 11 Nov 2026): the table scrolls under its frozen header, the text above it stays. */
.wiz-scroll:has(.wiz-table-scroll) { overflow: hidden; }
.wiz-scroll:has(.wiz-table-scroll) > form, .wiz-table-scroll { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.wiz-scroll .wiz-table-scroll > .dt-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.wiz-panel > .wiz-nav { flex: none; position: sticky; bottom: 0; background: var(--c-card); z-index: 2; padding-bottom: 4px; }
.wiz-more > summary, .wiz-details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.wiz-details { padding: 12px 20px; }
.wiz-details__body { padding-top: 12px; }
.wiz-warn { padding: 16px; }
.wiz-warn h3 { margin: 0; }
.wiz-warn ul, .wiz-links { margin: 0; padding-inline-start: 20px; }
.wiz-done { margin: 0; }
@media (max-width: 760px) { .wiz-step { flex: 1 1 100%; } .wiz-step__label { white-space: normal; } }

/* ---------- sidebar collapse / expand and pin (shell.js applySideMode) ---------- */
.side__ctl { display: flex; justify-content: flex-end; gap: 4px; margin: -16px -8px 6px; }
.side__btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-body); cursor: pointer; }
.side__btn:hover { background: rgba(230, 212, 143, .45); }
.side__btn:focus-visible { outline: 2px solid var(--c-primary-border); outline-offset: 1px; }
html[dir="rtl"] .side__toggle svg { transform: scaleX(-1); } /* the sidebar is on the right in Hebrew: the panel icons mirror */
.biz__initial, .side__admin-icon { display: none; }
@media (min-width: 761px) {
  .shell { transition: grid-template-columns .2s ease; }
  .shell--rail { grid-template-columns: var(--sidebar-rail-w, 76px) minmax(0, 1fr); }
  .shell--rail .side__inner { width: var(--sidebar-rail-w, 76px); padding: 28px 10px 16px; background: var(--c-side); transition: width .2s ease, box-shadow .2s ease; }
  .shell--rail .side__ctl { flex-direction: column; align-items: center; margin: -16px 0 8px; }
  .shell--rail .logo { justify-content: center; padding: 0; }
  .shell--rail .logo span, .shell--rail .biz__name, .shell--rail .biz__subtext, .shell--rail .side__admin-text,
  .shell--rail .user__name, .shell--rail .user__role { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shell--rail .nav a > span { display: none; }
  .shell--rail .nav a { justify-content: center; padding: 12px 0; }
  .shell--rail .nav__group > details > summary { justify-content: center; padding: 12px 0; }
  .shell--rail .nav__group > details > summary > span, .shell--rail .nav__chev { display: none; }
  .shell--rail .nav__sub { padding-inline-start: 0; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav__group > details > summary { justify-content: flex-start; padding: 13px 16px; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav__group > details > summary > span { display: inline; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav__chev { display: inline-flex; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav__sub { padding-inline-start: 18px; }
  .shell--rail .biz { position: relative; padding: 8px 0; display: flex; justify-content: center; margin-bottom: 16px; }
  .shell--rail .biz summary { list-style: none; cursor: pointer; margin: 0; }
  .shell--rail .biz summary::-webkit-details-marker { display: none; }
  .shell--rail .biz__initial { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-side-active); color: var(--c-text); font-weight: 700; font-size: 16px; }
  /* the switcher and "הוספת עסק נוסף" open as a popover beside the rail */
  .shell--rail .biz details[open] > :not(summary) { position: absolute; inset-inline-start: calc(100% + 8px); top: 0; z-index: 30; width: 220px; background: var(--c-side-card); border-radius: 12px; padding: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); margin: 0 !important; }
  .shell--rail .side__admin { display: flex; justify-content: center; padding: 6px 0 14px; }
  .shell--rail .side__admin-icon { display: inline-flex; }
  .shell--rail .user { flex-direction: column; gap: 6px; align-items: center; }
  .shell--rail .user .btn { padding-inline: 6px; }
  /* unpinned: hovering or focusing the rail opens it over the page (the grid column stays narrow: no layout shift) */
  .shell--unpinned .side { position: relative; z-index: 20; }
  .shell--unpinned .side:hover .side__inner, .shell--unpinned .side:focus-within .side__inner { width: var(--sidebar-w); padding: 28px 20px 20px; box-shadow: 0 0 28px rgba(0, 0, 0, .18); }
  .shell--unpinned .side:is(:hover, :focus-within) :is(.logo span, .biz__name, .biz__subtext, .side__admin-text, .user__name, .user__role) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .shell--unpinned .side:is(:hover, :focus-within) .user__name { overflow: hidden; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav a { justify-content: flex-start; padding: 10px 14px; }
  .shell--unpinned .side:is(:hover, :focus-within) .nav a > span { display: inline; }
  .shell--unpinned .side:is(:hover, :focus-within) .side__ctl { flex-direction: row; justify-content: flex-end; margin: -16px -8px 6px; }
  .shell--unpinned .side:is(:hover, :focus-within) .logo { justify-content: flex-start; padding: 4px 4px 0; }
  .shell--unpinned .side:is(:hover, :focus-within) .biz { display: block; padding: 16px; margin-bottom: 22px; }
  .shell--unpinned .side:is(:hover, :focus-within) .biz__initial, .shell--unpinned .side:is(:hover, :focus-within) .side__admin-icon { display: none; }
  .shell--unpinned .side:is(:hover, :focus-within) .biz details[open] > :not(summary) { position: static; width: auto; box-shadow: none; padding: 0; background: none; margin: 8px 0 0 !important; }
  .shell--unpinned .side:is(:hover, :focus-within) .side__admin { display: block; padding: 6px 0 18px; }
  .shell--unpinned .side:is(:hover, :focus-within) .user { flex-direction: row; gap: 12px; }
}
@media (max-width: 760px) { .side__ctl { display: none; } } /* phone: the existing stacked sidebar, no rail */
@media (prefers-reduced-motion: reduce) { .shell, .shell--rail .side__inner { transition: none; } }
/* typed date field + calendar button (ui.enhanceDateInputs) */
.date-field { position: relative; display: block; }
.date-field > input:not([type="date"]) { width: 100%; padding-inline-end: 40px; box-sizing: border-box; }
.date-pick { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--c-link); display: inline-flex; border-radius: 8px; }
.date-pick:hover, .date-pick:focus-visible { background: var(--c-cream); }

/* Inputs with a list of options (js/combo.js): the same look as the rest of the product, not the browser's popup. */
.input.combo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233a4459' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 34px; }
html[dir="ltr"] .input.combo { background-position: right 14px center; padding-left: 14px; padding-right: 34px; }
/* Lists: the same arrow as the search lists, 14px from the edge and clear of the text (founder, 6 Nov 2026); the browser's own arrow sat on the edge. */
select.select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233a4459' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 34px; padding-right: 14px; }
html[dir="ltr"] select.select { background-position: right 14px center; padding-left: 14px; padding-right: 34px; }
select.select[multiple] { background-image: none; padding: 0 12px; }
.combo__list { position: fixed; z-index: 1000; margin: 0; padding: 4px; list-style: none; overflow-y: auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-ctl); box-shadow: 0 6px 18px rgba(35, 47, 72, .16); color: var(--c-body); font-size: 14px; }
.combo__item { padding: 8px 10px; border-radius: 6px; cursor: pointer; text-align: start; }
.combo__item[aria-selected="true"] { background: var(--c-primary); color: var(--c-primary-text); }
.combo__sub { color: var(--c-muted); font-size: 13px; }
.combo__item[aria-selected="true"] .combo__sub { color: inherit; }

/* A question mark next to a title: its text is the tooltip. */
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-muted); font-size: 13px; font-weight: 700; line-height: 1; vertical-align: middle; cursor: help; }

/* Work with no known percentage: a bar that keeps moving. */
.op-bar { position: relative; height: 8px; border-radius: 4px; background: var(--c-cream); overflow: hidden; }
.op-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -35%; width: 35%; border-radius: 4px; background: var(--c-primary-border); animation: op-bar-move 1.5s ease-in-out infinite; }
@keyframes op-bar-move { to { inset-inline-start: 100%; } }
@media (prefers-reduced-motion: reduce) { .op-bar::before { animation-duration: 6s; } }

/* The stages of a long operation. */
.op-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-stage { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--c-cream); color: var(--c-muted); }
.op-stage__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line); font-weight: 700; }
.op-stage--current { background: var(--c-hint); color: var(--c-text); font-weight: 700; }
.op-stage--done { color: var(--c-body); }
.op-stage--done .op-stage__mark { background: var(--c-ok-bg); color: var(--c-ok); border-color: transparent; }

/* The import wizard's last step, on one screen. */
.wiz-finish { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.wiz-finish .card { padding: 14px; gap: 6px; margin: 0; }
.wiz-finish h2, .wiz-finish h3 { font-size: 16px; margin: 0; }
.wiz-finish .kv { margin: 0; }
.wiz-finish .wiz-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }

/* Every column title on one line (founder, 6 Nov 2026): a title never breaks into two rows. */
.dt th, table.table th { white-space: nowrap; }

/* No breadcrumb row anywhere (founder, 7 Nov 2026). */
.crumbs, .qp-crumbs { display: none !important; }

/* A document copy that opens with its title has no extra space above it (founder, 7 Nov 2026). */
.doc > .doc__title:first-child, .doc > div:first-child > .doc__title { margin-top: 0 !important; }
.file-ui { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; } /* file inputs in the product's look (founder, 7 Nov 2026) */
.file-ui__btn { display: inline-flex; align-items: center; gap: 6px; }
.file-ui__name { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.file-ui__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.otp-code { font-size: 24px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; } /* the code box as on the sign-in screen (founder, 7 Nov 2026) */
/* A filter row with its title beside it (founder, 8 Nov 2026: less height): small labels, 36px fields. */
.filters-bar { display: flex; align-items: flex-end; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.filters-bar > .card__title { margin: 0 0 6px; white-space: nowrap; }
.filters-bar > .filters { flex: 1 1 640px; margin: 0; }
.filters--compact { gap: 8px 10px; }
.filters--compact .field { gap: 2px; margin: 0; }
.filters--compact .field > label, .filters--compact .field__label { font-size: 12px; margin: 0 0 2px; }
.filters--compact .input, .filters--compact .select { min-height: 36px; height: 36px; padding-block: 4px; }
/* Row actions: icons side by side; extra actions in a "more" dropdown (founder, 8 Nov 2026). */
.act-group { display: inline-flex; gap: 2px; align-items: center; white-space: nowrap; }
.act-menu { position: fixed; z-index: 70; min-width: 200px; background: var(--c-card, #fff); border: 1px solid var(--c-line, #ddd); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 4px; display: flex; flex-direction: column; }
.act-menu__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: none; text-align: start; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.act-menu__item:hover, .act-menu__item:focus-visible { background: var(--c-hover, rgba(0,0,0,.05)); }
/* A column at most 75px wide (founder, 8 Nov 2026: the lifecycle state); its chip and filter wrap or shrink inside. */
.dt th.dt__w75, .dt td.dt__w75 { width: 75px; max-width: 75px; min-width: 0; white-space: normal; }
.dt td.dt__w75 > * { max-width: 100%; white-space: normal; text-align: center; }
/* Dialogs open as overlays, not the browser's modal layer (ui.js overlayDialogs; founder, 8 Nov 2026). */
dialog.as-modal { position: fixed; inset-block: 0; max-height: calc(100% - 2em); overflow: auto; }
.dialog-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 30, .35); }
/* Date range field and its panel (founder, 8 Nov 2026). */
.date-range { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.date-range > span { direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.range-panel { position: fixed; z-index: 80; background: var(--c-card, #fff); border: 1px solid var(--c-line, #ddd); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px; width: 340px; display: grid; gap: 12px; }
.range-panel__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.range-panel__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-panel__dates .field { gap: 4px; }
.range-panel__actions { display: flex; justify-content: flex-end; gap: 8px; }
/* A multi-select filter field (founder, 8 Nov 2026). */
.multi-field { text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dt__multi-search { margin: 6px 0; min-height: 32px; }
/* The explanation behind an "i" (ui.infoTip; founder, 8 Nov 2026). */
.info-tip { color: var(--c-link); }
.info-pop { position: fixed; z-index: 85; max-width: 520px; min-width: 260px; background: var(--c-card, #fff); border: 1px solid var(--c-line, #ddd); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 14px; font-size: 13px; pointer-events: none; }
.info-pop__title { font-weight: 700; margin-bottom: 6px; }
.info-pop ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
/* The menu on a phone (founder, 9 Nov 2026): the logo row with a menu button; the rest opens on demand. */
.side__phonehead { display: contents; }
.side__phonebtn { display: none; }
@media (max-width: 760px) {
  .side__phonehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .side__phonebtn { display: inline-flex; }
  .shell { grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  .side:not(.side--open) .side__inner { padding: 10px 16px; }
  .side:not(.side--open) :is(.biz, .side__inner > nav, .side__foot, .side__spacer, .side__adminnav, .user) { display: none; }
}
/* Address verification (address-verify.js; founder, 9 Nov 2026) */
.addr-note { margin: 4px 0 0; color: var(--c-muted); }
.addr-note--ok { color: var(--c-ok); }
/* Google's address suggestions in our own list (address-autocomplete.js; founder, 10 Nov 2026) */
.addr-ac { position: absolute; z-index: 100; background: var(--c-card, #fff); border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); overflow: hidden; max-width: calc(100vw - 8px); }
.addr-ac__opt { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--c-line); font-size: 13px; }
.addr-ac__opt svg { flex: none; color: var(--c-muted); }
.addr-ac__opt[aria-selected="true"] { background: var(--c-hint); }
.addr-ac__sub { color: var(--c-muted); }
.addr-ac__by { padding: 4px 12px; text-align: end; font-size: 11px; color: var(--c-muted); }
/* The setup steps stay in view while the step scrolls (founder, 10 Nov 2026); a phone keeps them in the flow. */
.bst01-railnav { position: sticky; top: 16px; align-self: flex-start; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 760px) { .bst01-railnav { position: static; max-height: none; } }

/* ---------- the settings side menu (shell.js settingsSide; founder, 23 Nov 2026) ----------
   On a settings screen a second side menu stands beside the main one (to its left in Hebrew, its right in English); on a phone it is a
   collapsible block above the page. */
.shell--sub { grid-template-columns: var(--sidebar-w) var(--subside-w, 250px) minmax(0, 1fr); }
.subside { background: color-mix(in srgb, var(--c-side) 45%, #fff); border-inline-start: 1px solid #e4d6a3; min-width: 0; }
.subside__box { position: sticky; top: 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; scrollbar-width: thin; padding: 28px 14px 20px; }
.subside__summary { display: none; }
.subside__title { font-size: 20px; margin: 4px 8px 14px; color: var(--c-text); }
.subside__topic + .subside__topic { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece3c1; }
.subside__head { font-size: 13px; font-weight: 700; color: var(--c-body); margin: 0 10px 6px; opacity: .8; }
.subside__list a { padding: 8px 10px; min-height: 38px; font-size: 14.5px; }
.subside__list svg { width: 20px; height: 20px; }
@media (min-width: 761px) {
  .shell--rail.shell--sub { grid-template-columns: var(--sidebar-rail-w, 76px) var(--subside-w, 250px) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell--sub { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .subside { border-inline-start: 0; border-bottom: 1px solid #e4d6a3; }
  .subside__box { position: static; max-height: none; padding: 6px 16px; }
  .subside__summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; color: var(--c-text); }
  .subside__summary::-webkit-details-marker { display: none; }
  .subside__box[open] .nav__chev { transform: rotate(180deg); }
  .subside__title { display: none; }
  .subside__box[open] { padding-bottom: 14px; }
}
