/* ===================================================================
   Mets.us — Design System
   Editorial sports-media feel · Modern Mets fan destination
   =================================================================== */

/* ------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------ */
:root {
  /* Brand palette */
  --ny-navy-900: #04101F;
  --ny-navy-800: #06122B;
  --ny-navy-700: #0A1D3A;
  --ny-navy-600: #0F2D52;
  --ny-navy-500: #163C6B;
  --ny-navy-400: #2A5599;
  --ny-navy-300: #5A7FB8;

  --mets-orange-500: #FF5910;
  --mets-orange-600: #E54A00;
  --mets-orange-400: #FF7A3D;
  --mets-orange-300: #FFA471;
  --mets-orange-100: #FFE3D1;
  --mets-orange-text: #C2410C;

  --cream-50: #FAF7F2;
  --cream-100: #F4EFE5;
  --cream-200: #E8E0CF;

  --ink-900: #0B0F1A;
  --ink-700: #1F2638;
  --ink-500: #4A5468;
  --ink-400: #5E687A;
  --ink-300: #98A0B3;
  --ink-200: #C8CDD8;
  --ink-100: #E5E8EF;
  --ink-50:  #F2F4F8;

  --success: #0B7A4A;
  --warning: #F2B33D;
  --danger:  #B42318;
  --live:    #B31B46;
  --live-on-dark: #FB7185;

  /* Surfaces (light) */
  --bg:        var(--cream-50);
  --bg-soft:   #FFFFFF;
  --bg-elev:   #FFFFFF;
  --bg-inverse: var(--ny-navy-800);

  --fg:        var(--ink-900);
  --fg-muted:  var(--ink-500);
  --fg-faint:  var(--ink-400);
  --fg-inverse:#FFFFFF;

  --border:        rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --border-dark:   rgba(255,255,255,0.10);
  --border-dark-strong: rgba(255,255,255,0.20);

  /* Type */
  --font-display: "Fraunces", "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Spacing scale (4-based) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;
  --s-12: 128px;

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(4, 16, 31, 0.05);
  --shadow-md: 0 6px 20px -8px rgba(4, 16, 31, 0.18), 0 2px 6px rgba(4, 16, 31, 0.06);
  --shadow-lg: 0 24px 50px -20px rgba(4, 16, 31, 0.35), 0 6px 16px rgba(4, 16, 31, 0.08);
  --shadow-glow: 0 0 0 1px rgba(255,89,16,0.4), 0 12px 32px -8px rgba(255,89,16,0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 480ms;
  --dur-4: 800ms;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --header-h: 72px;
  --ticker-h: 36px;
}

/* ------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--mets-orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--fg);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0; }

::selection { background: var(--mets-orange-text); color: #fff; }

/* ------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container--narrow { max-width: var(--container-narrow); }
@media (max-width: 600px) {
  .container { padding-inline: var(--s-4); }
}

.section { padding: var(--s-10) 0; }
.section--sm { padding: var(--s-8) 0; }
.section--lg { padding: var(--s-11) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}
.section-head__title {
  display: flex; align-items: center; gap: var(--s-3);
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mets-orange-text);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.section-head__eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: var(--mets-orange-500);
  display: inline-block;
}
.section-head__link {
  font-weight: 600;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: var(--s-2);
  position: relative;
  font-size: 14px;
  letter-spacing: 0.02em;
  min-height: 44px;
  padding-block: 11px;
}
.section-head__link::after {
  content: "→";
  transition: transform var(--dur-2) var(--ease-out);
}
.section-head__link:hover::after { transform: translateX(4px); }

/* Grid helpers */
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--editorial { grid-template-columns: 1.4fr 1fr; }

@media (max-width: 960px) {
  .grid--editorial { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .section { padding: var(--s-9) 0; }
  .section--sm { padding: var(--s-7) 0; }
  .section--lg { padding: var(--s-10) 0; }
  .section-head { margin-bottom: var(--s-6); }
}

@media (max-width: 600px) {
  .section { padding: var(--s-7) 0; }
  .section--sm { padding: var(--s-6) 0; }
  .section--lg { padding: var(--s-8) 0; }
  main > .section[style*="padding-top: var(--s-10)"] {
    padding-top: var(--s-7) !important;
  }
  .section-head {
    align-items: stretch;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
  }
  .section-head > div {
    width: 100%;
  }
  .section-head h1 {
    font-size: clamp(2.1rem, 11vw, 2.75rem) !important;
  }
  .section-head p {
    max-width: none !important;
  }
  .section-head .chips,
  .section-head .tabs,
  .section-head .view-toggle {
    width: 100%;
  }
  .section-head .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
  }
  .section-head .chip,
  .section-head .tab,
  .section-head .view-toggle__btn {
    justify-content: center;
  }
}

/* ------------------------------------------------------------------
   4. Header & navigation
   ------------------------------------------------------------------ */
.topbar {
  background: var(--ny-navy-900);
  color: var(--fg-inverse);
  font-size: 13px;
  border-bottom: 1px solid var(--border-dark);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--ticker-h);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: var(--s-5); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s-2); color: rgba(255,255,255,0.7); }
.topbar__item strong { color: #fff; font-weight: 600; }
.topbar__live {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--live-on-dark); font-weight: 600;
}
.topbar__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live-on-dark);
  box-shadow: 0 0 0 0 rgba(225,29,72,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225,29,72,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(225,29,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: var(--s-6);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ny-navy-800);
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mets-orange-500), var(--mets-orange-600));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "M";
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.brand__mark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.4), transparent 50%);
}
.brand small {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: block;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-2);
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.nav__link:hover { color: var(--ny-navy-800); background: var(--ink-50); }
.nav__link.is-active { color: var(--mets-orange-text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--mets-orange-500);
  border-radius: 2px;
}

.header__cta { display: inline-flex; align-items: center; gap: var(--s-3); }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--mets-orange-text);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(194,65,12,0.55);
}
.btn--primary:hover { background: #A83209; box-shadow: 0 10px 24px -6px rgba(168,50,9,0.6); }
.btn--ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--ink-50); }
.btn:disabled,
.btn[aria-disabled="true"],
.month-nav__btn:disabled,
.month-nav__btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  pointer-events: none;
}
.btn--dark {
  background: var(--ny-navy-800);
  color: #fff;
}
.btn--dark:hover { background: var(--ny-navy-700); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--icon { padding: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-2);
  color: var(--ny-navy-800);
}
.nav-toggle:hover { background: var(--ink-50); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; position: relative;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out), bottom var(--dur-2) var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { bottom: -7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { bottom: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw, 360px);
    height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-7) var(--s-6);
    gap: var(--s-2);
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease-out);
    z-index: 49;
    overflow-y: auto;
  }
  .nav.is-open { display: flex; transform: translateX(0); }
  .nav__link { font-size: 22px; font-family: var(--font-display); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav__link.is-active::after { display: none; }
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 600px) {
  .topbar__inner {
    height: auto;
    min-height: var(--ticker-h);
    gap: var(--s-2);
    overflow: hidden;
  }
  .topbar__left {
    min-width: 0;
    gap: var(--s-3);
    overflow: hidden;
    white-space: nowrap;
  }
  .topbar__right { display: none; }
  .topbar__item {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar__left .topbar__item:nth-of-type(4) { display: none; }
  .header__inner { gap: var(--s-3); }
  .brand { min-width: 0; gap: var(--s-2); }
  .brand small { display: none; }
  .header__cta .btn--primary { display: none; }
}

/* ------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ny-navy-900);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255,89,16,0.30), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(42, 85, 153, 0.35), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-block: var(--s-10) var(--s-9);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mets-orange-300);
  padding: 8px 14px;
  background: rgba(255, 89, 16, 0.10);
  border: 1px solid rgba(255, 89, 16, 0.30);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-6);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mets-orange-500);
  box-shadow: 0 0 12px var(--mets-orange-500);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--mets-orange-300);
  font-weight: 500;
}
.hero__lede {
  margin-top: var(--s-5);
  max-width: 52ch;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.hero__actions {
  display: flex; gap: var(--s-3);
  margin-top: var(--s-7);
  flex-wrap: wrap;
}
.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.05);
}
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,0.10); }

.hero__meta {
  margin-top: var(--s-7);
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: var(--s-5);
}
.hero__meta-item .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 4px;
}
.hero__meta-item .value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.hero__meta-item .value small { font-family: var(--font-sans); font-size: 12px; color: var(--mets-orange-300); margin-left: 6px; font-weight: 600; }

/* Score card (hero) */
.scorecard {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-5);
  padding: var(--s-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.scorecard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-5);
}
.scorecard__status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mets-orange-300);
}
.scorecard__status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s infinite;
}
.scorecard__time { font-size: 13px; color: rgba(255,255,255,0.6); }
.scorecard__teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0;
}
.scorecard__team {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  text-align: center;
}
.scorecard__team--away { text-align: right; align-items: flex-end; }
.scorecard__team--home { text-align: left; align-items: flex-start; }
.scorecard__team .logo { width: 76px; height: 76px; object-fit: contain; }
.scorecard__team .name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}
.scorecard__team .record { font-size: 12px; color: rgba(255,255,255,0.5); }
.scorecard__score {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 700; letter-spacing: -0.04em;
  line-height: 1;
  display: flex; align-items: center; gap: var(--s-3);
}
.scorecard__score span { min-width: 1ch; }
.scorecard__score .sep { color: rgba(255,255,255,0.3); }
.scorecard__details {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.scorecard__detail {
  text-align: center;
}
.scorecard__detail .label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scorecard__detail .value {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: #fff;
  margin-top: 4px;
}
.scorecard__situation {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: rgba(255,89,16,0.08);
  border: 1px solid rgba(255,89,16,0.18);
  border-radius: var(--r-3);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.scorecard__situation strong { color: var(--mets-orange-300); font-weight: 600; }
.scorecard__cta {
  display: flex; gap: var(--s-3);
  margin-top: var(--s-5);
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: var(--s-8); gap: var(--s-6); }
}

@media (max-width: 600px) {
  .hero__inner { padding-block: var(--s-6); gap: var(--s-4); }
  .hero__eyebrow { margin-bottom: var(--s-4); }
  .hero h1 {
    font-size: 2.45rem;
    letter-spacing: 0;
  }
  .hero__lede {
    margin-top: var(--s-3);
    line-height: 1.5;
  }
  .hero__actions,
  .hero__meta { margin-top: var(--s-4); }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4);
  }
  .hero__meta-item {
    min-width: 0;
  }
  .hero__meta-item .value {
    font-size: 1.25rem;
    line-height: 1.1;
  }
  .hero__meta-item .value small {
    display: block;
    margin: 4px 0 0;
  }
  .scorecard {
    padding: var(--s-4);
    border-radius: var(--r-3);
  }
  .scorecard__head {
    margin-bottom: var(--s-4);
  }
  .scorecard__teams {
    gap: var(--s-3);
    padding-block: var(--s-3);
  }
  .scorecard__team .logo {
    width: 58px;
    height: 58px;
  }
  .scorecard__score {
    font-size: 48px;
  }
  .scorecard__details {
    gap: var(--s-2);
    margin-top: var(--s-4);
    padding-top: var(--s-4);
  }
}

/* ------------------------------------------------------------------
   6. News cards
   ------------------------------------------------------------------ */
.cards { display: grid; gap: var(--s-6); }
.cards--featured {
  grid-template-columns: 1.4fr 1fr;
}
.cards--news {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .cards--featured, .cards--news { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--r-4);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ny-navy-700);
  overflow: hidden;
}
.card__media img, .card__media svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}
.card:hover .card__media img, .card:hover .card__media svg { transform: scale(1.05); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 16, 31, 0.6));
  pointer-events: none;
}
.card__tag {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(4, 16, 31, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-pill);
  z-index: 1;
}
.card__tag--breaking { background: var(--mets-orange-text); }
.card__body {
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  flex: 1;
  min-width: 0;
}
.card__meta {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: 12px;
  color: var(--fg-faint);
  font-weight: 500;
  letter-spacing: 0.02em;
  min-width: 0;
  overflow: hidden;
}
.card__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta .source, .card__meta .dot { flex: 0 0 auto; }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-faint); }
.card__meta .source { color: var(--mets-orange-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fg);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--featured .card__title { font-size: 2rem; }
.card__excerpt {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-3);
}
.card__link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 600;
  color: var(--mets-orange-text);
}
.card__link::after { content: "→"; transition: transform var(--dur-2) var(--ease-out); }
.card:hover .card__link::after { transform: translateX(4px); }
.card__external {
  font-size: 12px; color: var(--fg-faint); font-weight: 500;
}

/* Card variants */
.card--mini {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-radius: var(--r-3);
}
.card--mini .card__media { aspect-ratio: 1; }
.card--mini .card__body { padding: var(--s-4); }
.card--mini .card__title { font-size: 1rem; line-height: 1.2; }
.card--mini .card__excerpt { display: none; }

