/* ===========================================================================
   app.css — the design system's stylesheet.

   Every page links this one file. It used to sit inline in base.html, where
   ~95 KB of it travelled with every page view; as a static file behind
   asset() it is fetched once and then served from the browser's cache until
   its content — and so its URL — changes.

   Components are written once each, in antd v5's shapes, and their
   comments use antd's names (Button, Input, Card, Table, Tabs, Tag, Modal,
   Drawer, Menu, Segmented, Progress, Alert, message, Skeleton) so a change
   can be checked against antd's documentation.

   The @font-face rules are not here: they stay in base.html's <head> so
   their URLs go through asset() like the <link rel="preload"> beside them.
   A preload only counts when its URL is exactly the one the stylesheet later
   asks for; a relative url() from this file could not carry the same
   version, and every font would be downloaded twice.
   =========================================================================== */

/* =========================================================================
   TOKENS — every colour, space, size and duration in the product.

   The values here are the core's neutral brand: Ant Design v5's own blue
   seed and Vazirmatn. A brand overrides the handful of tokens that carry
   its identity — --font, --primary*, --primary-text, --secondary and the
   light theme's --ring — in static/branding/brand.css, which base.html
   links after this file with the same two selectors, so the brand's value
   wins for each token and nothing else moves. jitsi-brand-template renders
   that file from brand.yaml (generated/recording/brand.css).
   ========================================================================= */
:root, :root[data-theme="dark"] {
  color-scheme: dark;

  /* ---- brand, as Ant Design's seed ---------------------------------- */
  /* antd derives a palette from one seed colour. The core uses antd's own
     blue; a brand swaps in its colour in brand.css, which is exactly what
     ConfigProvider's token.colorPrimary is for. Everything else below is
     antd v5's dark algorithm, unchanged. */
  /* ---- type ---------------------------------------------------------- */
  /* Declared as a token because the player's shadow root cannot inherit a
     font stack from `body` — only a custom property crosses that boundary. */
  --font: Vazirmatn, Inter, system-ui,
          -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --primary:        #1668DC;   /* colorPrimary       */
  --primary-hover:  #3C89E8;   /* colorPrimaryHover  */
  --primary-press:  #1554AD;   /* colorPrimaryActive */
  --primary-bg:     rgba(22, 104, 220, .18);
  /* What antd calls colorPrimaryText on a dark background: the fill colour
     is chosen so white sits on it, which can leave it too dark to read as
     text on #141414. Links, the selected tab and the current menu item use
     this instead — 7.4:1 here. */
  --primary-text:   #65A9F3;
  --secondary:      #2F54EB;
  --accent:         #36CFC9;   /* colorInfo / links on dark */
  --accent-press:   #13A8A8;

  /* ---- surfaces — antd dark: layout #000, container #141414 ---------- */
  --bg:        #141414;
  --surface:   #1D1D1D;
  --surface-2: #262626;
  --surface-3: #303030;
  --surface-4: #3A3A3A;
  --video-bg:  #000000;

  /* ---- lines — colorBorderSecondary / colorBorder -------------------- */
  --line-soft:   #262626;
  --line:        #424242;
  --line-strong: #595959;

  /* ---- text — antd dark text ladder --------------------------------- */
  --text:       rgba(255, 255, 255, .88);
  --text-2:     rgba(255, 255, 255, .65);
  --text-3:     rgba(255, 255, 255, .56);   /* 5.3:1 on --surface */
  --on-primary: #FFFFFF;

  /* ---- status — antd dark ------------------------------------------- */
  --danger: #DC4446;
  --warn:   #D89614;
  --ok:     #49AA19;
  --danger-bg: rgba(220, 68, 70, .14);
  --warn-bg:   rgba(216, 150, 20, .14);
  --ok-bg:     rgba(73, 170, 25, .14);
  --muted-bg:  rgba(255, 255, 255, .08);
  /* The status colours above are fills, borders and dots. As text on
     their own tint they fell short — the danger badge was 3.98:1 — so
     text asks for these instead, each at least 4.5:1 on its tint over
     any surface up to --surface-2 (measured in Chromium, see P1 FIXES). */
  --danger-text: #F37370;
  --warn-text:   #E8B339;
  --ok-text:     #6ABE39;
  --accent-text: #36CFC9;    /* the teal is already light enough on dark */
  /* A destructive button's fill: white on #DC4446 was 4.24:1. */
  --danger-strong:       #C73A3C;
  --danger-strong-hover: #B8322F;   /* darker on hover, as in light: 5.9:1 */

  /* ---- focus — antd's 2px halo in the primary colour ----------------- */
  --focus:        var(--primary);
  --focus-width:  2px;
  --focus-offset: 1px;
  --ring: 0 0 0 2px var(--primary-bg);

  /* ---- spacing — 4px grid ------------------------------------------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 64px;

  /* ---- type — sized for Persian ------------------------------------- */
  /* antd's scale: fontSize 14, SM 12, LG 16, XL 20, heading 24.
     Line height is antd's 1.5714 loosened a little, because Persian
     letterforms with their descenders crowd at antd's Latin default.
     --fs-xs and --fs-sm are both 12px, so "xs" text is not smaller than
     "sm" text anywhere. Left that way on purpose: a smaller xs would
     restyle every timestamp, badge and table header at once, which is a
     design decision rather than a cleanup. */
  --fs-xs:  12px;
  --fs-sm:  12px;
  --fs-md:  14px;
  --fs-lg:  16px;
  --fs-xl:  20px;
  --fs-2xl: 24px;
  --lh-tight:   1.4;
  --lh-body:    1.65;
  --lh-prose:   1.9;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --tracking: 0;

  /* ---- radii — antd borderRadius 6, with its XS/SM/LG steps --------- */
  --r-xs: 4px; --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-full: 999px;

  /* Buttons and inputs sat at 38px and ~50px respectively, because inputs
     inherited the body's 1.75 line-height and carried 12px of block
     padding. One token for both, so a field and the button next to it are
     the same height by construction rather than by coincidence. */
  /* antd controlHeight 32, with its SM and LG steps. */
  --control-h:    32px;
  --control-h-sm: 24px;
  --control-h-lg: 40px;

  /* ---- elevation ---------------------------------------------------- */
  /* antd boxShadowTertiary / boxShadow / boxShadowSecondary. */
  --shadow-1: 0 1px 2px 0 rgba(0,0,0,.24), 0 1px 6px -1px rgba(0,0,0,.20),
              0 2px 4px 0 rgba(0,0,0,.16);
  --shadow-2: 0 6px 16px 0 rgba(0,0,0,.32), 0 3px 6px -4px rgba(0,0,0,.40),
              0 9px 28px 8px rgba(0,0,0,.20);
  --shadow-3: 0 6px 16px 0 rgba(0,0,0,.40), 0 3px 6px -4px rgba(0,0,0,.48),
              0 9px 28px 8px rgba(0,0,0,.28);
  /* The shade under the player's controls, and the one each icon casts:
     lighter here, where the page around the player is dark already. */
  --player-scrim: rgba(0,0,0,.5);
  --player-icon-shadow: rgba(0,0,0,.45);
  /* antd surfaces are flat: a border does the separating, not a highlight. */
  --hairline: none;

  /* ---- z layers ----------------------------------------------------- */
  --z-sticky: 20; --z-side: 30; --z-mobnav: 40;
  --z-scrim: 50;  --z-dialog: 60; --z-toast: 100;

  /* ---- motion ------------------------------------------------------- */
  /* antd motion: 0.1s / 0.2s / 0.3s on its standard curve. */
  --dur-1: 100ms; --dur-2: 200ms; --dur-3: 300ms;
  --ease: cubic-bezier(.645,.045,.355,1);
  --ease-out: cubic-bezier(.08,.82,.17,1);

  /* ---- layout ------------------------------------------------------- */
  --sidebar:     252px;
  --sidebar-md:  212px;
  --sidebar-rail: 68px;
  --aside:       360px;
  --content-max: 1360px;
  --mobnav-h:    60px;
  --topbar-h:    58px;
  --touch:       44px;
  --icon:        18px; --icon-sm: 15px; --icon-lg: 22px;
  --thumb-w:     112px;
  --thumb-w-sm:  80px;

  /* ---- safe areas --------------------------------------------------- */
  --safe-t: env(safe-area-inset-top,    0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left,   0px);
  --safe-r: env(safe-area-inset-right,  0px);
}
/* Light mode.
   
   The same token names with different values, which is why nothing below
   this block mentions a theme: a component asks for --surface and gets
   whichever surface is in force. Only the values that carry meaning are
   re-stated; spacing, type, radii and motion are shared.

   The status colours come in two kinds here, because what is readable as
   a fill is not readable as text on a light surface:
     --accent, --warn, --danger, --ok   the fills, borders and dots — antd's
               bright light-mode forms (amber #FAAD14, teal #08979C), which
               read as colour but not as words (amber on its tint: 1.8:1)
     --*-text  the same hues darkened until they are text: the amber turns
               a burnt orange, the teal a deep teal, the red antd's red-7 —
               all at least 4.5:1 on their tint and on every surface
   The bright forms stay over video, where the frame is dark in either
   theme. */
:root[data-theme="light"] {
  color-scheme: light;

  /* Ant Design v5's default (light) algorithm, seeded with blue-7 rather
     than blue-6 so white on the fill clears 4.5:1 (a brand swaps this in
     brand.css). Only colour changes between the two themes: radii, control
     heights, type and motion are shared above. */
  --primary:        #0958D9;
  --primary-hover:  #1677FF;
  --primary-press:  #003EB3;
  --primary-bg:     #E6F4FF;
  /* On white the fill colour is already readable (6.0:1), so text and fill
     are the same, exactly as antd's light algorithm has it. */
  --primary-text:   #0958D9;
  --secondary:      #2F54EB;
  --accent:         #08979C;   /* colorInfo, readable on white */
  --accent-press:   #006D75;

  /* colorBgLayout / colorBgContainer / the fill ladder. */
  --bg:        #F5F5F5;
  --surface:   #FFFFFF;
  --surface-2: #FAFAFA;
  --surface-3: #F0F0F0;
  --surface-4: #E4E4E4;
  --video-bg:  #000000;

  /* colorBorderSecondary / colorBorder. */
  --line-soft:   #F0F0F0;
  --line:        #D9D9D9;
  --line-strong: #BFBFBF;

  /* antd's text ladder: 88% / 65% / 45% of black. */
  --text:       rgba(0, 0, 0, .88);
  --text-2:     rgba(0, 0, 0, .65);
  --text-3:     rgba(0, 0, 0, .58);         /* 5.0:1 on --surface */
  --on-primary: #FFFFFF;

  --danger: #FF4D4F;
  --warn:   #FAAD14;
  --ok:     #52C41A;
  --danger-bg: #FFF2F0;
  --warn-bg:   #FFFBE6;
  --ok-bg:     #F6FFED;
  --muted-bg:  rgba(0, 0, 0, .06);
  --danger-text: #CF1322;   /* 5.1:1 on --danger-bg */
  --warn-text:   #AD4E00;   /* 5.2:1 on --warn-bg (the amber was 1.8:1) */
  --ok-text:     #237804;   /* 5.4:1 on --ok-bg */
  --accent-text: #006D75;   /* 5.4:1 on --surface-3; #08979C was 3.3:1 on --bg */
  --danger-strong:       #CF1322;   /* white on it: 5.6:1 (on #FF4D4F: 3.3:1) */
  --danger-strong-hover: #A8071A;

  --ring: 0 0 0 2px rgba(9, 88, 217, .12);

  /* antd's light shadows: contact, not drama. */
  --shadow-1: 0 1px 2px 0 rgba(0,0,0,.03), 0 1px 6px -1px rgba(0,0,0,.02),
              0 2px 4px 0 rgba(0,0,0,.02);
  --shadow-2: 0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12),
              0 9px 28px 8px rgba(0,0,0,.05);
  --shadow-3: 0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12),
              0 9px 28px 8px rgba(0,0,0,.05);
  /* Darker on a light page, so the white controls read over a bright frame. */
  --player-scrim: rgba(0,0,0,.72);
  --player-icon-shadow: rgba(0,0,0,.7);
  --hairline: none;
}

/* =========================================================================
   BASE
   ========================================================================= */
* { box-sizing: border-box; }
html, body { min-block-size: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* The two brand gradients. A fixed pseudo-element instead of
   background-attachment:fixed, which iOS ignores and which repaints the
   whole gradient on every scroll frame. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 100% -8%,
      color-mix(in srgb, var(--secondary) 16%, transparent), transparent 60%),
    radial-gradient(760px 420px at -10% 105%,
      color-mix(in srgb, var(--primary) 13%, transparent), transparent 62%);
}
a { color: inherit; text-decoration: none; }
p { margin-block: 0; }
h1, h2, h3 {
  margin: 0; font-weight: var(--fw-bold);
  line-height: var(--lh-tight); letter-spacing: var(--tracking);
}
/* Without this an unclassed heading falls back to the browser's 2em, which
   is off the type scale entirely. .topbar h1 and .card__title override it. */
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
img, svg, video { max-inline-size: 100%; }
::selection { background: color-mix(in srgb, var(--primary) 45%, transparent); }

/* Focus, in three places and no more:
     here     the fallback outline, for anything focusable that is not
              a link, a button or a [tabindex] element;
     FORMS    fields, which show focus with their border and a halo;
     the end  links, buttons and [tabindex], antd's halo instead of an
              outline. It is last because it has to outrank every
              one-class component that sets box-shadow or border-radius
              on those elements (.btn, .nav, .card--link, ...).
   A component that marks focus with something other than the halo (a
   background, say) keeps its own :focus-visible rule beside it. */
:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
}
@media (forced-colors: active) { :focus-visible { outline: 2px solid Highlight; } }

/* Author rules that set `display` beat the UA stylesheet's [hidden], so a
   .chip or .rec rendered with `hidden` stayed visible. One global rule, so
   no component needs a [hidden] line of its own. */
[hidden] { display: none !important; }
/* Browsers give form controls their own system font instead of the page's,
   so a <button> styled only with colours and borders (a timestamp, a chip)
   drew its Persian digits in the wrong face. Every control takes --font. */
button, input, select, textarea { font-family: inherit; }

