/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Hidden means hidden, whatever display a class sets: .settings-nav-item's
   display:flex showed Settings sections of features that are off (feedback
   2026-10-07). */
[hidden] { display: none !important; }

/* ── Variables ── */
:root {
  --navy:            #0A1628;
  --gold:            #D4A017;
  --gold-lt:         #E0B030;
  --offwhite:        #F8F8F6;
  --white:           #FFFFFF;
  --border:          #E4E8EF;
  --text:            #1A2333;
  --text-secondary:  #566375;
  --muted:           #566375;
  --success:         #22C55E;
  --warning:         #F59E0B;
  --error:           #EF4444;
  --accent:          #D4A017;
  --font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h:        60px;
  --radius:          6px;
  /* Semantic theme tokens (light defaults) */
  --page-bg:         #F8F8F6;
  --card-bg:         #FFFFFF;
  --card-border:     #E4E8EF;
  --input-bg:        #FFFFFF;
  --input-border:    #7F8C9F;
  --label-color:     #374151;
  --body-text:       #1A2333;
  /* Panel tokens (v5.8.2 Part 4). Any raised block that is not a .card:
     settings section cards and their headers, the sticky save bar, tab
     strips, stat blocks, table header/hover rows, modals.
     --wash was previously REFERENCED but never DEFINED, so every
     `var(--wash, #F7F6F3)` silently fell back to a hardcoded light value and
     stayed white in dark mode. It is defined here as an alias of --panel-alt
     so existing references theme correctly, and new code should prefer the
     --panel* names. NOTE: --white and --offwhite are deliberately NOT
     redefined per theme, because --white is also used as button TEXT colour
     (.btn-navy, .btn-danger) where it must stay white in both themes. */
  --panel:           #FFFFFF;
  --panel-alt:       #F7F6F3;
  --panel-border:    #E4E8EF;
  --wash:            #F7F6F3;
  --voice-named-bg: #E6F4EA; --voice-named-line: #8CC79F; --voice-named-ink: #1E5B32;
  --voice-likely-bg: #FDF1DC; --voice-likely-line: #E3B566; --voice-likely-ink: #7A4A06;
  --voice-unnamed-bg: #EEF0F3; --voice-unnamed-line: #C3CAD4; --voice-unnamed-ink: #4A5566;
  /* Shared with Juste (owner, 2026-10-28): the link back, static/back-link.css. */
  --border-strong: #C9D1DD; --chip: #EEF1F6; --link: #0A1628;
  /* Readability (UI review 2026-11-15, 8.0.19): gold #D4A017 is a fill, a line or a dot, never text on a light
     page (2.4 to 1); text in the accent is --accent-ink (6.25 to 1). Field and checkbox edges 3 to 1
     (--border-control); the focus ring navy on light pages (--focus). */
  --accent-ink: #7A5C00; --border-control: #7F8C9F; --focus: #0A1628;
  --play-bg: #0A1628; --play-ink: #FFFFFF; --play-hover: #1D2D47;
}

/* Dark theme tokens — applied by JS (data-theme="dark") or OS preference */
:root[data-theme="dark"],
:root:not([data-theme="light"]):not([data-theme]) {
  /* Only apply dark when OS is dark AND theme is not locked to light */
}
/* The @media block handles system/unset; [data-theme="dark"] overrides both */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg:       #0e1623;
    --card-bg:       #131f35;
    --card-border:   #1e2f4a;
    --input-bg:      #111827;
    --input-border:  #6A80A8;
    --label-color:   #c9d5e8;
    --body-text:     #dde4ef;
    --border:        #1e2f4a;
    --text:          #dde4ef;
    --text-secondary:#8a9bbf;
    --muted:         #8a9bbf;
    --panel:           #131f35;
    --panel-alt:       #0f1a2c;
    --panel-border:    #1e2f4a;
    --wash:            #0f1a2c;
    --voice-named-bg: #12301f; --voice-named-line: #2f7a4a; --voice-named-ink: #a9e2bd;
    --voice-likely-bg: #33260c; --voice-likely-line: #8a6420; --voice-likely-ink: #f3cf8a;
    --voice-unnamed-bg: #1c2638; --voice-unnamed-line: #3a4a63; --voice-unnamed-ink: #b9c4d6;
    --border-strong: #3A5174; --chip: #1D2D47; --link: #dde4ef;
    --accent-ink: #E0B030; --border-control: #6A80A8; --focus: #F2C35B;
    --play-bg: #DDE4EF; --play-ink: #0A1628; --play-hover: #FFFFFF;
  }
}
:root[data-theme="dark"] {
  --page-bg:         #0e1623;
  --card-bg:         #131f35;
  --card-border:     #1e2f4a;
  --input-bg:        #111827;
  --input-border:    #6A80A8;
  --label-color:     #c9d5e8;
  --body-text:       #dde4ef;
  --border:          #1e2f4a;
  --text:            #dde4ef;
  --text-secondary:  #8a9bbf;
  --muted:           #8a9bbf;
  --panel:           #131f35;
  --panel-alt:       #0f1a2c;
  --panel-border:    #1e2f4a;
  --wash:            #0f1a2c;
  --voice-named-bg: #12301f; --voice-named-line: #2f7a4a; --voice-named-ink: #a9e2bd;
  --voice-likely-bg: #33260c; --voice-likely-line: #8a6420; --voice-likely-ink: #f3cf8a;
  --voice-unnamed-bg: #1c2638; --voice-unnamed-line: #3a4a63; --voice-unnamed-ink: #b9c4d6;
  --border-strong: #3A5174; --chip: #1D2D47; --link: #dde4ef;
  --accent-ink: #E0B030; --border-control: #6A80A8; --focus: #F2C35B;
  --play-bg: #DDE4EF; --play-ink: #0A1628; --play-hover: #FFFFFF;
}
:root[data-theme="light"] {
  --page-bg:         #F8F8F6;
  --card-bg:         #FFFFFF;
  --card-border:     #E4E8EF;
  --input-bg:        #FFFFFF;
  --input-border:    #7F8C9F;
  --label-color:     #374151;
  --body-text:       #1A2333;
  --border:          #E4E8EF;
  --text:            #1A2333;
  --text-secondary:  #566375;
  --muted:           #566375;
  --panel:           #FFFFFF;
  --panel-alt:       #F7F6F3;
  --panel-border:    #E4E8EF;
  --wash:            #F7F6F3;
  --voice-named-bg: #E6F4EA; --voice-named-line: #8CC79F; --voice-named-ink: #1E5B32;
  --voice-likely-bg: #FDF1DC; --voice-likely-line: #E3B566; --voice-likely-ink: #7A4A06;
  --voice-unnamed-bg: #EEF0F3; --voice-unnamed-line: #C3CAD4; --voice-unnamed-ink: #4A5566;
  --border-strong: #C9D1DD; --chip: #EEF1F6; --link: #0A1628;
  --accent-ink: #7A5C00; --border-control: #7F8C9F; --focus: #0A1628;
  --play-bg: #0A1628; --play-ink: #FFFFFF; --play-hover: #1D2D47;
}

/* The focus ring (UI review 2026-11-15, 8.0.19): one rule for every control that sets none of its own, navy on
   light pages and gold in dark (--focus); gold on the navy header, its menus and the footer. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* ── Base ── */
html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--body-text);
  background: var(--page-bg);
  transition: background 0.2s, color 0.2s;
}

body {
  display: flex;
  flex-direction: column;
}
/* The top bar stays put and the page scrolls under it (Arash, 2026-11-13: the window's scroll bar ran up beside
   the bar). The window does not scroll: the box under the bar does, so its scroll bar starts under the bar. Inside
   it, "just under the top bar" is its own top (--header-h 0), and the window's height less the bar is --view-h. */
