/* Review desk and Settings > Accounts (23 Oct 2026, handoff 083865a1). Ported from the MailMan Review artifact (source/mailman-review-artifact.html).
   Everything is scoped under .rv so it cannot change other pages. Colours come from Hestia's own tokens (css/base.css). */
.rv{
  --surface:var(--panel);--surface-2:var(--panel2);--ink:var(--text);--ink-2:var(--muted);
  --accent-ink:#13201a;--good:var(--ok);--good-bg:rgba(145,198,163,.14);--warn-bg:rgba(212,165,92,.15);
  --crit:var(--bad);--crit-bg:rgba(217,144,144,.14);--font-mono:ui-monospace,"SFMono-Regular",Menlo,monospace;
  display:flex;flex-direction:column;gap:20px;min-width:0;color:var(--text);font-size:15px;line-height:1.5;color-scheme:dark;
}
.rv .mailtext{font-family:inherit}
.rv .meta dd{font-family:var(--font-mono)}
.rv-page{display:flex;flex-direction:column;gap:20px;max-width:820px;min-width:0}
.rv .rv-panel{display:flex;flex-direction:column;gap:20px;min-width:0}
.rv .rv-panel[hidden],.rv-agent[hidden]{display:none}
.rv .rv-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.rv .linkbtn{display:inline-flex;align-items:center;min-height:40px;padding:9px 14px;border-radius:8px;border:1px solid var(--line);color:var(--ink);text-decoration:none}
.rv .linkbtn:hover{border-color:var(--accent)}
.rv a{color:var(--accent-strong)}
.rv h2{margin:0}
.rv input[type=text],.rv textarea,.rv select{background:#0e1411;color:var(--ink);border-color:var(--line)}
.rv input[type=checkbox]{accent-color:var(--accent)}
.rv-accounts{max-width:820px}
.rv-agent{min-width:0}
@media (max-width:640px){.rv{font-size:15px}}
.rv h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0; }
.rv .sub { color: var(--ink-2); font-size: 13px; margin: 2px 0 0; }
.rv .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv .chip { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.rv .chip.on { background: var(--good-bg); color: var(--good); border-color: transparent; }
.rv .chip.off { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.rv button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 14px; min-height: 40px; }
.rv button:hover { border-color: var(--accent); }
.rv button:focus-visible,
.rv textarea:focus-visible,
.rv input:focus-visible,
.rv summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.rv button.quiet { background: transparent; }
.rv button[disabled] { opacity: 0.55; cursor: default; }
.rv .stack { display: flex; flex-direction: column; gap: 14px; }
.rv .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv .mail { background: var(--surface-2); border-radius: 8px; padding: 12px; min-width: 0; }
.rv .meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; color: var(--ink-2); }
.rv .meta dt { margin: 0; }
.rv .meta dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.rv .subject { font-weight: 600; margin: 8px 0 6px; overflow-wrap: anywhere; }
.rv .mailtext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin: 0; max-height: 11em; overflow: auto; }
.rv .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 6px; }
.rv input[type="text"] { min-height: 44px; }
.rv textarea { min-height: 9.5em; }
.rv input[type="text"],
.rv textarea { width: 100%; resize: vertical; font: inherit; font-size: 15px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.rv .route { font-size: 13.5px; color: var(--ink-2); }
.rv .route b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.rv .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv .note { font-size: 13.5px; padding: 8px 12px; border-radius: 8px; }
.rv .note.good { background: var(--good-bg); color: var(--good); }
.rv .note.warn { background: var(--warn-bg); color: var(--warn); }
.rv .note.crit { background: var(--crit-bg); color: var(--crit); }
.rv .note.info { background: var(--surface-2); color: var(--ink-2); }
.rv .empty { padding: 22px 16px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.rv .recent { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rv .recent details { border-top: 1px solid var(--line); padding: 10px 14px; }
.rv .recent details:first-child { border-top: 0; }
.rv .recent summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.rv .recent .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin: 10px 0 4px; color: var(--ink-2); }
.rv .state { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.rv .state.sent { background: var(--good-bg); color: var(--good); }
.rv .state.approved { background: var(--warn-bg); color: var(--warn); }
.rv .state.rejected { background: var(--surface-2); color: var(--ink-2); }
.rv .state.posted { background: var(--good-bg); color: var(--good); }
.rv .state.scheduled,
.rv .state.drafted { background: var(--good-bg); color: var(--good); }
.rv .state.lapsed { background: var(--surface-2); color: var(--ink-2); }
.rv .small { font-size: 12.5px; color: var(--ink-2); }
.rv .small.bad { color: var(--crit); font-weight: 600; }
.rv .count { display: inline-block; min-width: 1.7em; text-align: center; font-size: 12px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rv .count.hot { background: var(--accent); color: var(--accent-ink); }
.rv .thead { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rv pre.tweet { max-height: none; font-size: 15px; font-family: var(--font-body); }
.rv .findings { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.rv .findings li span { color: var(--ink-2); }
.rv .num { font-variant-numeric: tabular-nums; }
.rv .rsec { display: flex; flex-direction: column; gap: 6px; }
.rv .rsec h3 { font-size: 14px; font-weight: 600; margin: 0; }
.rv .unread { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.rv .fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) {
  .rv .fields { grid-template-columns: 1fr 1fr; }
  .rv .fields .wide { grid-column: 1 / -1; }
}
.rv .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rv .field .label { margin: 0; }
.rv select { font: inherit; font-size: 15px; min-height: 44px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.rv .acct-title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rv .acct-title h3 { font-size: 16px; font-weight: 600; margin: 0; }
.rv .state.needs_login,
.rv .state.needs_connect { background: var(--crit-bg); color: var(--crit); }
.rv .state.active { background: var(--good-bg); color: var(--good); }
.rv .state.unused,
.rv .state.retired { background: var(--surface-2); color: var(--ink-2); }
.rv .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: s 0.8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes s { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rv .spin { animation: none; }
}
@media (max-width: 460px) {
  .rv .actions button { flex: 1 1 100%; }
}
.rv .tick { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: 14.5px; cursor: pointer; }
.rv .tick input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.rv .ed-change { display: grid; gap: 6px; }
.rv .ed-change textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 80px; resize: vertical; }
.rv .note .actions { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.rv button.chip { font: inherit; font-size: 12.5px; cursor: pointer; min-height: 32px; }
.rv .ed-audio { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.rv .ed-job { display: grid; gap: 4px; }
.rv .ed-job audio { width: 100%; }
.rv .card-link { text-decoration: none; color: inherit; display: block; }
.rv .tl-results { margin-top: 10px; }
.rv .tl-result { padding: 6px 0; border-top: 1px solid var(--line, rgba(128,128,128,.25)); }
.rv .ed-stories, .rv .ed-tips { margin-top: 10px; }
.rv .ed-bullets { margin: 4px 0 0; padding-left: 18px; }
.rv .ed-bullets li { margin: 2px 0; }
/* Social tab filter (row 14718b03). Phone first: big tap targets, chips wrap, the active chip is filled. */
.rv .soc-filter { display: flex; flex-direction: column; gap: 10px; }
.rv .soc-row { gap: 8px; }
.rv button.soc-chip { min-height: 40px; padding: 6px 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.rv button.soc-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rv .soc-chip .soc-n { font-size: 12px; min-width: 1.6em; text-align: center; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.rv .soc-chip.on .soc-n { background: rgba(0,0,0,.18); color: var(--accent-ink); }
.rv #dec-show .soc-chip, .rv #dec-type .soc-chip { font-weight: 500; font-size: 13.5px; }
.rv #dec-note { margin: 0; }
.rv .dec-plat { display: flex; align-items: center; gap: 8px; }
.rv .dec-plat select { min-height: 40px; }
.rv #dec-attn:empty { display: none; }
.rv .soc-src { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
#dec-sources[hidden], .rv #dec-sources[hidden], .rv #dec-list[hidden], .rv .soc-row[hidden], .rv #dec-list [hidden] { display: none; }
.rv #waiting-cm > section[hidden] { display: none; }
@media (max-width: 460px) {
  .rv button.soc-chip { flex: 1 1 auto; justify-content: center; }
}
/* Replies under other accounts (outbound replies queue, rows 83185542 and 9fd4cee3). Phone first. */
.rv .ob-target { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--ink-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9em; overflow: auto; }
.rv .ob-reply { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.rv textarea.ob-text { min-height: 6em; }
.rv .ob-meter { margin-top: -8px; }
.rv .ob-meter.bad { color: var(--crit); }
.rv .ob-warn[hidden] { display: none; }
.rv .ob-tick, .rv .ob-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.rv .ob-tick input, .rv .ob-switch input { width: 22px; height: 22px; }
.rv .ob-reject { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv .ob-reject select, .rv .ob-bulk select { min-height: 40px; border-radius: 8px; padding: 0 8px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.rv .ob-url { display: flex; gap: 8px; flex-wrap: wrap; }
.rv .ob-url input { flex: 1 1 200px; min-width: 0; }
.rv .ob-usage { gap: 4px; }
.rv .ob-chan { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rv .ob-chan input[type=number] { width: 4.5em; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); padding: 0 8px; font: inherit; background: #0e1411; color: var(--ink); }
.rv .ob-show > h3 { margin: 0; font-size: 15px; }
#set-ob summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; }

/* Editions page (Phase 3 PR 3): one row per edition with a three-step tracker; the full card sits inside the row. */
.rv .ed-show { gap: 8px; margin-top: 14px; }
.rv .ed-show-h { font-size: 16px; margin: 0; color: var(--muted); }
.rv .ed-row { border: 1px solid var(--line); border-radius: 12px; background: rgba(20,27,24,.6); }
.rv .ed-row > .card { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin: 0; }
.rv .ed-row-sum { display: grid; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 44px; }
.rv .ed-row-sum::-webkit-details-marker { display: none; }
.rv .ed-row-d { font-weight: 650; }
.rv .ed-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.rv .ed-step { display: grid; gap: 2px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; }
.rv .ed-step-l { color: var(--muted); }
.rv .ed-step-t { font-weight: 650; }
.rv .ed-step.st-done { border-left-color: #5fae7c; }
.rv .ed-step.st-now { border-left-color: #d4a55c; }
.rv .ed-step.st-wait { border-left-color: var(--line); color: var(--muted); }
.rv .ed-step.st-bad { border-left-color: #d9695f; }
.rv .ed-older { padding: 8px 14px 12px; }
@media (max-width: 640px) { .rv .ed-steps { grid-template-columns: 1fr; } }

/* Decisions list (Phase 4a): the filters wrap on a phone; show and type rows scroll sideways until the filter sheet in 4c. */
@media (max-width:640px){.rv #dec-show,.rv #dec-type{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.rv #dec-show .soc-chip,.rv #dec-type .soc-chip{flex:0 0 auto}}

/* Phase 4c: Decisions split view. Rows on the left, the real card on the right; on a phone the card opens full screen. */
.rv .dec-split { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rv .dec-index { display: flex; flex-direction: column; gap: 6px; }
.rv .dec-rowbtn { display: block; text-align: left; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #27352f); border-radius: 8px; background: var(--surface, #121916); color: inherit; font: inherit; cursor: pointer; }
.rv .dec-rowbtn.on { border-color: var(--ink, #f3f5f2); box-shadow: inset 3px 0 0 var(--ink, #f3f5f2); }
.rv .dec-rt { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.rv .dec-rs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.rv .dec-pane { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; min-width: 0; }
.rv .dec-panebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rv .dec-back { display: none; }
@media (max-width: 899px) {
  .rv .dec-split { display: block; }
  .rv .dec-pane { display: none; }
  .rv .dec-split.dec-open .dec-index { display: none; }
  .rv .dec-split.dec-open .dec-pane { display: block; position: fixed; inset: 0; z-index: 60; max-height: none; padding: 12px 16px 0; background: var(--bg, #0b100e); overflow: auto; }
  .rv .dec-back { display: inline-block; min-height: 44px; }
  .rv .dec-split.dec-open .dec-pane > [data-soc-src]:not(details) { display: flex; flex-direction: column; min-height: calc(100vh - 84px); }
  .rv .dec-pane .dec-sticky { margin-top: auto; }
  .rv .dec-pane .dec-sticky { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg, #0b100e); border-top: 1px solid var(--line, #27352f); z-index: 1; }
  /* Stacking: the full-screen card is z-index 60. The toast and the page banner (errors, "approved") sit above it (70) so a message is never hidden behind the card.
     The banner is pinned to the top edge below the notch; it ignores taps so the Back button under it still works. The toast keeps its own bottom offset, clear of the sticky bar. */
  .toast { z-index: 70; }
  .rv:has(.dec-split.dec-open) #banner:not(:empty) { position: fixed; top: env(safe-area-inset-top, 0px); left: 8px; right: 8px; z-index: 70; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
}

/* Phase 4d: the key hint is for keyboards; hide it on touch screens. */
.rv .dec-keys { margin: 0; color: var(--ink-2); }
@media (pointer: coarse) { .rv .dec-keys { display: none; } }

/* Phase 5: day headings in the history views, outcome labels in All, and the bulk confirm question. */
.rv .dec-day { margin: 10px 0 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.rv .dec-day:first-child { margin-top: 0; }
.rv .dec-rb { display: inline-block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.rv .dec-rb-rejected { color: var(--bad, #e08a8a); }
.rv .dec-confirm { margin: 8px 0; }

/* Fred alerts heading showed with nothing under it: .stack (display:flex) beat the hidden attribute once the strip moved out of the hidden sources. */
.rv .stack[hidden] { display: none; }

/* Loan clips card (handoff row 7be635a6, step 4) */
.rv .lc-card h4 { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.rv .lc-player audio, .rv .lc-player video { display: block; width: 100%; max-width: 100%; margin-bottom: 6px; }
.rv .lc-transcript { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.rv .lc-notetext { white-space: pre-line; overflow-wrap: anywhere; }
.rv .lc-cut { background: var(--warn-bg); color: inherit; padding: 1px 2px; border-radius: 3px; }
.rv .lc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rv .lc-choices button[aria-pressed="true"] { cursor: default; }
.rv .lc-flag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv .lc-editor { border: 1px solid var(--line, #d8d8d8); border-radius: 8px; padding: 6px 10px; }
.rv .lc-editor > summary { cursor: pointer; padding: 4px 0; }
.rv .lc-words { margin: 6px 0; line-height: 2.1; }
.rv .lc-word { font: inherit; padding: 2px 5px; margin: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; min-height: 32px; }
.rv .lc-word.on { background: var(--warn-bg); border-color: var(--line, #d8d8d8); }
.rv .lc-nudge, .rv .lc-cutsave { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.rv .lc-preview audio { display: block; width: 100%; margin-bottom: 6px; }
.rv .lc-nopub { color: var(--ink-2); }
.rv .lc-decided > summary { cursor: pointer; padding: 6px 0; }
.rv .lc-bigbtn { min-height: 48px; padding: 0 22px; font-size: 16px; font-weight: 700; }
.rv .lc-linkmaker { display: grid; gap: 8px; }
/* USE THIS STORY (redesign phase 10a/10b): the warning dialog, the overrides list on an edition card and where each override was honoured. */
.rv .mlso-list { display: grid; gap: 6px; margin-top: 10px; }
.rv .mlso-has { margin-top: 6px; color: var(--warn); }
.rv .mlso-honoured { margin-top: 4px; color: var(--good); }
.rv .mlso-dialog { max-width: 580px; width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border: 1px solid var(--warn); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; }
.rv .mlso-dialog:not([open]) { display: none; }
.rv .mlso-dialog::backdrop { background: rgba(0,0,0,.6); }
.rv .mlso-dialog h3 { margin: 0; font-size: 20px; }
.rv .mlso-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.rv .mlso-lead { margin: 0; }
.rv .mlso-rules { display: grid; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.rv .mlso-rule { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.rv .mlso-rule:first-child { border-top: 0; }
.rv .mlso-rule input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.rv .mlso-pill { flex: none; font-size: 12.5px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.rv .mlso-rule.hit .mlso-pill { border-color: var(--warn); color: var(--warn); }
.rv .mlso-why { display: grid; }
.rv .mlso-dialog textarea { width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 72px; resize: vertical; box-sizing: border-box; }
.rv .mlso-will { color: var(--ink-2); }
.rv .mlso-msg { display: grid; gap: 6px; }