/* Stat tile */
.stat {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--r-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
  overflow: hidden;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--mets-orange-500), var(--mets-orange-300));
}
.stat__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint);
  display: flex; align-items: center; justify-content: space-between;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: var(--s-3);
  line-height: 1;
}
.stat__player {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-3);
  font-size: 13px; color: var(--fg-muted);
}
.stat__player .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ny-navy-600), var(--ny-navy-800));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ------------------------------------------------------------------
   7. Standings tables
   ------------------------------------------------------------------ */
.tabs {
  display: inline-flex;
  background: var(--ink-50);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.tab {
  padding: 10px 22px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.tab.is-active { background: var(--ny-navy-800); color: #fff; box-shadow: var(--shadow-md); }
.tab:hover:not(.is-active) { color: var(--ny-navy-800); }
.tab[aria-selected="true"] { background: var(--ny-navy-800); color: #fff; box-shadow: var(--shadow-md); }

.division {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.division__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--cream-50), var(--bg-elev));
}
.division__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: var(--s-3);
}
.division__title small { font-family: var(--font-sans); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 700px) {
  .division {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .division .standings {
    min-width: 560px;
  }

  .division .standings th,
  .division .standings td {
    padding-inline: var(--s-3);
  }

  .division .standings th:first-child,
  .division .standings td:first-child {
    padding-left: var(--s-4);
  }

  .division .standings th:last-child,
  .division .standings td:last-child {
    padding-right: var(--s-4);
  }
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.standings th {
  text-align: left;
  padding: 12px var(--s-4);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.standings th.numeric, .standings td.numeric { text-align: right; }
.standings th:first-child, .standings td:first-child { padding-left: var(--s-6); }
.standings th:last-child, .standings td:last-child { padding-right: var(--s-6); }
.standings tbody tr { transition: background var(--dur-1) var(--ease-out); cursor: pointer; }
.standings tbody tr:hover { background: var(--cream-100); }
.standings tbody tr.is-mets { background: rgba(255,89,16,0.05); }
.standings tbody tr.is-mets:hover { background: rgba(255,89,16,0.10); }
.standings tbody tr.is-mets .team__name { color: var(--mets-orange-text); font-weight: 700; }
.standings tbody tr.is-leader .rank {
  background: var(--mets-orange-text);
  color: #fff;
  font-weight: 700;
}
.standings td {
  padding: 14px var(--s-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.standings tbody tr:last-child td { border-bottom: 0; }
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--fg-muted);
  font-size: 12px; font-weight: 700;
  font-family: var(--font-sans);
}
.team {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 500;
}
.team__logo { width: 28px; height: 28px; object-fit: contain; }
.team__abbr { font-weight: 700; font-size: 12px; color: var(--fg-faint); margin-left: 4px; }
.team__name { font-weight: 600; }
.standings .streak {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-1);
  font-size: 11px; font-weight: 700;
  background: var(--ink-100);
  color: var(--fg-muted);
}
.standings .streak--W { background: rgba(31, 166, 106, 0.12); color: var(--success); }
.standings .streak--L { background: rgba(224, 74, 74, 0.12); color: var(--danger); }

/* Expandable */
.expand-row { display: none; }
.expand-row.is-open { display: table-row; }
.expand-row td { background: var(--cream-50); padding: var(--s-5) var(--s-6); }
.expand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-4);
}
.expand-cell .l {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600;
}
.expand-cell .v {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin-top: 4px;
  color: var(--fg);
}

/* ------------------------------------------------------------------
   8. Schedule (calendar + list)
   ------------------------------------------------------------------ */
body[data-page="schedule"] {
  background: var(--ny-navy-900);
}

.schedule-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(92px, 10vw, 148px) 0 var(--s-11);
  background:
    linear-gradient(90deg, rgba(4, 16, 31, 0.34) 0%, rgba(4, 16, 31, 0.10) 19%, rgba(4, 16, 31, 0.04) 50%, rgba(4, 16, 31, 0.10) 81%, rgba(4, 16, 31, 0.38) 100%),
    linear-gradient(180deg, rgba(4, 16, 31, 0.08) 0%, rgba(4, 16, 31, 0.22) 58%, rgba(4, 16, 31, 0.84) 100%),
    url("../img/schedule-stage-bg.webp") center top / 100% auto no-repeat,
    var(--ny-navy-900);
}

.schedule-stage::before,
.schedule-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.schedule-stage::before {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 70%, rgba(4, 16, 31, 0.78) 100%),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, 0.045) 120px 121px);
}

.schedule-stage::after {
  left: max(16px, calc((100vw - var(--container)) / 2 - 90px));
  top: 88px;
  width: clamp(120px, 16vw, 260px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 58%, rgba(255, 255, 255, 0.18) 59% 60%, transparent 61%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.72;
}

.schedule-board {
  position: relative;
  z-index: 1;
  --schedule-board-fg: #0B0F1A;
  --schedule-board-muted: #4A5468;
  --schedule-board-faint: #6B7588;
  --schedule-board-soft: #F4EFE5;
  --schedule-board-elev: #FFFFFF;
  --schedule-board-ink-soft: #F2F4F8;
  --schedule-board-ink-mid: #E5E8EF;
  --schedule-board-border: rgba(15, 23, 42, 0.12);
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 2px;
  box-shadow: 0 46px 110px -48px rgba(0, 0, 0, 0.72), 0 12px 34px -18px rgba(4, 16, 31, 0.58);
  padding: clamp(28px, 3.1vw, 48px);
  color: var(--schedule-board-fg);
}

body[data-page="schedule"] .schedule-stage .section-head {
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 92px);
}

body[data-page="schedule"] .schedule-stage .section-head h1 {
  color: var(--schedule-board-fg);
  text-shadow: none;
}

body[data-page="schedule"] .schedule-stage .section-head__eyebrow {
  color: var(--mets-orange-text);
}

body[data-page="schedule"] .schedule-stage .section-head__eyebrow::before {
  background: var(--mets-orange-500);
}

body[data-page="schedule"] .schedule-stage .text-muted {
  color: var(--schedule-board-muted);
}

body[data-page="schedule"] .schedule-stage .view-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
  box-shadow: 0 20px 46px -34px rgba(4, 16, 31, 0.58);
}

body[data-page="schedule"] .calendar,
body[data-page="schedule"] .schedule-day {
  box-shadow: 0 24px 55px -40px rgba(4, 16, 31, 0.72), 0 8px 22px -18px rgba(4, 16, 31, 0.45);
}

.schedule-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4);
  margin-bottom: var(--s-6);
}

body[data-page="schedule"] .schedule-controls {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.month-nav { display: flex; align-items: center; gap: var(--s-3); }
.month-nav__label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-width: 200px;
  text-align: center;
}
.month-nav__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg);
  transition: background var(--dur-1) var(--ease-out);
}
.month-nav__btn:hover { background: var(--ink-50); }

.view-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
}
.view-toggle__btn {
  padding: 8px 18px;
  min-height: 44px;
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.view-toggle__btn.is-active { background: var(--ny-navy-800); color: #fff; }
.view-toggle__btn[aria-selected="true"] { background: var(--ny-navy-800); color: #fff; }

.chips { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  padding: 8px 16px;
  min-height: 44px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.chip:hover { color: var(--ny-navy-800); }
.chip.is-active { background: var(--mets-orange-text); border-color: var(--mets-orange-text); color: #fff; }
.chip-group { display: inline-flex; align-items: center; gap: var(--s-2); }
.chip-group__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; margin-right: 4px; }

.calendar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
}

body[data-page="schedule"] .calendar {
  border-color: rgba(4, 16, 31, 0.20);
  border-radius: 2px;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
}

body[data-page="schedule"] .calendar__weekdays {
  background: #fff;
}

.calendar__weekday {
  padding: 12px var(--s-3);
  text-align: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
}

body[data-page="schedule"] .calendar__weekday {
  color: var(--schedule-board-fg);
  font-size: clamp(14px, 1.45vw, 21px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="schedule"] .calendar__day {
  background: var(--schedule-board-elev);
  border-color: var(--schedule-board-border);
}

body[data-page="schedule"] .calendar__day:hover,
body[data-page="schedule"] .calendar__day.is-other {
  background: var(--schedule-board-soft);
}

body[data-page="schedule"] .calendar__day.is-other {
  color: var(--schedule-board-faint);
}

body[data-page="schedule"] .calendar__day .num {
  color: var(--schedule-board-fg);
}

body[data-page="schedule"] .calendar__game {
  background: var(--schedule-board-ink-soft);
  color: var(--schedule-board-muted);
}

body[data-page="schedule"] .calendar__game.is-final {
  background: var(--schedule-board-ink-mid);
  color: var(--schedule-board-faint);
}

body[data-page="schedule"] .calendar__off,
body[data-page="schedule"] .chip-group__label,
body[data-page="schedule"] .schedule-day__date .m,
body[data-page="schedule"] .schedule-day__result .label {
  color: var(--schedule-board-faint);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(108px, 1fr);
}
.calendar__grid > .empty-state { grid-column: 1 / -1; }
.calendar__day {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  background: var(--bg-elev);
  transition: background var(--dur-1) var(--ease-out);
}
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day:hover { background: var(--cream-50); }
.calendar__day:focus-visible {
  outline: 2px solid var(--mets-orange-500);
  outline-offset: -2px;
}
.calendar__day.is-other { background: var(--cream-50); color: var(--fg-faint); }
.calendar__day.is-today { background: rgba(255,89,16,0.05); }
.calendar__day.is-today .num { color: var(--mets-orange-text); font-weight: 800; }
.calendar__day .num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--fg);
}
.calendar__game {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--r-2);
  background: var(--ink-50);
  color: var(--fg-muted);
  display: flex; flex-direction: column; gap: 2px;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.calendar__game--home { border-left-color: var(--ny-navy-600); }
.calendar__game--away { border-left-color: var(--mets-orange-500); }
.calendar__game.is-final { background: var(--ink-100); color: var(--fg-faint); }
.calendar__game.is-final.win { background: rgba(31,166,106,0.10); color: var(--success); font-weight: 700; }
.calendar__game.is-final.loss { background: rgba(224,74,74,0.10); color: var(--danger); font-weight: 700; }
.calendar__game .opp { font-weight: 600; }
.calendar__game .meta { font-size: 10px; opacity: 0.8; }
.calendar__off {
  font-size: 10px; color: var(--fg-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 8px;
}

.schedule-list { display: flex; flex-direction: column; gap: var(--s-3); }
.schedule-day {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: var(--s-5);
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

body[data-page="schedule"] .schedule-day {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--schedule-board-border);
  color: var(--schedule-board-fg);
}

body[data-page="schedule"] .schedule-day__info {
  color: var(--schedule-board-muted);
}

body[data-page="schedule"] .schedule-day__info strong {
  color: var(--schedule-board-fg);
}

.schedule-day:hover { border-color: var(--border-strong); transform: translateX(2px); }
.schedule-day.is-off { opacity: 0.7; }
.schedule-day__date { text-align: left; }
.schedule-day__date .d {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.schedule-day__date .m {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
  margin-top: 4px;
}
.schedule-day__game { display: flex; align-items: center; gap: var(--s-4); }
.schedule-day__teams {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600;
  font-size: 15px;
}
.schedule-day__teams .logo { width: 32px; height: 32px; object-fit: contain; }
.schedule-day__teams .vs { color: var(--fg-faint); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.schedule-day__info { font-size: 12px; color: var(--fg-muted); }
.schedule-day__info strong { color: var(--fg); display: block; font-weight: 600; }
.schedule-day__result {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
}
.schedule-day__result .score { font-size: 1.2rem; letter-spacing: -0.01em; }
.schedule-day__result.win .score { color: var(--success); }
.schedule-day__result.loss .score { color: var(--danger); }
.schedule-day__result .label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); margin-top: 2px; }

@media (max-width: 700px) {
  .schedule-stage {
    padding-top: var(--s-6);
    background-position: center top;
  }

  .schedule-board {
    padding: var(--s-5) var(--s-4);
    border-radius: 0;
  }

  body[data-page="schedule"] .schedule-stage .section-head {
    align-items: stretch;
    margin-bottom: var(--s-5);
  }

  body[data-page="schedule"] .schedule-stage .section-head > div {
    width: 100%;
  }

  body[data-page="schedule"] .schedule-stage .view-toggle {
    width: 100%;
  }

  .schedule-stage::after {
    top: 96px;
    width: 128px;
  }

  body[data-page="schedule"] .schedule-controls > div:last-child,
  body[data-page="schedule"] .chip-group {
    width: 100%;
  }

  body[data-page="schedule"] .schedule-controls {
    gap: var(--s-3);
    margin-bottom: var(--s-5);
  }

  body[data-page="schedule"] .schedule-controls > div:last-child {
    display: grid;
    gap: var(--s-3);
  }

  body[data-page="schedule"] .chip-group {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(0, auto));
    align-items: center;
    column-gap: var(--s-2);
  }

  body[data-page="schedule"] .chip-group__label {
    margin-right: 0;
  }

  body[data-page="schedule"] .chip {
    justify-content: center;
  }

  .month-nav {
    width: 100%;
    justify-content: space-between;
  }

  .month-nav__label {
    min-width: 0;
    flex: 1;
  }

  body[data-page="schedule"] .calendar {
    overflow-x: auto;
  }

  body[data-page="schedule"] .calendar__weekdays,
  body[data-page="schedule"] .calendar__grid {
    min-width: 720px;
  }

  .schedule-day { grid-template-columns: 1fr; gap: var(--s-3); }
  .schedule-day__date { display: flex; align-items: baseline; gap: var(--s-3); }
  .schedule-day__date .d { font-size: 1.2rem; }
  .schedule-day__result { text-align: left; }
}

/* ------------------------------------------------------------------
   9. Game center
   ------------------------------------------------------------------ */
.game-hero {
  background: var(--ny-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.game-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,89,16,0.30), transparent 60%);
  pointer-events: none;
}
.game-hero__inner {
  position: relative;
  padding-block: var(--s-9);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.game-hero__topline {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.game-hero__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
}
.game-hero__back:hover { color: #fff; }
.game-hero__nav {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
  align-items: stretch;
  gap: var(--s-2);
  min-width: min(100%, 620px);
}
.game-hero__nav-btn,
.game-hero__nav-current {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: var(--r-2);
  padding: 9px 12px;
}
.game-hero__nav-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.game-hero__nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}
.game-hero__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.game-hero__nav-arrow {
  grid-row: 1 / span 2;
  font-size: 1.2rem;
  line-height: 1;
}
.game-hero__nav-btn span:not(.game-hero__nav-arrow),
.game-hero__nav-current span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.game-hero__nav-btn small,
.game-hero__nav-current small {
  min-width: 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-hero__nav-current {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 132px;
}
.game-hero__status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px;
  background: rgba(225,29,72,0.15);
  border: 1px solid rgba(225,29,72,0.3);
  color: var(--live-on-dark);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.game-hero__status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live-on-dark);
  animation: pulse 1.6s infinite;
}
.game-hero__inning {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--s-4);
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}
.game-hero__matchup {
  margin-top: var(--s-5);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-7); align-items: center;
  width: 100%;
  max-width: 720px;
}
.game-hero__team { text-align: center; }
.game-hero__team--away { text-align: right; }
.game-hero__team--home { text-align: left; }
.game-hero__team .logo { width: 90px; height: 90px; object-fit: contain; margin: 0 auto; }
.game-hero__team--away .logo { margin-left: auto; }
.game-hero__team--home .logo { margin: 0; }
.game-hero__team .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-top: var(--s-3); }
.game-hero__team .record { font-size: 13px; color: rgba(255,255,255,0.5); }
.game-hero__team .badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: var(--r-1);
  margin-top: var(--s-2);
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
.game-hero__score {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  display: flex; align-items: center; gap: var(--s-3);
  color: #fff;
}
.game-hero__score .sep { color: rgba(255,255,255,0.3); }

