:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --soft: #f8fafc;
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --green: #047857;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --blue: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --purple: #6d28d9;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;
  --max: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-dock: 0 12px 30px -4px rgba(15, 23, 42, .14), 0 4px 12px -2px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button, input { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* Sticky Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #0f172a;
  color: #38bdf8;
  flex: 0 0 auto;
}
.brand small {
  display: inline-block;
  margin-left: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 500; transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 700; }
.header-right { margin-left: auto; display: flex; align-items: center; }

main { padding: 32px 0 60px; }

/* Edition Head */
.edition-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
}
.eyebrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}
h1 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 10px 0 10px;
  max-width: 860px;
  color: #0f172a;
}
.read-meta {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Morning Operational Summary Box */
.morning-summary {
  background: #0f172a;
  color: white;
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 22px 0 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid #1e293b;
}
.summary-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.summary-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, .2);
  margin-top: 4px;
  flex: 0 0 auto;
}
.summary-text strong { font-size: 15px; font-weight: 700; color: #f8fafc; letter-spacing: -0.01em; }
.summary-text p { margin: 3px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.45; }
.summary-counts {
  display: flex;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.count-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 11px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.count-chip b { color: #ffffff; font-size: 14px; font-weight: 750; }

/* Layout Grid */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.main-column { min-width: 0; }

.section { margin-bottom: 32px; }
.anchor-section { scroll-margin-top: 76px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.section-title h2 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.section-title span { color: var(--muted); font-size: 12px; font-weight: 500; }

/* Lead Cards & 2-Column Grid Layout */
.lead-stack {
  display: grid;
  gap: 12px;
}
.lead-stack.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  align-items: start;
}
@media (max-width: 768px) {
  .lead-stack.grid-2col {
    grid-template-columns: 1fr;
  }
}

.lead-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.lead-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}
.lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.lead-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.source-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill.red { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border); }
.pill.amber { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-border); }
.pill.green { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }
.pill.blue { color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-border); }
.pill.purple { color: var(--purple); background: var(--purple-bg); border: 1px solid var(--purple-border); }

.change-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 8.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}
.change-new { color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-border); }
.change-updated { color: var(--purple); background: var(--purple-bg); border: 1px solid var(--purple-border); }
.change-ongoing { color: var(--muted); background: var(--line-subtle); border: 1px solid var(--line); }
.change-resolved { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }

.lead-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
.lead-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}
.lead-title a:hover {
  color: var(--blue);
}

/* Expandable Details Drawer */
.lead-drawer {
  margin-top: 10px;
}
.lead-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 5px 9px;
  user-select: none;
  transition: all 0.15s ease;
}
.lead-toggle::-webkit-details-marker {
  display: none;
}
.lead-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.lead-drawer[open] .lead-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.toggle-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #64748b;
  flex: 0 0 auto;
}
.lead-drawer[open] .toggle-arrow {
  transform: rotate(180deg);
  color: #0f172a;
}
.drawer-body {
  padding: 10px 10px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  animation: drawerOpen 0.18s ease forwards;
}
@keyframes drawerOpen {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.lead-summary-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 8px;
}
.lead-summary-text p { margin: 0 0 5px; }
.lead-summary-text p:last-child { margin-bottom: 0; }
.lead-summary-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Action Strip */
.lead-action-strip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 3.5px solid #2563eb;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.42;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}
.action-tag {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: #2563eb;
  padding: 1.5px 4.5px;
  border-radius: 3px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.action-desc {
  color: #1e3a8a;
  font-weight: 600;
}

/* Context Meta */
.lead-context-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.context-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2.5px 6px;
  font-size: 11px;
  line-height: 1.3;
}
.context-tag {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: uppercase;
}
.context-val {
  font-weight: 600;
  color: #334155;
}

code, .inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.05);
  color: #1e293b;
  padding: 1.5px 5px;
  border-radius: 4px;
  border: none;
  word-break: break-word;
}
.md-heading {
  font-size: 12.5px;
  font-weight: 750;
  color: #344054;
  margin: 6px 0 3px;
}
.md-list {
  margin: 4px 0 8px 16px;
  padding: 0;
  color: #475467;
  font-size: 13.5px;
}
.md-list li { margin-bottom: 3px; }

.ext-icon { font-size: 12px; line-height: 1; }

/* Filter Panel (Maintenance Horizontal Filters) */
.filter-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-group::-webkit-scrollbar { display: none; }
.filter-label {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex: 0 0 72px;
}
.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.filter-btn {
  background: var(--soft);
  border: 1px solid var(--line);
  color: #475467;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.filter-btn:hover {
  background: #f1f5f9;
  color: var(--ink);
  border-color: #cbd5e1;
}
.filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.filter-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
}
.filter-empty strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.filter-empty p {
  margin: 0;
  font-size: 13px;
}

/* Platform-Wise Grouping in Maintenance */
.platform-group {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}
.platform-group:last-child {
  margin-bottom: 0;
}
.platform-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.platform-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.platform-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.platform-count {
  font-size: 10px;
  font-weight: 750;
  color: #475467;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 1.5px 7px;
  letter-spacing: 0.02em;
}
.platform-items .story-row {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
}
.platform-items .story-row:last-child {
  border-bottom: none;
}