.skip {
  position: fixed; inset-block-start: var(--space-2); inset-inline-start: var(--space-2);
  z-index: var(--z-toast); transform: translateY(-200%);
  background: var(--surface-3); color: var(--text);
  padding: var(--space-3) var(--space-4); border-radius: var(--r-sm);
  box-shadow: var(--shadow-2); font-size: var(--fs-sm);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
a[aria-disabled="true"], button[aria-disabled="true"] { pointer-events: none; }

.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.mono {
  unicode-bidi: isolate; direction: ltr;
  /* The interface font, with its tabular figures: a timestamp should line
     up in a column without looking as though it came from another
     typeface — which a monospace face next to Persian numerals does. */
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-size: var(--fs-xs); overflow-wrap: anywhere;
}
.prose { white-space: pre-wrap; line-height: var(--lh-prose); overflow-wrap: anywhere; }
.lede { color: var(--text-2); font-size: var(--fs-md); max-inline-size: 64ch;
        margin-block-end: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.stack        { display: flex; flex-direction: column; gap: var(--space-4); min-inline-size: 0; }
.stack--sm    { gap: var(--space-2); }
.row          { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
                min-inline-size: 0; }
.row--between { justify-content: space-between; }
.grid-auto    { display: grid; gap: var(--space-4);
                grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-auto--sm{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
/* Stat tiles nested inside a component card: 170px never fits two of them in
   a ~280px card, so every health card was one tile per row and the status
   page ran to three thousand pixels. */
.grid-auto--xs{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
                gap: var(--space-2); }
.split        { display: grid; gap: var(--space-5); align-items: start;
                grid-template-columns: minmax(0, 1fr); }
.split__main  { min-inline-size: 0; }
.split__aside { min-inline-size: 0; }
@media (min-width: 1180px) {
  .split  { grid-template-columns: minmax(0, 1fr) var(--aside); }
}
.hr       { block-size: 1px; background: var(--line-soft); border: 0;
            margin-block: var(--space-4); }
.truncate { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-any { min-inline-size: 0; overflow-wrap: anywhere; }
.spacer   { flex: 1 1 auto; }

.page-center {
  min-block-size: 100vh; min-block-size: 100dvh;
  display: grid; place-items: center; padding: var(--space-6);
  padding-block-end: calc(var(--space-6) + var(--safe-b));
}
.page-narrow { max-inline-size: 560px; margin-inline: auto; inline-size: 100%; }
.page-wide { max-inline-size: 880px; margin-inline: auto; inline-size: 100%; }

/* ---- sign-in (login.html) ------------------------------------------------
   One centred card over soft colour glows, after the reference design: the
   brand above it, a rounded translucent card, a light button, a quiet line
   below. The glows are the brand's own tokens (--primary, --secondary,
   --accent), so a brand's colours carry through and both themes work; the
   card is --surface, mostly opaque, so the text keeps its contrast whatever
   sits behind it. Same markup at every width: the card is capped at 440px and
   below 480px it fills the screen's width with a smaller radius and padding. */
.auth {
  position: relative; isolation: isolate; overflow: hidden;
  min-block-size: 100vh; min-block-size: 100dvh;
  display: grid; place-items: center;
  padding: var(--space-6) var(--space-4);
  padding-block-end: calc(var(--space-6) + var(--safe-b));
  background:
    radial-gradient(60vmax 50vmax at 12% 18%, color-mix(in srgb, var(--primary) 38%, transparent), transparent 70%),
    radial-gradient(55vmax 45vmax at 90% 30%, color-mix(in srgb, var(--secondary) 34%, transparent), transparent 70%),
    radial-gradient(70vmax 40vmax at 50% 108%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    var(--bg);
}
.auth__theme { position: absolute; inset-block-start: var(--space-3); inset-inline-end: var(--space-3); }
.auth__col { inline-size: 100%; max-inline-size: 440px; min-inline-size: 0; }
.auth__brand { display: flex; justify-content: center; margin-block-end: var(--space-5); }
.auth__brand .brandmark--28 { block-size: 40px; }
.auth__brand .brandname--28 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.auth__card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); border-radius: 24px;
  padding: var(--space-7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.auth__title { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); }
.auth__lede { margin-block: var(--space-2) var(--space-5); color: var(--text-2); font-size: var(--fs-md); }
.auth__card .flash { margin-block-end: var(--space-4); }
.auth__card .field { margin-block-end: var(--space-4); }
.auth__card label { color: var(--text); font-weight: var(--fw-semibold); }
.auth__card input[type=text], .auth__card input[type=password] {
  min-block-size: var(--control-h-lg); border-radius: 12px; background: var(--surface-2);
}
/* The button is the page's one bright thing, as in the reference: the text
   colour as its fill, the page colour as its label — high contrast in either theme. */
.auth .auth__submit {
  margin-block-start: var(--space-2); min-block-size: var(--control-h-lg); border-radius: 12px;
  background: var(--text); border-color: var(--text); color: var(--bg);
  font-weight: var(--fw-semibold);
}
.auth .auth__submit:hover  { background: var(--text); border-color: var(--text); filter: brightness(.92); }
.auth .auth__submit:active { background: var(--text); border-color: var(--text); filter: brightness(.82); }
.auth__foot { margin-block: var(--space-4) 0; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
@media (pointer: coarse) {
  .auth__card input[type=text], .auth__card input[type=password], .auth .auth__submit { min-block-size: var(--touch); }
}
@media (max-width: 479px) {
  .auth { padding-inline: var(--space-3); }
  .auth__card { padding: var(--space-5); border-radius: 18px; }
  .auth__brand { margin-block-end: var(--space-4); }
}
/* A landscape phone is short: the page scrolls rather than squeezing the card. */
@media (max-height: 520px) {
  .auth { place-items: start center; }
  .auth__brand { margin-block-end: var(--space-3); }
}
@media (forced-colors: active) { .auth__card { border-color: CanvasText; } }

/* =========================================================================
   APP SHELL
   ========================================================================= */
.shell {
  display: flex; flex-direction: column; min-block-size: 100%;
  padding-inline-start: var(--safe-l); padding-inline-end: var(--safe-r);
}
/* The skip link's target takes the focus (tabindex=-1) so the next Tab starts in the page, in
   every browser; it is not a control, so it draws no ring of its own. */
.main:focus { outline: none; }
.main { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  padding-block: var(--space-3); padding-inline: var(--space-4);
  padding-block-start: max(var(--space-3), var(--safe-t));
  border-block-end: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  position: sticky; inset-block-start: 0; z-index: var(--z-sticky);
  /* A hairline under it, as antd's Header, not a drop shadow: the shadow
     fell across whatever was pinned under the bar (the player) and drew a
     seam round it. */
  backdrop-filter: blur(14px);
}
.topbar h1 {
  font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-tight);
  min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1 1 auto;
}
.topbar__brand { display: flex; align-items: center; flex: 0 0 auto; }
.content {
  --content-pad: var(--space-4);
  padding-inline: var(--content-pad);
  padding-block: var(--space-5) calc(var(--space-10) + var(--mobnav-h) + var(--safe-b));
  /* The whole width beside the sidebar: no cap, the page is the tool. */
  inline-size: 100%; max-inline-size: none;
}
@media (min-width: 480px) { .content { --content-pad: var(--space-5); } }

.side { display: none; }
.side__brand { display: flex; align-items: center;
               padding-block: var(--space-2) var(--space-5); padding-inline: var(--space-3); }
/* The mark at the size its caller asks for: brandmark(size) in base.html
   picks one of these; the width follows the artwork. */
.brandmark { display: block; inline-size: auto; }
.brandmark--28 { block-size: 28px; }
.brandmark--24 { block-size: 24px; }
/* A brand with a light-theme cut of its logo (brand.json logo_light): the
   usual logo on dark, the other on light. */
.brandmark--onlight { display: none; }
:root[data-theme="light"] .brandmark--onlight { display: block; }
:root[data-theme="light"] .brandmark--ondark { display: none; }
/* A mark that does not spell the name gets it set beside it (brandmark()
   in base.html, brand.json logo_includes_wordmark: false). */
.brandlock { display: inline-flex; align-items: center; gap: var(--space-2); min-inline-size: 0; }
.brandname {
  color: var(--text); font-weight: var(--fw-bold); line-height: var(--lh-tight);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brandname--28 { font-size: var(--fs-lg); }
.brandname--24 { font-size: var(--fs-md); }
.nav-list { list-style: none; margin: 0; padding: 0; }
/* antd Menu: 40px items, a tinted fill for the current page. */
.nav {
  display: flex; align-items: center; gap: var(--space-3); position: relative;
  padding-block: var(--space-3); padding-inline: var(--space-4);
  border-radius: var(--r); color: var(--text-2); font-size: var(--fs-md);
  min-block-size: 40px;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.nav[aria-current="page"] {
  background: var(--primary-bg); color: var(--primary-text);
  font-weight: var(--fw-medium);
}
/* The one "this is the current one" mark, everywhere (the menu, the search
   results, the chapters, the transcript, a quote): a 3px rounded bar on the
   reading edge, short of the item's top and bottom. */
.nav[aria-current="page"]::before, .gsr[aria-selected="true"]::before,
.chapter.is-current::before, .transcript__line.is-current::before, .set-preview::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 18%;
  inline-size: 3px; border-radius: var(--r-full); background: var(--primary);
}
.nav svg { inline-size: var(--icon); block-size: var(--icon); flex: 0 0 var(--icon); }

/* Start a meeting: the one action that belongs to no page in particular,
   so it sits above the list rather than on the two pages that had it. */
.side__cta { margin-block-end: var(--space-4); }

/* Administration: six pages behind one row, open only inside the section.
   <details> rather than script, so it works before the page does and the
   browser keeps the summary focusable and announced. */
.navgroup summary { cursor: pointer; list-style: none; }
.navgroup summary::-webkit-details-marker { display: none; }
.navgroup__caret { margin-inline-start: auto; display: flex; color: var(--text-3);
                   transition: transform var(--dur-2) var(--ease); }
.navgroup[open] .navgroup__caret { transform: rotate(-90deg); }
.navgroup__head svg { inline-size: var(--icon); block-size: var(--icon); }
.nav-list--sub { margin-block: 2px var(--space-2); }
/* The children are one step in and one step quieter than their section. */
.nav-list--sub .nav {
  margin-inline-start: var(--space-5); font-size: var(--fs-sm);
  min-block-size: 34px; padding-inline: var(--space-3);
}
.nav-list--sub .nav svg { inline-size: var(--icon-sm); block-size: var(--icon-sm);
                          flex-basis: var(--icon-sm); }

.side__foot {
  margin-block-start: auto; padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: var(--space-3);
  align-items: stretch;
}
/* Who is signed in, and the way out, on one row: the button was a whole
   row of its own for something nobody presses twice a day. */
.side__me { display: flex; align-items: center; gap: var(--space-2); }
.side__me .whoami { flex: 1 1 auto; }
.whoami { display: flex; align-items: center; gap: var(--space-3);
          padding-block: var(--space-2); padding-inline: var(--space-2);
          border-radius: var(--r); min-inline-size: 0;
          transition: background var(--dur-2) var(--ease); }
/* The identity block doubles as the way into the profile. Qualified by
   `a` on purpose: one type selector more than the focus rule at the end of
   the file, so a focused link keeps this corner rather than taking the
   focus rule's smaller one. The <div> form (no profile page) keeps --r. */
a.whoami { border-radius: var(--r-sm); }
a.whoami[aria-current="page"] { background: var(--surface-2); }
.nm { font-size: var(--fs-sm); min-inline-size: 0;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl { font-size: var(--fs-xs); color: var(--accent-text); }

@media (min-width: 768px) {
  .shell { flex-direction: row; }
  .side {
    display: flex; flex-direction: column; gap: 2px;
    inline-size: var(--sidebar-md); flex: 0 0 var(--sidebar-md);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-inline-end: 1px solid var(--line);
    padding-block: var(--space-5); padding-inline: var(--space-3);
    position: sticky; inset-block-start: 0; block-size: 100dvh; overflow-y: auto;
    backdrop-filter: blur(10px); box-shadow: var(--shadow-2);
  }
  .topbar { padding-inline: var(--space-6); }
  .topbar h1 { font-size: var(--fs-xl); flex: 0 1 auto; }
  .topbar__brand { display: none; }
  .content { padding-inline: var(--space-6);
             padding-block: var(--space-6) calc(var(--space-10) + var(--safe-b)); }
  :root { --topbar-h: 66px; }
}
@media (min-width: 1024px) { .side { inline-size: var(--sidebar); flex-basis: var(--sidebar); } }

/* The rail: the sidebar as icons. Every rule here is for 768px and up (the
   sidebar does not exist below it); the head script of base.html sets
   data-side. The width variables are the whole width change, so the bulk bar,
   which positions itself beside the sidebar, follows. Labels stay in the
   page for screen readers; core.js gives each icon a tooltip. */
.side__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.side__top .side__brand { min-inline-size: 0; }
.side__toggle { flex: 0 0 auto; }
.side__toggle svg { transition: transform var(--dur-2) var(--ease); }
@media (min-width: 768px) {
  :root[data-side="rail"] { --sidebar: var(--sidebar-rail); --sidebar-md: var(--sidebar-rail); }
  :root[data-side="rail"] .side { padding-inline: var(--space-2); align-items: stretch; }
  :root[data-side="rail"] .side__top { flex-direction: column; gap: var(--space-2); }
  :root[data-side="rail"] .side__brand { padding-inline: 0; padding-block: var(--space-2); justify-content: center; }
  :root[data-side="rail"] .side__brand--wordmark { display: none; }
  :root[data-side="rail"] .side .brandname { display: none; }
  :root[data-side="rail"] .nav, :root[data-side="rail"] .btn--block.side__cta {
    justify-content: center; padding-inline: 0; }
  :root[data-side="rail"] .nav > span:not(.nav__alert):not(.navgroup__caret),
  :root[data-side="rail"] .side__cta > span, :root[data-side="rail"] .side .wrap-any {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  :root[data-side="rail"] .navgroup__caret { display: none; }
  :root[data-side="rail"] .nav-list--sub .nav { margin-inline-start: 0; }
  /* The count becomes a dot on the icon's corner. */
  :root[data-side="rail"] .nav__alert { position: absolute; inset-block-start: 4px; inset-inline-end: 6px;
    min-inline-size: 16px; block-size: 16px; padding-inline: 4px; font-size: var(--fs-xs); margin: 0; }
  :root[data-side="rail"] .side__me { flex-direction: column; }
  :root[data-side="rail"] .side__me .whoami { flex: 0 0 auto; padding-inline: 0; justify-content: center; }
  /* Pointing at the edge it will fold into (the right, in RTL) when open,
     away from it when closed. */
  :root[data-side="full"] .side__toggle svg { transform: rotate(180deg); }
  :root[data-side="rail"] .side__toggle svg { transform: rotate(0deg); }
}

/* ---- phone navigation --------------------------------------------- */
.mobnav {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-mobnav);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-block-start: 1px solid var(--line); box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  padding-block-end: var(--safe-b);
  padding-inline: var(--safe-l) var(--safe-r);
}
.mobnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-block-size: var(--mobnav-h); position: relative;
  font-size: var(--fs-xs); color: var(--text-3);
  border: 0; background: none; font-family: inherit; cursor: pointer;
}
.mobnav__item svg { inline-size: 20px; block-size: 20px; }
.mobnav__item[aria-current="page"] { color: var(--accent-text); }
.mobnav__item[aria-current="page"]::before {
  content: ""; position: absolute; inset-block-start: 0;
  inline-size: 28px; block-size: 2px; border-radius: var(--r-full);
  background: var(--accent);
}
@media (min-width: 768px) { .mobnav { display: none; } }

/* antd Drawer on a phone (bottom edge, full width); DESKTOP VIEW re-forms
   it into a Modal. .confirm below is the same surface. */
.sheet {
  border: 1px solid var(--line-soft); padding: 0; inline-size: 100%; max-inline-size: none;
  margin: auto 0 0 auto; color: var(--text); background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-2); z-index: var(--z-dialog);
}
.sheet::backdrop, .confirm::backdrop {
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
}
.sheet[open] { animation: sheet-in var(--dur-3) var(--ease-out) both; }
.sheet__body { padding: var(--space-5);
               padding-block-end: calc(var(--space-5) + var(--safe-b));
               padding-inline: max(var(--space-5), var(--safe-l)) max(var(--space-5), var(--safe-r)); }
.sheet__grip { inline-size: 36px; block-size: 4px; border-radius: var(--r-full);
               background: var(--line-strong); margin: var(--space-3) auto; }
@keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } }
/* The corner close, added by the script whenever a sheet opens — on a phone
   as much as on a desktop. Styled only in the desktop block, it used to land
   on a phone as a bare button with a full-size icon under the sheet. */
.sheet__x {
  position: absolute; inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3); z-index: 1;
  inline-size: 32px; block-size: 32px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-xs); cursor: pointer;
  background: none; color: var(--text-3);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.sheet__x svg { inline-size: 16px; block-size: 16px; }
.sheet--menu .sheet__x { display: none; }

/* A card inside a sheet is chrome inside chrome: the sheet is already the
   surface, so the card keeps its title and gives up its box — on a phone's
   bottom sheet as much as in the desktop modal. The title leaves room at
   the end for the corner close. */
.sheet .card {
  background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 0;
}
.sheet .card + .card {
  border-block-start: 1px solid var(--line-soft);
  padding-block-start: var(--space-4); margin-block-start: var(--space-1);
}
.sheet .card__head, .sheet .card__body { padding-inline: 0; }
.sheet .card__head { padding-block: 0 var(--space-3); border-block-end: 0;
                     padding-inline-end: var(--space-8); }
.sheet .card__body { padding-block: 0; }

/* A sheet with a footer: the body scrolls, the footer stays at the bottom
   edge. On a phone that is the bottom of the screen — two buttons side by
   side, each half the row and a thumb high, clear of the home indicator. */
.sheet[open]:has(> .sheet__foot) {
  display: flex; flex-direction: column; overflow: hidden;
  max-block-size: calc(100dvh - var(--space-6));
}
.sheet:has(> .sheet__foot) > .sheet__body {
  flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-block-end: var(--space-4);
}
.sheet__foot {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5) calc(var(--space-3) + var(--safe-b));
  border-block-start: 1px solid var(--line-soft); background: var(--surface-2);
}
.sheet__foot > * { flex: 1 1 0; min-inline-size: 0; margin: 0; }
.sheet__foot .btn { inline-size: 100%; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
/* antd Button: 32px, 15px of inline padding (16 less the border), 6px
   corners, a flat fill with antd's 2px contact shadow. Hover states are
   in the HOVER block. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: 1px solid var(--primary); cursor: pointer; font: inherit;
  font-size: var(--fs-md); font-weight: var(--fw-regular); line-height: 1;
  padding-block: var(--space-2); padding-inline: 15px;
  min-block-size: var(--control-h); border-radius: var(--r-sm); white-space: nowrap;
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease);
}
.btn:active { background: var(--primary-press); border-color: var(--primary-press); }
.btn.is-loading { cursor: progress; pointer-events: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn svg { inline-size: var(--icon-sm); block-size: var(--icon-sm); flex: 0 0 auto; }
/* antd's "default" button: the neutral one. Quiet has been the same button
   since the antd layer; the class stays so markup can say which it means. */
.btn--ghost, .btn--quiet {
  background: var(--surface); border-color: var(--line); color: var(--text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
}
.btn--danger { background: var(--danger-strong); border-color: var(--danger-strong); color: #fff; }
/* The destructive action that is not the point of its row — revoking a
   link, calling a bot back — and that asks before it acts: an outline in
   the red text colour, so a list of rows is not a column of red blocks. */
.btn--danger-outline { background: var(--surface); border-color: var(--danger-text);
                       color: var(--danger-text); box-shadow: none; }
.btn--danger:active { background: var(--danger-strong-hover); border-color: var(--danger-strong-hover); }
.btn--danger-outline:active { background: var(--danger-bg); border-color: var(--danger-text); }
.btn--sm { font-size: var(--fs-sm); padding-block: var(--space-1); padding-inline: 7px;
           min-block-size: var(--control-h-sm); border-radius: var(--r-xs); }
.btn--lg { font-size: var(--fs-lg); padding-block: var(--space-3);
           min-block-size: var(--control-h-lg); border-radius: var(--r); }
.btn--block { inline-size: 100%; }
/* Square by its minimum width; the inline padding stays the button's own. */
.btn--icon { min-inline-size: var(--control-h); }
.btn--icon.btn--sm { min-inline-size: var(--control-h-sm); }
/* A finger needs more than a mouse: full-size buttons reach the touch size,
   small ones most of the way — a row of --touch-high small buttons would no
   longer be small. */
@media (pointer: coarse) {
  .btn { min-block-size: var(--touch); }
  .btn--sm { min-block-size: 36px; }
  .btn--icon.btn--sm { min-inline-size: 36px; }
}
/* After the variants, and one attribute stronger than them, so a disabled
   danger or ghost button still reads as disabled. Opacity 1: the grey fill
   already says it, and a faded grey is unreadable. */
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-3); border-color: var(--line); color: var(--text-3);
  box-shadow: none; opacity: 1;
}
.btn[disabled] { cursor: not-allowed; }   /* aria-disabled has no pointer events */

.spinner {
  display: none; inline-size: 14px; block-size: 14px; flex: 0 0 14px;
  border: 2px solid currentColor; border-block-start-color: transparent;
  border-radius: var(--r-full); animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Touch sizes. What is here is what still applies: the text fields in FORMS
   are more specific (input[type=...]) or later (select, textarea) than the
   element selectors below, so their 14px and 32px win on a phone too, and
   iOS Safari zooms on focus. The lines below reach the other inputs —
   checkboxes, radios — and the icon buttons. Button and table-cell touch
   sizes used to be here as well and were outranked the same way. */
@media (pointer: coarse) {
  .btn--icon { min-inline-size: var(--touch); }
  input, select, textarea { font-size: 16px; }
  input, select { min-block-size: var(--touch); }
}

/* =========================================================================
   SURFACES
   ========================================================================= */
/* antd Card: flat, a soft 1px border, the head ruled off from the body.
   The modifiers come after .card so they win on order: --flush gives its
   body and head their own gutters instead of the card's padding, and the
   tones tint the border. */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--space-5); box-shadow: none;
  min-inline-size: 0;
}
.card--flush { padding: 0; overflow: hidden; }
.card--inset { background: var(--surface-2); }
.card--link { display: block; transition: border-color var(--dur-2) var(--ease),
                                          box-shadow var(--dur-2) var(--ease); }
.card__head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
              padding: 0 0 var(--space-4); margin-block-end: var(--space-4);
              border-block-end: 1px solid var(--line-soft); }
/* A flex row so an icon sits beside the title; the `.card__title svg` rule
   (with the heading icons, further down) keeps it text-sized. */
.card__title { display: flex; align-items: center; gap: var(--space-2);
               font-size: var(--fs-lg); font-weight: var(--fw-semibold);
               min-inline-size: 0; }
/* A card grows with what it holds; the page is what scrolls. A capped,
   scrollable body caught the wheel whenever the pointer crossed a card, and
   `contain` then kept the page from moving at all. Only a table too wide for
   the card scrolls, and only sideways. */
.card__body { overflow-x: auto; overflow-y: hidden; }
.card--flush .card__body { padding: var(--space-3); }
/* --flush exists so a table can reach the card's edges; a heading above that
   table still needs the gutter back. */
.card--flush > .card__head { padding: var(--space-4) var(--space-4) var(--space-3); }

/* antd Alert. */
.flash {
  padding: var(--space-3) var(--space-4); border-radius: var(--r);
  margin-block-end: var(--space-4); font-size: var(--fs-md); color: var(--text);
  border: 1px solid var(--line-soft); background: var(--surface-2);
}
.flash.error { background: var(--danger-bg); border-color: var(--danger); }
.flash.ok    { background: var(--ok-bg);     border-color: var(--ok); }

.empty {
  text-align: center; color: var(--text-2);
  padding-block: var(--space-9); padding-inline: var(--space-5);
  border: 1px dashed var(--line); border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.empty__icon { display: grid; place-items: center; inline-size: 56px; block-size: 56px;
               margin: 0 auto var(--space-3); border-radius: var(--r-full);
               background: var(--surface-3); color: var(--text-3); }
.empty__icon svg { inline-size: 28px; block-size: 28px; }
.empty__title { font-size: var(--fs-lg); font-weight: var(--fw-semibold);
                color: var(--text); margin-block-end: var(--space-2); }
.empty__body { font-size: var(--fs-sm); margin: 0 auto; max-inline-size: 46ch; }
.empty__action { margin-block-start: var(--space-4); }
.empty--inline { padding-block: var(--space-5); border: 0; background: none; }

/* A result: antd's Result — something that ended, and what that means for
   the reader. .empty is "nothing here yet"; this is "this happened": the
   minutes failed, are delayed, or will never be made. The tone colours the
   icon and the edge, never the text (the *-text tokens are for that). */
.result { display: grid; justify-items: center; text-align: center; gap: var(--space-2);
          padding: var(--space-7) var(--space-5); border-radius: var(--r);
          border: 1px solid var(--line-soft); background: var(--surface); }
.result__icon { display: grid; place-items: center; inline-size: 48px; block-size: 48px;
                border-radius: var(--r-full); background: var(--surface-3); color: var(--text-3); }
.result__icon svg { inline-size: 24px; block-size: 24px; }
.result__title { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--text); }
.result__text { margin: 0; max-inline-size: 52ch; font-size: var(--fs-sm); color: var(--text-2); }
.result__extra { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; align-items: center;
                 justify-content: center; gap: var(--space-2); }
.result--wait { border-color: color-mix(in srgb, var(--warn) 50%, var(--line-soft)); }
.result--wait .result__icon { background: var(--warn-bg); color: var(--warn-text); }
.result--admin { border-color: color-mix(in srgb, var(--danger) 55%, var(--line-soft)); }
.result--admin .result__icon { background: var(--danger-bg); color: var(--danger-text); }
.result--never .result__icon { background: var(--muted-bg); }

/* An alert: antd's Alert — a line of context above what it is about, not a
   toast. info / warn / error / ok set the tint and the edge. */
/* A count that needs attention, in the side menu (antd Badge, status error). */
.nav__alert { margin-inline-start: auto; min-inline-size: 20px; block-size: 20px; padding-inline: 6px;
              display: inline-grid; place-items: center; border-radius: var(--r-full);
              background: var(--danger-strong); color: #fff; font-size: var(--fs-xs);
              font-variant-numeric: tabular-nums; line-height: 1; }
/* A preset filter: the one most people want, a notch louder than the rest. */
/* Text fields read right to left, as the page does — an empty one too, so
   the caret and the placeholder start on the right (dir="auto" left an empty
   box left-to-right: the AI chat's box put its caret on the wrong side).
   plaintext lets each line follow its own first letters, so a line typed in
   English still reads left to right. Fields that are Latin by nature (an
   email, a URL, a key, a password — or marked dir="ltr") stay as they are. */
input:where(:not([type]), [type="text"], [type="search"], [type="tel"]):not([dir="ltr"]),
textarea:not([dir="ltr"]), [contenteditable="true"]:not([dir="ltr"]) {
  direction: rtl; unicode-bidi: plaintext; text-align: start; }
input:where([type="email"], [type="url"], [type="password"]), input[dir="ltr"], textarea[dir="ltr"] {
  direction: ltr; unicode-bidi: plaintext; text-align: left; }
input::placeholder, textarea::placeholder { text-align: start; }

/* Scrollbars: thin, quiet, and only as dark as the lines — the panes each
   have one now, and the browser's own was wide and grey beside the cards. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { inline-size: 6px; block-size: 6px; width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px;
                            border: 1px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---- the recording page, round two --------------------------------------- */
/* #12 The pinned player in the wide layout's rail is a card of its own: its
   edges are the card's, not a seam of an opaque block against the pane. */
@media (min-width: 1180px) {
  .split--report .report__sticky { background: var(--surface); border: 1px solid var(--line-soft);
                                   border-radius: var(--r); padding: var(--space-2); }
  .split--report .report__sticky .player-bar { margin-block-start: 0; }
}
/* #16 A tablet's pinned player is capped lower than a phone's share. */
@media ((min-width: 768px)) and (max-width: 1179px) {
  .split--report .report__sticky .player-wrap { max-block-size: 34vh; }
  .split--report .report__sticky .player-wrap .player-theme { max-inline-size: calc(34vh * 16 / 9); margin-inline: auto; }
}
/* #15 Docked while the report is read (player.js): a smaller video, and no
   bar under it — the AI and «⋯» are one scroll up. */
@media (max-width: 1179px) {
  .split--report .report__sticky.is-docked { padding-block: var(--space-1); }
  .split--report .report__sticky.is-docked .player-theme { max-inline-size: calc(18vh * 16 / 9); margin-inline: auto; }
  .split--report .report__sticky.is-docked .player-bar,
  .split--report .report__sticky.is-docked .chapter-now { display: none; }
}
/* #17 More of the report's tabs fit a phone's width. */
@media ((max-width: 767px)) {
  .report__tabsbar { gap: var(--space-4); }
  .report__tabsbar .tab { padding-inline: 0; }
}
/* #14 A timestamp is small text but a finger-sized target on a touch screen. */
@media (pointer: coarse) {
  .seek-btn, .stamp { position: relative; }
  .seek-btn::after, .stamp::after { content: ""; position: absolute; inset: -10px -8px; }
}
/* #13 The minutes' parts in one row (antd Anchor). */
/* Wraps onto a second line rather than scrolling sideways. */
.anchors { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-block: var(--space-1); }
.anchors::-webkit-scrollbar { display: none; }
.anchors__item { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-1);
                 padding: var(--space-1) var(--space-3); border-radius: var(--r-full);
                 border: 1px solid var(--line-soft); background: var(--surface);
                 color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.anchors__item:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--line-soft)); }
.anchors__n { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.split--report .split__main [id^="sec-"], .split--report .split__main #mindmap {
  scroll-margin-block-start: calc(var(--touch) + var(--space-6)); }
@media (max-width: 1179px) {
  .split--report .split__main [id^="sec-"], .split--report .split__main #mindmap {
    scroll-margin-block-start: calc(var(--topbar-live, var(--topbar-h)) + var(--player-h, 0px) + var(--touch) + var(--space-4)); }
}
/* #19 Four speakers, then «+N». */
.people__more { display: contents; }
.people__more > summary { list-style: none; cursor: pointer; }
.people__more > summary::-webkit-details-marker { display: none; }
.people__more[open] > summary { display: none; }
.people__more > .people { display: contents; }
.chip--more { color: var(--primary-text, var(--primary)); }
/* #18 The suggestions card's «×». */
.ai-cta { position: relative; }
.ai-cta__x { flex: 0 0 auto; }
/* The activity tab's «نمایش همه». */
.card__foot { padding: var(--space-3) var(--space-4); border-block-start: 1px solid var(--line-soft);
              display: flex; justify-content: center; }

/* «⋯» — a dropdown of the actions a bar has no room for (antd Dropdown).
   Anchored to its button's inline end, so in RTL it opens towards the page. */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface-3); color: var(--text); }
/* On a phone search lives in the bottom bar (_shell.html «جست‌وجو»): the top
   bar's box is only there to become the sheet when it opens. */
@media (max-width: 767px) {
  .topbar .gsearch:not(.is-sheet) { display: none; }
}

/* The top bar on a phone: one row of --topbar-h, whatever the page puts in
   it. The title shortens (ellipsis) instead of the bar growing rows; a
   toolbar button with an icon shows only the icon (its words stay for a
   screen reader); a words-only way back («بازگشت به …») leaves, since the
   bottom bar and the system's back do that; and the brand steps aside on
   a page that has actions of its own. */
@media ((max-width: 767px)) {
  .topbar { flex-wrap: nowrap; gap: var(--space-2); padding-block: var(--space-2);
            padding-block-start: max(var(--space-2), var(--safe-t));
            padding-inline: var(--space-3); min-block-size: var(--topbar-h); }
  :root { --topbar-h: calc(58px + var(--safe-t)); }
  .topbar h1 { flex: 1 1 auto; font-size: var(--fs-md); }
  .topbar > .spacer { display: none; }
  .topbar > .btn, .topbar > .menu { flex: 0 0 auto; }
  .topbar:has(> .btn, > .menu) > .topbar__brand { display: none; }
  .topbar > .btn:has(> svg) > span:not(.spinner) {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  .topbar > .btn:has(> svg) { padding-inline: var(--space-2); }
  .topbar > a.btn--ghost:not(:has(> svg)) { display: none; }
}

.menu:not([open]) > .menu__list { display: none; }
/* Opens towards the page: aligned to its button's inline start (in RTL the
   right edge) unless that would leave the screen — then core.js flips it
   (.menu--flip) to the other edge. */
.menu__list { position: absolute; inset-inline-start: 0; inset-block-start: calc(100% + 4px);
              z-index: var(--z-dialog); min-inline-size: 208px; max-inline-size: min(88vw, 320px);
              padding: var(--space-1); border-radius: var(--r); background: var(--surface-2);
              border: 1px solid var(--line-soft); box-shadow: var(--shadow-2);
              display: flex; flex-direction: column; }
.menu--flip > .menu__list { inset-inline-start: auto; inset-inline-end: 0; }
/* Placed by Floating UI (core.js placeMenu), in the top layer: the popover's
   own box (centred, bordered) undone; the script sets left and top. */
.menu__list.is-floating { position: fixed; inset: auto; margin: 0; z-index: var(--z-dialog);
                          overflow-y: auto; overscroll-behavior: contain; color: var(--text); }
.menu__item { display: flex; align-items: center; gap: var(--space-2); inline-size: 100%;
              min-block-size: 40px; padding: var(--space-2) var(--space-3); border: 0;
              border-radius: var(--r-xs); background: none; color: var(--text); font: inherit;
              font-size: var(--fs-md); text-align: start; text-decoration: none; cursor: pointer; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-3); }
