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

  :root {
    /* Fello brand system, captured from felix-theme (fello.ai production CSS) */
    --font-sans: 'Instrument Sans', sans-serif;
    --gold: #FF725C;         /* brand-salmon — primary accent */
    --gold-light: #FF9F8F;   /* lighter salmon tint */
    --ink: #093555;          /* brand-navy — dark surfaces / headings */
    --paper: #FEFBF9;        /* bg-page */
    --warm-white: #FFFFFF;
    --rule: #E8E8E8;         /* gray-stroke */
    --muted: #7F7F7F;        /* gray-6 */
    --body-text: #353E5A;    /* text-primary */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
  }

  /* ── PRIMARY NAV ── */
  .primary-nav {
    position: sticky;
    top: 0;
    z-index: 110;
    background: var(--ink);
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
  }

  .primary-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .primary-logo {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 900;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
  }

  .primary-logo em { font-style: italic; color: var(--gold); }

  .primary-tabs { display: flex; gap: 6px; }

  .primary-tab {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 16px;
    border: 0.5px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
  }

  .primary-tab:hover { border-color: var(--gold); color: var(--gold); }

  .primary-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    font-weight: 700;
  }

  /* ── MONTH SELECTOR ── */
  .month-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .month-nav-label {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
  }

  .month-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  .month-tab {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 0.5px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
  }

  .month-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  .month-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    font-weight: 700;
  }

  .month-tab.empty {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
  }

  /* ── EDITION PANEL ── */
  .edition { display: none; }
  .edition.active { display: block; }

  /* ── MASTHEAD ── */
  .masthead { background: var(--ink); }

  .masthead-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
  }

  .masthead-vol {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
  }

  .masthead-hero {
    padding: 28px 40px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 32px;
  }

  .masthead-compact .masthead-hero { padding: 18px 40px 16px; align-items: center; }

  .nameplate-gtm {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--gold);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
  }

  .nameplate-main {
    font-family: var(--font-sans);
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    line-height: 0.85;
    letter-spacing: -0.02em;
  }

  .nameplate-main span {
    color: #fff;
    font-style: normal;
  }

  .hero-right { text-align: right; padding-bottom: 4px; }

  .hero-kicker {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .hero-hl {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 300px;
    margin-left: auto;
  }

  .hero-deck {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-top: 8px;
    max-width: 280px;
    margin-left: auto;
  }

  /* ── IMPACT BAR ── */
  .impact-bar {
    background: var(--ink);
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding: 18px 40px;
  }

  .impact-bar-label {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
  }

  .impact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }

  .impact-cell {
    padding: 0 20px 0 0;
    border-right: 0.5px solid rgba(255,255,255,0.1);
  }

  .impact-cell:last-child { border-right: none; }
  .impact-cell + .impact-cell { padding-left: 20px; }

  .imp-num {
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
  }

  .imp-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
    line-height: 1.3;
  }

  .imp-delta {
    font-size: 10px;
    color: var(--gold);
    margin-top: 3px;
    font-weight: 500;
  }

  /* ── TICKER ── */
  .ticker {
    background: var(--gold);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
  }

  .ticker-track {
    display: flex;
    gap: 28px;
    width: max-content;
    will-change: transform;
  }

  .ticker-item {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }

  .ticker-num { font-weight: 700; }
  .ticker-sep { color: rgba(26,26,24,0.35); }

  /* ── BODY ── */
  .body { padding: 28px 40px 0; max-width: 1200px; margin: 0 auto; }

  /* ── SPOTLIGHT ── */
  .spotlight {
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .spotlight-main {
    padding: 28px;
    grid-column: span 2;
    border-right: 0.5px solid var(--rule);
  }

  .spotlight-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .spotlight-tag {
    background: var(--ink);
    padding: 4px 12px;
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
  }

  .spotlight-team {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .spotlight-headline {
    font-family: var(--font-sans);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 12px;
  }

  .spotlight-headline em { color: var(--gold); font-style: italic; }

  .spotlight-deck {
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 560px;
  }

  .spotlight-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border-top: 0.5px solid var(--rule);
  }

  .sp-stat { background: var(--warm-white); padding: 16px 18px; }

  .sp-num {
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
  }

  .sp-label {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .sp-sub {
    font-size: 10px;
    color: var(--gold);
    font-weight: 500;
    margin-top: 3px;
  }

  .spotlight-geo { background: var(--ink); padding: 24px; }

  .sf-flag {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
  }

  .sf-headline {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .sf-stat-row { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }

  .sf-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
  }

  .sf-stat:last-child { border-bottom: none; }

  .sf-num {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    min-width: 44px;
  }

  .sf-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; }
  .sf-note { font-size: 10px; color: rgba(255,255,255,0.25); line-height: 1.6; }

  /* ── SECTION RULE ── */
  .section-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-rule-line { flex: 1; height: 0.5px; background: var(--rule); }

  .section-rule-label {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── THREE COL ── */
  .three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: var(--rule);
    border: 0.5px solid var(--rule);
    margin-bottom: 24px;
  }

  .col-story { background: var(--warm-white); padding: 22px; }
  .col-story + .col-story { border-left: 0.5px solid var(--rule); }

  .story-byline {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .story-flag {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid var(--rule);
    padding-top: 5px;
    margin-bottom: 7px;
    display: inline-block;
  }

  .story-headline {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 9px;
  }

  .story-body { font-size: 12px; color: var(--body-text); line-height: 1.7; }

  .story-pull {
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: italic;
    color: var(--ink);
    border-left: 2px solid var(--gold);
    padding-left: 12px;
    margin: 12px 0;
    line-height: 1.5;
  }

  .inline-stats {
    display: flex;
    background: var(--paper);
    border: 0.5px solid var(--rule);
    margin: 12px 0;
  }

  .i-stat { padding: 11px 14px; border-right: 0.5px solid var(--rule); flex: 1; }
  .i-stat:last-child { border-right: none; }

  .i-num {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
  }

  .i-lbl {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
  }

  /* ── ORIN STRIP ── */
  .orin-strip {
    background: var(--ink);
    padding: 28px 40px;
    margin: 0 -40px 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: center;
  }

  .orin-left {}

  .orin-overline {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
  }

  .orin-headline {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .orin-deck { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }

  .orin-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

  .orin-feat { border-left: 1px solid rgba(200,169,106,0.3); padding-left: 12px; }

  .orin-feat-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 5px;
  }

  .orin-feat-desc { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.55; }

  /* ── FIA FULL ── */
  .fia-full {
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    padding: 28px;
    margin-bottom: 28px;
  }

  .section-flag {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border-top: 2px solid var(--gold);
    padding-top: 6px;
    margin-bottom: 10px;
    display: inline-block;
  }

  .fia-headline {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 10px;
  }

  .fia-deck {
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 680px;
  }

  .fia-rule { height: 0.5px; background: var(--rule); margin-bottom: 18px; }

  .fia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .fia-feat {
    background: var(--paper);
    padding: 14px 16px;
    border-left: 2px solid var(--gold);
  }

  .fia-feat-title {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 5px;
  }

  .fia-feat-desc { font-size: 11px; color: var(--body-text); line-height: 1.6; }

  /* ── FOLIO ── */
  .folio {
    background: var(--ink);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
  }

  .folio-text {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
  }

  .folio-logo {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 900;
    color: rgba(255,255,255,0.5);
  }

  .folio-logo em { font-style: italic; color: var(--gold); }

  /* ── COMING SOON ── */
  .coming-soon {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 40px;
  }

  .coming-soon-icon {
    font-family: var(--font-sans);
    font-size: 64px;
    font-weight: 900;
    color: var(--rule);
    font-style: italic;
    line-height: 1;
  }

  .coming-soon-title {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
  }

  .coming-soon-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── PRODUCT NAMES (skimmable) ── */
  .product-head {
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 0.95;
  }

  .product-head.on-dark { color: var(--gold); }

  .product-sub {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
    margin: 3px 0 12px;
  }

  .story-product {
    font-family: var(--font-sans);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    padding-bottom: 9px;
    margin-bottom: 11px;
    border-bottom: 2px solid var(--gold);
  }

  .story-product .sub {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--gold);
  }

  .hl-prod { color: var(--gold); font-weight: 600; }

  /* ── MOTION & POLISH ── */
  .impact-cell { display: flex; flex-direction: column; }
  .imp-lbl { min-height: 2.6em; }
  .sp-label { min-height: 2.4em; }

  .col-story { transition: background .25s ease; }
  .col-story:hover { background: #FBFAF6; }
  .sp-stat { transition: background .25s ease; }
  .sp-stat:hover { background: #FBFAF6; }
  .fia-feat { transition: transform .25s ease; }
  .fia-feat:hover { transform: translateX(3px); }
  .orin-feat { transition: transform .25s ease; }
  .orin-feat:hover { transform: translateX(3px); }
  .month-tab { transition: all 0.2s; }

  @keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 14px)); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .ticker-track { animation: ticker-scroll 40s linear infinite; }
    .ticker:hover .ticker-track { animation-play-state: paused; }

    .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
    .js .reveal.in { opacity: 1; transform: none; }
    .js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
    .js .reveal-stagger.in > * { opacity: 1; transform: none; }

    .masthead-hero > div { animation: rise .8s ease both; }
    .masthead-hero > div:nth-child(2) { animation-delay: .12s; }
    .impact-bar-label { animation: rise .6s ease both; animation-delay: .2s; }
    .impact-cell { animation: rise .6s ease both; }
    .impact-cell:nth-child(1) { animation-delay: .26s; }
    .impact-cell:nth-child(2) { animation-delay: .33s; }
    .impact-cell:nth-child(3) { animation-delay: .40s; }
    .impact-cell:nth-child(4) { animation-delay: .47s; }
    .impact-cell:nth-child(5) { animation-delay: .54s; }
    .impact-cell:nth-child(6) { animation-delay: .61s; }
  }

  /* ── APPS DIRECTORY ── */
  .apps-body { padding-bottom: 40px; }

  .tier-banner {
    background: var(--ink);
    color: var(--gold);
    padding: 14px 20px;
    margin: 32px 0 16px;
    display: flex;
    align-items: baseline;
    border-radius: var(--radius-md);
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
  }

  .tier-banner:first-child { margin-top: 0; }
  .tier-banner-toggle:hover { opacity: 0.9; }

  .tier-banner-chevron { margin-right: 10px; font-size: 14px; }

  .tier-banner-label {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-right: auto;
  }

  .tier-banner-count {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
  }

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

  .app-card {
    position: relative;
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    padding: 22px;
    padding-bottom: 38px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color .25s ease, transform .25s ease;
  }

  .app-card:hover { border-color: var(--gold); transform: translateY(-2px); }

  .card-expand-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 15px;
    height: 15px;
    color: var(--muted);
    opacity: 0.55;
    pointer-events: none;
  }
  .app-card:hover .card-expand-icon, .ver-card:hover .card-expand-icon { color: var(--gold); opacity: 1; }

  .app-card-top-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

  .app-edit-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
  }
  .app-edit-btn:hover { color: var(--gold); background: rgba(0,0,0,0.04); }

  .app-version {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: var(--paper);
    border: 0.5px solid var(--rule);
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
  }

  .app-card-dev { padding: 18px 20px; }

  .app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .app-name {
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.05;
  }

  .app-tagline {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
  }

  .app-gtm-owner {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
  }

  .app-status {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 2px;
  }

  .app-status.live { color: #3F7A54; background: rgba(63,122,84,0.1); }
  .app-status.dev { color: var(--gold); background: rgba(200,169,106,0.12); }

  .app-summary { font-size: 12.5px; color: var(--body-text); line-height: 1.65; margin-bottom: 12px; }

  .app-summary-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

  .app-summary-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

  .app-summary-label {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    flex-shrink: 0;
    width: 56px;
  }

  .app-summary-text { font-size: 12px; color: var(--body-text); line-height: 1.5; flex: 1; min-width: 0; }

  .app-quick-feats { font-size: 12px; color: var(--body-text); line-height: 1.5; flex: 1; min-width: 0; }

  .app-quick-feat {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
  }

  .app-quick-feat:not(:last-child)::after {
    content: "·";
    margin: 0 6px;
    color: var(--muted);
    font-weight: 400;
  }

  .app-read-more-btn {
    align-self: flex-start;
    margin-bottom: 14px;
    background: none;
    border: none;
    padding: 0 0 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    border-bottom: 1px solid var(--gold);
  }

  .app-read-more-btn:hover { color: var(--gold); }

  .app-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .app-feature { border-left: 2px solid var(--gold); padding-left: 10px; }

  .app-feature-title {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 3px;
  }

  .app-feature-desc { font-size: 11.5px; color: var(--body-text); line-height: 1.55; }

  .app-feature-bullets {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .app-feature-bullet {
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .app-feature-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
  }

  .feature-new-tag {
    flex-shrink: 0;
    margin-left: auto;
    padding: 1px 7px;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #3F7A54;
    border-radius: 999px;
  }

  .app-links { display: flex; gap: 8px; margin-top: auto; }

  .app-link {
    flex: 1;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 10px;
    text-decoration: none;
    border: 0.5px solid var(--rule);
    color: var(--ink);
    transition: all .2s ease;
  }

  .app-link:hover { border-color: var(--gold); color: var(--gold); }
  .app-link.production { background: var(--ink); color: var(--gold); border-color: var(--ink); }
  .app-link.production:hover { opacity: 0.85; }

  /* ── ROADMAP: 3-COLUMN LAYOUT ── */
  .rm3-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
  }

  .rm3-sidebar {
    border-right: 0.5px solid var(--rule);
    padding: 20px 12px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 0;
  }

  .rm3-overview-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: var(--paper);
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
  }
  .rm3-overview-btn:hover { border-color: var(--gold); }
  .rm3-overview-btn.active { background: var(--ink); color: var(--gold); border-color: var(--ink); }

  .rm3-sidebar-search { margin-bottom: 10px; }
  #rm3-app-search {
    width: 100%;
    padding: 8px 10px;
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--ink);
  }
  #rm3-app-search:focus { outline: none; border-color: var(--gold); }

  .rm3-sidebar-modes { display: flex; gap: 4px; margin-bottom: 14px; }
  .rm3-mode-btn {
    flex: 1;
    padding: 6px 8px;
    background: var(--paper);
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
  }
  .rm3-mode-btn.active { background: var(--ink); color: var(--gold); border-color: var(--ink); }

  .tier-banner-sm { padding: 6px 8px; margin: 16px 0 6px; }
  .tier-banner-sm:first-child { margin-top: 0; }
  .tier-banner-sm .tier-banner-label { font-size: 12px; }

  .rm3-app-list { display: flex; flex-direction: column; gap: 2px; }

  .rm3-app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--body-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background .15s ease;
  }

  .rm3-app-item:hover { background: var(--paper); }
  .rm3-app-item.active {
    background: rgba(255,114,92,0.16);
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .rm3-app-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .rm3-app-item-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    background: #3F7A54;
    color: #fff;
    padding: 1px 6px;
    border-radius: 999px;
  }

  .rm3-app-item.active .rm3-app-item-badge { background: #4F9A69; color: #fff; }

  .rm3-center { padding: 20px; min-width: 0; }

  .rm3-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

  .rm3-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

  .rm3-col-head {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rule);
  }

  .rm3-col[data-stage="idea"] .rm3-col-head { border-bottom-color: var(--muted); }

  .rm3-col-desc { font-size: 10px; color: var(--muted); margin-top: -4px; }

  .rm3-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 40px; padding: 4px 0; border-radius: var(--radius-sm); transition: background .15s ease; }
  .rm3-col-body.drag-over { background: rgba(255,114,92,0.1); outline: 1px dashed var(--gold); }

  .idea-point {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    cursor: grab;
    border-radius: var(--radius-sm);
    transition: opacity .2s ease, border-color .15s ease;
  }

  .idea-point.dragging { opacity: 0.4; }
  .idea-point:hover { border-color: var(--gold); }
  .idea-bullet { color: var(--gold); flex-shrink: 0; }
  .idea-text { color: var(--ink); font-weight: 600; }

  .ver-card {
    position: relative;
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    border-left: 3px solid var(--gold);
    padding: 10px 34px 22px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: opacity .2s ease, border-color .15s ease;
  }

  .rm3-col[data-stage="staging"] .ver-card { border-left-color: #6E8FAE; }
  .rm3-col[data-stage="production"] .ver-card { border-left-color: #3F7A54; }
  .ver-card.dragging { opacity: 0.4; }
  .ver-card:hover { border-color: var(--gold); }
  .ver-card[draggable="true"] { cursor: grab; }

  /* Read-only mirror of a shipped Production version, shown in Staging. */
  .ver-card-ghost {
    border-left-color: #3F7A54;
    background: repeating-linear-gradient(
      -45deg,
      var(--warm-white),
      var(--warm-white) 9px,
      rgba(63,122,84,0.05) 9px,
      rgba(63,122,84,0.05) 18px
    );
  }

  .ver-promoted-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: var(--font-sans);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3F7A54;
  }

  .ver-card .card-expand-icon { bottom: 8px; right: 8px; width: 12px; height: 12px; }

  .ver-edit-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
  }
  .ver-edit-btn:hover { color: var(--gold); background: rgba(0,0,0,0.04); }

  .ver-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .ver-title-group { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .ver-label { font-family: var(--font-sans); font-size: 14px; font-weight: 900; color: var(--ink); }

  .ver-date {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ver-date-badge { color: var(--gold) !important; }

  .ver-flag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #A6453A;
    white-space: nowrap;
  }

  .ver-desc { font-size: 11px; color: var(--body-text); line-height: 1.5; margin-bottom: 6px; }

  .ver-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .ver-owners-empty { color: #A6453A; opacity: 0.8; }

  .ver-feat-count {
    font-size: 10px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted);
    font-style: italic;
    white-space: nowrap;
  }

  /* Blocker note — shown on the card and in the version detail modal. */
  .ver-blocker {
    font-family: var(--font-sans);
    font-size: 10px;
    line-height: 1.45;
    color: #A6453A;
    background: rgba(166,69,58,0.07);
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    margin-top: 6px;
  }

  /* "Copy update" button in the Building column header. */
  .rm3-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 7px;
    background: transparent;
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    vertical-align: middle;
    transition: color .15s ease, border-color .15s ease;
  }
  .rm3-copy-btn svg { width: 11px; height: 11px; }
  .rm3-copy-btn:hover { color: var(--gold); border-color: var(--gold); }
  .rm3-copy-btn.copied { color: #3F7A54; border-color: #3F7A54; }

  /* Per-feature "done + when" controls inside the version detail modal. */
  .ver-feature-done-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
  }
  .ver-done-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
  }
  .ver-done-check input { cursor: pointer; accent-color: #3F7A54; }
  .ver-done-date {
    font-family: var(--font-sans);
    font-size: 10.5px;
    padding: 2px 5px;
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    color: var(--ink);
  }
  .ver-done-date:disabled { opacity: 0.45; }
  .ver-done-stamp {
    font-family: var(--font-sans);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #3F7A54;
  }
  .ver-feature-done { border-left-color: #3F7A54; }
  .ver-feature-done .app-feature-title { color: #3F7A54; }

  .rm-empty-hint { font-size: 10.5px; color: var(--muted); font-style: italic; padding: 4px 2px; }

  .rm3-overview { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }

  .rm3-overview-head {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--rule);
  }

  .rm3-overview-list { display: flex; flex-direction: column; gap: 4px; }

  .rm3-overview-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: var(--warm-white);
    border: 0.5px solid var(--rule);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
  }
  .rm3-overview-row:hover { border-color: var(--gold); }
  .rm3-overview-row.overdue { border-left: 3px solid #A6453A; }

  .rm3-overview-app { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rm3-overview-label { font-size: 12px; color: var(--body-text); }
  .rm3-overview-stage { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

  .rm3-overview-date {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: right;
    white-space: nowrap;
  }
  .rm3-overview-date.overdue { color: #A6453A; }

  @media (max-width: 700px) {
    .rm3-overview-row { grid-template-columns: 1fr; text-align: left; }
    .rm3-overview-date { text-align: left; }
  }

  .rm3-details {
    border-left: 0.5px solid var(--rule);
    padding: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 0;
  }

  .rm3-detail-name { font-family: var(--font-sans); font-size: 22px; font-weight: 900; color: var(--ink); }
  .rm3-detail-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .rm3-detail-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .rm3-detail-row .app-summary-label { width: auto; }

  .rm3-edit-link {
    display: block;
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
  }

  .rm3-edit-link:hover { text-decoration: underline; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .masthead-hero { grid-template-columns: 1fr; gap: 16px; }
    .hero-right { text-align: left; }
    .hero-hl { margin-left: 0; max-width: 100%; }
    .hero-deck { margin-left: 0; max-width: 100%; }
    .impact-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .impact-cell { border-right: none; padding: 0 0 12px; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
    .impact-cell:last-child { border-bottom: none; }
    .impact-cell + .impact-cell { padding-left: 0; }
    .spotlight { grid-template-columns: 1fr; }
    .spotlight-main { grid-column: span 1; border-right: none; border-bottom: 0.5px solid var(--rule); }
    .spotlight-stats { grid-template-columns: repeat(2, 1fr); }
    .three-col { grid-template-columns: 1fr; }
    .col-story + .col-story { border-left: none; border-top: 0.5px solid var(--rule); }
    .orin-strip { grid-template-columns: 1fr; margin: 0 -20px 24px; padding: 24px 20px; }
    .orin-features { grid-template-columns: 1fr 1fr; }
    .fia-grid { grid-template-columns: 1fr 1fr; }
    .body { padding: 20px 20px 0; }
    .masthead-hero { padding: 20px 20px 18px; }
    .masthead-top { padding: 10px 20px; }
    .impact-bar { padding: 16px 20px; }
    .ticker { padding: 8px 20px; }
    .folio { padding: 14px 20px; }
    .nameplate-main { font-size: 48px; }
    .month-nav { padding: 10px 20px; }
    .primary-nav-inner { padding: 10px 20px; }
    .app-grid { grid-template-columns: 1fr 1fr; }
    .rm3-layout { grid-template-columns: 1fr; }
    .rm3-sidebar, .rm3-details { position: static; max-height: none; border: none; border-bottom: 0.5px solid var(--rule); }
    .rm3-board { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-stats { grid-template-columns: 1fr 1fr; }
    .orin-features { grid-template-columns: 1fr; }
    .fia-grid { grid-template-columns: 1fr; }
    .nameplate-main { font-size: 40px; }
    .app-grid { grid-template-columns: 1fr; }
    .rm3-board { grid-template-columns: 1fr; }
    .primary-tabs { gap: 4px; }
    .primary-tab { padding: 6px 10px; font-size: 10px; }
  }

/* ── LOADING / EMPTY STATES (data-driven pages) ── */
.grid-status {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ── ADMIN ── */
.admin-body { max-width: 980px; padding-bottom: 60px; }

.admin-gate {
  max-width: 360px;
  margin: 80px auto;
  text-align: center;
}

.admin-gate input {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--rule);
  background: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 13px;
  margin: 14px 0;
}

.admin-section { margin-bottom: 40px; }

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  margin-bottom: 18px;
}

.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--rule);
  font-size: 12px;
  vertical-align: top;
}

.admin-table th {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.admin-table tr:last-child td { border-bottom: none; }

.btn {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 0.5px solid var(--ink);
  background: var(--ink);
  color: var(--gold);
  cursor: pointer;
  transition: opacity .2s ease;
}

.btn:hover { opacity: 0.8; }
.btn.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.btn-danger { background: #A6453A; border-color: #A6453A; color: #fff; }
.btn.btn-small { padding: 4px 9px; font-size: 9px; }

.admin-form {
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-form.admin-form-open { display: grid; }
.admin-form[hidden] { display: none; }

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-form label.full, .admin-form .full { grid-column: 1 / -1; }

.admin-form input, .admin-form select, .admin-form textarea {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 10px;
  border: 0.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  /* Inputs carry an intrinsic width (~20 characters) that grid and flex
     treat as a minimum, which is what pushes a form wider than its
     container and produces a horizontal scrollbar. Let them shrink. */
  min-width: 0;
  max-width: 100%;
}

.admin-form textarea { resize: vertical; min-height: 56px; }

.admin-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }

.admin-features-editor { grid-column: 1 / -1; }

#ew-ver-bulk-text { width: 100%; box-sizing: border-box; }

.admin-feature-row {
  display: grid;
  /* minmax(0, …) rather than 1fr/2fr: a bare fr floors at the content's
     intrinsic size, so text inputs would refuse to shrink and overflow. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 8px;
  margin-bottom: 6px;
}

/* Version feature rows carry a "shipped on" date as well as a remove button.
   Four inputs side by side don't fit a 440px drawer, so they stack: title and
   remove on the first line, note below, then the date. Everything stays
   visible without scrolling sideways. */
#ew-ver-feature-rows .admin-feature-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title  remove"
    "desc   desc"
    "done   done";
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 0.5px solid var(--rule);
}
#ew-ver-feature-rows .admin-feature-row:last-child { border-bottom: none; }
#ew-ver-feature-rows .vfeat-title { grid-area: title; font-weight: 600; }
#ew-ver-feature-rows .vfeat-desc { grid-area: desc; }
#ew-ver-feature-rows .vfeat-remove { grid-area: remove; }
#ew-ver-feature-rows .vfeat-done-wrap {
  grid-area: done;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#ew-ver-feature-rows .vfeat-done { font-size: 11px; }

.admin-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.admin-error {
  color: #A6453A;
  font-size: 12px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .admin-form { grid-template-columns: 1fr; }
  .admin-feature-row { grid-template-columns: 1fr; }
  .admin-table { font-size: 11px; }
}

/* ── INLINE EDIT WIDGET ── */
.add-card-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--rule);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}

.add-card-btn:hover { border-color: var(--gold); color: var(--gold); }

.add-app-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--rule);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 120px;
  transition: all .15s ease;
}

.add-app-card:hover { border-color: var(--gold); color: var(--gold); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-box {
  background: var(--paper);
  border: 0.5px solid var(--rule);
  padding: 26px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-box .admin-form {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.feature-drawer .admin-form {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
  grid-template-columns: 1fr;
}


/* ── FEATURE DRAWER (Apps Directory "show more") ── */
.feature-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0);
  z-index: 210;
  transition: background .25s ease;
  pointer-events: none;
}

.feature-drawer-overlay.open { background: rgba(26,26,24,0.5); pointer-events: auto; }

.feature-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: var(--warm-white);
  border-left: 0.5px solid var(--rule);
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  /* Everything in a drawer is meant to be read top to bottom — never
     sideways. Anything too wide wraps or shrinks instead. */
  overflow-x: hidden;
  padding: 26px;
}

.feature-drawer *, .modal-box * { min-width: 0; }
.feature-drawer .admin-form, .modal-box .admin-form { max-width: 100%; }

.feature-drawer.open { transform: translateX(0); }

.feature-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--rule);
}

