/* AlchemyLab
   Palette from the project: sky paper, azulejo blue ink, alchemy gold.
   The season colour bands are the one bold element; everything else stays quiet. */

:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #16204A;
  --muted: #56607E;
  --line: #D6DCE7;
  --accent: #2348A0;
  --accent-ink: #FFFFFF;
  --gold: #9A6F14;
  --danger: #A8352E;
  --focus: #2348A0;
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1528;
    --surface: #161E38;
    --ink: #E6EBF7;
    --muted: #A1AAC6;
    --line: #2C3759;
    --accent: #86A6F2;
    --accent-ink: #0F1528;
    --gold: #DDB45A;
    --danger: #F2928A;
    --focus: #A9C0F7;
    color-scheme: dark;
  }
}

  :root[data-theme="dark"] {
    --bg: #0F1528;
    --surface: #161E38;
    --ink: #E6EBF7;
    --muted: #A1AAC6;
    --line: #2C3759;
    --accent: #86A6F2;
    --accent-ink: #0F1528;
    --gold: #DDB45A;
    --danger: #F2928A;
    --focus: #A9C0F7;
    color-scheme: dark;
  }


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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); }
code { font-size: 0.92em; }

h1, h2 { margin: 0; }
h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.late { color: var(--danger); font-weight: 600; }
.danger { color: var(--danger); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ── Controls ─────────────────────────────────────────── */

label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }

input, select, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; }

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.08); }