.menu__item .icon { color: var(--text-2); flex: 0 0 auto; }

/* The recording's top-bar actions: every one in the row on a wide screen;
   on a narrower one the file and sharing as icons and the rest in «⋯» —
   the theme switch too, whose own button leaves the bar. */
.bar-wide { display: contents; }
.bar-narrow { display: none; }
/* Beside the sidebar the whole row needs ~1600px; below that the top bar
   kept wrapping onto a second row (103px on a 1440px screen). */
@media (max-width: 1599px) {
  .bar-wide { display: none; }
  .bar-narrow { display: inline-block; }
  body:has(.bar-narrow) .topbar { flex-wrap: nowrap; }
  body:has(.bar-narrow) .topbar > .themetoggle { display: none; }
  body:has(.bar-narrow) .topbar h1 { min-inline-size: 0; }
}
@media (max-width: 1023px) {
  .bar-tight .bar-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
                          clip-path: inset(50%); white-space: nowrap; }
  .bar-tight { padding-inline: var(--space-2); }
  /* One row, the height of the others: the title shortens rather than the
     bar growing a second row, and the brand (on the bottom bar's pages and
     in the menu) steps aside for the recording's own actions. */
  body:has(.bar-narrow) .topbar { flex-wrap: nowrap; gap: var(--space-2);
                                  padding-block: var(--space-2); padding-inline: var(--space-3);
                                  min-block-size: var(--topbar-h); }
  body:has(.bar-narrow) .topbar__brand { display: none; }
  body:has(.bar-narrow) .topbar h1 { flex: 1 1 auto; font-size: var(--fs-md); }
  body:has(.bar-narrow) .topbar > .spacer { display: none; }
  body:has(.bar-narrow) .topbar .btn { flex: 0 0 auto; }
}
/* The public pages' last line (base.html legalfoot()): small, centred, in the
   flow after the content, so it can never sit over the player or a form. */
.legalfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
             gap: var(--space-2) var(--space-4); margin-block-start: var(--space-6);
             padding-block: var(--space-3) var(--space-2); color: var(--text-3); font-size: var(--fs-xs); }
.legalfoot nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.legalfoot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
               display: inline-flex; align-items: center; min-block-size: 24px; }
.legalfoot a:hover { color: var(--text); }
@media (pointer: coarse) { .legalfoot a { min-block-size: var(--touch); padding-inline: var(--space-2); } }
.shell--public .legalfoot { padding-inline: var(--space-4); }

/* The header, in order of weight: where you are (the title, which gives way
   by ellipsis), the one search box (which narrows before anything wraps),
   then the page's actions. One row from a tablet up; the phone rule above
   already does it below 720px.  */
@media ((min-width: 768px)) {
  .topbar { flex-wrap: nowrap; }
  .topbar h1 { flex: 0 1 auto; min-inline-size: 6ch; }
  .topbar .gsearch { flex: 1 1 140px; }
  .topbar > .btn, .topbar > .menu, .topbar > .segmented, .topbar > form { flex: 0 0 auto; }
}
@media ((min-width: 768px)) and (max-width: 1279px) {
}
/* A second line of the title (a meeting's subtitle) is the first thing to go. */
@media (max-width: 1023px) { .topbar .heading-sub { display: none; } }
.player-bar .btn--icon[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-text, var(--primary)); }
/* The setup checklist on the admin overview (antd Steps, vertical). */
.setup__steps { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-4);
                display: grid; gap: var(--space-3);
                grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.setup__step { display: flex; gap: var(--space-3); align-items: flex-start; }
.setup__mark { flex: 0 0 28px; block-size: 28px; display: grid; place-items: center;
               border-radius: var(--r-full); border: 1px solid var(--line); color: var(--text-2);
               font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.setup__step--done .setup__mark { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-text); }
.setup__step--done .setup__title { color: var(--text-2); }
.setup__title { font-weight: var(--fw-medium); }
.setup__text { margin: var(--space-1) 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.chip--preset { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
         padding: var(--space-2) var(--space-3); border-radius: var(--r);
         border: 1px solid var(--line); background: var(--surface-2);
         font-size: var(--fs-sm); color: var(--text); }
.alert > span { flex: 1 1 14em; min-inline-size: 0; }
.alert .icon { flex: 0 0 auto; }
.alert--info { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-bg); }

/* =========================================================================
   BADGES, DOTS, CHIPS
   ========================================================================= */
/* antd Tag, for both: a 22px pill-less tag with a hairline border. The two
   classes stay apart because a badge is a status and a chip is a thing
   (a tag, a filter, a person). */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 20px;
  min-block-size: 22px; padding: 0 7px;
  border-radius: var(--r-xs); background: var(--muted-bg); color: var(--text-2);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.badge--accent { background: var(--primary-bg); border-color: var(--primary);
                 color: var(--primary-text); }
.badge--warn   { background: var(--warn-bg);   border-color: var(--warn);   color: var(--warn-text); }
.badge--danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-text); }
/* Happening now: a meeting in progress, a bot recording, a person still in
   the room. Green with the pulsing dot — a live meeting is good news, and
   red belongs to failure. status_badge() in base.html picks it. */
.badge--live   { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-text); }
.badge--live .live-dot { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); }
/* Quieter than the plain badge: for what is said in passing (where a search
   hit was found, a count). */
.badge--muted  { background: var(--muted-bg); color: var(--text-3); }

.dot { inline-size: 16px; block-size: 16px; flex: 0 0 16px; border-radius: var(--r-full);
       display: grid; place-items: center; font-size: var(--fs-xs); line-height: 1;
       color: var(--bg); font-weight: var(--fw-bold); }
.dot--ok   { background: var(--accent); }
.dot--warn { background: var(--warn); }
.dot--idle { background: var(--surface-4); color: var(--text-3); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-sm); line-height: 20px;
  min-block-size: 22px; padding: 0 7px;
  border-radius: var(--r-xs); background: var(--muted-bg); color: var(--text-2);
  border: 1px solid var(--line-soft);
}
/* A chip beside other text in a sentence-sized line (an action item's
   owner): two pixels shorter each side, same type. */
.chip--sm { min-block-size: 18px; line-height: 16px; padding-inline: var(--space-1); }
.chip--toggle { cursor: pointer; font-family: inherit; }
/* The list's facet toggles are links (they work before list.js does). */
a.chip--toggle { text-decoration: none; }
.chip--toggle[aria-pressed="true"] {
  background: var(--ok-bg); color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.people { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
/* The «+N» button in a recordings row: above the row's stretched title
   link, like .rec__actions, or it could never be pressed. */
.people__more { position: relative; z-index: 1; }

.av { inline-size: 32px; block-size: 32px; flex: 0 0 32px; border-radius: var(--r-full);
      display: grid; place-items: center; font-size: var(--fs-xs);
      font-weight: var(--fw-bold); color: var(--on-primary);
      background: linear-gradient(135deg, var(--primary), var(--secondary)); }

/* antd Segmented: a sunken track, the chosen option raised out of it. */
.segmented { display: inline-flex; background: var(--surface-3);
             border: 0; border-radius: var(--r-sm);
             padding: 2px; gap: 2px; }
.segmented__btn { border: 0; background: none; font: inherit; font-size: var(--fs-md);
                  color: var(--text-2); cursor: pointer; border-radius: var(--r-xs);
                  padding: 3px var(--space-3);
                  min-block-size: 32px; white-space: nowrap;
                  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
/* The list's sort options are links: a link needs the flex box a button
   lays its label out in. */
/* The recordings of one meeting, side by side (_item_switcher.html). */
.item-switcher { flex-wrap: wrap; max-inline-size: 100%; margin-block-end: var(--space-3); }
.item-switcher .segmented__btn { gap: var(--space-1); }
.item-switcher .segmented__btn[aria-current="page"] { background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1, 0 1px 2px rgb(0 0 0 / .12)); }
a.segmented__btn { display: inline-flex; align-items: center; text-decoration: none; }
.segmented__btn[aria-pressed="true"] { background: var(--surface); color: var(--text);
                  font-weight: var(--fw-medium); box-shadow: var(--shadow-1); }

/* =========================================================================
   FORMS
   ========================================================================= */
/* antd Input: 32px, 4px 11px of padding, the container surface. Hover is in
   the HOVER block.

   Three things the earlier, pre-antd rules here did are gone, because this
   rule overrode them and the pages have looked this way since:
     - a select's chevron (the `background` shorthand below clears any
       background-image); `appearance: none` still hides the native one,
       so a select shows no arrow at all;
     - a select's wider end padding for that chevron;
     - a textarea's prose leading and two-line minimum height.
   Bringing any of them back is a visible change, so it is left to a
   deliberate edit: a rule for `select` or `textarea` after this one. */
input[type=text], input[type=password], input[type=search], input[type=number],
input[type=url], input[type=email], input[type=date], select, textarea {
  inline-size: 100%; font: inherit; font-size: var(--fs-md); color: var(--text);
  /* --lh-tight, not the inherited body leading: a single-line control should
     be as tall as the button beside it, not half again as tall. */
  line-height: var(--lh-tight);
  padding: 4px 11px;
  min-block-size: var(--control-h);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
/* Widths are chosen, not inherited: a field is as wide as what goes in it.
   A room name (at most 40 characters) and the inputs of a filter row do not
   stretch across a 1900px content area; prose, tables and reports still do. */
.inline-form--prefix input { max-inline-size: 28rem; }
.filters > input[type=text], .filters > input[type=search], .filters > input[type=date],
.filters > input[type=number], .filters > select { inline-size: auto; flex: 0 1 15rem; min-inline-size: 9rem; }
/* Focus is the border and the halo, not an outline — for a mouse click as
   much as for the keyboard, since a field being typed into should say so. */
input:focus, select:focus, textarea:focus,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
::placeholder { color: var(--text-3); }
/* A select is a value picked from a list, and says so with a chevron at its
   end; a textarea is prose, with comfortable leading and room for two lines.
   Both after the field rule above, whose `background` shorthand and single
   line height would otherwise take them back. */
select {
  appearance: none; padding-inline-end: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23BCB0C4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 12px;
  /* The document is rtl; this is the fallback for engines without :dir(). */
  background-position: left var(--space-3) center;
}
:root:dir(rtl) select { background-position: left var(--space-3) center; }
:root:dir(ltr) select { background-position: right var(--space-3) center; }
textarea { line-height: var(--lh-body); min-block-size: calc(var(--control-h) * 2); }
/* On a touch screen: 16px text, or iOS Safari zooms the page on focus, and
   a field tall enough for a finger. The same selectors as the field rule,
   after it, so they win where the element-only rule above never could. */
@media (pointer: coarse) {
  input[type=text], input[type=password], input[type=search], input[type=number],
  input[type=url], input[type=email], input[type=date], select, textarea {
    font-size: 16px;
  }
  input[type=text], input[type=password], input[type=search], input[type=number],
  input[type=url], input[type=email], input[type=date], select {
    min-block-size: var(--touch);
  }
}
label { display: block; margin-block-end: var(--space-2);
        color: var(--text-2); font-size: var(--fs-sm); }
.field { margin-block-end: var(--space-3); }
.field--flush { margin-block-end: 0; }
/* Two fields beside each other once there is room (a tablet and up); one
   column on a phone, where a half-width field is a squeezed one. */
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-5); }
@media ((min-width: 768px)) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field__help { margin-block: var(--space-2) 0; color: var(--text-3); font-size: var(--fs-sm); }
.field__error { margin-block: var(--space-2) 0; color: var(--danger-text);
                font-size: var(--fs-sm); min-block-size: 1em; }

@keyframes pulse { 50% { opacity: .35; } }

/* =========================================================================
   TABS
   ========================================================================= */
/* antd Tabs: text tabs 24px apart on a soft rule, the selected one
   underlined in the primary colour. The underline is an inset shadow, not a
   border, so selecting a tab never changes its box. */
.tabs {
  display: flex; gap: var(--space-6); border-block-end: 1px solid var(--line-soft);
  margin-block-end: var(--space-5); overflow-x: auto; scrollbar-width: none;
  /* Sideways only. overflow-x alone makes the other axis auto too, and the
     strip is a pixel taller than its box — enough for it to take the wheel
     from the page whenever the pointer was over the tabs. */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* The fade says "there is more, scroll"; .is-scrollable is put on by
     core.js only when the strip actually overflows. Unconditionally, it
     dimmed the first tab's own name — which reads as a shadow over it. */
}
.tabs::-webkit-scrollbar { display: none; }
/* The fade says "there is more this way", so it is only on an end that
   hides something (core.js: .more-start / .more-end). RTL: the start is
   the right; an LTR page mirrors it. */
.tabs.more-end, .strip__rail.more-end, .meetfilters__row.more-end {
  mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent 100%); }
