/* ═══════════════════════════════════════════════════════════════════════════
   Services ▸ Sheets ▸ REPORTING SECTION — studio stylesheet
   (feature rsx-1, 2026-11-20 · rsx-2 EXECUTIVE ALIGNMENT, 2026-11-20, MACE)
   ═══════════════════════════════════════════════════════════════════════════
   MACE (rsx-2): "i align mo sa Services ▸ Sheets ▸ Smart Dashboard ▸ Executive
   … dapat walang generic output, align sa Executive 100%".

   HOW THE ALIGNMENT IS KEPT TRUE
     1. THE TOKENS ARE A MIRROR. Every --rsx-X below that the Executive also has
        carries the SAME value as --dx-X in services-delivery.css, in BOTH
        ramps (dark baseline + :root[data-svc-theme="light"]). The suite parses
        both files and fails on any drift — change the Executive, change this.
     2. THE COMPONENTS ARE THE EXECUTIVE'S. Navy header bars over white bodies
        (4-px corners), KPI tiles with round icon discs, Segoe UI type, the
        brand band, the filter row of 32-px selects, the navy-filled tab row,
        the register tables, the definitions box, the dialog with a navy head.
     3. COLOUR JOBS ARE THE EXECUTIVE'S: state (open blues · closed greens ·
        blank grey), rank (one hue by position), polarity (aging green → red),
        magnitude (heat, one hue). Gold is brand / action only — never data.

   Loaded by services.html (owner studio, a full-screen overlay) AND by
   reporting_section.html (the password-gated link). It reads NO `--sc-*`
   token — the public page has no workspace stylesheet. PAIRED TOKENS: a fill
   that carries text has its own ink (head / on-head, accent / on-accent, ico /
   on-ico, a slice / on-seg). No @page rule (it would turn every print of the
   host page landscape); print rules live under body.rsx-printing only.
   ═══════════════════════════════════════════════════════════════════════════ */

.rsx-root {
  /* ── mirror of the Executive ramp (services-delivery.css :root) ── */
  --rsx-card: #131315;
  --rsx-card-2: #1B1B1E;
  --rsx-well: #0F0F11;
  --rsx-line: #2A2A2D;
  --rsx-line-2: #3A3A40;
  --rsx-text: #F2F4F7;
  --rsx-text-2: #CFD6E0;
  --rsx-dim: #A8B0BE;
  --rsx-accent: #E8C46A;
  --rsx-on-accent: #1A1405;
  --rsx-head: #163A6E;
  --rsx-on-head: #FFFFFF;
  --rsx-brand: #8FB4F2;
  --rsx-kpi: #1B1B1E;
  --rsx-ico: #2A5BA8;
  --rsx-on-ico: #FFFFFF;
  --rsx-on-seg: #FFFFFF;
  --rsx-b-b0: #199E4A;
  --rsx-b-b1: #6FA8E0;
  --rsx-b-b2: #3987E5;
  --rsx-b-b3: #F08A3C;
  --rsx-b-b4: #E66767;
  --rsx-r0: #3987E5;
  --rsx-r1: #6FA8E0;
  --rsx-r2: #8FB4E6;
  --rsx-r3: #A9C4EA;
  --rsx-rx: #8B93A1;
  --rsx-h-1: rgba(57, 135, 229, 0.16);
  --rsx-h-2: rgba(57, 135, 229, 0.28);
  --rsx-h-3: rgba(57, 135, 229, 0.42);
  --rsx-h-4: rgba(57, 135, 229, 0.58);
  --rsx-h-5: rgba(57, 135, 229, 0.76);
  --rsx-series: #5B9BEA;
  --rsx-f-opened: #3987E5;
  --rsx-f-closed: #199E70;
  --rsx-target: #C4CBD6;
  --rsx-good: #6FD3A6;
  --rsx-warn: #F0B866;
  --rsx-bad: #F28B8B;
  --rsx-good-bg: rgba(25, 158, 112, 0.16);
  --rsx-warn-bg: rgba(240, 184, 102, 0.14);
  --rsx-bad-bg: rgba(230, 103, 103, 0.16);
  --rsx-tip-bg: #F2F4F7;
  --rsx-tip-ink: #111316;
  --rsx-veil: rgba(7, 7, 10, 0.66);
  --rsx-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  /* ── the studio's own (the Executive's page + toolbar chrome) ── */
  --rsx-bg: #0B0B0C;
  --rsx-bar: #0F0F11;
  --rsx-seg-bg: #0B0B0C;
  --rsx-seg-line: #303035;
  --rsx-seg-on: linear-gradient(135deg, #E8C46A, #C9A84C);
  --rsx-on-seg-on: #0A0B0D;
  --rsx-tint: rgba(232, 196, 106, 0.08);
  --rsx-tint-2: rgba(232, 196, 106, 0.38);
  --rsx-info: #8FB4F2;
  --rsx-info-bg: rgba(143, 180, 242, 0.12);
  --rsx-focus: #E8C46A;
  --rsx-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* state + identity data colours: white ink on every one passes AA (suite) */
  --rsx-s-open-1: #2F6FCB;
  --rsx-s-open-2: #3B5FA0;
  --rsx-s-open-3: #5470A8;
  --rsx-s-open-4: #5E6E92;
  --rsx-s-closed-1: #0F7F2A;
  --rsx-s-closed-2: #2E7A47;
  --rsx-s-closed-3: #4E7A2E;
  --rsx-s-none: #6B7686;
  --rsx-c-1: #2F6FCB;
  --rsx-c-2: #BC5008;
  --rsx-c-3: #0F7F2A;
  --rsx-c-4: #6B7686;
  --rsx-c-5: #2D62B8;
  --rsx-c-6: #7A4FB5;
  --rsx-c-7: #13808A;
  --rsx-c-8: #9A6418;
  --rsx-form-color: #2F6FCB;
  --rsx-font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--rsx-text);
  background: var(--rsx-bg);
  font-family: var(--rsx-font);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
/* LIGHT = the Copeland weekly executive dashboard (sdx-3 / svt-5): white that is
   white, navy header bars, navy / orange / green data, green → red aging. */
:root[data-svc-theme="light"] .rsx-root {
  --rsx-card: #FFFFFF;
  --rsx-card-2: #F3F6FA;
  --rsx-well: #EEF2F7;
  --rsx-line: #D5DCE6;
  --rsx-line-2: #B2BDCD;
  --rsx-text: #0B1F3F;
  --rsx-text-2: #1D2939;
  --rsx-dim: #475467;
  --rsx-accent: #0B2F6B;
  --rsx-on-accent: #FFFFFF;
  --rsx-head: #0B2F6B;
  --rsx-on-head: #FFFFFF;
  --rsx-brand: #12409B;
  --rsx-kpi: #F3F6FA;
  --rsx-ico: #0B2F6B;
  --rsx-on-ico: #FFFFFF;
  --rsx-on-seg: #FFFFFF;
  --rsx-b-b0: #0F7F2A;
  --rsx-b-b1: #4F8FD0;
  --rsx-b-b2: #1565C0;
  --rsx-b-b3: #E26F14;
  --rsx-b-b4: #D9252B;
  --rsx-r0: #0B3A82;
  --rsx-r1: #1F6FD1;
  --rsx-r2: #4F8FD0;
  --rsx-r3: #7FA6D6;
  --rsx-rx: #6B7686;
  --rsx-h-1: rgba(21, 101, 192, 0.10);
  --rsx-h-2: rgba(21, 101, 192, 0.20);
  --rsx-h-3: rgba(21, 101, 192, 0.32);
  --rsx-h-4: rgba(21, 101, 192, 0.46);
  --rsx-h-5: rgba(21, 101, 192, 0.60);
  --rsx-series: #0B3A82;
  --rsx-f-opened: #1565C0;
  --rsx-f-closed: #0F7F2A;
  --rsx-target: #475467;
  --rsx-good: #0B6B24;
  --rsx-warn: #9A4A00;
  --rsx-bad: #C81E24;
  --rsx-good-bg: rgba(15, 127, 42, 0.10);
  --rsx-warn-bg: rgba(200, 120, 0, 0.12);
  --rsx-bad-bg: rgba(217, 37, 43, 0.09);
  --rsx-tip-bg: #0B1F3F;
  --rsx-tip-ink: #FFFFFF;
  --rsx-veil: rgba(11, 31, 63, 0.38);
  --rsx-shadow: 0 24px 64px rgba(11, 31, 63, 0.22);
  --rsx-bg: #FFFFFF;
  --rsx-bar: #FFFFFF;
  --rsx-seg-bg: #F4F7FB;
  --rsx-seg-line: #D4DBE6;
  --rsx-seg-on: #0B2F6B;
  --rsx-on-seg-on: #FFFFFF;
  --rsx-tint: #EEF4FC;
  --rsx-tint-2: #DCE8F8;
  --rsx-info: #12409B;
  --rsx-info-bg: rgba(18, 64, 155, 0.08);
  --rsx-focus: #0B2F6B;
  --rsx-shadow-sm: 0 1px 4px rgba(11, 31, 63, 0.08);
  --rsx-s-open-1: #0B3A82;
  --rsx-s-open-2: #1F6FD1;
  --rsx-s-open-3: #3D5A8A;
  --rsx-s-open-4: #5B6F95;
  --rsx-s-closed-1: #0F7F2A;
  --rsx-s-closed-2: #2E6B3F;
  --rsx-s-closed-3: #4C7A2A;
  --rsx-s-none: #5F6B80;
  --rsx-c-1: #0B3A82;
  --rsx-c-2: #BC5008;
  --rsx-c-3: #0F7F2A;
  --rsx-c-4: #5F6B80;
  --rsx-c-5: #1F6FD1;
  --rsx-c-6: #6B3FA0;
  --rsx-c-7: #0E6F78;
  --rsx-c-8: #8A5A12;
  --rsx-form-color: #0B3A82;
  color-scheme: light;
}
.rsx-root *, .rsx-root *::before, .rsx-root *::after { box-sizing: border-box; }
.rsx-root :focus-visible { outline: 2px solid var(--rsx-focus); outline-offset: 2px; }
.rsx-root [hidden] { display: none !important; }
.rsx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rsx-grow { flex: 1 1 auto; }
.rsx-muted { color: var(--rsx-dim); font-size: 12.5px; }
.rsx-mono { font-family: "Cascadia Mono", Consolas, "JetBrains Mono", monospace; letter-spacing: 0.02em; }
.rsx-row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rsx-glyph { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ══ overlay (workspace) + page (public link) ════════════════════════════ */
html.rsx-lock, html.rsx-lock body { overflow: hidden !important; }
.rsx-overlay { position: fixed; inset: 0; z-index: 2147482500; display: flex; background: #0B0B0C; }
:root[data-svc-theme="light"] .rsx-overlay { background: #FFFFFF; }
.rsx-overlay > .rsx-root { flex: 1 1 auto; min-width: 0; height: 100%; animation: rsx-in 0.18s ease-out; }
@keyframes rsx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rsx-page-body { margin: 0; background: #0B0B0C; }
:root[data-svc-theme="light"] .rsx-page-body { background: #FFFFFF; }
.rsx-page-body > .rsx-root { height: 100vh; height: 100dvh; }

/* ══ toolbar — the Executive dashboard toolbar ═══════════════════════════ */
.rsx-head {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 9px 22px; background: var(--rsx-bar); border-bottom: 1px solid var(--rsx-line); box-shadow: inset 0 3px 0 var(--rsx-head);
}
.rsx-head-l { display: flex; flex: 1 1 260px; align-items: center; gap: 10px; min-width: 0; }
.rsx-head-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; color: var(--rsx-on-ico); background: var(--rsx-ico); }
.rsx-head-mark .rsx-glyph { width: 16px; height: 16px; }
.rsx-head-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; min-width: 0; }
.rsx-head-name { font-size: 15px; font-weight: 800; line-height: 1.1; color: var(--rsx-text); white-space: nowrap; }
.rsx-head-crumb { min-width: 0; font-size: 11.5px; font-weight: 500; color: var(--rsx-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsx-head-crumb::before { content: '·'; margin-right: 9px; color: var(--rsx-dim); }
/* the view switcher = the Executive's segmented control (chosen = navy pill; gold in dark) */
.rsx-tabs { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px; background: var(--rsx-seg-bg); border: 1px solid var(--rsx-seg-line); border-radius: 11px; }
.rsx-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--rsx-dim); font: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; transition: background 0.14s, color 0.14s;
}
.rsx-tab:hover { color: var(--rsx-text); background: var(--rsx-card-2); }
.rsx-tab[aria-selected="true"] { background: var(--rsx-seg-on); color: var(--rsx-on-seg-on); }
.rsx-tab .rsx-glyph { width: 14px; height: 14px; }
.rsx-tab-n:not(:empty) { min-width: 20px; padding: 2px 6px; font-size: 10.5px; font-weight: 800; text-align: center; border-radius: 999px; background: var(--rsx-card-2); color: var(--rsx-text-2); }
.rsx-tab[aria-selected="true"] .rsx-tab-n { background: rgba(255, 255, 255, 0.22); color: var(--rsx-on-seg-on); }
.rsx-head-r { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex-wrap: wrap; }
.rsx-head .rsx-btn { height: 34px; padding: 0 13px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.rsx-head .rsx-btn-ghost { border-color: var(--rsx-seg-line); }
.rsx-head .rsx-close, .rsx-head .rsx-theme { width: 34px; padding: 0; }
.rsx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--rsx-dim); white-space: nowrap; }
.rsx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rsx-good); box-shadow: 0 0 0 3px var(--rsx-good-bg); }
.rsx-live.is-stale .rsx-live-dot { background: var(--rsx-warn); box-shadow: 0 0 0 3px var(--rsx-warn-bg); }
.rsx-refresh.is-spin .rsx-glyph { animation: rsx-spin 0.8s linear infinite; }
@keyframes rsx-spin { to { transform: rotate(360deg); } }
.rsx-dirty-chip { padding: 3px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; color: var(--rsx-warn); background: var(--rsx-warn-bg); border-radius: 999px; }
.rsx-share-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rsx-rx); }
.rsx-share-dot.is-on { background: var(--rsx-good); box-shadow: 0 0 0 3px var(--rsx-good-bg); }
.rsx-share-state { font-weight: 800; color: var(--rsx-good); }
.rsx-user { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; padding: 0 11px; height: 34px; font-size: 12px; font-weight: 700; color: var(--rsx-text); background: var(--rsx-card-2); border: 1px solid var(--rsx-seg-line); border-radius: 9px; }
.rsx-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══ the board (one scrolling page) + its header ═════════════════════════ */
.rsx-body { flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; background: var(--rsx-bg); }
.rsx-board { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 1720px; margin: 0 auto; padding: 14px 24px 34px; }
.rsx-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rsx-panel[hidden] { display: none !important; }
.rsx-hero { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* brand band */
.rsx-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 2px 2px 0; }
.rsx-brand-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rsx-brand-name { font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif; font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: 0.055em; color: var(--rsx-brand); white-space: nowrap; }
.rsx-brand-rule { display: block; flex: 0 0 auto; width: 1px; height: 26px; background: var(--rsx-line-2); }
.rsx-brand-tag { display: flex; flex-direction: column; gap: 2px; font-size: 8.5px; font-weight: 700; line-height: 1.15; letter-spacing: 0.16em; color: var(--rsx-text-2); }
.rsx-brand-pillars { display: flex; align-items: center; gap: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--rsx-dim); }
.rsx-brand-bar { display: block; width: 1px; height: 12px; background: var(--rsx-line-2); }
/* title + subtitle + as-of + notes */
.rsx-hero-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; }
.rsx-hero-text { flex: 1 1 420px; min-width: 0; }
.rsx-title { margin: 0; font-size: 31px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.15; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-subtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 5px; font-size: 17px; color: var(--rsx-text-2); }
.rsx-sep { color: var(--rsx-dim); }
.rsx-asof { padding: 1px 8px; font-size: 12px; font-weight: 600; color: var(--rsx-dim); border: 1px solid var(--rsx-line); border-radius: 999px; white-space: nowrap; }
.rsx-notes { display: flex; flex-direction: column; gap: 3px; margin: 9px 0 0; padding: 1px 0 1px 11px; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--rsx-text-2); border-left: 3px solid var(--rsx-brand); }
.rsx-notes li { overflow-wrap: anywhere; }
.rsx-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.rsx-hero-hint { font-size: 11.5px; color: var(--rsx-dim); }
/* "Edit header": in-place fields wear the type of the text they replace */
.rsx-hero-edit { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px 14px; background: var(--rsx-card-2); border: 1px dashed var(--rsx-line-2); border-radius: 4px; }
.rsx-brand.is-edit { width: 100%; }
.rsx-brand.is-edit .rsx-brand-rule { height: 44px; }
.rsx-brand.is-edit .rsx-brand-tag { gap: 4px; }
.rsx-edit { min-width: 0; max-width: 100%; height: auto; padding: 3px 7px; font: inherit; color: var(--rsx-text); background: var(--rsx-card); border: 1px dashed var(--rsx-line-2); border-radius: 4px; }
.rsx-edit::placeholder { color: var(--rsx-dim); opacity: 1; }
.rsx-edit:focus { outline: none; border-style: solid; border-color: var(--rsx-accent); }
.rsx-edit.is-brand { width: 230px; font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 0.04em; color: var(--rsx-brand); }
.rsx-edit.is-tag { width: 270px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.rsx-edit.is-pillars { width: 340px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.rsx-edit.is-title { width: min(680px, 100%); font-size: 26px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.2; }
.rsx-edit.is-note { flex: 1 1 auto; font-size: 13.5px; }
.rsx-edit-hint { font-size: 11.5px; color: var(--rsx-dim); }
.rsx-notes-edit { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
.rsx-note-row { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 820px; }
.rsx-hero-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding-top: 4px; border-top: 1px solid var(--rsx-line); }

/* ══ buttons + inputs — the Executive's .svc-dx-ghost / .svc-dx-save ══════ */
.rsx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px;
  font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.rsx-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rsx-btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.rsx-btn-lg { height: 38px; padding: 0 20px; font-size: 13.5px; }
.rsx-btn-block { width: 100%; }
.rsx-btn.is-x { width: 30px; padding: 0; flex: 0 0 auto; }
.rsx-btn-primary, .rsx-btn-accent { color: var(--rsx-on-accent); background: var(--rsx-accent); border-color: var(--rsx-accent); }
.rsx-btn-primary:hover:not(:disabled), .rsx-btn-accent:hover:not(:disabled) { filter: brightness(1.12); }
.rsx-btn-primary.is-dirty { box-shadow: 0 0 0 3px var(--rsx-warn-bg); }
.rsx-btn-ghost { color: var(--rsx-text); background: var(--rsx-card); border-color: var(--rsx-line-2); }
.rsx-btn-ghost:hover:not(:disabled) { border-color: var(--rsx-accent); background: var(--rsx-card-2); }
.rsx-btn-danger { color: var(--rsx-bad); background: var(--rsx-card); border-color: var(--rsx-bad); }
.rsx-btn-danger:hover:not(:disabled) { background: var(--rsx-bad-bg); }
.rsx-btn.is-busy { cursor: progress; }
.rsx-btn.is-fake { pointer-events: none; opacity: 0.75; }
.rsx-iconbtn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--rsx-line-2); border-radius: 4px;
  background: var(--rsx-card); color: var(--rsx-text-2); font-size: 13px; line-height: 1; cursor: pointer;
}
.rsx-iconbtn:hover:not(:disabled) { border-color: var(--rsx-accent); color: var(--rsx-text); background: var(--rsx-card-2); }
.rsx-iconbtn:disabled { opacity: 0.35; cursor: default; }
.rsx-iconbtn.rsx-danger:hover:not(:disabled) { color: var(--rsx-bad); border-color: var(--rsx-bad); }
.rsx-linkbtn { padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--rsx-info); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rsx-input {
  width: 100%; min-height: 34px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--rsx-text); background: var(--rsx-card);
  border: 1px solid var(--rsx-line-2); border-radius: 4px; transition: border-color 0.12s, box-shadow 0.12s;
}
.rsx-input::placeholder { color: var(--rsx-dim); opacity: 1; }
.rsx-input:focus { outline: none; border-color: var(--rsx-accent); box-shadow: 0 0 0 2px var(--rsx-tint-2); }
.rsx-input[readonly], .rsx-input:disabled { background: var(--rsx-card-2); color: var(--rsx-text-2); }
.rsx-input-sm { min-height: 32px; height: 32px; padding: 0 10px; font-size: 12.5px; }
.rsx-input-xs { min-height: 26px; height: 26px; padding: 0 7px; font-size: 12px; }
.rsx-textarea { resize: vertical; min-height: 84px; height: auto; padding: 8px 10px; line-height: 1.45; }
.rsx-select { appearance: auto; width: auto; max-width: 100%; }
.rsx-select.is-choice { font-weight: 700; }
.rsx-select.is-on { border-color: var(--rsx-accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-search { width: 320px; flex: 0 1 320px; min-width: 180px; max-width: 100%; }
/* segmented (Fill · Design) */
.rsx-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--rsx-seg-bg); border: 1px solid var(--rsx-seg-line); border-radius: 11px; }
.rsx-seg-btn { height: 28px; padding: 0 14px; font: inherit; font-size: 12px; font-weight: 600; color: var(--rsx-dim); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.rsx-seg-btn:hover { color: var(--rsx-text); background: var(--rsx-card-2); }
.rsx-seg-btn.is-on { background: var(--rsx-seg-on); color: var(--rsx-on-seg-on); }
/* switch */
.rsx-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.rsx-switch-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rsx-switch-track { position: relative; flex: 0 0 auto; width: 34px; height: 18px; border-radius: 999px; background: var(--rsx-line-2); transition: background 0.15s; }
.rsx-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.rsx-switch-input:checked + .rsx-switch-track { background: var(--rsx-accent); }
.rsx-switch-input:checked + .rsx-switch-track::after { transform: translateX(16px); }
.rsx-switch-input:focus-visible + .rsx-switch-track { outline: 2px solid var(--rsx-focus); outline-offset: 2px; }
.rsx-switch-input:disabled + .rsx-switch-track { opacity: 0.5; }
.rsx-switch-lbl { font-size: 13px; color: var(--rsx-text); }

/* ══ cards — a navy header bar over a white body (the Executive card) ═════ */
.rsx-card { display: flex; flex-direction: column; min-width: 0; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; overflow: hidden; }
.rsx-card-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px 18px; min-width: 0; padding: 8px 16px 9px; background: var(--rsx-head); color: var(--rsx-on-head); }
.rsx-card-title { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--rsx-on-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsx-card-sub { flex: 0 1 auto; min-width: 0; margin-left: auto; font-size: 14px; line-height: 1.3; color: var(--rsx-on-head); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsx-card.is-trend .rsx-card-sub { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.45); }
.rsx-card-head .rsx-btn-ghost, .rsx-card-head .rsx-iconbtn { color: var(--rsx-on-head); background: transparent; border-color: var(--rsx-on-head); }
.rsx-card-head .rsx-btn-ghost:hover:not(:disabled), .rsx-card-head .rsx-iconbtn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: var(--rsx-on-head); }
.rsx-card-head :focus-visible { outline-color: var(--rsx-on-head); }
.rsx-card-body { flex: 1 1 auto; min-width: 0; padding: 12px 16px 14px; }
.rsx-card-body.is-flush { padding: 0; }
.rsx-card-foot { padding: 8px 16px 10px; font-size: 11.5px; line-height: 1.45; color: var(--rsx-dim); background: var(--rsx-card); border-top: 1px solid var(--rsx-line); }
.rsx-section { display: flex; align-items: center; gap: 14px; margin: 4px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-section::after { content: ''; flex: 1; height: 1px; background: var(--rsx-line); }
.rsx-row { display: grid; gap: 14px; align-items: stretch; }
.rsx-row.is-2-1 { grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); }
.rsx-row.is-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rsx-row.is-1 { grid-template-columns: minmax(0, 1fr); }
/* the filter row (period + role selects + chips) */
.rsx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rsx-filters-rule { display: block; width: 1px; height: 20px; background: var(--rsx-line-2); }
.rsx-filter-note { font-size: 12px; color: var(--rsx-dim); white-space: nowrap; }
.rsx-dash-filters .rsx-select { max-width: 230px; text-overflow: ellipsis; }
.rsx-filter-chip.is-on { border-color: var(--rsx-accent); box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-xchip { display: inline-flex; align-items: center; gap: 2px; max-width: 280px; height: 26px; padding: 0 10px; font: inherit; font-size: 11.5px; color: var(--rsx-text-2); background: var(--rsx-card); border: 1px solid var(--rsx-accent); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rsx-xchip strong { font-weight: 800; color: var(--rsx-text); }
/* the page row (Executive Overview · Workload & Breakdown · Records Detail) */
.rsx-dtabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--rsx-line); }
.rsx-dtabs [role="tab"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rsx-dpage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rsx-dpage.is-off { display: none; }
.rsx-dpage-title { display: none; margin: 0; font-size: 16px; font-weight: 700; color: var(--rsx-text); }
.rsx-subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ══ empty states, banners, loading ═════════════════════════════════════ */
.rsx-loading { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 260px; padding: 40px 16px; text-align: center; color: var(--rsx-dim); }
.rsx-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--rsx-line-2); border-top-color: var(--rsx-accent); animation: rsx-spin 0.8s linear infinite; }
.rsx-empty { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 28px auto; padding: 26px 22px; text-align: center; background: var(--rsx-well); border: 1px dashed var(--rsx-line-2); border-radius: 8px; }
.rsx-empty-ico { margin-bottom: 4px; font-size: 30px; }
.rsx-empty h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 800; color: var(--rsx-text); }
.rsx-empty p { margin: 0 0 14px; max-width: 56ch; font-size: 12.5px; color: var(--rsx-dim); }
.rsx-empty-sm { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 16px; text-align: center; font-size: 12.5px; color: var(--rsx-dim); border: 1px dashed var(--rsx-line-2); border-radius: 8px; }
.rsx-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--rsx-text); background: var(--rsx-info-bg); border-left: 3px solid var(--rsx-info); border-radius: 4px; }
.rsx-banner-warn { background: var(--rsx-warn-bg); border-left-color: var(--rsx-warn); }
.rsx-banner-edit { background: var(--rsx-tint); border-left-color: var(--rsx-accent); }