/* Story List (Coming Up, Worth Knowing, Resolved) */
.story-list {
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.story-row {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.story-row:last-child { border-bottom: 0; }
.story-time { color: var(--muted); font-size: 12px; font-weight: 650; padding-top: 2px; }
.story-heading-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.story-heading-line h3 { margin: 0; font-size: 14.5px; font-weight: 750; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.story-heading-line h3 a { text-decoration: none; color: inherit; }
.story-heading-line h3 a:hover { color: var(--blue); }
.story-main p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.story-side { text-align: right; min-width: 88px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.story-side .source-link { font-size: 11.5px; }

/* Quiet & Alerts */
.quiet {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.quiet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.quiet strong { display: block; font-size: 14px; font-weight: 750; color: #065f46; }
.quiet p { margin: 2px 0 0; color: #047857; font-size: 13px; }

.coverage-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: -8px 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--amber-border);
  border-radius: 12px;
  background: var(--amber-bg);
}
.coverage-alert-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: white;
}
.coverage-alert strong { display: block; font-size: 14px; font-weight: 750; color: #92400e; }
.coverage-alert p { margin: 2px 0 0; color: #b45309; font-size: 13px; }

.neutral-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.neutral-note strong { display: block; font-size: 14px; font-weight: 750; color: var(--ink); }
.neutral-note p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

/* Aside Rail */
aside { position: sticky; top: 84px; }
.rail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.rail-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
}
.rail-head h3 { margin: 0; font-size: 14px; font-weight: 750; color: var(--ink); }
.rail-head span { color: var(--muted); font-size: 11px; font-weight: 600; }

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.status-list::-webkit-scrollbar {
  width: 5px;
}
.status-list::-webkit-scrollbar-track {
  background: transparent;
}
.status-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.status-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.status-list li {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
}
.status-list li:last-child { border-bottom: 0; }
.status-list .service-link,
.status-list a.service-link {
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 10px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.status-list .service-link:hover {
  background: #f8fafc;
}
.status-list .service-link:hover .service-name {
  color: var(--blue);
}
.status-list .service-link:hover .service-ext {
  color: var(--blue);
}
.service-name {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-ext {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.status-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.source-health-list li {
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .2);
  flex: 0 0 auto;
}
.dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .2);
}
.dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .2);
}

.agenda { padding: 8px 16px 14px; }
.agenda-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item time { display: block; color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 2px; }
.agenda-item strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.agenda-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.coverage { padding: 14px 16px 16px; }
.coverage p { margin: 0 0 10px; color: #64748b; font-size: 12px; line-height: 1.45; }
.coverage-mode { padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); }
.coverage-ok { display: flex; align-items: center; gap: 9px; padding: 0 16px 14px; color: #334155; font-size: 12px; font-weight: 600; }
.source-health-list { border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #475467;
  background: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mobile Jump Navigation Bar (Hidden on Desktop) */
.mobile-jump { display: none; }

/* Responsive Tablet & Smaller */
@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .nav { display: none; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  aside .rail-card { margin: 0; }
  aside .rail-card:last-child { grid-column: 1 / -1; }
  .edition-head { grid-template-columns: 1fr; gap: 12px; }
  .read-meta { text-align: left; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-start; }
}

/* Mobile Screens */
@media (max-width: 640px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  main { padding-top: 18px; padding-bottom: 24px; }
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  
  .header-inner { min-height: 56px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-badge { width: 28px; height: 28px; }
  .brand small { display: none; }
  
  .eyebrow { font-size: 11px; }
  h1 { font-size: 30px; line-height: 1.15; margin-top: 6px; }
  .dek { font-size: 14px; }
  
  .morning-summary {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
    margin: 18px 0 22px;
  }
  .summary-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .count-chip {
    padding: 5px 8px;
    font-size: 11px;
    justify-content: flex-start;
  }
  .count-chip b { font-size: 13px; }
  
  .section { margin-bottom: 24px; }
  .anchor-section { scroll-margin-top: 68px; }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }
  .section-title h2 { font-size: 16px; }
  .section-title span { font-size: 11px; text-align: left; }
  
  .lead-card { padding: 16px; border-radius: 12px; }
  .lead-card h3 { font-size: 18px; }
  .lead-card > p { font-size: 14px; margin-bottom: 12px; }
  
  .impact-grid { grid-template-columns: 1fr; gap: 8px; }
  .impact-box { padding: 10px 12px; }
  .impact-box p { font-size: 12px; }
  
  .story-row {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 6px;
  }
  .story-time { font-size: 11px; color: #64748b; }
  .story-heading-line h3 { font-size: 13.5px; }
  .story-main p { font-size: 12px; line-height: 1.4; }
  .story-side {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
    min-width: 0;
  }
  .story-side .source-link { font-size: 11px; }

  .platform-group {
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .platform-header {
    padding: 8px 12px;
  }
  .platform-tag {
    font-size: 11.5px;
  }

  .prefs-banner {
    padding: 10px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .prefs-banner-left {
    width: 100%;
    gap: 6px;
  }
  .prefs-banner-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
    margin-left: 0;
  }
  .btn-toggle-filter, .btn-edit-prefs {
    flex: 1;
    justify-content: center;
  }

  .lead-stack.grid-2col {
    grid-template-columns: 1fr;
  }
  .lead-card {
    padding: 12px 13px;
    border-radius: 10px;
  }
  .lead-title {
    font-size: 14.5px;
  }
  .lead-summary-text {
    font-size: 12px;
  }
  .lead-action-strip {
    font-size: 11.5px;
    padding: 6px 8px;
  }
  .lead-toggle {
    font-size: 11px;
    padding: 4px 8px;
  }
  .drawer-body {
    padding: 8px 8px 6px;
  }

  .status-list .service-link {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  
  aside { grid-template-columns: 1fr; gap: 14px; }
  aside .rail-card:last-child { grid-column: auto; }
  .rail-card { border-radius: 12px; }
  
  footer { padding-bottom: 20px; }
  .footer-inner { flex-direction: column; gap: 6px; }

  /* Sleek Floating Dock Navigation */
  .mobile-jump {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 58px;
    max-width: 440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-dock);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .mobile-jump .jump-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 12px;
    transition: background 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-jump .jump-item:active,
  .mobile-jump .jump-item:hover {
    background: #f1f5f9;
    color: #0f172a;
  }
  .jump-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: currentColor;
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .wrap { width: min(calc(100% - 16px), var(--max)); }
  h1 { font-size: 26px; }
  .mobile-jump { left: 8px; right: 8px; }
  .mobile-jump .jump-item { font-size: 9px; }
  .jump-icon { width: 18px; height: 18px; }
}

/* Preferences Header Button */
.prefs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 6px;
  flex: 0 0 auto;
}
.prefs-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.prefs-btn svg { flex: 0 0 auto; }

/* Active Stack Filter Banner (Precision Toolbar) */
.prefs-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  margin: -8px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.15s ease;
}
.prefs-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prefs-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2.5px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.prefs-status-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.prefs-status-tag.unfiltered {
  background: #f1f5f9;
  color: #475467;
  border-color: #e2e8f0;
}
.prefs-status-tag.unfiltered .pulse-dot {
  background: #94a3b8;
  box-shadow: none;
}
.prefs-banner-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.prefs-banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2.5px 7.5px;
  font-size: 12px;
  line-height: 1.25;
  transition: all 0.12s ease;
}
.prefs-banner-chip .chip-cat {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
}
.prefs-banner-chip .chip-val {
  font-weight: 650;
  color: #1e293b;
}
.prefs-banner-chip.neutral {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.prefs-banner-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.btn-toggle-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-toggle-filter:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-toggle-filter.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}
.btn-toggle-filter.active:hover {
  background: #1e293b;
}
.btn-edit-prefs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-edit-prefs:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(29, 78, 216, 0.2);
}

/* Onboarding Preferences Multi-Step Wizard */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.wizard-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  padding: 30px 32px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.active .wizard-card {
  transform: translateY(0) scale(1);
}

.wizard-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
}
.wizard-illustration-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}
.wizard-art {
  display: block;
}

.wizard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

/* Stepper Navigation */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 22px;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.step-pill:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.step-pill .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
}
.step-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.step-pill.active .step-num {
  background: #38bdf8;
  color: #0f172a;
}
.step-pill.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.step-pill.completed .step-num {
  background: #22c55e;
  color: #ffffff;
}
.step-line {
  width: 16px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}

/* Step Pages & Animations */
.wizard-step-page {
  display: none;
  animation: wizardFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wizard-step-page.active {
  display: block;
}
@keyframes wizardFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  text-align: center;
  margin-bottom: 20px;
}
.step-header h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.25;
}
.step-header p {
  color: #475467;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 480px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.tile-grid.languages-grid {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.tile-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
  user-select: none;
}
.tile-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.tile-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.tile-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
}
.tile-btn.active .tile-check {
  border-color: #38bdf8;
  background: #38bdf8;
  color: #0f172a;
}
.tile-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}
.tile-btn.active .tile-hint {
  color: #94a3b8;
}

.wizard-step-summary {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard-step-summary-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.wizard-step-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wizard-mini-chip {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 6px;
}

.wizard-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wizard-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wizard-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save,
.btn-step-next {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-save:hover,
.btn-step-next:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.btn-save:active,
.btn-step-next:active { transform: translateY(0); }

.btn-step-prev {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-step-prev:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-skip {
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.btn-skip:hover { color: #0f172a; }

@media (max-width: 640px) {
  .wizard-card { padding: 22px 18px; border-radius: 16px; }
  .step-header h2 { font-size: 19px; }
  .step-header p { font-size: 12.5px; }
  .wizard-stepper { gap: 4px; }
  .step-pill { padding: 3px 8px; font-size: 11px; }
  .step-line { width: 8px; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid.languages-grid { grid-template-columns: 1fr; }
  .prefs-banner { flex-direction: column; align-items: flex-start; }
}
