/* Accsoft: the chosen look "A+ Night Ledger with glass finish" (15 Oct 2026).
   Navy background with a soft glow, amber highlights, frosted glass for the menu, top bar and summary boxes,
   and crisp, compact tables so many lines fit on one screen. Loaded after app.css and overrides its colours. */

/* Light mode: the same layout, on a soft paper-white, with a deeper amber so it reads on white. */
/* The CyRaSri house style (18 Nov 2026): warm paper and ink with Zopphire's own colour. Everyone starts here; the colour choices change it. */
:root, [data-theme="light"] {
  --bg: #F6F2EA;
  --surface: #FBF8F2;
  --surface-2: #F1ECE2;
  --border: #E2D8C8;
  --border-strong: #CBBBA5;
  --text: #1C1B19;
  --muted: #6B6458;
  --accent: #8C5A0E;
  --accent-hover: #6F470B;
  --accent-text: #FFFFFF;
  --accent-soft: #F7EBD3;
  --accent-ink: #8C5A0E;
  --nav-bg: transparent;
  --nav-text: #4A443A;
  --nav-active: #F7EBD3;
  --sel-row: #F3E9DD;
  --glass-bg: var(--surface);
  --glass-border: #E2D8C8;
  --glass-shadow: none;
  --table-head: #F1ECE2;
  --table-line: #E2D8C8;
  --row-hover: #F3E9DD;
  --glow: none;
  --pos: #3F6212;
  --neg: #9A3412;
  --logo-copper: #B9761A;
}

[data-theme="dark"] {
  --bg: #16150F;
  --surface: #1E1C16;
  --surface-2: #25221B;
  --border: #34302A;
  --border-strong: #4A443A;
  --text: #EDE6DA;
  --muted: #A89F90;
  --accent: #E8AB45;
  --accent-hover: #F3C677;
  --accent-text: #16150F;
  --accent-soft: rgba(234, 178, 90, 0.14);
  --accent-ink: #F2BE6A;
  --nav-bg: #0F0E0A;
  --nav-text: #BDB4A6;
  --nav-active: rgba(234, 178, 90, 0.14);
  --sel-row: #2E241A;
  --glass-bg: var(--surface);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: none;
  --table-head: #25221B;
  --table-line: rgba(255, 255, 255, 0.06);
  --row-hover: rgba(229, 165, 116, 0.08);
  --glow: none;
  --pos: #9BC57A;
  --neg: #F2A08F;
  --logo-copper: #E8AB45;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #16150F; --surface: #1E1C16; --surface-2: #25221B; --border: #34302A; --border-strong: #4A443A;
    --text: #EDE6DA; --muted: #A89F90; --accent: #E8AB45; --accent-hover: #F3C677; --accent-text: #16150F;
    --accent-soft: rgba(234, 178, 90, 0.14); --accent-ink: #F2BE6A; --nav-bg: #0F0E0A; --nav-text: #BDB4A6;
    --nav-active: rgba(234, 178, 90, 0.14); --sel-row: #2E241A;
    --glass-bg: var(--surface); --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: none;
    --table-head: #25221B; --table-line: rgba(255, 255, 255, 0.06); --row-hover: rgba(229, 165, 116, 0.08);
    --glow: none;
    --pos: #9BC57A; --neg: #F2A08F; --logo-copper: #E8AB45;
    color-scheme: dark;
  }
}
body.staff, body.public { background: var(--glow), var(--bg); background-attachment: fixed; font-size: 13.5px; }

/* Glass panels: the menu, the top bar, summary boxes and the login card */
.glass { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }

/* The frame: menu and top bar float as rounded glass panels */
.shell { gap: 14px; padding: 14px; }
.side { width: 248px; height: calc(100vh - 28px); top: 14px; border-radius: 18px; padding: 16px 10px; gap: 12px; color: var(--text); }
.side::-webkit-scrollbar-thumb { background: rgba(127,127,127,.3); }
.main-col { gap: 14px; }
.topbar { border-radius: 18px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--glass-border); }
.content { padding: 4px 4px 0; gap: 16px; max-width: none; }
.top-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }

/* Brand: the first letter, same font and size as the rest, inside a square drawn in two copper lines with a dot top and
   bottom (as Aiglith's jewel); then the rest of the name, its "i" in copper. */