/* ══ Forms — fill ═══════════════════════════════════════════════════════ */
.rsx-subbar .rsx-muted { flex: 1 1 280px; }
.rsx-forms-host { min-width: 0; }
/* rsx-4 F10 — the form takes the room; the SIDE panel (Case card · Recent entries) sits beside it.
   Nothing stacks above the form; has-side is decided per render, so typing never re-flows it. */
.rsx-fill { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.rsx-fill.has-side { grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 460px); }
.rsx-fill-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rsx-fill-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-height: calc(100vh - 124px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 2px; }
.rsx-fill-side[hidden] { display: none; }
.rsx-fill-side > * { flex: 0 0 auto; }                                     /* the panel SCROLLS — its cards never shrink to fit it */
/* the multi-form picker is ONE row of tabs above the form (the Executive's chosen = navy fill) */
.rsx-form-tabs { display: flex; gap: 6px; min-width: 0; padding: 1px 1px 3px; overflow-x: auto; scrollbar-width: none; }
.rsx-form-tabs::-webkit-scrollbar { display: none; }
.rsx-form-pick { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--rsx-text-2); background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; cursor: pointer; white-space: nowrap; }
.rsx-form-pick:hover { color: var(--rsx-text); border-color: var(--rsx-line-2); background: var(--rsx-card-2); }
.rsx-form-pick.is-active { color: var(--rsx-on-head); background: var(--rsx-head); border-color: var(--rsx-head); }
.rsx-form-pick:focus-visible { outline: 2px solid var(--rsx-focus); outline-offset: 2px; }
.rsx-form-pick-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.rsx-form-pick-n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; font-size: 11px; font-weight: 800; color: var(--rsx-dim); background: var(--rsx-card-2); border-radius: 9px; }
.rsx-form-pick.is-active .rsx-form-pick-n { color: var(--rsx-head); background: var(--rsx-on-head); }
.rsx-rail-block { margin-top: 0; }
.rsx-feed { display: flex; flex-direction: column; gap: 9px; margin: 0; list-style: none; }
.rsx-feed li { display: flex; align-items: flex-start; gap: 9px; }
.rsx-feed-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: var(--rsx-f-closed); }
.rsx-feed-dot.is-update { background: var(--rsx-f-opened); }
.rsx-feed-main { font-size: 12.5px; color: var(--rsx-text); }
.rsx-feed-sub { font-size: 11.5px; color: var(--rsx-dim); }
.rsx-fill-stage { min-width: 0; }
.rsx-form-card { max-width: 980px; margin: 0 auto; }
.rsx-fill .rsx-form-card { max-width: none; margin: 0; }                   /* rsx-4 F10 — the form uses the whole column */
.rsx-form-card.is-design { max-width: none; margin: 0; }
.rsx-form-head .rsx-card-title { font-size: 17px; }
.rsx-form-dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--rsx-form-color); box-shadow: 0 0 0 2px var(--rsx-on-head); }
.rsx-form-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 8px; }
.rsx-form-desc { margin: 0; font-size: 13.5px; color: var(--rsx-text-2); white-space: pre-wrap; }
.rsx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; padding: 4px 0 6px; }
.rsx-w-12 { grid-column: span 12; } .rsx-w-8 { grid-column: span 8; } .rsx-w-6 { grid-column: span 6; } .rsx-w-4 { grid-column: span 4; } .rsx-w-3 { grid-column: span 3; }
/* rsx-4 E14 / F14 — every field sits where the owner placed it (--rsx-gc / --rsx-gr = "col / span w", "row / span h");
   a form narrower than STACK_PX (is-stack, set by its own width) stacks in reading order */
