/* Company Reformation 2026 design layer (brief G6 / UX1-UX2).
   Calm, precise, Apple-grade: generous whitespace, one primary action per surface, soft depth,
   restrained NIIT navy / red / gold. Every colour comes from a token so light and dark themes are
   both first-class. Loaded after styles.css; refines the authenticated shell and styles every new
   Reformation workspace (prefix rf-). */
:root {
  --rf-surface: #ffffff;
  --rf-surface-2: #f7f5f0;
  --rf-elevated: #ffffff;
  --rf-hairline: rgba(15, 30, 45, .08);
  --rf-hairline-strong: rgba(15, 30, 45, .14);
  --rf-text: #111c26;
  --rf-text-2: #56626c;
  --rf-text-3: #7b868e;
  --rf-accent: #0a5c9e;
  --rf-gold: #f0b429;
  --rf-gold-ink: #7a5600;
  --rf-gold-soft: #fff5d6;
  --rf-green: #0f7a50;
  --rf-green-soft: #e3f6ed;
  --rf-red: #c81f2c;
  --rf-red-soft: #fdebed;
  --rf-amber: #946200;
  --rf-amber-soft: #fff3d3;
  --rf-blue: #1f5fa8;
  --rf-blue-soft: #e6f0fb;
  --rf-shadow-sm: 0 1px 2px rgba(10, 25, 40, .05), 0 1px 1px rgba(10, 25, 40, .03);
  --rf-shadow: 0 1px 2px rgba(10, 25, 40, .04), 0 8px 24px rgba(10, 25, 40, .06);
  --rf-shadow-lg: 0 24px 60px rgba(10, 25, 40, .16);
  --rf-radius: 20px;
  --rf-radius-sm: 12px;
  --rf-ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  --rf-surface: #121d26;
  --rf-surface-2: #0d161e;
  --rf-elevated: #17242f;
  --rf-hairline: rgba(255, 255, 255, .07);
  --rf-hairline-strong: rgba(255, 255, 255, .13);
  --rf-text: #eef3f6;
  --rf-text-2: #a9b6bf;
  --rf-text-3: #85939d;
  --rf-accent: #7fb2da;
  --rf-gold-ink: #f0c65a;
  --rf-gold-soft: rgba(240, 180, 41, .14);
  --rf-green: #4fd39b;
  --rf-green-soft: rgba(79, 211, 155, .13);
  --rf-red: #ff7b86;
  --rf-red-soft: rgba(255, 123, 134, .13);
  --rf-amber: #f5c563;
  --rf-amber-soft: rgba(245, 197, 99, .13);
  --rf-blue: #8cc1f0;
  --rf-blue-soft: rgba(140, 193, 240, .13);
  --rf-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --rf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
  --rf-shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* refined shell */
.app-shell { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--rf-surface-2); }
.sidebar { background: linear-gradient(180deg, #031a2b 0%, #052b47 100%); border-right: 1px solid rgba(255, 255, 255, .04); }
.nav-item { position: relative; border-radius: 12px; padding: 9px 12px; font-weight: 600; letter-spacing: -.005em; transition: background-color .2s var(--rf-ease), color .2s var(--rf-ease); }
.nav-item.active { color: #fff; background: rgba(255, 255, 255, .1); font-weight: 700; }
.nav-item.active::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--rf-gold); }
.nav-item.active .nav-icon { color: var(--rf-gold); }
.nav-group { letter-spacing: .12em; color: rgba(255, 255, 255, .38); }
.topbar { background: color-mix(in srgb, var(--rf-surface-2) 82%, transparent); border-bottom: 1px solid var(--rf-hairline); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.topbar h1 { font-weight: 700; letter-spacing: -.025em; color: var(--rf-text); }
.breadcrumb { color: var(--rf-text-3); }
.icon-button, .profile-button, .search-box, .compact-select { border-color: var(--rf-hairline-strong); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.content { max-width: 1480px; margin: 0 auto; }
.panel, .metric-card, .table-card, .kpi-card { border-color: var(--rf-hairline); border-radius: var(--rf-radius); background: var(--rf-surface); box-shadow: var(--rf-shadow); }
.panel-heading h3, .metric-card strong { letter-spacing: -.02em; }
.hero-card { border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 41, .22), transparent 42%), linear-gradient(135deg, #052b47 0%, #0b3b5d 60%, #0f4a73 100%); box-shadow: 0 20px 50px rgba(5, 43, 71, .22); }
.hero-card h2 { font-weight: 700; letter-spacing: -.035em; }
.primary-button, .secondary-button { border-radius: 12px; }
.secondary-button { border-color: var(--rf-hairline-strong); background: var(--rf-surface); }
table th { background: var(--rf-surface-2); color: var(--rf-text-3); }
.protected-badge { display: inline-flex; margin-left: 6px; padding: 2px 8px; border-radius: 999px; color: var(--rf-gold-ink); background: var(--rf-gold-soft); font-size: 10px; font-weight: 800; vertical-align: middle; }
.doc-card-category { margin: 10px 0 0; color: var(--rf-gold-ink); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* building blocks */
.rf-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; color: var(--rf-text); }
.rf-eyebrow { margin: 0 0 6px; color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rf-muted { color: var(--rf-text-2); }
.rf-small { font-size: 12px; }
.rf-space { margin-top: 16px; }
.rf-center { text-align: center; }
.rf-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .02em; }
.rf-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-loading { padding: 40px 0; color: var(--rf-text-2); text-align: center; }
.rf-note { margin: 0; padding: 12px 16px; border: 1px solid var(--rf-hairline); border-radius: var(--rf-radius-sm); color: var(--rf-text-2); background: var(--rf-surface); font-size: 13px; }
.rf-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 41, .24), transparent 44%), linear-gradient(135deg, #052b47 0%, #0b3b5d 62%, #0f4a73 100%); box-shadow: 0 20px 50px rgba(5, 43, 71, .2); }
.rf-hero .rf-eyebrow { color: var(--rf-gold); }
.rf-hero h2 { margin: 0; font-family: var(--heading-font); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.rf-hero p:not(.rf-eyebrow) { max-width: 640px; margin: 12px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.rf-hero-aside { flex: 0 0 auto; }
.rf-hero .rf-ring-track { stroke: rgba(255, 255, 255, .16); }
.rf-hero .rf-ring-text { fill: #fff; }
.rf-points { display: grid; place-content: center; width: 118px; height: 118px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.rf-points span { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.rf-points small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.rf-card { min-width: 0; padding: 22px; border: 1px solid var(--rf-hairline); border-radius: var(--rf-radius); background: var(--rf-surface); box-shadow: var(--rf-shadow); }
.rf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.rf-card-head h3 { margin: 0; font-family: var(--heading-font); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.rf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* controls */
.rf-button { min-height: 40px; padding: 9px 16px; border: 1px solid var(--rf-hairline-strong); border-radius: 12px; color: var(--rf-text); background: var(--rf-surface); font-size: 13px; font-weight: 700; box-shadow: var(--rf-shadow-sm); transition: transform .15s var(--rf-ease), box-shadow .2s var(--rf-ease); }
.rf-button:hover { transform: translateY(-1px); box-shadow: var(--rf-shadow); }
.rf-button:active { transform: none; }
.rf-button:disabled { opacity: .55; cursor: progress; transform: none; }
.rf-button.primary { color: #fff; border-color: transparent; background: #052b47; }
:root[data-theme="dark"] .rf-button.primary { color: #041421; background: var(--rf-gold); }
.rf-button.ghost { box-shadow: none; background: transparent; }
.rf-button.danger { color: var(--rf-red); border-color: color-mix(in srgb, var(--rf-red) 30%, transparent); }
.rf-link { padding: 4px 6px; border: 0; background: none; color: var(--rf-accent); font-size: 12px; font-weight: 700; }
.rf-link.danger { color: var(--rf-red); }
.rf-icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--rf-hairline); border-radius: 50%; color: var(--rf-text-2); background: var(--rf-surface); }
.rf-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rf-form-actions.rf-wrap { flex-wrap: wrap; justify-content: flex-start; }
.rf-input { width: 100%; min-height: 42px; padding: 10px 13px; border: 1px solid var(--rf-hairline-strong); border-radius: 12px; color: var(--rf-text); background: var(--rf-surface); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.rf-input:focus { outline: none; border-color: var(--rf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rf-accent) 18%, transparent); }
.rf-input.rf-compact { width: auto; min-height: 36px; padding: 7px 11px; font-size: 13px; }
textarea.rf-input { min-height: 90px; resize: vertical; line-height: 1.5; }
.rf-label { display: block; margin: 16px 0 7px; color: var(--rf-text-2); font-size: 12px; font-weight: 700; }
.rf-field .rf-label { margin-top: 12px; }
.rf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rf-chip-green { color: var(--rf-green); background: var(--rf-green-soft); }
.rf-chip-red { color: var(--rf-red); background: var(--rf-red-soft); }
.rf-chip-amber { color: var(--rf-amber); background: var(--rf-amber-soft); }
.rf-chip-blue { color: var(--rf-blue); background: var(--rf-blue-soft); }
.rf-chip-gold { color: var(--rf-gold-ink); background: var(--rf-gold-soft); }
.rf-chip-muted { color: var(--rf-text-2); background: var(--rf-surface-2); }
.rf-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rf-hairline); border-radius: 14px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); justify-self: start; max-width: 100%; overflow-x: auto; }
.rf-tab { padding: 8px 16px; border: 0; border-radius: 10px; color: var(--rf-text-2); background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rf-tab.active { color: var(--rf-text); background: var(--rf-surface-2); box-shadow: var(--rf-shadow-sm); }
.rf-segmented { display: inline-flex; margin: 8px 0; padding: 3px; border-radius: 10px; background: var(--rf-surface-2); }
.rf-segmented label { position: relative; }
.rf-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.rf-segmented span { display: inline-block; padding: 6px 14px; border-radius: 8px; color: var(--rf-text-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.rf-segmented input:checked + span { color: var(--rf-text); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rf-segmented input:focus-visible + span { outline: 3px solid rgba(240, 180, 41, .6); }

/* data display */
.rf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rf-tile { padding: 16px 18px; border: 1px solid var(--rf-hairline); border-radius: 16px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rf-tile span { display: block; color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rf-tile strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.rf-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rf-stat-row div { padding: 12px; border-radius: 14px; background: var(--rf-surface-2); text-align: center; }
.rf-stat-row strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rf-stat-row span { color: var(--rf-text-3); font-size: 11px; }
.rf-list { display: grid; gap: 2px; max-height: 460px; overflow-y: auto; }
.rf-list-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--rf-hairline); }
.rf-list-row > div { flex: 1 1 auto; min-width: 0; }
.rf-list-row strong { display: block; font-size: 13px; }
.rf-list-row small { color: var(--rf-text-2); font-size: 12px; }
.rf-empty { display: grid; place-items: center; gap: 4px; padding: 44px 20px; text-align: center; }
.rf-empty span { font-size: 34px; color: var(--rf-gold); }
.rf-empty h3 { margin: 6px 0 0; font-size: 17px; }
.rf-empty p { margin: 0; color: var(--rf-text-2); font-size: 13px; }
.rf-ring-track { stroke: var(--rf-hairline-strong); }
.rf-ring-value { transition: stroke-dashoffset .6s var(--rf-ease); }
.rf-ring-gold .rf-ring-value { stroke: var(--rf-gold); }
.rf-ring-green .rf-ring-value { stroke: var(--rf-green); }
.rf-ring-red .rf-ring-value { stroke: var(--rf-red); }
.rf-ring-text { fill: var(--rf-text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rf-bar { width: 100%; height: 6px; }
.rf-bar-track { fill: var(--rf-surface-2); }
.rf-bar-navy .rf-bar-value, .rf-bar-green .rf-bar-value { fill: var(--rf-green); }
.rf-bar-red .rf-bar-value { fill: var(--rf-red); }
.rf-bar-gold .rf-bar-value { fill: var(--rf-gold); }
.rf-table { width: 100%; border-collapse: collapse; }
.rf-table th { padding: 11px 14px; color: var(--rf-text-3); background: var(--rf-surface-2); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.rf-table td { padding: 12px 14px; border-bottom: 1px solid var(--rf-hairline); font-size: 13px; vertical-align: middle; }
.rf-table tr:last-child td { border-bottom: 0; }
.rf-table tbody tr:hover td { background: color-mix(in srgb, var(--rf-surface-2) 60%, transparent); }
.rf-table .rf-risk td { background: color-mix(in srgb, var(--rf-red-soft) 60%, transparent); }
.rf-table .rf-winner td { background: color-mix(in srgb, var(--rf-gold-soft) 80%, transparent); }
.rf-actions { white-space: nowrap; }
.rf-bar-cell { min-width: 120px; }
.rf-points-cell { font-size: 17px; }
.rf-points-cell.high { color: var(--rf-green); }
.rf-points-cell.mid { color: var(--rf-amber); }
.rf-points-cell.low { color: var(--rf-red); }
.rf-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 18px; }
.rf-filters label { display: grid; gap: 6px; color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rf-filters .rf-input { min-height: 38px; padding: 8px 11px; font-size: 13px; }
.rf-filters .rf-check { display: flex; align-items: center; gap: 6px; min-height: 38px; text-transform: none; }
.rf-dialog { width: min(520px, calc(100% - 28px)); padding: 24px; border: 1px solid var(--rf-hairline); border-radius: 22px; color: var(--rf-text); background: var(--rf-elevated); box-shadow: var(--rf-shadow-lg); }
.rf-dialog.wide { width: min(860px, calc(100% - 28px)); }
.rf-dialog::backdrop { background: rgba(3, 14, 22, .55); backdrop-filter: blur(6px); }
.rf-dialog form { display: grid; gap: 12px; }
.rf-dialog h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.rf-json { max-height: 60vh; overflow: auto; margin: 0; padding: 16px; border-radius: 14px; color: var(--rf-text); background: var(--rf-surface-2); font: 12px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

/* countdown banner & today strip */
.rf-banner { position: sticky; top: 82px; z-index: 19; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 11px clamp(18px, 3vw, 38px); color: #fff; background: linear-gradient(90deg, #052b47, #0b3b5d); font-size: 13px; box-shadow: 0 8px 24px rgba(5, 43, 71, .18); }
.rf-banner strong { font-weight: 700; }
.rf-banner span { color: rgba(255, 255, 255, .78); }
.rf-banner .rf-banner-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rf-gold); }
.rf-banner-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rf-gold); animation: rfPulse 1.8s infinite; }
.rf-banner.urgent { background: linear-gradient(90deg, #8f1520, #c81f2c); }
.rf-banner.urgent .rf-banner-dot { background: #fff; }
.rf-banner.urgent .rf-banner-clock { color: #fff; }
.rf-banner.done { background: linear-gradient(90deg, #0c5c3d, #0f7a50); }
.rf-banner.done .rf-banner-dot { background: #b7f5d8; animation: none; }
.rf-banner-action { margin-left: auto; padding: 7px 14px; border: 0; border-radius: 999px; color: #052b47; background: #fff; font-size: 12px; font-weight: 800; }
@keyframes rfPulse { 0% { box-shadow: 0 0 0 0 rgba(240, 180, 41, .6); } 70% { box-shadow: 0 0 0 9px rgba(240, 180, 41, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); } }
.rf-today { margin: 18px 0 4px; }
.rf-today-head { margin-bottom: 10px; }
.rf-today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.rf-today-card { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rf-hairline); border-radius: 18px; color: var(--rf-text); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); text-align: left; transition: transform .2s var(--rf-ease), box-shadow .2s var(--rf-ease); }
.rf-today-card:hover { transform: translateY(-2px); box-shadow: var(--rf-shadow); }
.rf-today-card strong { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.rf-today-card small { color: var(--rf-text-2); font-size: 12px; }
.rf-today-card.live { border-color: color-mix(in srgb, var(--rf-gold) 60%, transparent); box-shadow: 0 0 0 3px var(--rf-gold-soft), var(--rf-shadow-sm); }
.rf-today-card.done strong { color: var(--rf-green); }

/* My Day */
.rf-window-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rf-window { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--rf-hairline); border-radius: var(--rf-radius); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rf-window h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.rf-window p { margin: 4px 0 0; }
.rf-window.live { border-color: color-mix(in srgb, var(--rf-gold) 55%, transparent); box-shadow: 0 0 0 4px var(--rf-gold-soft); }
.rf-window.done h3 { color: var(--rf-green); }
.rf-window-ring { flex: 0 0 auto; }
.rf-integrity { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--rf-gold); border-radius: 0 12px 12px 0; color: var(--rf-text-2); background: var(--rf-gold-soft); font-size: 13px; line-height: 1.5; }
.rf-integrity strong { color: var(--rf-gold-ink); }
.rf-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: rfline; }
.rf-line { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: start; gap: 10px; counter-increment: rfline; }
.rf-line::before { content: counter(rfline); display: grid; place-items: center; width: 30px; height: 30px; margin-top: 6px; border-radius: 50%; color: var(--rf-text-2); background: var(--rf-surface-2); font-size: 12px; font-weight: 800; }
.rf-line.top3::before { color: #052b47; background: var(--rf-gold); }
.rf-line-main { display: grid; gap: 6px; }
.rf-input-sub { min-height: 34px; padding: 7px 12px; font-size: 12px; color: var(--rf-text-2); }
.rf-counter { margin-top: 14px; color: var(--rf-text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.rf-plan-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rf-plan-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--rf-hairline); border-radius: 14px; background: var(--rf-surface); }
.rf-plan-list li.top3 { border-left: 3px solid var(--rf-gold); }
.rf-plan-list li > div { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
.rf-plan-list strong { font-size: 13px; }
.rf-plan-list small { color: var(--rf-text-2); font-size: 12px; }
.rf-report-items .rf-input { margin-top: 4px; min-height: 36px; font-size: 13px; }
.rf-upload { position: relative; display: inline-flex; align-items: center; padding: 9px 16px; border: 1px dashed var(--rf-hairline-strong); border-radius: 12px; color: var(--rf-text-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.rf-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rf-files { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.rf-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--rf-surface-2); font-size: 13px; }

/* Attendance: student */
.rf-session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.rf-session { display: grid; gap: 14px; padding: 18px; border: 1px solid color-mix(in srgb, var(--rf-gold) 50%, transparent); border-radius: 18px; background: linear-gradient(180deg, var(--rf-gold-soft), var(--rf-surface) 70%); }
.rf-session.done { border-color: color-mix(in srgb, var(--rf-green) 40%, transparent); background: linear-gradient(180deg, var(--rf-green-soft), var(--rf-surface) 70%); }
.rf-session h4 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.rf-session p { margin: 4px 0 0; }
.rf-checkin { display: grid; gap: 10px; }
.rf-code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rf-code { font-size: 20px; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.rf-success { margin: 0; color: var(--rf-green); font-weight: 700; }
.rf-feedback { min-height: 20px; margin: 14px 0 0; color: var(--rf-text-2); font-size: 14px; }
.rf-feedback.ok { color: var(--rf-green); font-weight: 700; }
.rf-feedback.error { color: var(--rf-red); font-weight: 700; }
.rf-scanner { display: grid; justify-items: center; gap: 10px; margin-top: 16px; }
.rf-scanner video { width: min(360px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #000; box-shadow: var(--rf-shadow); }
.rf-course-rates { display: grid; gap: 12px; }
.rf-rate-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 48px; align-items: center; gap: 14px; }
.rf-rate-row strong { display: block; font-size: 13px; }
.rf-rate-row small { color: var(--rf-text-2); font-size: 11px; }
.rf-rate-row > span { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Attendance: facilitator console */
.rf-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; align-items: stretch; }
.rf-course { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 10px; min-width: 0; overflow: hidden; padding: 18px; border: 1px solid var(--rf-hairline); border-radius: 18px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rf-course.live { border-color: color-mix(in srgb, var(--rf-green) 45%, transparent); box-shadow: 0 0 0 4px var(--rf-green-soft); }
.rf-course h4 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; min-height: 2.6em; }
.rf-course p { margin: 0; overflow-wrap: anywhere; }
.rf-course-top { display: flex; align-items: center; justify-content: space-between; }
.rf-course-code { padding: 4px 9px; border-radius: 8px; color: #fff; background: #052b47; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
:root[data-theme="dark"] .rf-course-code { color: #041421; background: var(--rf-gold); }
.rf-course-live { display: flex; align-items: baseline; gap: 8px; }
.rf-course-live strong { font-size: 24px; letter-spacing: -.03em; }
.rf-course-live span { color: var(--rf-text-2); font-size: 12px; }
.rf-open-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-self: end; min-width: 0; }
.rf-open-form .rf-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
.rf-open-field { display: grid; gap: 4px; min-width: 0; }
.rf-open-field.wide { grid-column: 1 / -1; }
.rf-open-field span { color: var(--rf-text-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rf-open-field .rf-input { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.rf-presenter { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--rf-hairline); border-radius: 28px; background: var(--rf-surface); box-shadow: var(--rf-shadow); }
.rf-presenter:fullscreen { align-content: center; border-radius: 0; padding: 4vw; background: var(--rf-surface-2); }
.rf-presenter-qr { display: grid; justify-items: center; gap: 18px; }
.rf-qr-frame { width: min(480px, 100%); aspect-ratio: 1; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 16px 40px rgba(5, 43, 71, .14); }
.rf-presenter:fullscreen .rf-qr-frame { width: min(70vh, 100%); }
.rf-qr { width: 100%; height: 100%; display: block; }
.rf-qr-bg { fill: #fff; }
.rf-qr-fg { fill: #031b2c; }
.rf-code-display { display: grid; justify-items: center; gap: 4px; }
.rf-code-display strong { font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--rf-text); }
.rf-rotation { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rf-rotation .rf-ring-text { font-size: 13px; }
.rf-presenter-side { display: grid; align-content: start; gap: 12px; }
.rf-presenter-side h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.rf-live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rf-live-stats div { padding: 16px; border-radius: 16px; background: var(--rf-surface-2); }
.rf-live-stats strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rf-live-stats span { color: var(--rf-text-3); font-size: 12px; }
.rf-feed { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.rf-feed li { display: grid; padding: 9px 12px; border-radius: 12px; background: var(--rf-surface-2); animation: rfSlideIn .35s var(--rf-ease); }
.rf-feed li span { font-size: 13px; font-weight: 700; }
.rf-feed li small { color: var(--rf-text-2); font-size: 11px; }
.rf-presenter.closed .rf-qr-frame { display: grid; place-items: center; background: var(--rf-surface-2); box-shadow: none; }
.rf-closed-mark { display: grid; gap: 6px; color: var(--rf-text-2); font-size: 22px; font-weight: 700; text-align: center; }
.rf-closed-mark small { font-size: 13px; font-weight: 500; }
@keyframes rfSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rf-trend { width: 100%; height: 150px; }
.rf-trend-total { fill: var(--rf-surface-2); }
.rf-trend-present { fill: var(--rf-green); }
.rf-trend-label { fill: var(--rf-text-3); font-size: 9px; }

/* Workforce */
.rf-officer-list { display: grid; gap: 10px; }
.rf-officer { border: 1px solid var(--rf-hairline); border-radius: 18px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); overflow: hidden; }
.rf-officer summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rf-officer summary::-webkit-details-marker { display: none; }
.rf-officer summary strong { display: block; font-size: 14px; }
.rf-officer summary small { color: var(--rf-text-2); font-size: 12px; }
.rf-officer[open] summary { border-bottom: 1px solid var(--rf-hairline); }
.rf-officer-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rf-officer-status > span:not(.rf-chip) { color: var(--rf-text-3); font-size: 11px; font-weight: 700; }
.rf-officer-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; background: var(--rf-surface-2); }
.rf-officer-body .rf-plan-list li { background: var(--rf-surface); }
.rf-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #052b47, #0f4a73); font-size: 13px; font-weight: 800; }
.rf-avatar.large { width: 64px; height: 64px; font-size: 20px; }
.rf-report { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.rf-report dt { color: var(--rf-text-3); font-weight: 700; }
.rf-report dd { margin: 0; }
.rf-flag { display: grid; gap: 6px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; color: var(--rf-text-2); background: var(--rf-amber-soft); font-size: 12px; }
.rf-flag strong { color: var(--rf-amber); }
.rf-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; width: min(760px, 100%); margin: 6px auto 0; }
.rf-podium-step { display: grid; justify-items: center; gap: 6px; padding: 22px 12px 18px; border: 1px solid var(--rf-hairline); border-radius: 22px 22px 14px 14px; background: var(--rf-surface); box-shadow: var(--rf-shadow); text-align: center; }
.rf-podium-step.place-1 { min-height: 250px; border-color: color-mix(in srgb, var(--rf-gold) 60%, transparent); background: linear-gradient(180deg, var(--rf-gold-soft), var(--rf-surface) 75%); }
.rf-podium-step.place-2 { min-height: 210px; }
.rf-podium-step.place-3 { min-height: 190px; }
.rf-podium-step.empty { visibility: hidden; }
.rf-podium-step strong { font-size: 15px; }
.rf-podium-step small { color: var(--rf-text-2); font-size: 11px; }
.rf-medal { font-size: 30px; }
.rf-score { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--rf-text); }

/* responsive & motion */
@media (max-width: 1100px) {
  .rf-presenter, .rf-officer-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .rf-two, .rf-window-grid, .rf-grid-2 { grid-template-columns: 1fr; }
  .rf-banner { top: 0; }
}
@media (max-width: 600px) {
  .rf-hero { flex-direction: column; align-items: flex-start; border-radius: 22px; }
  .rf-grid-3, .rf-stat-row { grid-template-columns: repeat(2, 1fr); }
  .rf-line { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .rf-counter { display: none; }
  .rf-officer summary { grid-template-columns: auto minmax(0, 1fr); }
  .rf-officer-status { grid-column: 1 / -1; justify-content: flex-start; }
  .rf-podium { gap: 8px; }
  .rf-rate-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .rf-rate-row .rf-bar { grid-column: 1 / -1; grid-row: 2; }
  .rf-banner-action { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-banner-dot, .rf-feed li { animation: none; }
  .rf-ring-value, .rf-button, .rf-today-card { transition: none; }
}

/* Phase 37 — Foundation academics (public/academics.js): course cards, gradebook, marks entry,
   rankings and the Communications unread badges. Tokens only, so light and dark themes both work. */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; background: var(--rf-red); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px rgba(3, 26, 43, .9); animation: acBadgePulse 2.4s var(--rf-ease) infinite; }
.nav-item { display: flex; align-items: center; gap: 10px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--rf-red); font-size: 10px; font-weight: 800; vertical-align: middle; }
@keyframes acBadgePulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(3, 26, 43, .9), 0 0 0 0 rgba(200, 31, 44, .55); } 50% { box-shadow: 0 0 0 2px rgba(3, 26, 43, .9), 0 0 0 6px rgba(200, 31, 44, 0); } }
.ac-hero .rf-ring-text { font-size: 14px; }
.ac-back { justify-self: start; }
.ac-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ac-course-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 20px 20px 18px; border: 1px solid var(--rf-hairline); border-radius: var(--rf-radius); color: var(--rf-text); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); text-align: left; transition: transform .2s var(--rf-ease), box-shadow .2s var(--rf-ease), border-color .2s var(--rf-ease); }
button.ac-course-card { cursor: pointer; font: inherit; }
button.ac-course-card:hover, .ac-course-card.static:hover { transform: translateY(-2px); box-shadow: var(--rf-shadow); border-color: color-mix(in srgb, var(--rf-gold) 45%, transparent); }
.ac-course-card strong { padding-right: 34px; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.ac-course-card small { color: var(--rf-text-2); font-size: 12px; }
.ac-course-card .rf-button { margin-top: 6px; }
.ac-seq { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #052b47; background: var(--rf-gold-soft); font-size: 11px; font-weight: 800; }
.ac-course-code { color: var(--rf-accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ac-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ac-course-foot strong { padding: 0; font-size: 18px; }
.ac-assign { display: grid; gap: 5px; margin-top: 4px; color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ac-assign .rf-input { width: 100%; text-transform: none; letter-spacing: 0; }
.ac-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-components > div { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--rf-surface-2); }
.ac-components span { color: var(--rf-text-2); font-size: 12px; font-weight: 700; }
.ac-components span small { color: var(--rf-text-3); }
.ac-components strong { font-size: 20px; letter-spacing: -.02em; }
.ac-topics { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--rf-text-2); font-size: 13px; line-height: 1.45; }
.ac-topics li::marker { color: var(--rf-gold-ink); font-weight: 800; }
.ac-paper { margin: 0; }
.ac-returned { color: var(--rf-red); font-weight: 700; }
.ac-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ac-weights { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.ac-weights li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--rf-surface-2); font-size: 13px; }
.ac-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.ac-scale span { padding: 8px 12px; border-radius: 10px; background: var(--rf-surface-2); color: var(--rf-text-2); font-size: 12px; }
.ac-scale strong { display: inline-block; min-width: 26px; color: var(--rf-text); }
.ac-dialog .ac-form { display: grid; gap: 4px; }
.ac-dialog .rf-label { margin-top: 10px; }
.ac-marks-scroll { max-height: min(56vh, 560px); overflow: auto; border: 1px solid var(--rf-hairline); border-radius: 14px; }
.ac-marks-scroll thead th { position: sticky; top: 0; z-index: 1; }
.ac-marks .ac-score { width: 110px; }
.ac-marks .ac-remark { width: 100%; min-width: 150px; }
.ac-marks .ac-live { color: var(--rf-text-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-invalid { border-color: var(--rf-red) !important; box-shadow: 0 0 0 3px var(--rf-red-soft) !important; }
.ac-confirm { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; color: var(--rf-gold-ink); background: var(--rf-gold-soft); font-size: 13px; font-weight: 700; }
.ac-confirm input { width: 18px; height: 18px; accent-color: #052b47; }
.ac-matrix td, .ac-matrix th { text-align: center; white-space: nowrap; }
.ac-matrix td:first-child, .ac-matrix th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--rf-surface); }
.ac-course-stat { display: grid; grid-template-columns: 64px 1fr 54px; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; }
.ac-course-stat span { color: var(--rf-text-2); font-weight: 800; }
.ac-course-stat strong { text-align: right; font-variant-numeric: tabular-nums; }
.ac-rank-layout { align-items: start; }
.rf-tile small { display: block; margin-top: 4px; font-size: 11px; }
@media (max-width: 860px) {
  .ac-policy-grid, .ac-components, .ac-scale { grid-template-columns: 1fr; }
  .ac-rank-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }
.ac-course-card.static { display: flex; flex-direction: column; align-items: stretch; }
.ac-course-card.static > .rf-button { margin-top: auto; }
.ac-course-card.static .rf-chip-row { margin-bottom: 4px; }

/* Phase 38 — online assignments, live quizzes, follow-up & window alerts */
.ac-delivery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.ac-delivery-card { position: relative; display: grid; gap: 4px; padding: 14px; border: 1.5px solid var(--rf-hairline-strong); border-radius: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.ac-delivery-card input { position: absolute; opacity: 0; pointer-events: none; }
.ac-delivery-card strong { font-size: 14px; }
.ac-delivery-card small { color: var(--rf-text-2); font-size: 12px; line-height: 1.4; }
.ac-delivery-card.active { border-color: var(--rf-gold); background: var(--rf-gold-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rf-gold) 22%, transparent); }
.ac-delivery-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ac-delivery-panel { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--rf-surface-2); }
.ac-delivery-panel[hidden], [data-max-field][hidden] { display: none; }
.ac-inline-check { display: flex; align-items: center; gap: 8px; color: var(--rf-text-2); font-size: 13px; font-weight: 600; }
.ac-ai-note { margin: 0; color: var(--rf-red); font-size: 12px; font-weight: 700; }
.ac-question { display: grid; gap: 8px; margin: 0 0 12px; padding: 14px; border: 1px solid var(--rf-hairline); border-radius: 14px; background: var(--rf-surface); }
.ac-question-head { display: flex; align-items: center; gap: 12px; }
.ac-question-head strong { flex: 1; }
.ac-points { display: flex; align-items: center; gap: 6px; color: var(--rf-text-3); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ac-points .rf-input { width: 72px; }
.ac-options { display: grid; gap: 6px; }
.ac-option { display: grid; grid-template-columns: 22px 28px 1fr 30px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 12px; }
.ac-option.correct { background: var(--rf-green-soft); }
.ac-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--rf-green); }
.ac-option-letter { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: #052b47; font-size: 12px; font-weight: 800; }
.ac-tasks .rf-card-head { flex-wrap: wrap; }
.ac-join { display: flex; gap: 8px; }
.ac-join .rf-input { width: 130px; letter-spacing: .2em; text-align: center; font-weight: 800; }
.ac-task-row { width: 100%; border: 0; border-bottom: 1px solid var(--rf-hairline); background: none; color: var(--rf-text); text-align: left; cursor: pointer; }
.ac-live-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-bottom: 10px; padding: 14px 18px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(90deg, #8f1520, #c81f2c); font-size: 14px; text-align: left; cursor: pointer; animation: acGlow 2s ease-in-out infinite; }
.ac-live-alert span:last-child { margin-left: auto; font-weight: 800; }
@keyframes acGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 31, 44, .45); } 50% { box-shadow: 0 0 0 8px rgba(200, 31, 44, 0); } }
.ac-ai-banner { padding: 12px 16px; border-left: 4px solid var(--rf-red); border-radius: 0 12px 12px 0; color: var(--rf-text); background: var(--rf-red-soft); font-size: 13px; line-height: 1.5; }
.ac-ai-banner strong { color: var(--rf-red); }
.ac-instructions { padding: 14px 16px; border-radius: 14px; background: var(--rf-surface-2); font-size: 14px; line-height: 1.6; }
.ac-instructions p { margin: 0; }
.ac-answer { min-height: 240px; font-size: 15px; line-height: 1.6; }
.ac-declaration { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--rf-red) 35%, transparent); border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: var(--rf-text-2); }
.ac-declaration input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: #052b47; }
.ac-declaration strong { color: var(--rf-red); }
.ac-quiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ac-quiz-clock { min-width: 96px; padding: 10px 14px; border-radius: 14px; color: #fff; background: #052b47; font-size: 26px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.ac-quiz-clock.urgent { background: var(--rf-red); animation: rfPulse 1s infinite; }
.ac-quiz-result { display: grid; justify-items: center; gap: 2px; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 41, .35), transparent 50%), linear-gradient(135deg, #052b47, #0f4a73); }
.ac-quiz-result span { color: var(--rf-gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ac-quiz-result strong { font-size: 44px; letter-spacing: -.03em; }
.ac-quiz-questions { display: grid; gap: 18px; margin: 10px 0 0; padding-left: 22px; }
.ac-quiz-prompt { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.ac-quiz-prompt small { color: var(--rf-text-3); font-weight: 600; }
.ac-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-quiz-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 14px; border-radius: 14px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .12s var(--rf-ease), box-shadow .12s, opacity .12s; }
.ac-quiz-option input { position: absolute; opacity: 0; }
.ac-quiz-option .ac-option-letter { background: rgba(255, 255, 255, .22); }
.ac-quiz-option:hover { transform: translateY(-2px); }
.ac-quiz-option.picked, .ac-quiz-option:has(input:checked) { box-shadow: 0 0 0 4px var(--rf-surface), 0 0 0 7px var(--rf-gold); }
.ac-quiz-option:has(input:disabled) { cursor: default; transform: none; }
.ac-quiz-option.correct { box-shadow: 0 0 0 4px var(--rf-surface), 0 0 0 7px #16a34a; }
.ac-quiz-option.correct::after { content: "\2713"; margin-left: auto; font-size: 20px; }
.ac-quiz-option.wrong { opacity: .55; }
.ac-quiz-option.wrong::after { content: "\2715"; margin-left: auto; font-size: 18px; }
.tone-red { background: #c81f2c; }
.tone-blue { background: #1f5fa8; }
.tone-gold { background: #b7791f; }
.tone-green { background: #13824f; }
.tone-purple { background: #6b3fa0; }
.tone-teal { background: #0f7a80; }
.ac-live-dialog { width: min(1040px, calc(100% - 28px)); }
.ac-live { display: grid; gap: 16px; }
.ac-live-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-live-head h3 { margin: 0; }
.ac-live-code { display: grid; justify-items: center; padding: 12px 22px; border-radius: 18px; color: #fff; background: #052b47; }
.ac-live-code span { color: var(--rf-gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ac-live-code strong { font-size: 42px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.ac-live-code small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.ac-live-grid { align-items: start; }
.ac-leaderboard { display: grid; gap: 6px; max-height: 420px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.ac-leaderboard li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--rf-surface-2); animation: acSlideIn .35s var(--rf-ease); }
.ac-leaderboard li.top-1 { background: var(--rf-gold-soft); }
.ac-lb-pos { font-size: 18px; font-weight: 800; text-align: center; }
@keyframes acSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ac-question-stat { margin-top: 8px; }
.ac-submission-row td { padding-top: 0; }
.ac-submission-row details summary { cursor: pointer; color: var(--rf-accent); font-size: 12px; font-weight: 700; }
.ac-response { max-height: 260px; margin: 8px 0; padding: 12px 14px; overflow: auto; border-radius: 12px; background: var(--rf-surface-2); font-size: 13px; line-height: 1.55; }
.fu-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.fu-people { display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.fu-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--rf-hairline); border-radius: 14px; color: var(--rf-text); background: var(--rf-surface); text-align: left; cursor: pointer; }
.fu-person.active { border-color: var(--rf-gold); box-shadow: 0 0 0 3px var(--rf-gold-soft); }
.fu-person div { flex: 1; min-width: 0; }
.fu-person strong, .fu-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-person small { color: var(--rf-text-2); font-size: 11px; }
.fu-days { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-day { display: grid; justify-items: center; gap: 3px; min-width: 58px; padding: 8px; border-radius: 12px; background: var(--rf-surface-2); font-size: 11px; }
.fu-day b { font-size: 12px; }
.fu-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rf-text-3); }
.fu-dot.SUBMITTED { background: var(--rf-green); }
.fu-dot.MISSED { background: var(--rf-red); }
.fu-dot.PENDING { background: var(--rf-amber); }
.fu-thread { display: grid; gap: 8px; max-height: 320px; margin-bottom: 10px; overflow: auto; }
.fu-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--rf-surface-2); font-size: 13px; line-height: 1.45; }
.fu-bubble.mine { justify-self: end; border-radius: 16px 16px 4px 16px; color: #fff; background: #052b47; }
.fu-bubble small { display: block; margin-top: 4px; opacity: .7; font-size: 10.5px; }
.fu-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.fu-composer textarea { min-height: 64px; }
.wd-alert-dialog { width: min(480px, calc(100% - 28px)); text-align: center; }
.wd-alert-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; color: #052b47; background: var(--rf-gold); font-size: 34px; animation: rfPulse 1.8s infinite; }
.wd-alert-dialog h3 { margin: 6px 0; font-size: 22px; }
.wd-alert-dialog p { margin: 0 0 6px; color: var(--rf-text-2); line-height: 1.5; }
.wd-alert-clock { margin: 10px 0; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .fu-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ac-delivery, .ac-quiz-options { grid-template-columns: 1fr; }
  .ac-live-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ac-live-alert, .ac-leaderboard li, .wd-alert-icon { animation: none; } }
.ac-inline-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }

.ac-conduct { border-color: color-mix(in srgb, var(--rf-gold) 45%, transparent); background: linear-gradient(180deg, var(--rf-gold-soft), var(--rf-surface) 70%); }
.ac-conduct-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ac-conduct-row label { display: grid; flex: 1 1 280px; gap: 6px; color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ac-conduct-row .rf-input { text-transform: none; letter-spacing: 0; }
