/* cards.css — part 5 of 6 of the app stylesheet.
   Holds: card rows and pills, small buttons, tags, the card-detail modal, comment
   history, create-card, toasts.

   ORDER MATTERS. These files were cut out of a single app.css at line boundaries with the
   sequence preserved, so concatenating them in the order index.html links them reproduces the
   original byte for byte — which is what makes the cascade provably unchanged. Equal-specificity
   rules still resolve by source order, so reordering the <link> tags can change rendering.

   The names describe what ended up in each part, not a design: the original file interleaved
   the top bar, layout and per-feature rules, and moving rules to where they belong is a separate
   pass that this split exists to make possible. Palette is in theme.css, linked first. */
    .card {
      background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
      padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow);
    }
    .card .top { display: flex; justify-content: space-between; gap: 12px; }
    .card .title { font-weight: 600; }
    .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 3px; line-height: 1.3;
      display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
    /* display:flex overrides the hidden attribute (§10 gotcha) — reassert. Latent on the board rows
       too (masked because an empty flex div paints nothing); load-bearing now the modal starts with
       a hidden crumb bar in static HTML. */
    .crumbs[hidden] { display: none; }
    .crumbs .crumb { color: var(--muted); text-decoration: none; cursor: pointer;
      border-radius: 4px; padding: 0 2px; max-width: 60ch; overflow: hidden; text-overflow: ellipsis;
      white-space: nowrap; }
    .crumbs .crumb:hover { color: var(--accent); text-decoration: underline; }
    .crumbs .crumb.copied { color: var(--accent); font-weight: 600; }
    .crumbs .crumb-sep { color: var(--muted); opacity: 0.55; }
    .crumb-menu { position: absolute; z-index: var(--z-crumb); min-width: 140px; display: flex; flex-direction: column;
      background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,.32); padding: 4px; }
    .crumb-menu-item { text-align: left; background: transparent; border: none; color: var(--text);
      font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
    .crumb-menu-item:hover { background: var(--panel-2); color: var(--accent); }
    /* Active-card collapsible description + fixed-height comment box */
    .card-desc-wrap { margin: 6px 0 10px; }
    .card-desc-summary, .card-comments-summary { color: var(--brand); font-size: 13px; font-weight: 600;
      cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
    .card-desc-summary::-webkit-details-marker, .card-comments-summary::-webkit-details-marker { display: none; }
    .card-desc-summary::before, .card-comments-summary::before { content: '\25b8'; font-size: 10px;
      color: var(--muted); transition: transform .15s ease; }
    .card-desc-wrap[open] .card-desc-summary::before,
    .card-comments-wrap[open] .card-comments-summary::before { transform: rotate(90deg); }
    .card-desc { margin-top: 8px; max-height: 220px; overflow: auto; font-size: 13.5px; line-height: 1.5;
      color: var(--text); overflow-wrap: anywhere; padding: 10px 12px; background: var(--panel-2);
      border: 1px solid var(--line); border-radius: 8px; }
    .card-desc p { margin: 0 0 8px; }
    .card-desc :last-child { margin-bottom: 0; }
    .card-comments-wrap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
    .card-comments { margin-top: 8px; max-height: 220px; overflow: auto; border: 1px solid var(--line);
      border-radius: 8px; padding: 8px 10px; background: var(--panel-2); }
    .card-comments .cmt { margin: 0 0 8px; }
    .card-comments .cmt:last-child { margin-bottom: 0; }
    .title-link.copyable { cursor: pointer; border-radius: 4px; }
    .title-link.copyable:hover { text-decoration: underline; text-decoration-style: dotted; }
    .title-link.copied { color: var(--accent); }
    .copied-flag { font-size: 11px; font-weight: 600; color: var(--accent); margin-left: 8px;
      vertical-align: middle; }
    .card-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .card-filter input[type="search"] { flex: 1; padding: 8px 12px; border: 1px solid var(--line);
      border-radius: 8px; background: var(--panel); color: var(--text); font-size: 14px; }
    .card-filter input[type="search"]:focus { outline: none; border-color: var(--accent); }
    .card-filter-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
    .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
    .pill {
      font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line);
      color: var(--muted); margin-left: 6px;
      /* A pill is an atom: inline-block + nowrap keeps a two-word label ("In Progress") from
         breaking across lines, which splits the border/background down the middle. */
      display: inline-block; white-space: nowrap;
    }
    .pill.cust { color: var(--accent); border-color: var(--accent); }
    /* An inherited client is the same pill, dashed (6.92.2): the value is real, but it came from an
       ancestor rather than this card, so a reparent can change it. The modal spells that out in words
       (`.cd-inherited`); the board can't, because it would repeat on every row. */
    .pill.cust-inh { border-style: dashed; cursor: help; }
    .pill.mine-pill { color: var(--ok); border-color: var(--ok); }
    .hours-now { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
    .note {
      display: block; width: 100%; box-sizing: border-box; margin-top: 14px;
      min-height: 150px; max-height: 360px; overflow-y: auto; resize: vertical;
      line-height: 1.55; font: inherit;
      background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
      border-radius: 8px; padding: 11px 13px;
    }
    .controls {
      display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap;
    }
    .note-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
    .note-actions .hint { font-size: 12px; color: var(--muted); }
    .note-actions .copy-status { font-size: 13px; color: var(--ok); font-weight: 600; }
    .note.dragover { border-color: var(--brand-bright); box-shadow: 0 0 0 2px rgba(90,45,138,0.18); }
    button.log-manual { background: var(--panel-2); color: var(--brand); border: 1px solid var(--line); }
    button.log-manual:hover { background: rgba(90,45,138,0.10); }
    .hours-field {
      display: flex; align-items: center; gap: 8px; margin-right: auto;
      color: var(--muted); font-size: 13px;
    }
    .hours-input {
      display: inline-flex; align-items: stretch; overflow: hidden;
      background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
    }
    .hours-input:focus-within { border-color: var(--accent); }
    input.hours {
      width: 74px; text-align: right; font: inherit;
      background: transparent; border: 0; color: var(--text); padding: 9px 10px;
      -moz-appearance: textfield; appearance: textfield;
    }
    /* Was a bare `outline: none` — focus was invisible. Matches the accent-border treatment the
       other focus rules use. */
    input.hours:focus { outline: none; border-color: var(--accent); }
    .date-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
    input.workdate {
      font: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
      color: var(--text); padding: 8px 10px;
    }
    input.workdate:focus { outline: none; border-color: var(--accent); }
    html[data-theme="dark"] input.workdate, html[data-theme="dark"] .cd-workdate { color-scheme: dark; }
    input.hours::-webkit-outer-spin-button,
    input.hours::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .hours-input .spin { display: flex; flex-direction: column; width: 24px; border-left: 1px solid var(--line); }
    .hours-input .step {
      flex: 1; padding: 0; border: 0; background: var(--panel); color: var(--muted);
      cursor: pointer; font-size: 8px; line-height: 1;
      display: flex; align-items: center; justify-content: center;
    }
    .hours-input .step:hover { background: rgba(90,45,138,0.16); color: var(--text); }
    .hours-input .step:active { background: rgba(90,45,138,0.28); }
    .hours-input .step-up { border-bottom: 1px solid var(--line); }
    .note:focus { outline: none; border-color: var(--accent); }
    button {
      background: var(--accent); color: white; border: 0; border-radius: 8px;
      padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer;
    }
    button:hover { background: var(--accent-press); }
    button:disabled { opacity: .5; cursor: default; }
    .result {
      margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--ok);
      background: var(--panel-2); border-radius: 6px; font-size: 14px; display: none;
    }
    .result.show { display: block; }
    .result .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
    .preview { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
    .preview .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
    .preview .preview-edit { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; line-height: 1.5; }
    .preview-rendered-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
    .preview-render { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
    .preview-actions { display: flex; gap: 8px; margin-top: 10px; }
    aside .panel {
      background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
      box-shadow: var(--shadow);
    }
    /* Keep a tall day/week agenda scrollable within the pinned panel. */
    /* Sticks below the top bar now, so its scroll area loses the bar's height as well or the
       bottom of a tall agenda sits below the fold. */
    .cal-panel { max-height: calc(100vh - var(--header-h, 0px) - 32px); overflow: auto; }
    aside h2 { font-family: 'Quicksand', system-ui, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin: 0 0 10px; }
    .ledger-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); }
    .ledger-row:last-child { border-bottom: 0; }
    .ledger-row .h { font-variant-numeric: tabular-nums; }
    .total { margin-top: 10px; font-weight: 700; display: flex; justify-content: space-between; }
    .empty, .err { color: var(--muted); padding: 8px 0; }
    .err { color: var(--err); }
    /* scope toggle */
    .scopebar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
    button.scope {
      padding: 6px 14px; font-size: 13px; font-weight: 600; border-radius: 999px;
      background: transparent; color: var(--muted); border: 1px solid var(--line);
    }
    button.scope:hover { color: var(--text); border-color: var(--muted); background: transparent; }
    button.scope.active { color: #fff; background: var(--accent); border-color: var(--accent); }
    /* small secondary buttons (save tags / mark active) */
    .btn-sm {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 7px 13px; font-size: 13px; font-weight: 600; border-radius: 8px;
      background: transparent; color: var(--accent); border: 1px solid var(--accent);
      text-decoration: none; cursor: pointer; box-sizing: border-box;
    }
    .btn-sm:hover { background: rgba(90,45,138,0.10); }
    .btn-sm:disabled { opacity: .5; }
    .btn-sm.primary { background: var(--accent); color: #fff; }
    .btn-sm.primary:hover { filter: brightness(1.08); background: var(--accent); }
    /* card head-right + active pill */
    .headl { min-width: 0; }
    .head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
    .card-menu { position: relative; }
    .kebab {
      width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 19px; line-height: 1;
      background: transparent; border: 1px solid var(--line); color: var(--muted);
      display: inline-flex; align-items: center; justify-content: center;
    }
    .kebab:hover, .kebab[aria-expanded="true"] { border-color: var(--brand-bright); color: var(--text); }
    .card-menu .menu {
      position: absolute; right: 0; top: 38px; z-index: var(--z-menu); min-width: 178px;
      background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
      box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px;
    }
    .card-menu .menu[hidden] { display: none; }
    .menu .mi {
      text-align: left; background: transparent; border: 0; color: var(--text);
      padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; white-space: nowrap;
    }
    .menu .mi:hover { background: var(--panel-2); }
    .menu .mi:disabled { opacity: .5; cursor: default; }
    .menu .mi.danger { color: var(--err); }
    .menu .mi.complete.confirm { background: var(--err); color: #fff; }
    .menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }
    /* read-only (inactive) card body */
    .ro-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
    .ro-row { display: flex; gap: 12px; align-items: baseline; }
    .ro-label { color: var(--muted); font-size: 13px; min-width: 124px; flex-shrink: 0; }
    .ro-val { color: var(--text); font-size: 14px; }
    .ro-row.ro-desc { flex-direction: column; gap: 6px; }
    .ro-desc .ro-label { min-width: 0; }
    .ro-val.desc {
      background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
      padding: 10px 12px; line-height: 1.45;
    }
    .ro-val.desc :first-child { margin-top: 0; }
    .ro-val.desc :last-child { margin-bottom: 0; }
    .ro-val .muted, .muted { color: var(--muted); }
    .ro-hint {
      margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
      color: var(--muted); font-size: 13px;
    }
    /* The confirm state of Complete: a warning tone, so it reads from --warn rather than three
       separately-chosen ambers that no longer match each other or the theme. */
    button.btn-sm.complete.confirm {
      color: var(--warn);
      border-color: color-mix(in srgb, var(--warn) 55%, transparent);
      background: color-mix(in srgb, var(--warn) 14%, transparent);
    }
    /* editable tags */
    .tags-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
    .tags-row .tlabel { color: var(--muted); font-size: 13px; }
    input.tags {
      flex: 1; min-width: 160px; font: inherit;
      background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
      border-radius: 8px; padding: 8px 10px;
    }
    input.tags:focus { outline: none; border-color: var(--accent); }
    .tags-status { font-size: 12px; color: var(--muted); }
    .tags-status.ok { color: var(--ok); }
    .tags-status.err { color: var(--err); }

    /* comment-history modal */
    .overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.45);
      display: flex; align-items: center; justify-content: center; z-index: var(--z-overlay); padding: 20px;
    }
    .overlay[hidden] { display: none; }
    .modal {
      background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
      box-shadow: var(--shadow); width: min(680px, 100%); max-height: 80vh;
      display: flex; flex-direction: column; overflow: hidden;
    }
    .modal-head {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 15px 18px; border-bottom: 1px solid var(--line);
    }
    .modal-head h3 { margin: 0; font-family: 'Quicksand', system-ui, sans-serif; color: var(--brand); font-size: 16px; }
    /* Header text column: breadcrumb over title. min-width lets long titles ellipsize instead of
       pushing the close button out of the header. */
    .cd-head-text { min-width: 0; flex: 1; }
    /* Rename affordance in the modal title. Understated until hovered — the title is the heading, not
       a control, so the pencil shouldn't compete with it. */
    .cd-rename { border: none; background: transparent; color: var(--muted); cursor: pointer;
      font: inherit; font-size: 12px; line-height: 1; padding: 2px 4px; border-radius: 5px;
      vertical-align: middle; }
    .cd-rename:hover { background: var(--panel-2); color: var(--text); }
    .cd-rename[hidden] { display: none; }
    .cd-title-input { font-family: 'Quicksand', system-ui, sans-serif; font-size: 16px;
      font-weight: 600; color: var(--text); background: var(--panel-2);
      border: 1px solid var(--accent); border-radius: 7px; padding: 3px 7px; width: min(38ch, 60vw); }
    /* Same as input.hours: the ring was removed with no replacement, and this field looks like
       static text until it has focus — the state being hidden was the only thing marking it editable. */
    .cd-title-input:focus { outline: none; border-color: var(--accent); }
    .cd-crumbs { margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    button.modal-close {
      background: transparent; color: var(--muted); border: 0; font-size: 24px;
      line-height: 1; cursor: pointer; padding: 0 4px; font-weight: 400;
    }
    button.modal-close:hover { color: var(--brand); background: transparent; }
    .modal-body { padding: 6px 18px 16px; overflow-y: auto; }
    .cmt { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .cmt:last-child { border-bottom: 0; }
    .cmt-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
    .cmt-text { line-height: 1.55; }
    .cmt-management { border-left: 3px solid var(--brand-bright); padding-left: 12px; background: var(--panel-2); border-radius: 6px; }
    .cmt-badge { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; background: var(--brand-bright); vertical-align: middle; }
    .cd-mgmt { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
    .cd-mgmt .cd-note { min-height: 60px; }
    .cd-mgmt .ok { color: var(--ok); font-size: 12px; }
    .cd-mgmt .err { color: var(--err); font-size: 12px; }
    /* Slice 2: added-environment board sections */
    .env-board { margin-top: 22px; padding-top: 14px; border-top: 2px solid var(--line); }
    .env-board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .env-board-name { font-size: 15px; font-weight: 600; }
    .env-board-ro { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; }
    .env-board-err { font-size: 13px; color: var(--err); }
    .tnode.ro { cursor: default; opacity: 0.92; }
    .tnode.ro:hover { background: transparent; }
    /* Slice 3: env badge in the detail title + env-aware log form */
    .env-pill { font-size: 11px; background: var(--accent-soft, #eef2ff); color: var(--accent, #3b5bdb);
                border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; vertical-align: middle; }
    .cd-log { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
    .cd-hours { width: 120px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
      font: inherit; background: var(--panel); color: var(--text); }
    .cd-note { min-height: 60px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
      font: inherit; resize: vertical; background: var(--panel); color: var(--text); }
    .cd-note::placeholder, .cd-hours::placeholder { color: var(--muted); }
    .cd-log-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .cd-workdate { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
      background: var(--panel); color: var(--text); }
    .cd-preview { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line);
      border-radius: 8px; padding: 10px; background: var(--panel-2); }
    .cd-preview[hidden] { display: none; }
    .cd-preview .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
    .cd-preview-actions { display: flex; gap: 8px; }
    .cd-log-result { font-size: 13px; min-height: 1em; }
    .cd-log-result.ok { color: var(--ok); }
    .cd-log-result.err { color: var(--err); }
    .cmt-move { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: 11px; font-family: inherit; cursor: pointer; margin-left: 8px; }
    .cmt-move:hover { border-color: var(--brand); color: var(--brand); }
    .cmt-move-ui { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; background: var(--panel-2, rgba(127,127,127,0.06)); border-radius: 8px; }
    .cmt-move-ui[hidden] { display: none; }   /* re-assert so `hidden` wins over the class display */
    .cmt-move-ui select { flex: 1; min-width: 180px; padding: 6px 8px; font-family: inherit; }
    .cmt-move-ui .cmt-move-status { flex-basis: 100%; font-size: 12px; }
    .cmt-move-ui .cmt-move-status.err { color: var(--err); }
    .cmt-move-ui .cmt-move-status.ok { color: var(--ok); }
    .cmt-text h4 { margin: 10px 0 4px; color: var(--brand); font-size: 14px; }
    .cmt-text a, .cmt-text a:visited { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
    .cmt-text a:hover { text-decoration: none; }

    .form-row { margin: 14px 0; }
    .form-row > label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
    .form-row input[type="text"], .form-row select, .form-row textarea {
      width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; font-size: 14px;
      background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-family: inherit;
    }
    .form-row textarea { resize: vertical; min-height: 68px; }
    .form-row input[type="text"]:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
    .form-grid { display: flex; gap: 12px; }
    .form-grid .form-row { flex: 1; }
    .form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
    .form-check { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; }
    .form-check input { width: 16px; height: 16px; accent-color: var(--accent); }
    .form-check label { font-size: 14px; color: var(--text); }
    .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
    .form-actions button { font-size: 14px; }
    .btn-secondary { background: var(--panel-2); color: var(--brand); border: 1px solid var(--line);
      text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
    .btn-secondary:hover { background: var(--panel-2); border-color: var(--muted); }
    .btn-secondary[hidden] { display: none; }
    .btn-sm[hidden] { display: none; }
    .nc-error { color: var(--err); font-size: 13px; margin-top: 12px; min-height: 1em; }

    .reminder-toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: var(--z-overlay); max-width: min(360px, 90vw); }
    .reminder-toast { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brand-bright); border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.28); animation: toastin .18s ease-out; }
    .reminder-toast .rt-top { display: flex; align-items: baseline; gap: 8px; }
    .reminder-toast .rt-title { font-weight: 650; color: var(--text); flex: 1; }
    .reminder-toast .rt-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
    .reminder-toast .rt-body { font-size: 13px; color: var(--muted); margin-top: 3px; }
    /* A problem toast is also recorded on the bell, so the accent colour doubles as the hint that
       this one was kept rather than being purely transient. */
    .reminder-toast.warn { border-left-color: var(--warn, #b5790a); }
    .reminder-toast.error { border-left-color: var(--err, #c0392b); }
    .reminder-toast .rt-join { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
    @keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    .switch-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
    .update-banner { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-top); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 14px; background: var(--brand); color: #fff; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
    .update-banner[hidden] { display: none; }   /* class rule sets display:flex, which beats the UA [hidden] rule — re-assert it here so `hidden` actually hides */
    .update-reload { background: #fff; color: var(--brand-deep); border: none; border-radius: 6px; padding: 5px 12px; font-weight: 650; cursor: pointer; }
    .update-reload:hover { opacity: .92; }
    .update-dismiss { position: absolute; right: 12px; background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .8; }
    .update-dismiss:hover { opacity: 1; }