/* PMO Prototype — Column-inspired design system
   Source: /Users/ec2-user/clawd/refero-designs/column/DESIGN.md
   "Architectural blueprint on white marble" — light, spacious, technical.
*/

:root {
  /* Column palette */
  --ink-blue:      #011821;  /* primary text */
  --code-black:    #000000;  /* maximum contrast for critical */
  --ghost-white:   #ffffff;  /* page bg, cards */
  --fog-gray:      #f6f6f8;  /* secondary section bg */
  --steel-gray:    #e3e4e8;  /* borders, dividers */
  --charcoal:      #232730;  /* body/nav text on light */
  --slate:         #7c7f88;  /* secondary text, captions */
  --deep-plum:     #111a4a;  /* brand primary, secondary CTA */
  --action-orange: #ec652b;  /* primary CTA, critical accent */
  --success-moss:  #44b48b;  /* semantic success */
  --info-blue:     #7ea7e9;  /* informational, NOT actionable */
  --callout-cyan:  #167e6c;  /* secondary highlight */
  --faded-grid:    #023247;  /* dotted-grid pattern */

  /* Tier palette — semantic, restrained */
  --tier-p0-fg: #ec652b;     /* Action Orange — earned for true emergency */
  --tier-p0-bg: #FFE8DD;
  --tier-p1-fg: #B8590E;     /* Burnt orange */
  --tier-p1-bg: #FFF1E0;
  --tier-p2-fg: #6B5810;     /* Olive */
  --tier-p2-bg: #FCF6DC;
  --tier-p3-fg: #2D5566;     /* Slate teal */
  --tier-p3-bg: #E6EEF2;
  --tier-stab-fg: #4A2D6B;   /* Deep plum-tinted */
  --tier-stab-bg: #EDE6F2;
  --tier-needs-fg: var(--slate);
  --tier-needs-bg: var(--fog-gray);
  --tier-released-fg: #2A6B4A;
  --tier-released-bg: #E0F0E6;

  /* Type */
  --font-display: 'Inter', system-ui, sans-serif;        /* SuisseIntl substitute */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', Menlo, monospace;  /* SFMono substitute */

  /* Shadows — Column-discipline: subtle, layered */
  --shadow-card: rgba(17, 26, 74, 0.05) 0px 0px 0px 1px,
                 rgba(0, 0, 0, 0.08) 0px 1px 2px 0px,
                 rgba(255, 255, 255, 0.5) 0px 0px 0px 1px inset;
  --shadow-card-elevated: rgba(17, 26, 74, 0.08) 0px 2px 16px 0px,
                          rgba(17, 26, 74, 0.05) 0px 0px 0px 1px;
  --shadow-sm: rgba(0,0,0,0.05) 0px 2px 4px 0px;

  /* Spacing rhythm (Column: 24px element gap, 48px section gap) */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 24px;
  --gap-xl: 48px;

  /* Radii — Column default 8px */
  --radius-card: 8px;
  --radius-button: 8px;
  --radius-badge: 4px;
  --radius-subtle: 2px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.28px;
  color: var(--ink-blue);
  background-color: var(--ghost-white);
  /* The signature Column move: subtle dotted-grid pattern background */
  background-image: radial-gradient(circle at 1px 1px, rgba(2, 50, 71, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-blue);
  margin: 0;
  font-weight: 600;
}
h1 { letter-spacing: -0.8px; line-height: 1.1; }
h2 { letter-spacing: -0.48px; line-height: 1.33; }
h3 { letter-spacing: -0.36px; line-height: 1.4; }

a { color: var(--deep-plum); text-decoration: none; transition: color 120ms; }
a:hover { color: var(--action-orange); }

code, .mono { font-family: var(--font-mono); font-feature-settings: "cv11", "salt" 2; }

/* ============ TOP NAV ============ */
.topnav {
  background: var(--ghost-white);  /* solid — blocks the dotted grid */
  border-bottom: 1px solid var(--steel-gray);
  box-shadow: 0 1px 0 rgba(17, 26, 74, 0.02);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Brand mark — logomark + wordmark + demoted version pill */
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.topnav .brand .mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ghost-white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
  flex-shrink: 0;
}
.topnav .brand .mark::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--action-orange);
  border: 2px solid var(--ghost-white);
}
.topnav .brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-blue);
  letter-spacing: -0.28px;
  line-height: 1;
  white-space: nowrap;
}
.topnav .brand .wordmark .sub {
  font-weight: 400;
  color: var(--slate);
  margin-left: 2px;
}
.topnav .brand .ver {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid var(--steel-gray);
  margin-left: 4px;
  line-height: 1;
  white-space: nowrap;
}

