:root {
  --bg: #0a0a10;
  --bg-2: #0f0f17;
  --card: #111119;
  --card-2: #161622;
  --card-hover: #191926;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f8;
  --text-2: #a5a5bc;
  --text-3: #8b8ba3;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --coral: #f43f5e;
  --orange: #fb923c;
  --gold: #facc15;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --grad: linear-gradient(90deg, #8b5cf6 0%, #c026d3 36%, #ec4899 68%, #fb923c 100%);
  --grad-warm: linear-gradient(90deg, #fde047 0%, #fb923c 55%, #ec4899 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

[data-theme="light"] {
  --bg: #f6f5f9;
  --bg-2: #eceaf2;
  --card: #ffffff;
  --card-2: #f3f1f8;
  --card-hover: #f9f8fc;
  --border: rgba(15, 15, 25, 0.10);
  --border-strong: rgba(15, 15, 25, 0.18);
  --text: #111118;
  --text-2: #4b4b60;
  --text-3: #5b5b72;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip stops horizontal mobile overflow without breaking sticky .topbar */
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: fixed; top: -64px; left: 12px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--pink); color: #fff; font-weight: 800; font-size: 0.84rem; transition: top .15s; }
.skip-link:focus { top: 12px; }
.inline-code { font-family: var(--font-mono); font-size: 0.86em; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,0.08); color: var(--text); }
[data-theme="light"] .inline-code { background: rgba(15,15,25,0.08); }
.mobile-nav { display: none; }

/* TOP NAV BAR (PortWatch exact glass bar) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 62px;
  background: rgba(10, 10, 16, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .topbar {
  background: rgba(246, 245, 249, 0.86);
  border-bottom-color: rgba(15, 15, 25, 0.08);
}
.topbar-inner {
  max-width: 1220px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-ring { width: 24px; height: 24px; flex-shrink: 0; }
.brand-vi {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 0.86rem; color: var(--text-2); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 6px 6px;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: rgba(236,72,153,0.5); color: var(--text); }
.icon-btn.circle { width: 34px; padding: 0; }
/* Language dropdown in topbar (matches dark/light glass tokens) */
.lang-wrap { position: relative; }
.lang-btn { font-family: var(--font-mono); letter-spacing: 0.02em; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(17, 17, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
  display: none;
  z-index: 90;
}
.lang-menu.is-open { display: block; }
[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 15, 25, 0.14);
}
.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.lang-opt:hover, .lang-opt.active {
  background: rgba(236, 72, 153, 0.12);
  color: var(--text);
}
.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pink);
}