html, body { overflow: hidden; }
.site-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
  --header-h: 0px; --view-h: calc(100vh - 60px);
}
.site-scroll:focus { outline: none; }
@media print {
  html, body, .site-scroll { overflow: visible; height: auto; display: block; }
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
/* One height on every page (v6.7.8). The body is a flex column, and with no
   flex-shrink the header gave way on any page taller than the window: 50 px
   on the main page, Documentation and Settings, 70 px on History and the
   simple view, so it jumped from page to page (owner, 2026-10-09). 60 px, in
   between the two. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  height: 60px;
  background: linear-gradient(135deg, #0A1628 0%, #112240 60%, #0A1628 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(10,22,40,0.25);
  overflow: visible;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,160,23,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.site-header > * { position: relative; z-index: 1; }

/* Logo, name and ADMIN on one centre line, evenly spaced (owner, 2026-10-10). */
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The language code on the Display button, in a fixed width so EN, FR and ES make the same button. */
.lang-code { display: inline-block; width: 1.7em; text-align: center; }
@media (max-width: 480px) { .header-right { gap: 8px; } }

/* The main pages as tabs beside the name (owner, 2026-11-04): Transcribe, Matters, Search hearings. The header is
   navy in both themes, so these colours are fixed, not tokens. Below 1000 px they fold into the menu, where
   .hamburger-tab shows them. */
.main-tabs { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
/* The page you are on (owner, 2026-11-06, option 5 of internal/header-tabs-mark-1106.html): its name bright with a
   gold dot under it, the others dimmed. 0.55 rather than the mockup's 0.45 keeps the dimmed names readable on
   the navy (about 5:1). */
.main-tab {
  position: relative;
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius);
  color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-tab:hover { background: rgba(212,160,23,0.15); color: #fff; text-decoration: none; }
.main-tab-on { color: #fff; }
.main-tab-on::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--gold);
}
.main-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.hamburger-dropdown .hamburger-tab { display: none; }
@media (max-width: 1000px) {
  .main-tabs { display: none; }
  .hamburger-dropdown .hamburger-tab { display: flex; }
  .hamburger-dropdown hr.hamburger-tab { display: block; }
}
/* Who is signed in, the menu's first line (owner, 2026-11-04): where the Admin badge was. */
.hamburger-who { padding: 10px 16px 8px; font-size: 13px; color: rgba(255,255,255,0.55); border-bottom: 1px solid rgba(212,160,23,0.2); white-space: nowrap; }
.hamburger-who-in { color: var(--gold-lt); }
/* The account under it (owner, 2026-11-09): a round picture or first letter, the email, and the firm and trial. */
.hamburger-who-top { border-bottom: none; padding-bottom: 6px; }
.hamburger-account { display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; border-bottom: 1px solid rgba(212,160,23,0.2); white-space: nowrap; }
.account-face { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.account-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 700; }
.hamburger-account-text { display: flex; flex-direction: column; min-width: 0; }
.hamburger-email { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.hamburger-plan { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* Display (owner, 2026-11-04): language, layout, text size, Focus and theme in one menu. */
.display-menu { position: relative; flex-shrink: 0; }
.display-btn {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: none;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); color: rgba(255,255,255,0.75);
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.display-btn:hover, .display-btn[aria-expanded="true"] { background: rgba(212,160,23,0.15); border-color: rgba(212,160,23,0.5); color: #fff; }
.display-aa { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.display-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 300; min-width: 300px;
  background: var(--navy); border: 1px solid rgba(212,160,23,0.35); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10,22,40,0.45); padding: 6px 0;
}
.display-dropdown.open { display: grid; }
.display-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 14px; }
.display-label { font-size: 14px; color: rgba(255,255,255,0.82); white-space: nowrap; }
.display-seg { display: inline-flex; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.display-opt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 10px;
  background: none; border: 0; border-left: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.82);
  font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.display-seg > .display-opt:first-child { border-left: 0; }
.display-opt:hover { background: rgba(212,160,23,0.15); color: #fff; text-decoration: none; }
.display-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.display-opt:disabled { opacity: 0.4; cursor: default; }
.display-opt-on, .display-opt[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.display-switch { border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); min-width: 52px; }
.display-switch .when-on, .display-switch[aria-pressed="true"] .when-off { display: none; }
.display-switch[aria-pressed="true"] .when-on { display: inline; }

/* brand-home: clickable logo/name link in header */
.brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-home:hover { text-decoration: none; }
.brand-home:hover .tool-name { color: var(--gold); }

.ahura-horizontal-logo {
  height: 26px;
  width: auto;
  opacity: 0.88;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Wrapping link (v5.8.2 Part 7). Size and position are unchanged; only a
   subtle brightening on hover marks it as clickable. */
.ahura-horizontal-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.ahura-horizontal-logo-link:hover { text-decoration: none; }
.ahura-horizontal-logo-link:hover .ahura-horizontal-logo { opacity: 1; }

/* Theme toggle button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(212,160,23,0.15);
  border-color: rgba(212,160,23,0.5);
  color: #fff;
}
.theme-icon {
  width: 18px;
  height: 18px;
}

.ahura-icon {
  height: 36px;
  width: auto;
  cursor: pointer;
  display: block;
}

.tool-logo {
  height: 36px;
  width: auto;
  margin-left: 10px;
  display: block;
}

/* The product's name in Michroma, the face of every product's name on the
   sites, banners, posters and here (owner, 2026-10-26); SIL Open Font
   Licence 1.1, its text beside the file (assets/fonts/Michroma-OFL.txt).
   One weight: if it is ever wanted heavier, a thin text-stroke, not bold.
   26 px gives its capitals the height the Times italic of 2026-10-25 had
   (about 20 px). Before that it was Sony Sketch EF, which has no licence to
   ship with the program. */
@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-display: swap;
}
.tool-name {
  font-family: "Michroma", Arial, sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  margin-left: 6px;
  letter-spacing: 0.02em;
  /* The face draws its letters low in their box: lifted so their middle
     meets the logo's and the ADMIN badge's. */
  transform: translateY(-2px);
}
/* A phone: smaller, and kept to tight lines if the name wraps. */
@media (max-width: 480px) {
  .tool-name { font-size: 14px; line-height: 1; margin-left: 4px; transform: translateY(-1px); }
}

/* ── Hamburger button ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.hamburger-btn:hover { background: rgba(212,160,23,0.15); }

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ── Hamburger dropdown ── */
.hamburger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: var(--radius);
  min-width: 185px;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(10,22,40,0.45);
  overflow: hidden;
}

.hamburger-dropdown.open { display: block; }

.hamburger-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.hamburger-item:hover {
  background: rgba(212,160,23,0.15);
  color: #fff;
  text-decoration: none;
}

.hamburger-active {
  color: var(--gold);
  background: rgba(212,160,23,0.10);
}

.hamburger-locked { color: rgba(255,255,255,0.48); }
.hamburger-locked:hover { color: rgba(255,255,255,0.8); }

.lock-icon {
  font-size: 12.5px;
  opacity: 0.7;
}

.hamburger-divider {
  border: none;
  border-top: 1px solid rgba(212,160,23,0.2);
  margin: 4px 0;
}

/* ── Main ── */
/* The whole window, with the same 24 px edge in both views (owner, 2026-10-09):
   the 1200 px cap left about 200 px of empty grey each side of a laptop
   screen, and the simple view was tighter than the detailed one. */
.site-main {
  flex: 1;
  padding: 24px 24px 84px;    /* room at the end for Back to top (the review of 8.0.1: it sat on the last link) */
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── Footer ── */
.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 6px 24px; /* 2 px border + 6 + 44 px mark + 6 = a 58 px band */
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-text {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.footer-text a {
  color: var(--gold);
  text-decoration: none;
}

.footer-text a:hover { text-decoration: underline; }

/* Ahura Acta, who licenses the product, and its address; "by" and the Ahura Tech logo (2026-10-12) went in
   8.0.18 (Arash, 2026-11-15). Wraps on a narrow window. */
.footer-inner { flex-wrap: wrap; row-gap: 6px; }
/* Ahura Acta's mark: the designer's hand-signed wordmark, one SVG with its
   gold (#F0C040) baked in, linking to the site (owner, 2026-10-26). It
   replaced the name set in Pinyon Script (2026-10-14 to 2026-10-26). 44 px
   tall (about 120 px wide), as in Juste; its first 26 px, then 34 px, read
   small (owner, 2026-10-26). 38 px since 2026-11-08 (owner: too big beside the Ahura Tech logo; 14% smaller).
   The band is 58 px, not 64, so the footer's padding above is 6 px, not 14 (see .site-footer). */
.footer-acta-link { display: block; line-height: 0; flex-shrink: 0; text-decoration: none; }
.footer-acta-link:hover { text-decoration: none; }
.footer-acta-mark {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.footer-acta-link:hover .footer-acta-mark { opacity: 0.85; }

/* ── Flash messages ── */
.flash {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.flash-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
  padding: 20px 24px;
  border: 1px solid var(--card-border);
}

/* Matches .queue-panel-title. The three panels on the dashboard are one set
   and were set in two different faces, which read as an oversight. */
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary  { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-primary:hover { background: var(--gold-lt); }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--panel-alt); }
.btn-danger   { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #dc2626; }

/* Dark mode: btn-outline text becomes readable, btn-navy inverts */
:root[data-theme="dark"] .btn-outline { color: var(--body-text); border-color: rgba(255,255,255,0.2); }
:root[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .btn-navy { background: rgba(255,255,255,0.1); color: var(--body-text); border: 1.5px solid rgba(255,255,255,0.2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline { color: var(--body-text); border-color: rgba(255,255,255,0.2); }
  :root:not([data-theme="light"]) .btn-outline:hover { background: rgba(255,255,255,0.08); }
  :root:not([data-theme="light"]) .btn-navy { background: rgba(255,255,255,0.1); color: var(--body-text); border: 1.5px solid rgba(255,255,255,0.2); }
}
.btn-warning  { background: var(--warning); color: #fff; }
.btn-sm       { padding: 5px 12px; font-size: 13px; }
.btn-full     { width: 100%; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-control,
input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--body-text);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--input-border);
}
.form-control:focus-visible,
input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Additional Instructions is the field users type most into, and the context
   they put there measurably improves both transcription and formatting, so it
   is worth encouraging longer input: raised from 80px (about 4 rows) to 140px
   (about 7) using the space recovered in Part 5.1 and 5.2. Still user
   resizable, and short enough to keep the Process button above the fold on a
   typical laptop screen (v5.8.2 Part 5.3). */
textarea.form-control, textarea { resize: vertical; min-height: 140px; }

/* A row hidden with a feature that is off (feedback D.5): display:flex would
   otherwise override the hidden attribute. */
.checkbox-row[hidden] { display: none; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox-row label {
  display: inline;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.radio-group { display: flex; gap: 20px; }

.radio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.radio-row input[type="radio"] { accent-color: var(--gold); cursor: pointer; }

.hint-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Admin bar (merged watcher + cost, admin-only) ── */
.admin-bar {
  /* Pinned to the bottom of .site-main (flex column) so it always sits
     directly above the footer, regardless of how tall the queue panel or
     manual-processing form above it currently is. */
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 14px;
  color: var(--muted);
}

:root[data-theme="dark"] .admin-bar { background: rgba(212,160,23,0.07); border-color: rgba(212,160,23,0.18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-bar { background: rgba(212,160,23,0.07); border-color: rgba(212,160,23,0.18); }
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.idle     { background: var(--muted); }
.status-dot.watching { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.status-dot.error    { background: var(--error); }

.admin-bar-watch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.admin-bar-divider {
  color: var(--border);
  user-select: none;
  font-size: 14px;
}

.admin-bar-cost {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.admin-bar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* keep old cost-bar / status-bar IDs working via alias */
#cost-bar { }
#status-bar { }

/* ── Admin body tint ── */
body[data-admin="true"] {
  background: var(--page-bg);
}
/* Subtle header accent line to signal admin session */
body[data-admin="true"] .site-header {
  border-bottom-color: var(--gold-lt);
  box-shadow: 0 2px 16px rgba(212,160,23,0.22);
}


/* ── Dashboard grid ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Prevent grid cells from expanding beyond their fraction (issue #9) */
.dashboard-grid > * { min-width: 0; }

/* Right column: queue panel stacked above Recent Activity */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
/* The queue's own margin doubled the column's gap: 36 px between the queue
   and Activity (owner, 2026-10-09). The column's gap alone, 10 px (v6.7.8). */
.right-col .queue-panel { margin-bottom: 0; }
/* The panels run down to the footer, so there is no empty band under them
   and the page has the same grey margin on all sides as the simple view. */
.dashboard-grid { flex: 1; }
/* Minuta's form fills the window's height like Attesta's (owner, 2026-10-11):
   the drop area takes the room that was left empty under the buttons, so
   Transcribe Only and Write the minutes sit near the bottom of the card. */
.dashboard-grid > .card:first-child { display: flex; flex-direction: column; }
.dashboard-grid > .card:first-child > .drop-zone {
  flex: 1; min-height: 140px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.dashboard-grid .card-title { margin-bottom: 10px; padding-bottom: 7px; }
.activity-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }

/* Recent Activity grows to fill the column height, so with few items it
   visually matches the Manual Processing card's height instead of looking
   short and empty. */
.activity-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.activity-card .activity-list {
  /* Grows to the height the column gives it and scrolls past that, rather than
     stopping at a fixed height with empty card underneath. A fixed max-height
     here defeats the flex:1 on .activity-card above. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.queue-idle-msg {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Drag-drop zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(212,160,23,0.04);
}

.drop-zone-text  { font-size: 14px; color: var(--muted); margin-top: 8px; }
.drop-zone-label { font-size: 16px; font-weight: 600; color: var(--text); }

.drop-zone-file {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-top: 6px;
  word-break: break-all;
}

/* ── Progress bar ── */
.progress-wrap { margin-top: 16px; display: none; }
.progress-wrap.visible { display: block; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-neutral    { background: rgba(100,100,100,0.10); color: #555; }
.badge-done       { background: rgba(0,183,100,0.12); color: #00a855; }
.badge-success    { background: rgba(0,183,100,0.12); color: #00a855; }
.badge-warning    { background: rgba(255,180,0,0.15); color: #b07800; }
.badge-processing { background: rgba(30,64,175,0.10); color: #1E40AF; }
.badge-error      { background: rgba(210,60,60,0.12); color: #c0392b; }

/* The "Template" tag on a History row (v5.11.2). It marks a fact, not a state,
   so it carries no status colour: it is drawn entirely from the theme tokens,
   which is also why it stays legible in dark mode where the fixed greys above
   would not. */
.badge-template {
  background: var(--panel-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── History table ──
   Full page width (see .site-main--wide below), proportional columns via
   table-layout:fixed, and the file name/title column wraps instead of
   clipping. A horizontal scroll on the wrapping ancestor (views/history.html)
   remains the fallback for anything still too narrow, e.g. a small phone. */
.site-main--wide {
  /* No fixed pixel cap (v5.8.1 Part 6.1): this stretches with the viewport
     exactly like .site-footer already does, rather than binding at some
     point while the browser keeps widening. */
  max-width: none;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

/* Proportional widths: the title/file name column gets the most room, small
   fixed-content columns (date, duration, tokens, cost, status) the least. The
   remaining columns (accuracy/type/provider/output files/delete) share what
   is left at their natural content width. */
/* Column weighting (v5.8.2 Part 8). These previously summed to 102% plus a
   60px actions column, which is why the table always overflowed its container
   and clipped Delete no matter how wide the window was. Now: the narrow data
   columns take fixed widths sized to their content, Title takes a moderate
   share, and Output Files is the only `auto` column so it absorbs all
   remaining space and grows as the window widens. */
.history-table col.col-date     { width: 150px; }
/* Recording a fixed share, its title on at most two lines (the whole of it on hover), and Files the rest, so its
   buttons sit in one or two rows at 1366 px and at 2000 px (Arash, 2026-11-13: the recording took most of the
   width and squeezed Length, Status and Files to the right). */
.history-table col.col-title    { width: 36%;  }
.history-table col.col-submitted-by { width: 130px; }
.history-table col.col-duration { width: 70px;  }
.history-table col.col-accuracy { width: 96px;  }
.history-table col.col-type     { width: 110px; }
.history-table col.col-provider { width: 120px; }
.history-table col.col-tokens   { width: 78px;  }
.history-table col.col-cost     { width: 88px;  }
.history-table col.col-status   { width: 84px;  }
.history-table col.col-output   { width: auto; min-width: 260px; }  /* the files: Transcript, PDF, Review copy */
.history-table col.col-actions  { width: 84px;  }

/* The narrow columns hold single short values; keeping them on one line stops
   them claiming height they do not need. */
.history-table th:nth-child(1), .history-table td:nth-child(1),
.history-table th:nth-child(3), .history-table td:nth-child(3),
.history-table th:nth-child(4), .history-table td:nth-child(4),
.history-table th:nth-child(6), .history-table td:nth-child(6),
.history-table th:nth-child(7), .history-table td:nth-child(7),
.history-table th:nth-child(8), .history-table td:nth-child(8),
.history-table th:nth-child(9), .history-table td:nth-child(9) {
  white-space: nowrap;
}

/* Delete column pinned to the right edge so it is never clipped, at any
   window width, and stays reachable when the table does scroll horizontally
   on a narrow screen. The opaque background is required: without it the
   scrolled content shows through the pinned cell. */
.history-table th:last-child,
.history-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--card-bg);
  z-index: 2;
  box-shadow: -6px 0 6px -6px rgba(0,0,0,0.18);
}
.history-table thead th:last-child { z-index: 3; }
.history-table tr:hover td:last-child { background: var(--panel-alt); }

.history-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.history-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* Dense, small-value columns: tighter horizontal padding recovers space for
   the title/file name column without the table feeling cramped overall. */
.history-table th:nth-child(1), .history-table td:nth-child(1),
.history-table th:nth-child(3), .history-table td:nth-child(3),
.history-table th:nth-child(7), .history-table td:nth-child(7),
.history-table th:nth-child(8), .history-table td:nth-child(8),
.history-table th:nth-child(9), .history-table td:nth-child(9) {
  padding-left: 6px;
  padding-right: 6px;
}

.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--panel-alt); }

/* Job Log: failed rows visually distinct (v5.8.1 addendum Part 15) */
.job-log-row-failed td { background: rgba(210,60,60,0.06); }
.job-log-row-failed:hover td { background: rgba(210,60,60,0.12); }
.job-log-detail-row td { background: var(--panel-alt); }

.filename-cell {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  font-size: 12.5px;
}

.filename-cell .doc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.filename-cell .doc-source-file {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-table td:first-child {
  white-space: nowrap;
}

.history-table .template-cell {
  font-size: 12.5px;
}

@media (max-width: 900px) {
  /* Fixed layout fights column wrapping on a narrow screen; the wrapping
     ancestor's overflow-x:auto (views/history.html) is the fallback there. */
  .history-table { table-layout: auto; }
}

/* ── Page heading ── */
.page-heading,
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  /* var(--text), not var(--navy): --navy is a fixed brand colour, so in
     dark mode this rendered near-black on a near-black page and the
     heading disappeared entirely (found in v5.9.0). */
  color: var(--text);
  margin-bottom: 20px;
}

.page-header { margin-bottom: 20px; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Sticky save bar ── */
.sticky-save {
  position: sticky;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  margin: 28px -24px -20px;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Recent activity list ── */
.activity-list { list-style: none; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.activity-item:last-child { border-bottom: none; }

.activity-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.queue-eta {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ── Play a kept recording ── */
/* The button is replaced in place by the player, so both occupy the same slot
   and the row does not jump when one becomes the other. */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
}

.play-btn:hover { color: var(--accent-ink); }

audio.row-audio {
  width: 100%;
  min-width: 220px;
  max-width: 340px;
  margin-top: 6px;
  height: 34px;
}

/* The activity row is a single flex line and the control needs its own, so it
   sits in a wrapper that takes the full width. Putting flex-basis on the
   control itself does not work: max-width caps the used base size, the item
   still fits beside the name, and no wrap happens. */
.activity-item { flex-wrap: wrap; }
.activity-play { flex-basis: 100%; }
.activity-play audio.row-audio { margin-top: 0; }

/* ── Global toast (top-right) ── */
#toast-container {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  box-shadow: 0 4px 16px rgba(10,22,40,0.18);
  animation: toast-in 0.22s ease;
  pointer-events: auto;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.toast-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.toast-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.toast-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Settings two-column grid ── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.settings-section { margin-bottom: 24px; }

.settings-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* ── Provider tabs ── */
.provider-tabs-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.provider-tabs {
  display: flex;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
}

.provider-tab {
  flex: 1;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.provider-tab:hover { color: var(--navy); }

.provider-tab.active {
  color: var(--accent-ink);
  border-bottom-color: var(--gold);
  background: var(--panel);
}

.provider-tab-content { display: none; padding: 14px; background: var(--panel); }
.provider-tab-content.active { display: block; }

/* ── Per-type download buttons ── */
.download-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.history-table .download-buttons .btn { white-space: nowrap; }

.btn-dl-docx { border-color: #1E40AF; color: #1E40AF; }
.btn-dl-pdf  { border-color: #991B1B; color: #991B1B; }
.btn-dl-md   { border-color: #065F46; color: #065F46; }
.btn-dl-txt  { border-color: var(--muted); color: var(--muted); }
/* What the file is, beside the documents (v6.7.8): the transcript in the
   page's own ink, the file for one's own AI in gold and dashed, so neither
   reads as one of the documents or as the other. */
.btn-dl-transcript { border-color: var(--text, #1a2233); color: var(--text, #1a2233); }
.btn-dl-forai { border: 1.5px dashed var(--gold, #d4a017); color: var(--accent-ink); }
:root[data-theme="dark"] .btn-dl-forai { border-color: var(--gold, #d4a017); color: var(--gold, #d4a017); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-dl-forai { border-color: var(--gold, #d4a017); color: var(--gold, #d4a017); }
}

.activity-downloads { display: flex; gap: 4px; flex-wrap: wrap; }

/* -- Documentation hub -------------------------------------------------- */
/* The /docs landing page. It lists the three generated documents and their
   sections; the documents themselves are styled by the scoped stylesheet
   build_docs.py emits, not from here. Every colour is a theme token, so the
   page follows light and dark with the rest of the app (v5.8.2 Part 4). */
/* No max-width. 70ch here was about 560px inside a page more than twice that,
   so the paragraph broke early and left an empty block beside it. The card
   grid below already sets the measure for this page. */
.docs-hub-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.docs-hub-filter { max-width: 460px; }
.docs-hub-filter .hint-text { min-height: 18px; margin-top: 6px; }

.docs-hub-grid {
  display: grid;
  /* Two documents, so two columns, each wide enough to read a full section
     title without wrapping. Three narrow cards (v5.9.0) made every heading
     wrap and the outline hard to scan. min() keeps it to one column on a
     phone rather than overflowing. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  align-items: start;
}
.docs-hub-card { margin-bottom: 0; }
.docs-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.docs-hub-actions { display: flex; gap: 6px; flex-shrink: 0; }
.docs-hub-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.docs-hub-sections {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.docs-hub-item { margin: 0; }
.docs-hub-item a {
  display: block;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.docs-hub-item a:hover { background: var(--panel-alt); color: var(--accent-ink); }
/* The badge sits inline after the section title, so a long title wraps
   and takes the chip with it rather than pushing it off the row. */
.docs-hub-item .docs-admin-tag { margin-left: 6px; }
/* h2 is a top level section, h3 a subsection: indent rather than renumber, so
   the shape of the document is visible at a glance. */
.docs-hub-l2 > a { font-weight: 600; }
.docs-hub-l3 > a { padding-left: 20px; color: var(--muted); font-size: 14px; }
.docs-hub-unbuilt { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.docs-hub-extra { margin-top: 16px; }

/* ── Documentation ────────────────────────────────────────────────────────── */
/* Sidebar plus content. Every colour comes from a theme token, so the page
   follows light and dark with the rest of the app. */
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 16px;
  max-height: calc(var(--view-h, 100vh) - 40px);
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px;
}

.docs-filter { margin-bottom: 10px; font-size: 14px; }

.docs-nav-group {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 14px 0 6px;
}

.docs-nav-group:first-of-type { margin-top: 4px; }

.docs-nav a {
  display: block;
  padding: 5px 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 5px;
  border-left: 2px solid transparent;
}

.docs-nav a:hover {
  background: var(--border);
  color: var(--text);
  border-left-color: var(--accent);
}

.docs-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 26px 30px;
  min-width: 0;               /* lets wide tables scroll instead of stretching */
  line-height: 1.65;
}

.docs-level {
  font-size: 18px;
  margin: 40px 0 2px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.docs-content .docs-level:first-child { margin-top: 0; }

.docs-audience {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 18px;
}

.docs-content section { margin-bottom: 26px; scroll-margin-top: 16px; }

.docs-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.docs-content p,
.docs-content li { font-size: 14px; }

.docs-content ul,
.docs-content ol { margin: 0 0 10px 22px; }

.docs-content li { margin-bottom: 5px; }

.docs-content code {
  background: var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 14px;
  word-break: break-word;
}

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.docs-table th,
.docs-table td {
  border: 1px solid var(--border);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--border);
  font-weight: 700;
  white-space: nowrap;
}

.docs-admin-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.docs-note {
  border-left: 3px solid var(--accent);
  background: var(--border);
  padding: 9px 13px;
  border-radius: 0 5px 5px 0;
  margin: 10px 0;
}

/* ── Documentation: diagrams ──────────────────────────────────────────────── */
.docs-figure {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--card-bg);
}

/* Diagrams are wide. Let them scroll inside their own box rather than forcing
   the page to scroll sideways. */
.docs-figure-scroll { overflow-x: auto; }

.docs-figure img {
  display: block;
  min-width: 620px;          /* below this the mermaid labels stop being legible */
  width: 100%;
  height: auto;
}

.docs-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Documentation: benchmark chart ───────────────────────────────────────── */
/* Two categorical series, validated against this app's card surfaces in both
   light and dark (worst CVD deltaE 24.7 light / 26.8 dark). */
.docs-chart {
  --series-fa: #2a78d6;
  --series-en: #eb6834;
  margin: 14px 0 6px;
}

:root[data-theme="dark"] .docs-chart,
:root:not([data-theme="light"]):not([data-theme]) .docs-chart {
  --series-fa: #3987e5;
  --series-en: #d95926;
}

.docs-chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.docs-chart-legend span { display: flex; align-items: center; gap: 6px; }

.docs-chart-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
}

.docs-chart-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.docs-chart-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.docs-chart-bars { display: flex; flex-direction: column; gap: 2px; }

/* The value label gets its own column. Letting the bar and the label share a
   flex row makes a 100% bar overflow by the width of its own label, which pushes
   the whole page into horizontal scroll. */
.docs-chart-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 7px;
}

.docs-chart-bar {
  height: 10px;
  border-radius: 0 4px 4px 0;   /* rounded data-end, square against the baseline */
  min-width: 2px;
}

.docs-chart-value {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.docs-chart-axis {
  border-top: 1px solid var(--border);
  margin-left: 84px;
  margin-right: 47px;          /* clears the value-label column */
  padding-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.docs-footer-note {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: none; }
}

/* ── Documentation: print ─────────────────────────────────────────────────── */
/* The docs page doubles as the handout, so printing it has to produce a clean
   document: no app chrome, no navigation, black on white, and no section split
   across a page break. */
@media print {
  header, .admin-bar, .docs-nav, footer, .toast, #toast-container { display: none !important; }

  .docs-layout { display: block; }

  .docs-content {
    border: none;
    padding: 0;
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .docs-content h3, .docs-content h4 { break-after: avoid; page-break-after: avoid; }
  .docs-content section { break-inside: avoid-page; }
  .docs-level { break-before: page; page-break-before: always; border-bottom: 2px solid #000; }
  .docs-content .docs-level:first-child { break-before: auto; page-break-before: auto; }

  .docs-table { break-inside: avoid; font-size: 9.5pt; display: table; }
  .docs-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .docs-table th, .docs-table td { border: 1px solid #999; }

  .docs-figure { border: 1px solid #ccc; break-inside: avoid; }
  .docs-figure-scroll { overflow: visible; }
  .docs-figure img { min-width: 0; max-width: 100%; }

  /* Bars and swatches are the data, so their colour must survive printing. */
  .docs-chart-bar, .docs-chart-swatch {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .docs-chart { break-inside: avoid; }

  .docs-admin-tag {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }

  .docs-note { border-left: 3px solid #000; background: #f4f4f4 !important;
               -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  a { color: #000; text-decoration: none; }
}

/* Dismiss control on the browser activity list. Deliberately quiet: it hides a
   row locally and must not read as a delete action. */
.activity-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 4px;
  flex: none;
}

.activity-dismiss:hover {
  color: var(--text);
  background: var(--border);
}

/* ── Text-file hint ── */
.text-file-hint {
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(212,160,23,0.07);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

/* ── Login page ── */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55vh;
}

.login-card {
  background: var(--panel);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(10,22,40,0.12);
  padding: 40px;
  width: 360px;
  max-width: calc(100vw - 48px);
  border: 1px solid var(--border);
}

/* No small product label above the title (owner, 2026-11-08): the header already names it. */
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

/* Support access (v6.3.0). */
.support-card { max-width: 560px; }
/* What support needs when there is no working licence (feedback H.15). */
.support-diag { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 14px; }
.support-diag th, .support-diag td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #e4e8ef); vertical-align: top; }
.support-diag th { color: var(--muted); font-weight: 600; width: 45%; }
.support-intro { font-size: 14px; color: var(--muted); margin: -12px 0 18px; }
.support-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 26px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--page-bg);
  user-select: all;
  overflow-wrap: anywhere;
}
.support-answer { font-family: Consolas, "Courier New", monospace; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.support-back, .support-link { margin-top: 14px; font-size: 13px; text-align: center; }
.support-uses { margin: 6px 0 10px 18px; font-size: 14px; color: var(--muted); }
.support-note { color: var(--accent-ink); }
.settings-subhead { font-size: 16px; margin: 14px 0 4px; color: var(--text); }

.login-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Danger zone ── */
.danger-zone {
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(239,68,68,0.03);
}

.danger-zone h3 {
  border-bottom-color: var(--error);
}

/* ── Page description ── */
.page-description {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 16px;
  line-height: 1.6;
}

/* ── Diagnostics actions row ── */
.diag-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── Diagnostics summary strip ── */
.diag-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat {
  flex: 1;
  min-width: 90px;
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  background: var(--panel-alt);
  border: 1px solid var(--border);
}

.stat-n {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.stat-l {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  color: var(--muted);
}

.stat-pass { border-color: rgba(0,183,100,0.4); background: rgba(0,183,100,0.06); }
.stat-pass .stat-n { color: #00a855; }

.stat-warn { border-color: rgba(255,180,0,0.4); background: rgba(255,180,0,0.06); }
.stat-warn .stat-n { color: #b07800; }

.stat-fail { border-color: rgba(210,60,60,0.3); background: rgba(210,60,60,0.05); }
.stat-fail .stat-n { color: var(--error); }

/* ── Diagnostics table ── */
.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.diag-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--panel-alt);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.diag-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.diag-table tr:last-child td { border-bottom: none; }

/* Diagnostic result badges */
.badge-pass { background: rgba(0,183,100,0.12); color: #00a855; }
.badge-warn { background: rgba(255,180,0,0.15); color: #b07800; }
.badge-fail { background: rgba(210,60,60,0.12); color: #c0392b; }

/* ── Staged file list (pre-submit) ── */
.file-queue-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.file-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.file-queue-item:last-child { border-bottom: none; }

.fq-type-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.fq-audio { background: rgba(212,160,23,0.12); color: #96730e; }
.fq-text  { background: rgba(100,100,200,0.12); color: #4444aa; }

.fq-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.fq-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.fq-remove:hover {
  background: rgba(210,60,60,0.10);
  color: #c0392b;
  border-color: rgba(210,60,60,0.3);
}

/* ── Queue panel ── */
.queue-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}

.queue-panel-header {
  display: flex;
  align-items: center;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border);
}

.queue-panel-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  font-size: 14px;
}

.queue-item:last-child { border-bottom: none; }

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-width: 0;
  flex-wrap: wrap;
}

.queue-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.queue-filename {
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.queue-stage {
  font-weight: 500;
  color: var(--text);
}

.queue-position {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  min-width: 20px;
}

.queue-done-icon {
  color: #00a855;
  font-size: 14px;
  font-weight: 700;
}

.queue-error-msg {
  color: var(--error, #c0392b);
  font-size: 13px;
  font-style: italic;
}

.queue-count-row { font-size: 14px; color: var(--text-muted); }
.queue-count-text { font-style: italic; }

/* Queue badges */
.badge-queued    { background: rgba(30,64,175,0.10); color: #1E40AF; }
.badge-cancelled { background: rgba(120,120,120,0.10); color: #666; }

/* Origin tags */
.origin-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.origin-folder { background: rgba(212,160,23,0.12); color: #96730e; }
.origin-manual { background: rgba(139,92,246,0.12); color: #6d28d9; }

/* Whisper-model badge on processing/queued rows */
.queue-model-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(212,160,23,0.12);
  color: #96730e;
}

/* Queue cancel button */
.queue-cancel-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.queue-cancel-btn:hover {
  background: rgba(210,60,60,0.10);
  color: #c0392b;
  border-color: rgba(210,60,60,0.3);
}

/* Processing spinner */
.queue-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--gold, #D4A017);
  border-radius: 50%;
  animation: queue-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes queue-spin { to { transform: rotate(360deg); } }

/* Inline cancel confirm overlay */
.cancel-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cancel-confirm-box {
  background: var(--panel);
  border: 1px solid #dde3ec;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 380px;
  width: 92%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
}
:root[data-theme="dark"] .cancel-confirm-box {
  background: #1a2540;
  border-color: #2a3a5e;
}
@media (prefers-color-scheme: dark) {
  .cancel-confirm-box { background: #1a2540; border-color: #2a3a5e; }
}
.cancel-confirm-box p {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2540;
  line-height: 1.5;
}
:root[data-theme="dark"] .cancel-confirm-box p { color: #e8edf5; }
@media (prefers-color-scheme: dark) {
  .cancel-confirm-box p { color: #e8edf5; }
}
.cancel-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-danger {
  background: #c0392b;
  color: #fff;
  border: 1px solid #a93226;
}
.btn-danger:hover { background: #a93226; }

/* Dictation button */
.dictate-wrap {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.dictate-wrap .form-control {
  flex: 1;
}
.dictate-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dictate-btn:hover {
  background: rgba(99,179,237,0.10);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.dictate-btn.dictate-recording {
  background: rgba(220,50,50,0.12);
  color: #c0392b;
  border-color: #c0392b;
  animation: dictate-pulse 1.2s ease-in-out infinite;
}
.dictate-btn.dictate-processing {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.dictate-icon {
  width: 18px;
  height: 18px;
}
.dictate-spin {
  animation: queue-spin 0.9s linear infinite;
}
.dictate-status {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  min-height: 16px;
}

/* Empty (the normal state: it only carries text while dictating), this
   reserved 4px + 16px on top of the form group's own 16px margin, leaving a
   36px gap above the meeting date row where every other gap is 16px
   (v5.8.2 Part 5.2). Collapsed when empty so the form keeps one rhythm; the
   space returns the moment a dictation status appears. */
.dictate-status:empty {
  display: none;
}
@keyframes dictate-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Narrow-screen reflow (v5.1.1)
   Phones use the normal dashboard, reflowed to a single column. Same colors,
   fonts, and components as desktop; this is layout only, not a redesign.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Part 2: single-column dashboard (reaffirms the 900px rule at phone widths) */
  .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Part 2: full-width, finger-friendly controls (iOS 44px minimum).
     16px font-size stops iOS Safari from auto-zooming the page on focus. */
  .form-control,
  input[type="text"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  /* Part 2: primary buttons full width and tall enough to tap */
  .btn { width: 100%; min-height: 44px; }
  /* Keep genuinely small inline buttons (downloads, cancel, admin bar) compact */
  .btn-sm { width: auto; min-height: 0; }

  /* Part 2: stack the two primary action buttons (Transcribe Only / Process) */
  #action-buttons > div { flex-direction: column; }

  /* Part 2: roomier drop zone, full-width queue panel */
  .drop-zone { padding: 28px 16px; }
  .queue-panel { width: 100%; }

  /* Part 3: hide the Ahura Tech horizontal header logo on phones only.
     The tool logo and name stay visible; desktop is unchanged. */
  .ahura-horizontal-logo { display: none; }

  /* Mic dictation relies on MediaRecorder/getUserMedia, which is unreliable
     across mobile browsers. Phones already have a built-in keyboard dictation
     option, so the in-app mic button is hidden here; desktop is unchanged. */
  .dictate-btn, .dictate-status { display: none; }
}

/* ── Settings: collapsed advanced blocks ──────────────────────────────────
   Rarely-changed options (preprocessing, chunking, per-model pricing) sit
   behind a disclosure so the settings people actually use stay visible
   without scrolling past them. */
.settings-advanced {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 18px;
  background: var(--panel-alt);
}

/* Section header row (v5.8.2 Part 3). One structure for every header:
   [chevron] Title .................... Summary
   The chevron is a fixed-width flex item so every title starts at the same
   inset; the title is a flex item that truncates rather than wraps, so a long
   title cannot change the row height relative to its neighbours; the summary
   is pushed right by margin-left:auto. min-height fixes the row rhythm so all
   headers line up down the column regardless of content. */
.settings-advanced > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;      /* vertical centring, not baseline: a truncated
                               and a short title then sit identically */
  gap: 10px;
  min-height: 34px;         /* identical height for every header row */
}

.settings-advanced > summary::-webkit-details-marker { display: none; }

.settings-advanced > summary::before {
  content: "\25B8";                 /* right-pointing triangle */
  flex: 0 0 12px;                   /* fixed width: consistent title inset */
  text-align: center;
  transition: transform .15s ease;
}

.settings-advanced[open] > summary::before { transform: rotate(90deg); }

.details-summary-title {
  flex: 1 1 auto;
  min-width: 0;             /* required for ellipsis inside a flex item */
  text-align: left;         /* never centred */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  /* full text remains in the title attribute */
}

/* v5.8.1: every top-level Settings section is now one of these, collapsed by
   default, so the block sits directly at the top of its card with no heading
   above it -- the summary line IS the heading. */
.settings-section > details.settings-advanced:first-child { margin-top: 0; }

/* Right-aligned state summary. margin-left:auto pins it to the right edge so
   every summary's right edge forms a straight line down the column. It is
   allowed to shrink (and is hidden outright on narrow screens) rather than
   wrap, which would break the fixed row height. */
.details-summary-state {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted, #8A93A0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  /* Too narrow to show both: the title is what identifies the section, so
     the summary hides rather than squeezing the title to an ellipsis. */
  .details-summary-state { display: none; }
}

/* ── Settings: a field that does not apply to the current selection ───────
   Presentation only. The control stays enabled so its value keeps submitting;
   disabling it would post nothing and silently clear the saved setting. */
.field-inactive label,
.field-inactive .hint-text,
.field-inactive select {
  color: var(--muted, #8A93A0);
}

.field-inactive select {
  border-color: var(--border);
  background-color: var(--panel-alt);
  pointer-events: none;             /* not clickable while inactive */
}

.field-inactive .hint-text strong { color: inherit; font-weight: 600; }

/* ── Dark mode: status tints (v5.8.2 Part 4) ───────────────────────────────
   Flash messages, toasts, and the login error use pale pastel backgrounds
   with dark text. Readable on a light page, but they render as bright blocks
   on a dark one, which is exactly what Part 4 set out to remove. These
   overrides swap them for translucent tints over the dark page with a light
   text colour, matching how .badge-* already handles the same problem.
   Light mode is untouched: these rules only apply under a dark theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .flash-success,
  :root:not([data-theme="light"]) .toast-success {
    background: rgba(34,197,94,0.16); color: #6ee7a8; border-color: rgba(34,197,94,0.35);
  }
  :root:not([data-theme="light"]) .flash-error,
  :root:not([data-theme="light"]) .toast-error,
  :root:not([data-theme="light"]) .login-error {
    background: rgba(239,68,68,0.16); color: #fca5a5; border-color: rgba(239,68,68,0.35);
  }
  :root:not([data-theme="light"]) .flash-info,
  :root:not([data-theme="light"]) .toast-info {
    background: rgba(59,130,246,0.16); color: #93c5fd; border-color: rgba(59,130,246,0.35);
  }
  :root:not([data-theme="light"]) .toast-warning {
    background: rgba(245,158,11,0.16); color: #fcd34d; border-color: rgba(245,158,11,0.35);
  }
}
:root[data-theme="dark"] .flash-success,
:root[data-theme="dark"] .toast-success {
  background: rgba(34,197,94,0.16); color: #6ee7a8; border-color: rgba(34,197,94,0.35);
}
:root[data-theme="dark"] .flash-error,
:root[data-theme="dark"] .toast-error,
:root[data-theme="dark"] .login-error {
  background: rgba(239,68,68,0.16); color: #fca5a5; border-color: rgba(239,68,68,0.35);
}
:root[data-theme="dark"] .flash-info,
:root[data-theme="dark"] .toast-info {
  background: rgba(59,130,246,0.16); color: #93c5fd; border-color: rgba(59,130,246,0.35);
}
:root[data-theme="dark"] .toast-warning {
  background: rgba(245,158,11,0.16); color: #fcd34d; border-color: rgba(245,158,11,0.35);
}

/* Panel text and dividers must follow the panel, or a themed background ends
   up with dark-on-dark text (Part 4 point 3 and 4). */
.settings-advanced > summary { color: var(--text); }
.settings-advanced { border-color: var(--panel-border); }
.sticky-save { border-top-color: var(--panel-border); }

/* ── History: inline error detail for failed jobs (v5.8.2 Part 9) ─────────
   The Error badge is a real <button> so it is keyboard reachable; it looks
   identical to the static badge. Clicking expands the row below it. */
.badge-button {
  border: none;
  font: inherit;
  cursor: pointer;
}
.badge-button:hover { filter: brightness(0.94); }

.job-error-row td {
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--border);
}

.job-error-detail {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.28);
  border-left: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.job-error-stage {
  font-size: 13px;
  font-weight: 700;
  color: var(--error);
  margin-bottom: 6px;
}

/* Monospace so an exception message stays legible and copy-pastable, and
   pre-wrap so a long one wraps instead of forcing the table wider. */
.job-error-message {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  margin: 0 0 8px;
}

.job-error-link { font-size: 13px; }

/* Selectable file path (v5.8.2 Part 10.2): user-select:all means one click
   selects the whole path for copying, rather than word by word. */
.selectable-path {
  user-select: all;
  background: var(--panel-alt);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  word-break: break-all;
}

/* Meeting time: one field containing hour / minute / AM-PM segments.
   The WRAPPER carries the border, background, height and focus ring, so it
   reads as a single control sitting flush with the date field beside it --
   the same illusion the native time input creates. The segments inside are
   borderless and transparent, so there are no boxes-within-a-box.
   Widths are content sized (ch units) rather than fixed pixels, and the
   wrapper is a flex container inside a grid cell, so it cannot overflow the
   form the way the three separate controls used to. */
.time-combo {
  position: relative;   /* positioning context for the picker panel */
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus ring on the whole field when any segment has focus, matching
   .form-control:focus, so it looks and behaves like one input. */
.time-combo:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }

.time-combo input,
.time-combo select {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--body-text);
  text-align: center;
}

.time-combo input:focus,
.time-combo select:focus {
  outline: none;
  border: none;
  box-shadow: none;   /* the wrapper shows the focus state instead */
}

/* Hour right aligned, minute left aligned, so they sit tight against the
   colon whether the hour is one digit or two. Centring both leaves a gap
   before the colon on a single-digit hour ("7 :45" instead of "7:45"). */
.time-combo input { width: 2.2ch; }
#meeting_hour   { text-align: right; }
#meeting_minute { text-align: left; }
/* The native arrow is kept: without it the AM/PM segment looks like plain
   text and the fact that it is choosable disappears. It is the same
   affordance the date field's calendar button provides. */
.time-combo select {
  margin-left: 4px;
  cursor: pointer;
  text-align: left;
}

.time-sep {
  color: var(--muted);
  font-weight: 600;
}


/* ── Meeting time picker ──────────────────────────────────────────────────
   The clock button and its dropdown give the time field the same "type it or
   pick it" pair the date field has: type into the segments, or press the
   clock and choose. Three scrollable columns, mirroring the native time
   picker's shape, but with the AM/PM column the native control omits on a
   machine whose regional format is 24 hour. */
.time-picker-btn {
  margin-left: auto;      /* pinned to the right edge of the field */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.time-picker-btn svg { width: 15px; height: 15px; }
.time-picker-btn:hover { color: var(--accent-ink); }

.time-picker-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(10,22,40,0.18);
}
.time-picker-panel[hidden] { display: none; }

.time-picker-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 176px;
  overflow-y: auto;
  scrollbar-width: thin;
  /* Without an explicit thumb colour Chrome paints its default light
     scrollbar, which reads as a bright white strip on the dark panel. */
  scrollbar-color: var(--muted) transparent;
}
.time-picker-col--ampm { overflow: visible; }

.time-picker-opt {
  min-width: 42px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--body-text);
  font-size: 14px;
  font-family: var(--font);
  text-align: center;
  cursor: pointer;
}
.time-picker-opt:hover { background: var(--panel-alt); }
.time-picker-opt[aria-selected="true"] {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

/* ── Set up this computer (v5.15.0) ── */
.setup-banner {
  background: rgba(212,160,23,0.14);
  border-bottom: 1px solid rgba(212,160,23,0.45);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
}
.setup-banner a { font-weight: 600; margin-left: 6px; }
.setup-card { max-width: 520px; margin: 0 auto; }
.setup-card .hint-text { display: block; margin-top: 6px; }

/* ── History: company filter and tag (v5.14.0) ── */
.history-filter {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 14px;
}
.history-filter label { margin: 0; font-weight: 600; }
.history-filter .form-control { width: auto; min-width: 220px; }
.history-totals { color: var(--muted); }
.history-totals strong { color: var(--text); }
.badge-company {
  background: rgba(212,160,23,0.16);
  color: var(--text);
  border: 1px solid rgba(212,160,23,0.45);
}

/* ── Dashboard company menu (v5.14.0) ── */
.company-picker { display: flex; align-items: center; gap: 10px; }
.company-picker .form-control { flex: 1; }
.company-picker .company-logo-sm { height: 30px; max-width: 90px; }

/* ── Settings, v5.14.0: a section list on the left, one section shown ──────
   Replaces the two columns of collapsible blocks, whose right column was
   nested inside the left and left half the page empty. */
.settings-card { padding-top: 0; }
.settings-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 0 32px;
}
/* The list as Claude's own settings show theirs (owner, 2026-10-19): a
   shaded column, an icon for each part, the open part as a raised tab. */
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 16px 0;
  padding: 12px 10px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
}
.settings-nav-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.settings-nav-item:hover { background: var(--border); }
.settings-nav-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.settings-nav-item.active {
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(10,22,40,0.06);
}
.settings-nav-icon {
  grid-row: 1; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  color: var(--text-secondary);
}
.settings-nav-item.active .settings-nav-icon { color: var(--accent-ink); }
.settings-nav-label { grid-column: 2; font-size: 14px; font-weight: 500; }
.settings-nav-item.active .settings-nav-label { font-weight: 600; }
.settings-nav-state {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-panels { padding: 20px 0 8px; min-width: 0; }
.settings-panel h2 { font-size: 18px; margin: 0 0 4px; color: var(--text); }
.settings-panel .panel-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}
/* A hint belongs under its field, not squeezed beside it. */
.settings-panel .form-group > .hint-text,
.settings-panel .form-group > p.hint-text { display: block; margin-top: 6px; }
.settings-panel .checkbox-row { margin-bottom: 8px; }
.settings-panel .hint-text code,
.settings-panel .panel-intro code { font-size: 13px; word-break: break-all; }
.settings-note {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  background: var(--panel-alt);
  margin: 0 0 14px;
}
div.settings-note p { margin: 0; }
div.settings-note ul { margin: 6px 0 8px; padding-left: 20px; }
div.settings-note li { word-break: break-word; }
.settings-alert {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
}
.settings-alert-ok    { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.35); }
.settings-alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35); }

/* Two or three fields side by side, stacking on a phone. */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.company-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* A two-way choice, shown as one control rather than two radio lines. */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.segmented label { margin: 0; cursor: pointer; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text);
  border-right: 1px solid var(--input-border);
}
.segmented label:last-child span { border-right: none; }
.segmented input:checked + span { background: var(--play-bg); color: var(--play-ink); font-weight: 600; }   /* navy, as Fit width (8.0.19) */
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
}
.chip input:checked + span { border-color: var(--gold); background: rgba(212,160,23,0.14); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 6px 0;
  color: var(--text);
  font-weight: 400;
}
.checkbox-inline input { accent-color: var(--gold); }

/* ── Companies ── */
.company-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--panel);
}
.company-card > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.company-card > summary::-webkit-details-marker { display: none; }
.company-card > summary::before { content: "\25B8"; transition: transform .15s ease; color: var(--muted); }
.company-card[open] > summary::before { transform: rotate(90deg); }
.company-card[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.company-card > :not(summary) { margin-left: 16px; margin-right: 16px; }
.company-card-name { font-weight: 600; font-size: 14px; color: var(--text); }
.company-card-state { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.company-badge {
  font-size: 12.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(212,160,23,0.16);
  color: var(--text);
}
/* Logos are dark-converted for a white page, so they sit on white in both
   themes: on a dark panel they would disappear. */
.company-logo-sm {
  height: 22px;
  max-width: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
}
.style-block { padding: 4px 0 6px; }
.logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.logo-swatch {
  width: 150px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #566375;
  font-size: 13px;
}
.logo-swatch img { max-width: 136px; max-height: 46px; object-fit: contain; }
.file-button { cursor: pointer; margin-bottom: 4px; }
.file-note { display: block; }
.template-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.folder-path { margin-top: 8px; }
.company-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}
.btn-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.btn-danger-link { color: var(--error); }
.add-company { display: flex; gap: 8px; margin: 16px 0 8px; max-width: 520px; }
.add-company .form-control { flex: 1; }

.status-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-size: 14px;
  margin: 0 0 16px;
}
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; color: var(--text); font-weight: 600; word-break: break-all; }
.button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.price-row label { font-size: 12.5px; color: var(--muted); margin: 0; }
.price-model { color: var(--text); word-break: break-all; }
.provider-fields .settings-advanced { margin-top: 0; margin-bottom: 16px; }

@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; }
  /* The search across the top, then the parts as tabs that wrap, above
     the part that is open. */
  .settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    margin: 12px 0 4px;
  }
  .settings-search, .settings-search-results { flex: 0 0 100%; }
  .settings-nav-item { width: auto; flex: 0 0 auto; padding: 6px 10px; }
  .settings-nav-state { display: none; }
  .company-grid, .company-grid.three { grid-template-columns: 1fr; }
  .company-card-state { display: none; }
  .segmented { display: flex; flex-direction: column; width: 100%; }
  .segmented span { border-right: none; border-bottom: 1px solid var(--input-border); }
  .segmented label:last-child span { border-bottom: none; }
  .add-company { flex-direction: column; }
}

/* ── Review: the transcript against its recording (v5.23.0) ──────────────────
   Each word carries the speech engine's confidence as a colour, and the
   doubtful ones carry the figure above. The line height leaves room for
   that figure over every line, so the lines stay evenly spaced whether a
   line has flagged words or not. */
:root {
  /* Doubtful in dark red, less sure in amber (owner, 2026-10-08): visible
     without shouting. The PDF review copy uses the same two. */
  --rv-mid:   #8A5A00;
  --rv-low:   #8B1A1A;
  --rv-done:  #15803D;
  --rv-pick:  rgba(212,160,23,0.28);
  --rv-eng:   #6D28D9;
  --rv-off-bg:  #FDE68A;
  --rv-off-ink: #7C2D12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rv-mid:  #E0A84A;
    --rv-low:  #E07A7A;
    --rv-done: #4ADE80;
    --rv-eng:  #C4B5FD;
    --rv-off-bg:  #78350F;
    --rv-off-ink: #FDE68A;
  }
}
:root[data-theme="dark"] {
  --rv-mid:  #E0A84A;
  --rv-low:  #E07A7A;
  --rv-done: #4ADE80;
  --rv-eng:  #C4B5FD;
  --rv-off-bg:  #78350F;
  --rv-off-ink: #FDE68A;
}

.rv-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.rv-scale { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.rv-swatch { font-size: 16px; font-weight: 600; }
.rv-explain { display: block; margin: 10px 0 12px; text-wrap: pretty; }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.rv-actions label { color: var(--label-color); }
.rv-num { display: inline-block; width: 64px; padding: 4px 6px; }
.rv-show { display: inline-block; width: auto; padding: 4px 6px; }

.rv-transcript { padding: 24px 32px 28px; }
.rv-para { font-size: calc(16px * var(--rv-scale, 1)); line-height: 2.9; margin: 0 0 10px; color: var(--body-text); }
.rv-time {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--muted);
}
.rv-time:hover { color: var(--accent-ink); }
/* A long paragraph's next lines start under its words, not under its time (the review of 2026-11-14: "value
   was $2400." wrapped to the left of the column). The time takes a fixed width; the rest hangs beside it. */
.rv-para.rv-timed { padding-inline-start: 88px; text-indent: -88px; }
.rv-para.rv-timed > .rv-time { display: inline-block; width: 84px; min-width: 0; text-indent: 0; text-align: start; }
.rv-speaker { font-weight: 600; }
/* The confidence report (feedback E.6): legal work's controls stay in the page but out of sight. */
.rv-confidence .rv-legal-only { display: none !important; }
/* A stretch with no transcribed words, in legal work (audit M-18, v6.4.12). */
.rv-nospeech { color: var(--muted); font-style: italic; }

/* A court reporter's bookmarks (v6.5.0): a list at the side and a divider in
   the transcript, in the reporter's colour where the recording has one. */
/* The page (owner, 2026-10-30; full width since 2026-11-04): its left edge on the back button's, its right
   edge the same distance from the window's; a rail on the left that stays put from the top of the window,
   and the title, the toolbar and the transcript on the right. */
.rv-page { width: 100%; max-width: none; margin: 0; }
.rv-with-bm { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.rv-main { min-width: 0; }
.rv-bm-side {
  position: sticky; top: var(--header-h); height: calc(var(--view-h, 100vh) - var(--header-h) - 12px); overflow: hidden;
  display: flex; flex-direction: column; padding: 14px 14px 10px; font-size: 14px;
}
.rv-side-panes { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.rv-bm-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.rv-bm-times { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); }
.rv-bm-times select { width: auto; flex: 1; }
.rv-bm-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rv-bm-link {
  --bm: var(--border);
  display: block; padding: 5px 8px; border-left: 4px solid var(--bm); border-radius: 3px;
  color: var(--body-text); text-decoration: none; line-height: 1.35;
}
.rv-bm-link:hover, .rv-bm-link:focus-visible { background: var(--wash); }
.rv-bm-when { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-bm {
  --bm: var(--accent);
  display: flex; align-items: baseline; gap: 10px; margin: 18px 0 14px; padding: 6px 10px;
  border-top: 2px solid var(--bm); border-left: 4px solid var(--bm); background: var(--wash);
  font-size: 14px; scroll-margin-top: var(--rv-sticky, 90px);
}
.rv-bm-note { font-weight: 600; white-space: pre-line; }
.rv-bm-start, .rv-bm-stop { --bm: var(--muted); }
.rv-bm-case .rv-bm-note { font-weight: 400; }
@media (max-width: 900px) {
  .rv-with-bm { grid-template-columns: minmax(0, 1fr); }
  .rv-bm-side { position: static; height: auto; max-height: 420px; }
  .rv-toolbar { position: static; }
}
/* The rail tucked away (Arash, 2026-11-15, for 8.0.17): "‹" at its top leaves a thin tab with "›" at the left that
   opens it again (static/review-reading.js). In a narrow window the tab is a short line above the transcript. */
.rv-side-head { display: flex; align-items: flex-end; gap: 6px; margin: -2px 0 10px; border-bottom: 1px solid var(--border); }
.rv-side-head .rv-side-tabs { flex: 1; min-width: 0; margin: 0; border-bottom: 0; }
.rv-tuck { flex: none; align-self: center; width: 30px; height: 30px; margin-bottom: 4px; border: 1px solid var(--card-border);
  border-radius: 6px; background: var(--card-bg); color: var(--muted); font: inherit; font-size: 20px; line-height: 1;
  cursor: pointer; }
.rv-tuck:hover { color: var(--accent); border-color: var(--accent); }
.rv-tuck:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rv-untuck { display: none; }
body.rv-tucked .rv-bm-side { display: none; }
body.rv-tucked .rv-with-bm { grid-template-columns: 34px minmax(0, 1fr); }
body.rv-tucked .rv-untuck {
  position: sticky; top: calc(var(--header-h) + 4px); display: flex; flex-direction: column; align-items: center;
  gap: 10px; width: 34px; padding: 10px 0 14px; border: 1px solid var(--card-border); border-radius: 8px;
  background: var(--card-bg); color: var(--body-text); font: inherit; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body.rv-tucked .rv-untuck:hover { border-color: var(--accent); }
body.rv-tucked .rv-untuck:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rv-untuck-arrow { font-size: 22px; line-height: 1; color: var(--accent-ink); font-weight: 700; }
/* Read from the bottom up, as a book's spine (Arash, 2026-11-18, for 8.0.24). */
.rv-untuck-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em; }
@media (max-width: 900px) {
  body.rv-tucked .rv-with-bm { grid-template-columns: minmax(0, 1fr); }
  body.rv-tucked .rv-untuck {
    position: static; flex-direction: row; justify-self: start; width: auto; padding: 6px 14px; gap: 8px;
  }
  .rv-untuck-label { writing-mode: horizontal-tb; transform: none; }
}
body.rv-focus .rv-untuck { display: none !important; }
@media print { .rv-untuck { display: none !important; } }
/* Show bookmarks off (Settings, Court recordings; Arash, 2026-11-15, for 8.0.18; grey in 8.0.17): no bookmark
   anywhere. The Verification page leaves them out (review.html); here, what any page still draws: the dividers, the
   list, and the parts and recesses under a sound bar (Search hearings' case rows too). */
body[data-colour-marks="off"] .rv-bm, body[data-colour-marks="off"] .rv-bm-side .rv-bm-list,
body[data-colour-marks="off"] .rv-strip-band, body[data-colour-marks="off"] .rv-strip-names { display: none !important; }

/* Search (owner, 2026-10-14): the find box in the toolbar, every match in
   the side panel's Search tab. Matches are blue, apart from the official
   transcript's yellow; a similar spelling has a dashed edge. */
:root {
  --rv-hit:      #D6E6FA;
  --rv-hit-now:  #9CC3F5;
  --rv-hit-line: #1F4E79;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --rv-hit: #1E3A5F; --rv-hit-now: #2F5C94; --rv-hit-line: #9CC3F5; }
}
:root[data-theme="dark"] { --rv-hit: #1E3A5F; --rv-hit-now: #2F5C94; --rv-hit-line: #9CC3F5; }
/* The find box at the top of the rail (2026-10-30): the count inside the box,
   the arrows beside it, the three switches under it. */
.rv-find { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.rv-find-field { position: relative; flex: 1 1 auto; min-width: 0; }
.rv-find-field .rv-find-box { width: 100%; padding-right: 76px; }
.rv-find-field .rv-find-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 0; text-align: right; pointer-events: none; }
.rv-find-step { padding: 5px 9px; font-size: 14px; line-height: 1; }
.rv-find-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 10px; font-size: 14px; }
/* Said by (owner, 2026-10-21; a list in the toolbar since 2026-10-30). */
.rv-who { display: inline-block; width: auto; max-width: 280px; padding: 4px 6px; }
/* The chips the case page uses (views/case.html). */
.rv-who-chip {
  padding: 3px 11px; border-radius: 999px; border: 1px solid var(--card-border);
  background: var(--wash); color: var(--body-text); font: inherit; font-size: 13px; cursor: pointer;
}
.rv-who-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .rv-who-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0A1628; }
.rv-arrived { animation: rv-arrived 2.4s ease-out 1; border-radius: 6px; }
@keyframes rv-arrived { from { background: rgba(212,160,23,0.28); } to { background: transparent; } }
.rv-arrived-word { box-shadow: 0 0 0 2px var(--accent); border-radius: 3px; }   /* the word said at a chart's moment (2026-11-13) */
.rv-find-box { flex: 1 1 220px; min-width: 0; padding: 7px 12px; font-size: 15px; }
.rv-find-count { min-width: 58px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rv-side-tabs { display: flex; gap: 2px; margin: -2px 0 10px; border-bottom: 1px solid var(--border); }
.rv-side-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 4px 8px 6px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.rv-side-tab[aria-selected="true"] { color: var(--body-text); border-bottom-color: var(--accent); }
.rv-similar { display: inline-flex; }
.rv-find-note { margin: 4px 0 8px; text-wrap: pretty; }
.rv-find-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rv-find-hit {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 4px;
  padding: 6px 8px; font: inherit; font-size: 14px; line-height: 1.4; color: var(--body-text); cursor: pointer;
}
.rv-find-hit:hover, .rv-find-hit:focus-visible { background: var(--wash); }
.rv-find-cur { background: var(--wash); box-shadow: inset 3px 0 0 var(--rv-hit-line); }
.rv-find-meta { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-find-hit mark { color: inherit; border-radius: 2px; padding: 0 1px; }
.rv-find-hidden { margin-top: 8px; text-wrap: pretty; }
/* Each match (batch A11): its time, speaker and part, the sentence, Play. */
.rv-find-row { display: flex; align-items: flex-start; gap: 4px; }
.rv-find-row .rv-find-hit { flex: 1 1 auto; min-width: 0; }
.rv-find-time { color: var(--rv-hit-line); text-decoration: underline; text-underline-offset: 2px; }
.rv-find-line { display: block; }
.rv-find-play { flex: 0 0 auto; margin-top: 6px; padding: 2px 8px; font-size: 13px; }
.rv-find-opt { white-space: nowrap; }

/* The find strip (batch A11, owner 2026-10-26): the whole hearing, a tick per
   match in the theme's accent, and under it the hearing's parts from the
   clerk's headings. A part keeps the clerk's colour where it reaches 3:1 on
   the panel, else takes the next of these (static/review-search.js); all
   eight reach 5.9:1 or more on the light panel and 6.2:1 on the dark one.
   The light tick is the accent darkened to 4.8:1, so its count reads too. */
:root {
  --rv-tick: #946C00;
  --rv-wave: #C5CCD8;      /* the waveform behind the ticks: muted, under the 3:1 of a mark */
  --rv-part-1: #1F4E79; --rv-part-2: #8A5A00; --rv-part-3: #2E6B30; --rv-part-4: #6A1B9A;
  --rv-part-5: #9E2A3A; --rv-part-6: #00695C; --rv-part-7: #5D4037; --rv-part-8: #283593;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rv-tick: var(--accent);
    --rv-wave: #2E3F5E;
    --rv-part-1: #7FB3E6; --rv-part-2: #E0B04A; --rv-part-3: #7CC47F; --rv-part-4: #C08AE0;
    --rv-part-5: #F08A96; --rv-part-6: #4DC7B5; --rv-part-7: #C4A08A; --rv-part-8: #9FA8F0;
  }
}
:root[data-theme="dark"] {
  --rv-tick: var(--accent);
  --rv-wave: #2E3F5E;
  --rv-part-1: #7FB3E6; --rv-part-2: #E0B04A; --rv-part-3: #7CC47F; --rv-part-4: #C08AE0;
  --rv-part-5: #F08A96; --rv-part-6: #4DC7B5; --rv-part-7: #C4A08A; --rv-part-8: #9FA8F0;
}
.rv-strip { margin-top: 8px; }
.rv-strip-track {
  position: relative; height: 40px; border-radius: 4px; cursor: pointer;
  background: var(--wash); border: 1px solid var(--card-border);
}
/* The loudness behind the ticks (owner, 2026-10-26): thin bars, never in front. */
.rv-strip-wave { position: absolute; left: 0; top: 2px; height: calc(100% - 4px); pointer-events: none; }
.rv-strip-wave path { stroke: var(--rv-wave); stroke-width: 1px; vector-effect: non-scaling-stroke; fill: none; }
.rv-tick {
  position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; padding: 0;
  border: 0; border-radius: 2px; background: var(--rv-tick); cursor: pointer;
}
.rv-tick::before { content: ""; position: absolute; inset: -4px -5px; }   /* a target wider than the mark */
.rv-tick-many {
  width: auto; min-width: 16px; margin-left: -8px; padding: 0 3px;
  font: 700 11px/16px var(--font); color: #fff; font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .rv-tick-many { color: var(--card-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-tick-many { color: var(--card-bg); } }
.rv-tick-now { box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--rv-tick); z-index: 1; }
.rv-strip-head {
  position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px;
  background: var(--body-text); pointer-events: none; z-index: 2;
}
.rv-strip-band { position: relative; height: 8px; margin-top: 2px; }
.rv-part {
  position: absolute; top: 0; bottom: 0; box-sizing: border-box;
  border-right: 2px solid var(--card-bg); border-radius: 2px;
}
.rv-part-none { background: var(--border); }
.rv-recess {
  position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px;
  background: var(--card-bg); border-left: 1px dashed var(--muted); border-right: 1px dashed var(--muted);
}
.rv-strip-names { position: relative; height: 14px; margin-top: 0; font-size: 12.5px; color: var(--muted); }
.rv-part-name { position: absolute; top: 0; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-strip-ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rv-w.rv-hit, .rv-find-hit mark.rv-hit { background: var(--rv-hit); }
.rv-w.rv-hit-near, .rv-find-hit mark.rv-hit-near { background: var(--rv-hit); outline: 1px dashed var(--rv-hit-line); }
.rv-w.rv-hit-now { background: var(--rv-hit-now); box-shadow: 0 0 0 2px var(--rv-hit-line); }
@media print {
  .rv-w.rv-hit, .rv-w.rv-hit-near, .rv-w.rv-hit-now { background: none; outline: none; box-shadow: none; }
}

.rv-w { position: relative; cursor: pointer; border-radius: 3px; padding: 1px 0; }
.rv-w:hover, .rv-w:focus-visible { background: var(--rv-pick); outline: none; }
.rv-selected { background: var(--rv-pick); box-shadow: 0 0 0 2px var(--rv-pick); }
.rv-high, .rv-unknown { color: var(--body-text); }
.rv-mid  { color: var(--rv-mid); font-weight: 600; }
.rv-low  { color: var(--rv-low); font-weight: 600; }
.rv-ok   { color: var(--body-text); border-bottom: 2px solid var(--rv-done); }
.rv-fix  { color: var(--rv-done); font-weight: 600; border-bottom: 2px solid var(--rv-done); }
.rv-gone { color: var(--muted); text-decoration: line-through; }
/* The second engine heard something else here (v5.24.0). */
.rv-alt { text-decoration: underline dotted var(--rv-eng); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Against an official transcript, shown while "Show the differences" is on. */
.rv-swatch.rv-off, body.rv-show-off .rv-w.rv-off { background: var(--rv-off-bg); color: var(--rv-off-ink); }
.rv-gap { display: none; font-size: 14px; background: var(--rv-off-bg); color: var(--rv-off-ink); border-radius: 3px; padding: 0 4px; }
body.rv-show-off .rv-gap, .rv-key-off .rv-gap { display: inline; }
.rv-official { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--label-color); }
.rv-official-sum { cursor: pointer; width: fit-content; color: var(--muted); }
.rv-official-sum:hover { color: var(--body-text); }
.rv-official[open] > .rv-official-sum { color: var(--label-color); }
.rv-official-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
/* The numbers above the less sure words only while checking (Arash, 2026-11-13); reading shows the colours alone. */
body:not(.rv-checking) .rv-w[data-pct]::after { content: none; }
body:not(.rv-checking) .rv-legend-num, body:not(.rv-checking) .rv-legend-note { display: none; }
/* The second engine's dotted line, too, only while checking: the reading legend has no line for it. */
body:not(.rv-checking) .rv-w.rv-alt { text-decoration: none; }
.rv-legend-list li[hidden] { display: none; }
.rv-w[data-pct]::after {
  content: attr(data-pct);
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 3px;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}

.rv-transcript { position: relative; }
/* The word being spoken while the recording plays through. */
.rv-now { background: var(--rv-pick); box-shadow: 0 0 0 2px var(--rv-pick); }

/* The panel that opens beside a pressed word. */
.rv-pop {
  position: absolute; z-index: 40; width: 360px; max-width: calc(100% - 16px);
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(10,22,40,0.22); padding: 10px 12px;
  font-size: 14px; line-height: 1.4; color: var(--body-text);
}
.rv-pop-head { display: flex; align-items: baseline; gap: 8px; }
.rv-pop-head strong { font-size: 16px; }
.rv-pop-head .rv-close { margin-left: auto; }
.rv-pop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rv-pop-row[hidden] { display: none; }

/* Installing the legal package from Settings (v6.0.0): a ring that fills. */
.legal-install { margin-top: 14px; }
.licence-code { font-family: Consolas, "Courier New", monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.06em; color: var(--body-text); margin: 4px 0; }
.licence-banner { border-left-color: var(--error); }
.drop-zone-legal { margin-top: 4px; font-size: 13px; }

/* A court recording dims Process with AI, and asks first (v6.1.0). */
.btn-ai-caution { filter: saturate(0.25); opacity: 0.72; }
.btn-ai-caution:hover { opacity: 0.9; }
.ai-warn-overlay {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px;
  background: rgba(10,22,40,0.55);
}
.ai-warn-box {
  background: var(--card-bg); color: var(--body-text); border: 1px solid var(--card-border);
  border-left: 4px solid var(--warning); border-radius: 10px; max-width: 560px; width: 100%;
  padding: 22px 24px; box-shadow: 0 16px 48px rgba(10,22,40,0.35);
}
.ai-warn-box h2 { font-size: 18px; margin-bottom: 10px; }
.ai-warn-box p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; text-wrap: pretty; }
.ai-warn-3 { color: var(--muted); }
.ai-warn-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.fq-official { background: var(--rv-off-bg, #FDE68A); color: var(--rv-off-ink, #7C2D12); }
.legal-install-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.settings-note-ok { border-left-color: var(--success); }
/* The licence's row of facts, as Juste's (owner, 2026-11-04). */
.lic-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 4px 0 8px; }
.lic-fact { background: var(--wash); border-radius: 8px; padding: 10px 14px; border-left: 3px solid transparent; }
.settings-sub .lic-fact { background: var(--card-bg); }      /* the Licence fold is shaded: the facts stand out, as in Juste */
.lic-fact-ok { border-left-color: var(--success); }
.lic-fact-bad { border-left-color: var(--error); }
.lic-fact-l { font-size: 13px; color: var(--muted); }
.lic-fact-v { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
/* Settings, Licence: Computers on this licence, as Juste's card (owner, 2026-11-04). */
.lic-pcs { margin: 18px 0 16px; }
.lic-pcs-title { margin: 0 0 6px; font-size: 16px; }
.lic-pc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lic-pc-table th, .lic-pc-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 14px; }
.lic-pc-table th { color: var(--muted); font-weight: 600; font-size: 14px; }
.lic-pc-table td:last-child, .lic-pc-table th:last-child { text-align: right; }
.lic-pc-table form { margin: 0; display: inline; }
.lic-pc-this { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; color: #1f8a4c; border: 1px solid #1f8a4c; border-radius: 10px; padding: 0 7px; }
.lic-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.lic-pc-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.lic-pc-more .hint-text { font-style: italic; }
/* Need more computers? (2026-11-11): the button opens a small form under it (views/settings.html). */
.lic-pc-ask { flex-basis: 100%; }
.lic-pc-ask > summary { list-style: none; display: inline-flex; cursor: pointer; }
.lic-pc-ask > summary::-webkit-details-marker { display: none; }
.lic-pc-ask[open] > summary { margin-bottom: 10px; }
.lic-pc-form { max-width: 420px; }
.lic-pc-form .hint-text, .lic-pc-ask > .hint-text { font-style: normal; }
:root[data-theme="dark"] .lic-pc-this { color: #6fd39a; border-color: #6fd39a; }
:root[data-theme="dark"] .lic-linkbtn { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lic-pc-this { color: #6fd39a; border-color: #6fd39a; }
  :root:not([data-theme="light"]) .lic-linkbtn { color: var(--accent-ink); }
}
.legal-ring {
  --pct: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--border) 0);
  display: grid; place-items: center; position: relative;
}
.legal-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card-bg); }
.legal-ring span { position: relative; font-size: 12.5px; font-weight: 700; color: var(--label-color); }
.legal-ring-spin { background: conic-gradient(var(--gold) 25%, var(--border) 0); animation: legal-spin 1s linear infinite; }
@keyframes legal-spin { to { transform: rotate(360deg); } }
.rv-yes { color: var(--rv-done); border-color: var(--rv-done); }
.rv-no  { color: var(--rv-low);  border-color: var(--rv-low); }
.rv-chip {
  border: 1px solid var(--panel-border); background: var(--wash); color: var(--body-text);
  border-radius: 999px; padding: 2px 10px; font-family: inherit; font-size: 14px; cursor: pointer;
}
.rv-chip:hover { border-color: var(--accent); }
.rv-input { flex: 1 1 150px; min-width: 120px; padding: 6px 10px; }
.rv-close {
  border: none; background: none; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--muted); padding: 0 4px;
}

/* The player for the whole recording, under the sound bar in the toolbar
   (owner, 2026-10-30; it was along the foot of the window). */
.rv-player {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0;
  font-size: 14px; color: var(--label-color);
}
/* One row (8.0.19): Start checking, the player, then Legend, the gear and Save and print at the right end. The line
   on how a word plays is in the gear's Playing. */
.rv-tool-row .rv-play-how { display: none; }
.rv-player audio { display: none; }
/* The player, option B (owner, 2026-11-03): round icons, the 30 inside the arrow, a round gold Play. */
.rv-icon { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer; }
.rv-icon:hover { background: rgba(212,160,23,0.15); }
/* Play is navy (8.0.19, one gold button per screen: Start checking is the gold one); light navy in dark. */
.rv-play { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--play-bg); color: var(--play-ink);
  display: inline-grid; place-items: center; cursor: pointer; }
.rv-play:hover { background: var(--play-hover); }
.rv-icon:focus-visible, .rv-play:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rv-icon svg text { font-family: var(--font); }
.rv-time { font-variant-numeric: tabular-nums; color: var(--text); min-width: 110px; }
.rv-speed select { display: inline-block; width: auto; padding: 4px 6px; margin-left: 4px; }
.rv-follow, .rv-auto { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 760px) {
  .rv-transcript { padding: 16px; }
}
@media print {
  .site-header, .site-footer, .rv-bar, .rv-pop, .rv-actions, .setup-banner, #rv-side { display: none !important; }
  .rv-with-bm { grid-template-columns: minmax(0, 1fr); }
  .rv-transcript { box-shadow: none; border: none; padding: 0; }
  .rv-para { break-inside: avoid; }
}

/* ── Transcript Verification layout (v6.0.0) ─────────────────────────────── */
/* The toolbar stays above the transcript while it scrolls (owner, 2026-10-30). */
.rv-toolbar {
  position: sticky; top: var(--header-h); z-index: 30; margin-bottom: 12px; padding: 10px 16px;
  box-shadow: 0 8px 18px rgba(10,22,40,0.08);
}
/* Right under the header, with nothing of the transcript showing above it or
   beside its rounded corners (owner, 2026-11-02). */
.rv-toolbar::before {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 100%; height: 12px;
  background: var(--page-bg); pointer-events: none;
}
.rv-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.rv-tool-gap { flex: 1 1 auto; }
.rv-tool-row .rv-menu { margin-left: 0; }
.rv-figs .rv-menu { margin-left: 0; }      /* a wrapped row stays flush left (the review of 8.0.1) */
/* Checking (owner, 2026-10-30): a bar under the toolbar's row while it runs. */
.rv-checkbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding: 8px 12px;
  border: 1px solid var(--accent); border-radius: 8px; background: rgba(212,160,23,0.12); font-size: 14px;
}
.rv-checkbar[hidden] { display: none; }
.rv-prog { width: 160px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.rv-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.rv-prog-text { color: var(--muted); font-variant-numeric: tabular-nums; }
#rv-start[hidden] { display: none; }
/* The settings menu (owner, 2026-10-30). */
/* A drawn gear, 20 px, in a button as tall as Legend and Save and print (Arash, 2026-11-13). Two classes, so the
   one button shape further down (.btn-sm) cannot set it back. */
.btn.btn-sm.rv-gear { display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; }
.rv-gear-ico { width: 20px; height: 20px; display: block; flex: none; }
.rv-menu-list.rv-settings-card { width: 360px; max-height: calc(100vh - 220px); overflow-y: auto; }
.rv-set-head { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rv-settings-card .rv-show, .rv-settings-card #rv-times { width: 100%; }
.rv-play-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-play-set .rv-keep { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rv-settings-card .rv-official { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; justify-items: start; }
.rv-play-how { font-size: 13px; }
/* While the transcript is filtered: what is shown, and the way back. */
.rv-filterinfo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 6px 10px;
  border-radius: 6px; background: rgba(212,160,23,0.16); font-size: 14px; color: var(--body-text);
}
.rv-filterinfo[hidden] { display: none; }
/* The title and, on its line, the figures as buttons (owner, 2026-10-30). */
.rv-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
/* The title on one line, 20 px Semibold, 12 px above the toolbar (8.0.19, more room for the transcript). */
.page-header.rv-head { margin-bottom: 12px; }
.page-header.rv-head h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; min-width: 0; flex: 0 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-title-row { flex-wrap: nowrap; }
.rv-title-row .rv-figs { flex: 0 0 auto; }
.rv-figs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Only while checking (Arash, 2026-11-15, for 8.0.17): the file, the accuracy and the counts take a line the reading
   does not need. Start checking brings them back; a filter they set keeps its own bar (rv-filterinfo). */
body:not(.rv-checking) .rv-figs { display: none; }
.rv-counts { display: contents; }
.rv-fig {
  display: inline-block; border: 1px solid var(--card-border); background: var(--wash); color: var(--body-text);
  border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer;
  list-style: none; white-space: nowrap;
}
summary.rv-fig::-webkit-details-marker { display: none; }
.rv-fig:hover { border-color: var(--accent); }
.rv-fig[aria-pressed="true"], .rv-fig-menu[open] > .rv-fig { border-color: var(--accent); background: rgba(212,160,23,0.18); }
.rv-fig-low { color: var(--rv-low); } .rv-fig-mid { color: var(--rv-mid); } .rv-fig-ok { color: var(--rv-done); }
span.rv-fig { cursor: default; } span.rv-fig:hover { border-color: var(--card-border); }
.rv-fig-menu { position: relative; }
.rv-fig-menu .rv-menu-list { left: 0; right: auto; }
.rv-menu-list.rv-menu-card { padding: 12px 14px; gap: 8px; max-width: 380px; font-size: 14px; color: var(--body-text); line-height: 1.45; }
.rv-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.rv-facts dt { color: var(--muted); } .rv-facts dd { margin: 0; overflow-wrap: anywhere; }
.rv-tool { color: var(--label-color); }
.rv-menu { position: relative; margin-left: auto; }
.rv-menu > summary { list-style: none; cursor: pointer; }
.rv-menu > summary::-webkit-details-marker { display: none; }
.rv-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 300px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(10,22,40,0.18); padding: 6px 0; display: flex; flex-direction: column;
}
/* A menu's own items, not the buttons inside a card such as the settings. */
.rv-menu-list > a, .rv-menu-list > button {
  display: block; padding: 8px 14px; color: var(--body-text); text-decoration: none; font-size: 14px;
  background: none; border: none; text-align: left; font-family: inherit; cursor: pointer;
}
.rv-menu-list > a:hover, .rv-menu-list > button:hover { background: var(--wash); }
/* Save and print's More fold (Arash, 2026-11-13): the three files few people need, closed until asked for. */
.rv-save-list { min-width: 240px; }
.rv-more { border-top: 1px solid var(--panel-border); margin-top: 4px; padding-top: 4px; }
.rv-more > summary { padding: 8px 14px; font-size: 14px; color: var(--muted); cursor: pointer; list-style: none; }
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more > summary::before { content: "\25B8"; display: inline-block; width: 14px; transition: transform 0.15s; }
.rv-more[open] > summary::before { transform: rotate(90deg); }
.rv-more > summary:hover { background: var(--wash); }
.rv-more > a { display: block; padding: 8px 14px 8px 28px; color: var(--body-text); text-decoration: none; font-size: 14px; }
.rv-more > a:hover { background: var(--wash); }
.rv-official-body .rv-off-path { display: inline-block; flex: 1 1 260px; width: auto; max-width: 420px; padding: 4px 8px; }

/* The legend: a menu in the toolbar, closed until asked for (owner, 2026-10-30). */
.rv-menu-list.rv-legend-card { width: 300px; }
.rv-legend-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.rv-legend-list li { color: var(--muted); }
.rv-legend-list .rv-swatch { display: inline-block; min-width: 46px; }
.rv-legend-limits { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; color: var(--label-color); }
.rv-legend-limits .rv-num { margin-left: 6px; }
@media print {
  .rv-toolbar, .rv-figs { display: none !important; }
}

/* ── Documentation wiki (feedback 2026-10-07 C.4) ─────────────────────────── */
.wiki { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
/* The contents run the page's full length rather than scrolling in a box (owner, 2026-10-07). */
.wiki-side { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); }
.wiki-search { position: relative; margin-bottom: 12px; }
.wiki-results { margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); max-height: 360px; overflow-y: auto; }
.wiki-results a { display: block; padding: 8px 10px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.wiki-results a:hover { background: var(--panel-alt); }
.wiki-results strong { display: block; font-size: 14px; }
.wiki-results span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wiki-results em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.wiki-results .hint-text { padding: 8px 10px; }
.wiki-part { margin-bottom: 6px; }
.wiki-part > summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 6px 2px; font-size: 16px; }
.wiki-tree { list-style: none; margin: 0 0 0 4px; padding-left: 10px; border-left: 1px solid var(--border); }
.wiki-tree li { margin: 1px 0; }
.wiki-tree summary { cursor: pointer; list-style-position: outside; }
.wiki-tree a { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 14px; line-height: 1.35; color: var(--text); text-decoration: none; }
.wiki-tree a:hover { background: var(--panel-alt); }
.wiki-tree .wiki-here > a, .wiki-tree .wiki-here > details > summary > a { background: var(--navy); color: #fff; }
.wiki-print { margin-top: 12px; }
.wiki-main { min-width: 0; }
.wiki-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.wiki-crumbs span { margin: 0 6px; }
.wiki-crumbs a { color: var(--muted); }
.wiki-title { font-size: 26px; margin: 0 0 14px; }
.wiki-lead { max-width: none; margin-bottom: 18px; }
.wiki-onpage { border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius);
  background: var(--panel-alt); padding: 10px 14px; margin: 0 0 18px; font-size: 14px; }
.wiki-onpage ul { margin: 6px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.wiki-children { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 12px; }
.wiki-children ul { margin: 6px 0 0; padding-left: 18px; }
.wiki-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; border-top: 1px solid var(--border); padding-top: 14px; }
.wiki-pager a { display: block; max-width: 48%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.wiki-pager a:hover { border-color: var(--gold); }
.wiki-pager span { display: block; font-size: 13px; color: var(--muted); }
.wiki-next { margin-left: auto; text-align: right; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.wiki-card h2 { font-size: 22px; margin: 0 0 6px; }
.wiki-card ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.7; }
.wiki-body { background: transparent; }
.wiki-contents > summary { display: none; }
.wiki .admin-tag { display: inline-block; margin-left: 6px; background: var(--accent); color: var(--navy); font-size: 12.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 10px; vertical-align: middle; }
@media (max-width: 820px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki-contents > summary { display: block; cursor: pointer; font-weight: 700; padding: 6px 2px; color: var(--navy); }
  .wiki-side { position: static; max-height: none; }
  .wiki-onpage ul { columns: 1; }
}

/* ── The simple view (v6.6.0; owner and Surena, 2026-10-08) ─────────────────
   One window of about 800 x 600: drop a recording, names and terms,
   Transcribe on the left; the queue and what is ready on the right. The two
   cards run down to the footer, so there is no empty band below them. */
/* The same grey margin on all four sides at any window size (owner, 2026-10-08),
   and since 2026-10-09 the same header, edges and gaps as the detailed view. */
.simple-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.simple-grid > .card { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.simple-title { font-size: 14px; font-weight: 600; color: var(--text); }
.simple-label { font-size: 13px; font-weight: 600; color: var(--label-color); }
.simple-drop {
  flex: 1; min-height: 84px; margin: 0; padding: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.simple-drop-icon { width: 28px; height: 28px; color: var(--accent-ink); }
.simple-drop .drop-zone-label { font-size: 16px; font-weight: 600; }
.simple-drop .drop-zone-text { font-size: 13px; }
.simple-card textarea.simple-names {
  min-height: 36px; height: 36px; padding: 8px 10px; font-size: 14px; resize: none; overflow: hidden; margin-top: -4px;
}
.simple-more { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--card-border); padding-top: 8px; }
.simple-more[hidden] { display: none; }
.simple-langs, .simple-formats { border: none; margin: 0; padding: 0; }
.dashboard-grid .simple-langs { margin-bottom: 16px; }   /* two columns: spaced as a form row (2026-11-09) */
.simple-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.simple-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 15px; font-size: 14px; cursor: pointer;
}
.simple-chip:has(input:checked) { border-color: var(--gold); background: rgba(212,160,23,0.12); }
/* The recording's languages as a drop-down (owner, 2026-11-11; views/recording_languages.html): the closed box says
   what is picked, the open list has Automatic on top and the languages by name. */
.lang-pick { position: relative; display: inline-block; min-width: 240px; max-width: 100%; margin: 4px 0; }
.lang-pick > summary { list-style: none; cursor: pointer; position: relative; padding: 7px 34px 7px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); color: var(--body-text);
  font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.lang-pick[open] > summary, .lang-pick > summary:focus-visible { border-color: var(--gold); outline: none; }
.lang-pick-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 300px;
  overflow-y: auto; padding: 6px 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(15,27,45,0.14); }
.lang-pick-list label { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 14px;
  cursor: pointer; white-space: nowrap; }
.lang-pick-list label:hover { background: rgba(212,160,23,0.10); }
.lang-pick-list .lang-pick-auto { border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 9px; }
.simple-more-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.simple-more-row .simple-label { display: flex; flex-direction: column; gap: 3px; }
.simple-formats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.simple-formats legend { width: 100%; }
.simple-formats label { display: inline-flex; align-items: center; gap: 4px; }
.simple-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-btn { border: none; background: none; padding: 0; color: var(--accent-ink); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.simple-go { width: 140px; height: 44px; font-size: 16px; }
.simple-queue { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.simple-queue-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--card-border); font-size: 13px;
}
.simple-queue .queue-item { padding: 8px 12px; }
.simple-queue .queue-idle-msg { padding: 8px 12px; }
.simple-done, .simple-pending { list-style: none; margin: 0; padding: 0; }
.simple-done .activity-item, .simple-pending-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-top: 1px solid var(--card-border); font-size: 14px; flex-wrap: nowrap;
}
.simple-done .activity-name, .simple-pending-item .activity-name {
  flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.simple-state { color: var(--muted); font-size: 13px; }
.simple-review { background: var(--navy); color: #fff; border: none; }
.simple-review:hover { color: #fff; background: #1a2b4a; }
.simple-pending-item { background: rgba(212,160,23,0.08); }

/* The header's chips: Downloads, Folder, Teams (v6.7.8). One word each, a
   dot for the state, Stop / Start where there is one. Smaller than before so
   three fit beside the view switch and the globe. */
.dl-pill {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 4px 0 10px;
  border: 1px solid #3a4a66; border-radius: 15px; background: rgba(255,255,255,0.06);
  color: #fff; font-size: 14px; font-weight: 600; position: relative; z-index: 1;
  flex-shrink: 0; white-space: nowrap;
}
.dl-pill.chip-static { padding-right: 11px; cursor: default; }
.dl-pill.chip-error .dl-dot { background: #e05252; }
.dl-pill[hidden] { display: none; }
.dl-dot { width: 9px; height: 9px; border-radius: 5px; background: #2fb36a; }
.dl-pill.dl-off .dl-dot { background: #8a94a6; }
.dl-btn {
  height: 22px; padding: 0 10px; border-radius: 11px; border: none; background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.hamburger-button { width: 100%; border: none; background: none; font-family: inherit; text-align: left; cursor: pointer; }
/* Sign out is a small form since 6.8.0; it must add no space of its own. */
.hamburger-form { margin: 0; }

@media (max-width: 700px) {
  .simple-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .simple-drop { min-height: 96px; }
  .dl-pill #dl-text, .dl-pill .chip-text { display: none; }
}

/* A way back to the main page from every other page: the app's own window
   has no browser Back button (v6.6.1). */
/* Its look is static/back-link.css (owner, 2026-10-28); here only its place. */
.back-to-main { align-self: flex-start; margin: -10px 0 12px; }

/* ── v6.8.0: Settings in nine parts, each with its own Save ─────────────────
   Three group headings in the list on the left; "Saved" beside the button
   that saved, not at the top of the page; rarely changed fields under More. */
.settings-nav-group {
  font-size: 13px; font-weight: 500;
  color: var(--muted); padding: 12px 10px 4px;
}
.settings-search-results + .settings-nav-group { padding-top: 4px; }
.settings-panel .part-detail { margin: -12px 0 18px; }
.part-save {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.part-saved { font-size: 14px; font-weight: 600; color: var(--muted); }
.part-saved-ok { color: var(--success); }
.part-saved-bad { color: var(--error); font-weight: 500; }
.settings-more { margin-top: 16px; }
.settings-more > summary .details-summary-state { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; }
/* Languages spoken here (2026-10-21): plain ticks, the untested folded. */
.spoken-languages { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.spoken-languages legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--label-color); }
.spoken-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.spoken-ticks label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 400; margin: 0; }
.spoken-ticks input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.spoken-others { margin: 10px 0 6px; font-size: 14px; }
.spoken-others > summary { cursor: pointer; font-weight: 600; color: var(--label-color); padding: 2px 0; }
.spoken-others .spoken-ticks { padding: 10px 0 2px 18px; }
/* Features (2026-10-21): one line each. */
.feature-line { display: block; padding-left: 26px; }
.settings-sub + .settings-sub { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--border); }
/* Parts shown together (before the script picks one, or with no script) are spaced as the folds in a part are;
   one part alone is untouched (2026-11-10). */
.settings-panel:not([hidden]) ~ .settings-panel:not([hidden]) {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.part-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-alt);
  padding: 12px 14px; margin: 0 0 18px;
}
.restart-now { margin-top: 14px; }
.restart-now p { margin: 0; }

/* The Teams status: one pill per thing, then the meetings line and the one
   thing missing, with the link to where it is fixed. */
.teams-status-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 13px; padding: 3px 10px; color: var(--text);
  background: var(--panel);
}
.ts-pill i { width: 7px; height: 7px; border-radius: 50%; background: #8a94a6; display: inline-block; }
.ts-pill-on i { background: var(--success); }
.ts-pill-blocked i { background: var(--warning); }
.teams-status-line { font-size: 14px; margin: 10px 0 0; color: var(--text); }
.teams-status-missing { color: var(--text); }
.teams-status-missing strong { color: var(--error); margin-right: 4px; }
.teams-status-missing a { margin-left: 6px; font-weight: 600; }

/* The Teams setup page: five numbered parts under the status. */
.ts-lede { margin: -8px 0 16px; }
.ts-card { margin-bottom: 18px; }
.ts-h2 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.ts-part + .ts-part { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.ts-way { margin: 0 0 14px; }
.ts-way-fields { margin: 8px 0 0 26px; }
.ts-narrow { max-width: 360px; }
.ts-pre { white-space: pre-wrap; max-height: 320px; overflow: auto; font-size: 13px; }
.ts-code { font-size: 1.3em; letter-spacing: 2px; }
.ts-grant-box { white-space: pre-wrap; margin: 4px 0 10px; }
.ts-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14px; }
.ts-steps li { margin-bottom: 4px; }
.ts-policy { margin-top: 18px; }
.ts-perm-table { margin: 8px 0 12px; }
.ts-try-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.ts-try-name { font-weight: 600; font-size: 14px; min-width: 140px; }

/* The header's Teams chip opens the Teams setup (v6.8.0). */
a.dl-pill.chip-link { text-decoration: none; color: #fff; cursor: pointer; }
a.dl-pill.chip-link:hover { border-color: var(--gold); }

@media (max-width: 760px) {
  .settings-nav-group { display: none; }
  .ts-way-fields { margin-left: 0; }
}
.ts-part > p.hint-text, .ts-way-fields > p.hint-text, .ts-policy > p.hint-text { margin: 0 0 12px; }
.ts-part > .ts-h2 + p.hint-text { margin-top: -2px; }

/* ── The main page's one list (v6.10.0; owner, 2026-10-15) ──────────────────
   Attesta: one line to add a recording, then the transcripts as a table.
   Minuta: the form on the left, the meetings on the right. Both: the job
   being worked on as a bar above the list, which slides open and shut. */
:root {
  --home-blue:     #1F5FBF;  --home-blue-bg:  #E6EEFB;
  --home-amber:    #8A5A00;  --home-amber-bg: #FFF4D6;
  --home-green:    #1E7A4A;  --home-green-bg: #E3F4EA;
  --home-grey-bg:  #EEF1F5;  --home-red:      #B42318;  --home-red-bg: #FDECEA;
  --home-hover:    #F3F6FB;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --home-blue: #8DB4F5; --home-blue-bg: #16294A; --home-amber: #F2C35B; --home-amber-bg: #3A2D0C;
    --home-green: #7AD6A2; --home-green-bg: #123426; --home-grey-bg: #1C2A44;
    --home-red: #F49A92; --home-red-bg: #3A1A1F; --home-hover: #18263F;
  }
}
:root[data-theme="dark"] {
  --home-blue: #8DB4F5; --home-blue-bg: #16294A; --home-amber: #F2C35B; --home-amber-bg: #3A2D0C;
  --home-green: #7AD6A2; --home-green-bg: #123426; --home-grey-bg: #1C2A44;
  --home-red: #F49A92; --home-red-bg: #3A1A1F; --home-hover: #18263F;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Attesta */
.home { flex: 1; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.home-add { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.home-add-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.8fr) auto auto; gap: 12px; align-items: center; }
/* The drop area and the names box are 1.5 times as tall as the buttons beside
   them (owner, 2026-10-30): a bigger target, and the buttons keep their size. */
.home-drop.drop-zone {
  margin: 0; padding: 12px 16px; min-height: 66px; display: flex; flex-direction: row; align-items: center;
  justify-content: flex-start; gap: 12px; text-align: left;
}
.home-drop .simple-drop-icon { width: 26px; height: 26px; flex: none; }
.home-drop .drop-zone-label { font-size: 14px; font-weight: 600; }
.home-drop .drop-zone-text { font-size: 14px; margin: 0; }
.home-add textarea.home-names { min-height: 66px; height: 66px; padding: 9px 10px; font-size: 15px; resize: none; overflow: hidden; margin: 0; }
.home-add .simple-go { width: auto; min-width: 120px; height: 40px; padding: 0 22px; }
.home-hint { font-size: 13px; color: var(--muted); }
.home-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.home-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-head .simple-title { font-size: 16px; }
.home-count { color: var(--muted); font-size: 14px; }
.home-sp { flex: 1; }
.home-head a { color: var(--accent-ink); font-size: 14px; }
.home-find.form-control { width: 280px; max-width: 100%; height: 34px; padding: 6px 10px; font-size: 15px; margin: 0; }
.home-showing { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.home-showing a { margin-left: 8px; font-weight: 500; }
.home-body { flex: 1; min-height: 0; overflow-y: auto; }
.home-list .simple-pending-item { border: 1px solid rgba(212,160,23,0.45); border-radius: 8px; padding: 9px 12px; }
.home-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.home-table th:nth-child(2) { width: 110px; } .home-table th:nth-child(3) { width: 100px; }
.home-table th:nth-child(4) { width: 190px; } .home-table th:nth-child(5) { width: 180px; }
.home-table th:nth-child(6) { width: 170px; }
/* The matter, or Not filed yet (2026-11-04): a long name is cut, the whole of it in the menu. */
.home-matter .mt-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.home-table th {
  text-align: left; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--card-border);
}
.home-table td { padding: 8px 10px; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.home-group-row td {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 12px 10px 4px; border-bottom: none;
}
.home-row[data-href] { cursor: pointer; }
.home-row:hover td { background: var(--home-hover); }
.home-name .home-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-name small { display: block; color: var(--muted); font-size: 13px; }
.home-name small.home-err { color: var(--home-red); }
.home-when, .home-len { white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-btns { white-space: nowrap; text-align: right; }
.home-btns .btn { margin-left: 4px; }
/* Retry all that did not finish (2026-11-11), above the list at the right. */
.home-retry-all { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.home-chip { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 9px; padding: 1px 8px; white-space: nowrap; background: var(--home-grey-bg); color: var(--muted); }
.home-chip-part { background: var(--home-amber-bg); color: var(--home-amber); }
.home-chip-done, .home-chip-clear { background: var(--home-green-bg); color: var(--home-green); }
.home-chip-err { background: var(--home-red-bg); color: var(--home-red); }
.home-none td, .home-empty { color: var(--muted); text-align: center; padding: 18px 10px; }
.home-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.home-foot a { color: var(--accent-ink); }

/* The bar above the list */
.run-slot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.run-slot.on { grid-template-rows: 1fr; }
.run-slot-inner { overflow: hidden; min-height: 0; }
.run-list { list-style: none; margin: 0; padding: 0; }
.run-item {
  border: 1px solid var(--card-border); background: var(--home-blue-bg); border-radius: 8px;
  padding: 10px 12px; display: grid; gap: 8px;
}
.run-top { display: flex; align-items: center; gap: 10px; }
.run-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-state { color: var(--home-blue); font-size: 13px; white-space: nowrap; }
.run-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.run-step { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.run-step::before { content: ""; height: 5px; border-radius: 3px; background: var(--card-bg); }
.run-step.done::before { background: var(--home-blue); }
.run-step.now { color: var(--home-blue); font-weight: 600; }
.run-step.now::before {
  background: linear-gradient(90deg, var(--home-blue) 50%, var(--card-bg) 50%); background-size: 200% 100%;
  animation: run-step-move 1.6s linear infinite;
}
@keyframes run-step-move { from { background-position: 100% 0; } to { background-position: 0 0; } }
.run-sub { font-size: 13px; color: var(--muted); }
/* The graphics card stopped answering; the processor finishes the recording (2026-11-12). */
.run-note { margin-top: 6px; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; color: var(--body-text);
  background: color-mix(in srgb, var(--gold) 12%, transparent); border-left: 3px solid var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .run-slot { transition: none; }
  .run-step.now::before { animation: none; background: var(--home-blue); opacity: .55; }
}

/* Minuta */
.home-meetings { flex: 1; }
.home-meetings .home-card-title { margin: 0; padding: 0; border: none; }
.home-group-label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 0 2px; }
.home-ul { list-style: none; margin: 0; padding: 0; }
.home-item.activity-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 2px 12px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--card-border); flex-wrap: nowrap;
}
.home-logo { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--card-border); }
.home-initials { display: grid; place-content: center; background: var(--navy); color: #fff; border: none; font-weight: 700; font-size: 13px; }
.home-nologo { display: grid; place-content: center; background: var(--home-grey-bg); color: var(--muted); border: none; }
.home-nologo svg { width: 18px; height: 18px; }
.home-item .home-title { grid-column: 2; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-meta { grid-column: 2; color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.home-src { display: inline-flex; align-items: center; gap: 4px; }
.home-src svg { width: 13px; height: 13px; }
.home-item .home-btns { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.home-item .home-btns .btn { margin: 0; }
.home-item .home-links { grid-column: 2 / span 2; }
.home-item .activity-dismiss { grid-column: 4; grid-row: 1 / span 2; position: static; }

@media (max-width: 860px) {
  .home-add-row { grid-template-columns: 1fr; }
  .home-find.form-control { width: 100%; }
  .home-table th:nth-child(3), .home-table td:nth-child(3) { display: none; }
}

/* Close (v6.10.1): the menu item and its question, asked in the page. */
/* It was var(--text), dark navy on the navy menu in the light theme, so it
   showed only under the mouse (Arena Vachi, 2026-10-16). Gold, with an
   icon, at the bottom of the menu (v6.11.0). */
/* The layout row of the Display menu (v6.11.0; in the menu since 2026-11-04). Shown at every width since
   2026-11-10: it was hidden below 700 px, and a narrow window never offered it (the owner's Sandbox test). */
.layout-btn .display-opt { text-decoration: none; }
/* Naming the speakers on the verification page (v6.11.0, part B). */
.rv-speaker-named-able { cursor: pointer; border-bottom: 1px dashed var(--gold); }
.rv-speaker-named-able:hover, .rv-speaker-named-able:focus-visible { color: var(--accent-ink); outline: none; }
.rv-sp-input { display: inline-block; width: auto; min-width: 180px; padding: 2px 6px; font-size: 14px; }
.rv-sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-sp-row { padding: 8px; border: 1px solid var(--card-border); border-radius: var(--radius); display: grid; gap: 4px; }
.rv-sp-row .rv-sp-input { width: 100%; }
.rv-sp-unnamed { background: rgba(212,160,23,0.08); }
.rv-sp-first { font-size: 14px; color: var(--text-secondary); font-style: italic; }
.rv-sp-row .btn { justify-self: start; }
/* Roles, moves and merges (owner, 2026-10-21): chips to drag onto a
   speaker, a role list beside the name, "Same person as", and the menu on a
   speaker's label in the transcript (static/review-speakers.js). */
.rv-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rv-role-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; cursor: grab;
  background: var(--wash); border: 1px solid var(--card-border); color: var(--body-text); user-select: none;
}
.rv-role-chip:active { cursor: grabbing; }
.rv-drop { outline: 2px dashed var(--gold); outline-offset: 2px; background: rgba(212,160,23,0.10); }
.rv-sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rv-sp-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rv-sp-role { width: 100%; padding: 3px 6px; font-size: 15px; }
.rv-sp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rv-sp-same { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rv-sp-same select { width: auto; max-width: 150px; padding: 2px 4px; font-size: 15px; }
.rv-sp-merged { font-size: 13px; }
.rv-sp-merged .btn-link { padding: 0 4px; font-size: 13px; }
.rv-sp-menu {
  position: absolute; z-index: 60; min-width: 240px; max-width: 320px; padding: 6px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(10,22,40,0.18); font-size: 14px; line-height: 1.4;
}
.rv-sp-menu-head { padding: 6px 8px 8px; font-weight: 600; border-bottom: 1px solid var(--panel-border); margin-bottom: 4px; }
.rv-sp-menu-row { padding: 4px 8px; }
.rv-sp-menu-sub { padding: 8px 8px 2px; font-size: 13px; }
.rv-sp-item {
  display: block; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 6px;
  background: none; color: var(--body-text); font: inherit; cursor: pointer;
}
.rv-sp-item:hover, .rv-sp-item:focus-visible { background: var(--wash); outline: none; }
/* The case (Attesta, 2026-10-21): who is who, and a misheard name's bar. */
.rv-case-title { font-weight: 600; margin: 0 0 4px; }
.rv-case-list { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 8px; }
.rv-case-row { padding: 8px; border: 1px solid var(--card-border); border-radius: var(--radius); display: grid; gap: 5px; }
.rv-case-from { font-size: 13px; }
.rv-case-add { border-top: 1px solid var(--card-border); padding-top: 8px; }
.rv-case-add > summary { cursor: pointer; font-weight: 600; width: fit-content; }
.rv-case-add[open] { display: grid; gap: 6px; }
.rv-case-add input[type=file] { max-width: 100%; font-size: 13px; }
.rv-case-add .btn { justify-self: start; }
.rv-misheard { display: grid; gap: 6px; margin-top: 10px; }
.rv-misheard-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--voice-likely-bg); color: var(--voice-likely-ink); font-size: 14px;
}
.rv-misheard-row > span { flex: 1 1 320px; }
/* Search in Settings (v6.11.0), in the look of Claude's (2026-10-19): a
   rounded box with a magnifier, and while there is something to search for
   the results stand in the list's place. */
.settings-search { position: relative; margin-bottom: 8px; }
.settings-search input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 10px;
  padding: 8px 38px 8px 34px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.settings-search input::placeholder { color: var(--muted); }
.settings-search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.settings-search input::-webkit-search-cancel-button { display: none; }
.settings-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.settings-search-key {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: inherit; font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px;
  padding: 0 6px; background: var(--panel-alt);
}
.settings-search-clear {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border: none; border-radius: 6px; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.settings-search-clear:hover { background: var(--border); color: var(--text); }
.settings-nav.searching .settings-nav-item, .settings-nav.searching .settings-nav-group { display: none; }
.settings-search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.settings-search-hitrow {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: start; width: 100%;
  border: none; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; cursor: pointer;
  color: var(--text); font: inherit; font-size: 14px;
}
.settings-search-hitrow .settings-nav-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.settings-search-hitrow span, .settings-search-hitrow small { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.settings-search-hitrow:hover, .settings-search-hitrow:focus-visible, .settings-search-hitrow.selected { background: var(--border); outline: none; }
.settings-search-hitrow small { color: var(--text-secondary); font-size: 13px; }
.settings-search-hitrow mark { background: rgba(212,160,23,0.25); color: inherit; border-radius: 3px; padding: 0 1px; }
.settings-search-none { padding: 8px 10px; color: var(--text-secondary); font-size: 14px; }
.settings-search-hit { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px;
  transition: outline-color 0.4s; }
/* Attesta's transcripts table in the right-hand column of two (v6.11.0):
   the length goes, so the recording's name has room. */
.home-meetings .home-table th:nth-child(3), .home-meetings .home-table td:nth-child(3) {
  width: 0; padding: 0; font-size: 0; overflow: hidden; }
.home-meetings .home-table th:nth-child(2) { width: 92px; }
.home-meetings .home-table th:nth-child(4) { width: 132px; }
.home-meetings .home-table th:nth-child(5) { width: 150px; }
.close-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 22, 40, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.close-backdrop[hidden] { display: none; }
.close-dialog {
  width: 100%; max-width: 380px; box-sizing: border-box;
  background: var(--card-bg); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.28);
  padding: 20px 22px;
}
.close-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.close-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.close-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.close-actions[hidden] { display: none; }
.close-actions .close-cancel { margin-left: auto; }
/* Attesta's own question box (ask.js, 2026-11-12): above everything, the question's lines kept. */
.ask-backdrop { z-index: 3000; }
.ask-dialog { max-width: 440px; }
.ask-dialog .ask-text { white-space: pre-line; }

/* The support report (v6.11.0): one line and a button, in Settings and on
   the pop-up after a crash; "See what is sent" lists what it holds. */
.support-report-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* Settings, Licence and support (owner, 2026-11-04): the report's words on the left, its buttons on the right;
   the licence box short; the Diagnostics buttons in one row. */
.support-report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; }
.support-report-row .support-report-words .hint-text { margin: 0; }
.support-report-row .support-report-actions { margin: 0; justify-content: flex-end; }
.support-report-row .support-report-result { grid-column: 1 / -1; }
@media (max-width: 700px) { .support-report-row { grid-template-columns: minmax(0, 1fr); } }
.licence-paste { margin: 12px 0 0; }
.licence-paste textarea { min-height: 0; height: auto; resize: vertical; }
.diag-buttons { margin-top: 12px; flex-wrap: wrap; }
.support-report-result { font-size: 14px; color: var(--label-color); margin: 8px 0; }
.support-report-page { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.support-report-card { display: flex; flex-direction: column; gap: 12px; }
.support-report-title { font-size: 16px; font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.support-report-text pre { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 Consolas, "Courier New", monospace; color: var(--body-text); }
.support-report-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.75; color: var(--label-color); }
.support-report-never { font-size: 14px; font-weight: 600; margin: 0; }
.support-report-view summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.support-report-pre { max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  margin: 8px 0 0; padding: 10px 12px; font: 13.5px/1.5 Consolas, "Courier New", monospace;
  color: var(--body-text); background: var(--panel-alt); border: 1px solid var(--border); border-radius: 6px; }
.crash-prompt-box { border-left-color: var(--gold); }
.crash-prompt-actions { align-items: center; }
.crash-prompt-see { margin-right: auto; font-size: 14px; font-weight: 600; }

/* An NVIDIA card not used, on the dashboard (v6.12.0). */
.device-notice { border-left: 4px solid var(--warning); padding: 12px 16px; margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.device-notice a { margin-left: 6px; font-weight: 600; }

/* Settings, Licence: paste it or open the file, in one row with the request
   (Juste's layout, owner 2026-10-29). */
#sub-licence .button-row { margin: 8px 0 0; }
#sub-licence .file-button { margin-bottom: 0; }

/* Reading the transcript (owner, 2026-10-21): the text size and Focus, from
   the Display menu on the Verification page (static/review-reading.js).
   Focus leaves the transcript alone, a column of reading width. */
.rd-a { font-weight: 700; line-height: 1; font-family: inherit; }
.rd-a-small { font-size: 13px; }
.rd-a-large { font-size: 18px; }



body.rv-focus .rv-head, body.rv-focus #rv-side, body.rv-focus .back-to-main,
body.rv-focus .site-footer { display: none !important; }
body.rv-focus .rv-with-bm { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
/* In Focus the strip and the player stay, thin, above the text (batch A11;
   the player since 2026-10-30). The top bar stays only for the first screen,
   so they stick to the very top and lie over the top bar while both are there. */
body.rv-focus .rv-toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 30; max-width: 900px; margin: 8px auto 8px;
  padding: 8px 16px 10px;
}   /* under the top bar, with room, never over it (Arash, 2026-11-12) */
.rv-focus-off { display: none; }
body.rv-focus .rv-focus-off { display: inline-flex; position: fixed; right: 24px; bottom: 24px; z-index: 40;
  background: var(--panel); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
body.rv-focus .rv-toolbar > :not(.rv-strip):not(.rv-tool-row) { display: none !important; }
/* The player is in the toolbar's row since 8.0.19: in Focus the row stays, with the player alone in it. */
body.rv-focus .rv-tool-row > :not(.rv-player) { display: none !important; }
body.rv-focus .rv-strip { margin-top: 0; }
body.rv-focus .rv-strip-track { height: 10px; }
body.rv-focus .rv-tick-many { min-width: 5px; margin-left: -2.5px; padding: 0; font-size: 0; }
body.rv-focus .rv-strip-band { height: 4px; margin-top: 2px; }
body.rv-focus .rv-strip-names, body.rv-focus .rv-strip-ends { display: none; }
body.rv-focus .rv-transcript { padding: 36px 48px; }
body.rv-focus .site-main:has(.rv-transcript) { padding-right: 24px; }
@media (max-width: 700px) { body.rv-focus .rv-transcript { padding: 16px; } }
/* Court style in Focus (Arash, 2026-11-14: small, with wide margins, and at 200% only half a page showed): the
   pages have the whole width, so Fit width fills it and a zoom grows the page rather than meeting a cap. */
body.rv-focus.rv-court-on .rv-with-bm { max-width: none; }
body.rv-focus.rv-court-on .rv-toolbar { max-width: none; }     /* no page showing beside the bar (review of 8.0.1) */
body.rv-focus.rv-court-on .rv-transcript { padding: 8px 0 24px; }

/* Search hearings (Attesta, 2026-10-21): views/hearings.html. Leaner since 8.1.4 (Arash's mockup S1, 2026-11-26):
   the big box is the page, the filters small chips with the count at their right, a card per hearing. */
.hs-form { display: grid; gap: 10px; margin: 6px 0 16px; }
.hs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-q { flex: 1 1 320px; width: auto; font-size: 16px; min-height: 44px; margin: 0; }
.hs-go-btn { min-height: 44px; padding: 0 22px; }
.hs-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-chip { -webkit-appearance: none; appearance: none; display: inline-block; font: inherit; font-size: 13px;
  line-height: 1.4; color: var(--text); background: var(--card-bg); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 28px 5px 12px; cursor: pointer; max-width: 260px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 14px top 52%, right 10px top 52%; background-size: 4px 4px; background-repeat: no-repeat; }
.hs-chip:hover { border-color: var(--muted); }
.hs-chip-on { border-color: var(--text); font-weight: 600; }
.hs-dates { position: relative; }
.hs-dates > summary { list-style: none; }
.hs-dates > summary::-webkit-details-marker { display: none; }
.hs-dates-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 8px; width: 220px;
  padding: 12px; background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(10,22,40,0.18); }
.hs-dates-pop label { display: grid; gap: 3px; font-size: 13px; color: var(--label-color); }
.hs-dates-pop .form-control { margin: 0; }
.hs-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.hs-hearing { margin-bottom: 14px; padding: 0; overflow: hidden; }
.hs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 12px 16px; }
.hs-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
/* The name opens the hearing at its start (owner, 2026-11-04); its matter beside it, quiet. */
.hs-head h2 a { color: inherit; }
.hs-head h2 a:hover { color: var(--accent-ink); text-decoration: underline; }
.hs-head .hs-go { font-size: 13px; color: var(--muted); }
/* Back to top on every page (Arash, 2026-11-14, round 6; static/to-top.js): where the Verification page's Top was,
   a 44 px navy circle with a 1.5 px gold rim and a white arrow up to a line. */
.to-top { position: fixed; right: 24px; bottom: 76px; z-index: 40; display: grid; place-items: center; width: 44px;
  height: 44px; padding: 0; box-sizing: border-box; border-radius: 50%; background: #0A1628; color: #FFFFFF;
  border: 1.5px solid #D4A017; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.to-top:hover { background: #D4A017; color: #0A1628; }
.to-top:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.to-top[hidden] { display: none; }
@media print { .to-top { display: none !important; } }
/* The room is for the screen: not printed as a blank last sheet; more in Focus, where the footer is hidden and the
   button would sit on the last line (the review of 8.0.2). */
@media print { .site-main { padding-bottom: 24px; } }
/* Only on the screen: in print it gave an empty last sheet (the review of 8.0.3). */
@media screen { body.ch-focus .site-main, body.rv-focus .site-main { padding-bottom: 140px; } }

/* Court style (owner, 2026-11-06; built 2026-11-13): the pages of attesta/court_style.py, static/court-style.js.
   Paper even in the dark theme, Courier, 60 characters a line, a number every fifth line in the margin. A word
   under 85% sure and not checked: a soft gray wavy line (decided 2026-11-06), nothing else coloured. */
.rv-court { display: none; }
body.rv-court-on .rv-court { display: flex; flex-direction: column; align-items: safe center; gap: 22px;
  overflow-x: auto; }
/* The zoom bar (Arash, 2026-11-13): under the toolbar, staying while the pages scroll. --cs-zoom is set by
   static/court-style.js: Fit width at first, then what was chosen last. */
.cs-zoom { display: none; }
/* A band the whole width, solid, so the lines scroll under it and never show beside it (2026-11-13 review). */
body.rv-court-on .cs-zoom { display: flex; justify-content: center; align-items: center; gap: 4px; position: sticky;
  top: var(--cs-bar-top, 0px); z-index: 25; margin: 0 0 12px; padding: 2px 0; background: var(--page-bg);
  border-bottom: 1px solid var(--border); }
/* Under the toolbar's rounded corners too, so no line shows between the two (2026-11-13 review). */
body.rv-court-on .cs-zoom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px;
  background: var(--page-bg); pointer-events: none; }
.cs-zoom-btn { min-width: 34px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; }
.cs-zoom-btn:hover { background: var(--wash); }
.cs-zoom-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cs-zoom-word { font-size: 14px; }
.cs-zoom-btn[aria-pressed="true"] { background: var(--play-bg); color: var(--play-ink); }
.cs-zoom-pc { min-width: 46px; text-align: center; font: 600 14px/1 var(--font); color: var(--muted);
  font-variant-numeric: tabular-nums; }
body.rv-court-on #rv-words { display: none; }
body.rv-court-on .rv-transcript { background: transparent; border: 0; box-shadow: none; padding: 8px 0 24px; }
/* The page as Surena's samples (Arash, 2026-11-13), in em of the page's 12 point Courier: the numbers (Arial 8) end
   just left of the one ruled line, a 0.75 pt "[" with 9 pt ticks; the text 6.6 pt right of it; 32 lines 20.38 pt
   apart, the bracket from just above the first to just below the last, on every page. Nothing else is ruled. */
.cs-page { box-sizing: content-box; width: 39.1em; flex-shrink: 0; padding: 26px 3em 16px 2.4em; background: #fff;
  color: #111; border: 1px solid #d9d9d4; box-shadow: 0 2px 10px rgba(10,22,40,0.10);
  font-family: "Courier New", Courier, monospace; font-size: calc(15px * var(--rv-scale, 1) * var(--cs-zoom, 1));
  line-height: 1.7; }
.cs-num, .cs-run { text-align: center; white-space: pre; }
.cs-run { color: #333; margin-bottom: 8px; }
.cs-lines { position: relative; min-height: calc(32 * 1.7em); }
.cs-lines::before { content: ""; position: absolute; left: 2.477em; top: 0.1em; bottom: 0.1em; width: 0.719em;
  border: 0.0625em solid #111; border-right: 0; pointer-events: none; }
.cs-line { display: grid; grid-template-columns: 2.4em 36em; column-gap: 0.625em; white-space: pre; min-height: 1.7em;
  scroll-margin-top: calc(var(--rv-sticky, 90px) + 52px); }      /* below the toolbar and the zoom bar */
.cs-n { text-align: right; color: #111; font-family: Arial, "Liberation Sans", sans-serif; font-size: 0.667em; }
.cs-t { overflow: visible; }      /* nothing hidden at a line's end (the audits of 2026-11-14) */
.cs-foot { margin-top: 12px; padding-top: 6px; font: 11px/1.4 var(--font);
  color: #666; text-align: center; }
.cs-wait { padding: 24px; }
.rv-cw { cursor: pointer; border-radius: 2px; }
.rv-cw:hover, .rv-cw:focus-visible { background: rgba(212,160,23,0.18); outline: none; }
.rv-cw-doubt { text-decoration: underline wavy #9e9e9e; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rv-cw.rv-now { background: rgba(212,160,23,0.30); }
.rv-cw.rv-selected { background: rgba(212,160,23,0.45); }
/* Attesta's own view: the paragraph a search went to, marked the same way (the review of 2026-11-14). */
#rv-words > .rv-found { background: rgba(212,160,23,0.14); box-shadow: inset 3px 0 0 #D4A017; border-radius: 4px;
  margin-inline-start: -12px; padding-inline-start: 12px; }
/* A gap between the gold bar and the time's "[", the words where they were (the review of 2026-11-14). */
#rv-words > .rv-found.rv-timed { padding-inline-start: 100px; }
@media print { #rv-words > .rv-found { background: none; box-shadow: none; } }
/* Printed from the screen, court style is at its own size, whatever the reading size (Aa) is: 12 point Courier
   on Letter, as the PDF (the audits of 2026-11-14: the pages spilled across sheets). */
@media print { body.rv-court-on .rv-court { --rv-scale: 1 !important; --cs-zoom: 1 !important; }
  /* A court page on one sheet: under the 10.2 inches Letter leaves inside the print margins (the review of 8.0.3:
     at 12 pt the page with its padding and foot took 10.5 inches, so every page took two sheets). */
  body.rv-court-on .cs-page { font-size: 12pt; break-after: page; box-shadow: none; padding-top: 0;
    padding-bottom: 0; }
  body.rv-court-on .cs-run { margin-bottom: 0; }
  body.rv-court-on .cs-foot { margin-top: 2pt; padding-top: 0; font-size: 8pt; line-height: 1.2; }
  /* Only the court pages, the cover first on its own sheet and no empty sheet after the last. */
  body.rv-court-on .rv-main > :not(.rv-transcript), body.rv-court-on .cs-zoom { display: none !important; }
  body.rv-court-on .cs-page:last-child { break-after: auto; }
  body.rv-court-on .site-header, body.rv-court-on .site-footer, body.rv-court-on .to-top,
  body.rv-court-on .rv-focus-off { display: none !important; }
  body.rv-court-on .site-main, body.rv-court-on .rv-page, body.rv-court-on .rv-with-bm, body.rv-court-on .rv-main,
  body.rv-court-on .rv-transcript, body.rv-court-on .rv-court { padding: 0 !important; margin: 0 !important;
    gap: 0 !important; border: 0 !important; } }
/* The line a search or a chart's moment went to (2026-11-14): marked until the next one, never printed. */
.cs-line.cs-arrived .cs-t { background: rgba(212,160,23,0.24); box-shadow: inset 3px 0 0 #D4A017; border-radius: 2px; }
@media print {
  body.rv-court-on .cs-page { border: 0; box-shadow: none; break-after: page; }
  body.rv-court-on .cs-zoom { display: none; }
  .cs-line.cs-arrived .cs-t { background: none; box-shadow: none; }
  .rv-court { --cs-zoom: 1 !important; }
}
/* A hit is one link (8.1.4): the time, who in small capitals, the words, a faint play mark at the right. */
.hs-hits { list-style: none; margin: 0; padding: 0; }
.hs-hit { border-top: 1px solid var(--card-border); }
.hs-open { display: grid; grid-template-columns: 76px 130px minmax(0, 1fr) 24px; gap: 4px 10px; align-items: baseline;
  padding: 9px 16px; font-size: 14px; color: var(--text); text-decoration: none; }
.hs-open:hover { background: var(--chip); text-decoration: none; }
.hs-open:hover .hs-play { color: var(--text); }
.hs-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-who { font-size: 14px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .03em;
  overflow-wrap: anywhere; }
.hs-said mark { background: rgba(212,160,23,0.35); color: inherit; border-radius: 3px; padding: 0 2px; }
.hs-play { text-align: right; font-size: 11px; color: var(--muted); opacity: .7; }
@media (max-width: 700px) { .hs-open { grid-template-columns: 70px minmax(0, 1fr) 20px; }
  .hs-who { grid-column: 2; grid-row: 1; } .hs-said { grid-column: 2; } .hs-play { grid-column: 3; grid-row: 1; } }

/* Cases, and one case across its hearings (batch A11, idea C; owner
   2026-10-26): views/cases.html and views/case.html. The strips are the
   Verification page's (.rv-strip-*), coloured by static/part-colours.js. */
.cs-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-case { padding: 14px 16px; }
.cs-case-name { margin-right: 8px; font-size: 16px; font-weight: 700; }
.cs-case-hearings { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.cs-pick { display: grid; gap: 4px; max-width: 560px; font-size: 14px; color: var(--label-color); }
.cs-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; }
.cs-chip input { margin: 0; }
.cs-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .cs-chip:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #0A1628; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cs-chip:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #0A1628; }
}
.cs-note { margin: 0; }
.cs-table-card { padding: 0; overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-table th {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: 13px; font-weight: 600; color: var(--muted);
}
.cs-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cs-table tr:last-child td { border-bottom: none; }
.cs-where { width: 55%; min-width: 320px; }
.cs-date { display: block; font-size: 13px; }
.cs-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-count { font-weight: 700; }
.cs-open td { background: var(--wash); }
.cs-open td:first-child { box-shadow: inset 3px 0 0 var(--rv-tick); }
.cs-none, .cs-none a { color: var(--muted); }
.cs-track { height: 18px; }
.cs-track .rv-tick { cursor: default; }
.cs-band { height: 6px; }
.cs-hits { margin-top: 14px; padding: 0; overflow: hidden; }
.cs-hits h2 { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 16px; }

/* Tighter Settings (owner, 2026-10-29): a field's gap is 12 px, not 16. */
.settings-panel .form-group { margin-bottom: 12px; }

/* Settings since 2026-11-02: every change saves itself, so a part ends with its Saved note only; Keep a copy's
   folder box and its Choose button on one line. */
.part-save-auto { min-height: 20px; margin-top: 8px; padding-top: 0; border-top: 0; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.copy-row .form-control { flex: 1 1 auto; min-width: 0; }
#copy-line { margin: 4px 0 10px; }

/* The month's use in the top bar (owner, 2026-11-03; as Juste's ring): web/plan.py, static/usage.js. Gold while
   there is room, orange from 80%, red when the month's allowance is used up. */
.usage-menu { position: relative; }
.usage-menu[hidden] { display: none; }
.usage-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 6px;
  border: 1px solid rgba(212,160,23,0.35); border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
  font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums; --ur: var(--gold, #D4A017); }
.usage-btn:hover, .usage-btn[aria-expanded="true"] { background: rgba(212,160,23,0.15); }
.usage-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.usage-btn.ur-warn { --ur: #f59e0b; }
.usage-btn.ur-full { --ur: #f05252; border-color: #f05252; }
.ur-svg { width: 24px; height: 24px; }
.ur-track { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 4; }
.ur-fill { fill: none; stroke: var(--ur); stroke-width: 4; stroke-linecap: round; }
.usage-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 300; min-width: 250px; padding: 14px 16px;
  background: var(--card-bg); color: var(--text); border: 1px solid var(--card-border); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10,22,40,0.28); font-size: 14px; }
.usage-panel[hidden] { display: none; }
.up-head { display: block; margin-bottom: 8px; font-size: 14px; }
.up-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.up-grid dt { color: var(--label-color); }
.up-grid dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.up-note { margin: 10px 0 0; color: var(--error, #b42318); }
.up-note:empty { display: none; }
.up-resets { margin: 8px 0 0; color: var(--label-color); font-size: 13px; }

/* Settings since 2026-11-03 (owner: "consistency is the key"): Transcription in two columns, and every button,
   box and list in a part the same height, so a button beside a box lines up with it. */
.settings-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
@media (max-width: 1000px) { .settings-cols { grid-template-columns: 1fr; } }
.settings-panel .btn, .settings-panel .file-button { box-sizing: border-box; min-height: 38px; }
.settings-panel input.form-control, .settings-panel select.form-control { box-sizing: border-box; height: 38px; }
.settings-panel .button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.settings-panel .button-row.copy-row { flex-wrap: nowrap; }       /* the folder box and Choose on one line */

/* The top row (owner, 2026-11-03): the way back on the left, the page's message on the right, in the page's own
   type. */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-top .back-link { flex: none; }
.page-notice { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  text-align: right; color: var(--text); }
.page-notice:empty { display: none; }
.page-notice .notice-error { color: var(--error, #b42318); }
.page-notice .notice-done { color: #15803d; }

/* One button shape everywhere (owner, 2026-11-03: "a global shape of the button, not a patchwork"): the height of
   a box (38 px, small 30 px), the same corners and type, and on every kind a border of the same width, clear where
   the kind has none, so a filled button and an outlined one beside it are the same size. */
.btn { box-sizing: border-box; min-height: 38px; padding: 0 18px; line-height: 1.2; font-size: 14px; }
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 13px; }
.btn-primary, .btn-navy, .btn-warning, .btn-secondary, .btn-link, .btn:not([class*="btn-"]) { border: 1.5px solid transparent; }
.btn-danger { border-width: 1.5px; }
.file-button { margin-bottom: 0; }

/* Status as a small dot beside the words (owner, 2026-11-05; Juste's option C): white cards and dark text, the state
   a dot. Blue done, soft amber started or in progress, orange for something to act on, an empty grey ring for not
   started. No green or red for a state, and the words are always there: the colour is only a hint. The bubbles of
   before (the Transcribe list's chips, the matters' pills, the badges of the queue, History and the job log, the
   figures above a transcript) keep their class names and are drawn here as a dot and the words. */
:root { --dot-done: #5B9BD5; --dot-part: #E6B54A; --dot-act: #E08A3C; --dot-none: #B5BFCC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dot-none: #4A5A78; } }
:root[data-theme="dark"] { --dot-none: #4A5A78; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
  vertical-align: 1px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot-none); }
.dot-done { background: var(--dot-done); box-shadow: none; }
.dot-part { background: var(--dot-part); box-shadow: none; }
.dot-act  { background: var(--dot-act); box-shadow: none; }
.dot-run  { background: var(--dot-done); box-shadow: none; animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot-run { animation: none; } }
.state { white-space: nowrap; font-size: 14px; color: var(--text); }
.state.an-unnamed { display: block; white-space: normal; margin: 0 0 12px; font-size: 14px; }

.home-chip, .badge {
  background: none !important; border: 0 !important; border-radius: 0; padding: 0; font-size: 14px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--text) !important; white-space: nowrap; }
.home-chip::before, .badge::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
  vertical-align: 1px; box-shadow: inset 0 0 0 1.5px var(--dot-none); }
.home-chip-part::before, .badge-warning::before, .badge-warn::before {
  background: var(--dot-part); box-shadow: none; }
.home-chip-done::before, .home-chip-clear::before, .badge-done::before, .badge-success::before,
.badge-pass::before { background: var(--dot-done); box-shadow: none; }
.badge-processing::before, .badge-queued::before { background: var(--dot-done); box-shadow: none;
  animation: dot-pulse 1.6s ease-in-out infinite; }
.home-chip-err::before, .badge-error::before, .badge-fail::before { background: var(--dot-act); box-shadow: none; }
.badge-button { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.home-name small.home-err { color: var(--muted); }
.home-name small.home-err::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 0; background: var(--dot-act); }

/* The figures above a transcript: a dot in place of the coloured words. */
.rv-fig-low, .rv-fig-mid, .rv-fig-ok { color: var(--text); }
.rv-fig-low::before, .rv-fig-mid::before, .rv-fig-ok::before { content: ""; display: inline-block; width: 8px;
  height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.rv-fig-low::before { background: var(--dot-act); } .rv-fig-mid::before { background: var(--dot-part); }
.rv-fig-ok::before { background: var(--dot-done); }

/* The page's message in the top row: the words in the page's colour, a dot before them. */
.page-notice .notice-error, .page-notice .notice-done { color: var(--text); }
.page-notice .notice-error::before, .page-notice .notice-done::before { content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.page-notice .notice-error::before { background: var(--dot-act); }
.page-notice .notice-done::before { background: var(--dot-done); }

/* A quiet action, as a link in grey (2026-11-05): Take out, Open, What was sent. */
.mt-quiet { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.mt-quiet:hover { color: var(--text); text-decoration-color: var(--gold); }

/* An analysis running, or ended and not opened, in the header (owner, 2026-11-05), beside Downloads. */
.an-live { display: flex; align-items: center; height: 30px; padding: 0 12px 0 10px; border: 1px solid #3a4a66;
  border-radius: 15px; background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.an-live:hover { color: #fff; border-color: var(--gold); text-decoration: none; }
/* The running sign, bigger (Arash, 2026-11-12): the same colour and pulse. Also on a matter's Analyses tab. */
.an-live .dot-run, .mt-tab-dot.dot-run { width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
/* The parts still downloading after the install (2026-11-05): the same chip, nothing to press. */
.packs-live, .packs-live:hover { cursor: default; border-color: #3a4a66; }
/* The Downloads chip's dot: blue while watching, orange on a problem (2026-11-05, no green or red for a state). */
.dl-dot { background: var(--dot-done); }
.dl-pill.chip-error .dl-dot { background: var(--dot-act); }

/* Settings, Installation, Updates (2026-11-06; static/updates.js). */
#upd .upd-line { display: flex; align-items: center; gap: 2px; margin: 4px 0 10px; }
#upd .upd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 10px; }
#upd .upd-muted, .upd-muted { color: var(--muted); font-size: 14px; }
#upd .upd-new { background: var(--wash); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
#upd .upd-new ul { margin: 4px 0 0; padding-left: 18px; }
#upd .upd-bar { height: 6px; width: min(100%, 360px); border-radius: 3px; background: var(--wash); border: 1px solid var(--border); overflow: hidden; margin: 0 0 10px; }
#upd .upd-bar span { display: block; height: 100%; background: var(--gold); }

/* Settings, Installation, Speed on this computer (2026-11-07; static/speed.js). One line; the rows after Test again. */
#spd .upd-line { display: flex; align-items: center; gap: 2px; margin: 4px 0 10px; }
#spd .upd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 10px; }
#spd .spd-bar { position: relative; height: 6px; width: min(100%, 360px); border-radius: 3px; background: var(--wash); border: 1px solid var(--border); overflow: hidden; margin: 0 0 10px; }
#spd .spd-bar span { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--gold); border-radius: 3px; animation: spd-run 1.6s ease-in-out infinite; }
@keyframes spd-run { 0% { left: -30%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { #spd .spd-bar span { animation: none; left: 0; width: 100%; opacity: .5; } }
#spd .spd-rows { border-collapse: collapse; font-size: 14px; margin: 0 0 4px; }
#spd .spd-rows td { padding: 5px 18px 5px 0; }
#spd .spd-rows td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
#spd .spd-rows tr.win td { font-weight: 600; }

/* Sign-in and cloud trials (2026-11-07; views/signin.html, the trial line in Settings). */
.signin-card { width: 400px; }
.signin-card .login-title { margin-bottom: 20px; }
.signin-card .login-title + .signin-lead { margin-top: -12px; }
.signin-lead { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.signin-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; }
.signin-links a { color: var(--text); }
.signin-links-split { justify-content: space-between; }
.signin-digits { font-size: 22px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-card .login-error { margin: 14px 0 0; }
.signin-offer { margin: 10px 0 0; }
/* The trial terms (8.0.19): one quiet line under the card's buttons, shown only when the service sends the page. */
.signin-terms { margin: 14px 0 0; font-size: 13px; text-align: center; }
.lic-trial { margin: 4px 0 12px; }
.lic-trial .upd-line { margin: 0 0 4px; }
.support-email { margin-top: 10px; }
.support-email .hint-text { text-align: center; margin-top: 6px; }

/* The owner's notes of 2026-11-08: the code in six boxes, three and three; the licence without a green bar. */
.signin-boxes { display: flex; align-items: center; gap: 8px; }
.signin-box { width: 44px; height: 52px; padding: 0; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.signin-dash { color: var(--muted); font-size: 22px; }
.lic-line { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.lic-fact-ok { border-left-color: transparent; }
.lic-other { margin-top: 10px; }
.lic-other > summary { cursor: pointer; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.support-email-q { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-align: center; }

/* Google and Microsoft (2026-11-09): each company's own button, as its rules say, never recoloured. Google: white,
   1px #747775 inside, text #1F1F1F at 14/20 medium, 12px before the G, 10px after it, 12px after the text; dark
   #131314, #8E918F, #E3E3E3 (developers.google.com/identity/branding-guidelines). Microsoft: white, 1px #8C8C8C,
   text #5E5E5E Segoe UI Semibold 15px, the four squares 21px, 12px around them, 41px high, square corners; dark
   #2F2F2F with white text (learn.microsoft.com, Sign in with Microsoft branding guidelines). Equal size, one above
   the other, as Google asks that its button be no less prominent than another's. */
.signin-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 100%; cursor: pointer;
  background: #fff; font-family: inherit; }
.social-btn:disabled { opacity: 0.6; cursor: default; }
.social-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.social-google { height: 40px; padding: 0 12px; border: 1px solid #747775; border-radius: 4px; color: #1f1f1f;
  font-family: "Google Sans", Roboto, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 20px; font-weight: 500; }
.social-google img { width: 20px; height: 20px; margin-right: 10px; }
.social-microsoft { height: 41px; padding: 0 12px; border: 1px solid #8c8c8c; border-radius: 0; color: #5e5e5e;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 600; }
.social-microsoft img { width: 21px; height: 21px; margin-right: 12px; }
:root[data-theme="dark"] .social-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .social-microsoft { background: #2f2f2f; border-color: #2f2f2f; color: #fff; }
.signin-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
.signin-wait { display: flex; justify-content: center; margin: 8px 0 18px; }
.signin-wait span { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--gold); animation: signin-wait 1.2s infinite ease-in-out; }
.signin-wait span:nth-child(2) { animation-delay: 0.2s; }
.signin-wait span:nth-child(3) { animation-delay: 0.4s; }
@keyframes signin-wait { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
/* The same face beside "Signed in as" in Settings, Licence (2026-11-09). */
.lic-who { display: flex; align-items: center; gap: 8px; }
/* The firm, asked at Ask for an invoice when the account has none (2026-11-09). */
.lic-trial [data-invoice-firm] { margin: 10px 0 12px; max-width: 360px; }
.account-face-sm { width: 24px; height: 24px; font-size: 13px; }

/* History: a hearing filed in a matter is taken out of it before it can be deleted (Arash, 2026-11-13). */
.filed-note { margin-top: 4px; color: var(--body-text); }
.filed-note a { font-weight: 600; }
.filed-note-flash { animation: rv-arrived 2.4s ease-out 1; border-radius: 4px; }

/* A quiet link that is a button (Copy for support, Run it again in a line; 2026-11-13). */
.mt-linkbtn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; }
.an-support { margin: 10px 0 0; font-size: 14px; }
.an-rows { margin: 6px 0; font-weight: 600; }
/* The record replaced by a saved matter's version (the review of 8.0.3): said above the title, with the way back. */
.rv-before { margin: 0 0 12px; white-space: normal; }    /* wraps at any width (the review of 8.0.5) */
@media print { .rv-before { display: none !important; } }
/* The backup holding on, said in Settings and on History (8.0.6): the normal text colour, not a hint's. */
.copy-held { color: var(--text); }
.copy-held .mt-linkbtn, .copy-held-page a, .rv-before .mt-linkbtn { color: var(--text); text-decoration: underline; }
/* The chart's notices wrap at any width (the review of 8.0.7: at 400 px "Run it again" was off screen). */
.state.an-partial { display: block; white-space: normal; }
.an-partial .mt-linkbtn { color: var(--text); text-decoration: underline; }
.copy-held-page { white-space: normal; margin: 0 0 14px; }

/* Another computer's backup in the folder: said in body text, 4.5:1 or more (the review of 8.0.12). */
#copy-line.copy-other { color: var(--text); }

/* Asked first, in the page (2026-11-18): static/confirm.js. Here since 8.1.4, where it was in matters.css, as an
   analysis's own page asks it too (Remove, 2026-11-26). */
.mt-confirm { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(440px, 90vw);
  border: 1px solid var(--border, #d6d9e0); border-radius: 12px; padding: 20px 22px; max-width: 440px;
  background: var(--card-bg, #fff); color: inherit; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.mt-confirm::backdrop { background: rgba(10, 16, 32, .45); }
.mt-confirm p { margin: 0 0 16px; line-height: 1.45; }
.mt-confirm-btns { display: flex; gap: 10px; justify-content: flex-end; }