.tabs.more-start, .strip__rail.more-start, .meetfilters__row.more-start {
  mask-image: linear-gradient(to left, transparent 0, #000 28px); }
.tabs.more-start.more-end, .strip__rail.more-start.more-end, .meetfilters__row.more-start.more-end {
  mask-image: linear-gradient(to left, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
[dir="ltr"] .tabs.more-end, [dir="ltr"] .strip__rail.more-end, [dir="ltr"] .meetfilters__row.more-end {
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%); }
[dir="ltr"] .tabs.more-start, [dir="ltr"] .strip__rail.more-start, [dir="ltr"] .meetfilters__row.more-start {
  mask-image: linear-gradient(to right, transparent 0, #000 28px); }
/* [data-tabs-fit]: never scrolls; what does not fit is in «⋯» (core.js
   fitTabs), so no fade either. overflow stays visible, or the menu under
   «⋯» would be cut off at the strip's edge. */
.tabs[data-tabs-fit] { overflow: visible; mask-image: none !important; }
.tabs[data-tabs-fit] > .tab.is-overflow { display: none; }
.tabs__more { flex: 0 0 auto; margin-inline-start: auto; align-self: stretch; display: flex; }
.tabs__more[hidden] { display: none; }
.tabs__morebtn { display: inline-flex; align-items: center; justify-content: center;
                 min-inline-size: var(--touch); min-block-size: var(--touch); cursor: pointer;
                 color: var(--text-2); font-size: var(--fs-lg); line-height: 1;
                 border-radius: var(--r-sm); }
.tabs__morebtn:hover { color: var(--primary); }
.tabs__more[open] > .tabs__morebtn { color: var(--text); background: var(--surface-3); }
.tabs__more > .menu__list { inset-inline-start: auto; inset-inline-end: 0; }
.tab {
  flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 0; background: none;
  font: inherit; font-size: var(--fs-md); color: var(--text-2); cursor: pointer;
  padding: var(--space-3) 0; margin-block-end: -1px;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-block-size: var(--touch);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.tab[aria-selected="true"] {
  color: var(--primary-text); font-weight: var(--fw-medium);
  box-shadow: inset 0 -2px 0 var(--primary-text);
}
.tab__count { color: var(--text-3); font-size: var(--fs-sm); }

/* =========================================================================
   TABLES — one markup, two layouts
   ========================================================================= */
.table-wrap { inline-size: 100%; }
table.grid { inline-size: 100%; border-collapse: collapse; font-size: var(--fs-md); }
/* antd Table's header fill. Its other header and cell values (14px
   semibold headers, 16px inline padding) were written as `.grid th` and
   `.grid td`, one type selector short of these, so they never applied;
   the header and cells below are the look the pages have. */
table.grid th {
  text-align: start; font-size: var(--fs-xs); font-weight: var(--fw-medium);
  color: var(--text-2); padding: var(--space-3); background: var(--surface-2);
  border-block-end: 1px solid var(--line);
}
/* 14px set on the cell itself, not inherited: it outranks a .small or .mono
   on the cell, which is what keeps a table's columns one size. */
table.grid td { padding: var(--space-3); border-block-end: 1px solid var(--line-soft);
                vertical-align: middle; font-size: var(--fs-md); }
table.grid tbody tr:last-child td { border-block-end: 0; }

@media (max-width: 767px) {
  .grid--cards, .grid--cards tbody, .grid--cards tr, .grid--cards td { display: block; }
  .grid--cards thead { display: none; }
  .grid--cards tbody tr {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: var(--space-3);
    margin-block-end: var(--space-3); box-shadow: var(--shadow-1);
  }
  .grid--cards td { border: 0; padding: var(--space-1) 0;
                    display: flex; gap: var(--space-3); align-items: baseline; }
  .grid--cards td::before {
    content: attr(data-label); flex: 0 0 40%;
    color: var(--text-3); font-size: var(--fs-xs);
  }
  .grid--cards td:empty { display: none; }
  .grid--cards td[data-label=""]::before { display: none; }
  .grid--cards td[data-label=""] { padding-block-start: var(--space-3); }
}

/* =========================================================================
   RECORDING ROWS & MEDIA
   ========================================================================= */
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center;
           margin-block-end: var(--space-4); }
.daygroup {
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-3);
  padding-block: var(--space-2); margin-block: var(--space-4) var(--space-2);
}
/* A phone already pins the top bar and the breadcrumb row; a third pinned line would take a quarter of the
   screen, so the day headings scroll with the list there and pin under the row from a tablet up. */
@media (min-width: 768px) {
  .daygroup {
    position: sticky; inset-block-start: calc(var(--topbar-live, var(--topbar-h)) + var(--pin-h, 0px));
    z-index: calc(var(--z-sticky) - 3); background: var(--bg);
  }
}
/* «نمایش بیشتر» and the "N از M" beside it. */
.morebar { display: flex; justify-content: center; align-items: center; gap: var(--space-3);
           margin-block-start: var(--space-5); }

.rec {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-block-end: var(--space-2);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
/* The row a «بازگشت» came back to (web/context.py anchors): clear of the
   sticky bar, and marked for a moment so the eye finds it. */
.rec[id], .meet[id] { scroll-margin-block: calc(var(--topbar-live, var(--topbar-h)) + var(--space-4)); }
.rec:target, .meet:target { border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.rec__thumb {
  inline-size: var(--thumb-w-sm); flex: 0 0 var(--thumb-w-sm);
  aspect-ratio: 16 / 9; border-radius: var(--r-xs);
  background-color: var(--surface-3);
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 34%, var(--surface-3)), var(--surface-2));
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: var(--on-primary);
}
.rec__thumb svg { inline-size: 20px; block-size: 20px; opacity: .92; }
.rec__meta {
  display: flex; gap: var(--space-2) var(--space-3); flex-wrap: wrap;
  align-items: center; font-size: var(--fs-sm); color: var(--text-2);
  margin-block-start: 2px;
}
.rec__meta .is-secondary, .is-secondary { color: var(--text-3); }
@media (max-width: 479px) {
  .rec { flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .rec__thumb { inline-size: var(--thumb-w); flex-basis: var(--thumb-w); }
}

.player { inline-size: 100%; aspect-ratio: 16 / 9; max-block-size: 66vh;
          background: var(--video-bg); border-radius: var(--r); display: block;
          object-fit: contain; }
.player-bar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
              margin-block-start: var(--space-3); }

/* =========================================================================
   SHARE LINKS
   ========================================================================= */
.share-item {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.share-item__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.share-item__who { flex: 1 1 10em; min-inline-size: 0; display: flex; flex-direction: column; }
.share-item__name { font-weight: var(--fw-medium); overflow-wrap: anywhere; }
/* The round mark at the start of a person or a link, as in a share dialog. */
.avatar { flex: 0 0 auto; inline-size: 32px; block-size: 32px; border-radius: var(--r-full);
          display: grid; place-items: center; background: var(--primary-bg); color: var(--primary); }
.share-who { display: flex; align-items: center; gap: var(--space-3);
             padding-block: var(--space-2); }
.share-who__name { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; }
.share-who__title { margin: var(--space-3) 0 var(--space-1); font-size: var(--fs-sm);
                    font-weight: var(--fw-medium); color: var(--text-3); }
.share-item__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.share-item__actions .btn { flex: 1 1 auto; }
.share-item__form { margin: 0; flex: 0 0 auto; }

/* =========================================================================
   DATA DISPLAY
   ========================================================================= */
/* antd Progress: an 8px track, a flat primary fill. */
.meter { block-size: 8px; border-radius: var(--r-full); background: var(--surface-3);
         margin-block-start: var(--space-1); overflow: hidden; display: block; }
.meter__fill { block-size: 100%; border-radius: var(--r-full); display: block;
               background: var(--primary); }

.kv { margin: 0; display: grid; grid-template-columns: auto 1fr;
      gap: var(--space-2) var(--space-3); font-size: var(--fs-md); }
.kv dt { color: var(--text-2); font-size: var(--fs-sm); }
.kv dd { margin: 0; min-inline-size: 0; overflow-wrap: anywhere; }

.stat { display: block; }
.stat__label { display: block; color: var(--text-2); font-size: var(--fs-sm); }
.stat__value { display: block; font-size: var(--fs-2xl); font-weight: var(--fw-bold);
               line-height: var(--lh-tight); margin-block-start: var(--space-1); }
.stat__hint { display: block; color: var(--text-3); font-size: var(--fs-xs); }


/* =========================================================================
   FEEDBACK — toasts, skeletons, banners, dialogs
   ========================================================================= */
#toasts {
  position: fixed;
  inset-block-end: calc(var(--space-5) + var(--safe-b) + var(--mobnav-h));
  inset-inline: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  z-index: var(--z-toast); pointer-events: none; align-items: flex-start;
  /* It is a popover (base.html), so it can be shown in the top layer over
     an open sheet; these undo the browser's popover box — its border,
     padding, canvas background, centring margin and scroller — and keep it
     drawn when the popover is closed (no popover support, or a toast from
     before core.js showed it). */
  margin: 0; padding: 0; border: 0; background: none; color: inherit;
  overflow: visible; inline-size: auto; block-size: auto; inset-block-start: auto;
}
#toasts:not(:popover-open) { display: flex; }
#toasts:empty { display: none; }
/* antd message. From above the phone nav here; from the top, centred, in
   DESKTOP VIEW. */
.toast {
  pointer-events: auto; max-inline-size: min(420px, 100% - var(--space-4));
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--r);
  font-size: var(--fs-md); background: var(--surface); color: var(--text);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-2);
  animation: toast-in var(--dur-3) var(--ease-out) both;
}
.toast.ok { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.toast.out { animation: toast-out var(--dur-2) var(--ease) both; }
.toast__close { margin-inline-start: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* antd Skeleton: one step up the fill ladder from the surface it sits on,
   so it shows on a card in either theme. */
.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--surface-3), var(--surface-4), var(--surface-3));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton--line { block-size: 12px; margin-block-end: var(--space-2); }
.w-90 { inline-size: 90%; } .w-70 { inline-size: 70%; } .w-50 { inline-size: 50%; } .w-40 { inline-size: 40%; }
/* Placeholder cards (_placeholders.html) share the real cards' boxes, so the list lands in place. */
.placeholder-list { min-inline-size: 0; }
.skeleton--icon { inline-size: 40px; block-size: 40px; border-radius: var(--r-sm); flex: 0 0 auto; }
.skeleton--thumb { inline-size: 96px; block-size: 54px; }
.fcard--ghost .fcard__link { pointer-events: none; }
.fcard--ghost .skeleton--icon { inline-size: 24px; block-size: 24px; grid-row: span 2; }
.fcard--ghost .skeleton--line, .meet--ghost .skeleton--line { margin-block-end: 0; }
.meet--ghost { pointer-events: none; min-block-size: 64px; }
.meet--ghost .meet__body { gap: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.is-loading { pointer-events: none; }
[aria-busy="true"] { cursor: progress; }

.page-status:empty { display: none; }
.statusline {
  display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--space-3) var(--space-4); margin-block-end: var(--space-4);
  font-size: var(--fs-sm); background: var(--surface);
}
.statusline__icon { display: inline-flex; flex: 0 0 auto; }
.statusline__icon .icon { inline-size: 16px; block-size: 16px; }
.statusline__text { flex: 1 1 14rem; min-inline-size: 0; margin: 0; line-height: var(--lh-body); }
.statusline__since { white-space: nowrap; font-variant-numeric: tabular-nums; }
.statusline--warn { background: var(--warn-bg); color: var(--warn-text);
                    border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.statusline--info { background: var(--primary-bg); color: var(--primary-text);
                    border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.statusline .btn { flex: 0 0 auto; }

/* antd Modal, small: the same surface as .sheet (whose ::backdrop rule
   covers this one too). */
.confirm {
  border: 1px solid var(--line-soft); padding: 0; color: var(--text);
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-2); z-index: var(--z-dialog);
  inline-size: min(420px, calc(100% - var(--space-8))); margin: auto;
}
.confirm__body { padding: var(--space-5); }
.confirm__title { font-size: var(--fs-lg); font-weight: var(--fw-semibold);
                  margin-block-end: var(--space-2); }
.confirm__text { color: var(--text-2); font-size: var(--fs-md);
                 margin-block-end: var(--space-5); }
.confirm__facts { margin: 0 0 var(--space-5); padding-inline-start: var(--space-5);
                  color: var(--text-2); font-size: var(--fs-sm); }
.confirm__facts[hidden] { display: none; }
.confirm__facts li + li { margin-block-start: var(--space-1); }
.confirm__actions { display: flex; gap: var(--space-2); flex-wrap: wrap;
                    justify-content: flex-start; }

/* =========================================================================
   STILL WORKING — a section whose data is on its way (the working() macro
   in _recording.html), not a feature that does not exist yet.
   ========================================================================= */
.feature-card {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--r); padding: var(--space-5);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%,
              color-mix(in srgb, var(--surface) 80%, transparent));
}
.feature-card__head { display: flex; align-items: center; gap: var(--space-3);
                      margin-block-end: var(--space-2); flex-wrap: wrap; }
.feature-card__icon { display: grid; place-items: center;
                      inline-size: 32px; block-size: 32px; flex: 0 0 32px;
                      border-radius: var(--r-sm); background: var(--primary-bg);
                      color: var(--primary-text); }
.feature-card__icon svg { inline-size: var(--icon); block-size: var(--icon); }
.feature-card__title { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.feature-card__body { font-size: var(--fs-sm); color: var(--text-2);
                      margin: 0 0 var(--space-4); max-inline-size: 56ch; }
.feature-card__preview { display: flex; flex-direction: column; gap: var(--space-2); }
.feature-card__preview .skeleton { animation-duration: 2.6s; opacity: .7; }

/* ---- the recording report: player rail + the report beside it ---------
   One rule for every width: the video is always in view, and the report's
   tab strip is always within reach. Two layouts (Ant Design's Layout with
   an Affix, in our words):

   ≥ 1180px — two panes, each with a scroll of its own. The report is the
     flexible column (in RTL, the first — the right), the rail the fixed
     one beside it (--rail-w). Both stick under the top bar and are no
     taller than the window, so the page itself hardly scrolls: the wheel
     scrolls whichever pane it is over. In the rail the player block sticks
     at the pane's top and the guide and the AI panel scroll under it; in
     the report the tab strip sticks and the open tab scrolls under it.
     Each pane is a [data-scroll-root] (core.js keeps each tab's place in
     it, live.js keeps the reader's line in it across a redraw).
   < 1180px — one column and the window's scroll, never a box within a box
     on a touch screen. The rail gives up its own box (display: contents),
     so its parts are the column's own items: the player first, sticking
     for the whole page (not only while the rail is on screen, as before),
     then the report with its tab strip sticking under the player
     (--player-h, measured by player.js), then the chapters.

   The markup order is unchanged: the rail first, so a page without CSS
   still starts with the video. */
:root { --rail-w: clamp(360px, 32vw, 520px);
        /* --topbar-live: the top bar's real height, measured by core.js (it
           can be taller than --topbar-h when a page's actions wrap). */
        --report-top: calc(var(--topbar-live, var(--topbar-h)) + var(--space-4)); }

/* The share page (share_view.html): the dashboard's frame with no sidebar,
   so the brand stays in the top bar at every width, the title carries a
   quiet second line, and the content has no bottom bar to clear. */
.shell--public .topbar__brand,
body:has(.bar-narrow) .shell--public .topbar__brand { display: flex; }
.shell--public .content { padding-block-end: calc(var(--space-10) + var(--safe-b)); }
@media (min-width: 768px) {
  .shell--public .content { padding-block-end: calc(var(--space-6) + var(--safe-b)); }
}
.report__sticky { display: flex; flex-direction: column; gap: var(--space-3);
                  /* Frosted, not see-through: what scrolls under it is blurred
                     away, and the page's glow still reads through (as the top
                     bar does). */
                  background: color-mix(in srgb, var(--bg) 86%, transparent);
                  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Pinned surfaces are the top bar's glass, not solid blocks: the page has
   its brand glow (body::before), and an opaque --bg rectangle sat on it as a
   visibly different patch, in dark mode most of all. */
.report__tabsbar { background: rgba(0, 0, 0, 0);
                   -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

@media (min-width: 1180px) {
  .split--report { grid-template-columns: minmax(0, 1fr) var(--rail-w); align-items: start; }
  .split--report > .split__main { grid-column: 1; grid-row: 1; }
  /* Each pane is a flex column with a height cap; its parts keep their own
     height (a box that clips its overflow — the rail's tab strip — was
     squeezed to 1px) and the pane scrolls instead. */
  .split--report > .split__main > *, .split--report > .report__rail > *,
  .split--report .report__rail > .live-wrap > * { flex-shrink: 0; }
  .split--report > .report__rail { grid-column: 2; grid-row: 1; }
  .split--report > .split__main,
  .split--report > .report__rail {
    position: sticky; top: var(--report-top);
    max-block-size: calc(100vh - var(--report-top) - var(--space-4));
    max-block-size: calc(100dvh - var(--report-top) - var(--space-4));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
    /* The focus ring of a card at the pane's edge is not cut off. */
    padding-inline: 2px;
  }
  .report__sticky { position: sticky; top: 0; z-index: 3; padding-block-end: var(--space-3); }
  .report__tabsbar { position: sticky; top: 0; z-index: 3; padding-block-end: var(--space-2); }
  /* The page around the two panes has nothing below them: its usual end
     padding would only give the window a short scroll of its own. */
  .content:has(> .split--report) { padding-block-end: 0; }
  /* A moment jumped to lands below the sticky strip, not under it. */
  .split--report .split__main [id], .split--report .split__main [data-at] {
    scroll-margin-block-start: calc(var(--touch) + var(--space-6)); }
}

@media (max-width: 1179px) {
  /* stretch, not the grid's start: a flex column sized its items to their
     content, and the report grew to its widest row (the tab strip, a long
     table) — past the screen, which then scrolled sideways. */
  .split--report { display: flex; flex-direction: column; gap: var(--space-4); align-items: stretch; }
  .split--report > * { min-inline-size: 0; max-inline-size: 100%; }
  .split--report > .report__rail { display: contents; }
  .split--report .report__sticky { order: -3; position: sticky; top: var(--topbar-live, var(--topbar-h));
                                   z-index: 4; padding-block: var(--space-2); }
  .split--report .report__sticky .player-wrap { max-block-size: 42vh; }
  /* Edge to edge of the page: an opaque pinned block that ended inside the
     page's padding showed its edges as hairlines against what scrolled by. */
  .split--report .report__sticky, .split--report .report__tabsbar {
    margin-inline: calc(-1 * var(--content-pad, var(--space-4)));
    padding-inline: var(--content-pad, var(--space-4)); }
  .split--report > .split__main { order: -2; }
  .report__tabsbar { position: sticky; z-index: 3; padding-block: var(--space-1);
                     top: calc(var(--topbar-live, var(--topbar-h)) + var(--player-h, 0px)); }
  .split--report .split__main [id], .split--report .split__main [data-at] {
    scroll-margin-block-start: calc(var(--topbar-live, var(--topbar-h)) + var(--player-h, 0px) + var(--touch) + var(--space-4)); }
}
/* The report page never scrolls sideways: the page clips, and a table
   in a report card fits the card (its cells wrap) instead of scrolling. */
.split--report { overflow-x: clip; }
.split--report .card__body { overflow-x: visible; }
.split--report .card__body table { inline-size: 100%; table-layout: fixed; }
.split--report .card__body :is(td, th) { overflow-wrap: anywhere; white-space: normal; }
.split--report :is(pre, code) { white-space: pre-wrap; overflow-wrap: anywhere; }
.split--report img, .split--report video, .split--report iframe { max-inline-size: 100%; }
/* «رفتن به گزارش»: on a phone the report is under the player; on a wide
   screen it is beside it and the link has nothing to do. */
.report__jump { display: none; }
@media (max-width: 1179px) { .report__jump { display: inline-flex; } }

/* The rail's own strip (chapters, highlights, speakers) reads as a guide to
   the video, not as more of the report's tabs: quieter, and labelled. */
/* The rail's guide switch reads as antd's Segmented control — a different
   thing from the report's tabs beside it, not a second row of them. */
.tabs.tabs--rail { gap: 2px; padding: 2px; border: 0; border-radius: var(--r);
                   background: var(--surface-3); margin-block-end: var(--space-3); inline-size: fit-content;
                   max-inline-size: 100%; }
.tabs--rail .tab { font-size: var(--fs-sm); min-block-size: 32px; padding: 0 var(--space-3);
                   border-radius: var(--r-sm); border: 0; }
.tabs--rail .tab::after { display: none; }
.tabs--rail .tab[aria-selected="true"] { background: var(--surface); color: var(--text);
                                         box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.report__tabsbar { margin-block-end: var(--space-4); }
.menu__item.report__jump { display: none; }
@media (max-width: 1179px) { .menu__item.report__jump { display: flex; } }
@media (max-width: 1179px) {
  .split--report > .split__main { scroll-margin-block-start: calc(var(--topbar-live, var(--topbar-h)) + var(--player-h, 0px)); }
  /* The AI panel on a phone or tablet: a bottom drawer (antd Drawer,
     placement bottom) over the report, with the player still in view above
     it, rather than a card at the end of a long page. */
  .split--report .ai-panel--js:not([hidden]) {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: calc(var(--z-mobnav) + 5);
    max-block-size: min(62vh, 560px); max-block-size: min(62dvh, 560px);
    overflow-y: auto; overscroll-behavior: contain;
    border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-3, 0 -8px 24px rgba(0,0,0,.35));
    margin: 0; }
  .split--report .ai-panel--js .ai-log { max-block-size: 30vh; max-block-size: 30dvh; }
}

/* Print: the report as a document. No top bar, rail, sheets or tab strip;
   every pane at its full length and every panel of the report shown, since
   a printed page cannot switch tabs. */
@media print {
  .side, .topbar, .mobnav, .report__rail, .tabs, .toasts, dialog, .skip,
  .ai-panel, .ai-tools, [data-live-busy], .page-status, .btn { display: none !important; }
  .split--report { display: block !important; }
  .split--report > .split__main { position: static !important; max-block-size: none !important;
                                  overflow: visible !important; }
  .split--report .panel[hidden] { display: block !important; }
  .split--report .panel { break-inside: auto; margin-block-end: var(--space-6); }
  body { background: #fff !important; color: #000 !important; }
  .card { break-inside: avoid; border-color: #ccc !important; background: #fff !important; }
  a { color: inherit; text-decoration: none; }
}
.tabs--rail { margin-block-start: 0; }
/* The chapter, highlight and speaker lists run at their full length and
   scroll with the page, under the sticky player: a list with a scroll box
   of its own took the wheel from the page. clip, not hidden, so no scroll
   container is made. */
.rail-panel { overflow-x: clip; padding-inline-end: var(--space-2); }

/* The chapters: antd's List — rows split by a hairline (colorSplit), a hover
   tint, and the playing one selected as antd's Menu marks it: a primary tint
   and a bar on the reading edge (inline-start: the right, in RTL). The time
   is a small Tag. */
.chapters { list-style: none; margin: 0; padding: 0;
            display: flex; flex-direction: column;
            border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface);
            overflow: hidden; }
.chapter { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
           gap: var(--space-3); align-items: start;
           padding: var(--space-3) var(--space-4);
           transition: background-color var(--dur-2, .2s) var(--ease, ease); }
.chapter + .chapter { border-block-start: 1px solid var(--line-soft); }
.chapter[data-seek] { cursor: pointer; }
.chapter[data-seek]:hover { background: var(--surface-2); }
.chapter[data-seek]:focus-visible { background: var(--surface-2); }
.chapter.is-current { background: var(--primary-bg); }
.chapter.is-current .chapter__title { color: var(--primary-text, var(--primary)); }
.chapter--loose { opacity: .72; }
.chapter__time { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); line-height: 1.4;
                 color: var(--text-2); padding: 1px var(--space-2); border-radius: var(--r-xs);
                 border: 1px solid var(--line-soft); background: var(--surface-2); white-space: nowrap; }
.chapter.is-current .chapter__time { border-color: color-mix(in srgb, var(--primary) 40%, var(--line-soft));
                                     color: var(--primary-text, var(--primary)); background: var(--surface); }
.chapter__text { display: flex; flex-direction: column; gap: var(--space-1); min-inline-size: 0; }
.chapter__title { font-weight: var(--fw-medium); line-height: var(--lh-tight); }
.chapter__detail { color: var(--text-2); font-size: var(--fs-xs); line-height: var(--lh-body);
                   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                   overflow: hidden; }

.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
         border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface);
         overflow: hidden; }
.mark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3);
        padding: var(--space-3) var(--space-4); }
.mark + .mark { border-block-start: 1px solid var(--line-soft); }
.mark[data-seek] { cursor: pointer; }
.mark[data-seek]:hover, .mark[data-seek]:focus-visible { background: var(--surface-2); }
.mark__kind { font-size: var(--fs-xs); color: var(--text-2);
              border: 1px solid var(--line-soft); border-radius: var(--r-xs);
              padding: 1px var(--space-2); block-size: fit-content; white-space: nowrap; }
.mark--decision .mark__kind { border-color: var(--accent); color: var(--accent-text); }
.mark__body { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.mark__meta { color: var(--text-2); font-size: var(--fs-xs); }

.speakers { list-style: none; margin: 0; padding: 0;
            display: flex; flex-direction: column; gap: var(--space-3); }
.speaker { display: flex; flex-direction: column; gap: 4px; }
.speaker__head { display: flex; justify-content: space-between; gap: var(--space-2); }

/* seek() in _recmacros.html: a timestamp that is a real <button>, in a
   chapter row, a highlight's meta line and a transcript line. It reads as
   the text it replaced; the row keeps its own hover, and the focus ring is
   the global one at the end of the file. */
.seek-btn { background: none; border: 0; padding: 0; margin: 0;
            font: inherit; color: inherit; cursor: pointer;
            font-variant-numeric: tabular-nums; border-radius: var(--r-xs); }

/* A time in running text that jumps the player. */
.stamp { font-variant-numeric: tabular-nums; font-size: var(--fs-xs);
         border: 1px solid var(--line-soft); background: var(--surface-2);
         color: var(--text-2); border-radius: var(--r-xs);
         padding: 0 var(--space-2); cursor: pointer; }
.stamp:focus-visible { color: var(--text); border-color: var(--line-strong); }

.decision__text { margin: 0; }
.topic__title { font-size: var(--fs-md); margin-block: 0 var(--space-1); }
.topic + .topic { margin-block-start: var(--space-3);
                  padding-block-start: var(--space-3);
                  border-block-start: 1px solid var(--line-soft); }

/* How much was said, minute by minute. */
.density { display: flex; align-items: flex-end; gap: 2px; block-size: 64px; }
.density__bar { flex: 1 1 0; background: var(--accent); opacity: .55;
                border-radius: var(--r-xs) var(--r-xs) 0 0; cursor: pointer;
                min-inline-size: 2px; }

.report__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0;
                color: var(--text-2); font-size: var(--fs-sm); }
.report__meta > div { display: inline-flex; align-items: center; gap: var(--space-2); }
.report__meta dt { color: var(--text-3); font-size: var(--fs-xs); }
.report__meta dt::after { content: ":"; }
.report__meta dd { margin: 0; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text); }
@media (max-width: 479px) { .report__meta dt { position: absolute; inline-size: 1px; block-size: 1px;
                                               overflow: hidden; clip-path: inset(50%); } }

/* Light / dark / auto, as one icon button: only the current choice shows. */
.themetoggle__ico { display: none; }
:root:not([data-theme-choice]) .themetoggle__ico[data-for="auto"],
:root[data-theme-choice="light"] .themetoggle__ico[data-for="light"],
:root[data-theme-choice="dark"] .themetoggle__ico[data-for="dark"],
:root[data-theme-choice="auto"] .themetoggle__ico[data-for="auto"] { display: inline-flex; }

/* A recording's Fara story: one line per step. */
.joblog { margin-block-start: var(--space-2); }
.joblog summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-xs); }
.joblog__list { list-style: none; margin: var(--space-2) 0 0; padding: 0;
                display: flex; flex-direction: column; gap: var(--space-2); }
.joblog__list li { display: flex; gap: var(--space-2); flex-wrap: wrap;
                   align-items: baseline; }

/* An inline action that reads as text: "copy a link to this moment". */
.link-btn { background: none; border: 0; padding: 0; cursor: pointer;
            color: var(--accent-text); font: inherit; font-size: var(--fs-xs); }
.rec__hit { margin-block: var(--space-2) 0; font-size: var(--fs-sm);
            display: flex; gap: var(--space-2); align-items: baseline;
            flex-wrap: wrap; }
/* A hit's time link sits above the row's stretched title link, like
   .rec__actions; otherwise the click lands on the title and the video
   opens at its start. */
.rec__hit a { position: relative; z-index: 1; }
/* Speech search lists several moments per recording. */
.rec__said { list-style: none; margin: var(--space-2) 0 0; padding: 0;
             display: grid; gap: var(--space-1); }
.rec__said .rec__hit { margin: 0; }

.search-line { display: flex; align-items: center; gap: var(--space-3); }
.transcript-search { flex: 1 1 auto; min-inline-size: 0; }
.transcript__line { min-inline-size: 0; position: relative; }
.transcript__line > .wrap-any { min-inline-size: 0; overflow-wrap: anywhere; }
/* The line being said: selected as the chapters are (primary tint, a bar on
   the reading edge — the right, in RTL: a negative inset). */
.transcript__line.is-current { background: var(--primary-bg); }

/* A transcript line is a seek target: it reads as text, behaves as a
   button, and says so on hover and focus. */
/* The sidebar item's shape: a rounded tint, and room at the reading edge
   for the current-line bar. */
.transcript__line[data-seek] { cursor: pointer; border-radius: var(--r-sm);
                               padding-inline: var(--space-3) var(--space-2);
                               /* Not out past the start: .transcript clips sideways, and
                                  the bar there would be cut off. */
                               margin-inline: 0 calc(var(--space-2) * -1); }
.transcript__line[data-seek]:focus-visible { background: var(--surface-2); }
/* The whole transcript, in the page's own scroll — see .rail-panel. */
.transcript { overflow-x: clip; }

.checklist { list-style: none; margin: 0; padding: 0;
             display: flex; flex-direction: column; gap: var(--space-3); }
.checklist__item { display: flex; align-items: center; gap: var(--space-3); }
.checklist__box { inline-size: 16px; block-size: 16px; flex: 0 0 16px;
                  border: 1.5px solid var(--line-strong); border-radius: var(--r-xs); }
.checklist__item .skeleton { margin-block-end: 0; }
.checklist--numbered .checklist__item { align-items: flex-start; }
.checklist__num { flex: 0 0 24px; block-size: 24px; display: grid; place-items: center;
                  border-radius: var(--r-full); background: var(--primary-bg);
                  color: var(--primary-text, var(--primary)); font-size: var(--fs-xs);
                  font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; margin-block-start: 1px; }

/* A horizontally scrolling row. No page renders one at the moment, but
   core.js still measures .strip__rail for the scroll fade (with .tabs), so
   the rail keeps its rule until the script stops looking for it. */
.strip__rail { display: flex; gap: var(--space-3); overflow-x: auto; overflow-y: hidden;
               scrollbar-width: none; }
.strip__rail::-webkit-scrollbar { display: none; }

/* ======================================================================
   The player: the frame, what lies over it, the strip under it
   ====================================================================== */
.player-wrap { position: relative; }
.player-wrap .player { margin: 0; }
/* A chip's label wrapping onto three lines turns a pill into a blob; in the
   player bar the row wraps instead, never the words inside a control.
   (.btn and .segmented__btn are nowrap wherever they are.) */
.player-bar .chip { white-space: nowrap; }

/* ---- the theme ----------------------------------------------------------
   The controls are ours (templates/_player_theme.html), so this block is
   only the interface between the page and the shadow root: the palette, the
   type and the one size everything inside derives from. Custom properties
   cross the shadow boundary; nothing else does. */