@media (max-width: 760px) {
  .game-hero__topline {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .game-hero__back { justify-self: center; }
  .game-hero__nav {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    width: 100%;
  }
  .game-hero__nav-current {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .game-hero__matchup {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .game-hero__team,
  .game-hero__team--away,
  .game-hero__team--home {
    text-align: center;
  }
  .game-hero__team .logo,
  .game-hero__team--away .logo,
  .game-hero__team--home .logo {
    margin: 0 auto;
  }
  .game-hero__score {
    justify-content: center;
    font-size: 64px;
  }
}

.linescore {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
  margin-top: var(--s-7);
}
.linescore__head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.linescore__head h3 { font-size: 1.15rem; }
.linescore > div:not(.linescore__head) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.linescore table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}
.linescore th, .linescore td {
  text-align: center;
  padding: 14px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.linescore th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; background: var(--cream-50); }
.linescore td.team-cell, .linescore th.team-cell { text-align: left; padding-left: var(--s-6); font-weight: 600; }
.linescore td.runs, .linescore th.runs, .linescore td.hits, .linescore th.hits, .linescore td.errors, .linescore th.errors { font-weight: 700; color: var(--ny-navy-800); }
.linescore tr:last-child td { border-bottom: 0; }

.game-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); }
@media (max-width: 960px) { .game-grid { grid-template-columns: 1fr; } }

.situation {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: var(--s-6);
}
.situation__row { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.situation__row:last-child { border-bottom: 0; }
.situation__row .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; }
.situation__row .value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.situation__row .value .badge {
  display: inline-block; padding: 2px 8px;
  background: var(--ny-navy-800); color: #fff;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  border-radius: var(--r-1);
  margin-left: 6px;
}

.plays {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
}
.plays__head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.plays__list { display: flex; flex-direction: column; }
.game-scroll-region {
  max-height: clamp(220px, 34vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.play {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-1) var(--ease-out);
}
.play:hover { background: var(--cream-50); }
.play:last-child { border-bottom: 0; }
.play__inning {
  display: grid;
  gap: 4px;
  min-width: 82px;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-faint);
}
.play__inning strong {
  display: block;
  margin-top: 4px;
  color: var(--ny-navy-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.play__text { font-size: 14px; line-height: 1.45; }
.play__type {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--ink-100); color: var(--fg-muted);
  white-space: nowrap;
}
.play__type--hr { background: var(--mets-orange-text); color: #fff; }
.play__type--k   { background: rgba(224,74,74,0.12); color: var(--danger); }
.play__type--out { background: var(--ink-100); color: var(--fg-muted); }

.game-live-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-3);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.game-live-strip > div,
.bso-stack {
  min-width: 0;
  padding: 10px 12px;
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
}
.game-live-strip span,
.field-details span,
.due-up span,
.matchup-grid span,
.recap-grid span,
.statcast-grid span,
.win-prob span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 700;
}
.game-live-strip strong,
.field-details strong,
.due-up strong,
.matchup-grid strong,
.recap-grid strong,
.statcast-grid strong,
.win-prob strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--ny-navy-800);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bso-stack {
  display: grid;
  gap: 4px;
}
.bso-row {
  display: grid;
  grid-template-columns: 14px repeat(4, 10px);
  gap: 4px;
  align-items: center;
}
.bso-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
}
.bso-row i.is-on { background: var(--mets-orange-500); }

.game-center-shell {
  margin-top: var(--s-6);
}
.game-center-tabs {
  margin-bottom: var(--s-4);
  max-width: 100%;
  overflow-x: auto;
}
.game-panel {
  min-width: 0;
}
.game-stack {
  display: grid;
  gap: var(--s-4);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
}
.panel-head h3 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.field-card,
.scoring-card,
.matchup-card,
.context-card,
.recap-card,
.advanced-card,
.box-team,
.playbook {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.field-layout {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-6);
}
.base-diamond {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 220px);
  margin: 0 auto;
}
.base-diamond::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid var(--border-strong);
  transform: rotate(45deg);
  border-radius: 6px;
}
.base,
.base-home {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--cream-100);
  border: 2px solid var(--border-strong);
  transform: rotate(45deg);
  border-radius: 4px;
}
.base.is-occupied {
  background: var(--mets-orange-500);
  border-color: var(--mets-orange-500);
  box-shadow: 0 0 0 4px rgba(255,89,16,0.14);
}
.base--second { left: 50%; top: 10%; margin-left: -12px; }
.base--third { left: 10%; top: 50%; margin-top: -12px; }
.base--first { right: 10%; top: 50%; margin-top: -12px; }
.base-home { left: 50%; bottom: 10%; margin-left: -12px; background: var(--ny-navy-800); }
.field-details,
.matchup-grid,
.recap-grid,
.statcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.field-details > div,
.due-up > div,
.matchup-grid > div,
.recap-grid > div,
.statcast-grid > div,
.win-prob {
  padding: var(--s-3);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
}
.due-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  padding: 0 var(--s-6) var(--s-6);
}

