/* AFP Command Center — Light Theme
   Brand: AFP style guide (navy, gold, blue)
   Neutrals: TV Brand Guide custom properties
   Layout: VantageWire card patterns, clean internal product
*/

:root {
  /* TV Neutrals */
  --black: #000000;
  --near-black: #1D1D1D;
  --dark-gray: #434343;
  --medium-gray: #7F7F7F;
  --light-gray: #BFBFBF;
  --pale-gray: #D8D8D8;
  --off-white: #F2F2F2;
  --white: #FFFFFF;

  /* AFP Brand */
  --afp-blue: #0072e5;
  --afp-navy: #112337;
  --afp-gold: #FEBD3D;

  /* Status */
  --success: #28a745;
  --warning: #e0a100;
  --info: #0072e5;
  --error: #dc3545;
  --muted: #7F7F7F;

  /* Typography */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: #F7F7F5;
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  background: var(--afp-navy);
  padding: 16px 32px;
}
.header-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  height: 36px;
  width: auto;
}
.header-product-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2px;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.header-sister-orgs {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sister-logo {
  height: 20px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.4;
}
.env-badge {
  background: rgba(255,255,255,0.08);
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
}

/* Stat Row */
.stat-row {
  background: var(--white);
  border-bottom: 1px solid var(--off-white);
}
.stat-row-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  gap: 36px;
}
.stat-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.5px;
}
.stat-hero {
  font-size: 32px;
  color: var(--success);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: var(--medium-gray);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--off-white);
  flex-shrink: 0;
}

/* Tab Bar */
.tab-bar {
  background: var(--white);
  border-bottom: 1px solid var(--pale-gray);
}
.tab-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.tab {
  background: none;
  border: none;
  color: var(--medium-gray);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.2px;
}
.tab:hover { color: var(--dark-gray); }
.tab.active {
  color: var(--afp-navy);
  border-bottom-color: var(--afp-gold);
}

/* ── Container ──────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Section Headings ───────────────────────────────────────────── */

.section-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.3px;
}
.section-sub {
  font-size: 13px;
  color: var(--medium-gray);
  margin-top: 4px;
  font-weight: 400;
}

/* ── Tab 1: Tools ───────────────────────────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--pale-gray);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s;
}
.tool-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

.tool-card.accent-active { border-left-color: var(--success); background: #FAFFF9; }
.tool-card.accent-building { border-left-color: var(--info); background: #F8FBFF; }
.tool-card.accent-planning { border-left-color: var(--warning); background: #FFFDF7; }
.tool-card.accent-upcoming { border-left-color: var(--pale-gray); }

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tool-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.tool-status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-active { background: #e6f4ea; color: #1a7f37; }
.badge-building { background: #dbeafe; color: #1d5fa8; }
.badge-planning { background: #fef3cd; color: #8a6d00; }
.badge-upcoming { background: var(--off-white); color: var(--medium-gray); }

.tool-desc {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65;
  font-weight: 400;
}

.tool-replaces {
  font-size: 13px;
  color: var(--dark-gray);
  padding: 12px 14px;
  background: var(--off-white);
  border-left: 3px solid var(--pale-gray);
  border-radius: 6px;
  line-height: 1.5;
}
.tool-replaces strong {
  color: var(--near-black);
  font-weight: 600;
}

.tool-who {
  font-size: 12px;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-who-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--afp-gold);
  flex-shrink: 0;
}

.tool-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--off-white);
  margin-top: auto;
}
.tool-metric-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--afp-navy);
  letter-spacing: -1.5px;
  flex-shrink: 0;
}
.tool-metric-label {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.5;
}

/* ── Tab: Brief Builder ─────────────────────────────────────────── */

.builder-content {
  max-width: 1200px;
  margin: 0 auto;
}

.builder-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--medium-gray);
  margin-bottom: 10px;
  margin-top: 24px;
}

/* Overview Bar */
.builder-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.builder-overview-stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}
.builder-overview-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -1px;
}
.builder-overview-label {
  font-size: 13px;
  color: var(--medium-gray);
  font-weight: 400;
}
.builder-overview-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pale-gray);
  flex-shrink: 0;
}

/* Example Brief */
.example-brief {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}

.example-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px 12px;
}
.example-brief-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.2px;
}
.example-brief-subtitle {
  font-size: 13px;
  color: var(--medium-gray);
  margin-top: 4px;
}

.example-brief-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--off-white);
  border-bottom: 1px solid var(--off-white);
}
.meta-item {
  flex: 1;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--off-white);
}
.meta-item:last-child { border-right: none; }
.meta-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--medium-gray);
}
.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
}

/* Proof Grid */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.proof-card {
  padding: 20px 22px;
  border-right: 1px solid var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proof-card:last-child { border-right: none; }

.proof-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proof-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-gray);
}