/* Desktop nav */
.topnav nav {
  margin-left: auto;
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
}
.topnav nav a {
  color: var(--charcoal);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0 1px;
  position: relative;
  transition: color 100ms, background-color 100ms;
}
.topnav nav a:hover {
  color: var(--ink-blue);
  background: var(--fog-gray);
  text-decoration: none;
}
.topnav nav a.active {
  color: var(--ink-blue);
  background: var(--fog-gray);
  font-weight: 600;
}
.topnav nav a.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--deep-plum);
  border-radius: 1px;
}
.topnav nav a.new-action {
  background: var(--deep-plum);
  color: var(--ghost-white);
  font-weight: 500;
  margin-left: 10px;
  padding: 6px 14px;
}
.topnav nav a.new-action:hover {
  background: #0c1438;
  color: var(--ghost-white);
}
.topnav nav a.new-action.active {
  background: #0c1438;  /* slightly pressed deep plum — stays primary, not a CTA on its own page */
  color: var(--ghost-white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.topnav nav a.new-action.active::after { display: none; }

/* Subtle separator between regular nav items and the CTA */
.topnav nav a.new-action {
  position: relative;
  margin-left: 16px;  /* room for separator */
}
.topnav nav a.new-action::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: #c8cad0;  /* slightly darker than steel-gray so it's actually visible */
}

/* Mobile hamburger — hidden by default */
.topnav .hamburger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--steel-gray);
  border-radius: 6px;
  width: 36px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.topnav .hamburger:hover { border-color: var(--deep-plum); }
.topnav .hamburger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--charcoal);
  position: relative;
}
.topnav .hamburger span::before,
.topnav .hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: var(--charcoal);
}
.topnav .hamburger span::before { top: -5px; }
.topnav .hamburger span::after  { top: 5px; }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--ghost-white);
  border-bottom: 1px solid var(--steel-gray);
  box-shadow: 0 8px 24px rgba(17, 26, 74, 0.08);
  z-index: 49;
  padding: 12px 16px 40px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: -0.28px;
  border-bottom: 1px solid var(--fog-gray);
}
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer a.active {
  color: var(--ink-blue);
  background: var(--fog-gray);
  font-weight: 600;
}
.mobile-drawer a.new-action {
  background: var(--deep-plum);
  color: var(--ghost-white);
  margin: 8px 0;
  justify-content: center;
}

@media (max-width: 760px) {
  .topnav { padding: 0 16px; gap: 12px; }
  .topnav nav { display: none; }
  .topnav .hamburger { display: inline-flex; }
  .topnav .brand .ver { display: none; }
  .topnav .brand .wordmark { font-size: 13.5px; }
}

/* ============ PAGE LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--gap-sm);
  flex-wrap: wrap;
}
.page-title h1 {
  font-size: 32px;
  font-weight: 600;
}
.page-title .count {
  font-family: var(--font-mono);
  background: var(--fog-gray);
  color: var(--slate);
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--steel-gray);
  letter-spacing: 0;
}

.page-subtitle {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 28px;
  letter-spacing: -0.28px;
  max-width: 760px;
}

/* ============ STATUS SENTENCE (above-the-fold every page) ============ */
.status-sentence {
  background: var(--ink-blue);
  color: var(--ghost-white);
  padding: 16px 24px;
  border-radius: var(--radius-card);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font-body);
  letter-spacing: -0.28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-sentence strong { color: var(--ghost-white); font-weight: 600; }
.status-sentence .accent { color: var(--action-orange); font-weight: 600; }
.status-sentence .warn-accent { color: #FCA5A5; font-weight: 600; }

/* ============ SIGNAL TILES ============ */
.signal-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-bottom: 36px;
}
.signal-tile {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.signal-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--steel-gray);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}
.signal-tile.red::before    { background: var(--action-orange); }
.signal-tile.amber::before  { background: var(--tier-p2-fg); }
.signal-tile.green::before  { background: var(--success-moss); }

.signal-tile .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 6px;
}
.signal-tile .value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-blue);
  line-height: 1;
  letter-spacing: -0.64px;
}
.signal-tile .sub {
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
  letter-spacing: -0.24px;
}

/* ============ HOME SECTIONS ============ */
.home-section { margin-bottom: 44px; }
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--steel-gray);
}
.home-section-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-blue);
  font-weight: 600;
  letter-spacing: -0.36px;
}
.home-section-head .count {
  font-family: var(--font-mono);
  background: var(--fog-gray);
  color: var(--slate);
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--steel-gray);
}
.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 768px) {
  .home-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .home-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ============ TICKET CARDS — 6-zone layout ============ */
.ticket-card {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: block;
  color: var(--ink-blue);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 140ms, transform 100ms;
  position: relative;
  overflow: hidden;
}
.ticket-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--steel-gray);
}
.ticket-card.signal-red::before    { background: var(--action-orange); }
.ticket-card.signal-amber::before  { background: var(--tier-p2-fg); }
.ticket-card.signal-green::before  { background: var(--success-moss); }
.ticket-card.signal-done::before   { background: var(--steel-gray); }
.ticket-card.signal-done { opacity: 0.85; }
.ticket-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-card-elevated);
}
.ticket-card:active { transform: scale(0.998); }