.player-theme {
  direction: ltr;   /* time runs one way, in every language */
  position: relative;
  display: block; inline-size: 100%; border-radius: var(--r); overflow: hidden;
  background: var(--video-bg); line-height: 0;
  /* Media Chrome's own themes scale the controls with the player's width and
     land on 10px in a 440px rail, which is neither readable nor tappable.
     One size, set here, and the theme derives the rest from it. */
  --media-base: 15px;
  /* The same family and the same digits as the rest of the platform: 0:13
     in the player should not look like a different product from ۰:۱۳ in the
     transcript beside it. */
  --media-font-family: var(--font);
  --media-primary-color: #fff;
  --media-secondary-color: rgb(0 0 0 / .6);
  --media-accent-color: var(--primary);
  --media-menu-background: color-mix(in srgb, #18181B 92%, transparent);
  --media-text-color: #fff;
  --media-scrim: var(--player-scrim);
  --media-icon-shadow: var(--player-icon-shadow);
}
.player-theme video { inline-size: 100%; block-size: auto; display: block; }
/* The controller is sized from inside the theme, where the shadow root can
   be reached; ::part() never could, because a theme marks no parts.

   Fullscreen is the one case the height above cannot serve. What goes
   fullscreen is the controller inside the shadow root, and a video taking
   its height from its width then draws itself as tall as the screen is
   wide — overflowing it, with the controls pushed past the bottom edge.
   The class is put on by the player script when the fullscreen state
   changes, because an attribute inside a shadow root cannot be selected
   from out here. */
.player-theme.is-fullscreen, .player-theme:fullscreen { border-radius: 0; }
.player-theme.is-fullscreen video, .player-theme:fullscreen video {
  /* The frame the page gives the video is a 16/9 box no taller than
     two-thirds of the window — both of which are the rail's business and
     neither of which the screen wants. Dropped together: the ratio and the
     cap each on their own would still hold the video to 66vh. */
  aspect-ratio: auto; max-block-size: none;
  inline-size: 100%; block-size: 100%; object-fit: contain;
}

/* ---- the subtitles ------------------------------------------------------
   A cue is drawn by the browser in its own system face on a hard black box,
   and ::cue is the only way in. The face is the platform's, so a Persian
   line under the video is set the same as that line in the transcript
   beside it. Only a few properties are allowed here, and the box is toned
   down rather than removed: it is what keeps the words readable over a
   bright slide. */
.player-theme video::cue {
  font-family: var(--font);
  font-size: 88%;
  line-height: 1.7;
  background: rgb(0 0 0 / .72);
  color: #fff;
  text-shadow: none;
}




/* What the player script lays over the picture: "continue from", the note
   on a slow start and the error. They are slotted into the theme's
   controller, so they inherit from it rather than from the page — its LTR,
   its line-height of 0, its control-sized type — and each says its own
   direction, face and line-height here. Physical right on purpose: the
   frame is LTR, and the corner an RTL reader starts from is the right one.
   .player-theme is positioned (above) for a theme that never upgraded,
   where these land in its plain box instead of the controller's layer. */
.player-resume {
  position: absolute; top: var(--space-3); right: var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgb(255 255 255 / .18); border-radius: var(--r-full);
  background: rgb(0 0 0 / .62); color: #fff; backdrop-filter: blur(6px);
  direction: rtl; font: 500 var(--fs-sm)/1.4 var(--font);
  cursor: pointer; pointer-events: auto;
}
.player-resume svg { inline-size: 16px; block-size: 16px; flex: none; }
/* The top of the frame: what belongs to watching this recording rather than
   to the player — skip-silence (a toggle), and «ادامه از …» when there is
   one. One row at the top right; the brand's mark keeps the left. */
.player-top { position: absolute; top: var(--space-3); right: var(--space-3);
              display: flex; flex-direction: row-reverse; gap: var(--space-2);
              pointer-events: none; }
.player-top > * { pointer-events: auto; }
.player-top .player-resume { position: static; }
.player-skip { display: inline-flex; align-items: center; gap: var(--space-2);
               padding: var(--space-1) var(--space-3); min-block-size: 32px;
               border: 1px solid rgb(255 255 255 / .18); border-radius: var(--r-full);
               background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(6px);
               direction: rtl; font: 500 var(--fs-sm)/1.4 var(--font); cursor: pointer; }
.player-skip svg { inline-size: 16px; block-size: 16px; flex: none; }
.player-skip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.player-skip:disabled { opacity: .55; cursor: default; }
@media (max-width: 479px) { .player-skip span { display: none; } }
/* Under the theme's spinner, never on it; the error takes the whole frame,
   since nothing behind it will play. */
.player-loading {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: var(--space-4) var(--space-4) 18%;
  direction: rtl; font: var(--fs-sm)/1.7 var(--font); color: #fff;
  text-align: center; pointer-events: none;
}
.player-loading__msg {
  max-inline-size: 36ch; padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm); background: rgb(0 0 0 / .72);
}
.player-loading.is-error {
  align-items: center; padding-block-end: var(--space-4);
  background: rgb(0 0 0 / .6); pointer-events: auto;
}

/* Where a stamp or a citation took the player: a moment over the picture. */
.player-sought {
  position: absolute; inset-block-start: var(--space-4); inset-inline: 0;
  display: flex; justify-content: center; padding-inline: var(--space-4);
  direction: rtl; font: var(--fs-sm)/1.5 var(--font); color: #fff;
  pointer-events: none;
}
.player-sought__msg { padding: var(--space-1) var(--space-3); border-radius: var(--r-sm);
                      background: rgb(0 0 0 / .72); font-variant-numeric: tabular-nums; }
.player-sought[hidden] { display: none; }

/* Which chapter is playing, under the player. A <button>, so the UA's
   font, colour, width and centring are undone here. */
.chapter-now { display: flex; align-items: center; gap: var(--space-2);
               inline-size: 100%; text-align: start;
               padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
               background: var(--surface); border: 1px solid var(--line-soft);
               font: inherit; font-size: var(--fs-sm); color: inherit; cursor: pointer; }
.chapter-now__label { color: var(--text-2); white-space: nowrap; }
.chapter-now__title { min-inline-size: 0; overflow: hidden;
                      text-overflow: ellipsis; white-space: nowrap; }


/* ======================================================================
   Comments
   ====================================================================== */
.comments { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0;
            list-style: none; }
.comment { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-1) var(--space-3);
           align-items: start; padding: var(--space-3); border-radius: var(--r-sm);
           background: var(--surface-2); border: 1px solid var(--line-soft); }
.comment__t { font-variant-numeric: tabular-nums; direction: ltr;
              font-size: var(--fs-xs); padding: 2px var(--space-2); border-radius: var(--r-xs);
              border: 1px solid var(--line); background: var(--surface-3); color: var(--accent-text);
              cursor: pointer; }
.comment__who { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.comment__when { font-size: var(--fs-xs); color: var(--text-3); margin-inline-start: var(--space-2);
                 font-weight: var(--fw-regular); }
.comment__body { grid-column: 2 / -1; font-size: var(--fs-md); white-space: pre-wrap;
                 overflow-wrap: anywhere; line-height: var(--lh-body); }
.comment-form { display: flex; gap: var(--space-2); align-items: flex-start; }
.comment-form input[type=text] { flex: 1 1 auto; }

/* ======================================================================
   Tags
   ====================================================================== */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
/* A tag is tinted with the brand colour, so tags read apart from the plain
   chips (people, counts) beside them. */
.chip--tag { background: color-mix(in srgb, var(--primary) 22%, var(--surface-3));
             color: var(--text); padding-inline-end: var(--space-1); }
.chip__x { display: inline-grid; place-items: center; inline-size: 18px; block-size: 18px;
           border-radius: var(--r-full); border: 0; background: none; color: inherit;
           cursor: pointer;
           padding: 0; opacity: .7; }
.chip__x:focus-visible { opacity: 1;
  background: color-mix(in srgb, var(--text) 12%, transparent); }
.chip__x svg { inline-size: 12px; block-size: 12px; }
.inline-form { display: flex; gap: var(--space-2); margin: 0; }
/* A tag on a list row is a link of its own, so it has to sit above the
   row's stretched title link or it could never be clicked. */
.rec .tags { margin-block-start: var(--space-2); }
.rec .chip--tag { position: relative; z-index: 1; text-decoration: none; }
.inline-form > input { flex: 1 1 auto; min-inline-size: 0; }

/* ======================================================================
   Audience retention curve
   ====================================================================== */
.curve { display: block; inline-size: 100%; block-size: 64px; overflow: visible; }
.curve__area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.curve__line { fill: none; stroke: var(--accent); stroke-width: 1.5;
               vector-effect: non-scaling-stroke; }
.curve-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs);
              color: var(--text-3); margin-block-start: var(--space-1); direction: ltr; }

/* ======================================================================
   Bulk selection on the recordings list
   ====================================================================== */
.rec__select { display: none; position: relative; z-index: 2; inline-size: 20px; block-size: 20px;
               flex: 0 0 20px; accent-color: var(--accent); cursor: pointer; }
.is-selecting .rec__select { display: block; }
.is-selecting .rec.is-picked { border-color: var(--accent);
                               background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.bulkbar {
  position: sticky; inset-block-start: var(--topbar-live, var(--topbar-h)); z-index: calc(var(--z-sticky) - 1);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); margin-block-end: var(--space-3); border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
/* While the bar is open it is the top row of the content: it stands where the breadcrumb row was. */
.content:has(.bulkbar:not([hidden])) .fhead { display: none; }
.bulkbar .inline-form { flex: 1 1 220px; }

/* ======================================================================
   Meetings: presence timeline
   ====================================================================== */
/* Time runs with the reading direction: in Persian the meeting starts on
   the right. Logical properties do that without a second rule set. */
.presence { display: flex; flex-direction: column; gap: var(--space-2); }
.presence__row { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: var(--space-3);
                 align-items: center; }
.presence__name { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; }
.presence__track { position: relative; block-size: 12px; border-radius: var(--r-full);
                   background: var(--surface-3); overflow: hidden; }
.presence__bar { position: absolute; inset-block: 0; border-radius: var(--r-full);
                 background: var(--accent); min-inline-size: 3px; }
.presence__bar--phone { background: var(--warn); }
.presence__bar--open { background: repeating-linear-gradient(135deg, var(--accent) 0 6px,
                       color-mix(in srgb, var(--accent) 60%, transparent) 6px 12px); }
.presence-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs);
                 color: var(--text-3); padding-inline-start: calc(30% + var(--space-3)); }
.live-dot { display: inline-block; inline-size: 8px; block-size: 8px;
           border-radius: var(--r-full);
            background: var(--danger); box-shadow: 0 0 0 0 var(--danger);
            animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ======================================================================
   Meetings: the landing list
   ====================================================================== */
/* One row per meeting, shaped like a recording row (.rec): what it was, when
   and how long, who came, and what it left behind. The title link is the
   row's action; the recordings menu and the attendance button sit beside. */
.meetlist { list-style: none; margin: 0; padding: 0; }
.meet {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-block-end: var(--space-2);
  box-shadow: var(--shadow-1); position: relative;
}
.meet__icon { flex: 0 0 auto; display: grid; place-items: center;
              inline-size: 40px; block-size: 40px; border-radius: var(--r-sm);
              background: var(--primary-bg); color: var(--primary-text); }
/* The poster frame keeps the recordings list's shape (.rec__thumb) and
   stays on the row's first line when the row wraps on a phone. */
.meet__thumb { align-self: center; }
.meet--call .meet__icon { background: var(--muted-bg); color: var(--text-2); }
.meet__audio { inline-size: 100%; max-inline-size: 420px; block-size: 36px; margin-block-start: var(--space-1); }
.meet__body { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column;
              gap: var(--space-1); }
.meet__title { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
               font-weight: var(--fw-semibold, 600); }
.meet__link { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
/* The whole box opens the meeting: the title link is stretched over the row, and whatever else is
   clickable in it (checkbox, tags, buttons, the recordings menu, matched moments) stands above it. */
.meet__link::after { content: ""; position: absolute; inset: 0; }
.meet a:not(.meet__link), .meet button, .meet summary { position: relative; z-index: 2; }
.meet__actions { z-index: 2; }
/* A larger look at the recording while the pointer is on its row (list and compact views; the cards
   already show the frame). */
.meet__peek { display: none; position: absolute; z-index: 6; inset-block-start: calc(100% + var(--space-1));
              inset-inline-start: var(--space-4); inline-size: 320px; aspect-ratio: 16 / 9;
              border-radius: var(--r); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
              background-color: var(--surface-2); background-size: cover; background-position: center;
              pointer-events: none; overflow: hidden; }
/* The contact sheet (/frames/<key>) once it has loaded: 4 x 5 frames, one shown at a time. */
.meet__peek.is-strip { background-size: 400% 500%;
                       background-position: calc(var(--col, 0) * 100% / 3) calc(var(--row, 0) * 100% / 4); }
.meet__peek__bar { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background: rgba(255,255,255,.25); }
.meet__peek__bar::after { content: ""; display: block; block-size: 100%; background: var(--accent);
                          inline-size: calc((var(--frame, 0) + 1) * 100% / 20); }
.meet__peek__time { display: none; position: absolute; inset-block-end: var(--space-2); inset-inline-end: var(--space-2);
                    padding: 1px var(--space-2); border-radius: var(--r-sm, 4px); background: rgba(0,0,0,.7); color: #fff;
                    font-size: var(--fs-xs); direction: ltr; font-variant-numeric: tabular-nums; }
.meet__peek.is-strip .meet__peek__time { display: block; }
@media (hover: hover) {
  .meetlist:not(.meetlist--cards) .meet:hover .meet__peek { display: block; }
  /* The hovered row stands above the pinned day headings, so its preview is not covered by them. */
  .meetlist:not(.meetlist--cards) .meet:hover { z-index: calc(var(--z-sticky) - 2); }
}
.meet__meta, .meet__tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
                           align-items: center; }
.meet__meta > span { display: inline-flex; align-items: center; gap: var(--space-1); }
.meet__actions { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-2);
                 position: relative; }
.meet__more > summary { list-style: none; }
.meet__more > summary::-webkit-details-marker { display: none; }
.meet__menu {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + var(--space-1));
  z-index: 5; min-inline-size: 260px; max-inline-size: 80vw;
  margin: 0; padding: var(--space-1); list-style: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2);
}
.meet__menu a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
                color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
@media (max-width: 767px) {
  .meet { flex-wrap: wrap; }
  .meet__actions { inline-size: 100%; justify-content: flex-end; }
}
/* A meeting elsewhere, that the bot went to. Same row; its square is the
   bot rather than the calendar, and its platform is a badge by the title. */
.meet__platform { font-weight: var(--fw-regular); }
/* One that ended with nothing to watch (failed, refused, cancelled) is
   history, not something to open: it steps back, and says why in a line
   of its own under the facts. */
.meet--quiet { background: var(--surface-2); box-shadow: none; }
.meet--quiet .meet__link { color: var(--text-2); }
.meet--quiet .meet__icon { background: var(--muted-bg); color: var(--text-3); }
/* ---- The meetings list's three views (the switch in the top bar) -------- */
.viewswitch .segmented__btn { gap: var(--space-1); }
.viewswitch .icon { inline-size: 16px; block-size: 16px; }
/* Icons only where the top bar is tight; the name stays as the tooltip. */
@media (max-width: 1279px) { .viewswitch__label { display: none; } }
.viewswitch .segmented__btn { padding-inline: var(--space-2); }

/* «فشرده»: one line per meeting, like a table's rows. The title takes the room it needs (never squeezed
   to nothing by the facts beside it), the date, length and head-count follow, and the whole row is the
   link: the title's link is stretched over it, the select box and the buttons sit above that. Poster,
   chips, summary, search hits and statuses are for the other views. */
.meetlist--compact { background: var(--surface); border: 1px solid var(--line);
                     border-radius: var(--r); overflow: hidden; }
.meetlist--compact .meet { position: relative; margin: 0; border: 0; border-radius: 0; box-shadow: none;
                           padding: var(--space-2) var(--space-4); gap: var(--space-3); flex-wrap: nowrap; }
.meetlist--compact .meet + .meet { border-block-start: 1px solid var(--line); }
.meetlist--compact .meet:hover { background: var(--muted-bg); }
.meetlist--compact .meet__thumb, .meetlist--compact .meet__icon, .meetlist--compact .meet__reason,
.meetlist--compact .meet__room, .meetlist--compact .meet__summary, .meetlist--compact .meet__tags,
.meetlist--compact .meet__platform, .meetlist--compact .rec__hit, .meetlist--compact .rec__said,
.meetlist--compact .meet__meta .badge, .meetlist--compact .meet__more { display: none; }
.meetlist--compact .meet__body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: row;
                                 align-items: center; gap: var(--space-4); }
.meetlist--compact .meet__title { flex: 1 1 14em; min-inline-size: 8em; flex-wrap: nowrap;
                                  font-weight: var(--fw-medium); }
.meetlist--compact .meet__link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meetlist--compact .meet__link::after { content: ""; position: absolute; inset: 0; }
.meetlist--compact .meet__meta { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; gap: var(--space-3); }
.meetlist--compact .meet__meta > span:nth-child(n+5) { display: none; }
.meetlist--compact .rec__select, .meetlist--compact .meet__actions { position: relative; z-index: 2; }
.meetlist--compact .meet__actions { flex: 0 0 auto; inline-size: auto; }
.meetlist--compact .meet__actions .btn span { display: none; }
@media (max-width: 1023px) { .meetlist--compact .meet__meta > span:nth-child(n+4) { display: none; } }
@media (max-width: 767px) {
  .meetlist--compact .meet { padding-inline: var(--space-3); }
  .meetlist--compact .meet__body { gap: var(--space-2); }
  .meetlist--compact .meet__title { flex-basis: 8em; }
  .meetlist--compact .meet__meta > span:nth-child(n+3) { display: none; }
  .meetlist--compact .meet__actions .btn:not(:has(svg)) { display: none; }
}

/* «کارت»: every item a card, the row laid out upright. Four across on a wide screen, two by two on a
   tablet, one under another on a phone. */
.cardgrid .meetlist--cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3);
                             align-items: start; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1179px) { .cardgrid .meetlist--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cardgrid .meetlist--cards { grid-template-columns: minmax(0, 1fr); } }
.meetlist--cards .meet { flex-direction: column; align-items: stretch; flex-wrap: nowrap;
                         gap: var(--space-2); margin: 0; padding: var(--space-3); }
.meetlist--cards .meet__thumb { inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; }
.meetlist--cards .meet__icon { display: none; }
.meetlist--cards .meet__actions { inline-size: 100%; justify-content: flex-end; }
.meetlist--cards .meet__meta > span:nth-child(n+5) { display: none; }

.meet__reason { display: flex; align-items: flex-start; gap: var(--space-1); margin: 0; }
.meet__reason > .icon { flex: 0 0 auto; margin-block-start: 3px; }

/* ======================================================================
   Attached files
   ====================================================================== */
.att-list, .att-uploads { list-style: none; margin: 0; padding: 0;
                          display: flex; flex-direction: column; gap: var(--space-1); }
.att-list:empty { display: none; }
.att {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-2); border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--surface-2);
}
.att__icon { flex: 0 0 auto; color: var(--primary-text); display: grid; place-items: center; }
.att__body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; }
.att__name { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.att__meta { overflow-wrap: anywhere; }
.att__delete { margin: 0; }
.att--up .meter { margin-block-start: var(--space-1); }
.att--failed { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.att--failed .att__meta { color: var(--danger-text); }
/* The drop area: a dashed outline that lights up while a file is held over it. */
.dropzone {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
  margin-block-start: var(--space-3); padding: var(--space-4);
  border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.dropzone.is-over { border-color: var(--primary); background: var(--primary-bg); }
.dropzone__hint { flex: 1 1 200px; }
.att-uploads:not(:empty) { margin-block-start: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ======================================================================
   Rooms and templates
   ====================================================================== */
.room-url { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3);
            border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.room-url code { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; direction: ltr;
                 text-align: start; font-size: var(--fs-sm); }
.checks { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--fs-sm);
         padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
         background: var(--surface-2); border: 1px solid var(--line-soft); cursor: pointer; }
.check input { inline-size: 16px; block-size: 16px; accent-color: var(--accent); flex: 0 0 16px; }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* Audit log rows are dense by nature. */
.audit-action { white-space: nowrap; }

/* ======================================================================
   Embedded player: the frame is the page
   ====================================================================== */
.embed { min-block-size: 100vh; display: grid; place-items: center; background: var(--video-bg); }
.embed .player-wrap { inline-size: 100%; }
.embed .player { border-radius: 0; max-block-size: 100vh; }
.embed .empty { color: var(--text); }

/* The top bar is sticky, so anything the browser scrolls into view — an
   #anchor, a focused field, a jump from a comment timestamp — would land
   underneath it. Reserve its height (it can wrap to two rows on a phone). */
html { scroll-padding-block-start: calc(var(--topbar-h) + var(--space-6, 24px)); }
@media (max-width: 767px) {
  html { scroll-padding-block-start: calc(var(--topbar-h) * 2 + var(--space-4)); }
}

/* An icon inside a heading is text-sized. icon() without an explicit size
   emits an unsized SVG, which otherwise grows to fill the heading's width. */
h1 svg, h2 svg, h3 svg, .card__title svg {
  inline-size: var(--icon); block-size: var(--icon); flex: 0 0 auto; }

/* icon(name, size) in base.html: an explicit size beats every contextual
   svg rule (.btn svg, .empty__icon svg, the heading rule above...). It used
   to be an inline style; svg.icon.icon--N is (0,2,1), above all of those and
   level with .nav-list--sub .nav svg, which is why these come after it.
   16, 20 and 24 have no caller yet. */
svg.icon.icon--12 { inline-size: 12px; block-size: 12px; }
svg.icon.icon--14 { inline-size: 14px; block-size: 14px; }
svg.icon.icon--16 { inline-size: 16px; block-size: 16px; }
svg.icon.icon--18 { inline-size: 18px; block-size: 18px; }
svg.icon.icon--20 { inline-size: 20px; block-size: 20px; }
svg.icon.icon--22 { inline-size: 22px; block-size: 22px; }
svg.icon.icon--24 { inline-size: 24px; block-size: 24px; }
svg.icon.icon--28 { inline-size: 28px; block-size: 28px; }
/* A fixed prefix joined to an input, like the meeting address. The pair is
   a URL, so it reads left to right; on a phone the prefix sits above. */
.inline-form--prefix { flex-wrap: wrap; align-items: center; }
.inline-form--prefix > bdi { white-space: nowrap; }
.inline-form--prefix > input { flex: 1 1 160px; }

/* Grouped options: no browser-default frame around the group. */
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-inline-size: 0; }
fieldset.field > legend { padding: 0; margin-block-end: var(--space-2); }

/* =========================================================================
   HOVER — every hover rule in the product lives in this one block, so a
   touch screen never gets a state stuck after a tap.

   It comes after the components on purpose, and that makes it outrank any
   state rule of the same weight. Where a state has to win over hover, the
   hover selector steps aside with :not() rather than relying on order:
     - a pressed, disabled or aria-disabled button keeps its own colours;
     - the current page in the menu keeps its tint;
     - a focused field keeps its focus border.
   Everywhere else hover and the state agree, or hover is meant to win (a
   pressed filter chip still shows the hover border).
   ========================================================================= */
@media (hover: hover) and (pointer: fine) {
  .meet__link:hover, .att__name:hover { color: var(--primary-text); text-decoration: underline; }
  .meet__menu a:hover { background: var(--surface-3); }
  .btn:not(:active, [disabled], [aria-disabled="true"]):hover {
    background: var(--primary-hover); border-color: var(--primary-hover);
  }
  .btn--ghost:not([disabled], [aria-disabled="true"]):hover,
  .btn--quiet:not([disabled], [aria-disabled="true"]):hover {
    background: var(--surface); border-color: var(--primary-text); color: var(--primary-text);
  }
  .btn--danger:not([disabled], [aria-disabled="true"]):hover {
    background: var(--danger-strong-hover);
    border-color: var(--danger-strong-hover);
  }
  .btn--danger-outline:not([disabled], [aria-disabled="true"]):hover {
    background: var(--danger-bg); border-color: var(--danger-text); color: var(--danger-text);
  }
  input:not(:focus):hover, select:not(:focus):hover, textarea:not(:focus):hover {
    border-color: var(--primary-hover);
  }

  .nav:not([aria-current="page"]):hover { background: var(--muted-bg); color: var(--text); }
  .mobnav__item:hover { color: var(--text-2); }
  a.whoami:hover { background: var(--surface-2); }
  .tab:hover { color: var(--primary-text); }
  .segmented__btn:hover { color: var(--text); }
  .chip--toggle:hover { border-color: var(--line-strong); }
  .chip__x:hover { opacity: 1; background: color-mix(in srgb, var(--text) 12%, transparent); }
  .link-btn:hover { text-decoration: underline; }

  .card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
  .rec:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
               background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
  /* The row's own fill shows only where the cells do not cover it: the
     padding round a phone's card-shaped row. */
  table.grid tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
  .grid tbody tr:hover td { background: var(--surface-2); }

  .chapter[data-seek]:hover, .mark[data-seek]:hover,
  .transcript__line[data-seek]:hover { background: var(--surface-2); }
  .stamp:hover { color: var(--text); border-color: var(--line-strong); }
  .seek-btn:hover { color: var(--text); text-decoration: underline; }
  .comment__t:hover { border-color: var(--accent); }
  .density__bar:hover { opacity: 1; }
  .player-resume:hover { background: rgb(0 0 0 / .78); }

  /* The corner close exists only where the sheet is a modal. */
  @media (min-width: 768px) {
    .sheet__x:hover { background: var(--muted-bg); color: var(--text); }
  }
}


/* =========================================================================
   DESKTOP VIEW

   Everything above is written phone-first, so a few components carry a
   phone shape by default: the sheet is a drawer pinned to the bottom edge
   with a grip to pull it, the message rises from above the phone nav, and
   the row menu is a drawer too. Those shapes are wrong on a screen with a
   pointer — a drawer holding six lines of text wastes the whole width, and
   a menu belongs beside the button that opened it. The rules below re-form
   them from 768px up, in antd's Modal/Dropdown/message geometry, without
   changing anything the phone sees.
   ========================================================================= */
@media (min-width: 768px) {

  /* ---- Modal: the sheet, centred ---------------------------------------- */
  .sheet {
    margin: auto; inline-size: min(560px, calc(100% - var(--space-10)));
    position: relative; box-shadow: var(--shadow-3);
  }
  /* Only when open: an author rule that sets `display` beats the UA
     stylesheet's `dialog:not([open]) { display: none }`, and every closed
     sheet on the page would be drawn into the layout. */
  .sheet[open] {
    display: flex; flex-direction: column;
    animation: modal-in var(--dur-3) var(--ease-out) both;
  }
  .sheet__grip { display: none; }              /* nothing to pull with a mouse */
  .sheet__body {
    padding: var(--space-5); padding-block-end: var(--space-5);
    overflow: auto; overscroll-behavior: contain;
    max-block-size: calc(100vh - var(--space-10));
  }
  /* antd puts the footer's buttons at the end of the row; a full-width
     button is the phone's shape for the same control. */
  .sheet [data-sheet-close].btn--block {
    inline-size: auto; min-inline-size: 88px; margin-inline-start: auto;
  }
  /* The modal's footer, antd's shape: one row under a hairline, the
     destructive action at the start and the way out at the end. The sheet
     keeps the height cap; the body inside it gives way. */
  .sheet[open]:has(> .sheet__foot) { max-block-size: calc(100vh - var(--space-10)); }
  .sheet:has(> .sheet__foot) > .sheet__body { max-block-size: none; }
  .sheet__foot {
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
  }
  .sheet__foot > * { flex: 0 0 auto; }
  .sheet__foot .btn { inline-size: auto; min-inline-size: 96px; }

  /* ---- Dropdown: the row menu, beside its button ------------------------ */
  .sheet--menu {
    position: fixed; margin: 0; inline-size: auto;
    min-inline-size: 240px; max-inline-size: 320px;
    border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  }
  .sheet--menu[open] { animation: menu-in var(--dur-2) var(--ease-out) both; }
  .sheet--menu::backdrop { background: none; backdrop-filter: none; }
  .sheet--menu .sheet__body { padding: var(--space-2); }
  .sheet--menu .sheet__x { display: none; }
  /* Clicking away closes a dropdown, so the button saying so is noise. */
  .sheet--menu [data-sheet-close].btn--block { display: none; }

  @keyframes modal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
  @keyframes menu-in  { from { opacity: 0; transform: translateY(-4px); } }

  /* ---- message: from the top, centred ---------------------------------- */
  #toasts {
    inset-block: calc(var(--topbar-h) + var(--space-3)) auto;
    inset-inline: 0; align-items: center;
  }
  .toast { animation: toast-down var(--dur-3) var(--ease-out) both; }
  .toast.out { animation: toast-up var(--dur-2) var(--ease) both; }
  @keyframes toast-down { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes toast-up   { to   { opacity: 0; transform: translateY(-8px); } }
}

/* ---- focus, antd style --------------------------------------------------
   Last in the file, and it has to stay last: at one class's weight it wins
   only by order over .btn, .nav, .chip and every other one-class component
   that sets a shadow or a corner. A component with more weight (.btn[disabled],
   a.whoami, .segmented__btn[aria-pressed]) keeps its own values. */
:where(a, button, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--ring);
  border-radius: var(--r-xs);
}

/* In Windows high-contrast mode box-shadows are not drawn, so the ring above
   would leave a focused control with no mark at all. The system colour
   outline comes back there, and only there. */
@media (forced-colors: active) {
  :where(a, button, [tabindex]):focus-visible,
  input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid Highlight; outline-offset: 2px;
  }
}