.proof-colors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.color-swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.color-hex {
  font-size: 12px;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--medium-gray);
}

.proof-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof-field-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--medium-gray);
}
.proof-field-value {
  font-size: 14px;
  color: var(--near-black);
  font-weight: 500;
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proof-pill {
  font-size: 12px;
  background: var(--off-white);
  color: var(--dark-gray);
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 500;
}
.proof-pill-warm { background: #FDF0F1; color: #c1121f; }
.proof-pill-cool { background: #EDF3F2; color: #183A37; }

.proof-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--off-white);
  margin-top: auto;
}
.proof-footer-item {
  font-size: 12px;
  color: var(--medium-gray);
}
.proof-footer-divider {
  color: var(--pale-gray);
}

.example-brief-disclaimer {
  padding: 10px 22px;
  background: var(--off-white);
  font-size: 12px;
  color: var(--medium-gray);
  line-height: 1.5;
}

/* How It Works */
.how-it-works {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.how-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.how-desc {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.6;
  max-width: 220px;
}
.how-arrow {
  display: flex;
  align-items: center;
  padding-top: 16px;
  flex-shrink: 0;
}

/* Tad explainer paragraph */
.tad-explainer {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(224,161,0,0.15);
}

/* Timeline Card */
.timeline-card {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-left: 4px solid var(--success);
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.timeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(40,167,69,0); }
}
.marker-now { background: var(--success); animation: pulse 2s ease-in-out infinite; }
.marker-next { background: var(--info); }
.marker-june { background: var(--afp-gold); }

.timeline-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.timeline-step-desc {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.6;
  padding-right: 24px;
}

.timeline-line {
  width: 40px;
  height: 0;
  border-top: 2px dashed var(--pale-gray);
  background: none;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Tab 2: Operations ──────────────────────────────────────────── */

.ops-top {
  margin-bottom: 16px;
}

.ops-status-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 10px;
  padding: 14px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.ops-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ops-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.5px;
}
.ops-stat-done { color: var(--info); }
.ops-stat-label {
  font-size: 13px;
  color: var(--medium-gray);
}
.ops-stat-sep {
  width: 1px;
  height: 24px;
  background: var(--off-white);
  flex-shrink: 0;
}
.ops-progress-wrap {
  flex: 1;
  min-width: 120px;
}

.tier-desc {
  font-size: 13px;
  color: var(--medium-gray);
  font-weight: 400;
}

.pipeline-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--off-white);
}
.pipeline-segment { transition: width 0.4s ease; }
.seg-approved { background: var(--success); }
.seg-reviewed { background: var(--warning); }
.seg-generated { background: var(--info); }