.ticket-top {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ticket-signal { font-size: 13px; line-height: 1; }
.ticket-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0;
}
.ticket-hot { font-size: 13px; }
.ticket-age {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0;
  white-space: nowrap;
}
.ticket-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-blue);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.ticket-context {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: -0.24px;
  margin-bottom: 10px;
}
.ticket-next {
  font-size: 12.5px;
  color: var(--charcoal);
  background: var(--fog-gray);
  padding: 8px 10px;
  border-radius: var(--radius-badge);
  margin-bottom: 10px;
  line-height: 1.45;
  letter-spacing: -0.25px;
  border-left: 2px solid var(--deep-plum);
}
.ticket-next strong {
  font-family: var(--font-mono);
  color: var(--deep-plum);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-sm);
  padding-top: 8px;
  border-top: 1px solid var(--steel-gray);
}
.ticket-foot .owner {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ============ BADGES — mono, restrained ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-badge);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.tier-P0           { background: var(--tier-p0-bg); color: var(--tier-p0-fg); border-color: rgba(236, 101, 43, 0.2); }
.badge.tier-P1           { background: var(--tier-p1-bg); color: var(--tier-p1-fg); border-color: rgba(184, 89, 14, 0.2); }
.badge.tier-P2           { background: var(--tier-p2-bg); color: var(--tier-p2-fg); border-color: rgba(107, 88, 16, 0.2); }
.badge.tier-P3           { background: var(--tier-p3-bg); color: var(--tier-p3-fg); border-color: rgba(45, 85, 102, 0.2); }
.badge.tier-Stability    { background: var(--tier-stab-bg); color: var(--tier-stab-fg); border-color: rgba(74, 45, 107, 0.2); }
.badge.tier-NeedsDetail  { background: var(--tier-needs-bg); color: var(--tier-needs-fg); border-color: var(--steel-gray); }
.badge.tier-Released     { background: var(--tier-released-bg); color: var(--tier-released-fg); border-color: rgba(42, 107, 74, 0.2); }
.badge.rollout-1         { background: var(--tier-released-bg); color: var(--tier-released-fg); }
.badge.rollout-2         { background: var(--tier-p3-bg); color: var(--tier-p3-fg); }
.badge.rollout-3         { background: var(--tier-p1-bg); color: var(--tier-p1-fg); }
.badge.rollout-4         { background: var(--tier-stab-bg); color: var(--tier-stab-fg); }
.badge.product           { background: var(--fog-gray); color: var(--charcoal); border-color: var(--steel-gray); }
.badge.lane-A            { background: var(--deep-plum); color: var(--ghost-white); }
.badge.lane-B            { background: var(--callout-cyan); color: var(--ghost-white); }
.badge.lane-C            { background: var(--action-orange); color: var(--ghost-white); }
.badge.draft-badge       { background: var(--fog-gray); color: var(--deep-plum); border: 1px dashed var(--deep-plum); text-transform: uppercase; }

/* ============ ROLE PICKER (landing) ============ */
.role-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  margin-top: 28px;
}
@media (min-width: 700px) { .role-picker { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .role-picker { grid-template-columns: repeat(3, 1fr); } }

.role-card {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all 160ms;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--deep-plum);
  transition: background 160ms, width 160ms;
}
.role-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-card-elevated);
  transform: translateY(-2px);
}
.role-card:hover::before {
  background: var(--action-orange);
  width: 4px;
}
.role-card .emoji { font-size: 24px; margin-bottom: 12px; line-height: 1; }
.role-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
  color: var(--ink-blue);
  margin-bottom: 6px;
}
.role-card p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  letter-spacing: -0.26px;
  margin: 0;
}
.role-card .arrow {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--deep-plum);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ TABLES ============ */
.table-card {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--steel-gray);
  vertical-align: middle;
}
th {
  background: var(--fog-gray);
  color: var(--slate);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--fog-gray); }
td .mono, td code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .hide-mobile { display: none; }
  table { min-width: 0; }
}