/* HERO WITH REAL MIAMI NIGHT SKYLINE (Screenshot 4 exact split) */
.hero {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: center;
  padding: 72px 0 116px;
  overflow: hidden;
  background: #070812;
  color: #f4f4f8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/miami-night.jpg') center 52% / cover no-repeat;
  filter: saturate(1.26) contrast(1.06) brightness(1.0);
  transform: scale(1.08);
  will-change: transform;
  /* Subtle settle on page load matching PortWatch hero depth */
  animation: heroZoomOut 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroZoomOut {
  from { transform: scale(1.08); }
  to { transform: scale(1.0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  /* Keep left dark for headline contrast while letting center-right skyline shine through frosted cards */
  background:
    linear-gradient(90deg, rgba(8,10,18,0.84) 0%, rgba(8,10,18,0.46) 44%, rgba(8,10,18,0.10) 100%),
    linear-gradient(180deg, rgba(10,10,16,0.35) 0%, rgba(10,10,16,0.06) 36%, rgba(10,10,16,0.58) 78%, var(--bg) 100%);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: center;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(12, 12, 20, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform .15s, border-color .15s;
}
.hero-cta:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.45); }
.hero-cta.glow {
  border: 1px solid rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.28), inset 0 0 10px rgba(251, 146, 60, 0.14);
}
.hero-title {
  font-size: clamp(3.5rem, 6.6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.96;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}
.hero-verdict {
  display: block;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Extra bottom box prevents Safari gradient background-clip from slicing descenders ('y','g','p') */
  padding-bottom: 0.14em;
  margin-bottom: -0.06em;
  line-height: 1.04;
}
.hero-sub {
  max-width: 540px;
  font-size: 1.06rem;
  color: rgba(236, 236, 246, 0.84);
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.timer-card {
  background: rgba(8, 48, 38, 0.42);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.12);
}
.kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 14px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.countdown {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.cd-unit { text-align: center; }
.cd-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(209, 250, 229, 0.72);
}
.cd-sep { font-size: 1.7rem; font-weight: 700; color: rgba(209, 250, 229, 0.45); transform: translateY(-4px); }
.timer-note { font-size: 0.82rem; color: rgba(236, 253, 245, 0.85); line-height: 1.45; }
.timer-foot { margin-top: 6px; font-size: 0.73rem; color: rgba(167, 243, 208, 0.68); font-family: var(--font-mono); }

.pinned-card {
  background: rgba(20, 26, 42, 0.36);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.14);
}
.pinned-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pinned-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fde047;
  text-transform: uppercase;
}
.pinned-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.22);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.4);
}
.pinned-title { font-size: 0.96rem; font-weight: 800; color: #ffffff; margin-bottom: 6px; }
.pinned-body { font-size: 0.84rem; color: rgba(228, 228, 240, 0.82); line-height: 1.5; }
.pinned-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pinned-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4f0;
  transition: border-color .15s, background .15s, transform .15s;
}
a.pinned-chip:hover {
  border-color: rgba(236, 72, 153, 0.65);
  background: rgba(236, 72, 153, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

/* OVERALL PROGRESS MASTER CARD (Screenshot 3 exact clone) */
.main-wrap { padding-bottom: 72px; }
.overall-card {
  margin-top: -38px;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.overall-top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 490px);
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}
.overall-top > div { min-width: 0; }
.micro-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.giant-pct {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(3.6rem, 6.2vw, 4.9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  padding: 2px 0;
  background: linear-gradient(90deg, #a855f7 0%, #d946ef 42%, #ec4899 78%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.giant-pct span { font-size: 0.55em; vertical-align: super; margin-left: 2px; }
.leader-line { margin-top: 10px; font-size: 0.9rem; color: var(--text-2); }
.leader-line strong { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.stat-tile {
  min-width: 0;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
.stat-val {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.stat-lbl { margin-top: 3px; font-size: 0.74rem; color: var(--text-3); }

/* ANIMATED PROGRESS BAR + NON-OVERLAPPING FLOATING PROJECT AVATARS */
.bar-track-block { margin-top: 14px; }
.bar-track-block:first-of-type { margin-top: 4px; }
.bar-track-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
}
.bar-track-title {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-2);
}
.bar-track-pct {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.bar-stage { position: relative; padding-top: 62px; margin-bottom: 10px; }
.bar-pins { position: absolute; left: 0; right: 0; top: 0; height: 66px; pointer-events: none; }
.pin-connectors {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  pointer-events: none;
  overflow: visible;
}
.bar-pin {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  z-index: 2;
}
.bar-pin.pin-leader { z-index: 8; }
.bar-pin:hover { z-index: 35; }
.pin-av-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pin-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-2);
  border: 2px solid var(--pin-color, var(--pink));
  box-shadow: 0 0 14px color-mix(in srgb, var(--pin-color, var(--pink)) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: transform .15s;
}
.av-txt { position: relative; z-index: 1; line-height: 1; }
.av-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}
.av-emblem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 48%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.av-emblem svg { width: 100%; height: 100%; display: block; }
.pin-lock {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #111119;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 4;
  pointer-events: none;
}
.pin-dot {
  position: absolute;
  bottom: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--pin-color, var(--pink));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pin-color, var(--pink)) 85%, transparent);
  pointer-events: none;
}
.bar-pin:hover .pin-avatar { transform: scale(1.16); }
.pin-tip {
  position: absolute;
  bottom: 38px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 8px;
  background: #1b1b28;
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 10;
}
.bar-pin:hover .pin-tip, .bar-pin.pin-leader .pin-tip { opacity: 1; }
/* Hide default leader pill while another pin is hovered so pills never collide */
.bar-pins.has-hover .bar-pin.pin-leader:not(:hover) .pin-tip { opacity: 0; }
.pin-popover {
  position: fixed;
  pointer-events: none;
  z-index: 120;
  background: #f8f8fc;
  color: #111118;
  border-radius: 12px;
  padding: 11px 15px;
  min-width: 220px;
  max-width: 310px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.pin-popover.is-open { opacity: 1; transform: translateY(0); }
.pin-pop-title { font-weight: 800; font-size: 0.86rem; line-height: 1.25; color: #111118; }
.pin-pop-sub { margin-top: 3px; font-size: 0.76rem; line-height: 1.38; color: #4a4a60; }
.master-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #1c1c29;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .master-track { background: #e3e0ec; }
.master-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  overflow: hidden;
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.master-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.32) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: barSheen 3.2s ease-in-out infinite;
}
@keyframes barSheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(180%); } }
.master-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.master-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(10, 10, 16, 0.55);
}
.milestone-row {
  display: grid;
  grid-template-columns: 10% 10% 10% 10% 10% 42% 8%;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-3);
}
.ms-item { display: flex; flex-direction: column; gap: 2px; }
.ms-pct { font-family: var(--font-mono); font-size: 0.7rem; color: var(--pink); font-weight: 700; }
.ms-name { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-weight: 500; }
.ms-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.ms-end { text-align: right; align-items: flex-end; }
.ms-mid { justify-content: flex-end; padding-left: 8px; color: var(--text-3); }