.rsx-grid.is-placed > * { grid-column: var(--rsx-gc, auto / span 12); grid-row: var(--rsx-gr, auto); }
.rsx-grid.is-stack > * { grid-column: 1 / -1; grid-row: auto; }
.rsx-grid.is-placed > .rsx-field > .rsx-textarea { flex: 1 1 auto; min-height: 96px; }
.rsx-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rsx-field.rsx-hidden { display: none; }
.rsx-field-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--rsx-text); }
.rsx-req { font-weight: 800; color: var(--rsx-bad); }
.rsx-qb-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; font-size: 10.5px; font-weight: 700; color: var(--rsx-text); background: var(--rsx-card-2); border: 1px solid var(--rsx-accent); border-radius: 4px; white-space: nowrap; }
.rsx-key-badge { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-text-2); background: var(--rsx-card-2); border: 1px solid var(--rsx-line-2); border-radius: 3px; }
.rsx-field-help { font-size: 12px; color: var(--rsx-dim); white-space: pre-wrap; }
.rsx-field-err { font-size: 12px; font-weight: 700; color: var(--rsx-bad); }
.rsx-field.is-invalid .rsx-input { border-color: var(--rsx-bad); box-shadow: 0 0 0 2px var(--rsx-bad-bg); }
.rsx-field.is-locked .rsx-input { background: var(--rsx-well); border-style: dashed; }
.rsx-field.is-locked .rsx-field-label::after { content: "Locked · from QuickBase"; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--rsx-dim); }
.rsx-field-section { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--rsx-line); }
.rsx-section-title { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-section-help { margin: 2px 0 0; font-size: 12.5px; color: var(--rsx-dim); white-space: pre-wrap; }
.rsx-field-divider hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--rsx-line); }
.rsx-note { padding: 10px 12px; font-size: 13px; background: var(--rsx-card-2); border-left: 3px solid var(--rsx-brand); border-radius: 4px; }
.rsx-note p { margin: 4px 0 0; color: var(--rsx-text-2); white-space: pre-wrap; }
.rsx-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.rsx-chip-opt { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.rsx-chip-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rsx-chip-opt span { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--rsx-text-2); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 4px; }
.rsx-chip-opt input:checked + span { color: var(--rsx-on-accent); background: var(--rsx-accent); border-color: var(--rsx-accent); }
.rsx-chip-opt input:focus-visible + span { outline: 2px solid var(--rsx-focus); outline-offset: 2px; }
.rsx-chip-opt input:disabled + span { opacity: 0.6; cursor: default; }
.rsx-rating { display: flex; gap: 4px; }
.rsx-star { width: 32px; height: 32px; font-size: 17px; color: var(--rsx-line-2); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 4px; cursor: pointer; }
.rsx-star.is-on { color: var(--rsx-b-b3); border-color: var(--rsx-b-b3); }
.rsx-star:disabled { opacity: 0.7; cursor: default; }
.rsx-auto-ico { display: inline-flex; color: var(--rsx-dim); }
.rsx-auto { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; font-size: 12.5px; color: var(--rsx-text-2); background: var(--rsx-card-2); border: 1px dashed var(--rsx-line-2); border-radius: 4px; }
.rsx-qb-line { padding: 5px 9px; font-size: 12px; font-weight: 600; color: var(--rsx-text-2); background: var(--rsx-card-2); border-radius: 4px; }
.rsx-qb-line.is-loading { color: var(--rsx-dim); }
.rsx-qb-line.is-loading::before { content: "⟳ "; display: inline-block; animation: rsx-spin 0.9s linear infinite; }
.rsx-qb-line.is-ok { color: var(--rsx-good); background: var(--rsx-good-bg); }
.rsx-qb-line.is-miss { color: var(--rsx-warn); background: var(--rsx-warn-bg); }
.rsx-qb-line.is-error { color: var(--rsx-bad); background: var(--rsx-bad-bg); }
.rsx-dup-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--rsx-text); background: var(--rsx-warn-bg); border-radius: 4px; }
.rsx-dup-ico { font-weight: 800; color: var(--rsx-warn); }
.rsx-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.rsx-form-foot-actions { display: flex; gap: 8px; }
.rsx-draft-chip { font-size: 12px; color: var(--rsx-dim); }
/* success: navy-headed card · check disc · stat-tile receipt */
.rsx-success { max-width: 760px; margin: 0 auto; }
.rsx-fill.has-rail .rsx-success { margin: 0; }
.rsx-success-body { display: flex; flex-direction: column; gap: 14px; }
.rsx-success-lead { display: flex; align-items: center; gap: 14px; }
.rsx-success-msg { margin: 0; font-size: 14px; color: var(--rsx-text-2); }
.rsx-receipt { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.rsx-receipt div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 6px; min-width: 0; }
.rsx-receipt dt { font-size: 11px; font-weight: 600; color: var(--rsx-dim); }
.rsx-receipt dd { margin: 0; font-size: 14px; font-weight: 800; color: var(--rsx-text); word-break: break-word; }
.rsx-success-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rsx-mini-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; padding: 8px 10px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-mini-row span { display: flex; flex-direction: column; min-width: 90px; }
.rsx-mini-row small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-dim); }

/* ══ rsx-3 — the record key decides (update that case's row · a new row) ══
   The key panel under the Case #: UPDATE = the open-state blue (info ramp),
   NEW = the closed-state green (good ramp), each with its own ink on its own
   tint; the change markers ride the action accent with its paired ink. */
.rsx-match { display: flex; align-items: flex-start; gap: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; color: var(--rsx-text); background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-left: 3px solid var(--rsx-line-2); border-radius: 4px; }
.rsx-match.is-update { background: var(--rsx-info-bg); border-color: var(--rsx-line); border-left-color: var(--rsx-info); }
.rsx-match.is-new { background: var(--rsx-good-bg); border-left-color: var(--rsx-good); }
.rsx-match-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; font-size: 15px; font-weight: 800; line-height: 1; border-radius: 50%; color: var(--rsx-on-ico); background: var(--rsx-ico); }
.rsx-match.is-new .rsx-match-ico { color: var(--rsx-on-seg); background: var(--rsx-s-closed-1); }
.rsx-match.is-neutral .rsx-match-ico { color: var(--rsx-on-seg); background: var(--rsx-s-none); font-style: italic; font-family: Georgia, serif; }
.rsx-match-ico .rsx-glyph { width: 14px; height: 14px; }
.rsx-match-txt { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.rsx-match-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsx-info); }
.rsx-match.is-new .rsx-match-kicker { color: var(--rsx-good); }
.rsx-match-main { font-weight: 600; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-match-sub { font-size: 12px; color: var(--rsx-text-2); }
.rsx-chg-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rsx-on-accent); background: var(--rsx-accent); border-radius: 3px; }
.rsx-field.is-changed .rsx-input { border-color: var(--rsx-accent); box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-field.is-changed .rsx-input:focus { box-shadow: inset 3px 0 0 var(--rsx-accent), 0 0 0 2px var(--rsx-tint-2); }
.rsx-field.is-changed .rsx-choices, .rsx-field.is-changed .rsx-rating, .rsx-field.is-changed .rsx-switch { padding-left: 8px; box-shadow: inset 3px 0 0 var(--rsx-accent); border-radius: 2px; }
.rsx-field-help.is-keep { font-style: italic; }
.rsx-form-foot-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rsx-change-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--rsx-dim); background: var(--rsx-card-2); border: 1px dashed var(--rsx-line-2); border-radius: 999px; }
.rsx-change-chip.is-on { color: var(--rsx-text); border: 1px solid var(--rsx-accent); box-shadow: inset 3px 0 0 var(--rsx-accent); }
/* the receipt's before → after list (F8) */
.rsx-diff { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 6px; }
.rsx-diff-head { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-text-2); }
.rsx-diff-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rsx-diff-row { display: grid; grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--rsx-line); }
.rsx-diff-row:first-child { border-top: 0; }
.rsx-diff-col { font-size: 12.5px; font-weight: 700; color: var(--rsx-text-2); overflow-wrap: anywhere; }
.rsx-diff-vals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; font-size: 13px; }
.rsx-diff-from { color: var(--rsx-dim); text-decoration: line-through; text-decoration-color: var(--rsx-line-2); overflow-wrap: anywhere; }
.rsx-diff-arrow { color: var(--rsx-dim); }
.rsx-diff-to { font-weight: 800; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-diff-from.is-empty, .rsx-diff-to.is-empty { font-style: italic; font-weight: 600; text-decoration: none; color: var(--rsx-dim); }
.rsx-diff-row.is-hidden .rsx-diff-to { font-weight: 600; color: var(--rsx-dim); }
/* the owner's QuickBase follow-up (F9) — the notice body and the receipt panel */
.rsx-fu { display: flex; flex-direction: column; gap: 10px; }
.rsx-fu.is-panel { padding: 12px 14px; background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-left: 4px solid var(--rsx-head); border-radius: 6px; }
.rsx-fu-head { display: flex; flex-direction: column; gap: 1px; }
.rsx-fu-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-fu-title { font-size: 15px; font-weight: 700; color: var(--rsx-text); }
.rsx-fu-msg { margin: 0; font-size: 13.5px; color: var(--rsx-text-2); white-space: pre-wrap; }
.rsx-fu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rsx-fu-open { max-width: 100%; }
.rsx-fu-open .rsx-btn-lbl { overflow: hidden; text-overflow: ellipsis; }
.rsx-fu-ext { font-size: 15px; font-weight: 800; }
.rsx-fu-meta { font-size: 11.5px; color: var(--rsx-dim); }
.rsx-fu-state { margin: 0; padding: 6px 10px; font-size: 12.5px; font-weight: 600; border-radius: 4px; }
.rsx-fu-state.is-good { color: var(--rsx-good); background: var(--rsx-good-bg); }
.rsx-fu-state.is-warn { color: var(--rsx-warn); background: var(--rsx-warn-bg); }
.rsx-dlg-fu .rsx-dlg-head { box-shadow: inset 0 -3px 0 var(--rsx-b-b2); }
/* rsx-5 F15 — "OPEN to UPDATE IN QUICKBASE": the receipt's always-on next step, pinned to the
   RIGHT end of the actions row. Fill = the header navy with its PAIRED white ink (--rsx-head /
   --rsx-on-head, both themes); the attention ring rides the orange series (--rsx-b-b3). It blinks
   TWICE on first paint (.is-blink, removed on animationend) — never under reduced motion. */
.rsx-success-actions { align-items: center; }
.rsx-qbo {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 50px; max-width: 100%; padding: 7px 14px 7px 8px;
  color: var(--rsx-on-head); background: var(--rsx-head); border: 1px solid var(--rsx-head); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(11, 47, 107, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font: inherit; text-decoration: none; cursor: pointer; isolation: isolate;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.rsx-qbo::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rsx-b-b3); }
.rsx-qbo:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 10px 24px rgba(11, 47, 107, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.rsx-qbo:active { transform: translateY(0); filter: brightness(0.98); }
.rsx-qbo:focus-visible { outline: 2px solid var(--rsx-b-b3); outline-offset: 3px; }
.rsx-qbo-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 7px; color: var(--rsx-on-head); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.rsx-qbo-ico .rsx-glyph, .rsx-qbo-ext .rsx-glyph { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rsx-qbo-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; }
.rsx-qbo-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rsx-on-head); opacity: 0.82; }
.rsx-qbo-main { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.2; color: var(--rsx-on-head); white-space: nowrap; }
.rsx-qbo-sub { font-size: 11px; font-weight: 600; color: var(--rsx-on-head); opacity: 0.86; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-qbo-ext { display: inline-grid; place-items: center; flex: 0 0 auto; margin-left: 4px; color: var(--rsx-on-head); opacity: 0.9; }
.rsx-qbo.is-opened::before { background: var(--rsx-b-b0); }
.rsx-qbo.is-blink { animation: rsx-qbo-blink 0.62s ease-in-out 0.35s 2; }
@keyframes rsx-qbo-blink {
  0%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(11, 47, 107, 0.22), 0 0 0 0 rgba(240, 138, 60, 0); filter: brightness(1); }
  45% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(11, 47, 107, 0.22), 0 0 0 5px rgba(240, 138, 60, 0.85), 0 0 22px 6px rgba(240, 138, 60, 0.45); filter: brightness(1.28); }
}
.rsx-qbo.is-off { cursor: default; color: var(--rsx-dim); background: var(--rsx-card-2); border: 1px dashed var(--rsx-line-2); box-shadow: none; }
.rsx-qbo.is-off::before { background: var(--rsx-line-2); }
.rsx-qbo.is-off:hover { filter: none; transform: none; }
.rsx-qbo.is-off .rsx-qbo-ico { color: var(--rsx-dim); background: var(--rsx-card); box-shadow: inset 0 0 0 1px var(--rsx-line); }
.rsx-qbo.is-off .rsx-qbo-kicker, .rsx-qbo.is-off .rsx-qbo-main { color: var(--rsx-text-2); opacity: 1; }
.rsx-qbo.is-off .rsx-qbo-sub { color: var(--rsx-dim); opacity: 1; white-space: normal; }
@media (max-width: 640px) {
  .rsx-qbo { margin-left: 0; width: 100%; }
  .rsx-qbo-main { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .rsx-qbo, .rsx-qbo:hover { transition: none; transform: none; }
  .rsx-qbo.is-blink { animation: none; box-shadow: 0 0 0 3px rgba(240, 138, 60, 0.7), 0 6px 18px rgba(11, 47, 107, 0.22); }
}
@media print { .rsx-qbo { display: none; } }
/* the field-level conflict dialog (F7) */
.rsx-conflict { display: flex; flex-direction: column; gap: 10px; }
.rsx-conflict-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-conflict-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rsx-conflict-table th, .rsx-conflict-table td { padding: 7px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--rsx-line); overflow-wrap: anywhere; }
.rsx-conflict-table thead th { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-on-head); background: var(--rsx-head); border-top: 0; }
.rsx-conflict-table tbody th { font-weight: 700; color: var(--rsx-text-2); }
.rsx-conflict-table td.is-theirs { color: var(--rsx-text); background: var(--rsx-warn-bg); }
.rsx-conflict-table td.is-mine { font-weight: 700; color: var(--rsx-text); }
.rsx-i-hint.is-good { color: var(--rsx-text-2); }
.rsx-i-fu .rsx-i-row { margin: 0; }

