*, *::before, *::after { box-sizing: border-box; }
  :root {
    --paper:   #FAFAF7;
    --paper-2: #F2F1ED;
    --ink:     #14141A;
    --ink-2:   #2A2A30;
    --muted:   #6B6B72;
    --faint:   #B0AEA8;
    --rule:    #E6E4DD;
    --rule-2:  #D8D5CC;
    --accent:  #B5430F;
    --accent-soft: #FAEEE6;
    --good:    #2F6B4A;
  }
  html, body {
    margin: 0; padding: 0;
    background: #E8E6DF;
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  ::selection { background: var(--ink); color: var(--paper); }

  /* Wrapper takes scaled dimensions; stage is the fixed canvas */
  .stage-wrap {
    width: 100vw;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .stage {
    width: 1440px; height: 900px;
    transform-origin: center center;
    flex-shrink: 0;
  }
  .frame {
    width: 1440px; height: 900px;
    background: var(--paper);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    padding: 26px 36px;
    gap: 16px;
    box-shadow: 0 30px 80px -30px rgba(20,20,26,0.18), 0 2px 8px rgba(20,20,26,0.04);
  }

  /* ====== TOP HEADER ====== */
  .head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink);
    gap: 24px;
  }
  .head .l { display: flex; flex-direction: column; gap: 4px; }
  .head .l .name {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 600;
    letter-spacing: -0.01em; line-height: 1;
  }
  .head .l .role {
    font-size: 11px; color: var(--muted);
    letter-spacing: 0.04em;
  }
  .head .c {
    text-align: center;
    display: flex; flex-direction: column; gap: 2px;
  }
  .head .c .ttl {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.32em; text-transform: uppercase;
  }
  .head .c .sub {
    font-size: 10px; color: var(--muted);
    letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  }
  .head .r {
    text-align: right;
    display: flex; flex-direction: column; gap: 2px;
    font-size: 11px; color: var(--muted);
    letter-spacing: 0.04em;
  }
  .head .r .live {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-end;
    color: var(--ink); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px;
  }
  .head .r .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-out infinite;
  }
  #live-clock { font-variant-numeric: tabular-nums; }
  .head .r .tz {
    margin-left: 2px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 9px;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
  }

  /* ====== MAIN GRID ====== */
  .grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 18px;
    min-height: 0;
  }
  .col {
    min-height: 0;
    display: grid;
    gap: 14px;
  }
  .col.left  { grid-template-rows: auto 1fr; }
  .col.right { grid-template-rows: 1fr auto; }
  .col.center { grid-template-rows: auto auto 1fr auto; }
  .panel {
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper);
    padding: 18px 20px;
    display: flex; flex-direction: column;
    gap: 12px;
    min-height: 0;
  }
  .panel.dark {
    background: var(--ink); color: var(--paper);
    border-color: var(--ink);
  }
  .panel.flex-grow { min-height: 0; overflow: hidden; }
  /* Toolkit panel needs overflow visible so hover info-cards can escape */
  .panel.dark.flex-grow { overflow: visible; }
  .panel.tight { padding: 14px 18px; gap: 8px; }
  .col.left .panel.flex-grow {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 8px;
  }

  .ph {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px;
  }
  .ph .ttl {
    font-family: var(--font-body);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .panel.dark .ph .ttl { color: rgba(250,250,247,0.55); }
  .ph .meta {
    font-size: 10px; color: var(--faint);
    letter-spacing: 0.06em;
  }
  .panel.dark .ph .meta { color: rgba(250,250,247,0.4); }

  /* ====== HERO (center top) ====== */
  .hero {
    border-bottom: 1px solid var(--rule);
    padding: 4px 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
  }
  .hero .lab {
    font-family: var(--font-body);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 14px;
  }
  .hero .lab .bar { width: 24px; height: 1px; background: var(--rule-2); }
  .hero h1 {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(40px, 5vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.04em;
    margin: 0;
  }
  .hero h1 em {
    font-style: italic; font-weight: 200;
    color: var(--accent);
  }
  .hero .lede {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 300;
    line-height: 1.5;
    color: var(--muted);
    max-width: 38ch;
    margin: 0;
    text-align: right;
    letter-spacing: -0.005em;
  }

  /* ====== KPI BAND ====== */
  .kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
  }
  .kpi {
    padding: 14px 18px;
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 4px;
  }
  .kpi:last-child { border-right: none; }
  .kpi .k {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .kpi .v {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    display: flex; align-items: baseline; gap: 6px;
  }
  .kpi .v .u {
    font-size: 12px; color: var(--muted); font-weight: 500;
    letter-spacing: 0.04em;
  }
  .kpi .v .acc { color: var(--accent); }

  /* ====== WEEK BAR (center main) ====== */
  .week-wrap {
    display: flex; flex-direction: row;
    align-items: stretch;
    flex: 1; min-height: 0;
    gap: 10px;
  }
  .week-wrap .week { flex: 1; min-height: 0; }
  .wnav {
    width: 36px;
    flex: 0 0 auto;
    align-self: stretch;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 4px;
    color: var(--ink);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s var(--ease-out);
    padding: 0;
    font-family: var(--font-display);
    font-weight: 300;
  }
  .wnav:hover:not(:disabled) {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
  }
  .wnav:active:not(:disabled) { transform: scale(0.97); }
  .wnav:disabled {
    opacity: 0.25; cursor: not-allowed;
  }
  .week {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    transition: grid-template-columns 0.45s var(--ease-out);
  }
  /* Active day = expanded, showing full items. Default active = today. */
  .day.active:not(.today) { background: var(--paper-2); }
  .day.active .items li {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: clip;
  }
  /* Hide the per-day hover popover — the inline expansion now does that job */
  .day .dpop { display: none !important; }
  .day {
    padding: 16px 16px 14px;
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    transition: background 0.3s var(--ease-out);
    position: relative;
  }
  .day:last-child { border-right: none; }
  .day:hover { background: var(--paper-2); }
  .day.today { background: var(--ink); color: var(--paper); }
  .day.today:hover { background: var(--ink-2); }

  .day .dh {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 8px;
    margin-bottom: 4px;
  }
  .day.today .dh { border-bottom-color: rgba(250,250,247,0.15); }
  .day .dow {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .day.today .dow { color: var(--accent); }
  .day .dt {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .day .dt .mo { font-size: 10px; color: var(--faint); margin-left: 4px; letter-spacing: 0.04em; }
  .day.today .dt .mo { color: rgba(250,250,247,0.5); }

  .day .now {
    font-size: 8px; font-weight: 700;
    padding: 2px 6px; border-radius: 999px;
    background: var(--accent); color: var(--paper);
    letter-spacing: 0.22em;
    animation: pulseFade 2s ease-in-out infinite;
    align-self: center;
    line-height: 1.2;
    white-space: nowrap;
  }
  .day:not(.today) .now { display: none; }
  .day.today .dh { gap: 6px; }
  @keyframes pulseFade { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

  /* Hover popover — full day content (focus + all items, untruncated) */
  .day .dpop {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 250px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
    text-align: left;
  }
  .day:hover .dpop {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  /* Edge cases — first/last day cards anchor to inner edge so the popover
     stays inside the week bar bounds */
  .day:first-child .dpop {
    left: 0;
    transform: translateX(0) translateY(-6px);
  }
  .day:first-child:hover .dpop {
    transform: translateX(0) translateY(0);
  }
  .day:last-child .dpop {
    left: auto; right: 0;
    transform: translateX(0) translateY(-6px);
  }
  .day:last-child:hover .dpop {
    transform: translateX(0) translateY(0);
  }
  .dpop .dpop-dh {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 9px;
    margin-bottom: 11px;
    border-bottom: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .dpop .dpop-dh .d {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 200;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-transform: none;
  }
  .dpop .dpop-focus {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .dpop .dpop-focus em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }
  .dpop .dpop-items {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.4;
  }
  .dpop .dpop-items li {
    padding-left: 12px;
    position: relative;
  }
  .dpop .dpop-items li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 1px;
    background: var(--rule-2);
  }

  /* Pending day — no plans yet */
  .day.pending .focus {
    font-family: var(--font-display);
    font-style: italic; font-weight: 300;
    color: var(--faint);
  }
  .day.pending .focus em { color: var(--muted); font-style: italic; }
  .day.pending .items li {
    color: var(--faint);
    font-style: italic;
    font-size: 14px;
    padding-left: 0;
    letter-spacing: 0.04em;
  }
  .day.pending .items li::before { display: none; }

  .day .focus {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .day.active .focus {
    -webkit-line-clamp: 3;
  }
  .day .focus em { font-style: italic; color: var(--accent); font-weight: 300; }
  .day.today .focus em { color: #FFA570; }

  .day .items {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 5px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
  }
  .day.today .items { color: rgba(250,250,247,0.7); }
  .day .items li {
    padding-left: 10px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .day .items li a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
  }
  .day .items li a:hover { text-decoration: underline; }
  .day.today .items li a { color: #FFA570; }
  .day .items li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 4px; height: 1px;
    background: var(--rule-2);
  }
  .day.today .items li::before { background: rgba(250,250,247,0.3); }

  /* ====== KPI Stack (left column) — vertical stat list ====== */
  .kpi-stack {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .kpi-card {
    padding: 7px 4px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .kpi-card:last-child { border-bottom: none; }
  .kpi-card .k {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .kpi-card .v {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 200;
    letter-spacing: -0.03em; line-height: 1;
    display: flex; align-items: baseline; gap: 8px;
    color: var(--ink);
  }
  .kpi-card .v .u {
    font-size: 11px; color: var(--muted);
    font-weight: 500; letter-spacing: 0.04em;
  }
  .kpi-card .v .acc { color: var(--accent); }

  /* ====== Verticals — row of icons in left column ====== */
  .verts-panel {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .verts-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }
  .vert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 4px 2px;
    min-width: 0;
    opacity: 0;
    transform: translateY(6px);
    animation: vert-in 0.45s var(--ease-out) forwards;
    transition: transform 0.3s var(--ease-out);
  }
  .vert-card:nth-child(1) { animation-delay: 0.05s; }
  .vert-card:nth-child(2) { animation-delay: 0.13s; }
  .vert-card:nth-child(3) { animation-delay: 0.21s; }
  .vert-card:nth-child(4) { animation-delay: 0.29s; }
  .vert-card:nth-child(5) { animation-delay: 0.37s; }
  @keyframes vert-in {
    to { opacity: 1; transform: translateY(0); }
  }
  .vert-card:hover { transform: translateY(-2px); }

  .vert-icon {
    width: 24px; height: 24px;
    color: var(--muted);
    margin-bottom: 4px;
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
  }
  .vert-icon svg {
    width: 100%; height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  /* Active icons — accent color + continuous breath */
  .vert-card.active .vert-icon {
    color: var(--accent);
    animation: icon-breath 3.5s ease-in-out infinite;
  }
  @keyframes icon-breath {
    0%, 100% {
      transform: scale(1);
      filter: drop-shadow(0 0 0 rgba(181,67,15,0));
    }
    50% {
      transform: scale(1.12);
      filter: drop-shadow(0 0 6px rgba(181,67,15,0.4));
    }
  }
  .vert-card:hover .vert-icon {
    transform: scale(1.18);
    color: var(--ink);
    filter: drop-shadow(0 0 5px rgba(20,20,26,0.15));
    animation: none;
  }
  .vert-card.active:hover .vert-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(181,67,15,0.5));
  }

  .vert-name {
    font-family: var(--font-display);
    font-size: 9.5px; font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
  }
  .vert-card.active .vert-name { font-weight: 500; color: var(--accent); }
  .vert-card:not(.active) .vert-name { color: var(--muted); }

  /* ====== STAKEHOLDERS (left col) — custom always-visible scrollbar ====== */
  .stk-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    margin: 0 -4px;
  }
  .stk {
    display: flex; flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-right: 4px;
    padding-right: 6px;
    /* Hide native scrollbar — we render our own */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .stk::-webkit-scrollbar { display: none; width: 0; height: 0; }
  /* Custom scrollbar track + thumb (positioned + sized via JS) */
  .stk-bar {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 8px;
    background: var(--rule);
    border-radius: 4px;
  }
  .stk-thumb {
    position: absolute;
    left: 0; right: 0;
    background: var(--ink-2);
    border-radius: 4px;
    cursor: grab;
    transition: background 0.18s var(--ease-out);
    min-height: 30px;
  }
  .stk-thumb:hover, .stk-thumb.dragging { background: var(--ink); }
  .stk-thumb.dragging { cursor: grabbing; }
  .stk .grp-h {
    font-family: var(--font-body);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--muted);
    padding: 12px 4px 4px;
    display: flex; justify-content: space-between; align-items: baseline;
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 4;
  }
  .stk .grp-h:first-child {
    padding-top: 2px;
  }
  .stk .grp-h .ct {
    font-size: 9px; font-weight: 600;
    color: var(--faint);
    letter-spacing: 0.06em;
    text-transform: none;
    font-family: var(--font-display);
  }
  .stk .grp-h.now-h .ct,
  .stk .grp-h.next-h .ct { color: var(--accent); }
  .stk .row {
    display: grid; grid-template-columns: 28px 1fr auto;
    gap: 10px;
    padding: 10px 4px;
    align-items: center;
    border-top: 1px solid var(--rule);
  }
  .stk .row:first-child { border-top: none; }
  .stk .row .ini {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--paper-2); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; font-size: 10px;
    letter-spacing: 0.02em;
  }
  .stk .row.now .ini { background: var(--accent); color: var(--paper); }
  .stk .row .nm {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.1;
  }
  .stk .row .rl {
    font-size: 10px; color: var(--muted);
    letter-spacing: 0.02em;
  }
  .stk .row .wn {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
    padding: 3px 6px;
    border: 1px solid var(--rule);
    border-radius: 999px;
  }
  .stk .row.now .wn { color: var(--accent); border-color: var(--accent); }
  .stk .row.next .ini {
    background: var(--accent-soft); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(181,67,15,0.35);
  }
  .stk .row.next .wn {
    color: var(--accent);
    border-color: rgba(181,67,15,0.4);
    background: var(--accent-soft);
  }
  .stk .row.met .wn {
    color: var(--good);
    border-color: rgba(47,107,74,0.32);
  }
  .stk .row.due .ini {
    background: var(--paper-2); color: var(--faint);
  }
  .stk .row.due .nm { color: var(--ink-2); }
  .stk .row.due .rl { color: var(--faint); }
  .stk .row.due .wn {
    color: var(--faint);
    border-color: var(--rule);
    background: transparent;
  }

  /* ====== VERTICALS ====== */
  .verts {
    display: flex; flex-direction: column;
  }
  .verts .vr {
    display: grid; grid-template-columns: 18px 1fr 48px 32px;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
    align-items: center;
  }
  .verts .vr:first-child { border-top: none; }
  .verts .vn {
    font-family: var(--font-display);
    font-size: 11px; color: var(--faint);
    letter-spacing: 0.04em;
  }
  .verts .nm {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 400;
    letter-spacing: -0.01em;
  }
  .verts .nm .br {
    font-size: 9px; color: var(--muted);
    letter-spacing: 0.06em; margin-left: 5px;
    text-transform: uppercase; font-weight: 600;
  }
  .verts .pbar {
    height: 3px;
    background: var(--rule);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .verts .pbar::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--accent);
    width: var(--pct, 0%);
    transition: width 0.6s var(--ease-out);
    border-radius: 2px;
  }
  .verts .pct {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: -0.01em;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .verts .vr.active .pct { color: var(--accent); font-weight: 500; }

  /* ====== TOOLKIT (right col, dark, signature) ====== */
  .tk {
    display: flex; flex-direction: column; gap: 0;
    margin: 0 -4px;
  }
  .tk .group {
    padding: 10px 4px 10px;
    border-top: 1px solid rgba(250,250,247,0.1);
  }
  .tk .group:first-child { border-top: none; padding-top: 4px; }
  .tk .gh {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 8px;
  }
  .tk .gh .gn {
    font-family: var(--font-body);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(250,250,247,0.5);
  }
  .tk .gh .gc {
    font-size: 10px; color: rgba(250,250,247,0.4);
    letter-spacing: 0.04em;
    font-family: var(--font-display);
  }
  .tk .pills {
    display: flex; flex-wrap: wrap;
    gap: 5px;
  }
  .tk .pill {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--paper);
    padding: 4px 9px;
    border: 1px solid rgba(250,250,247,0.18);
    border-radius: 999px;
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    display: inline-block;
  }
  .tk .pill:hover {
    border-color: var(--paper);
    background: var(--paper); color: var(--ink);
  }
  .tk .pill.now {
    background: var(--accent); color: var(--paper);
    border-color: var(--accent);
  }
  .tk .pill.now:hover {
    background: var(--paper); color: var(--accent);
    border-color: var(--paper);
  }
  .tk .pill.now::before {
    content: '●'; font-size: 8px; margin-right: 5px;
    color: var(--paper);
    animation: pulseFade 1.6s ease-in-out infinite;
    display: inline-block;
  }
  .tk .pill.now:hover::before { color: var(--accent); }

  /* ====== Hover info-card (rating overlay) ====== */
  .tk .pill .info {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 232px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 4px;
    padding: 13px 14px 11px;
    font-family: var(--font-body);
    font-size: 10px;
    text-align: left;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 18px 40px -14px rgba(0,0,0,0.55), 0 0 0 1px rgba(20,20,26,0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
    z-index: 200;
    white-space: normal;
    cursor: default;
  }
  .tk .pill:hover .info,
  .tk .pill:focus-visible .info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  /* Invisible hit-area bridge so the tooltip stays open while cursor traverses the gap */
  .tk .pill .info::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 12px;
  }
  /* Visual arrow */
  .tk .pill .info::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 6px solid transparent;
    border-bottom-color: var(--paper);
  }
  .tk .pill .info .title {
    display: block;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 500;
    letter-spacing: -0.015em; line-height: 1.18;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .tk .pill .info .desc {
    display: block;
    font-size: 10px; color: var(--muted);
    line-height: 1.42;
    margin-bottom: 9px;
    letter-spacing: 0.005em;
    font-weight: 400;
  }
  .tk .pill .info .elo {
    display: flex; align-items: baseline; gap: 9px;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
    margin-bottom: 4px;
  }
  .tk .pill .info .elo .num {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 200;
    letter-spacing: -0.04em; line-height: 1;
    color: var(--accent);
  }
  .tk .pill .info .elo .num.muted {
    color: var(--ink); font-size: 13px; font-weight: 500;
    letter-spacing: -0.015em;
  }
  .tk .pill .info .elo .lbl {
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
  }
  .tk .pill .info .row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 10px;
    align-items: baseline;
    font-size: 9px;
    padding: 4px 0;
    border-top: 1px solid var(--rule);
  }
  .tk .pill .info .row .k {
    font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }
  .tk .pill .info .row .v {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-align: right;
    font-size: 10px;
  }
  /* Last group's pill: flip tooltip above so it doesn't dive past panel */
  .tk .group:last-child .pill .info {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
  }
  .tk .group:last-child .pill:hover .info,
  .tk .group:last-child .pill:focus-visible .info {
    transform: translateX(-50%) translateY(0);
  }
  .tk .group:last-child .pill .info::before {
    bottom: auto; top: 100%;
  }
  .tk .group:last-child .pill .info::after {
    bottom: auto; top: 100%;
    border-bottom-color: transparent;
    border-top-color: var(--paper);
  }

  /* ====== STANCE ribbon ====== */
  .stance {
    background: var(--accent-soft);
    border: 1px solid #F2DCC9;
    border-radius: 4px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
  }
  .stance .lab {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--accent);
  }
  .stance .body {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ink);
    text-wrap: balance;
  }
  .stance .body em { font-style: italic; color: var(--accent); font-weight: 400; }
  .stance .attr {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }

  /* ====== PRODUCTION PIPELINE — modern stepper roadmap, elevated as core section ====== */
  .pipeline {
    display: flex; flex-direction: column;
    gap: 10px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 16px 22px 18px;
    position: relative;
  }
  /* 3px accent edge at the top — the "this is the core" marker */
  .pipeline::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 3px;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
  }
  .pipe-head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0 2px 6px;
    border-bottom: 1px solid var(--rule-2);
  }
  .pipe-head .label {
    font-family: var(--font-body);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px;
  }
  /* Small accent dot before the label — subtle "active core" indicator */
  .pipe-head .label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 1.8s ease-out infinite;
  }
  .pipe-head .meta {
    font-size: 9px; color: var(--faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .pipe-head .meta .deadline { color: var(--accent); font-weight: 700; }
  .pipe-head .meta .done-ct { color: var(--good); font-weight: 700; }

  /* ====== Roadmap — Bento Card Grid (modern modular) ====== */
  .roadmap {
    position: relative;
    padding: 2px 0 0;
  }
  .rm-groups {
    display: grid;
    grid-template-columns: 3fr 1.1fr 1.1fr 2fr;
    gap: 6px;
    align-items: stretch;
  }
  .rm-group {
    min-width: 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: rgba(250, 250, 247, 0.52);
    padding: 7px;
  }
  .rm-group-head {
    margin: 0 2px 6px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rm-stages {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
  .rm-group .rm-stages {
    grid-template-columns: repeat(var(--stage-count), minmax(0, 1fr));
  }
  /* Each stage is its own self-contained card */
  .rm-stage {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 12px 14px 11px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 88px;
    overflow: hidden;
    transition:
      transform 0.35s var(--ease-out),
      box-shadow 0.35s var(--ease-out),
      border-color 0.3s var(--ease-out),
      background 0.3s var(--ease-out);
    opacity: 0;
    transform: translateY(10px);
    animation: card-in 0.55s var(--ease-out) forwards;
  }
  .rm-group .rm-stage {
    min-height: 76px;
    padding: 10px 12px 9px;
  }
  .rm-stage:nth-child(1) { animation-delay: 0.10s; }
  .rm-stage:nth-child(2) { animation-delay: 0.18s; }
  .rm-stage:nth-child(3) { animation-delay: 0.26s; }
  .rm-stage:nth-child(4) { animation-delay: 0.34s; }
  .rm-stage:nth-child(5) { animation-delay: 0.42s; }
  .rm-stage:nth-child(6) { animation-delay: 0.50s; }
  @keyframes card-in {
    to { opacity: 1; transform: translateY(0); }
  }

  .rm-num {
    font-family: var(--font-body);
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 6px;
  }
  .rm-name {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .rm-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: center;
    gap: 6px;
  }
  .rm-status {
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--faint);
    white-space: nowrap;
  }
  .rm-stage .rm-link {
    display: inline-block;
    font-size: 12px;
    color: var(--faint);
    transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
  }
  /* Deadline chip — small right-aligned date inside the foot */
  .rm-stage .rm-due {
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
  }

  /* Pending hover — subtle lift */
  .rm-stage:not(.done):not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -8px rgba(20,20,26,0.18);
    border-color: var(--rule-2);
  }

  /* === Done state — green tint, badge, accent baseline === */
  .rm-stage.done {
    background: linear-gradient(135deg, var(--paper) 0%, #ECF3EE 100%);
    border-color: rgba(47,107,74,0.22);
  }
  .rm-stage.done .rm-num    { color: var(--good); }
  .rm-stage.done .rm-name   { color: var(--good); }
  .rm-stage.done .rm-status { color: var(--good); }
  .rm-stage.done .rm-foot   { border-top-color: rgba(47,107,74,0.18); }
  .rm-stage.done .rm-link   { color: var(--good); }
  /* Bottom accent baseline drawing in on load */
  .rm-stage.done::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--good) 0%, rgba(47,107,74,0.4) 70%, transparent 100%);
    transform-origin: left;
    transform: scaleX(0);
    animation: line-draw 0.9s var(--ease-out) 0.7s forwards;
  }
  @keyframes line-draw {
    to { transform: scaleX(1); }
  }
  /* Check badge in top-right corner */
  .rm-stage.done .rm-badge {
    position: absolute;
    top: 10px; right: 10px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--good);
    color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px -1px rgba(47,107,74,0.4);
    transform: scale(0);
    animation: badge-in 0.5s var(--ease-out) 0.9s forwards;
  }
  @keyframes badge-in {
    0%   { transform: scale(0)    rotate(-90deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(8deg);   opacity: 1; }
    100% { transform: scale(1)    rotate(0deg);   opacity: 1; }
  }
  .rm-stage.done .rm-badge svg {
    width: 9px; height: 9px;
    stroke: currentColor; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
  }
  .rm-stage.done .rm-badge svg path {
    stroke-dasharray: 14;
    stroke-dashoffset: 14;
    animation: check-draw 0.5s var(--ease-out) 1.2s forwards;
  }
  @keyframes check-draw {
    to { stroke-dashoffset: 0; }
  }
  /* Hover on clickable done card */
  a.rm-stage.done:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(47,107,74,0.28);
    border-color: rgba(47,107,74,0.45);
  }

  /* === Changelog popover — appears above the Storyboard card on hover === */
  .rm-stage .rm-changelog {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 260px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 18px 36px -12px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    z-index: 200;
    text-align: left;
    font-family: var(--font-body);
  }
  .rm-stage:hover .rm-changelog {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  /* Hit-area bridge below the popover so the hover survives the gap to the card */
  .rm-stage .rm-changelog::before {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 12px;
  }
  /* Tiny arrow pointer at the bottom of the popover, pointing down at the card */
  .rm-stage .rm-changelog::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top-color: var(--paper);
  }

  /* Visible version chip in the card foot — invites the hover */
  .rm-stage .rm-ver-chip {
    display: inline-block;
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--good);
    color: var(--paper);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 6px;
    line-height: 1.3;
  }
  .ch-title {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .ch-title .ch-count {
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--faint);
    text-transform: none;
    font-family: var(--font-display);
  }
  .ch-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    margin-bottom: 8px;
    align-items: start;
  }
  .ch-row:last-child { margin-bottom: 0; }
  .ch-ver {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--good);
    color: var(--paper);
    padding: 2px 5px;
    border-radius: 2px;
    text-align: center;
    line-height: 1.3;
    height: fit-content;
  }
  .ch-ver.upcoming {
    background: transparent;
    color: var(--accent);
    border: 1px dashed rgba(181,67,15,0.45);
    padding: 1px 4px;
  }
  .ch-body {
    display: flex; flex-direction: column;
    gap: 2px;
  }
  .ch-date {
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
  }
  .ch-desc {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.005em;
  }
  /* On mobile, hide hover popovers — they don't make sense on touch */
  @media (max-width: 767px) {
    .rm-stage .rm-changelog { display: none !important; }
  }
  a.rm-stage.done:hover .rm-link {
    transform: translate(3px, -3px);
    color: var(--good);
  }

  /* === Active state — accent tint, pulsing dot, flowing line === */
  .rm-stage.active {
    background: linear-gradient(135deg, var(--paper) 0%, var(--accent-soft) 100%);
    border-color: rgba(181,67,15,0.28);
    box-shadow: 0 0 0 1px rgba(181,67,15,0.15);
  }
  .rm-stage.active .rm-num    { color: var(--accent); }
  .rm-stage.active .rm-status { color: var(--accent); }
  .rm-stage.active .rm-foot   { border-top-color: rgba(181,67,15,0.2); }
  /* Pulsing dot in top-right */
  .rm-stage.active .rm-dot {
    position: absolute;
    top: 13px; right: 13px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(181,67,15,0.6);
    animation: dot-ping 1.8s ease-out infinite;
  }
  @keyframes dot-ping {
    0%   { box-shadow: 0 0 0 0   rgba(181,67,15,0.55); }
    100% { box-shadow: 0 0 0 10px rgba(181,67,15,0);    }
  }
  /* Animated progress sweep at bottom of active card */
  .rm-stage.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--accent) 50%,
      transparent 100%);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: -50% 0;
    animation: sweep 2.2s ease-in-out infinite;
  }
  @keyframes sweep {
    0%   { background-position: -50% 0; }
    100% { background-position: 150% 0; }
  }
  a.rm-stage.active:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(181,67,15,0.32);
  }

  /* ====== HORIZON (bottom) ====== */
  .horizon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
  }
  .hw {
    padding: 12px 16px;
    border-right: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .hw:last-child { border-right: none; }
  .hw.now { background: var(--ink); color: var(--paper); }
  .hw .marker {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rule-2);
    margin-top: 2px;
  }
  .hw.now .marker {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(181,67,15,0.22);
    animation: pulse 2.2s ease-out infinite;
  }
  .hw.done .marker { background: var(--ink); }
  .hw .l { display: flex; flex-direction: column; gap: 2px; }
  .hw .wk {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .hw.now .wk { color: #FFA570; }
  .hw .wt {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.1;
  }
  .hw.now .wt { color: var(--paper); }
  .hw.future .wt { color: var(--muted); font-weight: 300; }
  .hw .wd {
    font-size: 10px;
    color: var(--faint);
    letter-spacing: 0.04em;
  }
  .hw.now .wd { color: rgba(250,250,247,0.5); }

  /* ====== AI Video of the Day — 5 per-day cards, switches with week ====== */
  .video-section {
    display: flex; flex-direction: column;
    gap: 6px;
  }
  .video-header {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0 4px 2px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2px;
  }
  .video-header .vh-label {
    font-family: var(--font-body);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink);
  }
  .video-header .vh-meta {
    font-size: 9px;
    color: var(--faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .video-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .vcard {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.2s var(--ease-out);
    min-width: 0;
  }
  .vcard:hover:not(.pending) {
    border-color: var(--ink);
    background: var(--paper-2);
  }
  .vcard .vthumb {
    position: relative;
    width: 64px; height: 36px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--ink);
  }
  .vcard .vthumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .vcard .vthumb .play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
    color: var(--paper);
    font-size: 11px;
    transition: background 0.2s var(--ease-out);
  }
  .vcard:hover:not(.pending) .vthumb .play {
    background: rgba(181,67,15,0.55);
  }
  .vcard.pending {
    border-style: dashed;
    background: transparent;
  }
  .vcard.pending .vthumb {
    background: var(--paper-2);
  }
  .vcard.pending .vthumb .play {
    background: transparent;
    color: var(--faint);
    font-size: 14px;
  }
  .vcard .vmeta {
    display: flex; flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .vcard .vmeta .dow {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .vcard .vmeta .vtitle {
    font-family: var(--font-display);
    font-size: 12px; font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
  }
  .vcard.pending .vmeta .vtitle {
    font-style: italic;
    color: var(--faint);
  }
  .vcard.today { border-color: var(--accent); }
  .vcard.today .vmeta .dow { color: var(--accent); }
  .vcard .varrow {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 300;
    transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  }
  .vcard:hover:not(.pending) .varrow {
    color: var(--accent);
    transform: translate(1px, -1px);
  }
  .vcard.pending .varrow { display: none; }

  /* ====== FOOT ====== */
  .foot {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 24px; align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .foot .l, .foot .r {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .foot .r { text-align: right; }
  .foot .sig {
    font-family: var(--font-display);
    font-style: italic; font-weight: 300;
    font-size: 13px; color: var(--ink);
    text-align: center;
  }
  .foot .sig em { color: var(--accent); }

  /* ====== Center column composition ====== */
  .center { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

  /* ============================================================
     RESPONSIVE — mobile gets a natural-flow stacked layout
     Desktop / laptop (>=1024) keep the editorial scaled canvas
     Tablet (768-1023) keeps the scaled canvas at reduced ratio
     Phone (<768) switches to single-column flow with full content
     ============================================================ */

  @media (max-width: 767px) {
    /* Stage flows naturally — no transform scaling */
    .stage {
      width: 100% !important;
      height: auto !important;
      transform: none !important;
    }
    .stage-wrap {
      height: auto !important;
      min-height: auto !important;
      overflow: visible;
      display: block;
    }
    .frame {
      width: 100%;
      height: auto !important;
      padding: 14px 12px;
      gap: 14px;
      box-shadow: none;
      display: flex !important;
      flex-direction: column;
      grid-template-rows: none;
    }

    /* Header — single column, centered */
    .head {
      grid-template-columns: 1fr;
      gap: 10px;
      text-align: center;
      padding-bottom: 12px;
    }
    .head .l, .head .r { text-align: center; align-items: center; }
    .head .r {
      align-items: center;
    }
    .head .r .live { align-self: center; }

    /* Main grid — single column stack */
    .grid {
      display: flex;
      flex-direction: column;
      grid-template-columns: 1fr;
      gap: 14px;
    }
    /* Columns flow naturally on mobile — no grid sizing, no clipped panels */
    .col, .col.left, .col.right, .col.center {
      display: flex !important;
      flex-direction: column;
      gap: 14px;
      width: 100%;
      min-height: auto !important;
      height: auto !important;
      grid-template-rows: none !important;
    }
    .panel, .panel.flex-grow, .panel.tight {
      overflow: visible !important;
      min-height: auto !important;
      height: auto !important;
      flex: none !important;
    }
    .kpi-stack { flex: none; overflow: visible; }
    .kpi-card {
      overflow: visible;
      flex-shrink: 0;
      padding: 12px 4px;
    }
    .kpi-card .v {
      overflow: visible;
      flex-wrap: wrap;
      column-gap: 8px;
      row-gap: 2px;
    }

    /* Hero — single col, smaller display */
    .hero {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 12px;
      padding-bottom: 14px;
    }
    .hero h1 {
      font-size: clamp(40px, 11vw, 64px);
    }
    .hero .lede {
      text-align: left;
      max-width: 100%;
    }

    /* Verticals stay as 5-icon row in left panel */

    /* Week bar — vertical stack of day cards, no expansion mechanic */
    .week-wrap { gap: 0; }
    .week {
      display: flex !important;
      flex-direction: column;
      grid-template-columns: 1fr !important;
      transition: none !important;
    }
    .day {
      border-right: none;
      border-bottom: 1px solid var(--rule);
      flex: 1 1 auto !important;
      min-height: auto;
      min-width: 0;
      padding: 14px 16px;
    }
    .day:last-child { border-bottom: none; }
    /* Disable hover/active width transitions on touch screens */
    .day.active, .day:hover {
      transform: none;
    }
    .day .focus {
      -webkit-line-clamp: 3;
    }
    /* Items show full text on mobile — no ellipsis */
    .day .items li {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }
    /* Hide chevron buttons; week nav via swipe/scroll isn't worth wiring */
    .wnav { display: none; }

    /* Pipeline roadmap — 2 columns on phone */
    .rm-groups {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .rm-stages {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .rm-group .rm-stages {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rm-stage { min-height: 80px; }

    /* Video row — single column */
    .video-row {
      grid-template-columns: 1fr;
      gap: 6px;
    }
    .vcard {
      grid-template-columns: 80px 1fr auto;
    }
    .vcard .vthumb { width: 80px; height: 45px; }

    /* AI Toolkit — pills stay readable */
    .tk { font-size: 12px; }

    /* Foot stacks */
    .foot {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 6px;
    }
    .foot .l, .foot .r, .foot .sig { text-align: center; }

    /* Hover info-cards & day popovers — disable on touch */
    .tk .pill .info, .day .dpop { display: none !important; }
  }

  /* Even tighter on small phones */
  @media (max-width: 480px) {
    .frame { padding: 12px 10px; }
    .hero h1 { font-size: clamp(32px, 13vw, 48px); }
    .rm-stages { grid-template-columns: 1fr; }
    .rm-group .rm-stages { grid-template-columns: 1fr; }
    .verts-grid { gap: 0; }
    .kpi-card .v { font-size: 22px; }
    .head .c .ttl { font-size: 12px; letter-spacing: 0.24em; }
  }