.btn-link {
  font: inherit;
  font-size: 0.85rem;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.btn-link.danger { color: var(--danger); }

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.form-error { color: var(--danger); font-size: 0.88rem; margin: 0; min-height: 1.2em; }

/* ── Gate (login, messages) ───────────────────────────── */

.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card {
  width: min(400px, 100%);
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.gate-card p { margin: 0; }

.brand-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0;
  color: var(--ink);
}

/* ── Shell ────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
}
.brand { display: grid; gap: 2px; text-decoration: none; }
.brand-project { font-size: 0.85rem; color: var(--gold); font-weight: 600; }

.side nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side nav a, .nav-soon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.side nav a:hover { background: var(--surface); }
.side nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.nav-soon { color: var(--muted); }
.nav-soon small { font-size: 0.72rem; }

.side-foot { margin-top: auto; display: grid; gap: 4px; justify-items: start; overflow-wrap: anywhere; }

main#view { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1120px; width: 100%; min-width: 0; }
main#view:focus { outline: none; }

.page-head { display: grid; gap: 8px; margin-bottom: 32px; }
.page-head p { margin: 0; max-width: 70ch; }
.page-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

/* ── Home: the series ─────────────────────────────────── */

.series { overflow-x: auto; margin: 0 0 40px; padding-bottom: 4px; }
.series-inner { min-width: 760px; }
.series-track { position: relative; height: 132px; }

.season {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 10px 0 0;
  border-left: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.season-band { display: block; height: 14px; margin-bottom: 8px; border-radius: 0 3px 3px 0; }
.season.is-tbc { border-left-style: dashed; }
.season-num, .season-msg, .season-date { padding-left: 10px; }
.season-num { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.season-msg {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.season-date { font-size: 0.8rem; color: var(--muted); margin-top: auto; }
.season:hover .season-msg { text-decoration: underline; }

.today { position: absolute; top: -6px; bottom: 0; border-left: 2px solid var(--gold); pointer-events: none; }
.today span { position: absolute; top: -18px; left: -14px; font-size: 0.75rem; font-weight: 700; color: var(--gold); }

.series-months { position: relative; height: 26px; border-top: 1px solid var(--line); margin-top: 8px; }
.tick { position: absolute; top: 4px; font-size: 0.75rem; color: var(--muted); transform: translateX(-50%); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.warn-list, .task-list, .track-list { list-style: none; margin: 0; padding: 0; }

.warn { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.warn-title { font-weight: 600; }
.warn-strong .warn-title { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.82rem;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
a.chip:hover { border-color: var(--accent); }

.task { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.task input { margin-top: 3px; }
.task-main { display: grid; gap: 2px; }
.task-title { font-weight: 500; }
.task-due { display: grid; text-align: right; font-size: 0.9rem; }

/* ── Releases list ────────────────────────────────────── */

.rel-list { border-top: 1px solid var(--line); }
.rel-row {
  display: grid;
  grid-template-columns: 6px 96px minmax(0, 1.3fr) minmax(0, 1.2fr) 140px 120px;
  gap: 16px;
  align-items: center;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.rel-row:hover { background: var(--surface); }
.rel-swatch { align-self: stretch; border-radius: 3px; min-height: 40px; }
.rel-season { font-weight: 700; font-size: 0.9rem; }
.rel-title { display: grid; font-weight: 600; }
.rel-title small, .rel-date small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.rel-tracks { font-size: 0.9rem; color: var(--muted); }
.rel-date { display: grid; font-size: 0.9rem; }
.rel-status { text-align: right; }

/* ── Release detail ───────────────────────────────────── */

.back { display: inline-block; font-size: 0.9rem; margin-bottom: 20px; }
.rel-head { gap: 12px; }
.rel-band { display: block; height: 10px; width: min(320px, 60%); border-radius: 3px; }

.note {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  padding: 12px 16px;
  margin-bottom: 32px;
  max-width: 75ch;
}
.note p { margin: 4px 0 0; }

.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.block-head h2 { margin: 0; }
.block > p.small { margin: 0 0 16px; max-width: 75ch; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; }
.span-2 { grid-column: span 2; }
.check-row { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; color: var(--ink); font-weight: 500; }

.track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.track-title { font-weight: 600; }
.inline-label { display: flex; align-items: center; gap: 8px; }
.inline-label.grow { flex: 1; }
.inline-label.grow input { flex: 1; }
.add-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 16px; }
.add-row .inline-label { display: grid; }

.table-wrap { overflow-x: auto; }
table.tasks { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tasks th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tasks td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tasks td:first-child, .tasks th:first-child { padding-left: 0; width: 32px; }
.t-title { font-weight: 500; }
.t-date { white-space: nowrap; }
.t-date small { display: block; font-size: 0.8rem; }
.tasks tr.is-done .t-title { text-decoration: line-through; color: var(--muted); }
.tasks tr.is-late .t-title { color: var(--danger); }
input.offset { width: 84px; }

/* ── Toasts ───────────────────────────────────────────── */

#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 10; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }
.toast-error { background: var(--danger); color: #fff; }

/* ── Small screens ────────────────────────────────────── */

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side nav { order: 3; width: 100%; overflow-x: auto; }
  .side nav ul { display: flex; gap: 4px; }
  .nav-soon { display: none; }
  .side-foot { margin: 0 0 0 auto; grid-auto-flow: column; gap: 12px; align-items: center; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .rel-row { grid-template-columns: 6px 1fr auto; row-gap: 4px; }
  .rel-swatch { grid-row: span 4; }
  .rel-season { grid-column: 2; }
  .rel-title { grid-column: 2 / 4; }
  .rel-tracks { grid-column: 2 / 4; }
  .rel-date { grid-column: 2; }
  .rel-status { grid-column: 3; grid-row: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .track-row { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ═══════════ v2: seasons side by side, plan, panel, settings ═══════════ */

.nav-bottom { margin-top: 18px !important; padding-top: 12px !important; border-top: 1px solid var(--line); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--line);
  color: var(--ink);
  vertical-align: 1px;
  white-space: nowrap;
}
.season-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
em { font-style: normal; font-weight: 700; }

/* Season cards */
.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 270px);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
}
.cards > div { scroll-snap-align: start; display: flex; }
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px 18px;
  overflow: hidden;
}
.card-band { height: 12px; margin: 0 -18px; background: var(--season); }
.card-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.card-title { margin: 2px 0 0; font-weight: 600; }
.card-msg { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.card-date { display: grid; gap: 6px; }
.card-date input[type="date"] { font-weight: 600; width: 100%; }
.confirm { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.confirm input { width: 16px; height: 16px; }

.card-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card-tracks li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.star {
  font-size: 1.15rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--line);
  cursor: pointer;
}
.star:hover { color: var(--gold); border-color: var(--gold); }
.star.is-on { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

.card-progress { display: grid; gap: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--season); }

.card-next { display: grid; gap: 2px; min-height: 64px; }
.next-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Side panel */
.panel-wrap { position: fixed; inset: 0; z-index: 20; }
.panel-scrim { position: absolute; inset: 0; background: rgba(10, 16, 40, 0.35); }
.panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0; }
.panel-body { overflow-y: auto; padding: 20px 24px 40px; display: grid; gap: 18px; align-content: start; }
.panel-body p { margin: 0; }
.panel-section h3 { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.panel-tracks { list-style: none; margin: 0 0 10px; padding: 0; }
.panel-tracks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.panel-tracks li > span:first-child { flex: 1; font-weight: 500; }

.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.swatches legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--ink); font-weight: 500; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--focus); outline-offset: 3px; }
.swatch-name { font-size: 0.75rem; }

/* Plan */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.filter.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.show-done { margin-bottom: 8px; }

.month { margin-top: 28px; }
.month h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 4px; }
.month h2::first-letter { text-transform: uppercase; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-row {
  display: grid;
  grid-template-columns: 24px 74px minmax(0, 1fr) 170px auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.plan-main { display: grid; gap: 2px; }
.plan-title { font-weight: 500; line-height: 1.35; }
.plan-when { display: grid; gap: 2px; }
.plan-when input { padding: 5px 8px; font-size: 0.88rem; }
.plan-row.is-done .plan-title { text-decoration: line-through; color: var(--muted); }
.plan-row.is-late .plan-when input { border-color: var(--danger); color: var(--danger); }

.add-box { margin-top: 40px; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; }
.add-box h2 { margin-bottom: 12px; }
.add-box .add-row { margin-top: 0; }
.add-box label { display: grid; }
.add-box .grow { flex: 1; min-width: 200px; }
.add-box p { margin: 10px 0 0; }

/* Settings */
.settings-list { list-style: none; margin: 0 0 16px; padding: 0; max-width: 560px; }
.settings-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.settings-list li > span.small { margin-left: auto; }
.settings-list input[type="color"] { width: 44px; height: 36px; padding: 2px; }
.settings-list input:not([type]) { flex: 1; }

.switch { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left 0.15s; }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { left: 19px; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 860px) {
  .plan-row { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 6px; }
  .plan-row .season-tag { grid-column: 2; }
  .plan-row .plan-main { grid-column: 2 / 4; }
  .plan-row .plan-when { grid-column: 2; }
  .plan-row > .btn-link { grid-column: 3; grid-row: 1; }
  .side nav { display: flex; gap: 4px; }
  .side nav ul.nav-bottom { margin: 0 !important; padding: 0 !important; border: 0; }
}

/* ═══════════ Video ═══════════ */

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: start;
}
.vcol { background: color-mix(in srgb, var(--line) 35%, transparent); border-radius: 10px; padding: 12px; min-height: 180px; }
.vcol.is-over { box-shadow: inset 0 0 0 2px var(--accent); }
.vcol h2 { font-size: 0.9rem; margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.vcol-body { display: grid; gap: 10px; }
.vempty { margin: 4px; }

.vcard {
  display: grid;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 10px;
  overflow: hidden;
  cursor: grab;
}
.vcard.is-dragging { opacity: 0.5; }
.vcard-band { height: 6px; margin: 0 -12px 4px; background: var(--season); }
.vtype { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.vcard-title {
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.3;
}
.vcard-title:hover { text-decoration: underline; }
.vdates { line-height: 1.4; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.avatar {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.vmove { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.vseason { display: flex; gap: 6px; align-items: baseline; line-height: 1.35; }
.vseason .dot { transform: translateY(1px); }
.vcard { min-width: 0; overflow-wrap: anywhere; }
.vmove .btn-link { font-size: 0.78rem; text-decoration: none; }
.vmove .btn-link:hover { text-decoration: underline; }

/* Panel pieces */
.panel-form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 10px; }
.inline-add { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-add input { flex: 1; min-width: 160px; }
.inline-add.stack { display: grid; }
.inline-add.stack .btn { justify-self: start; }

.idea-list, .ref-list, .mat-list { list-style: none; margin: 0 0 10px; padding: 0; }
.idea-list li, .ref-list li, .mat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.idea-list li > div, .ref-list li > div { flex: 1; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vote {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 46px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.vote.is-on { color: var(--accent); border-color: var(--accent); }

.ref-list img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; background: var(--line); }
.ref-host {
  width: 96px;
  height: 54px;
  flex: none;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 4px;
  overflow: hidden;
}

.mat-name { flex: 1; font-weight: 500; }
.mat-status {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 92px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.mat-confirmed .mat-status { border-color: var(--accent); color: var(--accent); }
.mat-ready .mat-status { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mat-ready .mat-name { color: var(--muted); }

/* Video rows in the plan */
.plan-icon { font-size: 0.7rem; color: var(--muted); text-align: center; }
.tag-video { background: var(--ink); color: var(--bg); }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
}

/* ═══════════ Brani ═══════════ */

.tlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 220px 150px 150px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order { display: grid; justify-items: center; line-height: 1; }
.order .btn-link { text-decoration: none; font-size: 0.65rem; color: var(--muted); padding: 2px 6px; }
.order .btn-link:disabled { visibility: hidden; }
.order .btn-link:hover { color: var(--accent); }
.pos { font-family: var(--font-display); font-size: 1.2rem; }
.tmain { display: grid; gap: 3px; min-width: 0; }
.ttitle {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}
.ttitle:hover { text-decoration: underline; }
.tseasons { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

.stepper { display: flex; align-items: center; gap: 4px; }
.step {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.step.is-on { background: var(--accent); border-color: var(--accent); }
.step.is-current { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.step:hover { border-color: var(--accent); }
.step-label { margin-left: 8px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

.tdead { display: grid; }
.warnc { color: var(--gold); font-weight: 600; }

.tcheck {
  font: inherit;
  font-size: 0.8rem;
  display: grid;
  gap: 4px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}
.tcheck:hover { color: var(--accent); }
.mini-bar { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--accent); }

.ver-list, .split-list, .ready-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ver-list li, .split-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ver-list li > div { flex: 1; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.split-name { flex: 1; font-weight: 500; }
.split-share { font-weight: 700; min-width: 54px; text-align: right; }
.ready-list li { display: flex; gap: 8px; padding: 3px 0; color: var(--muted); }
.ready-list li.is-ok { color: var(--ink); }
.ready-list li.is-ok span { color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
  .trow { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .trow > .stepper, .trow > .tdead, .trow > .tcheck { grid-column: 2; }
}

/* ═══════════ v3: phases, visual layer, motion ═══════════ */

:root {
  --ph-music: #6E54C8;
  --ph-visual: #C9476A;
  --ph-publishing: #1F8A7A;
  --ph-launch: #D2741C;
  --ph-after: #5D6B8C;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ph-music: #A893F2;
    --ph-visual: #F08AA5;
    --ph-publishing: #5CCDBB;
    --ph-launch: #F2A65A;
    --ph-after: #A3B0CE;
  }
}

  :root[data-theme="dark"] {
    --ph-music: #A893F2;
    --ph-visual: #F08AA5;
    --ph-publishing: #5CCDBB;
    --ph-launch: #F2A65A;
    --ph-after: #A3B0CE;
  }

.pstep-music, .ptag-music, .phase-music, .pf-music { --pc: var(--ph-music); }
.pstep-visual, .ptag-visual, .phase-visual, .pf-visual { --pc: var(--ph-visual); }
.pstep-publishing, .ptag-publishing, .phase-publishing, .pf-publishing { --pc: var(--ph-publishing); }
.pstep-launch, .ptag-launch, .phase-launch, .pf-launch { --pc: var(--ph-launch); }
.pstep-after, .ptag-after, .phase-after, .pf-after { --pc: var(--ph-after); }

.ic { flex: none; display: inline-block; vertical-align: middle; }

/* Motion */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc) 45%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--pc) 0%, transparent); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes scrim-in { from { opacity: 0; } }

#view.view-enter > * { animation: fade-up .38s var(--ease) both; }
#view.view-enter > *:nth-child(2) { animation-delay: .04s; }
#view.view-enter > *:nth-child(3) { animation-delay: .08s; }
#view.view-enter > *:nth-child(4) { animation-delay: .12s; }
#view.view-enter > *:nth-child(n+5) { animation-delay: .16s; }
.view-enter .card, .view-enter .vmini, .view-enter .titem { animation: fade-up .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.toast { animation: toast-in .25s var(--ease) both; }
.panel { animation: panel-in .28s var(--ease) both; }
.panel-scrim { animation: scrim-in .2s ease both; }
.loading { animation: fade-up .3s .15s both; }

/* Navigation with groups and icons */
.nav-group { margin-bottom: 18px; }
.nav-group-title { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; }
.side nav a, .nav-soon { justify-content: flex-start; gap: 10px; align-items: center; transition: background .15s, color .15s; }
.side nav a .ic { color: var(--muted); transition: color .15s, transform .2s var(--ease); }
.side nav a:hover .ic { transform: translateX(1px); color: var(--ink); }
.side nav a[aria-current="page"] .ic { color: var(--gold); }
.nav-soon small { margin-left: auto; }
.nav-bottom { display: none; }

/* Phase tags */
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 13%, transparent);
  white-space: nowrap;
}
select.ptag-select {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  border: 0;
  padding: 4px 22px 4px 9px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 11px) 50%, calc(100% - 7px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  background-color: color-mix(in srgb, var(--pc) 13%, transparent);
}
.pfilter { color: var(--pc); }
.pfilter.is-on { background: color-mix(in srgb, var(--pc) 14%, var(--surface)); border-color: var(--pc); box-shadow: inset 0 0 0 1px var(--pc); }
.plan-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Phase path */
.ppath { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pstep { position: relative; display: flex; justify-content: center; }
.pstep > a, .pstep > .pnode { text-decoration: none; color: inherit; }
.pstep > a { display: grid; justify-items: center; gap: 4px; }
.ppath-big .pstep { display: grid; justify-items: center; gap: 4px; }
.pstep::before {
  content: "";
  position: absolute;
  top: 22px;
  right: calc(50% + 26px);
  left: calc(-50% + 26px);
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}
.pstep:first-child::before { display: none; }
.pstep.is-done::before, .pstep.is-current::before { background: var(--pc); transform-origin: left; animation: grow-x .5s var(--ease) both; }
.pnode { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3.5; }
.ring-fg {
  fill: none;
  stroke: var(--pc);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--off);
  animation: ring-in .9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.pnode-ic { position: relative; color: var(--pc); display: grid; place-items: center; }
.pstep.is-done .pnode { background: var(--pc); }
.pstep.is-done .pnode-ic { color: #fff; }
.pstep.is-done .ring { display: none; }
.pstep.is-current .pnode { animation: pulse 2.4s ease-in-out infinite; }
.pstep.is-empty .pnode-ic { color: var(--muted); opacity: .6; }
.plabel { font-size: 0.8rem; font-weight: 700; }
.pstep.is-current .plabel { color: var(--pc); }
.pcount { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pstep > a:hover .pnode { transform: translateY(-2px); }
.pnode { transition: transform .2s var(--ease); }

.ppath-mini .pstep::before { top: 11px; right: calc(50% + 12px); left: calc(-50% + 12px); height: 2px; }
.ppath-mini .pnode { width: 22px; height: 22px; }
.ppath-mini .ring-bg, .ppath-mini .ring-fg { stroke-width: 5; }
.ppath-mini .plabel, .ppath-mini .pcount { display: none; }
.ppath-mini .pstep { display: flex; }

/* Season cards (v3) */
.card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--ink) 60%, transparent); }
a.card-band { display: block; height: 14px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.countdown { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.countdown strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.card-phases { display: grid; gap: 8px; }
.btn-season { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-color: color-mix(in srgb, var(--season) 60%, var(--line)); }
.btn-season:hover { background: color-mix(in srgb, var(--season) 12%, var(--surface)); }
.btn-season .ic { transition: transform .2s var(--ease); }
.btn-season:hover .ic { transform: translateX(3px); }
.btn { display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s, transform .1s; }
.btn:active { transform: scale(.98); }

.star { display: inline-grid; place-items: center; transition: color .15s, border-color .15s, background .15s; }
.star .ic { fill: none; }
.star.is-on .ic { fill: currentColor; }
.star.pop { animation: pop .35s var(--ease); }

/* Season page hero */
.hero { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.hero-band { height: 18px; background: var(--season); }
.hero-body { display: flex; gap: 28px; justify-content: space-between; padding: 24px 28px 28px; flex-wrap: wrap; }
.hero-main { display: grid; gap: 12px; align-content: start; flex: 1 1 360px; justify-items: start; }
.hero-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--season) 16%, transparent);
  color: var(--ink);
}
.hero-side { display: grid; gap: 8px; align-content: start; min-width: 200px; }
.countdown-big { display: grid; line-height: 1; }
.cd-num { font-family: var(--font-display); font-size: 3.4rem; letter-spacing: -0.02em; }
.cd-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.path-nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); padding: 14px 0 12px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }

/* Phase sections */
.phase { padding: 28px 0 8px; scroll-margin-top: 110px; }
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.phase-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0; }
.phase-head p { margin: 0; }
.phase-ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
}
.phase.is-done .phase-ic { background: var(--pc); color: #fff; }
.phase-count { margin-left: auto; font-weight: 700; color: var(--pc); font-variant-numeric: tabular-nums; }
.phase-body { display: grid; gap: 14px; padding-left: 56px; border-left: 2px solid color-mix(in srgb, var(--pc) 25%, transparent); margin-left: 20px; padding-bottom: 12px; }

/* Task items with an animated tick */
.tlist2 { list-style: none; margin: 0; padding: 0; }
.titem { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.titem-main { display: grid; gap: 4px; }
.titem-title { font-weight: 500; line-height: 1.35; }
.titem-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.titem-when { display: grid; text-align: right; font-size: 0.9rem; }
.titem.is-done { opacity: .55; }
.titem.is-done .titem-title { text-decoration: line-through; }
.titem.is-late .titem-when > span:first-child { color: var(--danger); font-weight: 600; }

.tick { position: relative; width: 24px; height: 24px; cursor: pointer; display: grid; place-items: center; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tick-ui {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.tick:hover .tick-ui { border-color: var(--accent); }
.tick input:checked + .tick-ui { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop .3s var(--ease); }
.tick input:focus-visible + .tick-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.tick-static { color: var(--muted); cursor: default; }

.quick-add { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 10px; flex-wrap: wrap; }
.quick-add input[name="title"] { flex: 1; min-width: 180px; border-color: transparent; background: transparent; }
.quick-add input[name="title"]:focus { background: var(--surface); border-color: var(--line); }
.quick-add input[type="date"] { padding: 6px 8px; }
.qa-ic { color: var(--muted); display: grid; place-items: center; }

/* Music phase */
.mtracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mtracks li { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px; gap: 16px; align-items: center; padding: 8px 0; }
.mt-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.mt-title:hover { text-decoration: underline; }
.phase-music .step.is-on { background: var(--pc); border-color: var(--pc); }
.phase-music .step.is-current { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pc); }
.step { transition: background .2s, border-color .2s, transform .15s var(--ease); }
.step:hover { transform: scale(1.15); }

/* Visual phase */
.vminis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.vmini {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
.vmini:hover { transform: translateY(-2px); border-color: var(--pc); }
.vmini-title { font-weight: 700; line-height: 1.3; }
.vpill { justify-self: start; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ph-visual) 13%, transparent); color: var(--ph-visual); }
.vphase-approved .vpill { background: var(--ph-visual); color: #fff; }
.vmini-new { place-items: center; align-content: center; color: var(--muted); border-style: dashed; min-height: 88px; }
.vmini-new:hover { color: var(--ph-visual); }

.main-pick { display: grid; gap: 8px; }
.main-pick p { margin: 0; }

.soon-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 8%, var(--surface)); color: var(--pc); }
.soon-box strong { color: var(--ink); }
.soon-box p { margin: 2px 0 0; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-field { display: grid; gap: 4px; }
.link-field > span { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.link-field.is-ok > span { color: var(--pc); }
.link-field.is-ok input { border-color: color-mix(in srgb, var(--pc) 50%, var(--line)); }

/* Home */
.hello { margin: 0; font-size: 1rem; }
.now-card {
  display: grid;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 18px;
  margin-bottom: 32px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.now-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -24px color-mix(in srgb, var(--ink) 70%, transparent); }
.now-band { height: 14px; background: var(--season); }
.now-body { display: flex; justify-content: space-between; gap: 20px; padding: 6px 24px 0; flex-wrap: wrap; }
.now-main { display: grid; gap: 6px; }
.now-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.now-card .ppath { padding: 0 12px; }
.now-cta { padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.now-open { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.now-cta .ic { transition: transform .2s var(--ease); }
.now-card:hover .now-cta .ic { transform: translateX(3px); }

.home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.home-side { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 6px; }
.home-side .warn:first-child { border-top: 0; }
.wgroup { margin-bottom: 28px; }
.wgroup h2 { display: flex; align-items: center; gap: 8px; }
.count { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.wg-late h2 { color: var(--danger); }
.wg-late .count { background: var(--danger); color: #fff; }
.wg-week .count { background: var(--accent); color: var(--accent-ink); }
.calm { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.calm strong { color: var(--ink); }
.calm p { margin: 2px 0 0; }

@media (max-width: 960px) {
  .home-cols { grid-template-columns: 1fr; }
  .home-side { position: static; }
}
@media (max-width: 860px) {
  .nav-group { margin: 0; display: contents; }
  .nav-group-title { display: none; }
  .side nav { display: flex; gap: 4px; overflow-x: auto; }
  .side nav ul { display: flex; gap: 2px; }
  .side nav a { white-space: nowrap; }
  .phase-body { padding-left: 16px; margin-left: 8px; }
  .mtracks li { grid-template-columns: 1fr; gap: 6px; }
  .plabel { font-size: 0.68rem; }
  .ppath-big .pnode { width: 36px; height: 36px; }
  .ppath-big .pstep::before { top: 18px; right: calc(50% + 21px); left: calc(-50% + 21px); }
  .cd-num { font-size: 2.6rem; }
  .hero-body { padding: 18px; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side nav { min-width: 0; width: 100%; }
}

/* ═══════════ v4: status bar, team, visual ═══════════ */

/* Production status: labelled segments */
.sbar-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sbar { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.sseg {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.sseg:last-child { border-right: 0; }
.sseg:hover { background: color-mix(in srgb, var(--ph-music) 10%, transparent); color: var(--ink); }
.sseg.is-past { background: color-mix(in srgb, var(--ph-music) 16%, transparent); color: var(--ph-music); }
.sseg.is-current { background: var(--ph-music); color: #fff; font-weight: 700; }
.advance {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ph-music);
  background: transparent;
  color: var(--ph-music);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
button.advance:hover { background: var(--ph-music); color: #fff; transform: translateX(2px); }
.advance.is-final { border-color: transparent; background: color-mix(in srgb, var(--ph-music) 14%, transparent); cursor: default; }
.mtracks li { grid-template-columns: minmax(140px, 1fr) auto 130px; }
.trow { grid-template-columns: 34px minmax(0, 1fr) auto 140px 140px; }

/* People */
.avatar {
  flex: none;
  border-radius: 50%;
  background: var(--av, var(--accent));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  letter-spacing: .02em;
  margin: 0;
}
.avatar-empty { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); }
.who { position: relative; display: inline-grid; place-items: center; cursor: pointer; border-radius: 50%; }
.who select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0; }
.who:hover .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.who:focus-within .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); }
.titem { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
.plan-row { grid-template-columns: 24px 74px minmax(0, 1fr) 170px auto auto; }
.people-filter .filter { padding-left: 6px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { font: inherit; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button.is-on { background: var(--ink); color: var(--bg); }

.me { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.me:hover span { text-decoration: underline; }
.me-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; max-width: 520px; }
.me-row .grow { flex: 1; }
.team-me .inline-add { max-width: 520px; }
.people { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.people li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fade-up .35s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.person { flex: 1; display: grid; }
.steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; max-width: 70ch; }
.invite .inline-add { max-width: 640px; }

/* Type tags */
.ttag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 14%, transparent);
  white-space: nowrap;
  justify-self: start;
}
.ttag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }

/* Visual cards */
.vcard { padding: 0; gap: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--ink) 70%, transparent); border-color: color-mix(in srgb, var(--tc) 50%, var(--line)); }
.vcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vcover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 30%, var(--surface)), color-mix(in srgb, var(--season) 45%, var(--surface))); overflow: hidden; }
.vcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.vcard:hover .vcover img { transform: scale(1.04); }
.vcover-art { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--tc) 80%, var(--ink)); opacity: .75; }
.vcover-band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--season); }
.vcard-body { display: grid; gap: 6px; padding: 10px 12px; }
.vcard-title { font-weight: 700; line-height: 1.3; }
.vmeta { display: flex; align-items: center; gap: 10px; }
.vmeta > span { display: inline-flex; align-items: center; gap: 3px; }
.vmeta .avatar { margin-left: auto; }
.vmove { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); }
.vmove-hint { font-size: 0.72rem; color: var(--muted); text-align: center; }
.varrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.varrow:hover { transform: scale(1.08); border-color: var(--accent); color: var(--accent); }
.varrow-next { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.varrow-next:hover { color: var(--accent-ink); filter: brightness(1.1); }
.vcol h2 { align-items: center; justify-content: flex-start; gap: 8px; }
.vcol h2 .count { margin-left: auto; }
.vcol-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.vcd-preprod { background: #8CBBE6; }
.vcd-shooting { background: var(--ph-launch); }
.vcd-editing { background: var(--ph-music); }
.vcd-approved { background: var(--ph-publishing); }
.vmini .ttag { margin-bottom: 2px; }

@media (max-width: 860px) {
  .plan-row { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
  .plan-row .who { grid-column: 3; grid-row: 1; }
  .plan-row > .btn-link { grid-column: 4; grid-row: 1; }
  .trow { grid-template-columns: 34px minmax(0, 1fr); }
  .mtracks li { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sbar-wrap { min-width: 0; max-width: 100%; }
  .sbar { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sseg { padding: 5px 7px; }
  .mtracks li, .tmain { min-width: 0; }
}

/* ═══════════ v5: layered palette (light and dark) ═══════════
   Three depths: page < sidebar < cards. Soft white text, desaturated azulejo blue, warm gold. */
:root {
  --bg: #EDF1F7;
  --side: #E2E8F2;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --input: #FFFFFF;
  --line: #D2D9E5;
  --ink: #1B2340;
  --muted: #59627F;
  --accent: #2F55B0;
  --accent-ink: #FFFFFF;
  --gold: #946A12;
  --shadow: 0 1px 2px rgba(27, 35, 64, .06), 0 6px 18px -10px rgba(27, 35, 64, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131F;
    --side: #171B2B;
    --surface: #1F2438;
    --surface-2: #272D45;
    --input: #2A3150;
    --line: #353D5C;
    --ink: #E9EBF3;
    --muted: #A4ABC6;
    --accent: #93ABF4;
    --accent-ink: #10131F;
    --gold: #E2BA68;
    --danger: #F2958C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .7);
  }
}

  :root[data-theme="dark"] {
    --bg: #10131F;
    --side: #171B2B;
    --surface: #1F2438;
    --surface-2: #272D45;
    --input: #2A3150;
    --line: #353D5C;
    --ink: #E9EBF3;
    --muted: #A4ABC6;
    --accent: #93ABF4;
    --accent-ink: #10131F;
    --gold: #E2BA68;
    --danger: #F2958C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .7);
  }

.side { background: var(--side); border-right-color: var(--line); }
.side nav a[aria-current="page"], .side nav a:hover { background: var(--surface); }
input, select, textarea { background: var(--input); }
.card, .now-card, .hero, .vcard, .vmini, .home-side, .calm, .gate-card, .note { box-shadow: var(--shadow); }
.home-side { background: var(--surface-2); }
.home-side .chip { background: var(--surface); }
.vcol { background: var(--surface-2); border: 1px solid var(--line); }
.panel { background: var(--side); }
.filter, .seg, .sbar { background: var(--surface); }
.quick-add { background: color-mix(in srgb, var(--surface) 50%, transparent); }
.path-nav { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.titem { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.now-card .countdown-big .cd-num, .hero .cd-num { color: var(--ink); }
.stag { color: var(--ink); }
@media (max-width: 860px) {
  .side { border-bottom: 1px solid var(--line); }
}

/* ═══════════ v5: creative boards ═══════════ */

.studio-head { margin-bottom: 18px; }
.prod-head { margin-top: -6px; }
.vtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: background .2s, color .2s; }
.vtabs a:hover { color: var(--ink); }
.vtabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.studio { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
main#view:has(.studio) { max-width: none; }
.brail { position: sticky; top: 16px; display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); max-height: calc(100vh - 140px); overflow-y: auto; }
.brail-group { font-size: 0.78rem; font-weight: 700; color: var(--muted); padding: 12px 8px 4px; }
.brail-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.9rem; transition: background .15s; }
.brail-item:hover { background: var(--surface); }
.brail-item.is-on { background: var(--surface); box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.brail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brail-n { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 999px; padding: 1px 7px; }
.brail-empty { padding: 4px 8px; margin: 0; }
.dot-all { background: conic-gradient(var(--ph-music), var(--ph-visual), var(--ph-launch), var(--ph-publishing), var(--ph-music)); }

.bstage { display: grid; gap: 10px; min-width: 0; }
.bstage-head { position: relative; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 18px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bstage-band { position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--bp); }
.bstage-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin: 0; }
.bstage-head p { margin: 2px 0 0; }

/* the board */
.bwrap { position: relative; display: grid; gap: 8px; }
.btools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.btool { font: inherit; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.btool:hover { background: var(--surface-2); border-color: var(--line); }
.btool.icon { width: 32px; justify-content: center; padding: 6px 0; font-size: 1.05rem; }
.btool.zoomv { min-width: 58px; justify-content: center; font-variant-numeric: tabular-nums; }
.btool.danger { color: var(--danger); }
.bsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.bhint { margin-left: auto; padding-right: 8px; max-width: 46ch; line-height: 1.3; }

.bviewport {
  position: relative;
  height: calc(100vh - 290px);
  min-height: 480px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 35%, transparent) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
  outline: none;
}
.bviewport:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.bviewport.is-drop { box-shadow: inset 0 0 0 3px var(--accent); }
.bplane { position: relative; transform-origin: 0 0; }
.blinks { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.blink { pointer-events: stroke; cursor: pointer; }
.bline { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 2; stroke-linecap: round; }
.bhit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
.blink:hover .bline, .blink.is-sel .bline { stroke: var(--accent); stroke-width: 2.6; }
.barrow { fill: color-mix(in srgb, var(--ink) 55%, transparent); }
.btemp { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 6 6; }

.bempty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; color: var(--ink); }
.bempty p { margin: 6px 0 0; }

.bitem { position: absolute; touch-action: none; user-select: none; cursor: grab; border-radius: 10px; }
.bitem.is-dragging { cursor: grabbing; }
.bitem.is-sel { outline: 2px solid var(--accent); outline-offset: 3px; }
.bitem.is-target { outline: 2px dashed var(--accent); outline-offset: 5px; }
.bitem.is-new { animation: pop .35s var(--ease); }
.bitem.is-editing { cursor: text; user-select: text; }
.btext { white-space: pre-wrap; overflow-wrap: anywhere; outline: none; min-height: 1.3em; }
.btext:empty::before { content: attr(data-ph); color: color-mix(in srgb, currentColor 45%, transparent); }

.b-note {
  background: var(--nc);
  color: #1D2236;
  padding: 14px 16px 18px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 22px -12px rgba(0,0,0,.45);
  transform: rotate(var(--tilt));
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 4px 4px 14px 4px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.b-note.is-dragging { transform: rotate(0deg) scale(1.03); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); }
.b-note.is-editing { transform: none; }
.b-title { padding: 4px 6px; color: var(--ink); }
.b-title .btext { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.b-link, .b-image { background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.b-link img, .b-image img { display: block; width: 100%; height: auto; pointer-events: none; }
.bthumb { aspect-ratio: 16 / 9; object-fit: cover; }
.bhost { display: grid; place-items: center; aspect-ratio: 16 / 7; background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.bcap { padding: 8px 10px; display: grid; gap: 4px; font-size: 0.86rem; color: var(--ink); }
.bcap-empty:not(.is-editing *) .btext:empty::before { opacity: .0; }
.b-image:hover .bcap-empty .btext:empty::before, .b-image.is-sel .bcap-empty .btext:empty::before { opacity: 1; }
.bcap-empty { padding: 4px 10px; }
.bopen { font-size: 0.78rem; font-weight: 600; text-decoration: none; justify-self: start; cursor: pointer; }

.bport, .bresize { position: absolute; opacity: 0; transition: opacity .15s, transform .15s; }
.bitem:hover .bport, .bitem.is-sel .bport, .bitem:hover .bresize, .bitem.is-sel .bresize { opacity: 1; }
.bport { right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: crosshair; box-shadow: var(--shadow); }
.bport:hover { transform: scale(1.25); }
.bresize { right: -4px; bottom: -4px; width: 14px; height: 14px; cursor: nwse-resize; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); border-radius: 0 0 4px 0; }
.bitem.is-editing .bport, .bitem.is-editing .bresize { display: none; }

.bsel {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 18px 40px -20px rgba(0,0,0,.6);
  z-index: 3;
  animation: toast-in .2s var(--ease);
}
.bcolors { display: inline-flex; gap: 5px; padding: 0 6px 0 2px; border-right: 1px solid var(--line); margin-right: 2px; }
.bcolor { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--c); cursor: pointer; }
.bcolor.is-on { box-shadow: 0 0 0 2px var(--ink); }

.board-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background:
    radial-gradient(color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s var(--ease);
}
.board-cta:hover { border-color: var(--accent); transform: translateY(-1px); }
.board-cta > .ic { color: var(--accent); flex: none; }
.board-cta > span { display: grid; gap: 2px; }

/* Reference gallery */
.rgrid { columns: 4 240px; column-gap: 14px; margin-top: 8px; }
.rtile { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fade-up .4s var(--ease) both; animation-delay: calc(min(var(--i), 12) * 35ms); }
.rtile-media { position: relative; display: block; min-height: 90px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.rtile-media img { position: relative; display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.rtile:hover .rtile-media img { transform: scale(1.03); }
.rhost { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.rtile-media:has(img) .rhost { visibility: hidden; }
.rtile figcaption { display: grid; gap: 4px; padding: 10px 12px; font-size: 0.88rem; }
.rmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; }
  .brail { position: static; max-height: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .brail-group { display: none; }
  .bhint { display: none; }
  .bviewport { height: 70vh; }
}
.bempty[hidden], .bsel[hidden] { display: none; }
.bsel .btool { white-space: nowrap; }
@media (max-width: 1320px) { .bhint { display: none; } }
.b-image .bcap-empty { padding: 0; height: 0; overflow: hidden; }
.b-image.is-sel .bcap-empty, .b-image.is-editing .bcap-empty { padding: 6px 10px; height: auto; }
.b-image .bcap-empty .btext:empty::before { opacity: 1; }

/* ═══════════ v6: imagery ═══════════
   Every season has a picture: its cover, or a sky painted with its colours. Text sits on a soft shade. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient tint inside a season */
body.has-amb {
  background:
    radial-gradient(1100px 520px at 75% -8%, color-mix(in srgb, var(--amb) 22%, transparent), transparent 70%),
    radial-gradient(800px 500px at 10% 110%, color-mix(in srgb, var(--amb) 10%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.has-amb .path-nav { background: color-mix(in srgb, var(--bg) 82%, transparent); }

/* Shared: picture + grain + shade */
.scover, .hero-cover, .now-cover, .cover-preview { position: relative; background: var(--cover); overflow: hidden; isolation: isolate; }
.scover::after, .hero-cover::after, .now-cover::after, .cover-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.has-photo::after { opacity: .08; }
.scover-shade, .hero-shade, .cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0) 25%, rgba(10, 12, 24, .62) 100%);
}

/* Season cards */
.cards { grid-auto-columns: minmax(280px, 300px); gap: 20px; }
.scard { padding: 0; gap: 0; }
.scard .card-band { display: none; }
.scover { display: block; aspect-ratio: 4 / 3.4; text-decoration: none; color: #fff; }
.scover-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: grid; gap: 4px; }
.skicker { font-size: 0.8rem; font-weight: 700; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.stitle { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.08; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.spill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
}
.spill strong { font-family: var(--font-display); font-weight: 400; font-size: 1rem; }
.scover { transition: filter .3s; }
.scard:hover .scover { filter: saturate(1.12) brightness(1.04); }
.scard-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.snext { margin: 0; line-height: 1.4; }
.sdate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.sdate input[type="date"] { padding: 5px 8px; font-size: 0.88rem; }

/* Season hero */
.hero-cover { border: 0; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.hero-cover .hero-band { display: none; }
.hero-cover .hero-shade { background: linear-gradient(90deg, rgba(10, 12, 24, .62) 0%, rgba(10, 12, 24, .25) 55%, rgba(10, 12, 24, .5) 100%), linear-gradient(180deg, transparent 40%, rgba(10, 12, 24, .45)); }
.hero-cover .hero-body { position: relative; z-index: 2; width: 100%; padding: 28px 30px 26px; }
.hero-cover .display { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-shadow: 0 2px 20px rgba(0,0,0,.3); max-width: 18ch; }
.hero-cover .hero-kicker, .hero-cover .cd-label, .hero-cover .small, .hero-cover .confirm { color: rgba(255, 255, 255, .88); }
.hero-cover .cd-num { color: #fff; }
.hero-cover .stag { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .6); }
.hero-cover input[type="date"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; color-scheme: dark; }
.hero-cover .hero-tags { align-items: center; }

/* Home: next release */
.now-card .now-band { display: none; }
.now-cover { display: block; min-height: 190px; color: #fff; }
.now-over { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 24px; }
.now-over .now-main { display: grid; gap: 4px; }
.now-over .hero-kicker, .now-over .small, .now-over .cd-label { color: rgba(255, 255, 255, .88); }
.now-over .now-title { font-size: 2.2rem; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.now-over .cd-num { color: #fff; }
.now-card .ppath { padding-top: 4px; }

/* Cover picker */
.cover-preview { display: block; aspect-ratio: 16 / 9; border-radius: 12px; }
.cover-cap { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 2; display: grid; gap: 2px; color: #fff; font-size: 0.82rem; }
.cover-cap strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.cover-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.ccol { font: inherit; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ccol span { width: 24px; height: 24px; border-radius: 50%; background: var(--c); }
.ccol.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.drop-zone { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 2px dashed var(--line); cursor: pointer; color: var(--accent); transition: border-color .2s, background .2s; }
.drop-zone > span { display: grid; gap: 2px; color: var(--ink); }
.drop-zone:hover, .drop-zone.is-drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cover-opt { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 1; }
.cover-opt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.cover-opt:hover img { transform: scale(1.05); }
.cover-opt.is-on { border-color: var(--accent); }

@media (max-width: 860px) {
  .hero-cover { min-height: 260px; }
  .now-over .now-title { font-size: 1.6rem; }
}

/* ═══════════ v7: board tools ═══════════ */
:root { --bink: #3B4466; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bink: #C9CFE6; } }
 :root[data-theme="dark"] { --bink: #C9CFE6; } 

.bsizer { position: relative; }
.bplane { position: absolute; left: 0; top: 0; will-change: transform; }
.bviewport.tool-select { cursor: default; }
.bviewport.is-panning, .bviewport.tool-pan { cursor: grabbing; }
.bviewport.tool-note, .bviewport.tool-text, .bviewport.tool-rect, .bviewport.tool-ellipse,
.bviewport.tool-diamond, .bviewport.tool-arrow, .bviewport.tool-frame { cursor: crosshair; }
.bviewport:not(.tool-select) .bitem { cursor: crosshair; }

.btoolset { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--surface-2); }
.btool.tool { width: 36px; height: 34px; justify-content: center; padding: 0; color: var(--muted); }
.btool.tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btool.is-on { background: var(--ink); color: var(--bg); }
.bseg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--surface-2); }

/* items: content in .bbody (clipped), handles outside (never clipped) */
.bitem { overflow: visible; }
.b-link, .b-image { background: none; border: 0; box-shadow: none; overflow: visible; }
.b-link .bbody, .b-image .bbody { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.b-note .bbody { height: 100%; }
.b-note { display: flex; flex-direction: column; }

.b-text { color: var(--ink); padding: 2px 4px; }
.b-text.size-s .btext { font-size: 0.92rem; line-height: 1.45; }
.b-text.size-m .btext { font-size: 1.25rem; line-height: 1.35; }
.b-text.size-l .btext { font-size: 1.85rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

.b-shape .bbody { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.bshape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bshape > * { fill: var(--fill); stroke: var(--stroke); stroke-width: 2; vector-effect: non-scaling-stroke; }
.b-shape .btext { position: relative; z-index: 1; text-align: center; padding: 10px 14px; color: #1D2236; font-weight: 600; max-width: 100%; }
.b-shape[style*="--fill:transparent"] .btext { color: var(--ink); }
.shape-diamond .btext { padding: 10px 22%; }
.shape-frame .bbody {
  background: color-mix(in srgb, var(--fill) 18%, transparent);
  border: 2px dashed color-mix(in srgb, var(--stroke) 60%, transparent);
  border-radius: 14px;
  place-items: start;
}
.bframe-label { padding: 10px 14px !important; text-align: left !important; font-family: var(--font-display); font-weight: 400 !important; font-size: 1.3rem; color: var(--ink) !important; }

.bresize {
  opacity: 0;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
  z-index: 3;
}
.bport { z-index: 3; }
.bitem.is-sel .bresize, .bitem:hover .bresize { opacity: 1; }
.b-note { padding: 0; }
.b-note .bbody { padding: 14px 16px 18px; }

/* free arrows and connectors */
.bover { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 2147483000; }
.bover .bhit { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: move; }
.bfree { stroke-width: 2.4; stroke-linecap: round; fill: none; }
.bfree.dash, .bline.dash { stroke-dasharray: 7 7; }
.barrow-item.is-sel .bfree { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 70%, transparent)); }
.bend { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; pointer-events: all; cursor: grab; }
.bghost-line { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 6 6; opacity: 0; }
.bghost-line.on { opacity: 1; }
.bghost { position: absolute; border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; pointer-events: none; }
.bghost.ghost-ellipse { border-radius: 50%; }
.bghost.ghost-diamond { border-radius: 0; transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bline { stroke: var(--bink); }
.blabel { font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--surface-2); stroke-width: 5px; stroke-linejoin: round; }

.bcolor-none { background: linear-gradient(135deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%), var(--surface) !important; }
.bsel { max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }

/* ═══════════ v8: colour moods ═══════════
   Every page sits on a soft wash of three colours: the project palette, or the season's. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 680px at 92% -6%, color-mix(in srgb, var(--amb1, #8CBBE6) 55%, transparent), transparent 70%),
    radial-gradient(820px 620px at -6% 40%, color-mix(in srgb, var(--amb2, #C2952B) 38%, transparent), transparent 70%),
    radial-gradient(1000px 660px at 60% 112%, color-mix(in srgb, var(--amb3, #8CC59A) 44%, transparent), transparent 70%);
  background-attachment: fixed;
  transition: background-color .4s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-image:
      radial-gradient(900px 620px at 92% -6%, color-mix(in srgb, var(--amb1, #8CBBE6) 36%, transparent), transparent 70%),
      radial-gradient(760px 560px at -6% 40%, color-mix(in srgb, var(--amb2, #C2952B) 24%, transparent), transparent 70%),
      radial-gradient(900px 600px at 60% 112%, color-mix(in srgb, var(--amb3, #8CC59A) 28%, transparent), transparent 70%);
  }
}

  :root[data-theme="dark"] body {
    background-image:
      radial-gradient(900px 620px at 92% -6%, color-mix(in srgb, var(--amb1, #8CBBE6) 36%, transparent), transparent 70%),
      radial-gradient(760px 560px at -6% 40%, color-mix(in srgb, var(--amb2, #C2952B) 24%, transparent), transparent 70%),
      radial-gradient(900px 600px at 60% 112%, color-mix(in srgb, var(--amb3, #8CC59A) 28%, transparent), transparent 70%);
  }

body.has-amb { background: none; }
.side { background: color-mix(in srgb, var(--side) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.path-nav { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Lighter covers: shade only where text sits */
.scover-shade, .cover-shade { background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 24, .42) 100%); }
.has-photo .scover-shade { background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 24, .38) 100%); }
.hero-cover .hero-shade { background: linear-gradient(90deg, rgba(10, 12, 24, .34) 0%, rgba(10, 12, 24, .06) 50%, rgba(10, 12, 24, .22) 100%), linear-gradient(180deg, transparent 55%, rgba(10, 12, 24, .22)); }
.now-cover .hero-shade { background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 24, .4) 100%); }
.hero-cover .display, .stitle, .now-over .now-title { text-shadow: 0 1px 2px rgba(0,0,0,.25), 0 4px 22px rgba(0,0,0,.35); }
.hero-cover .hero-kicker, .hero-cover .small, .hero-cover .confirm, .hero-cover .cd-label { text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* Season phases: one colour each, from the season palette */
.phase {
  position: relative;
  margin: 18px 0;
  padding: 22px 24px 18px;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 42%, var(--surface)), color-mix(in srgb, var(--tone) 20%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--tone) 60%, var(--line));
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
  overflow: hidden;
}
.phase::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.phase > * { position: relative; z-index: 1; }
.phase-ic { background: var(--tone); color: #1D2236; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--tone) 80%, black); }
.phase.is-done .phase-ic { background: var(--tone); color: #1D2236; }
.phase-count { color: var(--ink); background: color-mix(in srgb, var(--tone) 35%, transparent); padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; }
.phase-body { border-left-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.phase .titem { border-bottom-color: color-mix(in srgb, var(--tone) 25%, var(--line)); }
.phase .quick-add { background: color-mix(in srgb, var(--surface) 55%, transparent); border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); }
.phase .vmini, .phase .board-cta, .phase .soon-box, .phase .link-field input { background: color-mix(in srgb, var(--surface) 78%, transparent); }
.phase .sbar { background: color-mix(in srgb, var(--surface) 80%, transparent); }

/* Tracks: each row wears the colours of its season */
.tlist { border-top: 0; display: grid; gap: 10px; }
.trow {
  border: 1px solid color-mix(in srgb, var(--tone) 38%, var(--line));
  border-radius: 16px;
  padding: 12px 16px 12px 10px;
  background:
    radial-gradient(90% 160% at 0% 50%, color-mix(in srgb, var(--tone) 62%, transparent), transparent 72%),
    linear-gradient(110deg, color-mix(in srgb, var(--tone) 34%, var(--surface)), color-mix(in srgb, var(--tone2) 26%, var(--surface)));
  box-shadow: var(--shadow);
}
.trow .pos { color: var(--ink); }
.trow .tcheck .mini-bar { background: color-mix(in srgb, var(--tone) 30%, var(--line)); }
.view-enter .trow { animation: fade-up .38s var(--ease) both; animation-delay: calc(min(var(--i), 14) * 30ms + 60ms); }

/* Calm tinted surfaces on other pages */
.home-side, .wgroup .calm { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vcol { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }

/* Board save badge */
.bsave { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--muted); }
.bsave-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FB27F; }
.bsave.is-busy .bsave-dot { background: var(--gold); animation: pulse-dot 1s ease-in-out infinite; }
.bsave.is-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); font-weight: 600; }
.bsave.is-error .bsave-dot { background: var(--danger); }
@keyframes pulse-dot { 50% { opacity: .35; } }

/* Theme switch */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; }
.theme-switch button { width: 30px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .theme-switch { margin: 0; } }
.bworld { position: absolute; width: 0; height: 0; }
.bviewport { background-attachment: local; }
.danger-zone { margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.danger-zone h3 { color: var(--danger); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ═══════════ v9: season mood ═══════════ */

/* Mood ribbon under the season hero */
.mood { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin: -8px 0 6px; scrollbar-width: thin; }
.mood-tile {
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(calc((var(--i) - 4) * 0.35deg));
  transition: transform .25s var(--ease), box-shadow .25s;
  background: var(--surface-2);
}
.mood-tile:nth-child(3n) { width: 176px; }
.mood-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-tile:hover { transform: translateY(-4px) rotate(0deg) scale(1.03); z-index: 1; }
.mood-more { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent); border: 2px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--surface) 70%, transparent); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.mood-empty { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: -6px 0 14px; border-radius: 16px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); text-decoration: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.mood-empty > span { display: grid; gap: 2px; color: var(--ink); }

/* Phases open with a photo band */
.phase { padding: 0; }
.phase-banner {
  position: relative;
  margin: 0;
  min-height: 150px;
  padding: 20px 22px 16px;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12, 14, 26, .08) 0%, rgba(12, 14, 26, .5) 100%),
    linear-gradient(110deg, color-mix(in srgb, var(--tone) 80%, #1D2236) 0%, color-mix(in srgb, var(--tone) 45%, transparent) 55%, transparent 100%),
    var(--photo) center / cover no-repeat,
    linear-gradient(120deg, color-mix(in srgb, var(--tone) 85%, #1D2236), color-mix(in srgb, var(--tone) 60%, #1D2236));
  overflow: hidden;
}
.phase-banner.has-photo { min-height: 190px; }
.phase-banner::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.phase-banner > * { position: relative; z-index: 1; }
.phase-banner h2 { color: #fff; font-size: 1.9rem; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.phase-banner .small { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.phase-banner .phase-ic { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; }
.phase.is-done .phase-banner .phase-ic { background: #fff; color: #1D2236; }
.phase-banner .phase-count { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.phase-titles { flex: 1; }
.phase-photo-btn { font-size: 0.8rem; padding: 6px 10px; opacity: .85; }
.phase-banner:hover .phase-photo-btn { opacity: 1; }
.phase > .phase-body { margin: 18px 22px 20px 30px; }

.pick-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-modes .btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 860px) {
  .phase-banner { min-height: 130px; flex-wrap: wrap; }
  .phase > .phase-body { margin: 14px 14px 16px 18px; }
  .mood-tile { width: 104px; height: 104px; }
  .mood-tile:nth-child(3n) { width: 130px; }
}
.btools[hidden] { display: none; }
.bwrap.is-readonly .bviewport { height: min(62vh, 560px); min-height: 380px; cursor: grab; }
.bwrap.is-readonly .bport, .bwrap.is-readonly .bresize, .bwrap.is-readonly .bend { display: none; }
.bwrap.is-readonly .bitem { cursor: grab; }
.bedit { margin-left: auto; text-decoration: none; }

/* ═══════════ v10: season layout, calendar, avatars ═══════════ */

/* Timeline opens one phase */
.path-nav { display: grid; gap: 6px; }
.path-hint { margin: 0; text-align: center; min-height: 1em; }
.path-nav .pstep > a { border-radius: 14px; padding: 6px 4px; transition: background .2s; }
.path-nav .pstep > a:hover { background: color-mix(in srgb, var(--pc) 10%, transparent); }
.path-nav .pstep.is-open > a { background: color-mix(in srgb, var(--pc) 16%, var(--surface)); box-shadow: inset 0 0 0 2px var(--pc); }
.path-nav .pstep.is-open .plabel { color: var(--pc); }
.phase-stage:empty { display: none; }
.phase:not([hidden]) { animation: fade-up .3s var(--ease) both; }

/* Season board under the timeline */
.season-board { margin-top: 22px; }
.season-board-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.season-board-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.season-board-head p { margin: 0; }

/* Avatars with photos */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--line); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-photo { position: relative; cursor: pointer; border-radius: 50%; flex: none; }
.me-photo .avatar { font-size: 1.1rem; }
.me-photo-edit { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--bg); }
.me-photo:hover .avatar { filter: brightness(.9); }
.who-named { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 3px 10px 3px 3px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.who-named .who-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.who-named:hover { border-color: var(--accent); }
.who-named:hover .avatar { box-shadow: none; }

/* ── Calendar: quiet header, list rows with people, week and month grids */
.cal-head { align-items: center; }
.cal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; }
.btn-quiet:hover { background: var(--surface); }
.btn-quiet.is-open { background: var(--surface); border-color: var(--ink); }
.icon-only { width: 34px; justify-content: center; padding: 6px 0; font-size: 1.1rem; }
.fcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.7rem; }
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  padding: 14px 16px;
  margin: -14px 0 22px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  animation: fade-up .2s var(--ease) both;
}
.cal-filters[hidden] { display: none; }
.cal-filters label { min-width: 160px; }
.cal-filters .confirm { min-width: 0; align-self: center; padding-top: 18px; }

.clist { list-style: none; margin: 0; padding: 0; }
.crow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(130px, 200px) 110px;
  gap: 14px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.crow:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 10px; }
.crow-main { font: inherit; display: grid; gap: 3px; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; min-width: 0; }
.crow-title { font-weight: 600; line-height: 1.35; }
.crow-main:hover .crow-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crow-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdot { width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; background: var(--muted); }
.pd-music { background: var(--ph-music); } .pd-visual { background: var(--ph-visual); } .pd-publishing { background: var(--ph-publishing); }
.pd-launch { background: var(--ph-launch); } .pd-after { background: var(--ph-after); }
.crow .who-name { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; min-width: 0; }
.crow .who-name > span:last-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-pick { position: relative; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid transparent; justify-self: start; }
.who-pick:hover { border-color: var(--line); background: var(--surface); }
.who-pick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crow-when { display: grid; text-align: right; font-size: 0.9rem; }
.crow.is-done .crow-title { text-decoration: line-through; color: var(--muted); }
.crow.is-late .crow-when > span:first-child { color: var(--danger); font-weight: 600; }

.cal-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.cal-label { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 0 10px; }

.cchip {
  font: inherit;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 6px 4px 8px;
  border: 0;
  border-left: 3px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.cchip:hover { background: var(--surface); box-shadow: var(--shadow); }
.cchip-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchip.is-done .cchip-t { text-decoration: line-through; color: var(--muted); }
.cchip.is-late { color: var(--danger); }
.cchip .avatar { flex: none; font-size: 0.5rem; }

.cweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cday { min-height: 280px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); display: grid; align-content: start; gap: 8px; }
.cday-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 0.8rem; text-transform: capitalize; }
.cday-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.cday-list { display: grid; gap: 4px; }
.cday.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.cmonth { border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.cmdow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.cmdow span { padding: 8px 10px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.cmgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cmcell { min-height: 112px; padding: 6px; display: grid; align-content: start; gap: 3px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); background: color-mix(in srgb, var(--surface) 35%, transparent); }
.cmcell:nth-child(7n + 1) { border-left: 0; }
.cmcell.is-out { background: transparent; }
.cmcell.is-out .cmnum { opacity: .4; }
.cmnum { font-size: 0.8rem; font-weight: 600; color: var(--muted); padding: 0 2px 2px; }
.cmcell.is-today .cmnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); padding: 0; }
.cmore { font: inherit; font-size: 0.72rem; color: var(--muted); background: none; border: 0; text-align: left; padding: 2px 4px; cursor: pointer; }
.cmore:hover { color: var(--accent); }

.dtitle { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0; }
.big-check { font-size: 1rem; }
.dactions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .crow { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .crow .who-name { grid-column: 2; grid-row: 2; }
  .crow-when { grid-column: 3; grid-row: 1 / span 2; }
  .cweek { grid-template-columns: 1fr; }
  .cday { min-height: 0; }
  .cmcell { min-height: 70px; }
  .cmcell .cchip-t { display: none; }
}

/* ═══════════ v11: mood kit, brand, storytelling, visual bar, soft filters ═══════════ */

/* Hybrid colours in phases */
.phase {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 70%),
    radial-gradient(110% 130% at 100% 100%, color-mix(in srgb, var(--tone2, var(--tone)) 55%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 40%, var(--surface)), color-mix(in srgb, var(--tone2, var(--tone)) 24%, var(--surface)));
}
.phase-banner {
  background:
    linear-gradient(180deg, rgba(12, 14, 26, .06) 0%, rgba(12, 14, 26, .48) 100%),
    linear-gradient(110deg, color-mix(in srgb, var(--tone) 80%, #1D2236) 0%, color-mix(in srgb, var(--tone2, var(--tone)) 45%, transparent) 55%, transparent 100%),
    var(--photo) center / cover no-repeat,
    linear-gradient(120deg, color-mix(in srgb, var(--tone) 85%, #1D2236), color-mix(in srgb, var(--tone2, var(--tone)) 70%, #1D2236));
}
.stag-kw { font-style: italic; }

/* Mood call to action */
.mood-cta {
  font: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  margin: -12px 0 18px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(110deg, color-mix(in srgb, var(--amb1) 30%, var(--surface)), color-mix(in srgb, var(--amb2) 26%, var(--surface)));
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease);
}
.mood-cta:hover { transform: translateY(-2px); }
.mood-cta > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.mood-cta-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }

/* Wizard */
.wiz-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.wiz-scrim { position: absolute; inset: 0; background: rgba(10, 12, 26, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: scrim-in .2s both; }
.wiz {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  overflow: hidden;
  animation: fade-up .3s var(--ease) both;
}
.wiz-head { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wiz-kicker { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.wiz-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.wiz-steps { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.wiz-steps button { font: inherit; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.wiz-steps button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.72rem; }
.wiz-steps li.is-on button { background: var(--ink); color: var(--bg); }
.wiz-steps li.is-on button span { background: var(--bg); color: var(--ink); }
.wiz-steps li.is-past button span { background: var(--accent); color: var(--accent-ink); }
.wiz-body { overflow-y: auto; padding: 24px 26px; }
.wiz-pane { display: grid; gap: 14px; animation: fade-up .25s var(--ease) both; }
.wiz-lead { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; margin: 0 0 4px; }
.wiz-big { font-size: 1.3rem; padding: 12px 14px; }
.wiz-sub { margin: 10px 0 0; font-size: 1rem; }
.wiz-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.wiz-help { flex: 1; text-align: center; }
.kw-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); }
.kw-box input { border: 0; background: transparent; flex: 1; min-width: 140px; padding: 4px; }
.kw-box input:focus { outline: none; }
.kw { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-size: 0.85rem; font-weight: 600; }
.kw button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 0 0 2px; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.wiz-img, .wiz-up { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.wiz-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.wiz-img:hover img { transform: scale(1.05); }
.wiz-img.is-on { border-color: var(--accent); }
.wiz-n { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; }
.wiz-up { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent); border: 2px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); font-weight: 600; }
.mcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mcol { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mcol-swatch { height: 92px; border-radius: 10px; display: flex; align-items: flex-end; padding: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mcol-name { width: 100%; font-size: 0.8rem; padding: 4px 6px; background: rgba(255,255,255,.7); border: 0; border-radius: 6px; color: #1D2236; }
.mcol-row { display: flex; align-items: center; gap: 8px; }
.mcol-row input[type="color"] { width: 36px; height: 30px; padding: 2px; }
.mcol-row code { font-size: 0.78rem; color: var(--muted); }
.mramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.mramp button, .mramp span { height: 22px; border-radius: 5px; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mramp button:hover { transform: scale(1.08); }
.mcol-add { place-content: center; justify-items: center; min-height: 200px; cursor: pointer; color: var(--accent); border-style: dashed; font: inherit; font-weight: 600; }
.mphases { display: grid; gap: 8px; }
.mphase { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mphase-name { width: 120px; font-weight: 600; }
.mphase-pick { display: flex; gap: 6px; }
.mphase-pick button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.mphase-pick button.is-on { box-shadow: 0 0 0 2px var(--ink); }
.mprev { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.mprev-hero { position: relative; min-height: 220px; background: var(--cover); display: flex; align-items: flex-end; }
.mprev-hero .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,12,24,.55)); }
.mprev-text { position: relative; z-index: 1; display: grid; gap: 4px; padding: 18px 20px; color: #fff; }
.mprev-text strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.mprev-text em { opacity: .9; }
.mprev-kws { display: flex; gap: 6px; flex-wrap: wrap; }
.mprev-kws span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 0.8rem; }
.mprev-strip { display: flex; gap: 6px; padding: 10px; overflow: hidden; }
.mprev-strip img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.mprev-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 10px 12px; }
.mprev-phases > div { display: grid; gap: 6px; padding: 12px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 0.85rem; background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 85%, #1D2236), color-mix(in srgb, var(--tone2) 75%, #1D2236)); }

/* Brand */
.brand-artist { padding: 20px 22px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 30px; }
.brand-artist h2, .brand-seasons-title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 14px; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.brand-sub { margin: 20px 0 10px; font-size: 1rem; }
.brand-pal { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.bpal { display: grid; gap: 6px; width: 170px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bpal-sw { height: 56px; border-radius: 10px; }
.bpal input[type="color"] { width: 100%; height: 30px; padding: 2px; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.bcard { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fade-up .35s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.bcard-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--cover); color: #fff; text-decoration: none; }
.bcard-title { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2; display: grid; gap: 2px; }
.bcard-title strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.bcard-state { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,.85); color: #1D2236; }
.bcard-state.is-done { background: #3FB27F; color: #fff; }
.bcard-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.bcard-pal { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.bcard-pal span { flex: 1; }
.kw-line { display: flex; flex-wrap: wrap; gap: 6px; }
.bcard-log { margin: 0; font-style: italic; color: var(--muted); }
.bcard-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bcard-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.bcard-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Storytelling */
.story-head { position: relative; min-height: 220px; border-radius: 20px; overflow: hidden; background: var(--cover); display: flex; align-items: flex-end; margin-bottom: 26px; box-shadow: var(--shadow); }
.story-head .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,24,.05), rgba(10,12,24,.55)); }
.story-head-in { position: relative; z-index: 1; display: grid; gap: 6px; width: 100%; padding: 22px 26px; color: #fff; }
.story-head .hero-kicker { color: rgba(255,255,255,.9); }
.story-log { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; color: #fff; background: transparent; border: 0; border-bottom: 1px dashed rgba(255,255,255,.4); border-radius: 0; padding: 4px 0; resize: none; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.story-log::placeholder { color: rgba(255,255,255,.7); }
.story-log:focus { outline: none; border-bottom-color: #fff; }
.story-saved { color: rgba(255,255,255,.85); }
.story-sec { margin-bottom: 30px; }
.story-sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.story-sec-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.story-sec-head p { margin: 0; }
.beats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; }
.beat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 48%, var(--surface)), color-mix(in srgb, var(--tone) 18%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--tone) 55%, var(--line));
  box-shadow: var(--shadow);
  animation: fade-up .35s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.beat header { display: flex; align-items: center; gap: 10px; }
.beat-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #1D2236; font-weight: 800; }
.beat-title { flex: 1; font-family: var(--font-display); font-size: 1.2rem; background: transparent; border: 0; border-bottom: 1px dashed transparent; border-radius: 0; padding: 2px 0; }
.beat-title:focus { outline: none; border-bottom-color: var(--ink); }
.beat textarea { background: color-mix(in srgb, var(--surface) 70%, transparent); resize: vertical; }
.beat-takes { display: flex; flex-wrap: wrap; gap: 6px; }
.beat-take { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 999px; background: var(--surface); font-size: 0.8rem; }
.beat-take a { color: var(--ink); text-decoration: none; font-weight: 600; }
.beat-take button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.beat-takes select { font-size: 0.8rem; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.beat footer { display: flex; justify-content: space-between; }
.beat footer .btn-link { text-decoration: none; font-size: 1rem; }
.beat-add { place-content: center; justify-items: center; min-height: 220px; cursor: pointer; color: var(--accent); background: color-mix(in srgb, var(--surface) 60%, transparent); border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); font: inherit; font-weight: 600; }
.beats-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px dashed var(--line); }
.beats-empty p { margin: 0; flex: 1 1 100%; }
.scripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.script { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.script header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.script header strong { flex: 1; }
.script header select { font-size: 0.8rem; padding: 4px 8px; }
.script textarea { font-size: 0.92rem; line-height: 1.55; resize: vertical; }
.script-beat { margin: 0; }

/* Story strip (season page, boards) */
.sstrip { display: grid; gap: 12px; }
.sstrip-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.sstrip-log { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; flex: 1; }
.sstrip-beats { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; }
.sstrip-beats li { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 42%, var(--surface)), color-mix(in srgb, var(--tone) 14%, var(--surface))); }
.sb-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #1D2236; font-size: 0.75rem; font-weight: 800; }
.sb-takes { color: var(--muted); }
.sstrip-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); text-decoration: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.sstrip-empty > span { display: grid; gap: 2px; color: var(--ink); }
.season-story { margin-top: 26px; }
.tstory { border-radius: 14px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); }
.tstory summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; }
.tstory summary::-webkit-details-marker { display: none; }
.tstory summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.tstory[open] summary::after { transform: rotate(180deg); }
.tstory-in { padding: 4px 14px 14px; display: grid; gap: 10px; justify-items: start; }
.tstory-in > .sstrip { width: 100%; }
.tstory-beat { margin: 0; font-style: italic; color: var(--muted); }
.tstory-script { margin: 0; white-space: pre-wrap; font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.55; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); width: 100%; max-height: 220px; overflow: auto; }

/* Visual: horizontal bar of boards */
.studio { display: block; }
.bbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; position: relative; z-index: 6; }
.bbar-item { position: relative; }
.bbar-btn { font: inherit; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.bbar-btn:hover { border-color: var(--muted); }
.bbar-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.caret { font-size: 0.7rem; opacity: .7; }
.bbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.5);
  display: grid;
  gap: 2px;
  animation: menu-in .18s var(--ease) both;
  transform-origin: top left;
}
.bbar-menu.to-left { left: auto; right: 0; transform-origin: top right; }
.bbar-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.bbar-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.bbar-menu a span:not(.dot) { flex: 1; }
.bbar-menu a em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.bbar-menu a:hover, .bbar-menu a.is-on { background: var(--surface-2); }
.bbar-menu a.is-on { font-weight: 700; }
.bbar-sep { font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; }
.bbar-empty { padding: 4px 10px; }
.bbar-new { color: var(--accent) !important; }
.bstage { gap: 12px; }

/* Calendar: soft filter sheet */
.fsheet {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  margin: -16px 0 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -30px rgba(0,0,0,.45);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transform-origin: top;
  animation: sheet-in .28s var(--ease) both;
}
.fsheet[hidden] { display: none; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scaleY(.96); } }
.fgroup { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
.flabel { font-size: 0.8rem; color: var(--muted); padding-top: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  font: inherit;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.fchip:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.fchip.is-on { background: var(--surface); border-color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.fdot.pd-music { background: var(--ph-music); } .fdot.pd-visual { background: var(--ph-visual); } .fdot.pd-publishing { background: var(--ph-publishing); }
.fdot.pd-launch { background: var(--ph-launch); } .fdot.pd-after { background: var(--ph-after); }
.fchip .avatar { font-size: 0.5rem; }
.ffoot { display: flex; align-items: center; gap: 16px; padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ffoot #close-filters { margin-left: auto; }
.fswitch { display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink); font-weight: 500; cursor: pointer; }
.fswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fswitch-ui { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .2s; }
.fswitch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: left .2s var(--ease); }
.fswitch input:checked + .fswitch-ui { background: var(--accent); }
.fswitch input:checked + .fswitch-ui::after { left: 17px; }
.fswitch input:focus-visible + .fswitch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.factive { display: flex; gap: 6px; flex-wrap: wrap; margin: -14px 0 18px; }
.fpill { font: inherit; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); cursor: pointer; }
.fpill span[aria-hidden] { color: var(--muted); }
.fpill:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .brand-grid { grid-template-columns: 1fr; }
  .fgroup { grid-template-columns: 1fr; gap: 4px; }
  .mprev-phases { grid-template-columns: repeat(2, 1fr); }
  .wiz-steps button { font-size: 0; gap: 0; padding: 6px; }
  .wiz-steps button span { font-size: 0.72rem; }
}
.beat { min-width: 0; }
.beat textarea, .beat input, .beat select { width: 100%; min-width: 0; box-sizing: border-box; }
.beat header .beat-title { width: auto; }
.beat-takes select { width: auto; max-width: 100%; }

/* Storytelling index */
.story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.scard-story { display: grid; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease); animation: fade-up .35s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.scard-story:hover { transform: translateY(-3px); }
.ss-cover { position: relative; height: 120px; background: var(--cover); }
.ss-kicker { position: absolute; left: 14px; bottom: 10px; z-index: 2; color: #fff; font-weight: 700; font-size: 0.9rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.ss-state { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,.85); color: #1D2236; }
.ss-state.is-on { background: var(--accent); color: var(--accent-ink); }
.ss-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.ss-log { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.ss-log.is-empty { color: var(--muted); font-style: italic; font-size: 1.05rem; }
.ss-beats { display: flex; gap: 6px; }
.ss-beats span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #1D2236; font-size: 0.75rem; font-weight: 800; }

/* Design: the creative path, numbered */
.nav-steps ul { position: relative; }
.nav-steps ul::before { content: ""; position: absolute; left: 20px; top: 18px; bottom: 18px; width: 1.5px; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.nav-step {
  position: relative;
  z-index: 1;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--side);
  border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent);
  transition: background .2s, color .2s, border-color .2s;
}
.side nav a:hover .nav-step { border-color: var(--ink); color: var(--ink); }
.side nav a[aria-current="page"] .nav-step { background: var(--gold); border-color: var(--gold); color: #fff; }
:root[data-theme="dark"] .side nav a[aria-current="page"] .nav-step { color: #1D2236; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side nav a[aria-current="page"] .nav-step { color: #1D2236; } }
@media (max-width: 860px) { .nav-steps ul::before { display: none; } }

/* ═══════════ v12: backdrop, toned timeline, locked board, mood v2 ═══════════ */

/* The season's macro background, veiled so text stays readable */
body.has-backdrop {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 42%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 55%, color-mix(in srgb, var(--bg) 88%, transparent) 100%),
    var(--backdrop) center / cover no-repeat fixed;
}

/* Timeline steps take the tone of their phase photo; text and icon get a readable shade of it */
.pstep.has-tone { --pc: color-mix(in srgb, var(--pt) 48%, var(--ink)); }
.pstep.has-tone .ring-fg { stroke: color-mix(in srgb, var(--pt) 75%, var(--ink)); }
.pstep.has-tone .pnode { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pt) 70%, transparent); }
.pstep.has-tone .plabel { color: var(--pc); }
.pstep.has-tone .pnode { background: color-mix(in srgb, var(--pt) 16%, var(--surface)); }
.pstep.has-tone.is-done .pnode { background: var(--pt); }
.pstep.has-tone.is-done .pnode-ic { color: #1D2236; }

/* Read-only board: locked until you choose to explore it */
.bvp { position: relative; }
.bviewport.is-locked { overflow: hidden; cursor: default; }
.block-lock {
  font: inherit;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 55%, transparent));
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.block-lock > span:first-child { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.block-lock .small { color: var(--muted); }
.bvp:hover .block-lock, .block-lock:focus-visible { opacity: 1; }
.block-lock[hidden] { display: none; }
.bwrap.is-readonly .bviewport:not(.is-locked) { box-shadow: 0 0 0 2px var(--accent); }

/* Mood step 2: background preview */
.bgprev { position: relative; height: 180px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 70%, transparent)), var(--bg-img) center / cover; display: flex; align-items: flex-end; padding: 14px; }
.bgprev span { padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 0.8rem; font-weight: 600; }

/* Mood step 3: a photo and a colour per phase */
.phrows { display: grid; gap: 12px; }
.phrow { display: grid; grid-template-columns: 240px 1fr; gap: 14px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--pt) 45%, var(--line)); }
.phrow.is-ok { box-shadow: inset 4px 0 0 var(--pt); }
.phrow-img {
  font: inherit;
  position: relative;
  min-height: 130px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, transparent 40%, rgba(10,12,24,.55)), var(--img) center / cover, color-mix(in srgb, var(--pt) 50%, var(--surface-2));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  text-align: left;
}
.phrow-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pt) 80%, #1D2236); }
.phrow-change { font-size: 0.78rem; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.phrow-img:hover .phrow-change { opacity: 1; }
.phrow-color { display: grid; gap: 8px; align-content: center; }
.phrow-sw { height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.phrow-opts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.phrow-opts > button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.phrow-opts > button.is-on { box-shadow: 0 0 0 2px var(--ink); }
.phrow-custom { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--muted); color: var(--muted); cursor: pointer; font-weight: 700; }
.phrow-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-ok { background: color-mix(in srgb, #3FB27F 16%, var(--surface)); border-color: #3FB27F; color: #1E7A52; }
:root[data-theme="dark"] .btn-ok { color: #7FE0B4; }

/* Mood step 4: preview with background, toned path and phase photos */
.mprev2 { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-img) center / cover, var(--surface-2); min-height: 420px; }
.mprev2-veil { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 82%, transparent) 70%); }
.mprev2-in { position: relative; display: grid; gap: 10px; padding: 22px; }
.mprev2-kicker { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.mprev2-title { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.mprev2-log { color: var(--muted); }
.mprev2 .mprev-kws span { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.mprev2-path { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mp2-step { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; color: color-mix(in srgb, var(--pt) 48%, var(--ink)); }
.mp2-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pt) 22%, var(--surface)); box-shadow: inset 0 0 0 2px var(--pt); }
.mprev2-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mp2-card { min-height: 120px; border-radius: 12px; display: flex; align-items: flex-end; padding: 8px; background: linear-gradient(180deg, transparent 40%, rgba(10,12,24,.5)), linear-gradient(110deg, color-mix(in srgb, var(--pt) 60%, transparent), transparent 70%), var(--img) center / cover, var(--pt); }
.mp2-name { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 0.8rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* Brand: derived palette */
.dpal { display: flex; height: 40px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); max-width: 640px; }
.dpal span { flex: 1; }

/* Reference: upload */
.ref-upload { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: -10px 0 18px; }
.ref-upload label:first-child { min-width: 200px; }
.cover-opt.is-here { opacity: .45; }

@media (max-width: 860px) {
  .phrow { grid-template-columns: 1fr; }
  .mprev2-phases { grid-template-columns: repeat(2, 1fr); }
}

/* Fix: the board must never be wider than its column */
.bwrap { grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
.bwrap > * { min-width: 0; }
.bvp { min-width: 0; width: 100%; overflow: hidden; border-radius: 14px; }
.bviewport { width: 100%; max-width: 100%; }
.bstage, .season-board, #board-host, #season-board { min-width: 0; max-width: 100%; }

/* ═══════════ v13: one board ═══════════ */
.bguide { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: -8px 0 12px; color: var(--muted); }
.bguide span { display: inline-flex; align-items: center; gap: 6px; }
.btool.tool-strong { width: auto; padding: 0 10px; gap: 6px; font-size: 0.82rem; }
.bgoto { font: inherit; font-size: 0.85rem; padding: 6px 8px; border-radius: 8px; max-width: 220px; }

/* Season areas: the season's background, faint, with its name */
.b-area { cursor: default; }
.b-area > .bbody {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent)),
    var(--abg) center / cover no-repeat,
    color-mix(in srgb, var(--tone) 16%, var(--surface-2));
}
.b-area.shape-frame .bbody { place-items: initial; display: block; }
.barea-head { position: absolute; left: 0; right: 0; top: 0; padding: 26px 34px 18px; display: grid; gap: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 38%, transparent), transparent); }
.barea-kicker { font-size: 1rem; font-weight: 800; color: color-mix(in srgb, var(--tone) 45%, var(--ink)); }
.barea-head strong { font-family: var(--font-display); font-weight: 400; font-size: 3.2rem; line-height: 1.05; color: var(--ink); }
.barea-head em { font-size: 1.3rem; color: var(--muted); }
.b-area.is-sel { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 28px; }
.b-area .bresize { width: 22px; height: 22px; right: -11px; bottom: -11px; }

/* Scene cards: the story, at the top of an area */
.b-scene > .bbody {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  min-height: 110px;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 55%, var(--surface)), color-mix(in srgb, var(--tone) 22%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--tone) 60%, var(--line));
  box-shadow: var(--shadow);
  color: var(--ink);
}
.bscene-n { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; color: color-mix(in srgb, var(--tone) 40%, var(--ink)); }
.b-scene .btext { font-size: 0.92rem; line-height: 1.45; }
.b-scene .btext::first-line { font-family: var(--font-display); font-size: 1.15rem; }

/* Take cards: operational, at the bottom of an area */
.b-take > .bbody {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--tc);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px -18px rgba(0,0,0,.45);
  color: var(--ink);
}
.btake-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.btake-ph { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.btake-ph.ph-shooting { background: color-mix(in srgb, var(--ph-launch) 20%, transparent); color: var(--ph-launch); }
.btake-ph.ph-editing { background: color-mix(in srgb, var(--ph-music) 20%, transparent); color: var(--ph-music); }
.btake-ph.ph-approved { background: color-mix(in srgb, var(--ph-publishing) 20%, transparent); color: var(--ph-publishing); }
.btake-title { font-size: 1.02rem; line-height: 1.25; }
.btake-where { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.btake-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btake-open { color: var(--accent); opacity: 0; transition: opacity .2s; }
.b-take:hover .btake-open, .b-take.is-sel .btake-open { opacity: 1; }

/* Take panel sections */
.tk-sec { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.tk-sec h3 { margin: 0; font-size: 0.85rem; color: var(--muted); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tk-scene { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); display: flex; gap: 6px; align-items: baseline; }
.tk-insp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk-insp img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.tk-insp-link, .tk-insp-note { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); font-size: 0.75rem; padding: 6px; text-align: center; overflow: hidden; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