/* ============ COLUMNS / BOARDS (Browse page) ============ */
.board { display: grid; gap: var(--gap-md); }
.board.cols-3 { grid-template-columns: 1fr; }
.board.cols-5 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .board.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .board.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.column {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.column-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--steel-gray);
  background: var(--ink-blue);
  color: var(--ghost-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.column-header h3 {
  color: var(--ghost-white);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.26px;
}
.column-header .count {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.15);
  color: var(--ghost-white);
  padding: 2px 8px;
  border-radius: var(--radius-badge);
  font-size: 10px;
  font-weight: 500;
}
.column-header.lane-a { background: var(--deep-plum); }
.column-header.lane-b { background: var(--callout-cyan); }
.column-header.lane-c { background: var(--action-orange); }
.column-meta {
  padding: 10px 16px;
  background: var(--fog-gray);
  border-bottom: 1px solid var(--steel-gray);
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
  letter-spacing: -0.24px;
}
.column-meta strong { color: var(--ink-blue); }
.column-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--fog-gray);
}

/* ============ FILTERS ============ */
.filters {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.filter-group {
  display: flex;
  gap: var(--gap-xs);
  align-items: center;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 6px;
}
.filter-btn {
  background: var(--fog-gray);
  border: 1px solid var(--steel-gray);
  color: var(--charcoal);
  padding: 5px 12px;
  border-radius: var(--radius-button);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: -0.24px;
  transition: all 120ms;
}
.filter-btn:hover { border-color: var(--deep-plum); color: var(--ink-blue); }
.filter-btn.active {
  background: var(--deep-plum);
  color: var(--ghost-white);
  border-color: var(--deep-plum);
}

/* ============ CALLOUTS ============ */
.callout {
  background: var(--fog-gray);
  border-left: 3px solid var(--deep-plum);
  padding: 14px 18px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-size: 13.5px;
  color: var(--charcoal);
  margin-bottom: 24px;
  letter-spacing: -0.27px;
  line-height: 1.55;
}
.callout strong { color: var(--ink-blue); font-weight: 600; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--slate);
  font-size: 11px;
  font-family: var(--font-mono);
  border-top: 1px solid var(--steel-gray);
  margin-top: 48px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer a { color: var(--deep-plum); }
.footer a:hover { color: var(--action-orange); }

/* ============ EMPTY STATE ============ */
.empty-state {
  background: var(--fog-gray);
  border: 1px dashed var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  color: var(--slate);
  font-size: 13px;
  letter-spacing: -0.26px;
}
.empty-state .emoji { font-size: 28px; display: block; margin-bottom: 8px; }

/* ============ TRIAGE TOOL ============ */
.triage-form {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 760px;
  box-shadow: var(--shadow-card);
}
.triage-form .field { margin-bottom: 22px; }
.triage-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.triage-form .options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}
@media (min-width: 560px) {
  .triage-form .options { grid-template-columns: repeat(3, 1fr); }
}
.triage-form .option-btn {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-button);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
  transition: all 120ms;
  letter-spacing: -0.26px;
}
.triage-form .option-btn:hover {
  border-color: var(--deep-plum);
  background: var(--fog-gray);
}
.triage-form .option-btn.selected {
  background: var(--deep-plum);
  color: var(--ghost-white);
  border-color: var(--deep-plum);
}
.triage-form .option-btn strong {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
  font-family: var(--font-display);
  letter-spacing: -0.26px;
}
.triage-form .option-btn small {
  display: block;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: -0.22px;
  line-height: 1.4;
}
.triage-form .option-btn.selected small { color: rgba(255,255,255,0.85); }

.triage-result {
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--ink-blue);
  border-radius: var(--radius-card);
  color: var(--ghost-white);
  box-shadow: var(--shadow-card-elevated);
}
.triage-result h3 {
  color: var(--ghost-white);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  opacity: 0.7;
  font-weight: 500;
}
.triage-result .verdict {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.56px;
}
.triage-result .reasoning {
  font-size: 13.5px;
  opacity: 0.92;
  line-height: 1.6;
  letter-spacing: -0.27px;
}
.triage-result .reasoning strong { color: var(--ghost-white); }

/* ============ DETAIL PAGE ============ */
.detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 2fr 1fr; }
}
.detail-card {
  background: var(--ghost-white);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.detail-card h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.detail-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--gap-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--steel-gray);
  font-size: 13px;
  letter-spacing: -0.26px;
}
.detail-field:last-child { border-bottom: 0; }
.detail-field .k {
  font-family: var(--font-mono);
  color: var(--slate);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.detail-field .v { color: var(--ink-blue); }

/* ============ SECTION DIVIDER ============ */
.section-divider {
  margin: 32px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--steel-gray);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-divider h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
}

/* ============ HELPERS ============ */
.muted { color: var(--slate); }
.small { font-size: 11px; }
.hot-flag {
  color: var(--action-orange);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