/* ══ Forms — designer ═══════════════════════════════════════════════════ */
.rsx-builder { display: grid; grid-template-columns: 290px minmax(0, 1fr) 350px; gap: 14px; align-items: start; }
.rsx-b-left, .rsx-b-right { position: sticky; top: 0; max-height: calc(100vh - 110px); overflow: auto; }
.rsx-b-left { display: flex; flex-direction: column; gap: 12px; padding-bottom: 2px; }
.rsx-b-canvas { min-width: 0; padding-bottom: 20px; }
.rsx-b-sect { padding-bottom: 10px; overflow: visible; }
.rsx-b-sect > :not(.rsx-card-head) { margin-left: 10px; margin-right: 10px; }
.rsx-b-sect > .rsx-card-head + * { margin-top: 10px; }
.rsx-b-form { margin-top: 6px; background: var(--rsx-card); border: 1px solid transparent; border-radius: 6px; }
.rsx-b-form.is-active { background: var(--rsx-card-2); border-color: var(--rsx-accent); }
.rsx-b-form.is-paused { opacity: 0.7; }
.rsx-b-form-pick { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; font: inherit; text-align: left; color: var(--rsx-text); background: none; border: 0; cursor: pointer; }
.rsx-b-form-pick::before { content: ''; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--rsx-form-color); }
.rsx-b-form-ico { font-size: 13px; }
.rsx-b-form-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-b-form-n { font-size: 11px; color: var(--rsx-dim); white-space: nowrap; }
.rsx-b-form-tools { display: flex; gap: 4px; padding: 0 9px 8px; }
.rsx-generate { min-height: 36px; }
.rsx-pal-group { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-pal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.rsx-pal-item { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 34px; padding: 6px 8px; font: inherit; font-size: 12px; font-weight: 600; text-align: left; color: var(--rsx-text); background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; cursor: pointer; }
.rsx-pal-item:hover:not(:disabled) { border-color: var(--rsx-accent); background: var(--rsx-tint); }
.rsx-pal-item span:last-child { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
.rsx-pal-ico { flex: 0 0 auto; width: 20px; text-align: center; font-weight: 800; color: var(--rsx-brand); }
.rsx-col-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; font: inherit; font-size: 12.5px; text-align: left; color: var(--rsx-text); background: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.rsx-col-item:hover { background: var(--rsx-card-2); border-color: var(--rsx-line); }
.rsx-col-item.is-used { color: var(--rsx-dim); }
.rsx-col-check { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; font-size: 11px; font-weight: 800; background: var(--rsx-card-2); border: 1px solid var(--rsx-line-2); border-radius: 3px; }
.rsx-col-item.is-used .rsx-col-check { color: var(--rsx-on-ico); background: var(--rsx-f-closed); border-color: var(--rsx-f-closed); }
.rsx-col-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-col-type { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-b-grid { padding: 14px 18px 16px; }
.rsx-bfield { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 9px 11px; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; cursor: pointer; }
.rsx-bfield:hover { border-color: var(--rsx-line-2); background: var(--rsx-card-2); }
.rsx-bfield.is-selected { border-color: var(--rsx-accent); background: var(--rsx-tint); box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-bfield.is-hiddenf { opacity: 0.7; border-style: dashed; }
.rsx-bfield.is-dragging { opacity: 0.4; }
.rsx-bfield.is-drop-before { box-shadow: 0 -3px 0 0 var(--rsx-accent); }
.rsx-bfield.is-drop-after { box-shadow: 0 3px 0 0 var(--rsx-accent); }
.rsx-bfield-top { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 64px; }
.rsx-bfield-ico { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--rsx-brand); background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-bfield-lbl { min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-bfield-prev { pointer-events: none; }
.rsx-prev-input { padding: 6px 9px; font-size: 12.5px; color: var(--rsx-dim); background: var(--rsx-well); border: 1px solid var(--rsx-line); border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-prev-input.is-tall { min-height: 52px; }
.rsx-prev-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.rsx-prev-opts span { padding: 2px 8px; font-size: 11.5px; color: var(--rsx-text-2); border: 1px solid var(--rsx-line-2); border-radius: 4px; }
.rsx-prev-stars { letter-spacing: 2px; color: var(--rsx-b-b3); }
.rsx-prev-section { font-size: 12px; color: var(--rsx-dim); }
.rsx-prev-note { padding: 6px 9px; font-size: 12px; color: var(--rsx-text-2); background: var(--rsx-card-2); border-left: 3px solid var(--rsx-brand); border-radius: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rsx-bfield-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.rsx-bind { max-width: 100%; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--rsx-good); background: var(--rsx-good-bg); border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-bind.is-none { color: var(--rsx-dim); background: var(--rsx-card); border: 1px dashed var(--rsx-line-2); }
.rsx-bind.is-qb { color: var(--rsx-text); background: var(--rsx-card-2); border: 1px solid var(--rsx-accent); }
.rsx-bind.is-w { color: var(--rsx-dim); background: transparent; border: 1px solid var(--rsx-line); }
.rsx-bfield-tools { position: absolute; top: 7px; right: 7px; display: flex; gap: 3px; opacity: 0; transition: opacity 0.12s; }
.rsx-bfield:hover .rsx-bfield-tools, .rsx-bfield.is-selected .rsx-bfield-tools, .rsx-bfield:focus-within .rsx-bfield-tools { opacity: 1; }
.rsx-bfield-tools .rsx-iconbtn { width: 25px; height: 25px; font-size: 12px; }
.rsx-tag { padding: 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-dim); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 3px; }
.rsx-tag-key { color: var(--rsx-text); border-color: var(--rsx-accent); }
.rsx-b-drop-empty { padding: 30px 14px; text-align: center; color: var(--rsx-dim); border: 2px dashed var(--rsx-line-2); border-radius: 6px; }
/* inspector: a card whose head is the navy bar */
.rsx-b-right { background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-i { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.rsx-i-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -14px; padding: 9px 14px; color: var(--rsx-on-head); background: var(--rsx-head); }
.rsx-i-head .rsx-eyebrow { color: var(--rsx-on-head); opacity: 0.82; }
.rsx-i-head .rsx-btn-ghost { color: var(--rsx-on-head); background: transparent; border-color: var(--rsx-on-head); }
.rsx-i-head .rsx-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: var(--rsx-on-head); }
.rsx-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-i-title { font-size: 15px; font-weight: 700; color: var(--rsx-on-head); word-break: break-word; }
.rsx-i-row { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rsx-i-lbl { font-size: 12px; font-weight: 700; color: var(--rsx-text-2); }
.rsx-i-hint { font-size: 11.5px; color: var(--rsx-dim); }
.rsx-i-hint.is-warn { font-weight: 700; color: var(--rsx-warn); }
.rsx-i-pair { display: flex; align-items: flex-start; gap: 8px; }
.rsx-i-pair > * { flex: 1 1 0; min-width: 0; }
.rsx-i-pair > .rsx-btn { flex: 0 0 auto; }
.rsx-i-toggles { display: flex; flex-direction: column; gap: 9px; }
.rsx-i-toggle .rsx-switch-lbl { font-size: 12.5px; }
.rsx-i-group { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-i-group-title { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-text-2); }
.rsx-i-foot { padding-top: 6px; border-top: 1px solid var(--rsx-line); }
.rsx-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.rsx-color { width: 24px; height: 24px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.rsx-color.is-on { border-color: var(--rsx-text); box-shadow: 0 0 0 2px var(--rsx-card); }
.rsx-checks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rsx-checks li { position: relative; padding: 6px 9px 6px 26px; font-size: 12px; color: var(--rsx-text-2); background: var(--rsx-card); border-radius: 4px; }
.rsx-checks li::before { position: absolute; left: 9px; top: 6px; font-weight: 800; }
.rsx-checks li.is-good { background: var(--rsx-good-bg); } .rsx-checks li.is-good::before { content: "✓"; color: var(--rsx-good); }
.rsx-checks li.is-warn { background: var(--rsx-warn-bg); } .rsx-checks li.is-warn::before { content: "!"; color: var(--rsx-warn); }
.rsx-checks li.is-bad { background: var(--rsx-bad-bg); } .rsx-checks li.is-bad::before { content: "✕"; color: var(--rsx-bad); }
.rsx-checks li.is-info { background: var(--rsx-info-bg); } .rsx-checks li.is-info::before { content: "i"; color: var(--rsx-info); }

/* ══ Sheet tab ══════════════════════════════════════════════════════════ */
.rsx-sheet-card { min-height: 0; }
.rsx-sheet-layout { display: flex; min-height: 0; }
.rsx-sheet-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; }
.rsx-table-wrap { flex: 1 1 auto; min-height: 280px; max-height: calc(100vh - 220px); overflow: auto; background: var(--rsx-card); }
.rsx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.rsx-table th, .rsx-table td { max-width: 320px; padding: 7px 9px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.rsx-table td { color: var(--rsx-text-2); border-top: 1px solid var(--rsx-line); }
.rsx-table thead th { position: sticky; top: 0; z-index: 2; padding: 8px 9px 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-dim); background: var(--rsx-card); border-bottom: 1px solid var(--rsx-line-2); }
.rsx-table thead .rsx-filter-row th { top: 33px; z-index: 2; padding: 5px 7px; text-transform: none; letter-spacing: 0; background: var(--rsx-card-2); border-bottom: 1px solid var(--rsx-line); }
.rsx-th-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.rsx-th-btn:hover { color: var(--rsx-text); }
.rsx-th-sort { font-size: 9px; opacity: 0.55; }
[aria-sort="ascending"] .rsx-th-sort, [aria-sort="descending"] .rsx-th-sort { opacity: 1; color: var(--rsx-text); }
[aria-sort="ascending"] .rsx-th-btn, [aria-sort="descending"] .rsx-th-btn { color: var(--rsx-text); }
.rsx-th-tag { font-size: 10px; }
.rsx-table th.is-linkhidden { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--rsx-warn-bg) 6px 12px); }
.rsx-filter-cell { display: flex; gap: 4px; min-width: 120px; }
.rsx-vf-btn { flex: 0 0 auto; min-width: 26px; height: 26px; padding: 0 6px; font: inherit; font-size: 11px; color: var(--rsx-text-2); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 4px; cursor: pointer; }
.rsx-vf-btn.is-on { color: var(--rsx-on-accent); background: var(--rsx-accent); border-color: var(--rsx-accent); }
.rsx-th-num, .rsx-td-num { font-variant-numeric: tabular-nums; }
.rsx-table .rsx-th-num, .rsx-table .rsx-td-num { width: 52px; text-align: right !important; color: var(--rsx-dim); }
.rsx-td-key { font-weight: 800; color: var(--rsx-text) !important; font-variant-numeric: tabular-nums; }
.rsx-tr { cursor: pointer; }
.rsx-tr:hover td { background: var(--rsx-card-2); }
.rsx-tr.is-selected td { background: var(--rsx-tint); }
.rsx-tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-td-empty { padding: 34px !important; text-align: center !important; color: var(--rsx-dim) !important; white-space: normal !important; }
.rsx-state { display: inline-block; max-width: 100%; padding: 1px 8px; font-size: 11.5px; font-weight: 700; vertical-align: middle; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-state-open { color: var(--rsx-info); background: var(--rsx-info-bg); }
.rsx-state-closed { color: var(--rsx-good); background: var(--rsx-good-bg); }
.rsx-state-none { color: var(--rsx-text-2); background: var(--rsx-card-2); border: 1px solid var(--rsx-line); }
.rsx-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rsx-pager { display: flex; flex-wrap: wrap; gap: 4px; }
.rsx-page { min-width: 30px; height: 28px; padding: 0 9px; font: inherit; font-size: 12px; font-weight: 600; color: var(--rsx-text-2); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 4px; cursor: pointer; }
.rsx-page.is-on { font-weight: 800; color: var(--rsx-on-accent); background: var(--rsx-accent); border-color: var(--rsx-accent); }
.rsx-page:disabled { opacity: 0.4; cursor: default; }
.rsx-filter-chip:disabled { opacity: 0.6; }
/* the row drawer: a navy-headed side card */
.rsx-drawer { display: flex; flex: 0 0 380px; flex-direction: column; max-width: 44%; min-height: 0; max-height: calc(100vh - 220px); overflow: auto; background: var(--rsx-card); border-left: 1px solid var(--rsx-line); }
.rsx-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 9px 16px; color: var(--rsx-on-head); background: var(--rsx-head); }
.rsx-drawer-titles { min-width: 0; }
.rsx-drawer-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsx-on-head); opacity: 0.85; }
.rsx-drawer-title { font-size: 15px; font-weight: 600; color: var(--rsx-on-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-drawer-head .rsx-btn-ghost { color: var(--rsx-on-head); background: transparent; border-color: var(--rsx-on-head); }
.rsx-drawer-head .rsx-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: var(--rsx-on-head); }
.rsx-kv { display: flex; flex-direction: column; margin: 0; padding: 6px 16px 4px; }
.rsx-kv-row { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rsx-line); }
.rsx-kv dt { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-dim); word-break: break-word; }
.rsx-kv dd { margin: 0; font-size: 13px; color: var(--rsx-text); word-break: break-word; white-space: pre-wrap; }
.rsx-drawer-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; font-size: 11.5px; color: var(--rsx-dim); }
.rsx-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--rsx-line); }
.rsx-drawer-note { margin: 0; padding: 0 16px 14px; }