/* Tier Groups */
.tier-group { margin-bottom: 24px; }

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--off-white);
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--pale-gray);
  border-bottom: none;
}
.tier-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.tier-meta {
  font-size: 12px;
  color: var(--medium-gray);
  display: flex;
  gap: 20px;
}
.tier-strategy {
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.strategy-positive { background: #e6f4ea; color: #1a7f37; }
.strategy-contrast { background: #fce8ea; color: #b52533; }

.brief-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--off-white);
  border: 1px solid var(--pale-gray);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.brief-card {
  background: var(--white);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brief-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.brief-candidate {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.brief-district {
  font-size: 12px;
  color: var(--medium-gray);
}
.brief-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}
.status-generated { background: #dbeafe; color: #1d5fa8; }
.status-reviewed { background: #fef3cd; color: #8a6d00; }
.status-approved { background: #e6f4ea; color: #1a7f37; }
.status-pending { background: var(--off-white); color: var(--medium-gray); }

.brief-details {
  font-size: 12px;
  color: var(--medium-gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brief-opponent { color: var(--dark-gray); font-weight: 600; }
.brief-pillars { display: flex; flex-wrap: wrap; gap: 4px; }
.pillar-tag {
  font-size: 12px;
  background: var(--off-white);
  color: var(--medium-gray);
  padding: 2px 8px;
  border-radius: 9999px;
}
.brief-link-btn {
  font-size: 13px;
  color: var(--white);
  background: var(--afp-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.brief-link-btn:hover { opacity: 0.9; }

.brief-card-highlight {
  border-left: 4px solid var(--success);
  background: #F0FFF4;
}

/* ── Tab 3: Approvals ───────────────────────────────────────────── */

.approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.approval-card {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.approval-card-header {
  padding: 14px 20px;
  background: var(--off-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.approval-owner {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.approval-count {
  font-size: 12px;
  color: var(--medium-gray);
  background: var(--white);
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--off-white);
  font-size: 13px;
}
.approval-item:last-child { border-bottom: none; }
.approval-item-name { color: var(--dark-gray); }

.approval-waiting {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wait-blocking { background: #fce8ea; color: #b52533; }
.wait-days { background: #fef3cd; color: #8a6d00; }
.wait-open { background: var(--off-white); color: var(--medium-gray); }
.wait-client { background: #dbeafe; color: #1d5fa8; }

/* ── Tab: Approval Reminders ─────────────────────────────────────── */

/* Centered content column */
.reminders-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Page header */
.reminders-header {
  margin-bottom: 24px;
}
.reminders-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.reminders-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.4px;
}
.reminders-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fef3cd;
  color: #8a6d00;
  flex-shrink: 0;
}
.reminders-subtitle {
  font-size: 14px;
  color: var(--medium-gray);
  line-height: 1.5;
}

/* Story Flow (plain-language steps) */
.story-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 8px;
}
.story-card {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.story-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--afp-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.story-content { flex: 1; }
.story-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 6px;
  line-height: 1.3;
}
.story-desc {
  font-size: 14px;
  color: var(--medium-gray);
  line-height: 1.65;
}
.story-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  margin-top: 40px;
}
.story-connector-line {
  width: 24px;
  height: 0;
  border-top: 2px dashed var(--pale-gray);
  position: relative;
}
.story-connector-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--pale-gray);
  border-bottom: 1.5px solid var(--pale-gray);
  transform: rotate(-45deg);
}
.story-footnote {
  font-size: 13px;
  color: var(--light-gray);
  text-align: center;
  margin-bottom: 20px;
}

/* Decisions Card */
.reminder-card {
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.reminder-card-decisions {
  background: #FFFBF0;
  border: 1px solid #F5E6C0;
  border-left: 5px solid #e0a100;
  padding: 28px;
}

.decisions-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.decisions-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0a100;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.decisions-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.2px;
}

.decisions-list {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: decimal;
}
.decisions-list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 4px;
}
.decisions-list li .decision-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 4px;
}
.decisions-list li .decision-text {
  display: block;
  color: var(--medium-gray);
  line-height: 1.65;
  font-size: 14px;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 10px 14px;
}

/* Precedent Card */
.reminder-card-precedent {
  background: #F9F9F7;
  border: 1px solid var(--off-white);
  padding: 22px 24px;
}
.precedent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.precedent-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-gray);
}
.precedent-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: #e6f4ea;
  color: #1a7f37;
}
.reminder-card-body {
  font-size: 14px;
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ── Brief Preview Modal ────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 32px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--off-white);
  flex-shrink: 0;
}
.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--near-black);
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-open-btn {
  font-size: 13px;
  color: var(--afp-blue);
  text-decoration: none;
  font-weight: 600;
}
.modal-open-btn:hover { text-decoration: underline; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--medium-gray);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--near-black); }
.modal-body {
  flex: 1;
  overflow: hidden;
}
.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 32px;
  font-size: 12px;
  color: var(--light-gray);
  border-top: 1px solid var(--off-white);
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .stat-row-inner { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .ops-status-row { flex-wrap: wrap; }
  .ops-progress-wrap { width: 100%; }
  .builder-overview { flex-wrap: wrap; gap: 16px; }
  .builder-overview-dot { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { border-right: none; border-bottom: 1px solid var(--off-white); }
  .proof-card:last-child { border-bottom: none; }
  .how-it-works { flex-direction: column; gap: 24px; padding: 24px; }
  .how-arrow { transform: rotate(90deg); padding-top: 0; }
  .how-desc { max-width: 100%; }
  .story-flow { grid-template-columns: 1fr; gap: 0; }
  .story-connector { padding: 2px 0; justify-content: center; margin-top: 0; }
  .story-connector-line { width: 0; height: 20px; border-top: none; border-left: 2px dashed var(--pale-gray); }
  .story-connector-line::after { right: auto; top: auto; bottom: -4px; left: -4px; transform: rotate(45deg); }
  .timeline-steps { flex-direction: column; gap: 20px; }
  .timeline-line { width: 1px; height: 20px; margin-top: 0; margin-left: 6px; }
  .timeline-step-desc { padding-right: 0; }
  .example-brief-meta { flex-wrap: wrap; }
  .meta-item { min-width: 50%; }
}
@media (max-width: 600px) {
  .header-bar { padding: 12px 16px; }
  .header-bar-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .stat-row-inner { padding: 20px 16px; }
  .container { padding: 24px 16px 48px; }
  .brief-cards { grid-template-columns: 1fr; }
  .approval-grid { grid-template-columns: 1fr; }
  .tab { padding: 12px 12px; font-size: 11px; }
  .tool-card { padding: 24px; }
  .arch-diagram { padding: 24px 16px; }
  .arch-sources { flex-direction: column; gap: 16px; align-items: center; }
  .arch-connector-down { display: none; }
  .reminder-card-decisions { padding: 24px; }
  .reminder-card-precedent { padding: 24px; }
}