.scoring-list,
.context-block,
.performers,
.pitch-chart {
  padding: var(--s-5) var(--s-6);
}
.scoring-play,
.performers > div,
.pitch-list > div,
.context-link {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.scoring-play:last-child,
.performers > div:last-child,
.pitch-list > div:last-child,
.context-link:last-child {
  border-bottom: 0;
}
.scoring-play p,
.context-block p,
.win-prob p,
.performers p,
.pitch-list p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}
.scoring-play b {
  color: var(--ny-navy-800);
  white-space: nowrap;
}
.scoring-play > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.scoring-play span {
  display: block;
  color: var(--fg-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.scoring-play strong {
  display: block;
  color: var(--ny-navy-800);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.playbook .panel-head {
  flex-wrap: wrap;
}
.game-play-filters .chip {
  cursor: pointer;
}
.play-group {
  border-top: 1px solid var(--border);
}
.play-group:first-of-type { border-top: 0; }
.play-group h4 {
  padding: var(--s-3) var(--s-6);
  background: var(--cream-50);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.box-grid {
  display: grid;
  gap: var(--s-5);
}
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
.box-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.box-table th,
.box-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-size: 13px;
}
.box-table th {
  background: var(--cream-50);
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.box-table th:first-child,
.box-table td:first-child {
  text-align: left;
  min-width: 180px;
}
.box-table td strong,
.box-table td small {
  display: block;
}
.box-table td small {
  margin-top: 2px;
  color: var(--fg-faint);
  font-size: 11px;
}

.matchup-card,
.context-card,
.recap-card,
.advanced-card {
  min-width: 0;
}
.matchup-grid,
.recap-grid,
.statcast-grid {
  padding: var(--s-5) var(--s-6);
}
.context-block + .context-block {
  border-top: 1px solid var(--border);
}
.context-block h4,
.performers h4 {
  margin-bottom: var(--s-3);
  font-size: 1rem;
}
.context-rows {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.context-rows span {
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
  background: var(--cream-100);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--fg-muted);
}
.context-link {
  grid-template-columns: minmax(80px, 0.2fr) 1fr;
  color: var(--fg);
}
.context-link span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 700;
}
.context-link:hover strong { color: var(--mets-orange-text); }

.win-prob {
  margin: 0 var(--s-6) var(--s-5);
}
.pitch-chart {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-5);
  border-top: 1px solid var(--border);
}
.pitch-zone {
  position: relative;
  aspect-ratio: 1;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--cream-50);
  background-size: 33.33% 33.33%;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-2);
}
.pitch-zone::before {
  content: "";
  position: absolute;
  left: 31%;
  top: 24%;
  width: 38%;
  height: 52%;
  border: 2px solid var(--ny-navy-800);
  border-radius: 4px;
}
.pitch-zone span {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--mets-orange-500);
  box-shadow: 0 0 0 3px rgba(255,89,16,0.16);
}
.pitch-list {
  display: grid;
  align-content: start;
}
.pitch-list > div {
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
}
.pitch-list span,
.performers span {
  color: var(--fg-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .game-live-strip {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-layout,
  .pitch-chart {
    grid-template-columns: 1fr;
  }
  .due-up,
  .matchup-grid,
  .recap-grid,
  .statcast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .game-hero__inner {
    padding-block: var(--s-6);
  }
  .game-hero__topline {
    margin-bottom: var(--s-4);
  }
  .game-state {
    margin-top: var(--s-3);
  }
  .game-score {
    margin-top: var(--s-4);
  }
  .game-live-strip {
    grid-template-columns: 1fr;
  }
  .panel-head,
  .field-layout,
  .matchup-grid,
  .recap-grid,
  .statcast-grid,
  .scoring-list,
  .context-block,
  .performers,
  .pitch-chart {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .scoring-play,
  .performers > div,
  .pitch-list > div,
  .context-link {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
  .play {
    grid-template-columns: minmax(0, 82px) minmax(0, 1fr);
    align-items: start;
  }
  .play__inning {
    min-width: 0;
  }
  .play__inning strong {
    overflow-wrap: anywhere;
  }
  .play__text {
    min-width: 0;
  }
  .play__type {
    grid-column: 2;
    justify-self: start;
    margin-top: var(--s-1);
  }
}

/* ------------------------------------------------------------------
   10. Roster
   ------------------------------------------------------------------ */
.roster-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.roster-search {
  position: relative;
  flex: 1; max-width: 320px;
}
.roster-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font: inherit;
  background: var(--bg-elev);
  color: var(--fg);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.roster-search input:focus { outline: none; border-color: var(--mets-orange-500); box-shadow: 0 0 0 3px rgba(255,89,16,0.15); }
.roster-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--fg-faint);
}

[data-roster-panel] > div {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.roster-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
}
.roster-table th {
  text-align: left;
  padding: 14px var(--s-4);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
}
.roster-table td {
  padding: 14px var(--s-4);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.roster-table tr:last-child td { border-bottom: 0; }
.roster-table .num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--fg-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.roster-table .player {
  display: flex; align-items: center; gap: var(--s-3);
}
.roster-table .player .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ny-navy-600), var(--ny-navy-800));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.roster-table .player .name { font-weight: 600; }
.roster-table .player .pos { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.roster-table .stat-cell { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.roster-table .throws-bats { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 600px) {
  .roster-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
  }

  .roster-search {
    width: 100%;
    max-width: none;
  }

  .roster-toolbar [data-roster-summary] {
    line-height: 1.4;
    padding-inline: 2px;
  }

  .roster-table th,
  .roster-table td {
    padding-block: var(--s-3);
  }
}

/* ------------------------------------------------------------------
   11. News page
   ------------------------------------------------------------------ */
.news-feature {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-9);
  background: linear-gradient(135deg, var(--ny-navy-800), var(--ny-navy-900));
  color: #fff;
  border-radius: var(--r-5);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s-9);
}
.news-feature > * { min-width: 0; }
.news-feature::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,89,16,0.3), transparent 70%);
  pointer-events: none;
}
.news-feature .card__tag { background: var(--mets-orange-text); }
.news-feature h2 { color: #fff; font-size: clamp(2rem, 3.5vw, 3rem); overflow-wrap: anywhere; }
.news-feature__lede { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.6; margin-top: var(--s-4); }
.news-feature__media {
  border-radius: var(--r-4);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.news-feature__media img, .news-feature__media svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .news-feature { grid-template-columns: 1fr; padding: var(--s-7); } }
@media (max-width: 600px) {
  .news-feature {
    padding: var(--s-5);
    gap: var(--s-5);
    border-radius: var(--r-4);
    margin-bottom: var(--s-6);
  }
  .news-feature h2 { font-size: 2rem; }
  .news-feature__lede { font-size: 0.95rem; }
  .news-feature::after { display: none; }
  .news-grid {
    gap: var(--s-4);
  }
  .news-grid:empty {
    display: none;
  }
  .news-grid:empty + .empty-state,
  .empty-state {
    padding: var(--s-5);
  }
}

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* Article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-6);
}
.article__tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--mets-orange-text);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
}
.article h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.article__lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin-top: var(--s-5);
  line-height: 1.5;
}
.article__meta {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-7) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.article__meta .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ny-navy-600), var(--ny-navy-800));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.article__meta .byline strong { color: var(--fg); font-weight: 600; display: block; }
.article__meta .byline small { font-size: 12px; color: var(--fg-faint); }
.article__image {
  margin: 0 0 var(--s-7);
  border-radius: var(--r-4);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ny-navy-800);
}
.article__image:empty { display: none; }
.article__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article__image figcaption {
  display: grid;
  gap: 4px;
  padding: 8px var(--s-4);
  color: var(--fg-faint);
  background: var(--ink-50);
  font-size: 12px;
}
.article__image figcaption small {
  color: var(--fg-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article__body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.article__body p + p { margin-top: var(--s-5); }
.article__body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 6px 12px -4px 0;
  color: var(--mets-orange-text);
}
.article__callout {
  margin: var(--s-7) 0;
  padding: var(--s-5) var(--s-6);
  background: var(--cream-100);
  border-left: 4px solid var(--mets-orange-500);
  border-radius: var(--r-2);
  font-style: italic;
  color: var(--ink-700);
}
.article__source {
  margin-top: var(--s-9);
  padding: var(--s-6);
  background: var(--ny-navy-800);
  color: #fff;
  border-radius: var(--r-4);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.article__source small { display: block; color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.article__source a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.article__source-list { display: grid; gap: var(--s-2); }
.article__source-list a { display: block; }

/* ------------------------------------------------------------------
   Admin articles
   ------------------------------------------------------------------ */
.admin-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 18, 43, 0.045), rgba(242, 244, 248, 0) 360px),
    var(--ink-50);
  color: var(--fg);
  padding: var(--s-7);
}
.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-6);
  max-width: 1720px;
  margin: 0 auto var(--s-6);
}
.admin-kicker {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--mets-orange-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.admin-topbar h1 {
  color: var(--ny-navy-900);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.admin-topbar p {
  max-width: 560px;
  margin-top: var(--s-2);
  color: var(--fg-muted);
  font-size: 15px;
}
.admin-auth, .admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.admin-auth input, .admin-team input, .admin-editor input, .admin-editor textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: var(--r-2);
  padding: 11px 12px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(4, 16, 31, 0.02);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.admin-auth input {
  width: 280px;
  background: rgba(255, 255, 255, 0.82);
}
.admin-auth input:focus,
.admin-team input:focus,
.admin-editor input:focus,
.admin-editor textarea:focus {
  outline: none;
  border-color: rgba(255, 89, 16, 0.64);
  box-shadow: 0 0 0 3px rgba(255, 89, 16, 0.14);
}
.admin-editor input:disabled,
.admin-editor textarea:disabled,
.admin-image-options button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.35fr) minmax(360px, 1fr);
  gap: var(--s-4);
  align-items: start;
  max-width: 1720px;
  margin: 0 auto;
}
.admin-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--r-3);
  box-shadow: 0 20px 50px -34px rgba(4, 16, 31, 0.42), 0 1px 2px rgba(4, 16, 31, 0.05);
}
.admin-panel--list,
.admin-panel--preview {
  position: sticky;
  top: var(--s-6);
}
.admin-panel--list {
  max-height: calc(100vh - var(--s-7) * 2);
  overflow: auto;
}
.admin-panel--editor,
.admin-panel--preview {
  min-width: 0;
}
.admin-panel__head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-panel h2 {
  color: var(--ny-navy-900);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.admin-panel p {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}
.admin-panel__tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5) 0;
}
.admin-panel__tools .btn {
  justify-content: center;
  width: 100%;
}
.admin-team {
  display: grid;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  min-width: 86px;
}
.admin-team input {
  padding: 8px 10px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}