/* ══ popover (the Executive card menu) ══════════════════════════════════ */
.rsx-pop { position: absolute; z-index: 40; display: flex; flex-direction: column; gap: 8px; padding: 8px; color: var(--rsx-text); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 8px; box-shadow: var(--rsx-shadow); }
.rsx-pop-title { margin: -2px -2px 0; padding: 4px 6px 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-dim); border-bottom: 1px solid var(--rsx-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-pop-note { margin-top: -2px; font-size: 11.5px; }
.rsx-pop-list { display: flex; flex-direction: column; gap: 1px; max-height: 260px; padding: 4px; overflow: auto; background: var(--rsx-well); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-pop-opt { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 12.5px; border-radius: 4px; cursor: pointer; }
.rsx-pop-opt:hover { background: var(--rsx-card-2); box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-pop-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-pop-n { font-size: 11px; color: var(--rsx-dim); font-variant-numeric: tabular-nums; }
.rsx-pop-quick { gap: 12px; }
.rsx-pop-foot { display: flex; justify-content: flex-end; gap: 8px; }
.rsx-pop-item { display: block; width: 100%; padding: 7px 8px; font: inherit; font-size: 13px; font-weight: 700; text-align: left; color: var(--rsx-text); background: none; border: 0; border-radius: 5px; cursor: pointer; }
.rsx-pop-item:hover { background: var(--rsx-card-2); box-shadow: inset 3px 0 0 var(--rsx-accent); }

/* ══ Smart Dashboard ════════════════════════════════════════════════════ */
.rsx-dash-wrap { display: block; min-width: 0; }
.rsx-dash-wrap.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.rsx-dash-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rsx-dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.rsx-span-12 { grid-column: span 12; } .rsx-span-6 { grid-column: span 6; } .rsx-span-4 { grid-column: span 4; }
/* KPI tiles: icon disc · label · big number + unit · arrow vs. last week */
.rsx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rsx-kpis.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rsx-kpis.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rsx-kpi { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 16px 18px 15px; background: var(--rsx-kpi); border-radius: 6px; }
.rsx-kpi-ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: 1px; border-radius: 50%; background: var(--rsx-ico); }
.rsx-kpi-svg { width: 27px; height: 27px; fill: none; stroke: var(--rsx-on-ico); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rsx-kpi-ico.is-check .rsx-kpi-svg { stroke-width: 2.6; }
.rsx-kpi-main { flex: 1; min-width: 0; }
.rsx-kpi-label { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--rsx-text); }
.rsx-kpi-sub { min-height: 17px; font-size: 12.5px; color: var(--rsx-text-2); }
.rsx-kpi-val { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.rsx-kpi-num { font-size: 41px; font-weight: 700; line-height: 1; letter-spacing: -0.015em; color: var(--rsx-text); font-variant-numeric: tabular-nums; }
.rsx-kpi-unit { font-size: 20px; font-weight: 400; color: var(--rsx-text); }
.rsx-delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-top: 7px; font-size: 12.5px; color: var(--rsx-dim); }
.rsx-delta-arrow { font-size: 15px; line-height: 1; color: var(--rsx-text-2); }
.rsx-delta-num { font-size: 17px; font-weight: 700; line-height: 1; color: var(--rsx-text-2); font-variant-numeric: tabular-nums; }
.rsx-delta-prev { margin-left: 4px; color: var(--rsx-dim); }
.rsx-delta.is-good .rsx-delta-arrow, .rsx-delta.is-good .rsx-delta-num { color: var(--rsx-good); }
.rsx-delta.is-bad .rsx-delta-arrow, .rsx-delta.is-bad .rsx-delta-num { color: var(--rsx-bad); }
.rsx-kpi-note { margin-top: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--rsx-text-2); }
.rsx-kpi-note.is-bad { color: var(--rsx-bad); }
.rsx-kpi-note.is-warn { color: var(--rsx-warn); }
.rsx-kpi-note.is-good { color: var(--rsx-good); }
.rsx-kpi-foot { margin-top: 4px; font-size: 11px; line-height: 1.4; color: var(--rsx-dim); }
/* findings */
.rsx-insights { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rsx-insight { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-tone { padding: 1px 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; color: var(--rsx-text-2); border: 1px solid var(--rsx-line-2); border-radius: 999px; }
.rsx-insight.is-good .rsx-tone { color: var(--rsx-good); background: var(--rsx-good-bg); border-color: transparent; }
.rsx-insight.is-warn .rsx-tone { color: var(--rsx-warn); background: var(--rsx-warn-bg); border-color: transparent; }
.rsx-insight.is-bad .rsx-tone { color: var(--rsx-bad); background: var(--rsx-bad-bg); border-color: transparent; }
.rsx-insight-text { font-size: 12.5px; color: var(--rsx-text); }
/* charts — SVG text is inked with fill (U2) */
.rsx-chart { min-width: 0; }
.rsx-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rsx-grid { stroke: var(--rsx-line); stroke-width: 1; }
.rsx-grid.is-base { stroke: var(--rsx-line-2); }
.rsx-axis { fill: var(--rsx-text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.rsx-axis.is-partial { font-style: italic; }
.rsx-axis-title { fill: var(--rsx-text-2); font-size: 11.5px; font-weight: 600; }
.rsx-legend-text { fill: var(--rsx-text-2); font-size: 12px; }
.rsx-legend-line { fill: none; stroke: var(--rsx-series); stroke-width: 2.4; stroke-linecap: round; }
.rsx-legend-dot { fill: var(--rsx-series); }
.rsx-legend-line2 { fill: none; stroke: var(--rsx-f-closed); stroke-width: 2.2; stroke-dasharray: 5 3; }
.rsx-legend-dot2 { fill: var(--rsx-f-closed); }
.rsx-line { fill: none; stroke: var(--rsx-series); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.rsx-dot { fill: var(--rsx-series); stroke: var(--rsx-card); stroke-width: 1.5; }
.rsx-dot.is-partial { fill: var(--rsx-card); stroke: var(--rsx-series); stroke-width: 2; }
.rsx-line2 { fill: none; stroke: var(--rsx-f-closed); stroke-width: 2; stroke-dasharray: 5 3; stroke-linejoin: round; stroke-linecap: round; }
.rsx-dot2 { fill: var(--rsx-f-closed); stroke: var(--rsx-card); stroke-width: 1.5; }
.rsx-val { fill: var(--rsx-text); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rsx-hit { fill: transparent; }
.rsx-hit:hover { fill: var(--rsx-h-1); }
.rsx-bar { fill: var(--rsx-series); }
.rsx-bar.is-2 { fill: var(--rsx-f-closed); }
.rsx-bar.is-click { cursor: pointer; }
.rsx-root .is-click { cursor: pointer; }
/* donut: counts on the slices, legend at the right */
.rsx-donut { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px 28px; height: 100%; }
.rsx-donut-fig { flex: 0 1 232px; width: 232px; min-width: 150px; }
.rsx-donut-svg { display: block; width: 100%; height: auto; }
.rsx-donut-track { stroke: var(--rsx-well); }
.rsx-seg { transition: opacity 0.15s ease; }
.rsx-seg.is-dim { opacity: 0.28; }
.rsx-seg:hover, .rsx-seg:focus-visible { opacity: 0.82; }
.rsx-seg-num { fill: var(--rsx-on-seg); font-size: 13px; font-weight: 700; pointer-events: none; }
.rsx-seg-pct { fill: var(--rsx-on-seg); font-size: 11.5px; font-weight: 600; pointer-events: none; }
.rsx-donut-num { fill: var(--rsx-text); font-size: 27px; font-weight: 700; }
.rsx-donut-cap { fill: var(--rsx-text-2); font-size: 12px; }
.rsx-legend { display: flex; flex: 0 1 220px; flex-direction: column; gap: 8px; min-width: 0; }
.rsx-legend-row { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 4px 8px; font: inherit; text-align: left; color: var(--rsx-text); background: transparent; border: 1px solid transparent; border-radius: 6px; }
button.rsx-legend-row { cursor: pointer; }
button.rsx-legend-row:hover { background: var(--rsx-card-2); }
.rsx-legend-row.is-active { background: var(--rsx-card-2); border-color: var(--rsx-accent); }
.rsx-swatch { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--rsx-rx); }
.rsx-swatch.is-round { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; }
.rsx-swatch.is-1 { background: var(--rsx-series); }
.rsx-swatch.is-2 { background: var(--rsx-f-closed); }
.rsx-legend-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rsx-legend-lbl { font-size: 14.5px; font-weight: 400; line-height: 1.25; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-legend-num { font-size: 13.5px; color: var(--rsx-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rsx-legend-val { font-weight: 400; }
/* horizontal bars: value at the bar end, a counted axis underneath */
.rsx-hbars { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.rsx-hbar, .rsx-hbar-axisrow { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 52px 0 4px; border-radius: 4px; }
.rsx-hbar.is-click:hover, .rsx-hbar.is-active { background: var(--rsx-card-2); }
.rsx-hbar.is-active { box-shadow: inset 3px 0 0 var(--rsx-accent); }
.rsx-hbar-lbl { font-size: 13.5px; text-align: right; color: var(--rsx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-hbar-track { position: relative; display: flex; align-items: center; height: 24px; border-left: 1px solid var(--rsx-line-2); }
.rsx-hbar-fill { display: flex; flex: 0 0 auto; height: 100%; background: var(--rsx-r0); overflow: hidden; }
.rsx-hbar-fill.is-dim { opacity: 0.3; }
.rsx-hbar-part { display: block; height: 100%; min-width: 2px; }
.rsx-hbar-val { flex: 0 0 auto; padding-left: 9px; font-size: 13px; color: var(--rsx-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rsx-hbar-val b { font-size: 13.5px; font-weight: 700; }
.rsx-hbar-note { font-size: 12px; color: var(--rsx-text-2); }
.rsx-hbar-axisrow { margin-top: -2px; }
.rsx-hbar-axis { position: relative; height: 20px; border-top: 1px solid var(--rsx-line-2); }
.rsx-hbar-tick { position: absolute; top: 4px; transform: translateX(-50%); font-size: 12px; color: var(--rsx-text-2); font-variant-numeric: tabular-nums; }
.rsx-axis-cap { margin-top: 2px; font-size: 12px; text-align: center; color: var(--rsx-text-2); }
/* aging columns on a counted axis */
.rsx-aging { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr); align-items: stretch; gap: 0 6px; }
.rsx-yaxis-cap { align-self: center; margin-bottom: 44px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--rsx-text-2); writing-mode: vertical-rl; transform: rotate(180deg); }
.rsx-yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 178px; margin-top: 22px; }
.rsx-ytick { height: 0; line-height: 0; font-size: 12px; text-align: right; color: var(--rsx-text-2); font-variant-numeric: tabular-nums; }
.rsx-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 18px; padding-left: 4px; }
.rsx-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 22px 0 0; border-radius: 6px; }
.rsx-col.is-click:hover, .rsx-col.is-click:focus-visible { background: var(--rsx-card-2); outline: none; }
.rsx-col.is-first-past::before { content: ''; position: absolute; left: -10px; top: 22px; bottom: 40px; border-left: 1.5px dashed var(--rsx-target); }
.rsx-col-track { position: relative; display: flex; align-items: flex-end; width: 100%; max-width: 86px; height: 178px; border-bottom: 1px solid var(--rsx-line-2); }
.rsx-col-stack { position: relative; width: 100%; }
.rsx-col-val { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 3px; font-size: 14px; font-weight: 700; text-align: center; color: var(--rsx-text); font-variant-numeric: tabular-nums; }
.rsx-col-fill { width: 100%; height: 100%; }
.rsx-col-label { margin-top: 4px; font-size: 13.5px; color: var(--rsx-text); white-space: nowrap; }
.rsx-col-unit { margin-top: -3px; font-size: 12.5px; color: var(--rsx-text-2); }
.rsx-b-b0 { background: var(--rsx-b-b0); } .rsx-b-b1 { background: var(--rsx-b-b1); } .rsx-b-b2 { background: var(--rsx-b-b2); }
.rsx-b-b3 { background: var(--rsx-b-b3); } .rsx-b-b4 { background: var(--rsx-b-b4); }
.rsx-mini-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--rsx-text-2); }
.rsx-mini-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* heat table: one hue, five steps */
.rsx-heat-wrap { overflow-x: auto; }
.rsx-heat { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.rsx-heat th { max-width: 160px; padding: 6px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; color: var(--rsx-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsx-heat thead th:not(:first-child) { text-align: center; }
.rsx-heat tbody th { font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--rsx-text); }
.rsx-heat-cell { height: 40px; min-width: 52px; padding: 0; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--rsx-text); background: var(--rsx-well); border: 2px solid var(--rsx-card); border-radius: 8px; font-variant-numeric: tabular-nums; }
.rsx-heat-cell.rsx-h-0 { font-weight: 400; color: var(--rsx-dim); }
.rsx-heat-cell.rsx-h-1 { background: var(--rsx-h-1); } .rsx-heat-cell.rsx-h-2 { background: var(--rsx-h-2); } .rsx-heat-cell.rsx-h-3 { background: var(--rsx-h-3); }
.rsx-heat-cell.rsx-h-4 { background: var(--rsx-h-4); } .rsx-heat-cell.rsx-h-5 { background: var(--rsx-h-5); }
.rsx-heat-cell.is-click:hover { box-shadow: inset 0 0 0 2px var(--rsx-accent); }
.rsx-heat-total { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--rsx-text-2); }
/* registers (the Executive's case tables) + definitions */
.rsx-registers { display: flex; flex-direction: column; gap: 14px; }
.rsx-tablewrap { overflow-x: auto; }
.rsx-register { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.rsx-register th { padding: 6px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; color: var(--rsx-dim); white-space: nowrap; }
.rsx-register th.is-num { text-align: right; }
.rsx-register td { padding: 7px 9px; color: var(--rsx-text-2); border-top: 1px solid var(--rsx-line); vertical-align: middle; white-space: nowrap; }
.rsx-register td.rsx-td-num { text-align: right; }
.rsx-register tbody tr:hover td { background: var(--rsx-card-2); }
.rsx-caselink { padding: 2px 8px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--rsx-accent); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 4px; cursor: pointer; font-variant-numeric: tabular-nums; }
.rsx-caselink:hover { border-color: var(--rsx-accent); }
.rsx-caseno { font-weight: 800; color: var(--rsx-text); font-variant-numeric: tabular-nums; }
.rsx-late { padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--rsx-bad); background: var(--rsx-bad-bg); border-radius: 999px; }
.rsx-agewrap { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.rsx-agebar { flex: 1; min-width: 60px; height: 8px; background: var(--rsx-well); border-radius: 4px; overflow: hidden; }
.rsx-agebar-fill { height: 100%; border-radius: 2px; }
.rsx-age-num { font-weight: 800; color: var(--rsx-text); font-variant-numeric: tabular-nums; }
.rsx-age-over { padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--rsx-bad); background: var(--rsx-bad-bg); border-radius: 999px; }
.rsx-defbox { padding: 10px 12px; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-defbox-h { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rsx-text-2); }
.rsx-defbox ul { margin: 6px 0 0; padding-left: 18px; font-size: 11.5px; line-height: 1.5; color: var(--rsx-dim); }
.rsx-defbox-note { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--rsx-text-2); }
/* custom widgets */
.rsx-wkpi { display: flex; align-items: baseline; gap: 9px; padding: 10px 0; }
.rsx-mini-table td:last-child { text-align: right; }
.rsx-spark { display: block; width: 100%; height: 34px; }
.rsx-spark-bar { fill: var(--rsx-series); }
.rsx-spark-zero { fill: var(--rsx-line-2); }
.rsx-ring { width: 40px; height: 40px; flex: 0 0 auto; }
.rsx-ring-track { stroke: var(--rsx-line-2); }
.rsx-ring-fill { stroke: var(--rsx-f-closed); }
/* customise panel: a navy-headed side card */
.rsx-dash-side { position: sticky; top: 0; max-height: calc(100vh - 110px); overflow: auto; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-side-head { position: sticky; top: 0; z-index: 2; padding: 9px 14px; color: var(--rsx-on-head); background: var(--rsx-head); }
.rsx-side-title { font-size: 15px; font-weight: 600; color: var(--rsx-on-head); }
.rsx-side-sub { font-size: 11.5px; color: var(--rsx-on-head); opacity: 0.85; }
.rsx-side-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; }
.rsx-wrow { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-wrow-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-wedit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.rsx-wedit .rsx-i-row:last-child { grid-column: span 2; }

/* ══ dialogs (the Executive dialog) · toasts · tooltip ══════════════════ */
.rsx-dlg-back { position: fixed; inset: 0; z-index: 2147482600; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--rsx-veil); animation: rsx-fade 0.14s ease-out; }
@keyframes rsx-fade { from { opacity: 0; } to { opacity: 1; } }
.rsx-dlg { display: flex; flex-direction: column; width: min(540px, 100%); max-height: min(88vh, 920px); overflow: hidden; color: var(--rsx-text); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 8px; box-shadow: var(--rsx-shadow); font-family: var(--rsx-font); font-size: 13px; line-height: 1.45; }
.rsx-dlg-wide { width: min(860px, 100%); }
.rsx-dlg-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 16px; color: var(--rsx-on-head); background: var(--rsx-head); }
.rsx-dlg-headtext { min-width: 0; }
.rsx-dlg-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsx-on-head); }
.rsx-dlg-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--rsx-on-head); }
.rsx-dlg-sub { margin-top: 2px; font-size: 12px; color: var(--rsx-on-head); opacity: 0.9; }
.rsx-dlg-head .rsx-btn-ghost { color: var(--rsx-on-head); background: transparent; border-color: var(--rsx-on-head); }
.rsx-dlg-head .rsx-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: var(--rsx-on-head); }
.rsx-dlg-head :focus-visible { outline-color: var(--rsx-on-head); }
.rsx-dlg-x { width: 30px; padding: 0; }
.rsx-dlg-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; min-height: 0; padding: 14px 16px 16px; overflow: auto; }
.rsx-dlg-msg { margin: 0; color: var(--rsx-text-2); white-space: pre-wrap; }
.rsx-dlg-foot { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 16px; background: var(--rsx-card-2); border-top: 1px solid var(--rsx-line); }
.rsx-dlg-warn .rsx-dlg-head { box-shadow: inset 0 -3px 0 var(--rsx-b-b3); }
.rsx-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2147482700; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.rsx-toast { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; color: var(--rsx-text); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-left: 4px solid var(--rsx-accent); border-radius: 4px; box-shadow: var(--rsx-shadow); pointer-events: auto; animation: rsx-in 0.16s ease-out; transition: opacity 0.25s, transform 0.25s; }
.rsx-toast-out { opacity: 0; transform: translateY(6px); }
.rsx-toast-success { border-left-color: var(--rsx-good); } .rsx-toast-warn { border-left-color: var(--rsx-warn); } .rsx-toast-error { border-left-color: var(--rsx-bad); }
.rsx-toast-dot { display: none; }
.rsx-toast-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; }
.rsx-toast-txt strong { font-weight: 800; }
.rsx-toast-txt span { font-size: 12.5px; color: var(--rsx-text-2); }
.rsx-toast-x { padding: 2px; font-size: 12px; color: var(--rsx-dim); background: none; border: 0; cursor: pointer; }
.rsx-tip { position: fixed; z-index: 2147482800; max-width: 300px; padding: 8px 11px; font: 600 12px/1.5 var(--rsx-font); white-space: pre-line; color: var(--rsx-tip-ink); background: var(--rsx-tip-bg); border-radius: 8px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36); pointer-events: none; }
/* share + activity */
.rsx-share { display: flex; flex-direction: column; gap: 12px; }
.rsx-share-lead { margin: 0; color: var(--rsx-text-2); }
.rsx-share-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; font-size: 12.5px; background: var(--rsx-well); border: 1px solid var(--rsx-line); border-left: 3px solid var(--rsx-rx); border-radius: 4px; }
.rsx-share-status.is-on { border-left-color: var(--rsx-good); }
.rsx-share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rsx-share-perms { display: flex; flex-direction: column; gap: 9px; padding: 10px 12px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-share-actions { display: flex; justify-content: flex-end; }
.rsx-share-danger { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rsx-line); }
.rsx-activity { display: flex; flex-direction: column; gap: 12px; }
.rsx-act-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsx-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 11px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 6px; }
.rsx-stat-v { font-size: 22px; font-weight: 800; color: var(--rsx-text); font-variant-numeric: tabular-nums; }
.rsx-stat-l { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-act-person { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12.5px; border-bottom: 1px solid var(--rsx-line); }
.rsx-act-wrap { max-height: 360px; border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-act-table td { white-space: nowrap; }

/* ══ link gate ══════════════════════════════════════════════════════════ */
.rsx-gate-mode { justify-content: flex-start; }
.rsx-gate { display: flex; flex: 1; flex-direction: column; gap: 18px; min-height: 0; padding: 18px 24px 28px; overflow: auto; background: var(--rsx-bg); }
.rsx-gate-top { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding-bottom: 12px; border-bottom: 1px solid var(--rsx-line); }
.rsx-gate-top .rsx-brand { flex: 1 1 auto; }
.rsx-gate-theme { width: 32px; padding: 0; }
.rsx-gate-center { display: grid; flex: 1; place-items: center; }
.rsx-gate-card { width: min(470px, 100%); box-shadow: var(--rsx-shadow-sm); }
.rsx-gate-body { display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding: 18px 18px 20px; text-align: left; }
.rsx-gate-body.is-dead { align-items: center; text-align: center; }
.rsx-gate-lead { display: flex; align-items: flex-start; gap: 14px; }
.rsx-gate-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--rsx-text); }
.rsx-gate-lead p { margin: 3px 0 0; }
.rsx-gate-pw { position: relative; }
.rsx-gate-pw .rsx-input { padding-right: 64px; }
.rsx-gate-eye { position: absolute; top: 2px; right: 2px; height: 30px; }
.rsx-gate-err { padding: 8px 11px; font-size: 12.5px; font-weight: 700; color: var(--rsx-bad); background: var(--rsx-bad-bg); border-left: 3px solid var(--rsx-bad); border-radius: 4px; }
.rsx-gate-dead { display: flex; justify-content: center; }
.rsx-gate-body .rsx-spinner { margin: 10px auto 0; }