/* =========================================================================
   NEW — the «دریافت فایل» sheet (templates/_sheets.html#sheet-download,
   web/downloads.py). Kept together at the end so it can be read, and taken
   out, in one piece. Nothing here sets a box-shadow or a corner on a
   focusable element, so the focus ring above still wins by weight.

   One row per file: its icon in a tinted tile, what it is and how big, and
   the button at the far end. Rows are grouped (the recording, its minutes
   and text, the session's files) under small quiet headings. On a phone
   the sheet is the bottom drawer with «بستن» pinned under it; from 768px
   it is the centred modal, and the footer's one button sits at the end.
   ========================================================================= */
.dl-group {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-3);
}
.dl-group:first-of-type { margin-block-start: 0; }
.dl-group__count { color: var(--text-3); font-weight: var(--fw-regular); }
/* The empty state sits in a group, not a page: a line, not a poster. */
.sheet--downloads .empty--inline {
  padding: var(--space-4); border: 1px dashed var(--line-soft); border-radius: var(--r-sm);
}
.sheet--downloads .empty__title { font-size: var(--fs-md); margin-block-end: var(--space-1); }
.dl-list { list-style: none; margin: 0; padding: 0;
           display: flex; flex-direction: column; gap: var(--space-2); }
.dl {
  position: relative;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3); border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--surface-2);
}
.dl__icon {
  flex: 0 0 auto; inline-size: 40px; block-size: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--primary-text); background: var(--primary-bg);
}
.dl__body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; gap: 2px; }
.dl__title { color: var(--text); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.dl__meta { color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dl__why { display: block; margin-block-start: var(--space-1); }
.dl__why--admin { color: var(--danger-text); }
.dl__why--wait { color: var(--warn-text); }
/* The reason a file failed, for an admin: machine text, read left to right. */
.dl__note {
  color: var(--text-3); font-size: var(--fs-xs); direction: ltr; text-align: end;
  overflow-wrap: anywhere;
}
.dl__get { flex: 0 0 auto; }
/* The whole row is the download's target, not just the button at its end:
   on a phone the row is what a thumb lands on. The button stays the one
   focusable element, so the keyboard sees one stop per file. */
.dl__get::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dl:has(.dl__get) { cursor: pointer; }
.dl__formats { flex: 0 0 auto; display: flex; gap: var(--space-1); }
.dl__formats .btn { padding-inline: var(--space-2); min-inline-size: 44px; }
/* Not there yet (or not at all): the row stays, dimmed, and says why. */
.dl--off { background: none; border-style: dashed; }
.dl--off .dl__icon { color: var(--text-3); background: var(--muted-bg); }
.dl--bad .dl__icon { color: var(--danger); background: var(--danger-bg); }
.dl__state {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap;
}
.dl--bad .dl__state { color: var(--danger-text); }
/* A phone's row is narrow: the format buttons go under the text rather
   than squeezing the title into one word a line. */
@media ((max-width: 479px)) {
  .dl--multi { flex-wrap: wrap; }
  .dl--multi .dl__body { flex-basis: calc(100% - 40px - var(--space-3)); }
  .dl--multi .dl__formats { inline-size: 100%; padding-inline-start: calc(40px + var(--space-3)); }
  .dl--multi .dl__formats .btn { flex: 1 1 0; }
  .dl__get span { display: none; }
  .dl__get { padding-inline: var(--space-2); }
}
@media (min-width: 768px) {
  .sheet--downloads { inline-size: min(600px, calc(100% - var(--space-10))); }
  .sheet__foot--end { justify-content: flex-end; }
}
@media (hover: hover) and (pointer: fine) {
  .dl:has(.dl__get):hover { border-color: var(--line-strong); background: var(--surface-3); }
}

/* =========================================================================
   NEW — the search box in the top bar (base.html's gsearch(),
   static/js/search.js, web/search.py). One box on every signed-in page:
   quick results under it as you type, the commands after «>», and on a
   phone a full-screen sheet behind a search icon. Kept together here so it
   can be read, and taken out, in one piece.

   Without the script (.gsearch--js is the script's mark) the box is the
   plain form at every width, which still searches; the icon and the sheet
   exist only once something can open them.
   ========================================================================= */
.gsearch {
  position: relative; z-index: 2; display: flex; align-items: center;
  flex: 1 1 260px; min-inline-size: 0; max-inline-size: 520px;
}
.gsearch__open, .gsearch__back { display: none; }
.gsearch__form {
  position: relative; display: flex; align-items: center; gap: var(--space-2);
  inline-size: 100%; min-inline-size: 0;
}
.gsearch__icon {
  position: absolute; inset-inline-start: var(--space-3); display: flex;
  color: var(--text-3); pointer-events: none;
}
.gsearch__form.is-busy .gsearch__icon { animation: pulse 1s ease-in-out infinite; }
/* Qualified by type: input[type=search] in FORMS sets the same properties
   at one class less. */
.gsearch__input[type=search] {
  inline-size: 100%; min-inline-size: 0;
  padding-block: var(--space-2);
  padding-inline-start: var(--space-8); padding-inline-end: var(--space-8);
  text-overflow: ellipsis; background: var(--surface);
}
/* The browser's own ×: the box has its own, which also tells the list. */
.gsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.gsearch__clear {
  position: absolute; inset-inline-end: var(--space-1);
  inline-size: 28px; block-size: 28px; padding: 0;
  display: grid; place-items: center; border: 0; background: none;
  color: var(--text-3); cursor: pointer; border-radius: var(--r-xs);
}
.gsearch__back svg { transform: scaleX(-1); }     /* «back» points right in RTL */

/* ---- the dropdown ---------------------------------------------------- */
/* As wide as the box, never narrower than a result needs; it grows toward
   the end of the row (the page's actions), where there is room. Only the
   list scrolls, and a wheel over it stays in it. */
.gsearch__panel {
  position: absolute; inset-block-start: calc(100% + var(--space-2)); inset-inline-start: 0;
  inline-size: max(100%, 420px); max-inline-size: calc(100vw - 2 * var(--space-4));
  max-block-size: min(70vh, 560px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-3);
  /* The brand face, like the rest: said again because this is the list the
     owner reads most closely, and a system font in it would show. */
  font-family: var(--font);
  animation: menu-in var(--dur-2) var(--ease-out) both;
}
.gsearch__list {
  flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-2);
}
.gsearch__group + .gsearch__group {
  border-block-start: 1px solid var(--line-soft);
  margin-block-start: var(--space-1); padding-block-start: var(--space-1);
}
.gsearch__head {
  padding: var(--space-2) var(--space-3) var(--space-1);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-3);
}
.gsearch__note { padding: var(--space-3); font-size: var(--fs-sm); color: var(--text-2); }
.gsearch__note--busy { animation: pulse 1.2s ease-in-out infinite; }
.gsearch__note--error { color: var(--danger-text); }
.gsearch__note--muted { color: var(--text-3); font-size: var(--fs-xs); padding-block: var(--space-1); }

/* One option: its icon in a tile, the title with what matched marked, a
   quiet line under it, and for a summary or a spoken line the words
   around the match. The pointed-at option (keyboard or mouse — they are
   the same one) is tinted, with a bar at its start edge. */
.gsr {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
  color: var(--text); cursor: pointer;
}
.gsr[aria-selected="true"] { background: var(--primary-bg); }
.gsr__icon {
  flex: 0 0 32px; block-size: 32px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2);
}
.gsr__icon svg { inline-size: 16px; block-size: 16px; }
.gsr[aria-selected="true"] .gsr__icon { color: var(--primary-text); background: var(--surface); }
.gsr__body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; gap: 1px; }
.gsr__title {
  font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: var(--lh-tight);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-block: 2px 0;
}
.gsr__meta {
  font-size: var(--fs-xs); color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gsr__snip, .gsr--speech .gsr__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; white-space: normal; overflow-wrap: anywhere;
}
.gsr__snip { font-size: var(--fs-sm); color: var(--text-2); }
.gsr--speech .gsr__title { font-weight: var(--fw-regular); }
.gsr--all .gsr__title { color: var(--primary-text); }
.gsearch mark {
  /* No padding, margin or border: any of them stops the browser joining
     the letters either side of the mark, and a Persian word breaks apart. */
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  color: inherit; border-radius: var(--r-xs);
}

/* The keys, under the list: what Enter, the arrows and Esc do here. */
.gsearch__keys {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-block-start: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: var(--fs-xs); color: var(--text-3);
}
.gsearch kbd {
  display: inline-block; min-inline-size: 20px; padding: 0 5px; margin-inline-end: 2px;
  /* The keys in the system face: a right-to-left face may draw «>» turned round, as a
     right-to-left face may, and a key cap should look like the key. */
  font: inherit; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-xs); line-height: 18px; text-align: center;
  direction: ltr; unicode-bidi: isolate;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--line); border-block-end-width: 2px; border-radius: var(--r-xs);
}

@media (pointer: coarse) {
  .gsearch__clear { inline-size: var(--touch); block-size: var(--touch); inset-inline-end: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .gsearch__clear:hover { color: var(--text); background: var(--surface-3); }
}

/* ---- a phone: an icon, and the box as a full-screen sheet ------------- */
@media (max-width: 767px) {
  .gsearch--js { flex: 0 0 auto; }
  .gsearch--js .gsearch__open { display: inline-flex; }
  .gsearch--js:not(.is-sheet) .gsearch__form,
  .gsearch--js:not(.is-sheet) .gsearch__panel { display: none; }

  .gsearch.is-sheet {
    position: fixed; inset: 0; z-index: var(--z-dialog);
    max-inline-size: none; flex-direction: column; align-items: stretch;
    gap: var(--space-2); background: var(--bg);
    padding: var(--space-3) max(var(--space-4), var(--safe-r)) 0 max(var(--space-4), var(--safe-l));
    padding-block-start: max(var(--space-3), var(--safe-t));
  }
  .gsearch.is-sheet .gsearch__open, .gsearch.is-sheet .gsearch__icon { display: none; }
  .gsearch.is-sheet .gsearch__back { display: inline-flex; flex: 0 0 auto; }
  .gsearch.is-sheet .gsearch__input[type=search] { padding-inline-start: var(--space-3); }
  .gsearch.is-sheet .gsearch__panel {
    position: static; flex: 1 1 auto; min-block-size: 0;
    inline-size: auto; max-inline-size: none; max-block-size: none;
    margin-inline: calc(-1 * var(--space-4));
    border: 0; border-block-start: 1px solid var(--line-soft); border-radius: 0;
    box-shadow: none; background: var(--bg); animation: none;
  }
  .gsearch.is-sheet .gsearch__list {
    padding-inline: var(--space-2);
    padding-block-end: calc(var(--space-6) + var(--safe-b));
  }
  /* A phone has no arrow keys or Esc to explain. */
  .gsearch.is-sheet .gsearch__keys { display: none; }
}
/* While the sheet is open the page under it stays put. The top bar's blur
   would make it the sheet's frame (a backdrop-filter holds position:fixed
   children), and its layer would leave the phone's nav above the sheet. */
html.gsearch-lock, html.gsearch-lock body { overflow: hidden; }
html.gsearch-lock .topbar { backdrop-filter: none; z-index: var(--z-dialog); }

/* =========================================================================
   NEW — the meetings list's filter bar (templates/_meetlist.html,
   routes/meetings.py, static/js/meetings.js). The recordings list's parts
   — .segmented for the either-or choices, .chip--toggle for the switches —
   in two rows: what is listed (kind, state, when), then what it must have
   and in which order. On a phone each row is one line that scrolls
   sideways, so the list itself starts where it always did.
   ========================================================================= */
.meetfilters {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-block-end: var(--space-4);
}
.meetfilters__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  min-inline-size: 0;
}
.meetfilters .segmented__btn { white-space: nowrap; }
.meetfilters .chip { white-space: nowrap; }
#meetings-body[aria-busy="true"] .meetlist { opacity: .6; transition: opacity var(--dur-2) var(--ease); }
@media (max-width: 767px) {
  .meetfilters__row {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* the room the focus ring needs, inside the scroller */
    padding-block: 3px; margin-block: -3px;
    padding-inline: 2px; margin-inline: -2px;
    overscroll-behavior-inline: contain;
  }
  .meetfilters__row::-webkit-scrollbar { display: none; }
  .meetfilters__row > * { flex: 0 0 auto; }
  .meetfilters__row .spacer { display: none; }
}

/* =========================================================================
   P1 FIXES — contrast, one live colour, share states, touch targets.
   (Markup: status_badge() in base.html, links.html, _sheets.html,
   error.html. The tokens are in the two TOKENS blocks.)
   Kept together at the end so each fix reads as one change; they override
   rules above by order, at those rules' own weight. Nothing here sets a
   box-shadow or a border-radius on a focusable element, so the focus ring
   rule above still wins where it has to.
   ========================================================================= */

/* ---- colour as text: the --*-text tokens -------------------------------
   Every place a status or accent colour is the colour of words uses the
   --*-text token, in the rule that draws it (measured in Chromium on each
   page's real background, both themes: the teal link was 3.3:1 on light, the
   pressed filter chip 3.5:1, the stale banner's amber 1.8:1). A new rule
   that colours words does the same; tests/t_css_audit.py holds the line. */

/* ---- a live row --------------------------------------------------------
   The red border said "something is wrong" about a meeting that is simply
   on. The badge (green, pulsing) says it is live; the row keeps only a
   faint green edge, so a live row can still be picked out of a long list.
   A bot still in a lobby is meet--live too (a bot is out there) but its
   badge is amber, so the edge follows the badge, not the class. */
.meet--live { border-color: var(--line); }
.meet--live:has(.badge--live) { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* ---- share links: the inactive ones, folded away ------------------------ */
.sharedead { margin-block-start: var(--space-4); }
.sharedead__head {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); cursor: pointer;
  font-weight: var(--fw-medium); min-block-size: var(--touch);
}
#sheet-share .sharedead__head { padding-inline: 0; }
.sharedead[open] > .sharedead__head { border-block-end: 1px solid var(--line-soft); }
.sharedead .share-item, .sharedead tbody tr { opacity: .85; }
.sharelinks__actions { gap: var(--space-2); flex-wrap: nowrap; justify-content: flex-end; }
.sharelinks__actions form { margin: 0; }
.share-item__top .badge[data-status] { order: -1; }

/* ---- touch targets ------------------------------------------------------
   Under a coarse pointer every small control is at least 44 × 44 where a
   finger lands, without growing what it looks like: an invisible ::after,
   centred on the control and never smaller than it, takes the tap. The
   download row's button is left alone — its ::after is already the whole
   row (.dl__get). A desktop pointer sees none of this. */
@media (pointer: coarse) {
  .btn--sm:not(.dl__get), .btn--icon:not(.dl__get), .segmented__btn,
  .chip--toggle, a.chip, button.chip, .chip__x, .link-btn, .toast__close {
    position: relative;
  }
  .btn--sm:not(.dl__get)::after, .btn--icon:not(.dl__get)::after, .segmented__btn::after,
  .chip--toggle::after, a.chip::after, button.chip::after, .chip__x::after,
  .link-btn::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    inline-size: 100%; block-size: 100%;
    min-inline-size: var(--touch); min-block-size: var(--touch);
    transform: translate(-50%, -50%);
  }
  /* The filter chips are a finger's height of their own on a phone: a
     22px chip in a 44px hit area is too easy to miss by a row. */
  .chip--toggle { min-block-size: 32px; }
  /* The filter rows scroll sideways on a phone, and a scroller clips what
     sticks out of it — the hit areas above included. Room for them inside. */
  .meetfilters__row { padding-block: 8px; margin-block: -8px; }
  /* A meeting's title is the way into it and a line of text tall: the hit
     area grows, the row does not. A section heading that opens on a tap
     (a <summary>) is a full-width row of its own height instead. */
  summary.set-h3 { display: flex; align-items: center; min-block-size: var(--touch); }
}

/* =========================================================================
   STATUS + SETTINGS — /admin/status (_status.html, status.js) and
   /admin/settings (admin_settings.html, settings.js).

   Status: one verdict, what is happening now, the problems first, then
   every component as one line under its subsystem with its last 24 hours
   beside it. Healthy is one colour (--ok) everywhere on the page, so a
   green that means "fine" never has to be told apart from a teal that
   means "link". Text on a tinted background uses the --*-text tokens.
   Settings: a section per concern, each with what it is for and what it
   does untouched; «منطقهٔ حساس» outlined in red.
   ========================================================================= */
.sts-bar { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-4); }
.sts-auto { margin: 0; color: var(--text-2); }