.admin-draft-list {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.admin-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: var(--s-4) var(--s-5) 0;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--r-2);
  background: var(--ink-50);
}
.admin-status-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-muted);
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.admin-status-tab.is-active {
  background: #fff;
  color: var(--ny-navy-900);
  box-shadow: 0 1px 3px rgba(4, 16, 31, 0.12);
}
.admin-draft {
  display: grid;
  gap: var(--s-2);
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--r-2);
  background: #fff;
  padding: var(--s-3);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.admin-draft:hover {
  border-color: rgba(15, 45, 82, 0.24);
  box-shadow: 0 10px 24px -18px rgba(4, 16, 31, 0.42);
  transform: translateY(-1px);
}
.admin-draft.is-active {
  border-color: var(--mets-orange-500);
  background: linear-gradient(180deg, #fff, rgba(255, 227, 209, 0.58));
  box-shadow: inset 3px 0 0 var(--mets-orange-500), 0 14px 28px -22px rgba(255, 89, 16, 0.65);
}
.admin-draft strong {
  color: var(--ny-navy-900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.admin-draft span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-draft__status {
  border-radius: var(--r-pill);
  padding: 3px 7px;
  background: var(--ink-100);
  color: var(--fg-muted);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.admin-draft__status--draft { background: rgba(255, 89, 16, 0.12); color: var(--mets-orange-600); }
.admin-draft__status--published { background: rgba(31, 166, 106, 0.12); color: var(--success); }
.admin-draft__status--rejected { background: rgba(224, 74, 74, 0.12); color: var(--danger); }
.admin-empty {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: var(--s-5);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--r-2);
  background: rgba(242, 244, 248, 0.72);
}
.admin-editor {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
}
.admin-editor label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.admin-editor textarea {
  resize: vertical;
  line-height: 1.6;
}
.admin-image-editor {
  display: grid;
  gap: var(--s-3);
}
.admin-image-preview,
.admin-preview__image {
  margin: 0;
  border-radius: var(--r-2);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--ny-navy-800);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.admin-image-preview img,
.admin-preview__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.admin-image-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-2);
}
.admin-image-options button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--ink-100);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.admin-image-options button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -14px rgba(4, 16, 31, 0.45);
}
.admin-image-options button.is-active {
  border-color: var(--mets-orange-500);
  box-shadow: 0 0 0 2px rgba(255, 89, 16, 0.14);
}
.admin-image-options img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-tab {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--r-2);
  background: #fff;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.15;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.admin-tab.is-active {
  background: var(--ny-navy-800);
  border-color: var(--ny-navy-800);
  color: #fff;
}
.admin-tab-panel {
  padding: var(--s-5);
  max-height: calc(100vh - 160px);
  overflow: auto;
}
.admin-tab-panel.is-hidden { display: none; }
.admin-preview span {
  color: var(--mets-orange-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-preview h2 {
  color: var(--ny-navy-900);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  margin: var(--s-3) 0 var(--s-3);
}
.admin-preview__dek {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: var(--s-5);
}
.admin-preview p {
  color: var(--ink-700);
  line-height: 1.7;
  margin-top: var(--s-4);
  font-size: 15px;
}
.admin-source-list, .admin-risk-list {
  display: grid;
  gap: var(--s-3);
}
.admin-source-list a, .admin-risk {
  display: grid;
  gap: 6px;
  padding: var(--s-4);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--r-2);
  background: #fff;
}
.admin-source-list a:hover {
  border-color: rgba(15, 45, 82, 0.24);
  box-shadow: 0 10px 24px -20px rgba(4, 16, 31, 0.36);
}
.admin-source-list small {
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.admin-log {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  font-size: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--r-2);
  overflow: hidden;
}
.admin-log dt {
  padding: var(--s-3);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--ink-50);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-log dd {
  margin: 0;
  padding: var(--s-3);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.admin-log pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.admin-risk--high { border-color: rgba(224, 74, 74, 0.5); background: rgba(224, 74, 74, 0.08); }
.admin-risk--medium { border-color: rgba(242, 179, 61, 0.6); background: rgba(242, 179, 61, 0.10); }
.admin-risk--low { border-color: rgba(31, 166, 106, 0.35); background: rgba(31, 166, 106, 0.08); }
@media (max-width: 1180px) {
  .admin-grid { grid-template-columns: 280px 1fr; }
  .admin-panel--preview {
    grid-column: 1 / -1;
    position: static;
  }
  .admin-tab-panel { max-height: none; }
}
@media (max-width: 760px) {
  .admin-shell { padding: var(--s-4); }
  .admin-topbar, .admin-panel__head { display: grid; }
  .admin-panel--list { position: static; max-height: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-auth input { width: 100%; }
  .admin-auth, .admin-actions { justify-content: stretch; }
  .admin-auth .btn,
  .admin-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .admin-status-tabs,
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-image-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-log { grid-template-columns: 1fr; }
}

body[data-page="admin-editorial"] {
  background: #eef2f7;
  overflow-x: hidden;
}
.admin-shell * {
  min-width: 0;
}
body[data-page="admin-editorial"] .btn {
  border-radius: 7px;
  min-height: 40px;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
body[data-page="admin-editorial"] .btn--primary {
  background: #c2410c;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(194, 65, 12, 0.62);
}
body[data-page="admin-editorial"] .btn--primary:hover {
  background: #a83209;
  box-shadow: 0 12px 24px -10px rgba(168, 50, 9, 0.68);
}
body[data-page="admin-editorial"] .btn:disabled,
body[data-page="admin-editorial"] .btn[aria-disabled="true"] {
  border-color: var(--admin-line);
  background: #eef2f7;
  color: var(--admin-faint);
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
body[data-page="admin-login"] {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(5, 13, 24, 0.62), rgba(5, 13, 24, 0.2)),
    url("/assets/img/admin-login-bg.webp") center/cover no-repeat;
  color: #101828;
}
body[data-page="admin-login"] .btn {
  border-radius: 7px;
  min-height: 44px;
  justify-content: center;
}
body[data-page="admin-login"] .btn--primary {
  background: #c2410c;
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(194, 65, 12, 0.72);
}
body[data-page="admin-login"] .btn--primary:hover {
  background: #a83209;
}
.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: var(--s-5);
}
.admin-login-panel {
  display: grid;
  gap: var(--s-6);
  width: min(100%, 430px);
  padding: var(--s-7);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.7);
}
.admin-login-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: #06122b;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admin-login-brand small {
  display: block;
  margin-top: 1px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-login-copy h1 {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.admin-login-copy p {
  margin-top: var(--s-2);
  color: #667085;
}
.admin-login-form {
  display: grid;
  gap: var(--s-4);
}
.admin-login-form label {
  display: grid;
  gap: 7px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c2ccd9;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  letter-spacing: 0;
  padding: 0 var(--s-3);
  text-transform: none;
}
.admin-login-form input:focus {
  outline: 2px solid rgba(194, 65, 12, 0.28);
  border-color: #c2410c;
}
.admin-login-status {
  min-height: 20px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.admin-login-status[data-tone="error"] {
  color: #c73636;
}
.admin-login-status[data-tone="success"] {
  color: #168a55;
}
.admin-login-status[data-tone="pending"] {
  color: #b7791f;
}
.admin-shell {
  --admin-bg: #eef2f7;
  --admin-panel: #ffffff;
  --admin-panel-soft: #f8fafc;
  --admin-line: #d9e1ec;
  --admin-line-strong: #c2ccd9;
  --admin-text: #101828;
  --admin-muted: #667085;
  --admin-faint: #98a2b3;
  --admin-navy: #06122b;
  --admin-navy-2: #0b1f3f;
  --admin-orange: #c2410c;
  --admin-green: #168a55;
  --admin-yellow: #b7791f;
  --admin-red: #c73636;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
  background: var(--admin-bg);
  color: var(--admin-text);
  width: 100%;
  overflow-x: hidden;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--s-5);
  height: 100vh;
  padding: var(--s-5);
  background:
    linear-gradient(180deg, rgba(255, 89, 16, 0.12), rgba(255, 89, 16, 0) 240px),
    var(--admin-navy);
  color: #fff;
  min-width: 0;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admin-brand__mark {
  min-width: 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--admin-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow: 0 12px 28px -14px rgba(255, 89, 16, 0.8);
}
.admin-brand small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 40px;
  padding: 0 var(--s-3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}
.admin-nav__item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--admin-orange);
}
.admin-nav__item.is-muted {
  cursor: default;
  opacity: 0.7;
}
.admin-sidebar__eyebrow {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-editorial-sidebar-workflow {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  min-width: 0;
}
.admin-sidebar__foot {
  display: grid;
  gap: 3px;
  padding: var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar__foot span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-sidebar__foot strong {
  font-size: 13px;
}
.admin-icon svg,
.admin-icon-btn svg {
  min-width: 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-workspace {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  padding: var(--s-5);
}
.admin-topbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 640px);
  align-items: end;
  gap: var(--s-5);
  max-width: none;
  margin: 0 0 var(--s-4);
}
.admin-topbar > * {
  min-width: 0;
}
.admin-kicker {
  color: var(--admin-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.admin-topbar h1 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.admin-topbar p {
  max-width: 620px;
  color: var(--admin-muted);
  font-size: 14px;
}
.admin-commandbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: var(--s-2);
  align-items: end;
}
.admin-search,
.admin-team,
.admin-sort {
  display: grid;
  gap: 5px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-search {
  position: relative;
}
.admin-search .admin-icon {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: var(--admin-faint);
}
.admin-search input,
.admin-auth input,
.admin-team input,
.admin-sort select,
.admin-editor input,
.admin-editor textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  font: 500 13px/1.45 var(--font-sans);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.admin-search input {
  padding: 9px 12px 9px 38px;
}
.admin-auth input,
.admin-team input,
.admin-sort select,
.admin-editor input,
.admin-editor textarea {
  padding: 9px 11px;
}
.admin-search input:focus,
.admin-sort select:focus,
.admin-editor select:focus {
  outline: none;
  border-color: rgba(255, 89, 16, 0.64);
  box-shadow: 0 0 0 3px rgba(255, 89, 16, 0.14);
}
.admin-auth {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: var(--s-2);
  align-items: end;
}
.admin-auth input {
  width: auto;
}
.admin-team input {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.admin-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 58px;
  padding: 0 var(--s-4);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}
.admin-stat span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-stat strong {
  color: var(--admin-navy);
  font-size: 16px;
  font-weight: 800;
  text-transform: capitalize;
}
.admin-stat strong[data-tone="high"] { color: var(--admin-red); }
.admin-stat strong[data-tone="medium"] { color: var(--admin-yellow); }
.admin-stat strong[data-tone="low"] { color: var(--admin-green); }
.admin-grid {
  display: grid;
  grid-template-columns: 300px minmax(440px, 1fr) 320px;
  gap: var(--s-4);
  max-width: none;
  margin: 0;
  align-items: start;
  min-width: 0;
}
.admin-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-panel);
  box-shadow: 0 20px 45px -34px rgba(16, 24, 40, 0.38);
}
.admin-panel--list,
.admin-panel--preview {
  position: sticky;
  top: var(--s-4);
}
.admin-panel--list {
  max-height: calc(100vh - var(--s-5) * 2);
  overflow: auto;
}
.admin-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--admin-line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.admin-panel__head--editor {
  align-items: center;
}
.admin-panel h2 {
  color: var(--admin-navy);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.admin-panel p {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
}
.admin-panel__label {
  display: block;
  margin-bottom: 5px;
  color: var(--admin-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-panel__actions {
  display: flex;
  align-items: center;
}
.admin-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-navy);
}
.admin-icon-btn:hover {
  border-color: var(--admin-line-strong);
  background: var(--admin-panel-soft);
}
.admin-icon-btn--sm {
  width: 30px;
  height: 30px;
}
.admin-panel__tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) 0;
}
.admin-panel__tools .btn {
  width: 100%;
}
.admin-composer {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) var(--s-4) 0;
  padding: var(--s-4);
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.admin-composer.is-hidden {
  display: none;
}
.admin-composer__head,
.admin-composer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-3);
}
.admin-composer__head strong {
  display: block;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 850;
}
.admin-composer__head span {
  display: block;
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.35;
}
.admin-composer label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-composer select,
.admin-composer textarea {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  font: 600 12px/1.45 var(--font-body);
  letter-spacing: 0;
}
.admin-composer select {
  min-height: 38px;
  padding: 0 10px;
}
.admin-composer textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px;
}
.admin-composer select:focus,
.admin-composer textarea:focus {
  outline: 2px solid rgba(0, 92, 185, 0.18);
  border-color: rgba(0, 92, 185, 0.55);
}
.admin-composer__actions .btn {
  min-width: 0;
}
.admin-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: var(--s-3) var(--s-4) 0;
  padding: 3px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel-soft);
}
.admin-status-tab {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-status-tab.is-active {
  background: #fff;
  color: var(--admin-navy);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}
.admin-draft-list {
  display: grid;
  gap: 0;
  padding: var(--s-3) 0;
}
.admin-draft {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.admin-draft + .admin-draft {
  border-top: 1px solid var(--admin-line);
}
.admin-draft:hover {
  background: #f8fbff;
  transform: none;
  box-shadow: none;
}
.admin-draft.is-active {
  border-color: var(--admin-orange);
  background: #fff7f2;
  box-shadow: inset 0 0 0 1px rgba(255, 89, 16, 0.2);
}
.admin-draft strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.admin-draft__topline,
.admin-draft__meta,
.admin-draft__quality {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.admin-draft__topline em,
.admin-draft__meta em,
.admin-draft__quality em {
  color: var(--admin-muted);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-draft__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.admin-draft__status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}
.admin-draft__status--draft { background: rgba(255, 89, 16, 0.12); color: var(--admin-orange); }
.admin-draft__status--published { background: rgba(22, 138, 85, 0.12); color: var(--admin-green); }
.admin-draft__status--rejected { background: rgba(199, 54, 54, 0.12); color: var(--admin-red); }
.admin-quality {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}
.admin-quality span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.admin-quality--strong span { background: var(--admin-green); }
.admin-quality--review span { background: var(--admin-yellow); }
.admin-quality--weak span { background: var(--admin-red); }
.admin-risk-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.admin-risk-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-green);
}
.admin-risk-dot--medium::before { background: var(--admin-yellow); }
.admin-risk-dot--high::before { background: var(--admin-red); }
.admin-empty {
  display: grid;
  gap: 6px;
  margin: var(--s-4);
  padding: var(--s-5);
  border: 1px dashed var(--admin-line-strong);
  border-radius: 10px;
  background: var(--admin-panel-soft);
  color: var(--admin-muted);
  font-size: 13px;
}
.admin-empty strong {
  color: var(--admin-navy);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
}
.admin-empty--success {
  border-color: rgba(22, 138, 85, 0.32);
  background: rgba(22, 138, 85, 0.08);
}
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.admin-editor-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--admin-line);
  background: var(--admin-panel-soft);
}
.admin-editor-health span {
  min-height: 42px;
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--admin-line);
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-editor-health span:last-child {
  border-right: 0;
}
.admin-editor-health strong {
  color: var(--admin-navy);
  font-size: 13px;
}
[data-editor-status][data-tone="strong"] { color: var(--admin-green); }
[data-editor-status][data-tone="review"] { color: var(--admin-yellow); }
[data-editor-status][data-tone="weak"] { color: var(--admin-red); }
.admin-editor {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
}
.admin-editor label {
  display: grid;
  gap: 7px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-editor textarea {
  resize: vertical;
  line-height: 1.6;
}
#articleTitle {
  min-height: 44px;
  font-size: 18px;
  font-weight: 800;
}
#articleBody {
  min-height: 380px;
  font-family: var(--font-sans);
}
.admin-image-editor {
  display: grid;
  gap: var(--s-3);
}
.admin-image-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 154px;
  gap: var(--s-3);
  align-items: start;
}
.admin-image-preview,
.admin-preview__image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-navy);
}
.admin-image-preview img,
.admin-preview__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.admin-image-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}
.admin-image-options button {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--admin-panel-soft);
}
.admin-image-options button.is-active {
  border-color: var(--admin-orange);
  box-shadow: 0 0 0 2px rgba(255, 89, 16, 0.14);
}
.admin-image-options img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.admin-photo-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.admin-photo-metadata label:first-child {
  grid-column: 1 / -1;
}
.admin-preview__image figcaption {
  display: grid;
  gap: 4px;
  padding: var(--s-3);
  background: #fff;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
}
.admin-preview__image figcaption small {
  color: var(--admin-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-cover-upload__note {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
}
.admin-editor__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-2);
}
.admin-editor__submit span {
  flex: 1 1 220px;
  color: var(--admin-muted);
  font-size: 12px;
}
.admin-editor__submit .btn {
  flex: 0 1 auto;
}
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--admin-line);
  background: var(--admin-panel-soft);
}
.admin-tab {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--admin-line);
  border-radius: 0;
  background: transparent;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-tab:last-child {
  border-right: 0;
}
.admin-tab.is-active {
  background: #fff;
  color: var(--admin-navy);
  box-shadow: inset 0 -3px 0 var(--admin-orange);
}
.admin-tab-panel {
  padding: var(--s-4);
  max-height: calc(100vh - 168px);
  overflow: auto;
}
.admin-preview {
  display: grid;
  gap: var(--s-4);
}
.admin-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.admin-preview__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--admin-panel-soft);
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-preview h2 {
  color: var(--admin-navy);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0;
}
.admin-preview__dek {
  color: var(--admin-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.admin-preview p {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
}
.admin-preview p + p {
  margin-top: var(--s-2);
}
.admin-source-list,
.admin-risk-list {
  display: grid;
  gap: var(--s-3);
}
.admin-source-list a,
.admin-risk {
  display: grid;
  gap: 6px;
  padding: var(--s-4);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
}
.admin-source-list a:hover {
  border-color: var(--admin-line-strong);
  background: #fbfcfe;
}
.admin-source-list small {
  color: var(--admin-muted);
  overflow-wrap: anywhere;
}
.admin-log {
  display: grid;
  grid-template-columns: 138px 1fr;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  font-size: 13px;
}
.admin-log dt,
.admin-log dd {
  min-height: 42px;
  margin: 0;
  padding: var(--s-3);
  border-bottom: 1px solid var(--admin-line);
}
.admin-log dt {
  background: var(--admin-panel-soft);
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-log pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.admin-risk--high { border-color: rgba(199, 54, 54, 0.4); background: rgba(199, 54, 54, 0.08); }
.admin-risk--medium { border-color: rgba(183, 121, 31, 0.44); background: rgba(183, 121, 31, 0.09); }
.admin-risk--low { border-color: rgba(22, 138, 85, 0.34); background: rgba(22, 138, 85, 0.08); }
@media (max-width: 1320px) {
  .admin-grid {
    grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  }
  .admin-panel--preview {
    grid-column: 1 / -1;
    position: static;
  }
  .admin-tab-panel {
    max-height: none;
  }
}
@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    padding: var(--s-4);
  }
  .admin-nav {
    display: flex;
    justify-content: end;
  }
  .admin-editorial-sidebar-workflow {
    grid-column: 1 / -1;
  }
  .admin-editorial-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-editorial-tabs .admin-status-tab {
    justify-content: center;
  }
  .admin-editorial-primary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-sidebar__foot {
    display: none;
  }
  .admin-topbar,
  .admin-commandbar {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-panel--list {
    position: static;
    max-height: none;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .admin-shell,
  .admin-sidebar,
  .admin-workspace,
  .admin-topbar,
  .admin-commandbar,
  .admin-stats,
  .admin-grid,
  .admin-panel {
    width: 100%;
    max-width: 100vw;
  }
  .admin-topbar p {
    max-width: 32ch;
    overflow-wrap: break-word;
  }
  .admin-workspace {
    padding: var(--s-3);
  }
  .admin-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .admin-nav {
    justify-content: start;
    overflow-x: auto;
  }
  .admin-editorial-tabs,
  .admin-editorial-primary-actions {
    grid-template-columns: 1fr;
  }
  .admin-editorial-tabs .admin-status-tab {
    justify-content: flex-start;
  }
  .admin-commandbar,
  .admin-auth,
  .admin-panel__tools,
  .admin-editor-health,
  .admin-image-grid,
  .admin-photo-metadata,
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-actions,
  .admin-editor__submit {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-actions .btn,
  .admin-editor__submit .btn {
    width: 100%;
  }
  .admin-status-tabs,
  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-log {
    grid-template-columns: 1fr;
  }
  .admin-stat {
    display: grid;
    justify-content: start;
    align-content: center;
    gap: 5px;
    padding: var(--s-3) var(--s-4);
  }
  .admin-stat strong {
    justify-self: start;
  }
}

/* ------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------ */
.footer {
  background: var(--ny-navy-900);
  color: #fff;
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand { max-width: 320px; }
.footer__brand p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; margin-top: var(--s-4); }
.footer h2 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mets-orange-300); font-weight: 700;
  margin-bottom: var(--s-4);
}
.footer ul li { margin-bottom: 0; }
.footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-1) var(--ease-out);
}
.footer ul a:hover { color: #fff; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-6);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: var(--s-3);
}
.footer__bottom a { color: rgba(255,255,255,0.7); }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer {
    padding-top: var(--s-7);
    margin-top: var(--s-7);
  }
}