.feature-drawer-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.feature-drawer-close:hover { border-color: var(--gold); color: var(--gold); }

.feature-drawer-grid { grid-template-columns: 1fr; gap: 14px; }

@media (max-width: 600px) {
  .feature-drawer { width: 100vw; }
}

/* ── FELIX BRAND RADIUS — applied broadly on top of the existing rules ── */
.btn, .primary-tab, .app-link, .app-version, .add-card-btn,
.app-read-more-btn, .month-tab,
.admin-note code { border-radius: var(--radius-sm); }

.app-card, .modal-box, .feature-drawer, .admin-form,
.admin-table, .col-story, .add-app-card, .login-card { border-radius: var(--radius-md); }

/* ── MISSION CONTROL ── */
.mc-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mc-section-head {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.mc-mission-section { position: relative; padding-right: 40px; }

.mc-mission {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.mc-mission-edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.mc-mission-edit:hover { color: var(--gold); background: rgba(0,0,0,0.04); }

.mc-north-star {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.mc-north-star p { margin: 0 0 10px; }
.mc-north-star p:last-child { margin-bottom: 0; }

.mc-tenets {
  columns: 2;
  column-gap: 32px;
}

.mc-tenet {
  break-inside: avoid;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body-text);
  margin-bottom: 18px;
}

.mc-tenet-num { font-weight: 900; color: var(--ink); }

@media (max-width: 700px) {
  .mc-tenets { columns: 1; }
}

.mc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mc-metric {
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.mc-metric.at-risk { border-color: #A6453A; }

.mc-metric-num {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}

.mc-metric.at-risk .mc-metric-num { color: #A6453A; }

.mc-metric-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mc-card {
  display: block;
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.mc-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.mc-card-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.mc-card-title { font-family: var(--font-sans); font-size: 16px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.mc-card-desc { font-size: 12px; color: var(--body-text); line-height: 1.55; margin-bottom: 14px; }
.mc-card-link { font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--ink); }

@media (max-width: 700px) {
  .mc-body { padding: 24px 20px 40px; }
  .mc-metrics, .mc-cards { grid-template-columns: 1fr; }
  .mc-mission { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   TEAM & PROFILES (/team) — profile cards, leaderboard, badges
   ══════════════════════════════════════════════════════════════════ */

/* Shared avatar primitive — an image when someone set one, their initials
   on a stable per-person colour when they haven't. */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--ink);
  line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { box-shadow: 0 0 0 4px var(--paper); }

/* Nav chip */
.nav-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.nav-profile-chip:hover { border-color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-profile-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.nav-profile-chip.guest .nav-profile-name { color: rgba(255,255,255,0.45); }

/* Page shell */
.team-page { padding: 28px 40px 60px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.team-section { display: flex; flex-direction: column; gap: 14px; }

.team-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 8px;
}
.team-section-note {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.team-sub-head {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Your profile hero ── */
.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--ink));
}

.profile-avatar-wrap { position: relative; width: 108px; height: 108px; display: grid; place-items: center; }
.level-ring { position: absolute; inset: 0; }
.profile-level-chip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-hero-main { min-width: 0; }
.profile-name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.profile-name { font-family: var(--font-sans); font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.profile-username { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--gold); }
.profile-title { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--body-text); margin-top: 4px; }
.profile-email { font-family: var(--font-sans); font-size: 11px; color: var(--muted); margin-top: 2px; }
.profile-bio { font-size: 12.5px; line-height: 1.6; color: var(--body-text); margin-top: 10px; max-width: 62ch; }
.profile-progress-note { font-family: var(--font-sans); font-size: 10.5px; color: var(--muted); margin-top: 10px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.profile-preview { margin: -4px 0 8px; }

.skill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.skill-chip {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(9,53,85,0.06);
  border-radius: 999px;
  padding: 4px 10px;
}
.skill-chip-sm { font-size: 9px; padding: 3px 8px; }

/* ── Stat tiles ── */
.team-stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.team-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  flex: 1 1 96px;
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.team-stat-value { font-family: var(--font-sans); font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1; }
.team-stat-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-stat-accent { background: rgba(255,114,92,0.08); border-color: rgba(255,114,92,0.35); }
.team-stat-accent .team-stat-value { color: var(--gold); }

/* ── Guest (non-roster) card ── */
.team-guest-card {
  background: var(--warm-white);
  border: 0.5px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.team-guest-title { font-family: var(--font-sans); font-size: 16px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.team-guest-body { font-size: 12.5px; line-height: 1.65; color: var(--body-text); max-width: 70ch; }

/* ── Leaderboard ── */
.leaderboard { display: flex; flex-direction: column; gap: 6px; }
.leader-row {
  display: grid;
  grid-template-columns: 28px auto 1fr repeat(3, minmax(70px, auto)) minmax(64px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.leader-row:hover { border-color: var(--gold); transform: translateX(2px); }
.leader-row.is-me { border-color: var(--gold); background: rgba(255,114,92,0.05); }
.leader-rank { font-family: var(--font-sans); font-size: 14px; font-weight: 900; color: var(--muted); text-align: center; }
.leader-name { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.leader-title { font-size: 10px; font-weight: 400; color: var(--muted); }
.leader-metric { font-family: var(--font-sans); font-size: 10px; color: var(--muted); white-space: nowrap; }
.leader-metric b { font-size: 12px; color: var(--ink); font-weight: 900; }
.leader-points {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}

/* ── Roster grid ── */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.roster-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.roster-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.roster-card.is-me { border-color: var(--gold); }
.roster-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.roster-level {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  padding: 3px 8px;
}
.roster-name { font-family: var(--font-sans); font-size: 14px; font-weight: 900; color: var(--ink); }
.roster-sub { font-family: var(--font-sans); font-size: 10.5px; color: var(--muted); }
.roster-title { font-family: var(--font-sans); font-size: 11px; color: var(--body-text); margin-top: 2px; }
.roster-metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-family: var(--font-sans); font-size: 9.5px; color: var(--muted); }
.roster-metrics b { font-size: 11px; color: var(--ink); font-weight: 900; }
.roster-badges { margin-top: 10px; font-size: 14px; letter-spacing: 2px; }

/* ── Badges ── */
.badge-shelf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
}
.badge-pill-lg { border-radius: var(--radius-md); padding: 8px 12px; align-items: flex-start; }
.badge-pill-icon { font-size: 16px; line-height: 1.1; }
.badge-pill-lg em { display: block; font-size: 9.5px; font-weight: 400; font-style: normal; color: var(--muted); margin-top: 2px; }
.badge-revoke { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0 2px; }
.badge-revoke:hover { color: #A6453A; }

.badge-award { margin-top: 18px; border-top: 0.5px solid var(--rule); padding-top: 16px; }
.badge-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.badge-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.badge-option:hover:not(:disabled) { border-color: var(--gold); background: rgba(255,114,92,0.06); }
.badge-option.given, .badge-option:disabled { opacity: 0.4; cursor: not-allowed; }
.badge-note-input {
  width: 100%;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 8px 10px;
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--ink);
}

/* ── Member drawer ── */
/* The team drawer holds stats, task lists and a badge picker — it needs more
   room than the 440px default set on .feature-drawer (which sets `width`, so
   a max-width alone would never take effect). */
.team-drawer { width: min(620px, 94vw); }
.drawer-person { display: flex; align-items: center; gap: 12px; }
.you-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid var(--gold);
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
}
.drawer-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.drawer-task { border-left: 2px solid var(--gold); padding: 2px 0 2px 10px; }
.drawer-task-title { font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--ink); }
.drawer-task-meta { font-family: var(--font-sans); font-size: 10px; color: var(--muted); margin-top: 1px; }
.drawer-push { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 0.5px solid var(--rule); }
.drawer-push-date { font-family: var(--font-sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3F7A54; }
.drawer-push-title { font-size: 12px; color: var(--ink); }
.drawer-push-meta { font-family: var(--font-sans); font-size: 9.5px; color: var(--muted); text-align: right; }

.btn.copied { border-color: #3F7A54; color: #3F7A54; }

@media (max-width: 760px) {
  .team-page { padding: 22px 20px 44px; }
  .profile-hero { grid-template-columns: 1fr; }
  .leader-row { grid-template-columns: 24px auto 1fr auto; }
  .leader-row .leader-metric { display: none; }
  .nav-profile-name { display: none; }
}

/* ── ROADMAP: owner picker + JSON interchange ── */
.owner-picker { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.owner-chip {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--warm-white);
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.owner-chip:hover { border-color: var(--gold); color: var(--ink); }
.owner-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.drawer-head-actions { display: flex; align-items: center; gap: 8px; }

.json-panel {
  margin-top: 14px;
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--paper);
}
.json-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.json-panel textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  padding: 10px;
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--ink);
  resize: vertical;
  tab-size: 2;
}
.json-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  background: rgba(9,53,85,0.06);
  border-radius: 3px;
  padding: 1px 4px;
}

.team-guest-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(9,53,85,0.06);
  border-radius: 3px;
  padding: 1px 5px;
}

/* The version editor is the densest form on the site — owners chips, a
   feature list, and a JSON panel. Give it more room than the default drawer
   so nothing has to be scrolled to sideways. */
#ver-drawer { width: min(580px, 94vw); }
