/* ==========================================================================
   Fundraiser Blankets® — Production OS v5.0 Executive & Floor Command CSS
   Enforces:
   - zero-leak-signon: [hidden] { display: none !important; } (Zero pre-auth leaks)
   - smart-menu-architect: Header <= 1034px desktop budget, Y=0 sticky lock
   - above-the-fold-storefront: Zero-scroll primary controls & zero clutter
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-elev: #0e1525;
  --surface: rgba(18, 27, 46, 0.88);
  --surface-solid: #121b2e;
  --surface-hover: rgba(29, 42, 68, 0.94);
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --gold: #f5a524;
  --gold-2: #ffcb6b;
  --gold-glow: rgba(245, 165, 36, 0.26);
  --accent: #38bdf8;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --surface-hover: #f8fafc;
  --border: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(15, 23, 42, 0.2);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --gold: #d98a06;
  --gold-2: #b86f00;
  --gold-glow: rgba(217, 138, 6, 0.16);
  --shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.18);
}

/* CRITICAL ZERO-LEAK RULE */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Ambient Background Orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
}
.bg-orbs span:nth-child(1) {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.32), transparent 70%);
  top: -200px;
  left: -140px;
}
.bg-orbs span:nth-child(2) {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  top: 20%;
  right: -220px;
}
.bg-orbs span:nth-child(3) {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  bottom: -200px;
  left: 30%;
}
[data-theme="light"] .bg-orbs span {
  opacity: 0.12;
}

/* ==========================================================================
   Sticky Header <= 78px & Width Budget <= 1034px (smart-menu-architect)
   240px Brand + 640px 3-Tab Pill Bar + 140px Actions = 1020px <= 1034px
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 68px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* Primary 3-Tab Navigation Bar (<= 640px budget, zero clipping) */
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  max-width: 640px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-pill {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.nav-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill.active {
  background: linear-gradient(135deg, var(--gold), #f08c1a);
  color: #1a1205;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px -2px var(--gold-glow);
}

/* Right Header Utilities (<= 140px budget) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 140px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.icon-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ==========================================================================
   Pre-Authentication Gate (100% Zero-Leak Compliant)
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 64px;
}

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 110px);
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.auth-brand-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-gate-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.32);
  color: var(--gold-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.auth-lock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.auth-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-heading em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-sso-wrap {
  margin-bottom: 16px;
}

.btn-google-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.btn-google-sso:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(245, 165, 36, 0.25);
}

.auth-key-fallback {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  text-align: left;
}

.auth-key-fallback summary {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
  cursor: pointer;
  text-align: center;
  list-style: none;
  user-select: none;
}

.auth-key-fallback summary::-webkit-details-marker {
  display: none;
}

.auth-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.auth-input,
.clean-input,
.clean-select,
.search-input {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s;
}

.auth-input {
  flex: 1;
}

.auth-input:focus,
.clean-input:focus,
.clean-select:focus,
.search-input:focus {
  border-color: var(--gold);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f08c1a);
  color: #1a1205;
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), filter 0.15s;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline,
.btn-subtle {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s var(--ease);
}

.btn-outline:hover,
.btn-subtle:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.status-banner {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
}

.auth-gate-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ==========================================================================
   TAB 1: 7D / 30D / 60D / 90D Real-Time Production KPIs & Reassignment Queue
   ========================================================================== */
.kpi-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.kpi-bar-left,
.kpi-section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.fs-sheet-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-2);
  margin-bottom: 4px;
}

.fs-meta-grid {
  margin-bottom: 8px;
}

.num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.window-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elev);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.win-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.win-btn:hover {
  color: var(--text);
}

.win-btn.active {
  background: linear-gradient(135deg, var(--gold), #f08c1a);
  color: #1a1205;
  box-shadow: 0 3px 10px -2px var(--gold-glow);
}

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  box-shadow: var(--shadow);
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.kpi-card.accent-emerald::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.kpi-card.accent-sky::before {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
}

.kpi-value {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 5px;
  display: block;
  color: var(--text);
}

.kpi-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.kpi-card.accent-emerald .kpi-sub {
  color: #34d399;
}

/* Front-and-Center Automation Reassignment Card */
.reassignment-hero-card {
  border-color: rgba(245, 165, 36, 0.38);
  margin-bottom: 14px;
}

.reassignment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reassign-action-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
}

.wakeup-alert-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
}

.wakeup-alert-pill.critical {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* Interactive 6-Stage Pipeline Card */
.pipeline-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pipeline-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.section-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.section-hint {
  font-size: 12px;
  color: var(--muted);
}

.pipeline-stages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.stage-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s var(--ease);
}

.stage-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.stage-card.active-stage {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 165, 36, 0.14), var(--bg-elev));
  box-shadow: 0 8px 20px -6px var(--gold-glow);
}

.stage-card.bridge-active {
  border-color: rgba(16, 185, 129, 0.35);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stage-step {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.stage-bridge-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.stage-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.stage-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2px;
}

.stage-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.stage-owner {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   TAB 2: Frances Hega's Exact Timesheet & Payroll Output Format
   ========================================================================== */
.frances-hours-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.frances-hours-split > .panel-card {
  min-width: 0;
}

.frances-sheet-card {
  border-color: rgba(245, 165, 36, 0.38);
  position: sticky;
  top: 84px;
}

.fs-header-banner {
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.16), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(245, 165, 36, 0.35);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fs-company-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-2);
  letter-spacing: 0.01em;
}

.fs-emp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 12px;
}

.fs-emp-field strong {
  color: var(--muted);
  font-weight: 700;
  margin-right: 4px;
}

.fs-daily-table th,
.fs-daily-table td {
  padding: 6px 8px;
  font-size: 11.5px;
}

.weekend-row {
  background: rgba(239, 68, 68, 0.09);
}

.weekend-row td {
  color: var(--muted);
}

.summary-footer-row td {
  background: rgba(245, 165, 36, 0.14);
  font-weight: 800;
  border-top: 2px solid var(--gold);
  color: var(--text);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row.selected-emp-row {
  background: rgba(245, 165, 36, 0.15) !important;
}

/* ==========================================================================
   TAB 3: Workload & Skill Router (For Joan & Frances)
   ========================================================================== */
.delegation-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.role-capacity-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-cap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-cap-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.role-cap-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.floor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 240px;
}

.search-input {
  width: 100%;
}

.toolbar-selects {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.showing-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.designer-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.16s var(--ease);
}

.designer-card:hover {
  border-color: var(--border-strong);
}

.designer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.designer-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.designer-track {
  font-size: 12px;
  color: var(--gold-2);
  font-weight: 600;
  margin-top: 2px;
}

.task-badge {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-meter {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-elev);
  overflow: hidden;
}

.activity-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #10b981);
}

.telemetry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.telemetry-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--muted);
}

.telemetry-chip.good {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.telemetry-chip.warn {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--warn);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.task-item {
  font-size: 12px;
  line-height: 1.35;
  background: var(--bg-elev);
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.revision {
  border-left: 3px solid var(--warn);
}

/* Shared Panel & Table Utilities */
.panel-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-2);
  display: block;
}

.panel-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.panel-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 820px;
}

.pill-stat {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  white-space: nowrap;
}

.pill-stat.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--warn);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.clean-table th {
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.clean-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.clean-table tbody tr:hover {
  background: var(--surface-hover);
}

/* Floating Secondary Portal Pill */
.frb-floating-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 490;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.frb-floating-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 1220px) {
  .pipeline-stages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .frances-hours-split {
    grid-template-columns: 1fr;
  }
  .frances-sheet-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