/* ------------------------------------------------------------------
   12b. Not found
   ------------------------------------------------------------------ */
.not-found-main {
  background: var(--cream-50);
}
.not-found-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4,16,31,0.96), rgba(6,18,43,0.98)),
    var(--ny-navy-900);
  border-bottom: 1px solid var(--border-dark);
}
.not-found-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  pointer-events: none;
}
.not-found-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: var(--s-9);
  min-height: calc(100svh - var(--header-h) - var(--ticker-h));
  padding-block: var(--s-10);
}
.not-found-copy {
  min-width: 0;
}
.not-found-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255,89,16,0.36);
  border-radius: var(--r-2);
  background: rgba(255,89,16,0.12);
  color: var(--mets-orange-300);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.not-found-copy h1 {
  max-width: 10ch;
  margin-top: var(--s-5);
  color: #fff;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: 0;
}
.not-found-lede {
  max-width: 56ch;
  margin-top: var(--s-5);
  color: rgba(255,255,255,0.74);
  font-size: 1.08rem;
  line-height: 1.65;
}
.not-found-path {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 100%;
  margin-top: var(--s-5);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.not-found-path code {
  min-width: 0;
  color: var(--mets-orange-300);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: none;
}
.not-found-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-7);
}
.not-found-actions .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.not-found-actions .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}
.not-found-editorial-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mets-orange-300);
  font-size: 14px;
  font-weight: 800;
}
.not-found-editorial-link:hover {
  color: #fff;
}
.not-found-board {
  display: grid;
  gap: var(--s-5);
  min-width: 0;
  padding: var(--s-6);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: 0 24px 56px -24px rgba(0,0,0,0.62);
}
.not-found-board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}
.not-found-board__top strong {
  color: var(--mets-orange-300);
  text-align: right;
}
.not-found-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.not-found-score div {
  display: grid;
  gap: var(--s-2);
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-2);
  background: rgba(4,16,31,0.42);
}
.not-found-score span {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.not-found-score strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 3.7rem;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}
.not-found-diamond {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.not-found-diamond::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(255,255,255,0.38);
  border-radius: var(--r-2);
  transform: rotate(45deg);
}
.not-found-diamond::after {
  content: "";
  position: absolute;
  right: 27%;
  top: 51%;
  width: 28%;
  height: 2px;
  background: var(--mets-orange-500);
  transform: rotate(-33deg);
  transform-origin: right center;
  box-shadow: 0 0 18px rgba(255,89,16,0.5);
}
.not-found-base,
.not-found-home {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.54);
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  transform: rotate(45deg);
}
.not-found-base--second {
  left: 50%;
  top: 9%;
  margin-left: -12px;
}
.not-found-base--third {
  left: 9%;
  top: 50%;
  margin-top: -12px;
}
.not-found-base--first {
  right: 9%;
  top: 50%;
  margin-top: -12px;
}
.not-found-base.is-hot {
  border-color: var(--mets-orange-500);
  background: var(--mets-orange-500);
  box-shadow: 0 0 0 5px rgba(255,89,16,0.16);
}
.not-found-home {
  left: 50%;
  bottom: 9%;
  margin-left: -12px;
  background: #fff;
}
.not-found-runner {
  position: absolute;
  right: 28%;
  top: 46%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ny-navy-900);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.12);
}
.not-found-call {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-2);
  background: rgba(4,16,31,0.42);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.45;
}
.not-found-call strong {
  color: var(--mets-orange-300);
  white-space: nowrap;
}
.not-found-links {
  background: var(--cream-100);
}
.not-found-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.not-found-links__grid a {
  display: grid;
  gap: var(--s-2);
  min-height: 108px;
  align-content: center;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.not-found-links__grid a:hover {
  border-color: rgba(255,89,16,0.35);
  transform: translateY(-2px);
}
.not-found-links__grid span {
  color: var(--mets-orange-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.not-found-links__grid strong {
  color: var(--ny-navy-800);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 980px) {
  .not-found-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: var(--s-9);
  }
  .not-found-copy h1 {
    max-width: none;
    font-size: 3.6rem;
  }
  .not-found-board {
    max-width: 520px;
  }
  .not-found-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .not-found-hero__inner {
    padding-block: var(--s-6);
    gap: var(--s-5);
  }
  .not-found-copy h1 {
    font-size: clamp(2.35rem, 13vw, 2.75rem);
    line-height: 1.02;
  }
  .not-found-lede {
    font-size: 1rem;
    margin-top: var(--s-4);
  }
  .not-found-path {
    margin-top: var(--s-4);
  }
  .not-found-path,
  .not-found-call {
    align-items: flex-start;
    flex-direction: column;
  }
  .not-found-actions {
    align-items: stretch;
    margin-top: var(--s-5);
  }
  .not-found-actions .btn,
  .not-found-editorial-link {
    justify-content: center;
    width: 100%;
  }
  .not-found-board {
    padding: var(--s-4);
  }
  .not-found-score strong {
    font-size: 2.6rem;
  }
  .not-found-links__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   13. Utility & motion
   ------------------------------------------------------------------ */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.fade-up.is-visible {
  opacity: 1; transform: none;
}

.stagger > * { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.stagger.is-visible > *:nth-child(1)  { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2)  { transition-delay: 60ms; }
.stagger.is-visible > *:nth-child(3)  { transition-delay: 120ms; }
.stagger.is-visible > *:nth-child(4)  { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(5)  { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(6)  { transition-delay: 300ms; }
.stagger.is-visible > *:nth-child(7)  { transition-delay: 360ms; }
.stagger.is-visible > *:nth-child(8)  { transition-delay: 420ms; }
.stagger.is-visible > * { opacity: 1; transform: none; }

.divider {
  height: 1px; background: var(--border);
  margin: var(--s-9) 0;
}
.divider--dark { background: var(--border-dark); }

.is-hidden { display: none !important; }
[hidden] { display: none !important; }

.text-muted { color: var(--fg-muted); }
.text-faint { color: var(--fg-faint); }
.text-orange { color: var(--mets-orange-text); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mets-orange-text);
}
.eyebrow--light { color: var(--mets-orange-300); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  color: var(--fg-muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.badge--live { background: rgba(225,29,72,0.12); color: var(--live); }
.badge--win { background: rgba(31,166,106,0.12); color: var(--success); }
.badge--loss { background: rgba(224,74,74,0.12); color: var(--danger); }
.badge--orange { background: rgba(255,89,16,0.12); color: var(--mets-orange-text); }
.badge--dark { background: var(--ny-navy-800); color: #fff; }

.skip-link {
  position: absolute; left: -9999px;
  top: 0; z-index: 100;
  background: var(--ny-navy-800); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--r-2) 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up, .stagger > * { opacity: 1; transform: none; }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 0%, var(--ink-50) 50%, var(--ink-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--r-2);
}
.empty-state {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6);
  color: var(--fg-muted);
  background: rgba(255,255,255,0.62);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-3);
}
.empty-state strong {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.empty-state span {
  font-size: 14px;
  line-height: 1.5;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Admin editorial automation dashboard */
.admin-editorial-page-brief,
.admin-editorial-jobs {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  box-shadow: 0 14px 36px -28px rgba(6, 18, 43, 0.55);
}

.admin-editorial-page-brief__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-editorial-page-brief__copy h2 {
  margin: 0;
  color: var(--admin-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.admin-editorial-page-brief__copy p {
  max-width: 68ch;
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-editorial-primary-actions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-editorial-primary-actions .btn {
  justify-content: center;
  width: 100%;
}

.admin-editorial-primary-actions[hidden],
.admin-editorial-primary-actions [hidden] {
  display: none;
}

.admin-editorial-status {
  justify-self: end;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
}

.admin-editorial-status[data-tone="error"] {
  color: var(--admin-red);
}

.admin-editorial-progress {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid rgba(194, 65, 12, 0.24);
  border-radius: 8px;
  background: #fff7ed;
}

.admin-editorial-progress[hidden] {
  display: none;
}

.admin-editorial-progress__copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  min-width: 0;
}

.admin-editorial-progress__copy strong {
  min-width: 0;
  color: var(--admin-navy);
  font-size: 13px;
  font-weight: 900;
}

.admin-editorial-progress__copy span {
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.admin-editorial-progress__stage {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(194, 65, 12, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-editorial-progress__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.admin-editorial-progress__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: #c2410c;
  transition: width 260ms ease;
}

.admin-editorial-progress__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-editorial-progress__step {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--admin-muted);
}

.admin-editorial-progress__step strong {
  color: var(--admin-navy);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.admin-editorial-progress__step span {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.3;
}

.admin-editorial-progress__step.is-active {
  border-color: rgba(194, 65, 12, 0.38);
  background: #ffffff;
  box-shadow: 0 10px 20px -18px rgba(154, 52, 18, 0.55);
}

.admin-editorial-progress__step.is-active strong {
  color: #9a3412;
}

.admin-editorial-progress__step.is-complete {
  border-color: rgba(31, 166, 106, 0.22);
  background: rgba(240, 253, 244, 0.72);
}

.admin-editorial-progress__step.is-complete strong {
  color: #166534;
}

.admin-editorial-tabs a {
  text-decoration: none;
}

.admin-editorial-summary {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.admin-editorial-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
}

.admin-editorial-tabs .admin-status-tab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding-inline: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.admin-editorial-tabs .admin-status-tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--admin-orange);
}

.admin-stat--wide {
  grid-column: span 2;
}

.admin-readiness {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
}

.admin-readiness__panel {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  box-shadow: 0 14px 36px -30px rgba(6, 18, 43, 0.5);
}

.admin-readiness__panel--wide {
  grid-column: span 2;
}

.admin-readiness__panel > strong {
  color: var(--admin-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.admin-readiness__score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  min-width: 0;
}

.admin-readiness__score strong {
  color: var(--admin-green);
  font-size: 30px;
  font-weight: 900;
  line-height: 0.95;
}

.admin-readiness__score span {
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.admin-readiness__score[data-tone="watch"] strong,
.admin-readiness__score[data-tone="attention"] strong {
  color: var(--admin-yellow);
}

.admin-readiness__score[data-tone="blocked"] strong {
  color: var(--admin-red);
}

.admin-readiness__list,
.admin-readiness__chips,
.admin-readiness-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-readiness__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-readiness__list span {
  min-width: 0;
}

.admin-readiness__list b,
.admin-readiness-summary strong,
.admin-readiness-mini {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-readiness__list b,
.admin-readiness-summary strong {
  padding: 6px 8px;
  background: #dcfce7;
  color: var(--admin-green);
}

.admin-readiness__list b[data-tone="high"],
.admin-readiness__list b[data-tone="blocked"] {
  background: #fee2e2;
  color: var(--admin-red);
}

.admin-readiness__list b[data-tone="medium"],
.admin-readiness__list b[data-tone="watch"] {
  background: #fef3c7;
  color: var(--admin-yellow);
}

.admin-readiness__chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-readiness__chips li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.admin-readiness__chips li[data-tone="attention"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.admin-readiness__chips strong {
  min-width: 0;
  color: var(--admin-navy);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-readiness__chips span,
.admin-readiness__muted,
.admin-readiness__empty {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.admin-readiness-mini {
  margin-top: 8px;
  padding: 6px 8px;
  background: #dcfce7;
  color: var(--admin-green);
}

.admin-readiness-mini[data-tone="watch"] {
  background: #fef3c7;
  color: var(--admin-yellow);
}

.admin-readiness-mini[data-tone="blocked"] {
  background: #fee2e2;
  color: var(--admin-red);
}

.admin-readiness-summary {
  display: grid;
  gap: 8px;
}

.admin-readiness-summary ul {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-run-history__panel {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  box-shadow: 0 14px 36px -30px rgba(6, 18, 43, 0.5);
}

.admin-run-history__table {
  display: grid;
  overflow-x: auto;
}

.admin-run-history__row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: var(--s-3);
  align-items: center;
  min-width: 760px;
  padding: 10px 0;
  border-top: 1px solid var(--admin-line);
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-run-history__row--head {
  border-top: 0;
  color: var(--admin-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-run-history__row b {
  display: inline-flex;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.admin-run-history__row b[data-tone="medium"] {
  background: #fef3c7;
  color: var(--admin-yellow);
}

.admin-run-history__row b[data-tone="high"] {
  background: #fee2e2;
  color: var(--admin-red);
}

.admin-run-history__empty {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.admin-cover-preview {
  display: grid;
  gap: var(--s-3);
}

.admin-cover-preview__card,
.admin-cover-preview__empty {
  display: grid;
  gap: var(--s-3);
}

.admin-cover-preview__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-cover-preview__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cover-preview__body {
  display: grid;
  gap: var(--s-3);
}

.admin-cover-preview__body h3,
.admin-cover-preview__empty strong {
  margin: 0;
  color: var(--admin-navy);
  font-size: 16px;
  line-height: 1.2;
}

.admin-cover-preview__body p,
.admin-cover-preview__empty span {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-cover-preview__meta {
  margin: 0;
}

.admin-grid--editorial {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr) minmax(320px, 0.9fr);
}

.admin-editorial-records .admin-draft {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2);
}

.admin-editorial-selection {
  display: block;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.admin-editorial-check {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-top: 4px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-editorial-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-orange);
}

.admin-editorial-record-button {
  display: grid;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.admin-editorial-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-editorial-form label:has(textarea[name="Draft Markdown"]),
.admin-editorial-form label:has(textarea[name="Automation Notes"]),
.admin-editorial-form .admin-editor__submit {
  grid-column: 1 / -1;
}

.admin-editorial-form textarea[name="Draft Markdown"] {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-editorial-preview {
  display: grid;
  gap: var(--s-3);
}

.admin-editorial-markdown {
  display: grid;
  gap: var(--s-3);
}

.admin-editorial-markdown h2 {
  margin-top: var(--s-2);
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0;
}

.admin-editorial-markdown ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--admin-muted);
  line-height: 1.65;
}

.admin-live-articles {
  margin-bottom: var(--s-4);
}

.admin-live-articles[hidden] {
  display: none;
}

.admin-live-articles__panel {
  display: grid;
  gap: var(--s-3);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-panel);
  padding: var(--s-4);
}

.admin-live-articles__list {
  display: grid;
  gap: var(--s-2);
}

.admin-live-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: var(--s-3);
}

.admin-live-article div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-live-article strong,
.admin-live-article span,
.admin-live-article a {
  overflow-wrap: anywhere;
}

.admin-live-article span {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-live-article a {
  color: var(--admin-orange);
  font-size: 12px;
  font-weight: 800;
}

.admin-live-articles__empty {
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-sort select[name="Category"],
.admin-editor select[name="Category"] {
  min-height: 42px;
}

@media (max-width: 1180px) {
  .admin-editorial-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid--editorial {
    grid-template-columns: 1fr;
  }

  .admin-panel--preview {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .admin-editorial-page-brief,
  .admin-editorial-jobs,
  .admin-editorial-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-editorial-primary-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .admin-editorial-primary-actions .btn {
    width: 100%;
  }

  .admin-editorial-tabs .admin-status-tab {
    min-height: 40px;
  }

  .admin-editorial-status {
    justify-self: start;
    text-align: left;
  }

  .admin-editorial-progress__copy {
    display: grid;
  }

  .admin-editorial-progress__copy span {
    text-align: left;
  }

  .admin-editorial-summary,
  .admin-readiness,
  .admin-editorial-form {
    grid-template-columns: 1fr;
  }

  .admin-readiness__panel--wide {
    grid-column: auto;
  }

  .admin-live-article {
    grid-template-columns: 1fr;
  }

  .admin-stat--wide {
    grid-column: auto;
  }
}

/* Admin editorial ops redesign */
body[data-page="admin-editorial"] {
  background: #eef2f6;
}

body[data-page="admin-editorial"] .admin-shell--ops {
  --admin-bg: #eef2f6;
  --admin-panel: #ffffff;
  --admin-panel-soft: #f6f8fb;
  --admin-line: #d7dee8;
  --admin-line-strong: #b8c3d1;
  --admin-border: #d7dee8;
  --admin-text: #101624;
  --admin-muted: #5f6b7c;
  --admin-faint: #96a1af;
  --admin-navy: #06111f;
  --admin-navy-2: #0b1a2e;
  --admin-orange: #c64f14;
  --admin-green: #168a55;
  --admin-yellow: #b76d11;
  --admin-red: #bd3232;
  --admin-rail-bg: #07111f;
  grid-template-columns: 224px minmax(0, 1fr);
  background:
    linear-gradient(90deg, var(--admin-rail-bg) 0 224px, var(--admin-bg) 224px 100%);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops,
body[data-page="admin-editorial"] .admin-shell--ops * {
  box-sizing: border-box;
}

body[data-page="admin-editorial"] .admin-shell--ops .btn {
  min-height: 36px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .btn--primary {
  border-color: #b6420f;
  background: linear-gradient(180deg, #df641e 0%, #bd4210 100%);
  box-shadow: 0 10px 24px -18px rgba(198, 79, 20, 0.88);
}

body[data-page="admin-editorial"] .admin-shell--ops .btn--ghost {
  border-color: #cad3df;
  background: #ffffff;
  color: #172033;
}

body[data-page="admin-editorial"] .admin-shell--ops .btn--ghost:hover {
  border-color: #aeb9c8;
  background: #f8fafc;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar {
  gap: 16px;
  padding: 18px 12px;
  background:
    linear-gradient(180deg, rgba(198, 79, 20, 0.16), rgba(198, 79, 20, 0) 210px),
    linear-gradient(180deg, #101625 0%, #07111f 54%, #050d18 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-brand {
  gap: 10px;
  min-height: 40px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-brand__mark {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 18px;
  box-shadow: 0 14px 28px -18px rgba(224, 95, 29, 0.9);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.08em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-nav,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-sidebar-workflow,
body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__analytics,
body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics {
  display: grid;
  gap: 8px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-nav__item,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-tabs .admin-status-tab {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(239, 245, 255, 0.74);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-nav__item.is-active,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-tabs .admin-status-tab.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--admin-orange);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-nav__item.is-muted {
  opacity: 0.82;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__eyebrow {
  color: rgba(239, 245, 255, 0.5);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-primary-actions {
  gap: 7px;
  padding-top: 2px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-primary-actions .btn {
  justify-content: flex-start;
  min-height: 34px;
  width: 100%;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics {
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dt,
body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dt {
  color: rgba(239, 245, 255, 0.72);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dd {
  color: #ffffff;
  font-weight: 850;
  text-align: right;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dd[data-empty="false"]:nth-of-type(1) {
  color: #ffb284;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__foot {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-workspace {
  padding: 18px 18px 24px;
  overflow: visible;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 0.9fr);
  align-items: center;
  gap: 16px;
  margin: -18px -18px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #07111f;
  box-shadow: 0 14px 30px -28px rgba(5, 13, 24, 0.9);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar h1 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar p {
  max-width: none;
  margin-top: 5px;
  color: rgba(239, 245, 255, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar {
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-search .admin-icon {
  bottom: 9px;
  color: #8c98aa;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-search input {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  background: #0d192b;
  color: #f8fafc;
  font-size: 12px;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-search input::placeholder {
  color: rgba(239, 245, 255, 0.56);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar .btn--ghost,
body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar__source {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d192b;
  color: #eff5ff;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar__source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-page-brief {
  grid-template-columns: minmax(220px, 0.85fr) auto;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-page-brief__copy h2 {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-page-brief__copy p,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-status {
  font-size: 12px;
  line-height: 1.35;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress {
  gap: 9px;
  padding: 10px;
  border-color: rgba(198, 79, 20, 0.22);
  border-radius: 7px;
  background: #fff8f3;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress__copy strong,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress__copy span {
  font-size: 12px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress__bar {
  height: 6px;
  background: #dbe5f1;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress__steps {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-progress__step {
  min-height: 68px;
  padding: 8px;
  border-radius: 7px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-stat {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-stat span {
  font-size: 10px;
  letter-spacing: 0.08em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-stat strong {
  font-size: 15px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-grid--editorial {
  grid-template-columns: minmax(300px, 0.74fr) minmax(520px, 1.3fr) minmax(360px, 0.92fr);
  gap: 10px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel {
  border-radius: 8px;
  box-shadow: 0 16px 38px -32px rgba(15, 23, 42, 0.48);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel--list,
body[data-page="admin-editorial"] .admin-shell--ops .admin-panel--preview {
  top: 78px;
  max-height: calc(100vh - 94px);
  overflow: auto;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel__head {
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  background: #ffffff;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel__head--editor {
  align-items: flex-start;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel h2 {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel p {
  font-size: 12px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel__label {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-panel__tools {
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--admin-line);
  background: #fbfcfe;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft-list {
  padding: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-records .admin-draft {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
  padding: 12px 14px;
  border-left-width: 3px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft.is-active {
  background: #fff9f5;
  box-shadow: inset 0 0 0 1px rgba(198, 79, 20, 0.2);
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__meta,
body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__quality {
  gap: 5px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__meta em,
body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__quality em {
  font-size: 10px;
  letter-spacing: 0.04em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__quality em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-draft__status,
body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness-mini {
  min-height: 21px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-check {
  padding-top: 3px;
  font-size: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-check span {
  display: none;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-actions {
  gap: 7px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-actions .btn {
  min-height: 34px;
  padding-inline: 11px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editor {
  gap: 12px;
  padding: 14px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editor label {
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-search input,
body[data-page="admin-editorial"] .admin-shell--ops .admin-sort select,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editor input,
body[data-page="admin-editorial"] .admin-shell--ops .admin-editor textarea {
  min-height: 36px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editor textarea {
  min-height: 78px;
  line-height: 1.5;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-form textarea[name="Draft Markdown"] {
  min-height: 320px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-editor__submit {
  padding-top: 4px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-tabs {
  background: #f7f9fc;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-tab {
  min-height: 44px;
  font-size: 11px;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-tab-panel {
  max-height: none;
  padding: 14px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-preview h2 {
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-preview__dek,
body[data-page="admin-editorial"] .admin-shell--ops .admin-preview p {
  font-size: 14px;
  line-height: 1.6;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-cover-preview__frame,
body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness__panel,
body[data-page="admin-editorial"] .admin-shell--ops .admin-run-history__panel,
body[data-page="admin-editorial"] .admin-shell--ops .admin-live-articles__panel,
body[data-page="admin-editorial"] .admin-shell--ops .admin-live-article {
  border-radius: 8px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness__panel {
  padding: 12px;
  box-shadow: none;
}

body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness__panel > strong,
body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness__score strong {
  font-size: 22px;
}

@media (max-width: 1320px) {
  body[data-page="admin-editorial"] .admin-shell--ops .admin-grid--editorial {
    grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-panel--preview {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }
}

@media (max-width: 1080px) {
  body[data-page="admin-editorial"] .admin-shell--ops {
    grid-template-columns: 1fr;
    background: var(--admin-bg);
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar {
    position: static;
    height: auto;
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-sidebar-workflow,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics {
    grid-column: 1 / -1;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__analytics,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__foot {
    display: none;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dl {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics div {
    display: grid;
    gap: 3px;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dd {
    text-align: left;
  }
}

@media (max-width: 860px) {
  body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-page-brief,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-grid--editorial,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-form,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-readiness {
    grid-template-columns: 1fr;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar {
    position: static;
    margin: -18px -18px 12px;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar__source,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-commandbar .btn {
    width: 100%;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-tabs,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dl,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-page="admin-editorial"] .admin-shell--ops .admin-workspace {
    padding: 12px;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-topbar {
    margin: -12px -12px 10px;
    padding: 12px;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar {
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-nav {
    justify-content: stretch;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-nav__item {
    width: 100%;
  }

  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-tabs,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-sidebar__metrics dl,
  body[data-page="admin-editorial"] .admin-shell--ops .admin-editorial-summary {
    grid-template-columns: 1fr;
  }
}

/* Editorial desk v2: simple Ideas -> Drafts -> Published workflow */
body[data-page="admin-editorial"] .admin-shell--editorial-v2 {
  grid-template-columns: 212px minmax(0, 1fr);
  background:
    linear-gradient(90deg, var(--admin-rail-bg) 0 212px, var(--admin-bg) 212px 100%);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 [hidden] {
  display: none !important;
}

.admin-photo-model-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(15, 40, 72, 0.18);
  border-radius: 20px;
  color: var(--ink, #10243e);
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 24, 45, 0.28);
}

.admin-photo-model-dialog::backdrop {
  background: rgba(4, 18, 35, 0.58);
  backdrop-filter: blur(4px);
}

.admin-photo-model-dialog form {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.admin-photo-model-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-photo-model-dialog__head h2 {
  margin: 4px 0 6px;
  font: 600 clamp(1.45rem, 4vw, 2rem)/1.1 "Fraunces", Georgia, serif;
}

.admin-photo-model-dialog__head p,
.admin-photo-model-dialog__note {
  margin: 0;
  color: #5b6878;
  line-height: 1.5;
}

.admin-photo-model-dialog__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #31445c;
  background: #eef3f8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.admin-photo-model-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-photo-model-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
}

.admin-photo-model-option:has(input:checked) {
  border-color: #ff5910;
  background: #fff7f1;
  box-shadow: 0 0 0 2px rgba(255, 89, 16, 0.12);
}

.admin-photo-model-option.is-unavailable {
  opacity: 0.56;
  cursor: not-allowed;
}

.admin-photo-model-option input {
  width: 18px;
  height: 18px;
  accent-color: #ff5910;
}

.admin-photo-model-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-photo-model-option strong {
  font-size: 0.96rem;
}

.admin-photo-model-option small,
.admin-photo-model-option code,
.admin-photo-model-option em {
  color: #677587;
  font-size: 0.76rem;
  font-style: normal;
}

.admin-photo-model-option code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-photo-model-option em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf0f6;
  white-space: nowrap;
}

.admin-photo-model-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-photo-reference-step {
  display: grid;
  gap: 14px;
}

.admin-photo-reference-step[hidden] {
  display: none;
}

.admin-photo-reference-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-photo-reference-step__head > div,
.admin-photo-reference-option span,
.admin-photo-reference-empty {
  display: grid;
  gap: 4px;
}

.admin-photo-reference-step__head span,
.admin-photo-reference-option small,
.admin-photo-reference-status,
.admin-photo-reference-empty span {
  color: #677587;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-photo-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: min(54vh, 520px);
  overflow-y: auto;
  padding: 2px;
}

.admin-photo-reference-option {
  display: grid;
  grid-template-rows: 150px auto;
  overflow: hidden;
  position: relative;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
}

.admin-photo-reference-option:has(input:checked) {
  border-color: #ff5910;
  background: #fff7f1;
  box-shadow: 0 0 0 2px rgba(255, 89, 16, 0.14);
}

.admin-photo-reference-option input {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: #ff5910;
  z-index: 1;
}

.admin-photo-reference-option img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #eaf0f6;
}

.admin-photo-reference-option span {
  min-width: 0;
  padding: 12px;
}

.admin-photo-reference-option strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.87rem;
  line-height: 1.3;
}

.admin-photo-reference-option a {
  color: #b23b05;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-photo-reference-empty {
  grid-column: 1 / -1;
  min-height: 170px;
  place-content: center;
  padding: 24px;
  border: 1px dashed #c8d4e1;
  border-radius: 14px;
  text-align: center;
  background: #f7f9fc;
}

.admin-photo-reference-status {
  min-height: 1.2em;
  margin: 0;
}

@media (max-width: 560px) {
  .admin-photo-model-dialog form {
    padding: 20px;
  }

  .admin-photo-model-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-photo-model-option em {
    grid-column: 2;
    justify-self: start;
  }

  .admin-photo-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-photo-reference-option {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .admin-photo-reference-option img {
    height: 120px;
  }

  .admin-photo-reference-step__head,
  .admin-photo-model-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-sidebar {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px 12px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-sidebar-workflow {
  align-content: start;
  gap: 12px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs {
  gap: 6px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs .admin-status-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs .admin-status-tab::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 850;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-status-tab:nth-child(1)::before { content: "1"; }
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-status-tab:nth-child(2)::before { content: "2"; }
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-status-tab:nth-child(3)::before { content: "3"; }

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs .admin-status-tab.is-active::before {
  border-color: var(--admin-orange);
  background: var(--admin-orange);
  color: #ffffff;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs .admin-status-tab[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.58;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-workspace {
  max-width: 1900px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-topbar {
  grid-template-columns: minmax(260px, 1fr) minmax(500px, 0.9fr);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-commandbar {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief {
  grid-template-columns: minmax(320px, 1fr) minmax(230px, auto);
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-left: 3px solid var(--admin-orange);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief__actions .btn {
  flex: 0 0 auto;
  min-width: 138px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-status {
  max-width: 280px;
  color: var(--admin-muted);
  text-align: right;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-status[data-tone="success"] {
  color: var(--admin-green);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-status[data-tone="pending"] {
  color: var(--admin-yellow);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-line);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch__head strong {
  color: var(--admin-navy);
  font-size: 13px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch__head span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 750;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: #f8fafc;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li > span {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li > strong {
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li > small {
  grid-column: 1 / -1;
  color: var(--admin-red);
  font-size: 10px;
  line-height: 1.35;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="running"] {
  border-color: rgba(198, 79, 20, 0.34);
  background: #fff8f3;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="running"] > strong {
  color: var(--admin-orange);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="complete"] {
  border-color: rgba(22, 138, 85, 0.24);
  background: #f0fdf4;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="complete"] > strong {
  color: var(--admin-green);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="failed"] {
  border-color: rgba(189, 50, 50, 0.24);
  background: #fff5f5;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch li[data-state="failed"] > strong {
  color: var(--admin-red);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-grid {
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-list {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-list .admin-panel__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 74px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-selection-tools {
  display: grid;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
  background: #f8fafc;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--admin-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-select-all input,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--admin-orange);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .btn--danger {
  border: 1px solid #e8b6b6;
  background: #ffffff;
  color: #a62929;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .btn--danger:hover {
  border-color: #d98484;
  background: #fff5f5;
  color: #8d2020;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-records {
  padding: 0;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 106px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--admin-line);
  border-left: 3px solid transparent;
  background: #ffffff;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record:last-child {
  border-bottom: 0;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record:hover {
  background: #f9fbfd;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record.is-active {
  border-left-color: var(--admin-orange);
  background: #fff8f3;
  box-shadow: inset 0 0 0 1px rgba(198, 79, 20, 0.14);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-check {
  align-self: start;
  padding-top: 2px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-record-button:disabled {
  cursor: wait;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-record-button .admin-draft__topline {
  align-items: flex-start;
  gap: 8px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-record-button strong {
  font-size: 13px;
  line-height: 1.35;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-record-button .admin-draft__quality {
  margin-top: 7px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-record-button .admin-draft__quality em {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record__date {
  display: block;
  margin-top: 7px;
  color: var(--admin-faint);
  font-size: 10px;
  font-weight: 700;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-workarea {
  display: grid;
  grid-template-columns: minmax(470px, 1.2fr) minmax(310px, 0.8fr);
  gap: 12px;
  align-items: start;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-panel {
  animation: admin-editorial-v2-enter 180ms ease-out both;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-panel__head--editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, auto);
  align-items: start;
  gap: 12px;
  min-height: 82px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record-actions .btn {
  width: auto;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record-actions a[aria-disabled="true"] {
  border-color: var(--admin-line);
  background: #eef2f7;
  color: var(--admin-faint);
  box-shadow: none;
  pointer-events: none;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 16px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form label {
  align-content: start;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form input:focus,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form textarea:focus,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-search input:focus,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-sort select:focus {
  border-color: var(--admin-orange);
  outline: 3px solid rgba(198, 79, 20, 0.15);
  outline-offset: 0;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form__draft,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form__note {
  grid-column: 1 / -1;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form textarea[name="Draft Markdown"] {
  min-height: 390px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form__note {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--admin-line);
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview .admin-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview .admin-tab {
  position: relative;
  transition: color 150ms ease, background-color 150ms ease;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview .admin-tab::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--admin-orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 150ms ease, transform 150ms ease;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview .admin-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview .admin-tab-panel {
  padding: 16px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-preview h2 {
  overflow-wrap: anywhere;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-empty {
  min-height: 150px;
  padding: 24px 18px;
  place-content: center;
  text-align: center;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-empty .btn {
  justify-self: center;
  margin-top: 4px;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__empty {
  min-height: 210px;
  place-content: center;
  justify-items: start;
  padding: 20px;
  border: 1px dashed var(--admin-line-strong);
  border-radius: 8px;
  background: #f8fafc;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__body .btn {
  justify-self: start;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__versionbar,
body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__cycler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-navy);
  font-size: 12px;
  font-weight: 800;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__cycler button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--admin-line-strong);
  border-radius: 999px;
  color: var(--admin-navy);
  background: #fff;
  cursor: pointer;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__cycler button:hover:not(:disabled) {
  border-color: var(--admin-orange);
  color: var(--admin-orange-dark);
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__cycler button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__selection {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--admin-muted);
  background: #eef2f6;
  font-size: 11px;
  font-weight: 800;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-cover-preview__selection.is-selected {
  color: #17623b;
  background: #dcf6e7;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 .btn[aria-busy="true"]::before {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: admin-editorial-v2-spin 650ms linear infinite;
}

body[data-page="admin-editorial"] .admin-shell--editorial-v2 :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(198, 79, 20, 0.34);
  outline-offset: 2px;
}

@keyframes admin-editorial-v2-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes admin-editorial-v2-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1440px) {
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-workarea {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-preview {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1080px) {
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 {
    grid-template-columns: minmax(0, 1fr);
    background: var(--admin-bg);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-sidebar {
    position: static;
    grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    align-items: center;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-brand {
    border-bottom: 0;
    padding-bottom: 0;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-sidebar-workflow {
    grid-column: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-sidebar__foot {
    display: none;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-topbar {
    grid-template-columns: minmax(230px, 1fr) minmax(440px, 1.25fr);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-grid {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-topbar,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-commandbar,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-grid,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-panel__head--editor {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-topbar {
    position: static;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief__actions {
    justify-content: space-between;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-status {
    max-width: none;
    text-align: left;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-list {
    position: static;
    max-height: none;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form__draft,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-form__note {
    grid-column: auto;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-workspace {
    padding: 12px;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-topbar {
    width: auto;
    max-width: none;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-sidebar-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-tabs .admin-status-tab {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 56px;
    padding: 7px 4px;
    text-align: center;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief__actions,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-batch__head {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-brief__actions .btn {
    width: 100%;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-selection-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-editorial-v2-record-actions .btn {
    flex: 1 1 calc(50% - 7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .admin-panel,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 .btn[aria-busy="true"]::before {
    animation: none;
  }

  body[data-page="admin-editorial"] .admin-shell--editorial-v2 *,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 *::before,
  body[data-page="admin-editorial"] .admin-shell--editorial-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body[data-page="admin-editorial"] .admin-editorial-generation-options {
  grid-column: 1 / -1;
  border-top: 1px solid var(--admin-line, rgba(255, 255, 255, 0.12));
  padding-top: 12px;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options summary {
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options__grid label {
  display: grid;
  gap: 5px;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 700;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options__grid input,
body[data-page="admin-editorial"] .admin-editorial-generation-options__grid select,
body[data-page="admin-editorial"] .admin-editorial-generation-options__grid textarea {
  min-width: 0;
  border: 1px solid var(--admin-line, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 8px 10px;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options__wide {
  grid-column: span 2;
}

body[data-page="admin-editorial"] .admin-editorial-generation-options__grid .admin-editorial-checkline {
  align-items: center;
  display: flex;
  gap: 8px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 108, 34, 0.35);
  border-radius: 12px;
  background: rgba(255, 108, 34, 0.07);
  padding: 14px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job__head,
body[data-page="admin-editorial"] .admin-editorial-idea-job__actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job__head div {
  display: grid;
  gap: 2px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job__head span,
body[data-page="admin-editorial"] .admin-editorial-idea-job > p {
  color: var(--fg-muted);
  font-size: 12px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job progress {
  width: 100%;
  margin: 12px 0;
  accent-color: var(--orange, #ff6c22);
}

body[data-page="admin-editorial"] .admin-editorial-idea-job dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job dl div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job dt {
  color: var(--fg-muted);
  font-size: 10px;
  text-transform: uppercase;
}

body[data-page="admin-editorial"] .admin-editorial-idea-job dd {
  margin: 2px 0 0;
  font-weight: 800;
}

@media (max-width: 800px) {
  body[data-page="admin-editorial"] .admin-editorial-generation-options__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body[data-page="admin-editorial"] .admin-editorial-generation-options__grid,
  body[data-page="admin-editorial"] .admin-editorial-idea-job dl {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin-editorial"] .admin-editorial-generation-options__wide {
    grid-column: auto;
  }
}

/* ------------------------------------------------------------------
   14. Print
   ------------------------------------------------------------------ */
@media print {
  .header, .footer, .topbar, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* immutable-asset:e7c795fc9efa */