/* ══ the sheet-menu item (lives in the Services menu, outside .rsx-root) ═ */
.rsx-ctx-item .ctx-label { flex: 1; }
.rsx-ctx-badge { margin-left: 8px; padding: 1px 6px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap; border: 1px solid currentColor; border-radius: 3px; opacity: 0.75; }

/* ══ responsive (the Executive's breakpoints: 1180 · 640, plus the studio's) ═ */
@media (max-width: 1280px) {
  .rsx-builder { grid-template-columns: 250px minmax(0, 1fr) 310px; }
}
@media (max-width: 1180px) {
  .rsx-head-l { flex-basis: 100%; }
  .rsx-head-r { margin-left: auto; }
  .rsx-head-r .rsx-live { display: none; }
  .rsx-title { font-size: 26px; }
  .rsx-subtitle { font-size: 15px; }
  .rsx-brand-pillars { display: none; }
  .rsx-kpis, .rsx-kpis.is-5, .rsx-kpis.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsx-row.is-2-1, .rsx-row.is-1-1 { grid-template-columns: minmax(0, 1fr); }
  .rsx-span-4 { grid-column: span 6; }
  .rsx-dash-wrap.has-side { grid-template-columns: minmax(0, 1fr); }
  .rsx-dash-side { position: static; max-height: none; }
  .rsx-builder { grid-template-columns: 240px minmax(0, 1fr); }
  .rsx-b-right { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 760px) {
  .rsx-head { gap: 8px; padding: 8px 12px; }
  .rsx-tabs { flex: 1 1 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rsx-tabs::-webkit-scrollbar { display: none; }
  .rsx-tab { flex: 1 0 auto; justify-content: center; padding: 8px 10px; }
  .rsx-head-r { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
  .rsx-head .rsx-btn-lbl { display: none; }
  .rsx-head .rsx-btn { padding: 0 10px; }
  .rsx-board { padding: 12px 12px 26px; }
  .rsx-brand-name { font-size: 22px; }
  .rsx-brand-tag { display: none; }
  .rsx-brand-rule { display: none; }
  .rsx-title { font-size: 22px; }
  .rsx-subtitle { font-size: 14px; }
  .rsx-kpis, .rsx-kpis.is-5, .rsx-kpis.is-3 { grid-template-columns: minmax(0, 1fr); }
  .rsx-kpi { padding: 13px 14px; gap: 12px; }
  .rsx-kpi-num { font-size: 34px; }
  .rsx-donut { flex-wrap: wrap; }
  .rsx-card-head { flex-wrap: wrap; }
  .rsx-card-sub { margin-left: 0; text-align: left; }
  .rsx-card.is-trend .rsx-card-sub { padding-left: 0; border-left: 0; }
  .rsx-hbar, .rsx-hbar-axisrow { grid-template-columns: minmax(64px, 34%) minmax(0, 1fr); padding-right: 40px; }
  .rsx-cols { gap: 8px; }
  .rsx-col-label { font-size: 12px; }
  .rsx-span-6, .rsx-span-4 { grid-column: span 12; }
  .rsx-search { flex: 1 1 100%; width: auto; min-width: 0; }
  .rsx-filters .rsx-select, .rsx-dash-filters .rsx-select { flex: 1 1 calc(50% - 4px); max-width: none; min-width: 0; }
  .rsx-dtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rsx-dtabs::-webkit-scrollbar { display: none; }
  .rsx-dtabs [role="tab"] { flex: 0 0 auto; }
  .rsx-sheet-layout { display: block; }
  .rsx-table-wrap { max-height: 62vh; min-height: 260px; }
  .rsx-drawer { max-width: none; max-height: none; border-left: 0; border-top: 1px solid var(--rsx-line); }
  /* phones: the form tabs → the form → the side panel (Case notes · Recent entries) — never above the form */
  .rsx-fill.has-side { grid-template-columns: minmax(0, 1fr); }
  .rsx-fill-main { order: 1; }
  .rsx-fill-side { order: 2; position: static; max-height: none; overflow: visible; }
  .rsx-form-body { padding: 12px 12px 6px; }
  .rsx-w-8, .rsx-w-6, .rsx-w-4, .rsx-w-3 { grid-column: span 12; }
  .rsx-grid.is-placed:not(.rsx-b-grid) > * { grid-column: 1 / -1; grid-row: auto; }
  .rsx-form-foot { padding: 12px; }
  .rsx-form-foot-actions { width: 100%; justify-content: flex-start; }
  .rsx-diff-row { grid-template-columns: minmax(0, 1fr); }
  .rsx-fu-open { width: 100%; }
  .rsx-builder { grid-template-columns: minmax(0, 1fr); }
  .rsx-b-left { position: static; max-height: none; }
  .rsx-act-top, .rsx-wedit { grid-template-columns: 1fr; }
  .rsx-wedit .rsx-i-row:last-child { grid-column: auto; }
  .rsx-dlg-back { padding: 0; }
  .rsx-dlg, .rsx-dlg-wide { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .rsx-dlg.rsx-dlg-fu { height: auto; align-self: flex-end; border-radius: 10px 10px 0 0; }
  .rsx-gate { padding: 12px 12px 22px; }
  .rsx-insight { grid-template-columns: 60px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rsx-root *, .rsx-overlay > .rsx-root, .rsx-dlg-back, .rsx-toast { animation: none !important; transition: none !important; }
}

/* ══ print — only while the studio asked for it (body.rsx-printing): the three
   dashboard pages on white paper, whatever the screen theme ══════════════ */
@media print {
  body.rsx-printing > *:not(.rsx-overlay):not(.rsx-root) { display: none !important; }
  body.rsx-printing .rsx-overlay { position: static !important; display: block !important; background: #FFFFFF !important; }
  body.rsx-printing .rsx-root {
    --rsx-card: #FFFFFF;
    --rsx-card-2: #F3F6FA;
    --rsx-well: #EEF2F7;
    --rsx-line: #D5DCE6;
    --rsx-line-2: #B2BDCD;
    --rsx-text: #0B1F3F;
    --rsx-text-2: #1D2939;
    --rsx-dim: #475467;
    --rsx-accent: #0B2F6B;
    --rsx-on-accent: #FFFFFF;
    --rsx-head: #0B2F6B;
    --rsx-on-head: #FFFFFF;
    --rsx-brand: #12409B;
    --rsx-kpi: #F3F6FA;
    --rsx-ico: #0B2F6B;
    --rsx-on-ico: #FFFFFF;
    --rsx-on-seg: #FFFFFF;
    --rsx-b-b0: #0F7F2A;
    --rsx-b-b1: #4F8FD0;
    --rsx-b-b2: #1565C0;
    --rsx-b-b3: #E26F14;
    --rsx-b-b4: #D9252B;
    --rsx-r0: #0B3A82;
    --rsx-r1: #1F6FD1;
    --rsx-r2: #4F8FD0;
    --rsx-r3: #7FA6D6;
    --rsx-rx: #6B7686;
    --rsx-h-1: rgba(21, 101, 192, 0.10);
    --rsx-h-2: rgba(21, 101, 192, 0.20);
    --rsx-h-3: rgba(21, 101, 192, 0.32);
    --rsx-h-4: rgba(21, 101, 192, 0.46);
    --rsx-h-5: rgba(21, 101, 192, 0.60);
    --rsx-series: #0B3A82;
    --rsx-f-opened: #1565C0;
    --rsx-f-closed: #0F7F2A;
    --rsx-target: #475467;
    --rsx-good: #0B6B24;
    --rsx-warn: #9A4A00;
    --rsx-bad: #C81E24;
    --rsx-good-bg: rgba(15, 127, 42, 0.10);
    --rsx-warn-bg: rgba(200, 120, 0, 0.12);
    --rsx-bad-bg: rgba(217, 37, 43, 0.09);
    --rsx-tip-bg: #0B1F3F;
    --rsx-tip-ink: #FFFFFF;
    --rsx-veil: rgba(11, 31, 63, 0.38);
    --rsx-shadow: 0 24px 64px rgba(11, 31, 63, 0.22);
    --rsx-bg: #FFFFFF;
    --rsx-bar: #FFFFFF;
    --rsx-seg-bg: #F4F7FB;
    --rsx-seg-line: #D4DBE6;
    --rsx-seg-on: #0B2F6B;
    --rsx-on-seg-on: #FFFFFF;
    --rsx-tint: #EEF4FC;
    --rsx-tint-2: #DCE8F8;
    --rsx-info: #12409B;
    --rsx-info-bg: rgba(18, 64, 155, 0.08);
    --rsx-focus: #0B2F6B;
    --rsx-shadow-sm: 0 1px 4px rgba(11, 31, 63, 0.08);
    --rsx-s-open-1: #0B3A82;
    --rsx-s-open-2: #1F6FD1;
    --rsx-s-open-3: #3D5A8A;
    --rsx-s-open-4: #5B6F95;
    --rsx-s-closed-1: #0F7F2A;
    --rsx-s-closed-2: #2E6B3F;
    --rsx-s-closed-3: #4C7A2A;
    --rsx-s-none: #5F6B80;
    --rsx-c-1: #0B3A82;
    --rsx-c-2: #BC5008;
    --rsx-c-3: #0F7F2A;
    --rsx-c-4: #5F6B80;
    --rsx-c-5: #1F6FD1;
    --rsx-c-6: #6B3FA0;
    --rsx-c-7: #0E6F78;
    --rsx-c-8: #8A5A12;
    --rsx-form-color: #0B3A82;
    height: auto !important; overflow: visible !important; color-scheme: light;
  }
  body.rsx-printing .rsx-head, body.rsx-printing .rsx-filters, body.rsx-printing .rsx-dtabs, body.rsx-printing .rsx-dash-side, body.rsx-printing .rsx-hero-right,
  body.rsx-printing .rsx-toasts, body.rsx-printing .rsx-dlg-back, body.rsx-printing .rsx-tip, body.rsx-printing .rsx-panel:not(.rsx-panel-dashboard) { display: none !important; }
  body.rsx-printing .rsx-body, body.rsx-printing .rsx-board, body.rsx-printing .rsx-panel { position: static !important; overflow: visible !important; height: auto !important; max-height: none !important; }
  body.rsx-printing .rsx-dash-wrap.has-side { display: block !important; }
  body.rsx-printing .rsx-dpage, body.rsx-printing .rsx-dpage.is-off { display: flex !important; }
  body.rsx-printing .rsx-dpage + .rsx-dpage { break-before: page; }
  body.rsx-printing .rsx-dpage-title { display: block !important; }
  body.rsx-printing .rsx-card, body.rsx-printing .rsx-kpi, body.rsx-printing .rsx-defbox { break-inside: avoid; box-shadow: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   rsx-4 (2026-11-27, MACE) — the Forms room + Case Notes · the snap-grid
   designer · the Case Detail View hand-off · the sign-in name list
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── the Case Notes timeline bridge: case_notes_timeline.js scopes its own CSS to
   #qbCaseDetailModal, so the side panel restates the SAME rules on the studio's
   tokens (the modal's own light bridge for the light ramp). The suite checks that
   every cnt-* class the renderer emits has a rule here. ── */
.rsx-root {
  --rsx-cn-rail: linear-gradient(to bottom, rgba(63, 185, 80, 0.55), rgba(31, 41, 55, 0.25) 32%, rgba(31, 41, 55, 0.08));
  --rsx-cn-note: #A7F3D0;
  --rsx-cn-note-bg: rgba(16, 185, 129, 0.10);
  --rsx-cn-note-line: rgba(16, 185, 129, 0.30);
  --rsx-cn-mail: #BAE6FD;
  --rsx-cn-mail-bg: rgba(56, 189, 248, 0.10);
  --rsx-cn-mail-line: rgba(56, 189, 248, 0.30);
  --rsx-cn-hover: rgba(63, 185, 80, 0.32);
  --rsx-cn-link: #7DD3FC;
  --rsx-cn-link-line: rgba(125, 211, 252, 0.35);
  --rsx-cn-mailto: #F9A8D4;
  --rsx-b-guide: rgba(143, 180, 242, 0.06);
  --rsx-b-guide-on: rgba(143, 180, 242, 0.13);
  --rsx-b-canvas: #0F0F11;
  /* E14 placement — each placed node sets its own (inline) value; these are the defaults */
  --rsx-gc: auto / span 12;
  --rsx-gr: auto;
  --rsx-rows: 1;
}
:root[data-svc-theme="light"] .rsx-root {
  --rsx-cn-rail: linear-gradient(to bottom, rgba(18, 133, 90, 0.5), rgba(20, 28, 56, 0.16) 32%, rgba(20, 28, 56, 0.06));
  --rsx-cn-note: #0F7A55;
  --rsx-cn-note-bg: rgba(18, 133, 90, 0.12);
  --rsx-cn-note-line: rgba(18, 133, 90, 0.34);
  --rsx-cn-mail: #0A6C93;
  --rsx-cn-mail-bg: rgba(10, 127, 174, 0.12);
  --rsx-cn-mail-line: rgba(10, 127, 174, 0.34);
  --rsx-cn-hover: rgba(18, 133, 90, 0.40);
  --rsx-cn-link: #0A6C93;
  --rsx-cn-link-line: rgba(10, 108, 147, 0.45);
  --rsx-cn-mailto: #12409B;
  --rsx-b-guide: rgba(11, 47, 107, 0.035);
  --rsx-b-guide-on: rgba(11, 47, 107, 0.09);
  --rsx-b-canvas: #F7F9FC;
}

/* ── F10: the key field's pills — INSIDE the input, so the cell never grows ── */
.rsx-key-wrap { position: relative; display: block; min-width: 0; }
.rsx-key-wrap > .rsx-input { width: 100%; }
.rsx-key-pills { position: absolute; top: 50%; right: 6px; display: inline-flex; gap: 4px; max-width: 72%; overflow: hidden; transform: translateY(-50%); pointer-events: none; }
.rsx-key-pills[hidden] { display: none; }
.rsx-kp { display: inline-flex; flex: 0 0 auto; align-items: center; height: 20px; padding: 0 7px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; border-radius: 10px; pointer-events: auto; }
.rsx-kp.is-ok { color: var(--rsx-good); background: var(--rsx-good-bg); }
.rsx-kp.is-miss { color: var(--rsx-warn); background: var(--rsx-warn-bg); }
.rsx-kp.is-error { color: var(--rsx-bad); background: var(--rsx-bad-bg); }
.rsx-kp.is-loading { color: var(--rsx-dim); background: var(--rsx-card-2); border-color: var(--rsx-line); }
.rsx-kp.is-loading::before { content: ""; width: 8px; height: 8px; margin-right: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rsx-spin 0.8s linear infinite; }
.rsx-kp.is-update { color: var(--rsx-on-ico); background: var(--rsx-ico); }
.rsx-kp.is-new { color: var(--rsx-on-seg); background: var(--rsx-s-closed-1); }
.rsx-kp.is-dup { color: var(--rsx-warn); background: var(--rsx-warn-bg); }
.rsx-kp.is-edit { color: var(--rsx-text); background: var(--rsx-tint); border-color: var(--rsx-tint-2); }

/* ── F10–F12: the Case card (navy head) — status, facts, Case Notes ── */
.rsx-case { overflow: hidden; }
.rsx-case-head { gap: 10px; }
.rsx-case-ico { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; color: var(--rsx-on-head); background: rgba(255, 255, 255, 0.14); border-radius: 50%; }
.rsx-case-ico .rsx-glyph { width: 15px; height: 15px; }
.rsx-case-titles { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.rsx-case-kicker { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rsx-on-head); opacity: 0.82; }
.rsx-case-title { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rsx-case-status { flex: 0 0 auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* on the navy bar the state pill is a white chip with a state dot (a state's own ink is for white cards) */
.rsx-case-head .rsx-case-status { display: inline-flex; align-items: center; gap: 6px; color: var(--rsx-head); background: var(--rsx-on-head); border-color: var(--rsx-on-head); }
.rsx-case-head .rsx-case-status::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--rsx-s-none); border-radius: 50%; }
.rsx-case-head .rsx-case-status.rsx-state-open::before { background: var(--rsx-s-open-1); }
.rsx-case-head .rsx-case-status.rsx-state-closed::before { background: var(--rsx-s-closed-1); }
.rsx-case-refresh { flex: 0 0 auto; color: var(--rsx-on-head); background: transparent; border-color: rgba(255, 255, 255, 0.32); }
.rsx-case-refresh:hover { background: rgba(255, 255, 255, 0.12); }
.rsx-case-refresh .rsx-glyph { width: 14px; height: 14px; }
.rsx-case-empty { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.rsx-case-empty[hidden], .rsx-case-body[hidden], .rsx-case-facts[hidden] { display: none; }
.rsx-case-empty .rsx-kpi-ico { width: 40px; height: 40px; }
.rsx-case-empty strong { display: block; font-size: 14px; color: var(--rsx-text); }
.rsx-case-empty p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--rsx-dim); }
.rsx-case-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.rsx-case-facts { display: flex; flex-direction: column; gap: 10px; }
.rsx-case-desc { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-case-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 0; padding: 10px 12px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-case-kv-row { min-width: 0; }
.rsx-case-kv dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsx-dim); }
.rsx-case-kv dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rsx-case-actions .rsx-glyph { width: 14px; height: 14px; }
.rsx-cn { padding-top: 12px; border-top: 1px solid var(--rsx-line); }
.rsx-cn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rsx-cn-title { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsx-text-2); }
.rsx-cn-title .rsx-glyph { width: 14px; height: 14px; color: var(--rsx-brand); }
.rsx-cn-count { font-size: 11px; font-weight: 700; color: var(--rsx-dim); }
.rsx-cn-skel i { display: block; height: 58px; margin-bottom: 10px; background: linear-gradient(90deg, var(--rsx-card-2) 0%, var(--rsx-well) 50%, var(--rsx-card-2) 100%); background-size: 200% 100%; border-radius: 8px; animation: rsx-shimmer 1.2s linear infinite; }
.rsx-cn-skel i:nth-child(2) { width: 88%; }
.rsx-cn-skel i:nth-child(3) { width: 72%; }
@keyframes rsx-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.rsx-cn-msg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; font-size: 12.5px; color: var(--rsx-text); border-left: 3px solid var(--rsx-line-2); border-radius: 4px; }
.rsx-cn-msg.is-info { background: var(--rsx-info-bg); border-left-color: var(--rsx-info); }
.rsx-cn-msg.is-warn { background: var(--rsx-warn-bg); border-left-color: var(--rsx-warn); }
.rsx-cn-msg.is-error { background: var(--rsx-bad-bg); border-left-color: var(--rsx-bad); }
.rsx-cn-plain { font-size: 12.5px; line-height: 1.6; color: var(--rsx-text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.rsx-cn-empty { margin: 0; font-size: 12.5px; color: var(--rsx-dim); }
.rsx-cn-latest { margin-top: 12px; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 6px; }
.rsx-cn-latest summary { padding: 8px 11px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsx-text-2); cursor: pointer; }
.rsx-cn-latest-body { padding: 0 11px 11px; font-size: 12.5px; line-height: 1.6; color: var(--rsx-text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* the timeline (case_notes_timeline.js classes) */
.rsx-cn .cnt-thread { color: var(--rsx-text-2); white-space: normal; }
.rsx-cn .cnt-timeline { position: relative; padding-left: 44px; }
.rsx-cn .cnt-timeline::before { content: ""; position: absolute; top: 4px; bottom: 6px; left: 16px; width: 2px; background: var(--rsx-cn-rail); }
.rsx-cn .cnt-note { position: relative; margin-bottom: 14px; animation: rsx-cn-rise 0.42s ease both; }
.rsx-cn .cnt-note:last-child { margin-bottom: 2px; }
@keyframes rsx-cn-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rsx-cn .cnt-avatar { position: absolute; top: 2px; left: -44px; display: grid; place-items: center; width: 34px; height: 34px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: #FFFFFF !important; border: 2px solid var(--rsx-card) !important; border-radius: 50%; box-shadow: 0 0 0 3px var(--rsx-card) !important; }
.rsx-cn .cnt-card { overflow: hidden; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.rsx-cn .cnt-card:hover { border-color: var(--rsx-cn-hover); box-shadow: var(--rsx-shadow-sm); transform: translateY(-1px); }
.rsx-cn .cnt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--rsx-card-2); border-bottom: 1px solid var(--rsx-line); }
.rsx-cn .cnt-author { min-width: 0; }
.rsx-cn .cnt-author-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--rsx-text); }
.rsx-cn .cnt-author-name.cnt-author-anon, .rsx-cn .cnt-author-anon { color: var(--rsx-dim); }
.rsx-cn .cnt-author-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.rsx-cn .cnt-time { font-size: 11px; color: var(--rsx-dim); font-variant-numeric: tabular-nums; }
.rsx-cn .cnt-badge { padding: 2px 7px; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid; border-radius: 999px; }
.rsx-cn .cnt-badge.note { color: var(--rsx-cn-note); background: var(--rsx-cn-note-bg); border-color: var(--rsx-cn-note-line); }
.rsx-cn .cnt-badge.email { color: var(--rsx-cn-mail); background: var(--rsx-cn-mail-bg); border-color: var(--rsx-cn-mail-line); }
.rsx-cn .cnt-card-body { padding: 12px 14px 13px; }
.rsx-cn .cnt-lead { margin: 0 0 9px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--rsx-text); overflow-wrap: anywhere; }
.rsx-cn .cnt-lead:last-child { margin-bottom: 0; }
.rsx-cn .cnt-text { font-size: 12.5px; line-height: 1.7; color: var(--rsx-text-2); overflow-wrap: anywhere; }
.rsx-cn .cnt-text p { margin: 0 0 9px; }
.rsx-cn .cnt-text p:last-child { margin: 0; }
.rsx-cn .cnt-email { margin-top: 2px; overflow: hidden; background: var(--rsx-card-2); border: 1px solid var(--rsx-cn-mail-line); border-radius: 8px; }
.rsx-cn .cnt-email-head { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 11px; font-weight: 600; color: var(--rsx-text-2); background: var(--rsx-well); border-bottom: 1px dashed var(--rsx-cn-mail-line); }
.rsx-cn .cnt-email-meta { padding: 9px 13px 0; font-size: 12px; line-height: 1.6; color: var(--rsx-dim); word-break: break-word; }
.rsx-cn .cnt-email-body { padding: 9px 13px 11px; font-size: 12.5px; line-height: 1.7; color: var(--rsx-text-2); overflow-wrap: anywhere; }
.rsx-cn .cnt-email-body p { margin: 0 0 9px; }
.rsx-cn .cnt-email-body p:last-child { margin: 0; }
.rsx-cn .cnt-link { font-weight: 600; color: var(--rsx-cn-link); text-decoration: none; border-bottom: 1px solid var(--rsx-cn-link-line); word-break: break-all; }
.rsx-cn .cnt-link:hover { color: var(--rsx-text); border-bottom-color: currentColor; }
.rsx-cn .cnt-mailto { font-weight: 600; color: var(--rsx-cn-mailto); text-decoration: none; border-bottom: 1px dashed currentColor; word-break: break-all; }
.rsx-cn .cnt-mailto:hover { color: var(--rsx-text); }
.rsx-cn .cnt-empty { margin: 0; font-size: 12px; color: var(--rsx-dim); }
.rsx-case .rsx-match, .rsx-case .rsx-qb-line, .rsx-case .rsx-dup-note { margin: 0; }

/* ── F13: the snap-grid designer canvas ── */
.rsx-b-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px; background: var(--rsx-card-2); border-bottom: 1px solid var(--rsx-line); }
.rsx-b-bar .rsx-glyph { width: 15px; height: 15px; }
.rsx-b-bar-rule { width: 1px; height: 20px; margin: 0 2px; background: var(--rsx-line-2); }
.rsx-b-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--rsx-dim); }
.rsx-b-hint .rsx-glyph { width: 13px; height: 13px; }
.rsx-b-gridwrap { position: relative; background: var(--rsx-b-canvas); }
.rsx-b-grid { --rsx-row-h: 92px; position: relative; grid-template-rows: repeat(var(--rsx-rows, 1), var(--rsx-row-h)); grid-auto-rows: var(--rsx-row-h); gap: 12px; min-height: calc(var(--rsx-row-h) + 30px); padding: 14px 18px 16px; }
.rsx-b-guides { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px; z-index: 0; pointer-events: none; transition: opacity 0.15s; }
.rsx-grid.is-placed > .rsx-b-guides { grid-column: 1 / -1; grid-row: 1 / -1; }
.rsx-b-guides i { display: block; background: var(--rsx-b-guide); border-radius: 3px; }
.rsx-b-grid.is-dragging .rsx-b-guides i { background: var(--rsx-b-guide-on); }
.rsx-b-grid > .rsx-bfield { z-index: 1; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rsx-b-grid > .rsx-bfield:focus-visible { outline: 2px solid var(--rsx-focus); outline-offset: 2px; }
.rsx-bfield.is-dragging { z-index: 6; opacity: 0.94; cursor: grabbing; box-shadow: var(--rsx-shadow); transition: none; }
.rsx-bfield.is-resizing { z-index: 5; box-shadow: 0 0 0 2px var(--rsx-accent); }
.rsx-b-grid.is-dragging > .rsx-bfield:not(.is-dragging):not(.is-resizing) { opacity: 0.88; }
.rsx-bfield-grip { display: inline-grid; flex: 0 0 auto; place-items: center; width: 14px; height: 22px; color: var(--rsx-dim); cursor: grab; }
.rsx-bfield-grip .rsx-glyph { width: 14px; height: 14px; stroke-width: 3.2; }
.rsx-bfield.is-tall .rsx-prev-input.is-tall { min-height: 56px; }
.rsx-rz { position: absolute; z-index: 2; }
.rsx-rz-e { top: 10px; right: 0; bottom: 14px; width: 9px; cursor: ew-resize; }
.rsx-rz-s { right: 14px; bottom: 0; left: 10px; height: 9px; cursor: ns-resize; }
.rsx-rz-se { right: 0; bottom: 0; width: 15px; height: 15px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 52%, var(--rsx-line-2) 52%); border-bottom-right-radius: 4px; opacity: 0; transition: opacity 0.12s; }
.rsx-rz-e::after, .rsx-rz-s::after { content: ""; position: absolute; background: var(--rsx-line-2); border-radius: 2px; opacity: 0; transition: opacity 0.12s; }
.rsx-rz-e::after { top: 50%; right: 2px; width: 3px; height: 24px; margin-top: -12px; }
.rsx-rz-s::after { bottom: 2px; left: 50%; width: 24px; height: 3px; margin-left: -12px; }
.rsx-bfield:hover .rsx-rz-se, .rsx-bfield.is-selected .rsx-rz-se, .rsx-bfield:hover .rsx-rz-e::after, .rsx-bfield.is-selected .rsx-rz-e::after,
.rsx-bfield:hover .rsx-rz-s::after, .rsx-bfield.is-selected .rsx-rz-s::after { opacity: 1; }
.rsx-bfield-size { position: absolute; right: 18px; bottom: 8px; z-index: 3; padding: 2px 8px; font-size: 11px; font-weight: 800; color: var(--rsx-on-head); background: var(--rsx-head); border-radius: 10px; opacity: 0; pointer-events: none; }
.rsx-bfield.is-resizing .rsx-bfield-size { opacity: 1; }
.rsx-b-tail { z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 12px; color: var(--rsx-dim); text-align: center; border: 1.5px dashed var(--rsx-line-2); border-radius: 6px; }
.rsx-b-grid.is-dragging .rsx-b-tail { border-color: var(--rsx-accent); color: var(--rsx-text); }
.rsx-b-ghost { z-index: 4; background: var(--rsx-tint); border: 2px dashed var(--rsx-accent); border-radius: 6px; pointer-events: none; }
.rsx-b-ghost[hidden] { display: none; }
.rsx-drag-chip { position: fixed; top: 0; left: 0; z-index: 2147483000; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--rsx-on-head); background: var(--rsx-head); border-radius: 6px; box-shadow: var(--rsx-shadow); pointer-events: none; }
.rsx-drag-chip .rsx-pal-ico { color: var(--rsx-on-head); }
.rsx-pal-hint { margin: 2px 0 2px; }
.rsx-pal-item, .rsx-col-item { touch-action: none; }
.rsx-i-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.rsx-i-num { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rsx-i-num-lbl { font-size: 11px; font-weight: 700; color: var(--rsx-dim); }
.rsx-i-foot { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── F13: Preview at desktop / tablet / phone width ── */
.rsx-dlg.rsx-dlg-pv { width: min(1320px, 100%); }
.rsx-pv { display: flex; flex-direction: column; gap: 12px; }
.rsx-pv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rsx-pv-seg .rsx-seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.rsx-pv-seg .rsx-glyph { width: 15px; height: 15px; }
.rsx-pv-stage { position: relative; padding: 12px; overflow: hidden; background: var(--rsx-well); border: 1px solid var(--rsx-line); border-radius: 8px; }
.rsx-pv-frame { margin: 0 auto; transform-origin: top left; }
.rsx-pv-frame.is-tablet, .rsx-pv-frame.is-phone { padding: 10px; background: var(--rsx-line-2); border-radius: 22px; box-shadow: var(--rsx-shadow-sm); }
.rsx-pv-frame .rsx-form-card { margin: 0; max-width: none; }

/* ── C6: the Sheet tab — a row opens the Case Detail View; the row panel has its own button ── */
.rsx-td-num { white-space: nowrap; }
.rsx-td-n { display: inline-block; min-width: 18px; }
.rsx-row-details { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; padding: 0; color: var(--rsx-dim); vertical-align: middle; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; opacity: 0; }
.rsx-row-details .rsx-glyph { width: 15px; height: 15px; }
.rsx-tr:hover .rsx-row-details, .rsx-tr:focus-within .rsx-row-details, .rsx-tr.is-selected .rsx-row-details, .rsx-row-details:focus-visible { opacity: 1; }
.rsx-row-details:hover { color: var(--rsx-text); background: var(--rsx-card-2); border-color: var(--rsx-line-2); }
.rsx-row-details:focus-visible { outline: 2px solid var(--rsx-focus); outline-offset: 1px; }
@media (hover: none) { .rsx-row-details { opacity: 1; } }
.rsx-tr.is-case { cursor: pointer; }
.rsx-case-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--rsx-brand); }
.rsx-case-link .rsx-glyph { width: 12px; height: 12px; opacity: 0.65; }
.rsx-tr.is-case:hover .rsx-case-link > span { text-decoration: underline; }

/* ── C8: the owner's sign-in name list (Share dialog) ── */
.rsx-names .rsx-i-hint { margin: 0 0 8px; }
.rsx-names-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 172px; margin-top: 8px; padding: 8px; overflow: auto; background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-name-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; font-size: 12.5px; font-weight: 600; color: var(--rsx-text); background: var(--rsx-card); border: 1px solid var(--rsx-line-2); border-radius: 13px; }
.rsx-name-chip-txt { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-name-x { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; font-size: 10px; color: var(--rsx-dim); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.rsx-name-x:hover { color: var(--rsx-bad); background: var(--rsx-bad-bg); }
.rsx-names-none { padding: 2px 2px; font-size: 12.5px; }
.rsx-names-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* ── C8: the gate — two steps; step 2 is a searchable name picker ── */
.rsx-gate-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rsx-gate-steps li { display: inline-flex; flex: 1 1 0; align-items: center; gap: 7px; min-width: 0; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--rsx-dim); background: var(--rsx-card-2); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-gate-steps li.is-on { color: var(--rsx-text); border-color: var(--rsx-line-2); }
.rsx-gate-step-n { display: inline-grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; font-size: 11px; color: var(--rsx-text-2); background: var(--rsx-line); border-radius: 50%; }
.rsx-gate-steps li.is-on .rsx-gate-step-n { color: var(--rsx-on-ico); background: var(--rsx-ico); }
.rsx-gate-steps li.is-done .rsx-gate-step-n { color: var(--rsx-on-seg); background: var(--rsx-s-closed-1); }
.rsx-gate-hint { margin-top: 5px; font-size: 12px; color: var(--rsx-dim); }
.rsx-gate-hint.is-good { font-weight: 700; color: var(--rsx-good); }
.rsx-name-list { display: flex; flex-direction: column; gap: 2px; max-height: 252px; padding: 4px; overflow: auto; background: var(--rsx-card); border: 1px solid var(--rsx-line); border-radius: 4px; }
.rsx-name-opt { display: flex; align-items: center; gap: 10px; padding: 7px 9px; font-size: 13.5px; color: var(--rsx-text); border-radius: 4px; cursor: pointer; }
.rsx-name-opt:hover, .rsx-name-opt.is-active { background: var(--rsx-card-2); }
.rsx-name-opt.is-picked { font-weight: 700; background: var(--rsx-info-bg); box-shadow: inset 3px 0 0 var(--rsx-info); }
.rsx-name-ini { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; font-size: 11px; font-weight: 800; color: var(--rsx-on-ico); background: var(--rsx-ico); border-radius: 50%; }
.rsx-name-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-name-ok { font-weight: 800; color: var(--rsx-good); }
.rsx-name-none { padding: 10px; font-size: 12.5px; color: var(--rsx-dim); }
.rsx-gate-actions { display: flex; gap: 8px; }
.rsx-gate-actions .rsx-btn-block { flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── responsive (rsx-4) ── */
@media (max-width: 1080px) {
  .rsx-fill.has-side { grid-template-columns: minmax(0, 1fr); }
  .rsx-fill-side { position: static; max-height: none; overflow: visible; }
  .rsx-b-grid { --rsx-row-h: 86px; }
}
@media (max-width: 760px) {
  .rsx-case-kv { grid-template-columns: minmax(0, 1fr); }
  .rsx-b-hint { display: none; }
  .rsx-b-grid { --rsx-row-h: 78px; gap: 8px; padding: 10px; }
  .rsx-b-guides { column-gap: 8px; }
  .rsx-gate-steps li { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rsx-cn .cnt-note, .rsx-cn-skel i, .rsx-kp.is-loading::before { animation: none !important; }
  .rsx-cn .cnt-card, .rsx-cn .cnt-card:hover { transition: none; transform: none; }
}