.sts-verdict {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); margin-block-end: var(--space-4);
  /* antd Alert: one 1px border in the tone, all round, LG corners — never
     a thick stripe down one side of a rounded box. */
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.sts-verdict--ok   { background: var(--ok-bg);     border-color: color-mix(in srgb, var(--ok) 45%, var(--line-soft)); }
.sts-verdict--warn { background: var(--warn-bg);   border-color: color-mix(in srgb, var(--warn) 50%, var(--line-soft)); }
.sts-verdict--bad  { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 55%, var(--line-soft)); }
.sts-verdict__icon {
  inline-size: 40px; block-size: 40px; flex: 0 0 40px; border-radius: var(--r-full);
  display: grid; place-items: center;
}
.sts-verdict__icon .icon { inline-size: 22px; block-size: 22px; }
.sts-verdict--ok .sts-verdict__icon   { background: var(--ok);     color: rgba(0, 0, 0, .85); }
.sts-verdict--warn .sts-verdict__icon { background: var(--warn);   color: rgba(0, 0, 0, .85); }
.sts-verdict--bad .sts-verdict__icon  { background: var(--danger); color: #fff; }
.sts-verdict__body { min-inline-size: 0; flex: 1 1 auto; }
.sts-verdict__title { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
.sts-verdict--ok .sts-verdict__title   { color: var(--ok-text, var(--text)); }
.sts-verdict--warn .sts-verdict__title { color: var(--warn-text, var(--text)); }
.sts-verdict--bad .sts-verdict__title  { color: var(--danger-text, var(--text)); }
.sts-verdict__meta { margin: var(--space-1) 0 0; color: var(--text-2); font-size: var(--fs-sm); }

.sts-usage {
  display: grid; gap: var(--space-2); margin-block-end: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.sts-usage .card { border: 1px solid var(--line-soft); padding: var(--space-3) var(--space-4); }
.sts-usage .stat__value { font-size: var(--fs-xl); }

.sts-section { margin-block-end: var(--space-6); }
.sts-section__head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.sts-h2 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.sts-purpose { margin: var(--space-1) 0 var(--space-3); color: var(--text-2); font-size: var(--fs-sm); }
.sts-count {
  font-size: var(--fs-sm); line-height: 22px; padding-inline: var(--space-2);
  border-radius: var(--r-full); background: var(--muted-bg); color: var(--text-2);
}
.sts-count--bad  { background: var(--danger-bg); color: var(--danger-text, var(--danger)); }
.sts-count--warn { background: var(--warn-bg);   color: var(--warn-text, var(--warn)); }
.sts-section--attention .sts-section__head { margin-block-end: var(--space-3); }

/* the one-line row */
.sts-list {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.sts-row { padding: var(--space-2) var(--space-4); border-block-start: 1px solid var(--line-soft); }
.sts-row:first-child { border-block-start: 0; }
.sts-row--bad  { background: var(--danger-bg); }
.sts-row--warn { background: var(--warn-bg); }
.sts-row__line { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; min-block-size: 32px; }
.sts-row__name { font-weight: var(--fw-medium); flex: 0 1 15em; min-inline-size: 0; }
.sts-row__said { flex: 1 1 14em; min-inline-size: 0; color: var(--text-2); font-size: var(--fs-sm); }
.sts-row--bad .sts-row__said, .sts-row--bad .sts-row__said a   { color: var(--danger-text, var(--danger)); font-weight: var(--fw-medium); }
.sts-row--warn .sts-row__said, .sts-row--warn .sts-row__said a { color: var(--warn-text, var(--warn)); font-weight: var(--fw-medium); }
.sts-row__said a { text-decoration: underline; text-underline-offset: 3px; }
.sts-row__every { color: var(--text-3); font-size: var(--fs-sm); }
.sts-row--absent .sts-row__name { color: var(--text-2); font-weight: var(--fw-regular); }
.sts-row--absent .sts-row__said, .sts-row--unknown .sts-row__said { color: var(--text-3); }

/* «امکانات و افزونه‌ها»: the same one-line rows, two columns where there is
   room, each with the part behind it as a chip in that part's colour. */
.sts-dep {
  flex: 0 0 auto; font-size: var(--fs-xs); line-height: 20px; padding-inline: var(--space-2);
  border-radius: var(--r-full); background: var(--muted-bg); color: var(--text-2);
  border: 1px solid transparent; white-space: nowrap;
}
.sts-dep--ok     { background: var(--ok-bg);     color: var(--ok-text, var(--text-2)); }
.sts-dep--warn   { background: var(--warn-bg);   color: var(--warn-text, var(--warn)); }
.sts-dep--bad    { background: var(--danger-bg); color: var(--danger-text, var(--danger)); }
.sts-dep--absent { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-3); }
@media (min-width: 1100px) {
  .sts-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sts-feats .sts-feat:nth-child(2) { border-block-start: 0; }
  .sts-feats .sts-feat:nth-child(even) { border-inline-start: 1px solid var(--line-soft); }
  .sts-feats .sts-row__name { flex-basis: 11em; }
}
.sts-row__note { margin: var(--space-1) 0 0; padding-inline-start: calc(18px + var(--space-3));
                 color: var(--text-3); font-size: var(--fs-sm); }
.sts-ms { color: var(--text-3); font-weight: var(--fw-regular); }

.sts-mark { inline-size: 18px; block-size: 18px; flex: 0 0 18px; border-radius: var(--r-full);
            display: grid; place-items: center; }
.sts-mark .icon { inline-size: 12px; block-size: 12px; }
.sts-mark--ok   { background: var(--ok);     color: rgba(0, 0, 0, .85); }
.sts-mark--warn { background: var(--warn);   color: rgba(0, 0, 0, .85); }
.sts-mark--bad  { background: var(--danger); color: #fff; }
.sts-mark--off  { border: 2px solid var(--line-strong); }
/* Not installed: a dashed ring — nothing to switch on, nothing broken.
   Unknown (a feature whose source did not answer): a dotted one. */
.sts-mark--absent  { border: 2px dashed var(--line-strong); }
.sts-mark--unknown { border: 2px dotted var(--line-strong); }

/* 24 hours, an hour a cell. Right to left like the page: the oldest hour
   is at the start of the line, now at its end. */
.sts-strip { display: inline-flex; gap: 2px; flex: 0 0 auto; align-items: center; }
.sts-cell { inline-size: 6px; block-size: 16px; border-radius: 2px; background: var(--surface-3); }
.sts-cell--ok   { background: var(--ok); }
.sts-cell--warn { background: var(--warn); }
.sts-cell--bad  { background: var(--danger); }
.sts-cell--off  { background: var(--surface-4); }
.sts-cell--absent { background: repeating-linear-gradient(135deg, var(--surface-4) 0 2px, transparent 2px 4px);
                    box-shadow: inset 0 0 0 1px var(--line-soft); }
.sts-cell--none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

.sts-tech { font-size: var(--fs-sm); }
.sts-tech > summary { cursor: pointer; color: var(--text-2); padding-block: var(--space-1);
                      inline-size: fit-content; }
/* A row with numbers behind it is a <details> whose <summary> is the line. */
.sts-more > summary { cursor: pointer; list-style: none; }
.sts-more > summary::-webkit-details-marker { display: none; }
.sts-more > summary:hover .sts-row__name { text-decoration: underline; text-underline-offset: 3px; }
.sts-row__caret { color: var(--text-3); display: inline-flex; transition: transform var(--dur-2) var(--ease); }
.sts-row__caret .icon { inline-size: 12px; block-size: 12px; transform: rotate(90deg); }
.sts-more[open] .sts-row__caret { transform: rotate(180deg); }
.sts-more__body { padding-block: 0 var(--space-3); padding-inline-start: calc(18px + var(--space-3)); }
.sts-tech__body {
  margin: var(--space-2) 0 0; padding: var(--space-3);
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs);
  white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; color: var(--text-2);
}

/* the problem, expanded */
.sts-att { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
           grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.sts-card {
  min-inline-size: 0; padding: var(--space-4);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.sts-card--bad  { border-color: color-mix(in srgb, var(--danger) 55%, var(--line-soft)); }
.sts-card--warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line-soft)); }
.sts-card__head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.sts-card__name { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.sts-chip { margin-inline-start: auto; color: var(--text-3); font-size: var(--fs-xs); }
.sts-card__said { margin: var(--space-2) 0 0; font-weight: var(--fw-medium); }
.sts-card--bad .sts-card__said  { color: var(--danger-text, var(--danger)); }
.sts-card--warn .sts-card__said { color: var(--warn-text, var(--warn)); }
.sts-card__since { display: flex; align-items: center; gap: var(--space-1);
                   margin: var(--space-1) 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.sts-card__strip { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
                   margin-block-start: var(--space-3); }
.sts-strip__label { color: var(--text-3); font-size: var(--fs-xs); }
.sts-hint { margin-block-start: var(--space-3); padding: var(--space-3); border-radius: var(--r-sm);
            background: var(--surface-2); border: 1px solid var(--line-soft); }
.sts-hint__text { margin: 0; font-size: var(--fs-sm); }
.sts-cmd { display: flex; align-items: flex-start; gap: var(--space-2); margin-block-start: var(--space-2); }
.sts-cmd code {
  flex: 1 1 auto; min-inline-size: 0; unicode-bidi: isolate; direction: ltr; text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs);
  background: var(--surface-3); padding: var(--space-1) var(--space-2); border-radius: var(--r-xs);
  overflow-wrap: anywhere;
}
.sts-link { display: inline-block; margin-block-start: var(--space-2); font-size: var(--fs-sm);
            color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.sts-tiles, .sts-kv { margin-block-start: var(--space-3); }
.sts-warnval { color: var(--warn-text, var(--warn)); font-weight: var(--fw-semibold); }

.sts-foot { margin-block-start: var(--space-6); padding-block-start: var(--space-3);
            border-block-start: 1px solid var(--line-soft); color: var(--text-3); font-size: var(--fs-sm); }
.sts-error, .sts-noscript { padding: var(--space-4); border-radius: var(--r); }
.sts-error { background: var(--danger-bg); color: var(--danger-text, var(--text)); }
.sts-noscript { background: var(--surface-2); color: var(--text); }
.sts-noscript a { color: var(--primary-text); text-decoration: underline; }

.sts-verdict--wait { border-color: var(--line); }
.sts-skel__icon { inline-size: 40px; block-size: 40px; flex: 0 0 40px; border-radius: var(--r-full); }
.sts-skel__num { display: block; block-size: 24px; inline-size: 50%; margin-block-start: var(--space-2); }
.sts-skel__h2 { display: block; block-size: 18px; inline-size: 140px; margin-block-end: var(--space-3); }
.sts-skel .sts-row { padding-block: var(--space-3); }
.sts-skel .sts-row .skeleton--line { margin: 0; }
#status-body[aria-busy="true"]:not([data-pending]) { opacity: .7; transition: opacity var(--dur-2) var(--ease); }

@media (max-width: 767px) {
  .sts-refresh { min-block-size: var(--touch); min-inline-size: var(--touch); }
  .sts-verdict { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .sts-verdict__title { font-size: var(--fs-lg); }
  .sts-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sts-row { padding-inline: var(--space-3); }
  .sts-row__name { flex: 1 1 auto; }
  .sts-row__said { flex-basis: 100%; order: 3; padding-inline-start: calc(18px + var(--space-2)); }
  .sts-row__line > .sts-strip { order: 4; padding-inline-start: calc(18px + var(--space-2)); }
  .sts-row__line > .sts-dep { order: 2; }
  .sts-row__note { padding-inline-start: calc(18px + var(--space-2)); }
  .sts-cell { inline-size: 8px; }
  .sts-more__body { padding-inline-start: calc(18px + var(--space-2)); }
  .sts-more > summary { min-block-size: var(--touch); }
  .sts-tech > summary { min-block-size: var(--touch); display: flex; align-items: center; }
  .sts-row__caret { order: 2; }
  .sts-chip { margin-inline-start: 0; flex-basis: 100%; }
}

/* ---- settings --------------------------------------------------------- */
.set-index { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-end: var(--space-2); }
.set-index a {
  display: inline-flex; align-items: center; min-block-size: 32px; padding-inline: var(--space-3);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-full);
  color: var(--text-2); font-size: var(--fs-sm);
}
.set-index a.set-index__danger { color: var(--danger-text, var(--danger));
                                 border-color: color-mix(in srgb, var(--danger) 45%, var(--line-soft)); }
.set-note { margin: 0 0 var(--space-5); color: var(--text-3); font-size: var(--fs-sm); }
.set-note a, .set-default a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.set-section {
  max-inline-size: 880px; margin-block-end: var(--space-5); padding: var(--space-5);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  scroll-margin-block-start: calc(var(--topbar-h) + var(--space-3));
}
.set-danger { border-color: var(--danger); }
.set-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.set-h2 { margin: 0; display: flex; align-items: center; gap: var(--space-2);
          font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.set-h2 .icon { inline-size: var(--icon); block-size: var(--icon); }
.set-danger .set-h2 { color: var(--danger-text, var(--danger)); }
.set-h3 { margin: 0 0 var(--space-1); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.set-dirty { font-size: var(--fs-xs); line-height: 22px; padding-inline: var(--space-2);
             border-radius: var(--r-full); background: var(--warn-bg); color: var(--warn-text, var(--warn)); }
.set-purpose { margin: var(--space-2) 0 var(--space-1); color: var(--text-2); max-inline-size: 72ch; }
.set-default { margin: 0 0 var(--space-4); color: var(--text-3); font-size: var(--fs-sm); }
.set-form { margin: 0; }
.set-presets { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-end: var(--space-3); }
.set-preset { min-block-size: 32px; padding-inline: var(--space-3); }
.set-days { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.set-days input { inline-size: 7.5em; flex: 0 0 auto; }
.set-days__unit { color: var(--text-2); }
.set-preview {
  margin-block: var(--space-3); padding: var(--space-3) var(--space-4);
  /* A quote: the shared rounded bar at the start (see .nav), in grey. */
  position: relative; background: none; border: 0; border-radius: 0;
}
.set-preview::before { inset-block: var(--space-2); background: var(--line-strong); }
.set-preview--danger::before { background: var(--danger); }
.set-preview__line { margin: 0; }
.set-preview--danger .set-preview__line { color: var(--danger-text, var(--text)); font-weight: var(--fw-medium); }
.set-preview__list { margin: var(--space-2) 0 0; padding-inline-start: var(--space-5);
                     color: var(--text-2); font-size: var(--fs-sm); }
.set-preview__list:empty { display: none; }
.set-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.set-actions--wrap { align-items: flex-start; margin-block: var(--space-3) var(--space-2); }
.set-inline { margin: 0; }
.set-saved { color: var(--ok-text, var(--text-2)); font-size: var(--fs-sm); }
.set-result { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--ok-text, var(--text)); max-inline-size: 48ch; }
.set-result:empty { display: none; }
.set-foot { margin: var(--space-4) 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.set-ro { margin-block-end: var(--space-4); padding: var(--space-3) var(--space-4);
          border: 1px dashed var(--line); border-radius: var(--r-sm); }
.set-src { display: inline-flex; align-items: center; gap: var(--space-1);
           color: var(--text-3); font-size: var(--fs-xs); }
.set-ro > .set-src { display: flex; margin-block-end: var(--space-2); }
.set-src .icon { inline-size: 12px; block-size: 12px; }
.set-warnline { display: flex; align-items: center; gap: var(--space-2); margin: 0;
                color: var(--warn-text, var(--text)); }
.set-alert { margin-block-end: var(--space-4); padding: var(--space-3) var(--space-4);
             background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
             border-radius: var(--r-sm); }
.set-alert p { margin: 0; }
.set-pre { margin: var(--space-2) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left;
           font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); }
.set-kv { margin-block-end: var(--space-4); }
.set-switches { display: grid; gap: var(--space-4); margin-block-start: var(--space-5);
                padding-block-start: var(--space-4); border-block-start: 1px solid var(--line-soft); }
.set-switch { margin: 0; }
.set-check { margin: 0; min-block-size: 32px; color: var(--text); font-size: var(--fs-md); }
.set-danger__item { padding-block: var(--space-4) 0; margin-block-start: var(--space-4);
                    border-block-start: 1px solid var(--line-soft); }
.set-url { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
           margin-block: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3);
           background: var(--surface-2); border-radius: var(--r-sm); }
.set-url .mono { flex: 1 1 16em; }

@media (max-width: 767px) {
  .set-section { padding: var(--space-4); }
  .set-index a, .set-preset, .set-check { min-block-size: var(--touch); }
  .set-section .btn, .set-days input { min-block-size: var(--touch); }
  .set-actions .btn, .set-inline .btn { inline-size: 100%; }
}

/* =========================================================================
   LIVE — pages that keep themselves current (static/js/live.js)
   ========================================================================= */
/* A live region that is only a handle for the script (data-live-region on
   a wrapper): no box of its own, so what it holds lays out exactly as it
   did before it was wrapped — the rail's tabs are still the rail's rows,
   a list's empty state still the card's. */
.live-wrap { display: contents; }
/* The download sheet's later groups sit in wrappers of their own now, and
   a heading that is first in its wrapper is not first in the sheet. */
.live-wrap > .dl-group:first-of-type { margin-block-start: var(--space-3); }

/* What has just changed, said quietly: a row that has just arrived washes
   in the accent and fades back to its own background; a part that changed
   without a new row (a count, a state) is outlined for a moment. Only what
   visibly changed is marked, and never the page around it. */
.is-live-new { animation: live-new 2.6s var(--ease) 1; }
@keyframes live-new {
  from { background-color: color-mix(in srgb, var(--accent) 24%, transparent); }
}
.is-live-changed { animation: live-changed 2.6s var(--ease) 1; border-radius: var(--r-sm); }
@keyframes live-changed {
  from { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
  to   { outline: 2px solid transparent; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  /* No fade: the same mark, held still for as long as it lasts. */
  .is-live-new { animation: none;
                 background-color: color-mix(in srgb, var(--accent) 14%, transparent); }
  .is-live-changed { animation: none;
                     outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
                     outline-offset: 2px; }
}
/* ---- end LIVE ---------------------------------------------------------- */

/* ---- IDENTITY ---------------------------------------------------------
   Who a meeting and a recording are, in words: a meeting's subject over its
   room, and where a recording's owner came from. */
/* The meeting page's h1 is the subject; the room sits beside it, smaller
   and quieter, on the same line when it fits. */
.heading-sub {
  font-size: var(--fs-sm); font-weight: 400; color: var(--text-2);
  margin-inline-start: var(--space-2); white-space: nowrap;
}
/* «(دکمهٔ ضبط)» after the owner's name: an administrator's footnote. */
.owner-src { color: var(--text-2); font-size: var(--fs-sm); }
/* ---- end IDENTITY ------------------------------------------------------ */

/* =========================================================================
   FARA'S TOOLS ON THE RECORDING PAGE (fara_ai.py, static/js/ai.js)
   «گفت‌وگو با هوش مصنوعی» in the rail under the player, the mind map in
   «بازخوانی», the transcript's correction mode, and on /admin/settings the
   features list and «برندینگ اسناد».
   ========================================================================= */

/* ---- the conversation ------------------------------------------------- */
/* A card in the rail. With ai.js it is shut until «پرسش از هوش مصنوعی»,
   and the list holds its own scroll so the form stays in reach. */
.ai-panel { display: flex; flex-direction: column; gap: var(--space-2);
            padding: var(--space-3); scroll-margin-block-start: var(--space-4); }
.ai-panel[hidden] { display: none; }
.ai-panel__head { display: flex; align-items: center; gap: var(--space-2); }
.ai-panel__icon { display: grid; place-items: center; flex: 0 0 28px;
                  inline-size: 28px; block-size: 28px; border-radius: var(--r-sm);
                  background: var(--primary-bg); color: var(--primary-text); }
.ai-panel__icon .icon { inline-size: var(--icon); block-size: var(--icon); }
.ai-panel__heading { flex: 1 1 auto; min-inline-size: 0; }
.ai-panel__title { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold);
                   line-height: var(--lh-tight); }
.ai-panel__sub { margin: 0; font-size: var(--fs-xs); color: var(--text-3);
                 display: flex; align-items: center; gap: var(--space-1); }
.ai-panel--js .ai-log { max-block-size: min(52vh, 520px); overflow-y: auto;
                        overscroll-behavior: contain; }
.ai-log { display: block; }
.ai-log__list { list-style: none; margin: 0; padding: 0; display: flex;
                flex-direction: column; gap: var(--space-4); }
.ai-empty { padding: 0; }
.ai-empty__text { font-size: var(--fs-xs); color: var(--text-3); }
.ai-empty__chips, .ai-cta__chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.ai-empty__chips .chip, .ai-cta__chips .chip { min-block-size: 26px; padding-inline: var(--space-2);
                                              font-size: var(--fs-xs);
                                              text-align: start; white-space: normal; }

.ai-entry { display: flex; flex-direction: column; gap: var(--space-2); }
.ai-q { align-self: flex-start; max-inline-size: 92%;
        background: var(--primary-bg); border-radius: var(--r) var(--r) var(--r) var(--r-xs);
        padding: var(--space-2) var(--space-3); }
.ai-q__text { margin: 0; overflow-wrap: anywhere; }
.ai-q__meta { margin: var(--space-1) 0 0; font-size: var(--fs-xs); color: var(--text-3);
              display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.ai-a { align-self: flex-end; inline-size: 92%;
        background: var(--surface-2); border: 1px solid var(--line-soft);
        border-radius: var(--r) var(--r-xs) var(--r) var(--r); padding: var(--space-3); }
.ai-a__text { margin: 0; }
.ai-a__none { margin: 0; color: var(--text-3); font-size: var(--fs-sm);
              display: flex; align-items: center; gap: var(--space-2); }
.ai-a__error { margin: 0; color: var(--danger-text, var(--danger)); font-size: var(--fs-sm); }
.ai-a__meta { margin: var(--space-2) 0 0; font-size: var(--fs-xs); color: var(--text-3); }
.ai-entry--change .ai-a { border-style: dashed; }
.ai-entry--failed .ai-a { border-color: var(--danger); background: var(--danger-bg); }
/* A citation: the time (the button's own), who, and their words. */
.ai-cites { list-style: none; margin: var(--space-3) 0 0; padding: 0;
            display: flex; flex-direction: column; gap: var(--space-2); }
.ai-cite { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-2);
           inline-size: 100%; text-align: start; font: inherit; color: inherit;
           background: var(--surface); border: 1px solid var(--line-soft);
           border-radius: var(--r-sm);
           padding: var(--space-2); cursor: pointer; }
.ai-cite:hover { border-color: var(--accent); }
.ai-cite--loose { cursor: default; }
.ai-cite__time { grid-row: span 2; font-variant-numeric: tabular-nums; font-size: var(--fs-xs);
                 color: var(--accent-text); align-self: start; padding-block-start: 2px; }
.ai-cite__who { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
.ai-cite__quote { grid-column: 2; font-size: var(--fs-sm); color: var(--text); quotes: "«" "»"; }
.ai-cite--loose .ai-cite__quote { grid-column: 1 / -1; }

.ai-form { display: flex; flex-direction: column; gap: var(--space-2); margin: 0;
           padding-block-start: var(--space-2); border-block-start: 1px solid var(--line-soft); }
.ai-modes { flex: 0 0 auto; max-inline-size: 100%; }
.ai-modes .segmented__btn { font-size: var(--fs-xs); min-block-size: 26px; padding-inline: var(--space-2); }
.ai-form__input { inline-size: 100%; resize: vertical; min-block-size: 40px; field-sizing: content;
                  max-block-size: 30vh; }
.ai-form__foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ai-form__cost { flex: 1 1 12em; font-size: var(--fs-xs); color: var(--text-3); }
.ai-choice { padding: var(--space-3); border-radius: var(--r-sm);
             background: var(--warn-bg); border: 1px solid var(--warn); font-size: var(--fs-sm); }
.ai-choice p { margin: 0 0 var(--space-2); }

.ai-tools { display: flex; flex-direction: column; gap: var(--space-2); }
.ai-note { display: flex; align-items: center; gap: var(--space-2); margin: 0;
           font-size: var(--fs-sm); padding: var(--space-2) var(--space-3);
           border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); }
.ai-note--working { background: var(--primary-bg); color: var(--text); }
.ai-note--ok { background: var(--ok-bg); color: var(--ok-text, var(--text)); }
.ai-note--bad { background: var(--danger-bg); color: var(--danger-text, var(--text)); }
.ai-tools__box { border: 1px solid var(--line-soft); border-radius: var(--r); }
.ai-tools__summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer;
                     padding: var(--space-2) var(--space-3); font-weight: var(--fw-medium);
                     list-style: none; }
.ai-tools__summary::-webkit-details-marker { display: none; }
.ai-tools__summary::after { content: ""; margin-inline-start: auto; inline-size: 7px; block-size: 7px;
                            border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
                            transform: rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.ai-tools__box[open] > .ai-tools__summary::after { transform: rotate(225deg); }
.ai-tools__lead { margin: 0; padding: 0 var(--space-3) var(--space-2); font-size: var(--fs-sm); color: var(--text-2); }
.ai-tools__box > .ai-note { margin: 0 var(--space-3) var(--space-2); }
.ai-tool { padding: var(--space-3); border-block-start: 1px solid var(--line-soft); }
.ai-tool__title { margin: 0 0 var(--space-1); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ai-tool__help { margin: 0 0 var(--space-2); font-size: var(--fs-sm); color: var(--text-2); }
.ai-tool__state { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2);
                  font-size: var(--fs-sm); }
.ai-tool__form { margin: 0; }
.ai-cite__src { grid-column: 2; justify-self: start; }
/* ⓘ: what «فرا» is, as a tooltip (title) and to a screen reader (aria-label). */
.ai-panel__unit { display: inline-grid; place-items: center; inline-size: 16px; block-size: 16px;
                  border: 1px solid currentColor; border-radius: 50%; font-size: var(--fs-xs);
                  line-height: 1; cursor: help; flex: 0 0 auto; }
/* Which way to change the minutes: three lines at the top of the tools box. */
.ai-guide { margin: 0 var(--space-3) var(--space-2); padding: var(--space-2) var(--space-3);
            list-style: none; display: flex; flex-direction: column; gap: var(--space-1);
            font-size: var(--fs-sm); color: var(--text-2);
            border-radius: var(--r-sm); background: var(--surface-2); }
.ai-guide strong { color: var(--text); font-weight: var(--fw-medium); }
.ai-undo { margin-block: var(--space-1); }

/* What a revision changed: one row per edit, the old words struck. */
.ai-changes { border: 1px solid var(--line-soft); border-radius: var(--r-sm);
              padding: var(--space-2) var(--space-3); font-size: var(--fs-sm); }
.ai-changes > summary { cursor: pointer; font-weight: var(--fw-medium); }
.ai-changes__list { list-style: none; margin: var(--space-2) 0 0; padding: 0;
                    display: flex; flex-direction: column; gap: var(--space-2); }
.ai-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); }
.ai-change__section { color: var(--text-2); font-size: var(--fs-xs); }
.ai-change__before { color: var(--text-3); text-decoration-color: var(--danger); }
.ai-change__after { text-decoration: none; background: var(--ok-bg); border-radius: var(--r-xs);
                    padding-inline: 2px; }
.ai-change__before, .ai-change__after { flex: 1 1 100%; }

/* The minutes' older versions, each with its «بازگرداندن». */
.ai-versions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
               gap: var(--space-1); }
.ai-version { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2);
              padding: var(--space-1) 0; border-block-end: 1px solid var(--line-soft); }
.ai-version:last-child { border-block-end: 0; }
.ai-version__name { font-size: var(--fs-sm); flex: 1 1 10em; min-inline-size: 0; }
.ai-version__form { margin-inline-start: auto; }
.ai-docform { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ai-docform select { inline-size: auto; min-inline-size: 0; flex: 1 1 9em; }
.ai-docform .field__error { flex: 1 1 100%; }

/* «از این جلسه بپرسید» at the top of «بازخوانی». */
.ai-cta { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap;
          padding: var(--space-3) var(--space-4); border-radius: var(--r);
          background: linear-gradient(135deg, var(--primary-bg), transparent 70%), var(--surface);
          border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); }
.ai-cta__icon { display: grid; place-items: center; flex: 0 0 28px; inline-size: 28px; block-size: 28px;
                border-radius: var(--r-sm); background: var(--primary-bg); color: var(--primary-text); }
.ai-cta__icon .icon { inline-size: 18px; block-size: 18px; }
.ai-cta__body { flex: 1 1 16em; min-inline-size: 0; }
/* On a phone the suggestions are one row that scrolls sideways, not a
   stack of three lines above the minutes. */
@media ((max-width: 767px)) {
  .ai-cta { align-items: center; }
  /* Two suggestions that wrap, not a row that scrolls sideways. */
  .ai-cta__chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
  .ai-cta__chips .chip:nth-child(n+3) { display: none; }
  .ai-cta__body { flex: 1 1 auto; }
}
/* A card's head: its title and, after it, short actions («PDF», «Word»)
   that stay on the title's row. */
.card__head .card__act { flex: 0 0 auto; }
.ai-cta__title { margin: 0 0 var(--space-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* ---- the mind map ------------------------------------------------------- */
/* Right to left: the root at the right, each level a step to the left,
   joined by the lines a tree has — a rail down the side of a level and a
   short arm to each of its nodes. Kinds keep the colours the rail's
   highlights use: decisions green, actions teal, questions amber. */
.mm { --mm-line: var(--line-strong); --mm-arm: 16px; padding-block-end: var(--space-2);
       overflow-wrap: anywhere; }
@media ((max-width: 767px)) { .mm { --mm-arm: 10px; } }
.mm__root { display: inline-flex; margin: 0; padding: var(--space-2) var(--space-4);
            border-radius: var(--r-full); background: var(--primary); color: var(--on-primary);
            font-weight: var(--fw-semibold); max-inline-size: 100%; overflow-wrap: anywhere; }
.mm__summary { margin: var(--space-1) 0 var(--space-1); font-size: var(--fs-xs); color: var(--text-3);
               max-inline-size: 60ch; }
.mm__summary--root { margin-inline-start: var(--space-4); }
.mm__children { list-style: none; margin: 0; padding: 0 0 0 0; padding-inline-start: calc(var(--mm-arm) + 6px);
                position: relative; }
.mm__children--top { margin-inline-start: var(--space-4); }
.mm__item { position: relative; padding-inline-start: var(--mm-arm); }
.mm__item::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0;
                    block-size: 100%; border-inline-start: 1.5px solid var(--mm-line); }
.mm__item:last-child::before { block-size: 1.2rem; }
.mm__item::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 1.2rem;
                   inline-size: var(--mm-arm); border-block-start: 1.5px solid var(--mm-line); }
.mm__node { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
            margin-block: 3px; padding: 3px var(--space-3); min-block-size: 30px;
            border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
            max-inline-size: 100%; }
.mm__label { overflow-wrap: anywhere; }
summary.mm__node { cursor: pointer; list-style: none; }
summary.mm__node::-webkit-details-marker { display: none; }
summary.mm__node::before { content: ""; inline-size: 6px; block-size: 6px; flex: 0 0 auto;
                           border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
                           transform: rotate(135deg); transition: transform var(--dur-2) var(--ease); opacity: .7; }
.mm__branch[open] > summary.mm__node::before { transform: rotate(45deg); }
.mm__count { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mm__item--topics > details > .mm__node, .mm__item--topic > details > .mm__node,
.mm__item--topic > .mm__node { border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
                               background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.mm__item--decisions > details > .mm__node,
.mm__item--decision > .mm__node { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.mm__item--actions > details > .mm__node,
.mm__item--action > .mm__node { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mm__item--questions > details > .mm__node,
.mm__item--question > .mm__node { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.mm__item--point > .mm__node, .mm__item--message > .mm__node, .mm__item--note > .mm__node {
  background: transparent; border-style: dashed; font-size: var(--fs-sm); }
.mm__tools { display: inline-flex; gap: var(--space-1); }
.mm__tools[hidden] { display: none; }

/* ---- correcting the transcript -------------------------------------------- */
.transcript-edit { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column;
                   gap: var(--space-2); padding: var(--space-3); border-radius: var(--r-sm);
                   background: var(--warn-bg); border: 1px solid var(--warn); }
.transcript-edit__text { margin: 0; font-size: var(--fs-sm); }
.transcript-edit__actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.transcript-edit__count { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; margin-inline-end: auto; }
.transcript--editing [contenteditable="true"] { outline: 1px dashed var(--line-strong); outline-offset: 2px;
                                                border-radius: var(--r-xs); cursor: text; padding-inline: 2px; }
.transcript--editing [contenteditable="true"]:focus { outline: 2px solid var(--focus, var(--accent)); }
.transcript__line--corrected .transcript__text { text-decoration: underline dotted var(--warn);
                                                 text-underline-offset: 4px; }

/* ---- a tag the auto-tagger put there ------------------------------------------- */
.chip__auto { font-size: var(--fs-xs); line-height: 16px; padding-inline: 4px; border-radius: var(--r-xs);
              background: var(--surface-4); color: var(--text-2); }

/* ---- /admin/settings: what Fara offers, and the documents' look ------------------ */
.set-features { margin-block-start: var(--space-5); }
.set-flist { list-style: none; margin: var(--space-2) 0 var(--space-3); padding: 0;
             display: flex; flex-direction: column; gap: var(--space-2); }
.set-flist__item { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
                   font-size: var(--fs-sm); }
.set-flist__item .muted { flex-basis: 100%; padding-inline-start: calc(8px + var(--space-2)); }
.set-days--wide input { inline-size: auto; flex: 1 1 18em; }
.set-brand { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .set-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.set-brand__logo { display: flex; flex-direction: column; gap: var(--space-3); }
.set-logo { display: flex; flex-direction: column; gap: var(--space-1); }
.set-logo__img { max-inline-size: 220px; max-block-size: 96px; object-fit: contain; align-self: flex-start;
                 padding: var(--space-2); border-radius: var(--r-sm); border: 1px solid var(--line-soft);
                 background: #fff; }
.set-logo__img[hidden] { display: none; }
.set-logo__img--new { margin-block-start: var(--space-2); }
.set-brand__fields .field { margin-block-end: var(--space-3); }
.set-colors { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.set-color { display: flex; align-items: center; gap: var(--space-2); }
.set-color input { inline-size: 7.5em; }
.set-color__swatch { inline-size: 28px; block-size: 28px; flex: 0 0 28px; border-radius: var(--r-sm);
                     border: 1px solid var(--line-strong);
                     background-image: linear-gradient(45deg, var(--surface-3) 25%, transparent 25%,
                       transparent 75%, var(--surface-3) 75%); background-size: 10px 10px; }
.set-okline { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3);
              font-size: var(--fs-sm); color: var(--ok-text, var(--text)); }
.set-note--pending { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3);
                     padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
                     background: var(--warn-bg); color: var(--warn-text, var(--text)); }
.set-note--pending .icon, .set-okline .icon, .ai-tool__state .icon, .ai-note .icon {
  inline-size: 16px; block-size: 16px; flex: 0 0 auto; }

/* A meeting's row: one line of what its minutes say (sessions.minutes_facts). */
.meet__summary { margin: var(--space-1) 0 0; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
/* The meeting page: its tags, category and summary under the heading. */
.meeting__head { margin-block-end: var(--space-4); }
.report__tags dd { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); }

/* A person's address and fingerprint under their name (attendance table,
   admins on a running meeting) and in the ban dialog. The fingerprint is a
   long token: it wraps rather than widening the table or the dialog. */
.who { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-block-start: var(--space-1); }
.who .mono, .who__fp { overflow-wrap: anywhere; word-break: break-all; }

/* ---- قوانین اتاق‌ها (admin_rooms.html): the settings sections' vocabulary,
   plus the few parts that page does not have. ---------------------------- */
.rules { display: flex; flex-direction: column; gap: var(--space-4); }
.rules__switches { display: grid; gap: var(--space-2); }
.rules__switches .check { align-items: flex-start; padding: var(--space-3); font-size: var(--fs-md); }
.rules__switches .check input { margin-block-start: 3px; }
.rules__sub { display: block; margin-block-start: 2px; color: var(--text-3); font-size: var(--fs-sm);
              font-weight: var(--fw-regular, 400); }
/* «هنگام ورود»: a group, not a box of boxes. The UA's fieldset frame is gone;
   the legend is the group's heading, its help sits under it, and the six
   choices share one bordered list with a hairline between them, each a
   checkbox first and its title and one line of explanation beside it. */
/* A password field with its buttons (the secret() macro): the field is one box and the reveal and
   copy icons sit inside it at its right edge (the field is left-to-right text, so the icons are
   where the text ends); «ساخت گذرواژه» is a word, not an icon, and stays beside the box. */
.secret { display: flex; align-items: stretch; gap: var(--space-2); flex-wrap: wrap; max-inline-size: 28rem; }
.secret__box { position: relative; direction: ltr; display: flex; align-items: center; flex: 1 1 12em; min-inline-size: 0; }
.secret input { flex: 1 1 auto; min-inline-size: 0; inline-size: 100%; }
.secret__box:has(.secret__btn:not([hidden])) input { padding-inline-end: 2.75rem; }
.secret__box:has(.secret__btn:not([hidden]) ~ .secret__btn:not([hidden])) input { padding-inline-end: 5rem; }
.secret__btn { position: absolute; inset-block: 0; inset-inline-end: var(--space-1); margin-block: auto; block-size: 2rem;
                border-color: transparent; background: transparent; box-shadow: none; color: var(--muted, currentColor); }
.secret__btn:hover, .secret__btn:focus-visible { background: var(--surface-2, rgba(255, 255, 255, .08)); color: inherit; }
.secret__btn ~ .secret__btn { inset-inline-end: 2.5rem; }
.secret__gen { flex: 0 0 auto; align-self: stretch; }
.set-section .secret input, .secret input.mono { font-family: var(--font-mono, ui-monospace, monospace); }

.rules__join { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.rules__join > legend { padding: 0; margin-block-end: var(--space-1); font-weight: var(--fw-semibold, 600); }
.rules__join > .field__help { margin-block: 0 var(--space-3); max-inline-size: 60ch; }
.rules__join .check { align-items: flex-start; border-radius: 0; border-width: 0; border-block-start-width: 1px;
                      background: transparent; padding: var(--space-3); font-size: var(--fs-md); }
.rules__join .check input { margin-block-start: 3px; }
.rules__join .check:first-of-type { border-block-start-width: 0; }
.rules__join-list { border: 1px solid var(--line-soft); border-radius: var(--r-sm);
                    background: var(--surface-2); overflow: hidden; }
.rules__join .check:has(input:checked) { border-color: var(--line-soft); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rules__nums { display: grid; gap: var(--space-4); }
.rules .field { margin-block-end: 0; }
@media (min-width: 700px) { .rules__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rooms-list, .bans { list-style: none; margin: var(--space-4) 0 0; padding: 0;
                     display: flex; flex-direction: column; gap: var(--space-2); }
.rooms-item { border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-2); }
.rooms-item[open] { background: var(--surface); border-color: var(--line); }
.rooms-item__sum { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
                   padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none;
                   min-block-size: var(--touch, 44px); }
.rooms-item__sum::-webkit-details-marker { display: none; }
.rooms-item__chips { display: flex; flex-wrap: wrap; gap: var(--space-1); flex: 1 1 auto; }
.chip__was { color: var(--text-3); }
.chip--muted { color: var(--text-3); }
.rooms-item__chev { margin-inline-start: auto; color: var(--text-3); transition: transform var(--dur-2) var(--ease); }
.rooms-item[open] .rooms-item__chev { transform: rotate(180deg); }
.rooms-item__body { padding: var(--space-4); border-block-start: 1px solid var(--line-soft);
                    display: flex; flex-direction: column; gap: var(--space-4); }
.bans__item { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
              flex-wrap: wrap; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-soft);
              border-radius: var(--r-sm); background: var(--surface-2); }
.bans__main { display: flex; flex-direction: column; gap: var(--space-1); min-inline-size: 0; flex: 1 1 18em; }
.set-section .empty--inline { padding-block: var(--space-4); }
@media (max-width: 767px) {
  .rooms-item__sum, .bans__item { padding-inline: var(--space-3); }
  .bans__item form, .bans__item .btn { inline-size: 100%; }
}

/* Fara ledger: a failed step reads red, and the feed is a plain list. */
.joblog__row { padding-block: 2px; }
.joblog__row--failed .wrap-any { color: var(--danger-text); }
.joblog__list--feed { margin-block-start: var(--space-3); }

/* Folders: the page of cards, the breadcrumb header inside a folder, and its sub-folder cards. */
.fsection { display: flex; gap: var(--space-2); align-items: baseline; font-size: 1rem; margin: var(--space-4) 0 var(--space-3); }
.fsection--inline { margin: 0; font-size: var(--fs-sm, .875rem); font-weight: 600; color: var(--text-2); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: var(--space-3);
         list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.fgrid--compact { grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)); gap: var(--space-2); margin-block-end: var(--space-3); }
.fcard { position: relative; background: var(--surface-2); border: 1px solid var(--border, var(--surface-4));
         border-radius: 10px; transition: border-color .15s, background .15s; }
.fcard:hover, .fcard:focus-within { border-color: var(--accent); background: var(--surface-3); }
.fcard[hidden] { display: none; }
.fcard__link { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); align-items: center;
               padding: var(--space-3); color: inherit; text-decoration: none; }
.fcard__icon { grid-row: span 2; color: var(--accent-text); display: inline-flex; }
.fcard__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }
.fcard__meta { grid-column: 2; }
.fcard__role { position: absolute; inset-block-start: var(--space-2); inset-inline-end: var(--space-2); }
.fhead { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center;
         justify-content: space-between; margin-block-end: var(--space-3); }
.fhead__tools { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; color: var(--text-3); margin-inline-end: var(--space-1); }
.crumbs a { display: inline-flex; gap: var(--space-1); align-items: center; padding: 2px var(--space-1); border-radius: 6px; }
.crumbs a:hover { background: var(--muted-bg); }
@media (max-width: 767px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
}
.fcard--new { border-style: dashed; background: transparent; }
.fcard--new .fcard__link { inline-size: 100%; block-size: 100%; min-block-size: 72px; background: none; border: 0; font: inherit; color: var(--accent-text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); text-align: center; }
.fcard--new .fcard__icon { grid-row: auto; }
.pick { max-block-size: 50vh; overflow: auto; padding: 0; list-style: none; }
.pick__row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm, 6px); }
.pick__label { display: flex; align-items: center; gap: var(--space-3); inline-size: 100%; cursor: pointer; }
.pick__thumb { inline-size: 72px; flex: 0 0 72px; }
.pick__body { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.pick__title { overflow-wrap: anywhere; }
.pick__people { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.pick__row:hover { background: var(--surface-2, rgba(127,127,127,.1)); }

/* Folder upload sheet: a Jalali date-and-time picker (the drop area is .dropzone). */
.dropzone--stack { flex-direction: column; justify-content: center; text-align: center; cursor: pointer; }
jdp-container { font-family: inherit; }
.crumbs h1 { display: inline; font-size: inherit; font-weight: var(--fw-bold); margin: 0; }
.crumbs .heading-sub { font-weight: var(--fw-normal); color: var(--text-3); margin-inline-start: var(--space-2); }

/* The breadcrumb row, with the folder's buttons when it has them, stays pinned under the top bar. */
.content > .crumbs, .fhead {
  position: sticky; inset-block-start: var(--topbar-live, var(--topbar-h));
  z-index: calc(var(--z-sticky) - 1);
  background: var(--bg); padding-block: var(--space-2);
}

.fcount { display: inline-flex; align-items: center; gap: var(--space-3); }
.fcount__n { display: inline-flex; align-items: center; gap: var(--space-1); }


/* ======================================================================
   Layout pass
   ====================================================================== */

/* The public frame (_public.html): the dashboard's shell with a top bar of the brand and the theme and no
   sidebar; the content is centred at a narrow width (a gate, one meeting) or a wide one (a folder's list). */
.public__content { max-inline-size: 640px; margin-inline: auto; }
.public__content--wide { max-inline-size: 1100px; }
.public__content--narrow { padding-block-start: var(--space-8); }
.public .main { min-block-size: 100dvh; }
.public .legalfoot { margin-block-start: auto; }

/* The top bar holds the tools of every page (search, a new meeting, the theme); a page's own buttons stand
   on the crumbs' row (.fhead). */
@media (max-width: 1023px) { .topbar__cta { display: none; } }
@media (min-width: 1024px) { .topbar__new { display: none; } }

/* Overview charts: server-drawn SVG bars. The bar colour is the brand accent, so a brand carries through. */
.charts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.chart { margin: 0; position: relative; padding-block-start: var(--space-3); }
.chart__svg { display: block; inline-size: 100%; block-size: 150px; }
.chart__bar { fill: var(--accent); }
.chart__bar:hover { fill: var(--accent-press); }
.chart__bar--zero { fill: var(--line); }
.chart__axis { position: relative; block-size: 1.4em; margin-block-start: var(--space-1);
               color: var(--text-3); font-size: var(--fs-xs); direction: ltr; }
.chart__axis span { position: absolute; transform: translateX(-50%); }
.chart__max { position: absolute; inset-block-start: 0; inset-inline-end: 0; color: var(--text-3); font-size: var(--fs-xs); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.hbars__row { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: var(--space-2); align-items: center;
              font-size: var(--fs-sm); }
.hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__track { background: var(--surface-3); border-radius: 4px; block-size: 10px; overflow: hidden; }
.hbars__fill { display: block; block-size: 100%; background: var(--accent); border-radius: 4px; }
.hbars__n { color: var(--text-2); min-inline-size: 2ch; text-align: end; }

.fcard__select { display: none; position: absolute; z-index: 2; inset-block-start: var(--space-2); inset-inline-end: var(--space-2);
                 inline-size: 20px; block-size: 20px; accent-color: var(--accent); cursor: pointer; }
.is-selecting-folders .fcard__select { display: block; }
.fcard.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

/* A call's page (call.html): the tabs sit on the wide column, the aside holds the audio. */
.split--call .tabs { margin-block-end: var(--space-3); }
.callroute { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: stretch; }
.callroute__hop { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3);
                  border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-3); min-inline-size: 0; }
.callroute__val { font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.calltl { display: grid; gap: var(--space-2); }
.calltl__axis, .calltl__track { position: relative; block-size: 18px; }
.calltl__axis { margin-inline-start: 120px; border-block-end: 1px solid var(--line-soft); }
.calltl__mark { position: absolute; font-size: var(--fs-sm); color: var(--text-2); transform: translateX(0); white-space: nowrap; }
.calltl__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-1) 0; align-items: center; }
.calltl__name { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calltl__track { background: var(--surface-3); border-radius: var(--r-sm); }
.calltl__bar { position: absolute; block-size: 100%; border-radius: var(--r-sm); background: var(--text-3); min-inline-size: 4px; }
.calltl__bar--answered { background: var(--primary); }
.calltl__bar--busy, .calltl__bar--failed { background: var(--danger, #D32F2F); }
.calltl__info { grid-column: 2; }

/* Call recording player: the platform's surface, border and radius around the native control,
   which follows the theme through color-scheme. Time and seek run left to right, as in the video player. */
.call-audio { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3);
              background: var(--surface-3); border: 1px solid var(--line-soft); border-radius: var(--r); }
.call-audio + .call-audio { margin-block-start: var(--space-2); }
.call-audio__el { inline-size: 100%; block-size: 40px; direction: ltr; border-radius: var(--r-full);
                  color-scheme: light dark; font-family: var(--font); accent-color: var(--primary); }
.call-audio .btn { align-self: flex-start; }

/* The drawn controls of the call recording (static/js/callaudio.js): the video player's own tokens and shape,
   on the card. The <audio> itself is hidden once they are there; without the script it keeps its native bar. */
.cap { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font); color: var(--text); }
.cap__row { display: flex; align-items: center; gap: var(--space-1); }
.cap__grow { flex: 1 1 auto; }
.cap__btn, .cap__rate { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  display: inline-grid; place-items: center; min-inline-size: 32px; block-size: 32px; padding: 0 6px;
  border-radius: var(--r-full); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold, 600); }
.cap__btn svg { inline-size: 20px; block-size: 20px; }
.cap__btn:hover, .cap__rate:hover { background: var(--surface-2, var(--line-soft)); }
.cap__btn:focus-visible, .cap__rate:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cap__play { inline-size: 40px; block-size: 40px; background: var(--primary); color: var(--on-primary, #fff); }
.cap__play:hover { background: var(--primary); filter: brightness(1.08); }
.cap__play svg { inline-size: 22px; block-size: 22px; }
.cap__time { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--text-3, var(--text)); padding-inline: var(--space-1); }
.cap__seek, .cap__vol { appearance: none; -webkit-appearance: none; background: transparent; margin: 0; cursor: pointer;
  block-size: 20px; --cap-fill: 0%; }
.cap__seek { inline-size: 100%; }
.cap__vol { inline-size: 64px; --cap-fill: 100%; }
.cap__seek::-webkit-slider-runnable-track, .cap__vol::-webkit-slider-runnable-track {
  block-size: 4px; border-radius: var(--r-full);
  background: linear-gradient(to right, var(--primary) var(--cap-fill), var(--line-soft, rgb(128 128 128 / .3)) var(--cap-fill)); }
.cap__seek::-moz-range-track, .cap__vol::-moz-range-track { block-size: 4px; border-radius: var(--r-full);
  background: var(--line-soft, rgb(128 128 128 / .3)); }
.cap__seek::-moz-range-progress, .cap__vol::-moz-range-progress { block-size: 4px; border-radius: var(--r-full); background: var(--primary); }
.cap__seek::-webkit-slider-thumb, .cap__vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  inline-size: 12px; block-size: 12px; margin-block-start: -4px; border-radius: 50%; border: 0; background: var(--primary); }
.cap__seek::-moz-range-thumb, .cap__vol::-moz-range-thumb { inline-size: 12px; block-size: 12px; border-radius: 50%; border: 0; background: var(--primary); }
.cap--wait .cap__time::after { content: " …"; }
.cap--error .cap__time { color: var(--danger, #c0392b); }
.cap--error .cap__time::after { content: " — پخش نشد"; }
@media (max-width: 420px) { .cap__vol { display: none; } }