.brand { color: var(--text); padding: 6px 10px 8px; }
.brand:hover { color: var(--text); }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 25px; letter-spacing: -0.01em; display: inline-flex; align-items: center; color: var(--text); }
.public-top .wordmark { font-size: 34px; }
.wm-mark { width: 1.5em; height: 1.5em; margin-right: .05em; display: inline-grid; place-items: center; position: relative; flex: none; }
.wm-frame { position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.wm-frame rect { fill: none; stroke: var(--logo-copper); vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 0; }
.wm-frame .wm-edge { stroke-width: 2px; }
.wm-frame .wm-inner { display: inline; stroke-width: 1.1px; opacity: .85; }
.wm-frame .wm-dot { fill: var(--logo-copper); }
.wm-first { color: var(--text); font-size: 1em; line-height: 1; position: relative; top: .02em; }
.wordmark .wm-i { color: var(--logo-copper); }
@media (prefers-reduced-motion: no-preference) {
  .wordmark .wm-l:nth-child(7) { animation-delay: 1.80s; } .wordmark .wm-l:nth-child(8) { animation-delay: 1.90s; }
  .wordmark .wm-l.wm-i { animation-delay: 1.60s, 2.6s; }
  .public-top .wordmark .wm-l:nth-child(7) { animation-delay: 3.6s; } .public-top .wordmark .wm-l:nth-child(8) { animation-delay: 3.8s; }
  .public-top .wordmark .wm-l.wm-i { animation-delay: 3.2s, 4.9s; }
}
/* The name draws itself on every page: on opening, on refreshing and on each click to another page. */

/* The foldable menu */
.menu-tools { display: flex; gap: 6px; padding: 0 4px; }
.chip-btn { flex: 1; min-height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(127,127,127,.06); color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.chip-btn:hover { color: var(--text); background: rgba(127,127,127,.12); }
.nav { gap: 1px; }
.nav-group > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; color: var(--nav-text); font-weight: 500; user-select: none; white-space: nowrap; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: rgba(127,127,127,.09); color: var(--text); }
.nav-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-group.holds-active > summary { color: var(--accent-ink); background: rgba(234,178,90,.08); }
.nav-group .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-group .nav-count { background: none; color: var(--muted); font-weight: 500; min-width: 0; padding: 0; margin: 0; font-size: 11px; }
.nav-caret { width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px; }
.nav-group[open] > summary .nav-caret { transform: rotate(45deg); }
.nav-pages { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--glass-border); }
.nav .nav-pages a { padding: 5px 10px; border-radius: 8px; font-size: 12.8px; font-weight: 400; color: var(--nav-text); white-space: normal; line-height: 1.3; }
.nav .nav-pages a:hover { background: rgba(127,127,127,.09); color: var(--text); }
.nav .nav-pages a.planned { opacity: .62; }
.nav .nav-pages .nav-sub { display: block; padding: 8px 10px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav .nav-pages .nav-sub:first-child { padding-top: 2px; }
.nav .nav-pages a.on { background: var(--nav-active); color: var(--accent-ink); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(234,178,90,.35); opacity: 1; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.side-top .brand { min-width: 0; }
.fold-btn { color: var(--nav-text); flex: none; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.fold-btn svg { width: 18px; height: 18px; }
.side-folded .side-top { flex-direction: column; align-items: center; }
.fold-btn:hover { color: var(--text); background: rgba(127,127,127,.09); }
@media (min-width: 761px) {
  .side-folded .side { width: 68px; padding: 16px 8px; }
  .side-folded .side .menu-tools, .side-folded .side .nav-count, .side-folded .side .nav-caret, .side-folded .side .nav-pages { display: none; }
  .side-folded .side .nav-group > summary { justify-content: center; padding: 10px 0; }
}
@media (max-width: 760px) {
  .shell { padding: 8px; gap: 8px; }
  .side { height: auto; position: relative; top: 0; }
  .js .side .menu-tools { display: none; }
  .js .side.open .menu-tools { display: flex; flex-basis: 100%; }
}

/* Top bar: company switch, search, theme, the person */
.company-switch { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(127,127,127,.06); font-size: 13px; }
.company-switch .switch-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.company-switch select { width: auto; min-height: 30px; padding: 2px 10px; font-weight: 600; border: 0; background: transparent; color: var(--text); }
.company-switch b { padding-right: 10px; }
.top-search { position: relative; flex: 1 1 240px; max-width: 460px; display: flex; align-items: center; }
.top-search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.top-search input { width: 100%; min-height: 36px; padding: 6px 14px 6px 36px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(127,127,127,.06); color: var(--text); font: inherit; }
.top-search input:disabled { opacity: .7; cursor: not-allowed; }
.theme-switch { border-radius: 999px; background: rgba(127,127,127,.06); border-color: var(--glass-border); }
.theme-switch .seg { border-radius: 999px; }
@media (max-width: 760px) { .company-switch .switch-label, .top-search { display: none; } }

/* Buttons and fields: rounded pills */
.btn { border-radius: 999px; }
.btn.primary { background: linear-gradient(140deg, #F5CD8A, #D9932F); border-color: transparent; color: #111A28; box-shadow: 0 4px 14px rgba(234,178,90,.28); }
.btn.primary:hover { background: linear-gradient(140deg, #F8D79E, #E3A040); color: #111A28; }
[data-theme="light"] .btn.primary { background: linear-gradient(140deg, #D99A3A, #B9761A); color: #FFFFFF; }

/* Cards: solid and crisp, so figures stay sharp */
.card { border-radius: 16px; background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .card { background: #1E1C16; border-color: rgba(255,255,255,.08); }
[data-look="navy"] .card { background: rgba(14, 22, 36, .82); border-color: rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { [data-theme="system"] .card { background: #1E1C16; border-color: rgba(255,255,255,.08); } }
.card-head { padding: 12px 16px; }
h1 { font-size: 21px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }

/* Tables: compact rows, fixed headings, figures in even-width digits */
.table th { background: var(--table-head); padding: 8px 10px; font-weight: 500; letter-spacing: .5px; }
.table td { padding: 6px 10px; border-top: 1px solid var(--table-line); }
.table th:first-child, .table td:first-child { padding-left: 16px; }
.table.dense td { padding: 5px 10px; }
.table tbody tr:hover td { background: var(--row-hover); }
.table thead th { position: sticky; top: 0; z-index: 1; }
.num, .table td.num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
tr[data-href] { cursor: pointer; }

/* Summary boxes above a page */
.summary-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile.accent { border-color: rgba(234,178,90,.38); }
.tile-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.tile-value { font-size: 19px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-value.small { font-size: 14px; white-space: normal; }
.tile.accent .tile-value { color: var(--accent-ink); }
.tile-value.muted-value { color: var(--muted); }
.tile-sub { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .summary-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.code-chip { display: inline-block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); letter-spacing: .4px; }
.code-chip.lg { font-size: 14px; padding: 2px 9px; vertical-align: 3px; }

/* Getting started list and progress */
.checklist { list-style: none; margin: 0; padding: 6px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 16px; }
.checklist li + li { border-top: 1px solid var(--table-line); }
.checklist a { text-decoration: none; color: var(--text); }
.checklist a:hover { color: var(--accent-ink); }
.check { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--border-strong); margin-top: 2px; }
.checklist li.done .check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.checklist li.done b { color: var(--muted); font-weight: 500; }
.progress-wrap { padding: 16px; }
.progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: rgba(127,127,127,.15); overflow: hidden; margin-bottom: 12px; appearance: none; -webkit-appearance: none; }
.progress::-webkit-progress-bar { background: rgba(127,127,127,.15); border-radius: 99px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, #D9932F, #F5CD8A); border-radius: 99px; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, #D9932F, #F5CD8A); border-radius: 99px; }
input.upper { text-transform: uppercase; }
input.upper::placeholder { text-transform: none; }

/* Pages on the build list */
.planned-card p { font-size: 15px; line-height: 1.6; }
.sibling-list { list-style: none; margin: 0; padding: 4px 0; }
.sibling-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 16px; }
.sibling-list li + li { border-top: 1px solid var(--table-line); }
.sibling-list li.here { background: var(--sel-row); }
.sibling-list a { color: var(--text); text-decoration: none; }
.sibling-list li.here a { color: var(--accent-ink); font-weight: 500; }

.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h1, .empty-state h2 { margin: 0; }
details.more summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; margin-bottom: 8px; }

/* Login card */
.public-card { border-radius: 20px; }

/* Compact pages (asked for on 15 Oct 2026): everything inside the pages is smaller, so more fits on one screen.
   The left menu keeps its size. All of this is limited to the right-hand side (.main-col). */
.main-col { font-size: 12.5px; }
.main-col .topbar { min-height: 46px; padding: 5px 12px; }
.main-col .company-switch { font-size: 12px; padding: 2px 3px 2px 10px; }
.main-col .company-switch select { min-height: 26px; font-size: 12.5px; }
.main-col .top-search input { min-height: 30px; font-size: 12.5px; }
.main-col .theme-switch .seg { padding: 4px 7px; }
.main-col .me-text { font-size: 12px; }
.main-col .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.main-col .content { gap: 12px; }
.main-col h1 { font-size: 17px; }
.main-col h2 { font-size: 13.5px; margin-bottom: 8px; }
.main-col .page-head p { margin-top: 3px; font-size: 12px; }
.main-col .page-back { font-size: 12px; }
.main-col .eyebrow { font-size: 10.5px; }
.main-col .card { padding: 14px; border-radius: 12px; }
.main-col .card.flush { padding: 0; }
.main-col .card-head { padding: 9px 14px; }
.main-col .cols { gap: 12px; grid-template-columns: minmax(0, 1fr) 300px; }
.main-col .stack { gap: 9px; }
.main-col .stack-lg { gap: 12px; }
.main-col .row2 { gap: 9px; }
.main-col label { font-size: 12px; }
.main-col label > input, .main-col label > select, .main-col label > textarea { margin-top: 3px; }
.main-col label.radio { font-size: 12.5px; gap: 8px; }
.main-col input[type=text], .main-col input[type=email], .main-col input[type=tel], .main-col input[type=password], .main-col input[type=date],
.main-col input[type=number], .main-col input[type=search], .main-col input:not([type]), .main-col select, .main-col textarea { min-height: 30px; padding: 4px 9px; font-size: 12.5px; border-radius: 8px; }
.main-col small, .main-col .small, .main-col .sub { font-size: 11px; }
.main-col .btn { min-height: 30px; padding: 0 13px; font-size: 12.5px; }
.main-col .btn.sm { min-height: 26px; padding: 0 10px; font-size: 11.5px; }
.main-col .badge { padding: 1px 8px; font-size: 10.5px; }
.main-col .flash { padding: 8px 12px; font-size: 12.5px; }
.main-col .table th { padding: 6px 8px; font-size: 10px; }
.main-col .table td { padding: 4px 8px; font-size: 12px; }
.main-col .table.dense td { padding: 3px 8px; }
.main-col .table th:first-child, .main-col .table td:first-child { padding-left: 12px; }
.main-col .summary-tiles { gap: 8px; }
.main-col .tile { padding: 7px 11px; border-radius: 12px; }
.main-col .tile-label { font-size: 10px; }
.main-col .tile-value { font-size: 15px; }
.main-col .tile-value.small { font-size: 12.5px; }
.main-col .tile-sub { font-size: 10.5px; }
.main-col .code-chip { font-size: 10.5px; padding: 0 6px; }
.main-col .code-chip.lg { font-size: 12px; }
.main-col .checklist li { padding: 6px 14px; gap: 10px; }
.main-col .check { flex-basis: 15px; height: 15px; }
.main-col .sibling-list li { padding: 5px 14px; }
.main-col .planned-card p { font-size: 13px; }
.main-col .details-list { gap: 4px 14px; }
.main-col .empty-state { padding: 28px 16px; }
.main-col .maker-foot { font-size: 12px; padding: 12px 16px 16px; }
.main-col .top-search input { padding-left: 32px; border-radius: 999px; }
.main-col .top-search svg { left: 10px; width: 15px; height: 15px; }
.main-col .company-switch select { border-radius: 999px; padding: 2px 8px; }

/* The page with a side panel (asked for on 15 Oct 2026): the panel starts at the very top, beside the title,
   and a small round handle on its edge hides it and shows it again. Every page with a panel uses this. */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w, 300px); gap: 16px; align-items: start; transition: grid-template-columns .18s ease; }
.page-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* The page scrolls; its boxes keep their full height (with many boxes, or the bar of minimised pages taking room, they were squeezed). */
.page-main > *, .main-col > .content > * { flex-shrink: 0; }
.page-panel { position: relative; display: flex; flex-direction: column; min-width: 0; }
.panel-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel-handle { position: absolute; left: auto; right: calc(var(--panel-w, 300px) + 5px); top: 8px; z-index: 3; width: 22px; height: 22px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(234,178,90,.4); background: var(--surface); color: var(--accent-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.panel-handle svg { width: 13px; height: 13px; transition: transform .18s ease; }
.panel-handle:hover { background: var(--accent); color: var(--accent-text); }
.panel-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 1101px) {
  body.panel-hidden .page-grid { grid-template-columns: minmax(0, 1fr) 0; gap: 14px; }
  body.panel-hidden .panel-body { display: none; }
  body.panel-hidden .panel-handle { right: 3px; }
  body.panel-hidden .panel-handle svg { transform: rotate(180deg); }
}
@media (max-width: 1100px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .panel-handle { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-grid, .panel-handle svg { transition: none; } }
.page-panel .card, .page-panel .fold-box { border-radius: 12px; }

/* Buttons with a small picture */
.btn.ico { display: inline-flex; align-items: center; gap: 6px; }
.btn.ico svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn.icon-only { padding: 0; width: 28px; justify-content: center; }
.btn.icon-only span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.row-actions form { display: inline; }

/* A small round "i" that explains on hover */
.tip { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--muted); font: 600 10px/1 'IBM Plex Sans', sans-serif; font-style: italic; cursor: help; vertical-align: 1px; margin-left: 4px; }
.tip:hover, .tip:focus-visible { color: var(--accent-ink); border-color: var(--accent); }

/* Filter box above a table */
.table-filter { position: relative; display: inline-flex; align-items: center; }
.table-filter svg { position: absolute; left: 9px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.main-col .table-filter input { min-height: 26px; width: 190px; padding: 2px 10px 2px 28px; border-radius: 999px; font-size: 12px; }

/* Headings that fold their box: the whole heading is the button */
.fold-box .card-head { cursor: pointer; }
.fold-box .card-head h2 { margin: 0; font-size: 13px; }
.fold-toggle span { font-weight: 600; }
.head-actions { display: inline-flex; gap: 6px; align-items: center; }
.page-head h1 .count-chip, .card-head .count-chip { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: rgba(127,127,127,.14); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: 2px; }
.form-actions { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--table-line); }
.planned-text { font-size: 13.5px; line-height: 1.6; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(127,127,127,.35); flex-shrink: 0; }
.dot.on { background: var(--pos); }
.main-col .fold-pad { padding: 10px 14px 14px; }
.main-col details.more summary { margin-bottom: 4px; }

/* Chart of accounts */
.num-code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-ink); }
.table tr.inactive td { opacity: .55; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select { flex: 1; min-width: 0; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-list { margin: 0; padding-left: 16px; display: grid; gap: 6px; }
.need-cat select { min-width: 220px; border-color: var(--accent); }
.empty-state .stack { align-items: center; }
.main-col .card-head .table-filter { margin-left: auto; }
.table.accounts td { white-space: nowrap; }
.table.accounts td:nth-child(2) { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.main-col input[type=file] { font: inherit; font-size: 12px; color: var(--muted); max-width: 100%; }
.main-col input[type=file]::file-selector-button { font: inherit; font-size: 12px; margin-right: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(127,127,127,.1); color: var(--text); cursor: pointer; }
.main-col .row2.code-name { grid-template-columns: 150px minmax(0, 1fr); }

/* Journals */
.jnl-head { display: grid; grid-template-columns: 160px 180px minmax(0, 1fr); gap: 10px; }
@media (max-width: 760px) { .jnl-head { grid-template-columns: minmax(0, 1fr); } }
.entry-grid td { padding: 2px 4px !important; }
.entry-grid th:first-child, .entry-grid td:first-child { padding-left: 10px !important; }
.entry-grid .ln { width: 30px; color: var(--muted); font-size: 11px; }
.entry-grid th:nth-child(2) { width: 30%; }
.entry-grid th:nth-child(5), .entry-grid th:nth-child(6) { width: 130px; }
.entry-grid input { min-width: 0; width: 100%; box-sizing: border-box; }
.entry-grid.resized { table-layout: fixed; }
.main-col .entry-grid input { min-height: 28px; border-color: transparent; background: rgba(127,127,127,.06); border-radius: 6px; }
.main-col .entry-grid input:focus { background: var(--surface); border-color: var(--accent); }
.entry-grid input.amt { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.entry-grid input.unknown { border-color: var(--danger) !important; }
.entry-grid tr.has-problem td { background: rgba(240,112,102,.08); }
.entry-grid tfoot td { padding: 6px 8px !important; border-top: 1px solid var(--border); }
.entry-grid tfoot .num b { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.entry-grid .diff-row td { border-top: 0; padding-top: 0 !important; }
[data-diff].off { color: var(--neg); }
.balance-state { font-size: 12px; font-weight: 600; }
.balance-state.ok { color: var(--pos); }
.balance-state.off { color: var(--neg); }
.sticky-actions { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 35%); border-top: 0; }
kbd { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(127,127,127,.08); }
.details-list.keys { grid-template-columns: 54px 1fr; }

/* Ledger and trial balance */
.enquiry-pick { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .enquiry-pick { grid-template-columns: minmax(0, 1fr); } }
.table.ledger tr.bf td { color: var(--muted); }
.table.tb td:nth-child(2) { max-width: 380px; }
.period-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.period-chips { align-items: center; }
.period-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 6px; }
.period-custom label { display: flex; align-items: center; gap: 4px; font-size: .85rem; margin: 0; }
.period-custom input[type=date] { width: auto; padding: 4px 6px; }
.period-custom.on input[type=date] { border-color: var(--accent, #e0a63a); }
.num-list dd { text-align: right; }
a.tile { text-decoration: none; color: inherit; }
a.tile:hover { border-color: rgba(234,178,90,.45); }
.table.tb td, .table.ledger td, .table.dense td.nowrap { white-space: nowrap; }
.main-col .table td a:not(.btn) { color: inherit; text-decoration: none; }
.main-col .table td a:not(.btn):hover { color: var(--accent-ink); text-decoration: underline; }
.main-col .table td a.num-code { color: var(--accent-ink); }

/* Resizable columns: a handle on the right edge of each heading */
.table th { position: relative; }
.table thead th { position: sticky; }
.col-grip { position: absolute; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.col-grip::after { content: ''; position: absolute; top: 25%; bottom: 25%; left: 7px; width: 1px; background: rgba(127,127,127,.35); }
.table th:hover .col-grip::after, .col-grip:active::after { background: var(--accent); width: 2px; left: 3px; }
.table.resized { table-layout: fixed; }
.table.resized td, .table.resized th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table.resized td:has(input), .table.resized td:has(select) { overflow: visible; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
/* Amounts are never cut short: their column cannot be dragged narrower than the widest amount. */
.table.resized td.num { text-overflow: clip; }
.check-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; }
.check-mark { flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.check-list li.ok .check-mark { background: rgba(127,208,168,.18); color: var(--pos); }
.check-list li.fail .check-mark { background: rgba(240,112,102,.2); color: var(--neg); }
.check-list li.fail b { color: var(--neg); }


/* The search row under the column headings */
.table thead tr.filter-row th { padding: 3px 4px 5px; background: var(--table-head); border-bottom: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
.table thead tr.filter-row th:first-child { padding-left: 10px; }
.main-col .table thead tr.filter-row input { width: 100%; min-width: 0; min-height: 24px; padding: 2px 7px; font-size: 11.5px; border-radius: 6px;
  border: 1px solid transparent; background: rgba(127,127,127,.09); color: var(--text); font-weight: 400; }
.main-col .table thead tr.filter-row input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.main-col .table thead tr.filter-row th.num input, .main-col .table thead tr.filter-row input[placeholder=">1000"] { text-align: right; }
.main-col .table thead tr.filter-row input::placeholder { color: var(--muted); opacity: .6; }
.table tfoot tr.shown-row td { color: var(--accent-ink); font-weight: 600; border-top: 1px solid rgba(234,178,90,.3); white-space: nowrap; }
.table.is-filtered tfoot tr:not(.shown-row) td { opacity: .55; }

/* The centre window scrolls on its own, up and down and sideways, beside the panel (16 Oct 2026).
   The page itself stays put: the menu, the top bar and the panel keep their place while the centre scrolls.
   Long tables scroll inside their box, with the headings and the totals always in view. */
@media (min-width: 1101px) {
  body.staff { height: 100vh; overflow: hidden; }
  .shell { height: 100vh; min-height: 0; }
  .main-col { min-height: 0; height: calc(100vh - 28px); }
  .main-col > .content { flex: 1; min-height: 0; overflow: auto; padding-right: 4px; }
  .main-col > .content:has(> .page-grid) { overflow: hidden; }
  .page-grid { position: relative; height: 100%; min-height: 0; }
  .page-main { height: 100%; min-height: 0; overflow: auto; padding: 0 6px 16px 0; }
  .page-panel { height: 100%; min-height: 0; overflow-y: auto; padding-bottom: 16px; }
  .panel-handle { left: auto; right: calc(var(--panel-w, 300px) + 3px); top: 8px; }
  body.panel-hidden .panel-handle { right: -6px; }
  .page-main .table-wrap { max-height: calc(100vh - 230px); overflow: auto; }
  .page-main .fold-box .table-wrap { overscroll-behavior: contain; }
  .table tfoot td { position: sticky; bottom: 0; z-index: 1; background: var(--table-head); }
  .main-col .maker-foot { padding: 6px 16px 4px; }
}
/* Slim, quiet scrollbars that match the dark look */
.page-main, .page-panel, .table-wrap, .content { scrollbar-width: thin; scrollbar-color: rgba(127,127,127,.35) transparent; }
.page-main::-webkit-scrollbar, .page-panel::-webkit-scrollbar, .table-wrap::-webkit-scrollbar, .content::-webkit-scrollbar { width: 9px; height: 9px; }
.page-main::-webkit-scrollbar-thumb, .page-panel::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb { background: rgba(127,127,127,.35); border-radius: 9px; }
.page-main::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(234,178,90,.6); }
.table-wrap::-webkit-scrollbar-corner, .page-main::-webkit-scrollbar-corner { background: transparent; }
@media (min-width: 1101px) { body.panel-hidden .panel-handle { left: auto; } }
/* Frozen columns stay on the left while the table scrolls sideways */
.table .frozen { position: sticky; z-index: 1; background: var(--surface); }
[data-theme="dark"] .table td.frozen { background: #1E1C16; }
[data-look="navy"] .table td.frozen { background: #0f1828; }
@media (prefers-color-scheme: dark) { [data-theme="system"] .table td.frozen { background: #1E1C16; } }
.table thead th.frozen { z-index: 3; background: var(--table-head); }
.table tfoot td.frozen { z-index: 2; background: var(--table-head); }
.table .frozen-last { box-shadow: 6px 0 8px -6px rgba(0,0,0,.45); }
.table tbody tr:hover td.frozen { background: linear-gradient(var(--row-hover), var(--row-hover)), var(--surface); }
[data-theme="dark"] .table tbody tr:hover td.frozen { background: #2A261E; }
[data-look="navy"] .table tbody tr:hover td.frozen { background: #18233a; }
@media (prefers-color-scheme: dark) { [data-theme="system"] .table tbody tr:hover td.frozen { background: #2A261E; } }
[data-theme="light"] .table .frozen-last { box-shadow: 6px 0 8px -6px rgba(20,30,50,.18); }
@media (prefers-color-scheme: light) { [data-theme="system"] .table .frozen-last { box-shadow: 6px 0 8px -6px rgba(20,30,50,.18); } }

/* Column families, so figures of a different kind are told apart at a glance (16 Oct 2026):
   balance (amber, the main colour), movement (soft blue), history (soft violet). A faint tint behind each column,
   a coloured line on top of its heading, and a divider where a family starts. Light mode uses deeper versions. */
:root, [data-theme="light"] {
  --fam-bal: #B9761A;  --fam-bal-tint: rgba(232,171,69,.07);
  --fam-mv: #2F6FC2;   --fam-mv-tint: rgba(70,130,210,.06);
  --fam-hist: #7A55C4; --fam-hist-tint: rgba(140,100,220,.06);
}
[data-theme="dark"] {
  --fam-bal: #F2BE6A;  --fam-bal-tint: rgba(234,178,90,.055);
  --fam-mv: #8DB6F2;   --fam-mv-tint: rgba(110,160,235,.06);
  --fam-hist: #BCA5F0; --fam-hist-tint: rgba(170,140,235,.06);
}
@media (prefers-color-scheme: dark) { [data-theme="system"] {
  --fam-bal: #F2BE6A;  --fam-bal-tint: rgba(234,178,90,.055);
  --fam-mv: #8DB6F2;   --fam-mv-tint: rgba(110,160,235,.06);
  --fam-hist: #BCA5F0; --fam-hist-tint: rgba(170,140,235,.06);
} }
.table td.g-bal { background-image: linear-gradient(var(--fam-bal-tint), var(--fam-bal-tint)); }
.table td.g-mv { background-image: linear-gradient(var(--fam-mv-tint), var(--fam-mv-tint)); color: var(--fam-mv); }
.table td.g-hist { background-image: linear-gradient(var(--fam-hist-tint), var(--fam-hist-tint)); color: var(--fam-hist); }
.table thead tr:first-child th.g-bal { color: var(--fam-bal); box-shadow: inset 0 2px 0 var(--fam-bal); }
.table thead tr:first-child th.g-mv { color: var(--fam-mv); box-shadow: inset 0 2px 0 var(--fam-mv); }
.table thead tr:first-child th.g-hist { color: var(--fam-hist); box-shadow: inset 0 2px 0 var(--fam-hist); }
.table th.g-start, .table td.g-start { border-left: 1px solid var(--border); }
.table tfoot td.g-bal { color: var(--text); }
.table tfoot td.g-mv { color: var(--fam-mv); }
.table tfoot td.g-hist { color: var(--fam-hist); }
.table tbody tr:hover td.g-bal, .table tbody tr:hover td.g-mv, .table tbody tr:hover td.g-hist { background-image: linear-gradient(var(--row-hover), var(--row-hover)); }
.col-legend { display: inline-flex; gap: 12px; margin-left: auto; font-size: 11px; color: var(--muted); }
.col-legend .lg::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.col-legend .lg.g-bal::before { background: var(--fam-bal); }
.col-legend .lg.g-mv::before { background: var(--fam-mv); }
.col-legend .lg.g-hist::before { background: var(--fam-hist); }

/* Export buttons: one joined group, a small coloured mark per format. */
.export-group { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.export-group .btn { border: 0; border-radius: 0; padding: 3px 9px; font-size: 11.5px; gap: 5px; }
.export-group .btn + .btn { border-left: 1px solid var(--border); }
.export-group .btn::before { content: ""; width: 6px; height: 6px; border-radius: 2px; display: inline-block; }
.export-group .exp-pdf::before { background: #E5484D; }
.export-group .exp-xlsx::before { background: #30A46C; }
.export-group .exp-csv::before { background: #8DB6F2; }

/* ---------- Print preview: the report as a sheet of A4 paper ---------- */
.paper-wrap { overflow: auto; padding: 4px 2px 18px; }
.paper {
  --pp-ink: #16202F; --pp-muted: #6B7280; --pp-line: #D6DBE3; --pp-zebra: #F8F9FB; --pp-head: #F1F3F6;
  --pp-bal: #D68C1E; --pp-mv: #2F6FC2; --pp-hist: #7A55C4;
  background: #fff; color: var(--pp-ink); width: 210mm; min-height: 297mm; margin: 0 auto; padding: 12mm 12mm 10mm;
  box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); border-radius: 3px;
  font-family: Helvetica, Arial, "IBM Plex Sans", sans-serif; font-size: 10.2px; line-height: 1.35;
  display: flex; flex-direction: column;
}
.paper.landscape { width: 297mm; min-height: 210mm; }
.pp-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 8px; border-bottom: 1.2px solid var(--pp-ink); margin-bottom: 12px; }
.pp-co { font-weight: 700; font-size: 17px; }
.pp-ids, .pp-opts { color: var(--pp-muted); font-size: 10px; }
.paper .pp-title { font-family: inherit; font-weight: 700; font-size: 22px; margin: 16px 0 3px; color: var(--pp-ink); letter-spacing: 0; }
.pp-period { font-size: 12.5px; margin-bottom: 4px; }
.pp-status { display: inline-block; margin-top: 5px; padding: 2px 8px; font-weight: 700; font-size: 10px; border-radius: 2px; }
.pp-status.ok { background: #E6F5EC; color: #1E7A4C; }
.pp-status.bad { background: #FDE8E6; color: #B42318; }
.pp-right { text-align: right; min-width: 240px; }
.pp-mark { font-weight: 700; font-size: 16px; }
.pp-ra { color: var(--pp-bal); }
.pp-meta { display: grid; grid-template-columns: auto auto; gap: 1px 18px; margin: 22px 0 0; font-size: 10px; text-align: left; }
.pp-meta dt { color: var(--pp-muted); } .pp-meta dd { margin: 0; text-align: right; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.pp-table th { background: var(--pp-head); text-align: left; font-weight: 700; padding: 5px 6px 4px; white-space: nowrap; border-top: 2px solid transparent; }
.pp-table td { padding: 2.5px 6px; border: 0; }
.pp-table tbody tr:nth-child(even):not(.pp-total) td { background: var(--pp-zebra); }
.paper .pp-table .num { text-align: right; white-space: nowrap; font-family: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }
.pp-table td, .pp-table th { white-space: nowrap; }
.pp-table .fx { width: 1%; }
.pp-table .t { max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pp-table .t.wide { width: 40%; }
.pp-table .nowrap { white-space: nowrap; }
.pp-table th.f-bal { border-top-color: var(--pp-bal); } .pp-table th.f-mv { border-top-color: var(--pp-mv); } .pp-table th.f-hist { border-top-color: var(--pp-hist); }
.pp-table td.num.f-mv { color: #234F8C; } .pp-table td.num.f-hist { color: #5B3F93; } .pp-table td.num.f-bal { color: var(--pp-ink); }
.pp-table tr.pp-total td { font-weight: 700; border-top: 1px solid var(--pp-ink); border-bottom: 3px double var(--pp-ink); color: var(--pp-ink); }
.pp-empty { color: var(--pp-muted); padding: 10px 6px !important; }
.pp-signoff { display: flex; gap: 40px; margin-top: 46px; }
.pp-signoff span { flex: 1; max-width: 70mm; border-top: 1px solid var(--pp-muted); padding-top: 3px; color: var(--pp-muted); font-size: 10px; }
.pp-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--pp-muted); font-size: 9px; border-top: 1px solid var(--pp-line); }

/* The choices in the panel. */
.rp-list { display: flex; flex-direction: column; gap: 2px; }
.rp-check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.rp-check:hover { background: var(--surface-2); }
.rp-check input { margin: 0; accent-color: var(--accent, #F2BE6A); }
.rp-check small { margin-left: auto; color: var(--muted, #8A97AB); font-size: 10.5px; }
.rp-check.f-bal { box-shadow: inset 2px 0 0 var(--fam-bal); } .rp-check.f-mv { box-shadow: inset 2px 0 0 var(--fam-mv); } .rp-check.f-hist { box-shadow: inset 2px 0 0 var(--fam-hist); }
.rp-orient { display: flex; gap: 4px; margin-top: 8px; }
.rp-orient label { flex: 1; cursor: pointer; }
.rp-orient input { position: absolute; opacity: 0; pointer-events: none; }
.rp-orient span { display: block; text-align: center; padding: 5px 0; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.rp-orient input:checked + span { border-color: var(--fam-bal); color: var(--fam-bal); background: rgba(242,190,106,.08); }
.rp-orient input:focus-visible + span { outline: 2px solid var(--fam-bal); outline-offset: 1px; }

@page { size: A4 portrait; margin: 10mm; }
@page land { size: A4 landscape; margin: 10mm; }
@media print {
  :root, html, body { color-scheme: light !important; background: #fff !important; background-image: none !important; }
  .side, .topbar, .page-head, .page-panel, .panel-handle, .maker-foot, .flash, .page-back, .skip { display: none !important; }
  html, body, .shell, .main-col, .content, .page-grid, .page-main, .paper-wrap { display: block !important; overflow: visible !important; height: auto !important; max-height: none !important; background: #fff !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
  .paper { box-shadow: none; border-radius: 0; width: auto !important; min-height: 0; padding: 0; zoom: 1 !important; }
  .paper.landscape { page: land; }
  .pp-table thead { display: table-header-group; }
  .pp-table tr { break-inside: avoid; }
  .pp-screen { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Three fields side by side (locality, post code, country); one under the other on a phone. */
.row3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }

/* Sales and purchase documents. */
.doc-head { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 9px; align-items: end; }
.doc-head .grow { grid-column: span 2; }
@media (max-width: 760px) { .doc-head { grid-template-columns: 1fr; } .doc-head .grow { grid-column: auto; } }
.doc-grid select { min-width: 74px; }
.kii-clip { display: inline-flex; color: var(--fam-bal); }
.kii-clip:hover { filter: brightness(1.2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flag-col { color: var(--fam-bal); text-align: center; min-width: 5.2em; }
tr.filter-row select.flag-pick { width: 100%; min-width: 4.8em; font-size: 12px; padding: 4px 2px; }
.clip-col { width: 1.6em; text-align: center; padding-left: 0; padding-right: 0; }
.panel-body form + .details-list { margin-top: 12px; }

/* Intercompany balances grid. */
.ic-grid td.ic-self { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(127,127,127,.08) 6px 12px); }
.ic-grid td.is-dr, .ic-key.is-dr { color: #3FB27F; } .ic-grid td.is-cr, .ic-key.is-cr { color: inherit; }
.ic-grid td.ic-off { background: rgba(242, 121, 122, .16); box-shadow: inset 0 0 0 1px rgba(242, 121, 122, .45); }
.ic-grid .ic-tot { font-weight: 700; border-left: 2px solid var(--border-strong); }
.ic-grid tfoot td.ic-tot, .ic-grid tfoot th { border-left: 0; border-top: 2px solid var(--border-strong); }
.ic-grid tr.ic-diff-row td.ic-off { color: #F2797A; background: rgba(242, 121, 122, .16); }
.ic-grid tr.ic-diff-row td.ic-ok { color: #3FB27F; }
.ic-key { font-weight: 700; }
tr.ic-off-row td { background: rgba(242, 121, 122, .08); } td.ic-diff { color: #F2797A; font-weight: 700; }
.ic-grid th { white-space: nowrap; }

/* The search at the top: the results drop down under the box. */
.top-search .search-pop { position: absolute; top: calc(100% + 6px); left: 0; width: min(640px, 92vw); max-height: min(70vh, 560px); overflow: auto; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 6px; }
.search-pop .sp-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.search-pop .sp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-pop .sp-item:hover, .search-pop .sp-item.on, .search-pop .sp-all.on { background: var(--surface-2); }
.search-pop .sp-left { display: flex; flex-direction: column; min-width: 0; }
.search-pop .sp-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pop .sp-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pop .sp-amt { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; white-space: nowrap; }
.search-pop .sp-all { display: block; margin-top: 4px; padding: 8px 10px; border-top: 1px solid var(--border); color: var(--fam-bal); text-decoration: none; font-size: 12.5px; border-radius: 0 0 8px 8px; }
.search-pop .sp-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.search-list { list-style: none; margin: 0; padding: 4px 0; }
.search-list li { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.search-list li:last-child { border-bottom: 0; }
.search-list li > a:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.search-list .sr-sub { font-size: 12px; color: var(--muted); }
.search-list .sr-amt { white-space: nowrap; }
/* On a phone the search stays: it takes its own row under the company. */
@media (max-width: 760px) { .main-col .top-search { display: flex; order: 3; flex-basis: 100%; max-width: none; } .top-left { flex-wrap: wrap; } }
/* The top bar sits above the page so the search results drop over it, solid. */
.main-col .topbar { position: relative; z-index: 50; }
.top-search .search-pop { background: var(--surface); backdrop-filter: none; }
@media (max-width: 760px) { .main-col .top-left { width: 100%; } .main-col .top-search { flex: 1 1 100%; } .top-search .search-pop { width: calc(100vw - 40px); } }
[data-theme="light"] .ic-grid tr.ic-diff-row td.ic-off, [data-theme="light"] td.ic-diff { color: #B42318; } [data-theme="light"] .ic-grid td.is-dr, [data-theme="light"] .ic-key.is-dr { color: #1E7A4F; }
@media (prefers-color-scheme: light) { [data-theme="system"] .ic-grid tr.ic-diff-row td.ic-off, [data-theme="system"] td.ic-diff { color: #B42318; } [data-theme="system"] .ic-grid td.is-dr { color: #1E7A4F; } }
[data-theme="light"] .top-search .search-pop { box-shadow: 0 18px 50px rgba(20,30,50,.18); }

/* Drop-down lists: the options follow the theme (on Windows they were light text on a white list in dark mode). */
select option, select optgroup { background-color: var(--surface); color: var(--text); }
[data-theme="dark"] select { color-scheme: dark; }
[data-theme="light"] select { color-scheme: light; }
@media (prefers-color-scheme: dark) { [data-theme="system"] select { color-scheme: dark; } }

/* Columns: chosen and moved per table (the button in the box heading, or dragging a heading left or right) */
.col-tools { position: relative; display: inline-flex; }
.col-tools { margin-left: auto; }
.col-tools-btn { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted);
  background: transparent; border: 1px solid var(--glass-border); cursor: pointer; }
.col-tools-btn svg { width: 16px !important; height: 16px !important; flex: none; }
.col-tools-btn:hover, .col-tools-btn[aria-expanded="true"] { color: var(--text); background: rgba(127,127,127,.12); }
.col-pop { position: fixed; z-index: 200; min-width: 240px; max-height: 60vh; overflow: auto; padding: 8px; border-radius: 12px;
  background: var(--surface, var(--table-head)); border: 1px solid var(--glass-border); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.col-pop[hidden] { display: none !important; }
.col-pop .col-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 7px; font-size: 12.8px; }
.col-pop .col-row:hover { background: rgba(127,127,127,.09); }
.col-pop .col-row label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.col-pop .col-move { width: 22px; height: 22px; padding: 0; border-radius: 6px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.col-pop .col-move:hover:not(:disabled) { color: var(--text); background: rgba(127,127,127,.15); }
.col-pop .col-move:disabled { opacity: .25; cursor: default; }
.col-pop .col-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--glass-border); margin-top: 6px; padding-top: 6px; font-size: 12px; }
.col-pop .col-foot button { background: none; border: 0; color: var(--accent-ink); cursor: pointer; padding: 2px 4px; }
th.col-drag-over-left { box-shadow: inset 3px 0 0 var(--accent-ink); }
th.col-drag-over-right { box-shadow: inset -3px 0 0 var(--accent-ink); }
th[draggable="true"] { cursor: grab; }
body.col-dragging th[draggable="true"] { cursor: grabbing; }

.table .col-off { display: none !important; }

/* ---------- Colour schemes (19 Oct 2026) ----------
   Black is built on dark; Forest, Slate & teal and Burgundy on light. Each only changes colours. */
[data-look="black"] {
  --bg: #000000; --surface: #0E0E0E; --surface-2: #161616; --border: #262626; --border-strong: #444444;
  --text: #F2F2F2; --muted: #9A9A9A; --nav-text: #BDBDBD; --table-head: #121212; --table-line: rgba(255,255,255,.06);
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); --glass-border: rgba(255,255,255,.08);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 32px rgba(0,0,0,.6);
  --glow: radial-gradient(800px 480px at 100% 110%, rgba(232,171,69,.06), transparent 60%);
  --sel-row: rgba(232,171,69,.20); --row-hover: rgba(255,255,255,.05); --nav-active: rgba(232,171,69,.16);
}
[data-look="black"] .card { background: #0B0B0B; border-color: #232323; }
[data-look="black"] .table td.frozen { background: #0B0B0B; }
[data-look="black"] .table tbody tr:hover td.frozen { background: #171717; }

[data-look="forest"] {
  --bg: #F6F4EE; --surface: #FFFFFF; --surface-2: #F8F6F1; --border: #E2DED3; --border-strong: #BDB6A5;
  --text: #1E2622; --muted: #5F6B64; --accent: #2E6B4F; --accent-hover: #245840; --accent-text: #FFFFFF;
  --accent-soft: #DCEDE3; --accent-ink: #245840; --sel-row: #DCEDE3; --row-hover: #F1EFE8; --table-head: #F8F6F1; --table-line: #ECE8DF;
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(46,107,79,.10), transparent 60%); --logo-copper: #2E6B4F;
  --fam-bal: #2E6B4F; --fam-bal-tint: rgba(46,107,79,.06);
}
[data-look="forest"] .side { background: linear-gradient(170deg, #22402F, #1A3326); border-color: transparent;
  --text: #EEF4F0; --muted: #A9BDB1; --nav-text: #C9D8CF; --nav-active: rgba(255,255,255,.12); --accent-ink: #9EDDBA; --accent: #8FD3AE; --logo-copper: #9EDDBA; }

[data-look="slate"] {
  --bg: #EEF2F6; --surface: #FFFFFF; --surface-2: #F4F7FA; --border: #DAE1EA; --border-strong: #B3BFCE;
  --text: #16202C; --muted: #5A6778; --accent: #0F7C86; --accent-hover: #0B6770; --accent-text: #FFFFFF;
  --accent-soft: #D5EEF0; --accent-ink: #0B6770; --sel-row: #D5EEF0; --row-hover: #EFF4F7; --table-head: #F4F7FA; --table-line: #E6EBF1;
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(15,124,134,.10), transparent 60%); --logo-copper: #0F7C86;
  --fam-bal: #0F7C86; --fam-bal-tint: rgba(15,124,134,.06);
}
[data-look="slate"] .side { background: linear-gradient(170deg, #1B2635, #141D29); border-color: transparent;
  --text: #EAF0F6; --muted: #9EABBD; --nav-text: #AEBACB; --nav-active: rgba(255,255,255,.10); --accent-ink: #6FD3DB; --accent: #4FC3CC; --logo-copper: #6FD3DB; }

[data-look="burgundy"] {
  --bg: #F5F2F2; --surface: #FFFFFF; --surface-2: #FAF7F7; --border: #E6DEDF; --border-strong: #C8B9BC;
  --text: #2A1E21; --muted: #6E5C60; --nav-text: #4A3A3E; --accent: #7A2335; --accent-hover: #6A1D2D; --accent-text: #FFFFFF;
  --accent-soft: #F4E4E7; --accent-ink: #6A1D2D; --nav-active: #F4E4E7; --sel-row: #F1D9DE; --row-hover: #F8F1F2; --table-head: #FAF7F7; --table-line: #EFE8E9;
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(122,35,53,.08), transparent 60%); --logo-copper: #7A2335;
  --fam-bal: #7A2335; --fam-bal-tint: rgba(122,35,53,.05);
}
[data-look="forest"] .btn.primary, [data-look="slate"] .btn.primary, [data-look="burgundy"] .btn.primary {
  background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
[data-look="forest"] .btn.primary:hover, [data-look="slate"] .btn.primary:hover, [data-look="burgundy"] .btn.primary:hover { background: var(--accent-hover); color: var(--accent-text); }

/* ---------- Selection shown clearly, in every scheme ---------- */
:root { --sel-strong: rgba(232,171,69,.24); --ring: rgba(232,171,69,.32); }
[data-theme="light"] { --sel-strong: #F8E3BF; --ring: rgba(185,118,26,.28); }
[data-look="forest"] { --sel-strong: #CFE7D9; --ring: rgba(46,107,79,.28); }
[data-look="slate"] { --sel-strong: #C6E8EB; --ring: rgba(15,124,134,.28); }
[data-look="burgundy"] { --sel-strong: #EED0D6; --ring: rgba(122,35,53,.24); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
/* Fields being typed in */
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus,
.main-col .table thead tr.filter-row input:focus, .main-col .entry-grid input:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--ring); outline: none; }
/* Anything reached with the keyboard */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Ticked rows and the row picked: tint, bold, a bar on the left */
/* Only a tick in the row's first cell picks the row (as in Tidy up); grids of ticks, like the roles' rights, stay plain. */
.table tbody tr:has(> td:first-child input[type="checkbox"]:checked) td { background: var(--sel-row); }
.table tbody tr:has(> td:first-child input[type="checkbox"]:checked) td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rights tbody tr:focus-within td, .rights tbody tr:focus-within td:first-child { background: var(--row-hover) !important; box-shadow: none !important; }
.table tbody tr.is-picked td, .table tbody tr:focus-within td { background: var(--sel-strong) !important; }
.table tbody tr.is-picked td { font-weight: 600; }
.table tbody tr.is-picked td:first-child, .table tbody tr:focus-within td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.sibling-list li.here { background: var(--sel-strong); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
/* The page you are on, in the menu */
.nav .nav-pages a.on { background: var(--nav-active); color: var(--accent-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
/* The chosen option in switches and the colour picker */
.theme-switch .seg.on { background: var(--accent); color: var(--accent-text); }
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.scheme { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.scheme:hover { border-color: var(--border-strong); }
.scheme.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); font-weight: 600; }
.scheme-swatch { display: grid; grid-template-columns: 1fr 1.6fr .5fr; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(127,127,127,.25); }
@media (prefers-color-scheme: light) { [data-theme="system"] { --sel-strong: #F8E3BF; --ring: rgba(185,118,26,.28); } }
.rights .role-name { width: 100%; min-width: 130px; font-weight: 600; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; color: var(--text); }
.rights .role-name:hover { border-color: var(--border); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); font: 600 11.5px 'IBM Plex Mono', monospace; text-align: center; color: var(--text); }
kbd + kbd { margin-left: 3px; }
.then { margin: 0 5px; font-size: 11px; color: var(--muted); }
.keys-table input { width: 140px; font-family: 'IBM Plex Mono', monospace; }
.keys-help { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow: auto; }
.keys-box { width: min(560px, 100%); border-radius: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.keys-box h2 { margin: 0 0 12px; font-size: 16px; }
.keys-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0 0 12px; align-items: center; }
.keys-box dt { white-space: nowrap; } .keys-box dd { margin: 0; }
.addon-row { display: grid; grid-template-columns: 1fr 110px; gap: 8px; align-items: center; }
/* Boxes in a page never squeeze each other: the page scrolls instead. */
.page-main > * { flex-shrink: 0; }
/* A tick with its words beside it */
.tick-line { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500; }
.tick-line input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; flex: none; }
/* The owner console: its own top bar, no group menu */
.owner-shell { max-width: 1500px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; min-height: 100vh; }
.owner-shell .main-col { min-width: 0; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-bar .brand { padding: 2px 6px; }
.owner-tag { margin-left: 4px; }
.owner-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 10px; }
.owner-nav a { padding: 6px 10px; border-radius: 9px; color: var(--nav-text); text-decoration: none; font-size: 13px; }
.owner-nav a:hover { background: var(--row-hover); color: var(--text); }
.owner-nav a.on { background: var(--nav-active); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.owner-auth { max-width: 460px; margin: 30px auto; width: 100%; }
.owner-shell .page-main { height: auto; overflow: visible; }
.support-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }

/* A second part inside a box, under its own small heading. */
.sub-head { font-size: 0.95rem; font-weight: 600; margin: 1.25rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }

/* Tick-box columns: narrow and centred. */
th.tick-col, td.tick-col { width: 2.5rem; text-align: center; }
/* An amount or reference that opens its document: looks like the figure, underlined on hover. */
a.cell-link { color: inherit; text-decoration: none; }
a.cell-link:hover, a.cell-link:focus-visible { text-decoration: underline; color: var(--accent, inherit); }

/* Allocations: the list of who has something open, short and scrolling on its own; the current one marked. */
.al-who { max-height: 240px; overflow: auto; }
.al-who td:nth-child(2) { white-space: normal; }
.al-who tr.is-current td { background: var(--sel-bg, rgba(200, 160, 60, .18)); font-weight: 600; }
.al-who tr[data-href] { cursor: pointer; }
/* The difference left to allocate, right under the total being allocated. */
.alloc-diff { font-size: 1.05rem; font-weight: 700; margin-top: .25rem; white-space: nowrap; }
.alloc-diff.is-over { color: var(--danger, #c0392b); }
.alloc-diff.is-nil { color: var(--ok, #2e8b57); }
/* Two panes, one above the other, each scrolling on its own; the bar between them drags to resize. */
.split { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 420px; }
.split-pane { overflow: auto; min-height: 90px; flex: 1 1 50%; }
.split-pane > .card { margin: 0; }
.split-bar { flex: 0 0 10px; cursor: row-resize; position: relative; margin: 4px 0; }
.split-bar::before { content: ''; position: absolute; left: 45%; right: 45%; top: 3px; height: 4px; border-radius: 2px; background: var(--line-strong, rgba(127,127,127,.5)); }
.split-bar:hover::before, .split-bar:focus-visible::before, body.split-dragging .split-bar::before { background: var(--accent, #c8a03c); }
body.split-dragging { user-select: none; cursor: row-resize; }
[data-fold-box="al-who"] { flex-shrink: 0; }
/* In a split pane the totals line stays in view at the bottom while the rows scroll. */
.split-pane tfoot td { position: sticky; bottom: 0; background: var(--surface, #fff); z-index: 2; }
[data-theme="dark"] .split-pane tfoot td { background: #1A1813; }
[data-look="navy"] .split-pane tfoot td { background: #0e1624; }
@media (prefers-color-scheme: dark) { [data-theme="system"] .split-pane tfoot td { background: #1A1813; } }
.al-who-find { padding: 8px 10px; }
.al-who-find input { width: 100%; }
.page-panel .al-who { max-height: calc(100vh - 260px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
td.is-changed { font-weight: 700; }
td.is-over { color: var(--danger, #c0392b); }
/* The side panel's left edge: drag to resize. */
.panel-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 5; border-radius: 4px; }
.panel-edge:hover, .panel-edge:focus-visible, body.panel-dragging .panel-edge { background: rgba(200, 160, 60, .35); }
body.panel-dragging { user-select: none; cursor: col-resize; }
body.panel-dragging .page-grid { transition: none; }

/* Journal: the account and customer / supplier list, in the page's own colours. */
.acc-pop { position: absolute; z-index: 60; max-height: 320px; overflow: auto; padding: 4px; border-radius: 10px; background: var(--surface, #fff); color: var(--text, #222);
  border: 1px solid var(--border, rgba(127,127,127,.25)); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.acc-opt { display: flex; gap: 10px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.acc-opt b { font-family: var(--mono, ui-monospace, monospace); font-weight: 600; min-width: 64px; color: var(--accent-ink, inherit); }
.acc-opt.on { background: var(--accent, #2e6b4f); color: var(--accent-text, #fff); }
.acc-opt.on b { color: inherit; }
.acc-none { padding: 8px 10px; opacity: .6; }
.readonly-box { background: transparent !important; border-style: dashed !important; font-family: var(--mono, ui-monospace, monospace); font-weight: 600; cursor: default; }
.entry-grid td.line-tools { white-space: nowrap; }
.entry-grid td.line-tools .link-btn { padding: 0 3px; font-size: 11px; opacity: .65; }
.entry-grid td.line-tools .link-btn:hover { opacity: 1; }
.entry-grid td.ln[draggable] { cursor: grab; }
.entry-grid tr.dragging { opacity: .5; }
.entry-grid input[data-party]:read-only { opacity: .35; pointer-events: none; }
.entry-grid td.needs-party input { outline: 2px solid var(--accent, #c8a03c); }
.copy-jnl input { width: 150px; }
/* Bank reconciliation: items dated after the reconciliation date are greyed (shown, not counted). */
tr.is-after td { opacity: .45; }
/* The logo on printouts: dark letters and copper square on white paper, standing still. */
.paper .wordmark { font-size: 20px; color: #18202b; --text: #18202b; --logo-copper: #b87333; }
.paper .wordmark *, .paper .wordmark { animation: none !important; }
.paper .wm-frame rect { stroke-dashoffset: 0 !important; }
/* Bank reconciliation: what is ticked, beside the difference, with the button to match it. */
.rec-ticked { display: flex; flex-direction: column; gap: 6px; }
.rec-ticked .small-val { font-size: 13px; }
.rec-ticked .small-val.off { color: var(--danger, #c0392b); }
.rec-ticked .btn { align-self: flex-start; }
.pp-table tr.pp-strong td { font-weight: 700; padding-top: 7px; }

/* Ticking several documents in a list */
.tick-col { width: 34px; min-width: 34px; text-align: center; padding-left: 6px !important; padding-right: 6px !important; }
.tick-col input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent, #B9761A); }
tr.ticked > td { background: color-mix(in srgb, var(--accent, #B9761A) 12%, transparent); }
.tick-bar { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin: 0 0 10px; border-radius: 12px; }
.tick-bar[hidden] { display: none; }
.tick-bar > span { margin-right: 6px; }

/* ---------- Phones: a slim bar on top, the menu as a drawer from the left ---------- */
.side-drawer { display: contents; }
.drawer-head, .drawer-foot { display: none; }
@media (max-width: 760px) {
  .shell { padding: 0; gap: 0; }
  .main-col { min-width: 0; gap: 0; }
  .js .side { position: sticky; top: 0; z-index: 70; height: 56px; width: 100%; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
    gap: 4px; padding: 6px 12px 6px 6px; border-radius: 0; border-width: 0 0 1px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); overflow: visible; }
  .js .side .side-top { order: 2; } .js .side .side-top .fold-btn { display: none; }
  .js .side .side-top .brand { padding: 0 4px; } .js .side .wordmark { font-size: 21px; }
  .js .side .side-owner { display: none; }
  .js .menu-btn { order: 1; width: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--text); }
  .js .menu-btn[aria-expanded="true"] { background: rgba(127,127,127,.12); }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-bars, .menu-bars::before, .menu-bars::after { width: 20px; }
  /* The drawer */
  .js .side-drawer { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 330px); z-index: 90;
    background: var(--surface); box-shadow: 12px 0 40px rgba(0,0,0,.28); padding: 0 10px 18px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; }
  .js .side.open .side-drawer { transform: none; visibility: visible; transition: transform .24s ease; }
  .js .side .side-drawer .nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
  .js .side .side-drawer .menu-tools { display: flex; padding: 4px 2px 8px; }
  .js .side .side-drawer .nav-group > summary { padding: 12px 10px; font-size: 15.5px; }
  .js .side .side-drawer .nav .nav-pages a { padding: 11px 12px; font-size: 15px; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; background: var(--surface);
    padding: 10px 2px 10px 0; margin: 0 -10px 4px; padding-left: 10px; border-bottom: 1px solid var(--glass-border); }
  .drawer-head .brand { padding: 0 4px; }
  .drawer-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
  .drawer-close:hover { background: rgba(127,127,127,.12); }
  .drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding: 16px 4px 0; border-top: 1px solid var(--glass-border); }
  .drawer-foot .me { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; }
  .drawer-foot .me-text { display: flex; flex-direction: column; }
  .drawer-foot form[action="/logout"] { margin-left: auto; }
  /* The page dimmed behind the open drawer */
  .js .side::after { content: ''; position: fixed; inset: 0; z-index: 85; background: rgba(6,10,18,.5); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .js .side.open::after { opacity: 1; pointer-events: auto; }
  html.menu-locked, html.menu-locked body { overflow: hidden; }
  /* The bar under it: the company, search and the few buttons that matter; theme and log out are in the drawer */
  .main-col .topbar { border-radius: 0; border-width: 0 0 1px; box-shadow: none; padding: 8px 12px; }
  .main-col .topbar .theme-switch, .main-col .topbar form[action="/logout"], .main-col .topbar .me { display: none; }
  .content { padding: 14px 12px 0; }
  .page-head { flex-wrap: wrap; gap: 10px; }
  .page-head > * { min-width: 0; }
  .head-actions, .page-head .actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .js .side-drawer, .js .side::after { transition: none !important; } }
@media (max-width: 760px) {
  /* One row: the company and the buttons; the search across the whole width under them. */
  .main-col .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .main-col .topbar .top-left { display: contents; }
  .main-col .topbar .top-right { order: 2; margin-left: auto; gap: 6px; }
  .main-col .topbar .top-search { order: 3; flex: 1 1 100%; max-width: none; }
}

/* Rentals: the monthly sheet's amount boxes */
.rent-sheet input.amt { min-width: 84px; width: 100%; text-align: right; }
.form-row .full { grid-column: 1 / -1; }
.addon-grid th.c, .addon-grid td.c { text-align: center; }
.addon-grid tfoot input { width: 84px; text-align: right; }
/* Month-end checklist: the small forms that open under a line's buttons */
.cl-act { position: relative; }
.cl-act > summary { list-style: none; cursor: pointer; }
.cl-act > summary::-webkit-details-marker { display: none; }
.cl-act[open] > form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 260px; padding: 10px; border-radius: 10px; background: var(--surface, var(--bg)); border: 1px solid var(--glass-border); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cl-table td:last-child { white-space: nowrap; }
.cl-table td:last-child > .inline-form { flex-wrap: nowrap; justify-content: flex-end; }
.cl-cos { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 1px solid var(--glass-border); border-radius: 10px; padding: 8px 12px; }
.cl-cos label.check { display: inline-flex; gap: 6px; align-items: center; }

/* The login pages: the product and a picture of a group of companies on the left, the login card on the right.
   The picture is our own drawing (layout.js GROUP_ART): a ring for each company, joined to the group in the centre,
   with lights running along the lines. Still for anyone whose device asks for less motion. */
.login-split { min-height: 100vh; overflow-x: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); grid-template-rows: auto 1fr auto; column-gap: 48px; padding: 20px clamp(20px, 4vw, 64px) 0; position: relative; }
.login-theme { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: flex-start; position: relative; z-index: 2; }
.login-kicker span { white-space: nowrap; }
.login-brand { grid-column: 1; grid-row: 2; position: relative; display: flex; align-items: flex-start; min-height: 520px; }
.login-brand-text { position: relative; z-index: 1; max-width: 460px; padding: 4vh 0 24px; }
.login-logo { margin: 0 0 6px; }
.login-logo .wordmark { font-size: clamp(44px, 5vw, 64px); }
.login-tag { font-family: 'Fraunces', Georgia, serif; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; color: var(--text); margin: 6px 0 10px; }
.login-kicker { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); margin: 0; line-height: 1.8; }
.login-card { grid-column: 2; grid-row: 2; align-self: center; border-radius: 24px; padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.login-card h1 { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; margin: 4px 0 0; }
.login-card p { margin: 0; }
.login-bar { width: 96px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #3E7BC4 0 34%, var(--accent) 34% 67%, #C9673A 67%); }
.login-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.login-row label.radio { align-items: center; font-size: 13.5px; }
.login-row label.radio input { margin-top: 0; }
.login-row details.forgot summary { color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.login-row details.forgot[open] { flex-basis: 100%; }
.login-row details.forgot[open] p { margin-top: 6px; }
.login-go { width: 100%; min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 600; justify-content: center; }
.login-shell .maker-foot { grid-column: 1 / -1; grid-row: 3; }

.ga { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; opacity: .95; }
.login-shell > *:not(.ga) { position: relative; z-index: 1; }
.ga-stars circle { fill: var(--accent); opacity: .22; }
.ga-rings circle { fill: none; stroke: var(--border-strong, var(--border)); stroke-width: 1; stroke-dasharray: 2 8; opacity: .6; }
.ga-line { stroke: var(--accent); stroke-width: 1.2; opacity: .26; }
.ga-twig { stroke: var(--accent); stroke-width: .8; opacity: .18; }
.ga-link { stroke: var(--accent); stroke-width: 1; opacity: .13; stroke-dasharray: 3 4; }
.ga-bridge { stroke: var(--accent); stroke-width: 1.2; opacity: .16; stroke-dasharray: 6 6; }
.ga-sat { fill: var(--accent); opacity: .7; }
.ga-pulse { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 300; stroke-dashoffset: 6; opacity: 0; }
.ga-pulse.fast { stroke-width: 1.6; } .ga-pulse.long { stroke-width: 2.8; }
.ga-halo { fill: var(--accent); opacity: .1; }
.ga-node { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.ga-glow { fill: var(--accent); opacity: .08; }
.ga-core { fill: var(--accent); fill-opacity: .16; stroke: var(--accent); stroke-width: 2; }
.ga-core-in { fill: var(--accent); opacity: .85; }
[data-theme="light"] .ga { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .ga-rings { transform-box: view-box; animation: ga-turn 150s linear infinite; }
  .ga-rings.ra { transform-origin: 930px 560px; } .ga-rings.rb { transform-origin: 330px 800px; animation-direction: reverse; animation-duration: 110s; }
  .ga-rings.rc { transform-origin: 1340px 170px; animation-duration: 90s; }
  .ga-pulse { animation: ga-run 5.5s ease-in-out infinite; }
  .ga-pulse.slow { animation-duration: 7.5s; } .ga-pulse.fast { animation-duration: 3.4s; } .ga-pulse.long { animation-duration: 9s; }
  .ga-pulse:nth-child(9n+1) { animation-delay: .4s; } .ga-pulse:nth-child(9n+2) { animation-delay: 1.3s; } .ga-pulse:nth-child(9n+3) { animation-delay: 2.2s; }
  .ga-pulse:nth-child(9n+4) { animation-delay: 3.1s; } .ga-pulse:nth-child(9n+5) { animation-delay: 4s; } .ga-pulse:nth-child(9n+6) { animation-delay: 4.9s; }
  .ga-pulse:nth-child(9n+7) { animation-delay: 5.8s; } .ga-pulse:nth-child(9n+8) { animation-delay: 6.7s; } .ga-pulse:nth-child(9n) { animation-delay: 1.8s; }
  .ga-pulse:nth-child(4n+3) { animation-direction: reverse; }
  .ga-halo, .ga-glow { transform-box: fill-box; transform-origin: center; animation: ga-breathe 4.5s ease-in-out infinite; }
  .ga-co:nth-child(5n+1) .ga-halo { animation-delay: .9s; } .ga-co:nth-child(5n+2) .ga-halo { animation-delay: 1.8s; }
  .ga-co:nth-child(5n+3) .ga-halo { animation-delay: 2.7s; } .ga-co:nth-child(5n+4) .ga-halo { animation-delay: 3.6s; }
  .ga-star:nth-child(6n+1) { animation: ga-twinkle 5s ease-in-out infinite; } .ga-star:nth-child(6n+4) { animation: ga-twinkle 7s ease-in-out 2s infinite; }
}
@media (prefers-reduced-motion: reduce) { .ga-pulse { display: none; } }
@keyframes ga-turn { to { transform: rotate(360deg); } }
@keyframes ga-run { 0% { stroke-dashoffset: 6; opacity: 0; } 12% { opacity: 1; } 72% { opacity: 1; } 88%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes ga-breathe { 0%, 100% { transform: scale(1); opacity: .08; } 50% { transform: scale(1.4); opacity: .2; } }
@keyframes ga-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }

/* Phones and narrow windows: the product above the card, the picture faint and still behind them. */
@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; padding: 16px 16px 0; }
  .login-brand { grid-column: 1; grid-row: 2; min-height: 0; justify-content: center; text-align: center; }
  .login-brand-text { padding: 8px 0 16px; }
  .login-logo { justify-content: center; }
  .login-logo .wordmark { font-size: 40px; }
  .login-kicker { margin-bottom: 4px; letter-spacing: .14em; font-size: 10.5px; }
  .login-card { grid-column: 1; grid-row: 3; padding: 28px 22px; width: 100%; max-width: 460px; justify-self: center; }
  .login-shell .maker-foot { grid-row: 4; }
  .ga { opacity: .3; }
  .ga * { animation: none !important; }
  .ga-pulse { display: none; }
}

/* The login boxes with their icon inside, as in every CyRaSri product. */
.login-field { position: relative; display: block; }
.login-field input { width: 100%; padding-left: 50px; border-radius: 14px; }
.login-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; z-index: 1; pointer-events: none; }

/* ---- The same login layout in every CyRaSri product (Zopphire, Dokyara, Aiglith, RectlogicOS, HotelSpell) ----
   On a computer the logo and name sit at the same place and size, with the product's line and kinds under the name,
   and the login box has the same width and place on the right. Each product keeps its own colours and picture.
   --lg-mark is the height of the logo's letter frame. */
@media (min-width: 1000px) and (min-height: 600px) {
  :root { --lg-top: 14vh; --lg-left: 6vw; --lg-right: 6vw; --lg-mark: clamp(64px, 6.4vw, 110px); --lg-card: 460px; }
  .login-brand-text { position: fixed !important; top: var(--lg-top) !important; left: var(--lg-left) !important; right: auto !important; z-index: 3;
    margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important;
    gap: 0 !important; max-width: min(46vw, 640px); text-align: left !important; animation: none; }
  .login-shell .login-card { position: fixed !important; top: max(16px, calc(50vh - 256px)) !important; right: var(--lg-right) !important; left: auto !important; translate: none; min-height: 512px;
    width: var(--lg-card) !important; max-width: var(--lg-card) !important; max-height: calc(100vh - 32px); overflow: auto;
    margin: 0 !important; box-sizing: border-box; padding: 44px 42px 38px !important; border-radius: 26px !important; z-index: 4; }
  /* Inside the box: the same fonts and sizes in every product. */
  .login-shell .login-card { gap: 16px !important; }
  .login-shell .login-card h1 { font-family: 'Fraunces', Georgia, serif !important; font-size: 36px !important; font-weight: 600 !important; letter-spacing: -.01em !important; line-height: 1.15 !important; margin: 8px 0 0 !important; }
  .login-shell .login-card h1 ~ p { font-size: 15px !important; line-height: 1.55 !important; margin: 0 !important; }
  .login-shell .login-card form { gap: 16px !important; }
  .login-shell .login-card input[type=email], .login-shell .login-card input[type=password], .login-shell .login-card input[type=text] { height: 56px !important; min-height: 56px !important; font-size: 15px !important; border-radius: 14px !important; }
  .login-shell .login-card button[type=submit] { height: 56px !important; min-height: 56px !important; font-size: 16px !important; font-weight: 600 !important; border-radius: 999px !important; }
  .login-shell .login-card a, .login-shell .login-card summary, .login-shell .login-card .radio span { font-size: 14px !important; }
  .login-brand-text .login-tag { display: block; margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: clamp(17px, 1.35vw, 22px) !important;
    font-family: 'IBM Plex Sans', system-ui, sans-serif !important; font-weight: 600 !important; line-height: 1.3; letter-spacing: 0 !important; text-transform: none !important; }
  .login-brand-text .login-kicker { display: block; margin: 10px 0 0 !important; padding: 0 !important; font-size: clamp(11.5px, .85vw, 13.5px) !important; letter-spacing: .3em !important;
    text-transform: uppercase !important; line-height: 1.8; font-weight: 500; }
  .login-brand-text .login-tag { margin-top: calc(24px + var(--lg-mark) * -0.098) !important; }
  .login-brand-text { top: calc(var(--lg-top) - var(--lg-mark) * .065) !important; }
  .login-logo { translate: calc(var(--lg-mark) * -.109) 0; }
  .login-logo { margin: 0 !important; }
  .login-logo .wordmark { font-size: calc(var(--lg-mark) / 1.5) !important; }
  .login-brand { min-height: 0 !important; }
}

/* Kept as choices: the look this product had before the house style (18 Nov 2026) */
[data-look="classic"] {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --border: #DDE2EA;
  --border-strong: #C9D0DB;
  --text: #172133;
  --muted: #586579;
  --accent: #B9761A;
  --accent-hover: #9A6113;
  --accent-text: #FFFFFF;
  --accent-soft: #FBF0DE;
  --accent-ink: #9A6113;
  --nav-bg: transparent;
  --nav-text: #33405A;
  --nav-active: #FBF0DE;
  --sel-row: #FDF6EA;
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
  --glass-border: rgba(23, 33, 51, 0.08);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(23,33,51,.08);
  --table-head: #F5F7FA;
  --table-line: #E8ECF2;
  --row-hover: #FDF6EA;
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(80,130,200,.16), transparent 60%), radial-gradient(700px 520px at 100% 110%, rgba(232,171,69,.14), transparent 60%);
  --pos: #1E7A4C;
  --neg: #B4441F;
  --logo-copper: #B9761A;
}
[data-look="navy"] {
  --bg: #0A111C;
  --surface: #111B2B;
  --surface-2: #152033;
  --border: #22314A;
  --border-strong: #2E4163;
  --text: #E3E9F2;
  --muted: #9AA7BA;
  --accent: #E8AB45;
  --accent-hover: #F3C677;
  --accent-text: #111A28;
  --accent-soft: rgba(234, 178, 90, 0.14);
  --accent-ink: #F2BE6A;
  --nav-bg: transparent;
  --nav-text: #B9C4D4;
  --nav-active: rgba(234, 178, 90, 0.14);
  --sel-row: rgba(234, 178, 90, 0.08);
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 32px rgba(0,0,0,.4);
  --table-head: #152033;
  --table-line: rgba(255, 255, 255, 0.05);
  --row-hover: rgba(234, 178, 90, 0.07);
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(52,96,160,.32), transparent 60%), radial-gradient(700px 520px at 100% 110%, rgba(234,178,90,.12), transparent 60%);
  --pos: #7FD0A8;
  --neg: #F2A08F;
  --logo-copper: #E8AB45;
  color-scheme: dark;
}

.s-classic i:nth-child(1) { background: #EEF1F5; } .s-classic i:nth-child(2) { background: #FFFFFF; } .s-classic i:nth-child(3) { background: #B9761A; }
.s-navy i:nth-child(1) { background: #0A111C; } .s-navy i:nth-child(2) { background: #111B2B; } .s-navy i:nth-child(3) { background: #E8AB45; }

/* ---- The top of the Overview (src/brief.js) ---- */
.brief { margin: 4px 0 30px; }
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.brief-date { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brief-hello { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; }
.brief-line { font-size: 17px; line-height: 1.55; max-width: 52em; margin: 0 0 22px; color: var(--text); }
.brief-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.brief-up { color: var(--b-approved-fg); }
.brief-down { color: var(--warn-text); }
.brief-day { margin: 0 0 26px; }
.brief-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; border-bottom: 1.5px solid var(--text); }
.brief-bar { flex: 1; min-width: 6px; background: var(--border-strong); border-radius: 3px 3px 0 0; transition: height .6s ease; }
.brief-bar.now { background: var(--accent); }
.brief-bar.h5 { height: 5%; } .brief-bar.h10 { height: 10%; } .brief-bar.h15 { height: 15%; } .brief-bar.h20 { height: 20%; } .brief-bar.h25 { height: 25%; } .brief-bar.h30 { height: 30%; } .brief-bar.h35 { height: 35%; } .brief-bar.h40 { height: 40%; } .brief-bar.h45 { height: 45%; } .brief-bar.h50 { height: 50%; } .brief-bar.h55 { height: 55%; } .brief-bar.h60 { height: 60%; } .brief-bar.h65 { height: 65%; } .brief-bar.h70 { height: 70%; } .brief-bar.h75 { height: 75%; } .brief-bar.h80 { height: 80%; } .brief-bar.h85 { height: 85%; } .brief-bar.h90 { height: 90%; } .brief-bar.h95 { height: 95%; } .brief-bar.h100 { height: 100%; }
[data-theme="dark"] .brief-bar:not(.now):not(.later) { background: #5A5246; }
.brief-bar.later { background: transparent; border: 1.5px dashed var(--border-strong); border-bottom: 0; }
.brief-hours { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.brief-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
.brief-cols.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.brief-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.brief-list, .brief-shops { list-style: none; margin: 0; padding: 0; }
.brief-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.brief-list li:last-child { border-bottom: 1px solid var(--border); }
.brief-list li.urgent > span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-text); margin: 0 9px 1px 0; }
.brief-list a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; text-decoration: none; }
.brief-list a:hover { text-decoration: underline; }
.brief-calm { color: var(--muted); padding: 11px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0; }
.brief-shops li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.brief-shops a { color: var(--text); text-decoration: none; }
.brief-shops a:hover { color: var(--accent-ink); }
.brief-shops .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-strong); margin-right: 9px; }
.brief-shops .dot.on { background: var(--b-approved-fg); border-color: var(--b-approved-fg); }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
@media (max-width: 760px) {
  .brief-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .brief-line { font-size: 16px; }
  .brief-bars { height: 64px; gap: 3px; }
  .brief-hours span.muted { display: none; }
}
@media (prefers-reduced-motion: reduce) { .brief-bar { transition: none; } }
[data-theme="dark"] .brief-bar:not(.now):not(.later):not(.empty) { background: #5A5246; }

.brief-bar.empty { background: transparent; border-bottom: 2px solid var(--border-strong); border-radius: 0; height: 2px; }
.brief-days { display: flex; gap: 6px; margin-top: 6px; }
.brief-days span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.3; }
.brief-days span b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.brief-days span.on, .brief-days span.on b { color: var(--accent-ink); }
.brief-top { padding-right: 34px; }

.brief-co > h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; }
.brief-date { text-transform: none; letter-spacing: .02em; }

/* Folding the menu: a small round button on the menu's edge, the same in every CyRaSri product (as in Aiglith). */
.edge-fold { position: fixed; top: 92px; left: 235px; z-index: 80; width: 26px; height: 26px; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
  background: var(--glass-bg, var(--surface)); color: var(--nav-text); border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: left .2s ease; }
.edge-fold:hover { color: var(--text); background: var(--surface-2, var(--surface)); }
.edge-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-folded .edge-fold { left: 55px; }
.side-folded .edge-fold svg { transform: scaleX(-1); }
@media (max-width: 760px) { .edge-fold { display: none; } }
@media (prefers-reduced-motion: reduce) { .edge-fold { transition: none; } }
@media print { .edge-fold { display: none !important; } }
/* Zopphire: the round button sits beside the name, above Expand all / Collapse all. */
.edge-fold { top: 40px; }
/* Zopphire's menu floats 14px in from the page's edge, so the button sits on its real right edge, open or folded. */
.edge-fold { left: 249px; }
.side-folded .edge-fold { left: 69px; }