/* SPARKLINE */
.spark-wrap { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.spark-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.76rem; color: var(--text-3); }
.spark-legend { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.72rem; }
.spark-svg { width: 100%; height: 96px; display: block; overflow: visible; }

/* WHAT CHANGED · CONCENTRATED LATEST BRIEF + COMPACT HISTORY STRIP */
.ticker-bar {
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.brief-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticker-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
  white-space: nowrap;
}
.brief-delta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.34);
  color: var(--text);
}
.brief-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
}
.brief-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
}
.brief-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-2);
}
.brief-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  margin-top: 7px;
  flex-shrink: 0;
}
.brief-list strong { color: var(--text); font-weight: 700; }
.brief-prev {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.brief-prev-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
  min-width: 0;
  flex: 1;
}
.ticker-item {
  flex: 0 0 auto;
  max-width: 360px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.77rem;
  line-height: 1.36;
  color: var(--text-2);
}
.ticker-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); margin-top: 6px; flex-shrink: 0; }
.ticker-date { font-family: var(--font-mono); font-size: 0.71rem; color: var(--text-3); margin-right: 6px; }

/* SECTION HEADERS + FILTER BAR (Screenshot 1 exact) */
.section-block { margin-top: 52px; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}
.sec-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 4px;
}
.sec-sub { margin-top: 8px; max-width: 560px; font-size: 0.92rem; color: var(--text-2); }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg-pills {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.seg-btn.active { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
.sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* PORTWATCH RACE CARD (Screenshot 1 EXACT) */
.race-list { display: flex; flex-direction: column; gap: 18px; }
.race-card {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  transition: border-color .18s, background .18s;
}
.race-card:hover { border-color: var(--border-strong); background: var(--card-hover); }
.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}
.rc-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.rc-left > div:last-child { min-width: 0; flex: 1; }
.rc-rank {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--pink);
  width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.rc-avatar {
  position: relative;
  overflow: hidden;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent, #ec4899), #1e1b4b);
  border: 1px solid rgba(255,255,255,0.16);
  flex-shrink: 0;
}
.rc-name { font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; word-break: break-word; }
.rc-repo { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); margin-top: 2px; display: inline-block; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.rc-repo:hover { color: var(--text); text-decoration: underline; }
.rc-score-box { text-align: right; flex: 0 0 auto; max-width: 42%; min-width: 0; }
.rc-score {
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rc-score span { font-size: 0.6em; color: var(--text-2); margin-left: 1px; }
.rc-milestone { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; font-weight: 600; overflow-wrap: break-word; white-space: normal; }

.rc-body-indent { padding-left: 40px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pill.arm64 { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.45); color: #7dd3fc; }
.pill.native { background: rgba(236,72,153,0.14); border-color: rgba(236,72,153,0.38); color: #f9a8d4; }
.pill.hybrid { background: rgba(139,92,246,0.16); border-color: rgba(139,92,246,0.44); color: #c4b5fd; }
.pill.fast { background: rgba(251,146,60,0.14); border-color: rgba(251,146,60,0.38); color: #fdba74; }
.pill.archived { background: rgba(248,113,113,0.13); border-color: rgba(248,113,113,0.38); color: #fca5a5; }
.pill.xbox { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.34); color: #6ee7b7; }
.pill.ps5 { background: rgba(96,165,250,0.14); border-color: rgba(96,165,250,0.38); color: #93c5fd; }
.pill.verified { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #34d399; }
.pill.warn { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.34); color: #fde047; }
.pill.private { background: rgba(168,85,247,0.16); border-color: rgba(168,85,247,0.42); color: #d8b4fe; }
.pill.link { background: rgba(236,72,153,0.10); border-color: rgba(236,72,153,0.30); color: #f472b6; }
[data-theme="light"] .pill.arm64 { color: #0369a1; }
[data-theme="light"] .pill.native { color: #be185d; }
[data-theme="light"] .pill.hybrid { color: #6d28d9; }
[data-theme="light"] .pill.fast { color: #c2410c; }
[data-theme="light"] .pill.archived { color: #b91c1c; }
[data-theme="light"] .pill.xbox, [data-theme="light"] .pill.verified { color: #047857; }
[data-theme="light"] .pill.ps5 { color: #1d4ed8; }
[data-theme="light"] .pill.warn { color: #a16207; }
[data-theme="light"] .pill.private { color: #7e22ce; }
.race-card.is-archived { opacity: 0.76; border-style: dashed; }
.race-card.is-filtered-out { display: none; }

.rc-summary { font-size: 0.92rem; color: var(--text-2); line-height: 1.62; margin-bottom: 18px; }

/* BUILDS ON THIS CODE (downstream public & private forks) */
.builds-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 16px;
}
.builds-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.builds-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.builds-row:first-of-type { border-top: none; padding-top: 2px; }
.builds-name { font-weight: 700; color: var(--text); }
.builds-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.builds-type.priv {
  background: rgba(168,85,247,0.14);
  border-color: rgba(168,85,247,0.36);
  color: #d8b4fe;
}
[data-theme="light"] .builds-type.priv { color: #7e22ce; }
.builds-ms { font-size: 0.76rem; color: var(--text-3); }
.builds-score { font-family: var(--font-mono); font-weight: 800; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* CONTINUOUS MILESTONE BAR ON PROJECT CARDS (1px ticks + unified left-to-right fill) */
.seg6-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #1d1d2b;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .seg6-bar { background: #e5e3ef; }
.seg6-fill {
  position: relative;
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.seg6-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 18px;
}
.seg6-dots span { display: inline-flex; align-items: center; gap: 5px; }
.seg6-dots span.on { color: var(--text-2); }
.seg6-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.seg6-dots span.on i { background: var(--pink); }

/* 4 SUB-METRIC BARS (Screenshot 1 EXACT) */
.submetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.submetrics > div { min-width: 0; }
.sm-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.73rem;
  margin-bottom: 5px;
  min-width: 0;
}
.sm-name { font-weight: 700; color: var(--text); flex-shrink: 0; }
.sm-val { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; text-align: right; }
.sm-track { height: 4px; border-radius: 999px; background: #1e1e2c; overflow: hidden; }
[data-theme="light"] .sm-track { background: #e5e3ef; }
.sm-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .9s cubic-bezier(.22,1,.36,1); }

/* COLLAPSIBLE DETAILS & DEVELOPER CARD FOOTER BAR */
.rc-details.is-collapsed { display: none; }
.rc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.rc-stats-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}
.rc-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rc-reviewed {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-right: 4px;
}
.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.rc-btn:hover { border-color: rgba(236,72,153,0.48); color: var(--text); background: rgba(255,255,255,0.06); }

/* WHAT WORKS / WHAT'S BLOCKING 2-COLUMN (Screenshot 1 EXACT) */
.wb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.wb-title {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wb-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wb-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.48;
}
.wb-list.works li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.wb-list.blocking li::before { content: '–'; color: var(--red); font-weight: 800; flex-shrink: 0; }

/* DASHED 2-COLUMN BOXES (Screenshot 2 EXACT) */
.dashed-box {
  margin-top: 44px;
  min-width: 0;
  max-width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.012);
}
[data-theme="light"] .dashed-box { border-color: rgba(15, 15, 25, 0.22); }
.dashed-head { margin-bottom: 18px; }
.dashed-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.dashed-sub { margin-top: 4px; font-size: 0.88rem; color: var(--text-2); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-card {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.mini-top > :first-child { min-width: 0; flex: 1 1 54%; }
.mini-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 54%; }
.mini-id > div:last-child { min-width: 0; flex: 1; }
.mini-top > div:last-child { flex: 0 1 auto; min-width: 0; max-width: 46%; }
.mini-av {
  position: relative;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mini-name { font-weight: 800; font-size: 1.02rem; overflow-wrap: break-word; }
.mini-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.mini-pct { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; white-space: nowrap; }
.mini-ms { font-size: 0.72rem; color: var(--text-3); margin-top: 3px; text-align: right; overflow-wrap: break-word; line-height: 1.35; }
.mini-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.55; }

/* HARDWARE TABLE */
.hw-thresholds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.hw-th {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.hw-th-v { font-family: var(--font-mono); font-size: 0.96rem; font-weight: 800; color: var(--text); }
.hw-th-l { font-size: 0.76rem; color: var(--text-3); margin-top: 4px; }
.hw-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.hw-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
table.hw-table th {
  text-align: left;
  padding: 13px 14px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
}
table.hw-table th:hover { color: var(--text); }
table.hw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
table.hw-table tr:last-child td { border-bottom: none; }
table.hw-table tr.console-row { background: rgba(139, 92, 246, 0.07); }
table.hw-table tr:hover td { background: var(--card-hover); }
.hw-chip-name { font-weight: 700; color: var(--text); white-space: nowrap; }
.num-cell { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.inline-bar { width: 76px; height: 4px; border-radius: 999px; background: #202030; margin-top: 5px; overflow: hidden; }
.inline-bar-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .9s cubic-bezier(.22,1,.36,1); }

/* CURATED MAC TESTS COMPACT HELPERS (reuses .hw-table & .pill tokens) */
.mt-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.55);
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.mt-cta:hover {
  background: rgba(236, 72, 153, 0.28);
  border-color: rgba(236, 72, 153, 0.85);
  transform: translateY(-1px);
}
[data-theme="light"] .mt-cta { color: #be185d; background: rgba(236, 72, 153, 0.10); }
.mt-pill { font-size: 0.7rem; padding: 2px 8px; white-space: nowrap; display: inline-block; }
.mt-prof { font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-3); margin-top: 2px; }
table.mt-table th, table.mt-table td { padding: 9px 8px; }
table.mt-table th:first-child, table.mt-table td:first-child { padding-left: 14px; }
table.mt-table th:last-child, table.mt-table td:last-child { padding-right: 14px; text-align: right; white-space: nowrap; }
td.mt-proj { font-weight: 700; color: var(--text); max-width: 148px; white-space: normal; line-height: 1.25; }
td.mt-notes { max-width: 285px; line-height: 1.4; font-size: 0.81rem; }
.mt-more-wrap {
  border-top: 1px solid var(--border);
  background: var(--card-2);
  padding: 8px 14px;
  text-align: center;
}
.mt-more-btn {
  background: transparent;
  border: none;
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.mt-more-btn:hover { background: rgba(236, 72, 153, 0.14); color: var(--text); }
.mt-src {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
}
.mt-src:hover { text-decoration: underline; text-underline-offset: 3px; }
tr.mt-extra.is-collapsed { display: none; }

/* STICKY TOPBAR ANCHOR OFFSET + TARGET HIGHLIGHT (fixes #changelog & deep links) */
.section-block, .dashed-box, .ticker-bar, .race-card { scroll-margin-top: 80px; }
.ticker-bar:target, .race-card:target {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.22);
}
.rc-btn.is-copied {
  border-color: rgba(52, 211, 153, 0.65);
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
}

/* COMPACT 1-LINE "CHECK YOUR MAC" BAR + CHIP HUB STRIP */
.mac-checker {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mc-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.mc-lbl {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.mc-hint { font-size: 0.82rem; color: var(--text-3); }
.mc-hubs {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-hub-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.mc-hub-pill:hover, .mc-hub-pill.active {
  border-color: rgba(236, 72, 153, 0.55);
  color: var(--text);
}
.mc-verdict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.45;
}
.mc-verdict-txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 7px; }
.mc-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.79rem; color: var(--text-2); }
.mc-rec-lbl { font-weight: 700; color: var(--text); }
.mc-rec-link { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(236,72,153,0.4); background: rgba(236,72,153,0.1); color: var(--text); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; }
.mc-rec-link:hover { border-color: var(--pink); background: rgba(236,72,153,0.2); }
.mc-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mt-hub-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding: 0 4px; font-size: 0.78rem; color: var(--text-3); }
.mt-hub-links a { font-family: var(--font-mono); font-weight: 600; color: var(--text-2); text-decoration: none; }
.mt-hub-links a:hover { color: var(--pink); text-decoration: underline; }
.hub-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  margin-top: 28px;
}
.hub-h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 8px 0 12px;
}
.hub-crumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  margin-bottom: 10px;
}
.hub-crumb a:hover { color: var(--text); text-decoration: underline; }

/* COMPACT COLLAPSIBLE TECHNICAL FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); }
.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  cursor: pointer;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-q {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.faq-chev {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.62;
}

/* METHODOLOGY / SCORING SECTION */
.scoring-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}
.scoring-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
}
.sc-list { display: flex; flex-direction: column; gap: 12px; }
.sc-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sc-row:last-child { border-bottom: none; padding-bottom: 0; }
.sc-pct {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pink);
}
.sc-title { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.sc-desc { font-size: 0.82rem; color: var(--text-2); margin-top: 2px; line-height: 1.48; }
.sc-subtracks {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sc-track-pill {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 0.78rem;
  color: var(--text-2);
}
.sc-track-pill strong { color: var(--text); font-family: var(--font-mono); font-size: 0.74rem; display: block; margin-bottom: 2px; }
.sc-weights { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sc-weight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}
.sc-weight-pts { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 800; color: var(--orange); }
.sc-policy {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}
.sc-policy a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

/* FOOTER */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 1120px) {
  .topbar { height: auto; }
  .topbar-inner { height: 54px; }
  .nav-links { display: none; }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
  }
  .mobile-nav a:hover, .mobile-nav a:active { border-color: rgba(236, 72, 153, 0.5); color: var(--text); }
  [data-theme="light"] .mobile-nav { border-top-color: rgba(15, 15, 25, 0.06); }
  [data-theme="light"] .mobile-nav a { background: rgba(15, 15, 25, 0.04); }
  .section-block, .dashed-box, .ticker-bar, .race-card { scroll-margin-top: 110px; }
}
@media (max-width: 1020px) {
  .overall-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 920px) {
  .hero-grid, .wb-grid, .mini-grid, .scoring-grid, .overall-top, .brief-list { grid-template-columns: minmax(0, 1fr); }
  .stat-tiles, .submetrics, .hw-thresholds, .sc-subtracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-body-indent { padding-left: 0; }
  .nav-links { display: none; }
  .milestone-row { display: none; }
  .builds-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .brand { font-size: 0.94rem; gap: 7px; }
  .topbar-right { gap: 6px; }
  .live-pill { padding: 4px 6px; font-size: 0.73rem; white-space: nowrap; }
  .icon-btn { min-height: 36px; height: 36px; padding: 0 10px; font-size: 0.78rem; }
  .icon-btn.circle { width: 36px; }
  .container { padding: 0 14px; }
  .hero { min-height: auto; padding: 38px 0 64px; }
  .hero-title { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .timer-card, .pinned-card { padding: 16px; }
  .countdown { gap: 6px; }
  .cd-num { font-size: 1.95rem; }
  .cd-sep { font-size: 1.3rem; }
  .overall-card { padding: 20px 14px; margin-top: -22px; overflow: hidden; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bar-stage { padding: 52px 8px 0; }
  .ticker-bar { padding: 14px; gap: 10px; }
  .brief-prev { flex-direction: column; align-items: stretch; gap: 6px; }
  .ticker-item { max-width: 82vw; }
  .controls { width: 100%; justify-content: space-between; gap: 8px; }
  .seg-btn { min-height: 36px; padding: 6px 11px; font-size: 0.78rem; }
  .sort-select { min-height: 38px; padding: 7px 10px; font-size: 16px; }
  .race-card { padding: 18px 14px; border-radius: 14px; }
  .rc-top { gap: 10px; flex-wrap: wrap; }
  .rc-top > :first-child { flex: 1 1 220px; min-width: 0; }
  .rc-top > :last-child { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-align: left; padding-left: 28px; }
  .rc-rank { font-size: 1.35rem; width: 18px; }
  .rc-avatar { width: 40px; height: 40px; }
  .rc-name { font-size: 1.08rem; line-height: 1.22; overflow-wrap: break-word; }
  .rc-repo { font-size: 0.74rem; overflow-wrap: anywhere; }
  .rc-score { font-size: 1.55rem; }
  .rc-milestone { font-size: 0.7rem; line-height: 1.25; }
  .rc-stats-line { overflow-wrap: anywhere; max-width: 100%; }
  .rc-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .builds-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .dashed-box { padding: 18px 14px; }
  .mini-card { padding: 16px 14px; }
  .mini-id { min-width: 0; flex: 1; }
  .hw-thresholds { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mc-hubs { display: flex; flex-wrap: nowrap; gap: 4px; max-width: 56vw; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mc-hubs::-webkit-scrollbar { display: none; }
  .mc-hub-pill { flex-shrink: 0; padding: 4px 8px; font-size: 0.72rem; }
  .hub-hero { padding: 18px 16px; margin-top: 16px; border-radius: 14px; }
  .hub-h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
}
@media (max-width: 540px) {
  .submetrics { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* PORTING PLAYBOOK (/playbook/) & COMPACT #hardware TEASER */
.pb-teaser {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(236, 72, 153, 0.34);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(236, 72, 153, 0.08) 55%, rgba(251, 146, 60, 0.07));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pb-teaser-main { flex: 1 1 380px; min-width: 0; }
.pb-teaser-kicker { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; color: var(--pink); text-transform: uppercase; }
.pb-teaser-title { font-size: 0.96rem; font-weight: 800; color: var(--text); margin-top: 3px; }
.pb-teaser-desc { font-size: 0.82rem; color: var(--text-2); margin-top: 3px; line-height: 1.48; }
.pb-teaser-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.nav-pb { color: var(--pink) !important; font-weight: 700; }

.pb-agent-box {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(236, 72, 153, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.10) 52%, rgba(251, 146, 60, 0.08));
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
}
.pb-agent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pb-agent-kicker { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.pb-agent-title { font-size: 1.18rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.pb-agent-pitch { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.pb-agent-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-cmd-strip {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(10, 10, 16, 0.55);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-2);
  overflow-x: auto;
  white-space: nowrap;
}
[data-theme="light"] .pb-cmd-strip { background: rgba(15, 15, 25, 0.05); }
.pb-qs { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.pb-qs summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.pb-qs summary::-webkit-details-marker { display: none; }
.pb-qs ol { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }
.pb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pb-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pb-card-title { font-size: 0.98rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.pb-card-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.pb-card-impact { font-size: 0.84rem; font-weight: 700; color: var(--green); line-height: 1.42; }
.pb-card-body { font-size: 0.83rem; color: var(--text-2); line-height: 1.52; }
.pb-card-caveat { font-size: 0.78rem; color: var(--text-2); background: var(--card-2); border-left: 3px solid var(--orange); padding: 7px 10px; border-radius: 6px; line-height: 1.45; }
.pb-card.dead-end { border-color: rgba(248, 113, 113, 0.28); }
.pb-card.trap-crit { border-color: rgba(244, 63, 94, 0.4); }
.pb-diag-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pb-diag-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-diag-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pb-diag-cmd {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  overflow-x: auto;
  white-space: nowrap;
}
@media (max-width: 920px) {
  .pb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pb-agent-box { padding: 16px; }
  .pb-card { padding: 15px 14px; }
  .pb-teaser { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.0); }
  .live-dot, .master-fill::after { animation: none; }
  .master-fill, .seg6-fill, .sm-fill, .inline-bar-fill { transition: none; }
}
