/* ============================================================================
   JC OS — design system (v0.3)

   Shares its visual language with ifnotnow, so the two can sit side by side:
   a cool grey canvas, white panels with a soft shadow, one cyan accent with a
   violet second, tight heavy numerals under small uppercase labels, pill tags,
   and a dark teal-lit sign-in. Light by default; dark is a chosen set of steps,
   not an inversion.

   Colour still carries meaning only. Cyan is for marks and fills; text that has
   to be read on white uses --accent-text, which clears contrast.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* canvas & surfaces */
  --bg: #F4F6FA;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;
  --surface-3: #EDF0F6;
  --hover: #F3FCFD;
  --input: #FCFCFD;
  --rule: #E6E9F2;
  --rule-strong: #D3D9E6;

  /* ink */
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6B7280;
  --ink-4: #9AA3B2;

  /* accent */
  --accent: #25CDD6;
  --accent-ink: #0B1215;
  --accent-text: #0A7C85;
  --accent-soft: rgba(37, 205, 214, 0.14);
  --accent-ring: rgba(37, 205, 214, 0.22);
  --accent-2: #5B4CF5;

  /* semantic */
  --green: #0E8A5F;  --green-soft: #E8F6EF;
  --amber: #A8620A;  --amber-soft: #FDF3E1;
  --orange: #B4530A; --orange-soft: #FDF0E5;
  --red: #B3261E;    --red-soft: #FDF1F0;
  --blue: #2159C9;   --blue-soft: #EAF1FE;
  --teal: #0A7C85;   --teal-soft: #E3F8FA;
  --violet: #5B4CF5; --violet-soft: #EEF0FF;
  --slate: #566175;  --slate-soft: #EEF1F6;

  /* charts: validated for colour-blind separation and contrast on --surface */
  --series-1: #0E9AA7;
  --series-2: #5B4CF5;
  --series-3: #C2620E;
  --grid: #E6E9F2;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px -2px rgba(16, 24, 40, 0.05);
  --shadow-lift: 0 4px 14px rgba(16, 24, 40, 0.09);
  --shadow-pop: 0 18px 44px rgba(16, 24, 40, 0.18);
  --sidebar-w: 232px;
  --gutter: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.14s;
  --slow: 0.22s;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0D1114;
  --bg-elev: #12181C;
  --surface: #151C21;
  --surface-2: #1A2329;
  --surface-3: #222D35;
  --hover: #17262B;
  --input: #10161A;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --ink: #EEF3F6;
  --ink-2: #BAC6CE;
  --ink-3: #8696A2;
  --ink-4: #586672;
  --accent: #25CDD6;
  --accent-ink: #0B1215;
  --accent-text: #56DCE4;
  --accent-soft: rgba(37, 205, 214, 0.16);
  --accent-ring: rgba(37, 205, 214, 0.3);
  --accent-2: #8F84FF;
  --green: #4CC79A;  --green-soft: rgba(76, 199, 154, 0.15);
  --amber: #E5AE55;  --amber-soft: rgba(229, 174, 85, 0.15);
  --orange: #F0934F; --orange-soft: rgba(240, 147, 79, 0.15);
  --red: #F0776F;    --red-soft: rgba(240, 119, 111, 0.15);
  --blue: #7FA8F5;   --blue-soft: rgba(127, 168, 245, 0.15);
  --teal: #56DCE4;   --teal-soft: rgba(86, 220, 228, 0.14);
  --violet: #A59CFF; --violet-soft: rgba(165, 156, 255, 0.16);
  --slate: #98A6B5;  --slate-soft: rgba(152, 166, 181, 0.16);
  --series-1: #19A8B2;
  --series-2: #7568E6;
  --series-3: #D4742B;
  --grid: rgba(255, 255, 255, 0.09);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11" 1, "ss03" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary { -webkit-tap-highlight-color: rgba(37, 205, 214, 0.18); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--font-mono); font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .card.is-link:hover, .kcard:hover, .cat:hover, .icon-btn:hover { transform: none !important; }
}

/* ---------------------------------------------------------------- typography */

.display { font-weight: 750; letter-spacing: -0.03em !important; line-height: 1.05; text-transform: none !important; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------------------------------------------------------------- shell */

.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* The sidebar is always dark, whatever the theme: it is where the logo lives. */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  padding: 0 12px 16px;
  background:
    radial-gradient(520px 300px at 0% 0%, rgba(37, 205, 214, 0.13), transparent 62%),
    radial-gradient(420px 320px at 100% 100%, rgba(91, 76, 245, 0.10), transparent 60%),
    #0B0F12;
  color: rgba(255, 255, 255, 0.64);
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; padding: 16px 12px 2px; flex: none; }
.brand img { display: block; width: 124px; height: auto; opacity: 0.42; transition: opacity var(--fast) var(--ease); }
.brand:hover img { opacity: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.62); font-weight: 550; font-size: 13.5px; letter-spacing: -0.005em;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-item .ico { flex: none; opacity: 0.72; transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease); }
.nav-item > span:first-of-type { flex: 1; min-width: 0; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item:hover .ico { opacity: 1; }
.nav-item.is-active { background: rgba(255, 255, 255, 0.09); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nav-item.is-active .ico { opacity: 1; color: var(--accent); }
.nav-item .kbd-hint { opacity: 0; transition: opacity var(--fast); background: transparent; border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.5); }
.nav-item:hover .kbd-hint { opacity: 1; }
.nav-count { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, 0.7); min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.nav-count.is-alert { color: #1a0f05; background: #F5A45C; }
.nav-more { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.nav-more > summary { list-style: none; cursor: pointer; border-radius: 10px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary .nav-item { color: rgba(255, 255, 255, 0.44); font-size: 12.5px; }
.nav-more > summary .ico { transition: transform var(--fast) var(--ease); }
.nav-more[open] > summary .ico { transform: rotate(90deg); }
.nav-more > .nav-group { margin-top: 2px; }
.sidebar-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 2px; }
/* who is signed in: a band the height of the top bar, so the menu starts level with the page */
/* (kept to the sidebar: "who" is also the name of a column in checklists and timelines) */
.sidebar > .who { display: flex; align-items: center; gap: 11px; height: 64px; margin: 0 -12px 14px; padding: 0 16px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; color: #fff; min-width: 0; flex: none; }
.sidebar > .who .name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; }
.sidebar > .who .role { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.45); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0B1215; font-weight: 750; font-size: 12px; display: grid; place-items: center; flex: none; }
.signout { border: 0; background: transparent; color: rgba(255, 255, 255, 0.42); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.signout:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar-title { font-weight: 650; font-size: 15px; display: flex; align-items: baseline; gap: 8px; letter-spacing: -0.01em; min-width: 0; }
.topbar-title .crumb { color: var(--ink-3); font-weight: 500; }
.topbar-title .crumb-sep { color: var(--ink-4); font-weight: 400; }
.add-btn { padding: 7px 13px 7px 10px; gap: 5px; }
.ico { display: block; }
.topbar-spacer { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 12px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--bg); color: var(--ink-3);
  min-width: 280px; cursor: text; text-align: left;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.search-btn:hover { border-color: var(--accent); background: var(--hover); color: var(--ink-2); }
.kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 5px; border-radius: 5px; border: 1px solid var(--rule); color: var(--ink-3); background: var(--surface); line-height: 1.2; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; position: relative;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--accent); background: var(--hover); transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }

.page { padding: 32px var(--gutter) 96px; max-width: 1400px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; font-weight: 720; letter-spacing: -0.032em; line-height: 1.1; }
.page-head .lede { color: var(--ink-3); margin-top: 8px; max-width: 72ch; font-size: 14.5px; line-height: 1.5; }
.page-head .lede strong { color: var(--ink); font-weight: 650; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- tabs, filters */

.tabs {
  display: inline-flex; gap: 2px; max-width: 100%; overflow-x: auto;
  background: var(--surface-3); border: 1px solid var(--rule); border-radius: 11px; padding: 3px; margin-bottom: 20px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 7px 13px; border-radius: 8px; color: var(--ink-3); white-space: nowrap; font-weight: 600; font-size: 13px; line-height: 1.2;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.tab:hover { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
.tab.is-active, .tab.is-active:hover { background: var(--ink); color: var(--bg-elev); box-shadow: none; }
.tab .count { margin-left: 7px; font-size: 11px; font-weight: 700; opacity: 0.6; font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; font-weight: 600;
  background: var(--surface); cursor: pointer; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.pill:hover { border-color: var(--accent); background: var(--hover); color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }

/* ---------------------------------------------------------------- grid & cards */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 6px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mt-lg { margin-top: 28px; }
.mb { margin-bottom: 16px; } .mb-sm { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card.is-quiet { background: transparent; box-shadow: none; }
.card.is-accent { background: linear-gradient(135deg, rgba(37, 205, 214, 0.13), rgba(91, 76, 245, 0.09)), var(--surface); }
.card.is-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.card-head .more { color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.card-head .more:hover { color: var(--ink); }
.card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { font-size: 15px; font-weight: 650; color: var(--ink); }
.section-title .hint { color: var(--ink-3); font-size: 12.5px; }

/* stat tiles: small uppercase label over a heavy figure */
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -0.025em; line-height: 1; }
.stat .value.is-small { font-size: 20px; }
.stat .label { color: var(--ink-3); font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.stat.is-muted .value { color: var(--ink-3); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 18px 16px; }

/* joined figures: one panel, hairlines between */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.kpi { padding: 18px 20px; border-right: 1px solid var(--rule); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi.is-lead { background: linear-gradient(135deg, rgba(37, 205, 214, 0.13), rgba(91, 76, 245, 0.09)); }
.kpi .k { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.kpi .v { font-size: 30px; font-weight: 750; letter-spacing: -0.025em; margin-top: 7px; line-height: 1; white-space: nowrap; }
.kpi.is-lead .v { font-size: 48px; letter-spacing: -0.035em; }
.kpi .d { font-size: 12px; margin-top: 8px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.kpi .meter { height: 5px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; margin-top: 10px; }
.kpi .meter > i { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
.delta { font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.delta.is-up { color: var(--green); } .delta.is-down { color: var(--red); } .delta.is-flat { color: var(--ink-3); }

/* ---------------------------------------------------------------- badges & dots */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; line-height: 1.5;
  background: var(--surface-3); color: var(--ink-3); border: 1px solid transparent;
}
.badge.is-outline { background: transparent; border-color: var(--rule-strong); }
.badge.t-neutral { background: var(--surface-3); color: var(--ink-2); }
.badge.t-muted { background: transparent; color: var(--ink-3); border-color: var(--rule); }
.badge.t-accent { background: var(--teal-soft); color: var(--accent-text); }
.badge.t-green { background: var(--green-soft); color: var(--green); }
.badge.t-amber { background: var(--amber-soft); color: var(--amber); }
.badge.t-orange { background: var(--orange-soft); color: var(--orange); }
.badge.t-red { background: var(--red-soft); color: var(--red); }
.badge.t-blue { background: var(--blue-soft); color: var(--blue); }
.badge.t-teal { background: var(--teal-soft); color: var(--teal); }
.badge.t-violet { background: var(--violet-soft); color: var(--violet); }
.badge.t-slate { background: var(--slate-soft); color: var(--slate); }
.badge.is-outline.t-accent, .badge.is-outline.t-teal { background: transparent; border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.badge.is-outline.t-green { background: transparent; border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.badge.is-outline.t-amber { background: transparent; border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.badge.is-outline.t-red { background: transparent; border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.badge.is-outline.t-slate, .badge.is-outline.t-muted { background: transparent; border-color: var(--rule-strong); }
.badge.is-demo { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, transparent 4px 8px); color: var(--ink-3); border-color: var(--rule-strong); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.dot.t-green { background: var(--green); } .dot.t-amber { background: var(--amber); } .dot.t-orange { background: var(--orange); } .dot.t-red { background: var(--red); } .dot.t-slate { background: var(--slate); } .dot.t-blue { background: var(--blue); } .dot.t-accent { background: var(--accent); } .dot.t-teal { background: var(--teal); } .dot.t-violet { background: var(--violet); } .dot.t-muted { background: var(--ink-4); } .dot.t-neutral { background: var(--ink-3); }
.dot.is-hollow { background: transparent; border: 1.5px solid currentColor; }

.lane-bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--ink-4); flex: none; }
.lane-bar.t-accent { background: var(--accent); } .lane-bar.t-teal { background: var(--accent-2); } .lane-bar.t-muted { background: var(--rule-strong); }

.tone-green { color: var(--green); } .tone-amber { color: var(--amber); } .tone-orange { color: var(--orange); } .tone-red { color: var(--red); } .tone-blue { color: var(--blue); } .tone-teal { color: var(--teal); } .tone-accent { color: var(--accent-text); } .tone-slate { color: var(--slate); } .tone-violet { color: var(--violet); } .tone-muted { color: var(--ink-3); } .tone-neutral { color: var(--ink-2); }

/* ---------------------------------------------------------------- lists & rows */

.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--rule); }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.item.is-link { cursor: pointer; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 9px; transition: background var(--fast) var(--ease); }
.item.is-link:hover { background: var(--hover); }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .title { font-weight: 600; }
.item .sub { color: var(--ink-3); font-size: 12.5px; }
.item .meta { color: var(--ink-3); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.item.is-done .title { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.list.is-dense .item { padding: 6px 0; }

.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); border: 1px dashed var(--rule-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 650; font-size: 14.5px; }
.empty a { color: var(--accent-text); font-weight: 600; }

/* attention items */
.attn { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.attn .sev { width: 3px; align-self: stretch; border-radius: 2px; flex: none; }
.attn .sev.t-amber { background: var(--amber); } .attn .sev.t-orange { background: var(--orange); } .attn .sev.t-red { background: var(--red); } .attn .sev.t-blue { background: var(--blue); }
.attn .body { flex: 1; min-width: 0; }
.attn .title { font-weight: 600; }
.attn .sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.attn .actions { display: flex; gap: 6px; align-items: center; flex: none; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.card .table-wrap { box-shadow: none; border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 700; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--fast) var(--ease); }
.table tbody tr:hover td { background: var(--hover); }
.table tr.is-link { cursor: pointer; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-title { font-weight: 600; }
.table .cell-title a:hover { color: var(--accent-text); }
.table td .bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.table td .bar-cell .track { width: 96px; height: 6px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; flex: none; }
.table td .bar-cell .track > i { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }

/* ---------------------------------------------------------------- kanban */

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board.is-wide { grid-auto-columns: minmax(230px, 1fr); }
.col { background: var(--surface-3); border: 1px solid var(--rule); border-radius: 14px; min-height: 140px; display: flex; flex-direction: column; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.col-head .count { color: var(--ink-3); font-weight: 700; background: var(--surface); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; }
.col-body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; flex: 1; }
.col.is-over { border-color: var(--accent); background: var(--hover); box-shadow: 0 0 0 3px var(--accent-soft); }
.kcard {
  display: flex; gap: 10px; padding: 11px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--rule); cursor: grab;
  box-shadow: var(--shadow); transition: transform var(--slow) var(--ease), border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.kcard:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); transform: translateY(-1px); }
.kcard.is-dragging { opacity: 0.5; }
.kcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kcard .title { font-weight: 600; line-height: 1.3; }
.kcard .sub { color: var(--ink-3); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kcard.is-demo { border-style: dashed; box-shadow: none; }

/* ---------------------------------------------------------------- readiness */

.readiness { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 12px; }
.ready { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ready .bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ready .bar > span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; transition: width var(--slow) var(--ease); }
.ready.is-full .bar > span { background: var(--green); }
.ready.is-overdue .bar > span { background: var(--orange); }
.ready.is-blocked .bar > span { background: var(--red); }
.ready .lbl { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); display: flex; justify-content: space-between; gap: 4px; }
.ready .pct { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.readiness.is-compact { gap: 6px; grid-template-columns: repeat(10, 1fr); }
.readiness.is-compact .ready .lbl { display: none; }
.readiness.is-compact .ready .bar { height: 4px; }

.progress { height: 6px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; transition: width var(--slow) var(--ease); }
.progress.t-green { background: var(--green-soft); } .progress.t-green > span { background: var(--green); }
.progress.t-amber { background: var(--amber-soft); } .progress.t-amber > span { background: var(--amber); }
.progress.t-neutral { background: var(--surface-3); } .progress.t-neutral > span { background: var(--ink-3); }

/* ---------------------------------------------------------------- release cards */

.release-card { display: flex; flex-direction: column; gap: 12px; }
.release-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.release-card .name { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.release-card .date { display: flex; flex-direction: column; align-items: flex-end; }
.release-card .date .t { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.release-card .date .d { white-space: nowrap; }
.release-card .head > :first-child { min-width: 0; }
.release-card .date .d { color: var(--ink-3); font-size: 12px; margin-top: 4px; }

/* ---------------------------------------------------------------- calendar */

.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.cal-month { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 12px; min-height: 130px; display: flex; flex-direction: column; gap: 8px; }
.cal-month.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.cal-month.is-empty { background: transparent; border-style: dashed; box-shadow: none; }
.cal-month .m { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.cal-month .gap { color: var(--ink-4); font-size: 12px; margin: auto 0; text-align: center; }
.cal-item { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; transition: background var(--fast) var(--ease); }
.cal-item:hover { background: var(--hover); }
.cal-item .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-item .day { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }
/* release confidence styling */
.conf { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1.5px solid var(--ink-3); }
.conf.IDEA { border-style: dotted; }
.conf.TARGET { border-style: solid; }
.conf.HELD { background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%); border-color: var(--ink-2); }
.conf.CONFIRMED { background: var(--accent); border-color: var(--accent); }
.conf.RELEASED { background: var(--green); border-color: var(--green); }
.conf.CANCELLED { border-color: var(--ink-4); }
.conf.CLUB-lane { border-radius: 2px; }

/* content calendar */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-col { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); padding: 9px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.day-col.is-today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.day-col .d { font-size: 10.5px; letter-spacing: 0.06em; font-weight: 700; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }

/* ---------------------------------------------------------------- key-value */

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; font-size: 13px; align-items: baseline; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; font-weight: 500; }
.kv.is-tight { gap: 5px 14px; }

/* ---------------------------------------------------------------- timeline */

.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.tl:first-child { border-top: none; }
.tl .dot { margin-top: 6px; background: var(--rule-strong); }
.tl .who { color: var(--ink-3); font-size: 12px; }
.tl .when { color: var(--ink-4); font-size: 12px; white-space: nowrap; }
.tl.is-meaningful .dot { background: var(--accent); }
.tl.is-sensitive .who::after { content: " · audit"; color: var(--ink-4); }

/* ---------------------------------------------------------------- forms */

.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.field .hint { color: var(--ink-3); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--rule-strong); background: var(--input); color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--series-1); }

/* inline select (auto-submits) */
.inline-select { padding: 3px 24px 3px 9px; border-radius: 999px; border: 1px solid transparent; background-color: transparent; font-size: 12px; font-weight: 700; color: inherit; cursor: pointer; max-width: 100%; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.inline-select:hover { border-color: var(--accent); background-color: var(--hover); }
.inline-select.t-accent { color: var(--accent-text); } .inline-select.t-green { color: var(--green); } .inline-select.t-amber { color: var(--amber); } .inline-select.t-orange { color: var(--orange); } .inline-select.t-red { color: var(--red); } .inline-select.t-blue { color: var(--blue); } .inline-select.t-teal { color: var(--teal); } .inline-select.t-violet { color: var(--violet); } .inline-select.t-slate { color: var(--slate); } .inline-select.t-muted { color: var(--ink-3); } .inline-select.t-neutral { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; line-height: 1.25;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { border-color: var(--accent); background: var(--hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.06s; }
.btn.is-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.is-primary:hover { background: var(--accent); filter: brightness(0.95); box-shadow: 0 3px 10px rgba(37, 205, 214, 0.28); }
.btn.is-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.is-ghost:hover { background: var(--surface-3); border-color: transparent; color: var(--ink); transform: none; }
.btn.is-danger { color: var(--red); }
.btn.is-danger:hover { border-color: var(--red); background: var(--red); color: #fff; }
.btn.is-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.is-xs { padding: 3px 8px; font-size: 11.5px; border-radius: 7px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.link { color: var(--accent-text); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }
.link-quiet { color: var(--ink-3); }
.link-quiet:hover { color: var(--ink); }

.inline-form { display: inline; }
.check-btn { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-4); background: transparent; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.check-btn:hover { border-color: var(--green); color: var(--green); }
.check-btn.is-done { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------------------------------------------------------------- dialogs / sheets */

dialog { border: none; padding: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(13, 17, 20, 0.5); backdrop-filter: blur(3px); }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--bg-elev); border-left: 1px solid var(--rule); box-shadow: var(--shadow-pop);
  padding: 24px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  animation: sheet-in var(--slow) var(--ease);
}
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.palette {
  position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
  width: min(640px, 92vw); background: var(--bg-elev); border: 1px solid var(--rule);
  border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden;
  animation: pal-in var(--fast) var(--ease);
}
@keyframes pal-in { from { transform: translate(-50%, -6px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.palette input { width: 100%; padding: 17px 20px; border: none; background: transparent; font-size: 16px; outline: none; border-bottom: 1px solid var(--rule); }
.palette-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-group { padding: 10px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.pal-item.is-active, .pal-item:hover { background: var(--hover); }
.pal-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pal-item .s { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pal-item .k { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; min-width: 72px; }
.pal-empty { padding: 20px; color: var(--ink-3); text-align: center; }
.pal-foot { padding: 9px 14px; border-top: 1px solid var(--rule); background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; display: flex; gap: 14px; }

/* quick add type chooser */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.type-grid button { padding: 9px 8px; border-radius: 9px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.type-grid button:hover { border-color: var(--accent); background: var(--hover); }
.type-grid button.is-active { border-color: var(--ink); color: var(--bg-elev); background: var(--ink); }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg-elev); padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-pop); z-index: 100; animation: pal-in var(--slow) var(--ease); }
.toast.is-error { background: var(--red); color: #fff; }

/* flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; font-weight: 500; border: 1px solid var(--rule); border-left: 3px solid var(--ink-4); background: var(--surface); box-shadow: var(--shadow); animation: rise var(--slow) var(--ease); }
.flash.is-error { border-left-color: var(--red); color: var(--red); }
.flash.is-ok { border-left-color: var(--green); }

/* ---------------------------------------------------------------- details / disclosure */

details.disclosure summary { cursor: pointer; list-style: none; color: var(--accent-text); font-size: 12.5px; font-weight: 600; padding: 6px 0; }
details.disclosure summary:hover { color: var(--ink); }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform var(--fast) var(--ease); }
details.disclosure[open] summary::before { transform: rotate(90deg); }

/* ---------------------------------------------------------------- object header */

.obj-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.obj-head .eyebrow-row { display: flex; align-items: center; gap: 10px; }
.obj-head .eyebrow-row a.eyebrow:hover { color: var(--accent-text); }
.obj-head h1 { font-size: 34px; font-weight: 720; letter-spacing: -0.035em; line-height: 1.08; }
.obj-head .statuses { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.obj-head .statuses .sep { color: var(--ink-4); }
.health-line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }

/* ---------------------------------------------------------------- artist hero, artwork */

.hero { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.hero .pic { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-3) center / cover; flex: none; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16), 0 0 0 3px var(--surface); }
.hero h1 { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.hero .sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.hero .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-3); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.chip.is-ink { background: var(--ink); color: var(--bg-elev); }
.chip.is-line { background: var(--surface); border: 1px solid var(--rule); }
a.chip:hover { background: var(--hover); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

.art { border-radius: 8px; object-fit: cover; display: block; background: var(--surface-3); flex: none; }
.art.is-blank { display: block; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 3px; min-width: 0; border-radius: 12px; padding: 6px; margin: -6px; transition: background var(--slow) var(--ease), transform var(--slow) var(--ease); }
.cat:hover { background: var(--hover); transform: translateY(-2px); }
.cat img, .cat .ph { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; object-fit: cover; background: var(--surface-3); box-shadow: var(--shadow); margin-bottom: 5px; }
.cat .t { font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .r { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- charts */

.chart { position: relative; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.chart-head h3 { font-size: 14.5px; font-weight: 650; }
.chart-head .now { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.chart-head .now b { color: var(--ink); font-weight: 700; font-size: 15px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .end-text { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font-sans); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .wash { opacity: 0.1; }
.chart .end-dot { stroke: var(--surface); stroke-width: 2; }
.chart .s1 { stroke: var(--series-1); } .chart .f1 { fill: var(--series-1); }
.chart .s2 { stroke: var(--series-2); } .chart .f2 { fill: var(--series-2); }
.chart .s3 { stroke: var(--series-3); } .chart .f3 { fill: var(--series-3); }
.chart .cross { stroke: var(--ink-4); stroke-width: 1; opacity: 0; pointer-events: none; }
.chart .probe { opacity: 0; pointer-events: none; stroke: var(--surface); stroke-width: 2; }
.chart.is-hot .cross, .chart.is-hot .probe { opacity: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .col-hit { fill: transparent; }
.chart .col-hit:hover ~ .none { opacity: 1; }
.chart g.colgroup:hover rect.seg, .chart g.colgroup:focus rect.seg { filter: brightness(1.12); }
.chart g.colgroup:focus { outline: none; }
.chart g.colgroup:focus-visible rect.col-hit { stroke: var(--accent); stroke-width: 2; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--bg-elev); border-radius: 9px; padding: 7px 10px; font-size: 12px; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--shadow-lift); transition: opacity var(--fast) var(--ease);
}
.chart.is-hot .chart-tip { opacity: 1; }
.chart-tip b { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-tip span { opacity: 0.7; }
.chart-tip .key { display: inline-block; width: 10px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* activity feed */
.feed { display: flex; flex-direction: column; }
.feed-day { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); padding: 12px 0 4px; }
.feed-day:first-child { padding-top: 0; }
.feed-row { display: flex; gap: 11px; align-items: center; padding: 7px 0; border-top: 1px solid var(--rule); min-width: 0; }
.feed-day + .feed-row { border-top: 0; }
.feed-row .body { flex: 1; min-width: 0; }
.feed-row .text { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .sub { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* a plain note panel: what is happening and what happens next */
.note { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2); }
.note.is-warn { border-left-color: var(--orange); }
.note b { color: var(--ink); }

/* ---------------------------------------------------------------- sign-in: always dark, lit from the corners */

.login {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding: 12vh 24px 24px;
  color: #111827;
  background:
    radial-gradient(900px 600px at 20% 20%, #17313a, transparent 60%),
    radial-gradient(700px 500px at 80% 90%, rgba(37, 205, 214, 0.18), transparent 60%),
    #0d1114;
}
.login-logo { width: 240px; height: auto; margin-bottom: 30px; }
.login-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-transform: lowercase; }
.login-mark i { font-style: normal; color: #25CDD6; }
.login-card { width: min(384px, 100%); background: #fff; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.login-card h2 { font-size: 20px; letter-spacing: -0.01em; color: #111827; }
.login-card .tag { color: #6B7280; font-size: 11px; letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase; margin-top: -10px; }
.login-card .field label { color: #6B7280; }
.login-card .input { background: #FCFCFD; border-color: #D3D9E6; color: #111827; }
.login-card .btn.is-primary { width: 100%; padding: 11px; font-size: 14.5px; margin-top: 4px; }
.login-card .flash { box-shadow: none; background: #FDF1F0; border-color: #F0C4C0; color: #B3261E; }
.login-card .muted { color: #6B7280; }
.login-card .flash.is-ok { box-shadow: none; background: #EEFBF4; border-color: #BFE8CF; color: #166534; }
.login-forgot { display: block; text-align: center; color: #6B7280; font-size: 13px; margin-top: -2px; }
.login-forgot:hover { color: #111827; }
.login-card b { color: #111827; }
.login-card .link { color: #0E7C85; }
.login-brand { font-weight: 800; letter-spacing: -0.02em; font-size: 16px; }
.login-brand small { display: block; color: #6B7280; letter-spacing: 0.14em; font-size: 11px; margin-top: 4px; font-weight: 600; }
.login-legal { margin-top: 22px; color: rgba(255, 255, 255, 0.36); font-size: 11.5px; text-align: center; }
.login .card { color: var(--ink); }

/* import preview */
.flag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; margin: 1px 2px 1px 0; }
.flag.INFO { background: var(--blue-soft); color: var(--blue); } .flag.AMBIGUOUS { background: var(--amber-soft); color: var(--amber); } .flag.MISSING { background: var(--slate-soft); color: var(--slate); } .flag.DUPLICATE { background: var(--orange-soft); color: var(--orange); } .flag.UNKNOWN { background: var(--violet-soft); color: var(--violet); } .flag.ERROR { background: var(--red-soft); color: var(--red); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-12 > * { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid var(--rule); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: min(290px, 85vw); transform: translateX(-100%); transition: transform var(--slow) var(--ease); height: auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); }
  .add-btn span { display: none; }
  .add-btn { padding: 8px; }
  .sidebar.is-open { transform: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search-btn { min-width: 0; flex: none; width: 34px; height: 34px; padding: 0; justify-content: center; }
  .search-btn span.label, .search-btn .kbd { display: none; }
  .topbar { gap: 8px; }
  .page-head h1 { font-size: 24px; }
  .obj-head h1, .hero h1 { font-size: 25px; }
  .kpi .v { font-size: 24px; } .kpi.is-lead .v { font-size: 36px; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .actions { margin-left: 0; width: 100%; }
  .tabs { display: flex; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(13, 17, 20, 0.5); z-index: 39; }
.sidebar-backdrop.is-open { display: block; }

/* ============================================================================
   v0.4 — songs
   ========================================================================== */

/* Commercial or club: always filled, so the type is never in doubt */
.type { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; line-height: 1.55; }
.type.is-md { font-size: 11.5px; padding: 3px 10px; border-radius: 7px; }
.type.is-commercial { background: var(--accent); color: var(--accent-ink); }
.type.is-club { background: var(--accent-2); color: #fff; }
.type.is-unset { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-strong); }

/* a release date, and what kind of date it is */
.date { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; line-height: 1.5; font-variant-numeric: tabular-nums; }
.date.is-confirmed { background: var(--ink); color: var(--bg-elev); }
.date.is-tentative { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--surface-3) 5px 6px); }
.date.is-out { background: var(--green-soft); color: var(--green); }
.date.is-late { color: var(--orange); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, transparent); background: var(--orange-soft); }

/* the three controls at the top of a song */
.controls { display: grid; grid-template-columns: auto auto 1fr; gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.control { padding: 16px 20px 18px; border-right: 1px solid var(--rule); min-width: 0; }
.control:last-child { border-right: 0; }
.control .k { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 9px; }
.control .hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.seg button:hover:not(:disabled):not(.is-on) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.seg button.is-on { background: var(--ink); color: var(--bg-elev); }
.seg button.is-on.is-commercial { background: var(--accent); color: var(--accent-ink); }
.seg button.is-on.is-club { background: var(--accent-2); color: #fff; }
.seg button:disabled { cursor: default; opacity: 0.7; }

/* the board: four columns, the same width */
.board.is-songs { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; }
.board.is-songs .col { background: color-mix(in srgb, var(--surface-3) 70%, transparent); border-color: transparent; border-radius: 16px; min-height: 320px; }
.board.is-songs .col-head { padding: 14px 14px 0; font-size: 13px; letter-spacing: -0.005em; text-transform: none; color: var(--ink); font-weight: 650; }
.board.is-songs .col-head .name { display: flex; align-items: center; gap: 8px; }
.board.is-songs .col-head .count { background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); font-size: 11px; }
.col-hint { padding: 2px 14px 12px 30px; font-size: 12px; color: var(--ink-3); }
.board.is-songs .col-body { padding: 0 10px 10px; gap: 8px; }
.col-empty { border: 1px dashed var(--rule-strong); border-radius: 12px; padding: 18px 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.45; }
.col-add, .col-more { display: block; text-align: center; padding: 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.col-add:hover, .col-more:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kcard.song { padding: 12px; border-radius: 12px; gap: 11px; align-items: flex-start; border-color: transparent; }
.kcard.song .art { border-radius: 8px; box-shadow: var(--shadow); }
.kcard.song .title { font-weight: 650; font-size: 14px; letter-spacing: -0.01em; line-height: 1.3; }
.kcard.song .sub { gap: 6px; margin-top: 3px; }
.kcard.song .next { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.4; }
.kcard.song .foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.steps-bar { display: inline-block; width: 44px; height: 5px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; }
.steps-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
.steps-bar.is-late { background: var(--orange-soft); } .steps-bar.is-late > i { background: var(--orange); }
.steps-bar.is-done { background: var(--green-soft); } .steps-bar.is-done > i { background: var(--green); }
.quiet { color: var(--orange); font-weight: 650; }

/* dated rows: home, calendar */
.cal-rows { display: flex; flex-direction: column; }
.cal-row { display: flex; align-items: center; gap: 14px; padding: 10px 10px; margin: 0 -10px; border-radius: 12px; min-width: 0; transition: background var(--fast) var(--ease); }
.cal-row + .cal-row { box-shadow: 0 -1px 0 var(--rule); }
.cal-row:hover { background: var(--hover); box-shadow: none; }
.cal-row:hover + .cal-row { box-shadow: none; }
.cal-row.is-past { opacity: 0.62; }
.cal-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-row .title { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row .sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cal-row .prog { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.cal-row .prog .steps-bar { width: 72px; }
.cal-row .what { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.day { width: 46px; height: 50px; border-radius: 11px; background: var(--surface-3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.day b { font-size: 19px; font-weight: 720; letter-spacing: -0.03em; }
.day i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.day.is-dim b { color: var(--ink-3); }

.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.month { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 22px 12px; min-width: 0; }
.month header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.month header h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.month header span { color: var(--ink-3); font-size: 13px; }
.month header .n { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; }
.month.is-now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.month.is-empty { background: transparent; box-shadow: none; border-style: dashed; padding-bottom: 18px; }
.month.is-empty header { margin-bottom: 2px; }
.month .nothing { color: var(--ink-4); font-size: 13px; }

/* headline figures that are links, and one that is a title */
a.kpi { display: block; transition: background var(--fast) var(--ease); }
a.kpi:hover { background: var(--hover); }
a.kpi.is-lead:hover { background: linear-gradient(135deg, rgba(37, 205, 214, 0.18), rgba(91, 76, 245, 0.12)); }
.kpi .v.is-text { font-size: 24px !important; letter-spacing: -0.025em !important; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; padding-bottom: 2px; }
.kpi .v.is-none { color: var(--ink-3); }

/* a stack of folded sections */
.folds > details.disclosure { border-top: 1px solid var(--rule); padding: 4px 0; }
.folds > details.disclosure:first-child { border-top: 0; }
.folds > details.disclosure > summary { color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 9px 0; }
.folds > details.disclosure > summary:hover { color: var(--accent-text); }

/* choosing one of a few, in the add sheet */
.choice { display: flex; gap: 6px; flex-wrap: wrap; }
.choice-opt, .field label.choice-opt { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.choice-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-opt span { display: block; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--rule-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.choice-opt:hover span { border-color: var(--accent); background: var(--hover); }
.choice-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg-elev); }
.choice-opt.c-commercial input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice-opt.c-club input:checked + span { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.choice-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1100px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .control:nth-child(2) { border-right: 0; }
  .control:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-right: 0; }
}
@media (max-width: 860px) {
  .controls { grid-template-columns: 1fr; }
  .control { border-right: 0; border-top: 1px solid var(--rule); }
  .control:first-child { border-top: 0; }
  .board.is-songs { grid-template-columns: repeat(4, minmax(250px, 82vw)); }
  .months { grid-template-columns: 1fr; }
}

/* what needs someone: one line each */
.needs { display: flex; flex-direction: column; }
.need { display: flex; align-items: flex-start; gap: 11px; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; min-width: 0; transition: background var(--fast) var(--ease); }
.need + .need { box-shadow: 0 -1px 0 var(--rule); }
.need:hover { background: var(--hover); box-shadow: none; }
.need:hover + .need { box-shadow: none; }
.need .dot { margin-top: 6px; }
.need .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.need .title { font-weight: 600; line-height: 1.35; }
.need .sub { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need .go { flex: none; font-size: 12px; font-weight: 650; color: var(--accent-text); white-space: nowrap; margin-top: 2px; }
.page > .needs, .needs.mt { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--orange); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 16px; }
.needs.mt .need { margin: 0 -6px; }

/* a release checklist */
.checks { display: flex; flex-direction: column; }
.check-row { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.check-row:first-child { border-top: 0; }
.check-row .what { font-weight: 550; min-width: 0; }
.check-row .what:hover { color: var(--accent-text); }
.check-row .who { color: var(--ink-3); font-size: 12.5px; }
.check-row .when { color: var(--ink-3); font-size: 12.5px; min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.check-row.is-late .when { color: var(--orange); font-weight: 650; }
.check-row.is-done .what { color: var(--ink-3); text-decoration: line-through; font-weight: 450; }
.check-row.is-done .when { color: var(--green); }

/* ============================================================================
   v0.5 — finding your way
   ========================================================================== */

/* the way back, and previous / next, above every detail page */
.trail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px 0 18px; min-height: 32px; }
.trail .back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 6px; margin-left: -6px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13px; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.trail .back .ico { transform: rotate(180deg); transition: transform var(--fast) var(--ease); }
.trail .back:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.trail .back:hover .ico { transform: rotate(180deg) translateX(2px); }
.pager { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); font-size: 12.5px; }
.pager[hidden] { display: none; }
.pager .step { padding: 5px 11px; border-radius: 7px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.pager a.step:hover { background: var(--hover); color: var(--ink); }
.pager span.step { color: var(--ink-4); }
.pager .count { padding: 0 8px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar-title a.crumb:hover { color: var(--accent-text); }
/* the trail does this job now */
.obj-head .eyebrow-row a.eyebrow { display: none; }
.obj-head .eyebrow-row:not(:has(> :not(a.eyebrow))) { display: none; }

/* a save in flight */
form.is-saving { opacity: 0.6; pointer-events: none; transition: opacity var(--fast) var(--ease); }
@media (max-width: 860px) {
  .pager .step { padding: 5px 8px; }
  .pager .count { display: none; }
}

/* ============================================================================
   v0.6 — moving a card
   ========================================================================== */

.kcard[draggable="true"] { cursor: grab; }
.kcard[draggable="true"]:active { cursor: grabbing; }
.kcard.is-dragging { opacity: 0.35; transform: scale(0.98); box-shadow: none; }
.kcard.is-saving { opacity: 0.75; }
.kcard.just-moved { animation: landed 0.9s var(--ease); }
@keyframes landed { 0% { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lift); transform: translateY(-3px); } 100% { box-shadow: var(--shadow); transform: none; } }

/* while something is being dragged, every column shows it will take it */
.board.is-dragging .col { outline: 2px dashed var(--rule-strong); outline-offset: -2px; }
.board.is-dragging .col.is-over { outline: 2px solid var(--accent); background: var(--hover); box-shadow: 0 0 0 4px var(--accent-soft); }
.board.is-dragging .col-add, .board.is-dragging .col-more { visibility: hidden; }
.board.is-dragging .kcard:not(.is-dragging) { pointer-events: none; }

/* the placeholder is always there, and steps aside when the column has cards */
.col-body:has(.kcard) > .col-empty { display: none; }
.board.is-songs .col-body { min-height: 240px; }

/* the whole card opens the song; the move buttons sit above that */
.kcard.song { position: relative; }
.kcard.song a.open { color: inherit; }
.kcard.song a.open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kcard.song .badge, .kcard.song .type, .kcard.song .date { position: relative; }
.moves { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; z-index: 2; opacity: 0; transform: translateY(-2px); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); background: var(--surface); border: 1px solid var(--rule); border-radius: 9px; padding: 2px; box-shadow: var(--shadow-lift); }
.kcard:hover .moves, .kcard:focus-within .moves { opacity: 1; transform: none; }
.moves button { width: 26px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 16px; line-height: 1; font-weight: 600; cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.moves button:hover { background: var(--ink); color: var(--bg-elev); }
.kcard.is-saving .moves { display: none; }
@media (hover: none) {
  .moves { opacity: 1; transform: none; position: static; align-self: center; box-shadow: none; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .kcard.just-moved { animation: none; } }

/* the latest release, on Home */
.latest { background: linear-gradient(135deg, rgba(37, 205, 214, 0.10), rgba(91, 76, 245, 0.07)), var(--surface); }
.latest-head { display: flex; gap: 18px; align-items: center; }
.latest-head .art { border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18); }
.latest-head .about { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.latest-head h2 { font-size: 26px; font-weight: 720; letter-spacing: -0.03em; line-height: 1.1; }
.latest-head h2 a:hover { color: var(--accent-text); }
.latest .figures { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.latest .figures + .muted { margin-top: 10px; }
.latest .note { margin-top: 18px; }
.latest .lately { margin: 18px 0 4px; }
.latest .feed-row { border-top-color: var(--rule); }
.latest .feed-row .dot { flex: none; }
.note.is-quiet { border-left-color: var(--rule-strong); box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.cal-row .prog b { font-size: 15px; font-weight: 720; letter-spacing: -0.02em; }
.cal-row .art { border-radius: 9px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .latest-head { align-items: flex-start; } .latest-head .art { width: 76px !important; height: 76px !important; } .latest-head h2 { font-size: 21px; } }

/* ============================================================================
   v0.7 — press
   ========================================================================== */

.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.press-sec .card-head { align-items: center; }
.press-sec .card-head h2 { display: flex; align-items: center; gap: 9px; }
.press-sec .card-head h2 .n { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.press-list { display: flex; flex-direction: column; margin: -4px 0 14px; }
.press-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px; margin: 0 -8px; border-radius: 12px; min-width: 0; position: relative; transition: background var(--fast) var(--ease); }
.press-item + .press-item { box-shadow: 0 -1px 0 var(--rule); }
.press-item:hover, .press-item:hover + .press-item { box-shadow: none; }
.press-item:hover { background: var(--hover); }
.press-item .main { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.press-item .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.press-item .title { font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.press-item .sub { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.press-item .note { color: var(--ink-2); font-size: 12.5px; }
.press-item .side { display: flex; align-items: center; gap: 6px; flex: none; }
.press-item.is-private .thumb { opacity: 0.6; }

.thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--surface-3); flex: none; overflow: hidden; display: grid; place-items: center; position: relative; box-shadow: inset 0 0 0 1px var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-type b { font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; color: var(--ink-3); }
.thumb.is-video i { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(11, 15, 18, 0.72); }
.thumb.is-video i::after { content: ""; position: absolute; left: 9px; top: 6px; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; }

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 320px; max-width: 86vw; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 16px; animation: rise var(--fast) var(--ease); }
.menu-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }

.drop { border: 1.5px dashed var(--rule-strong); border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink-3); font-size: 13px; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease); }
.drop:hover, .drop:focus-visible { border-color: var(--accent); background: var(--hover); color: var(--ink-2); outline: none; }
.drop.is-over { border-color: var(--accent); border-style: solid; background: var(--hover); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--ink); }
.drop.is-busy { cursor: progress; }
.drop-text { display: flex; align-items: center; gap: 9px; justify-content: center; }
.drop-text b { color: var(--ink); font-weight: 650; }
.drop-list:not(:empty) { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; cursor: default; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: 12.5px; }
.up .name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .state { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.up .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--teal-soft); overflow: hidden; }
.up .bar i { display: block; height: 100%; width: 0; background: var(--series-1); border-radius: 2px; transition: width 0.2s linear; }
.up.is-done .bar i { background: var(--green); } .up.is-done .state { color: var(--green); font-weight: 650; }
.up.is-bad .bar { display: none; } .up.is-bad .state { color: var(--red); grid-column: 1 / -1; text-align: left; }
.linkform { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; margin-top: 4px; }
.addlink { margin-top: 6px; }
.linkform.is-main { margin-top: 0; }
.addlink > summary { color: var(--ink-3); font-weight: 600; }

.press-share { background: linear-gradient(135deg, rgba(37, 205, 214, 0.08), rgba(91, 76, 245, 0.06)), var(--surface); }
.press-share .card-head { align-items: baseline; flex-wrap: wrap; }
.sharenew { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; align-items: end; }
.sharenew .see { grid-column: 1 / -1; }
.sharenew .go .btn { height: 38px; }
.share-rows { display: flex; flex-direction: column; margin-top: 14px; }
.share-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); min-width: 0; }
.share-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.share-row .title { font-weight: 650; }
.share-row .sub { color: var(--ink-3); font-size: 12.5px; }
.share-row .link { margin-top: 5px; }
.share-row .link .input { font-size: 12px; padding: 6px 10px; color: var(--ink-2); max-width: 520px; background: var(--surface); }
.share-row .side { display: flex; align-items: center; gap: 6px; flex: none; }
.share-row.is-off { opacity: 0.6; }

/* ---- what someone outside the team sees ---- */
body.share { background: var(--bg); }
.share-top { background: radial-gradient(900px 500px at 15% 0%, #17313a, transparent 62%), radial-gradient(700px 420px at 90% 100%, rgba(91, 76, 245, 0.18), transparent 60%), #0B0F12; color: #fff; }
.share-top .in { max-width: 860px; margin: 0 auto; padding: 44px 24px 40px; display: flex; flex-direction: column; gap: 30px; }
.share-top img { width: 220px; height: auto; }
.share-top h1 { font-size: 40px; font-weight: 720; letter-spacing: -0.035em; line-height: 1; }
.share-top p { color: rgba(255, 255, 255, 0.62); margin-top: 8px; font-size: 14.5px; }
.share-main { max-width: 860px; margin: 0 auto; padding: 8px 24px 64px; }
.share-sec { margin-top: 30px; }
.share-sec h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.share-list { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.share-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; min-width: 0; transition: background var(--fast) var(--ease); }
.share-item + .share-item { border-top: 1px solid var(--rule); }
.share-item:hover { background: var(--hover); }
.share-item .thumb { width: 60px; height: 60px; border-radius: 12px; }
.share-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.share-item .title { font-weight: 650; font-size: 15.5px; letter-spacing: -0.015em; }
.share-item .sub { color: var(--ink-3); font-size: 12.5px; }
.share-item .note { color: var(--ink-2); font-size: 13px; }
.share-item .go { flex: none; padding: 8px 15px; border-radius: 9px; background: var(--ink); color: var(--bg-elev); font-weight: 650; font-size: 13px; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.share-item:hover .go { background: var(--accent); color: var(--accent-ink); }
.share-empty { margin-top: 34px; padding: 40px 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--rule-strong); border-radius: 16px; }
.share-empty strong { display: block; color: var(--ink); font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.share-foot { margin-top: 40px; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.share-foot a { color: var(--accent-text); font-weight: 600; }

@media (max-width: 1100px) { .press-grid { grid-template-columns: 1fr; } .sharenew { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .sharenew, .linkform { grid-template-columns: 1fr; }
  .share-row { flex-direction: column; align-items: stretch; }
  .press-item { flex-wrap: wrap; } .press-item .side { margin-left: 65px; }
  .share-top h1 { font-size: 32px; } .share-top .in { padding: 32px 18px 30px; } .share-main { padding: 4px 16px 48px; }
  .share-item { padding: 12px 14px; gap: 12px; } .share-item .thumb { width: 48px; height: 48px; }
}

/* ============================================================================
   v0.8 — the logo, centred in the top bar
   ========================================================================== */

.topbar { position: sticky; }
/* centred on the window, not on the column, so it sits in the middle of the screen */
.topbar-logo { position: absolute; left: calc(50% - var(--sidebar-w) / 2); top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; opacity: 0.92; transition: opacity var(--fast) var(--ease); }
.topbar-logo:hover { opacity: 1; }
.topbar-logo img { width: 150px; height: auto; display: block; filter: invert(1); }
[data-theme="dark"] .topbar-logo img { filter: none; }
/* it gives way before it can touch the title or the search box */
@media (max-width: 1240px) { .topbar-logo { display: none; } }
.topbar-title { max-width: calc(50% - var(--sidebar-w) / 2 - 110px); }

/* ============================================================================
   v0.9 — a quieter frame
   ========================================================================== */

/* the top bar holds tools, not the page name: the menu already says where you are */
.topbar .search-btn { min-width: 0; width: min(440px, 46vw); }
.topbar-logo { display: none; }

/* the menu scrolls on its own when More is open; the logo and Settings stay where they are */
.sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 6px; margin: 0 -12px; padding: 0 12px 28px; mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.sidebar-scroll::-webkit-scrollbar { display: none; }
.sidebar-scroll { scroll-padding-bottom: 28px; }
@media (max-height: 720px) { .sidebar-logo { display: none; } .sidebar { padding-bottom: 8px; } }
/* the logo: small, above the line over Settings */
.sidebar-logo { margin-top: 0; flex: none; display: block; padding: 14px 12px 14px; line-height: 0; }
.sidebar-logo img { width: 96px; height: auto; opacity: 0.3; transition: opacity var(--slow) var(--ease); }
.sidebar-logo:hover img { opacity: 0.7; }
.sidebar-foot { margin-top: 0; flex: none; }
@media (max-width: 860px) { .topbar .search-btn { width: 34px; } }

/* ============================================================================
   v0.9 — commission
   ========================================================================== */

.card-head h2 .n { color: var(--ink-3); font-weight: 600; font-size: 13px; margin-left: 8px; }
.card-head h2 .badge { vertical-align: 2px; margin-left: 6px; }
[data-when][hidden] { display: none !important; }
.input.num { font-variant-numeric: tabular-nums; }

/* live, music, other */
.cm-kind { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.7; white-space: nowrap; }
.cm-kind.is-live { background: var(--teal-soft); color: var(--accent-text); }
.cm-kind.is-music { background: var(--violet-soft); color: var(--violet); }
.cm-kind.is-other { background: var(--slate-soft); color: var(--slate); }

/* the page: what is happening on the left, what it is governed by on the right */
.cm-kpis { margin-bottom: 16px; }
.kpis.is-three { grid-template-columns: 1.3fr 1fr 1fr; }
.cm-layout, .cm-settings { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; }
.cm-edit { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 16px; align-items: start; }
.cm-edit.has-file { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); }
.cm-side { position: sticky; top: 80px; }

/* a balance, line by line */
.cm-table table.table { min-width: 660px; }
.cm-table .table td { vertical-align: top; padding: 13px 12px; }
.cm-table td.when { white-space: nowrap; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 1%; font-size: 12.5px; padding-top: 15px; }
.cm-table td.what .t { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; letter-spacing: -0.005em; }
.cm-table td.what .t a:hover { color: var(--accent-text); }
.cm-table td.what .s { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.cm-table td.num { white-space: nowrap; }
.cm-table td.due b { display: block; font-weight: 720; font-size: 14.5px; letter-spacing: -0.01em; }
.cm-table .is-nil td.due b { color: var(--ink-3); font-weight: 600; }
.cm-table .table tbody.cm-line td { border-bottom: 0; }
.cm-table .table tbody + tbody > tr:first-child > td { border-top: 1px solid var(--rule); }
.cm-table .table tbody.cm-line > tr:first-child:not(:last-child) > td { padding-bottom: 4px; }
.cm-table .table tbody.cm-line > tr.work > td { padding-top: 0; padding-bottom: 13px; }
.cm-table .table tbody tr:hover td { background: transparent; }
.cm-table .table tbody.cm-line:hover td { background: var(--hover); }
.cm-table .cm-work { margin-top: 0; }
.cm-why { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; white-space: nowrap; font-weight: 500; }
.cm-table .table tr.band td, .cm-table .table tbody tr.band:hover td { background: var(--surface-2); padding: 8px 12px; font-size: 12px; color: var(--ink-3); }
.cm-table tr.band td b { color: var(--ink); margin-right: 10px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.cm-files { display: inline-flex; gap: 4px; }
.cm-files a { font-size: 10px; font-weight: 750; letter-spacing: 0.05em; padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink-3); line-height: 1.6; }
.cm-files a:hover { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }

/* how a figure was worked out: numbered, one step a line */
.cm-work { margin-top: 6px; }
.cm-work summary { cursor: pointer; list-style: none; color: var(--accent-text); font-size: 12px; font-weight: 600; display: inline-block; }
.cm-work summary:hover { color: var(--ink); }
.cm-work summary::-webkit-details-marker { display: none; }
.cm-work summary::before { content: "›"; display: inline-block; margin-right: 5px; transition: transform var(--fast) var(--ease); }
.cm-work[open] summary::before { transform: rotate(90deg); }
.cm-work ol, .cm-comes ol, .cm-was ol { margin: 9px 0 2px; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 6px; }
.cm-work li, .cm-comes li, .cm-was li { counter-increment: step; position: relative; padding-left: 26px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; font-weight: 450; }
.cm-work li::before, .cm-comes li::before, .cm-was li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.cm-comes li::before { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* what it all comes to, and who gets it */
.cm-sum { display: flex; gap: 28px; justify-content: space-between; align-items: flex-start; margin-top: 18px; flex-wrap: wrap; }
.cm-totals { margin: 0 0 0 auto; min-width: 290px; display: flex; flex-direction: column; gap: 7px; order: 2; }
.cm-totals > div { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--ink-2); align-items: baseline; }
.cm-totals dt, .cm-totals dd { margin: 0; }
.cm-totals dd { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.cm-totals .is-total { border-top: 1px solid var(--rule-strong); padding-top: 9px; margin-top: 2px; }
.cm-totals .is-total dt { font-weight: 650; color: var(--ink); font-size: 14px; }
.cm-totals .is-total dd { font-weight: 750; font-size: 19px; letter-spacing: -0.025em; }
.cm-split { display: flex; flex-direction: column; gap: 9px; min-width: 230px; order: 1; }
.cm-split > div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cm-split .avatar { width: 24px; height: 24px; font-size: 10.5px; }
.cm-split .n { flex: 1; color: var(--ink-2); }
.cm-split b { font-variant-numeric: tabular-nums; font-weight: 650; }
.cm-split .is-rest .avatar { background: var(--surface-3); color: var(--ink-3); }
.cm-split .is-rest { color: var(--ink-3); }

/* the agreement, in words, and tried out */
.cm-terms { display: flex; flex-direction: column; gap: 9px; }
.cm-terms li { position: relative; padding-left: 17px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cm-terms li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cm-examples { margin-top: 16px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.cm-examples > div { display: grid; grid-template-columns: 1fr auto 78px; gap: 12px; padding: 8px 12px; font-size: 12.5px; align-items: baseline; color: var(--ink-2); }
.cm-examples > div + div { border-top: 1px solid var(--rule); }
.cm-examples i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cm-examples b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cm-examples .is-nil { background: var(--surface-2); color: var(--ink-3); }
.cm-examples .is-nil b { color: var(--ink-3); font-weight: 600; }

/* rows: to confirm, costs, statements, the team, payments, files */
.cm-todos, .cm-costs, .cm-sts, .cm-team, .cm-pays, .cm-docs { display: flex; flex-direction: column; margin: -4px 0; }
.cm-todos { margin-bottom: 14px; }
.cm-todo, .cm-cost, .cm-layout .cm-st, .cm-member, .cm-pays > div, .cm-doc { display: flex; align-items: center; gap: 13px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; min-width: 0; transition: background var(--fast) var(--ease); }
.cm-todo + .cm-todo, .cm-cost + .cm-cost, .cm-layout .cm-st + .cm-st, .cm-member + .cm-member, .cm-pays > div + div, .cm-doc + .cm-doc { box-shadow: 0 -1px 0 var(--rule); }
a.cm-todo:hover, a.cm-cost:hover, .cm-layout a.cm-st:hover, a.cm-member:hover, .cm-doc:hover { background: var(--hover); box-shadow: none; }
a.cm-todo:hover + .cm-todo, a.cm-cost:hover + .cm-cost, .cm-layout a.cm-st:hover + .cm-st, a.cm-member:hover + .cm-member, .cm-doc:hover + .cm-doc { box-shadow: none; }
.cm-todo .thumb, .cm-doc .thumb { width: 44px; height: 44px; border-radius: 9px; }
.cm-todo .body, .cm-cost .body, .cm-st .body, .cm-member .body, .cm-pays .body, .cm-doc .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-todo .title, .cm-cost .title, .cm-st .title, .cm-member .title, .cm-pays .title, .cm-doc .title { font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-todo .sub, .cm-cost .sub, .cm-st .sub, .cm-member .sub, .cm-pays .sub, .cm-doc .sub { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-todo .go { font-size: 12.5px; font-weight: 650; color: var(--accent-text); white-space: nowrap; }
.cm-doc .main { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.cm-cost .amt, .cm-member .amt, .cm-pays b, .cm-amt { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; letter-spacing: -0.01em; }
.cm-cost .use { flex: none; width: 250px; }
.cm-meter { display: flex; flex-direction: column; gap: 5px; }
.cm-meter .bar { height: 5px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; }
.cm-meter .bar i { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
.cm-meter .note, .cm-meter-note { font-size: 12px; color: var(--ink-3); background: none; border: 0; box-shadow: none; padding: 0; }
.cm-no { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-weight: 750; font-size: 15px; letter-spacing: -0.02em; flex: none; font-variant-numeric: tabular-nums; }
.cm-member .avatar { width: 32px; height: 32px; }
.cm-drop .drop-text { padding: 6px 0; }

/* what one item comes to */
.cm-comes { background: linear-gradient(135deg, rgba(37, 205, 214, 0.13), rgba(91, 76, 245, 0.09)), var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px 20px; }
.cm-comes .k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); display: block; }
.cm-comes > b { display: block; font-size: 36px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; margin-top: 7px; font-variant-numeric: tabular-nums; }
.cm-comes p { color: var(--ink-2); font-size: 12.5px; margin-top: 9px; line-height: 1.5; }
.cm-comes.is-nil > b, .cm-comes.is-empty > b { color: var(--ink-3); }
.cm-comes.is-empty { background: var(--surface); }
.cm-comes.is-waiting { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.cm-comes.is-waiting > b { font-size: 17px; letter-spacing: -0.015em; color: var(--amber); line-height: 1.3; }
.cm-closed { display: flex; flex-direction: column; gap: 10px; }
.cm-was { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px 14px; box-shadow: var(--shadow); }
.cm-was .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cm-was .h b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 720; }
.cm-was.is-pending { border-left: 3px solid var(--accent); }

/* the form */
.cm-part { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cm-part h3 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; }
.cm-part .hint { color: var(--ink-3); font-size: 12px; }
.cm-amounts { display: grid; grid-template-columns: 132px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cm-amounts.is-cost { grid-template-columns: 132px repeat(2, minmax(0, 1fr)); }
.cm-amounts .input.num { font-size: 15px; font-weight: 600; }
.cm-ticks { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.cm-pick { max-height: 264px; overflow: auto; border: 1px solid var(--rule); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cm-pick .check .t { font-weight: 600; color: var(--ink); }
.cm-pick .check .muted { margin-left: auto; font-size: 12px; white-space: nowrap; }
.cm-narrow { max-width: 210px; }
.cm-go { gap: 8px; border-top: 1px solid var(--rule); padding-top: 16px; }
.cm-switch { margin-bottom: 18px; }
.seg a { border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-3); line-height: 1.2; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.seg a:hover:not(.is-on) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.seg a.is-on { background: var(--ink); color: var(--bg-elev); }
.cm-pct { position: relative; }
.cm-pct span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 12.5px; pointer-events: none; }
.cm-pct .input { padding-right: 26px; }
.choice-opt.c-live input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice-opt.c-music input:checked + span { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.cm-danger { display: flex; justify-content: flex-end; }
.cm-shares { display: flex; flex-direction: column; }
.cm-shares > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); font-weight: 550; }
.cm-shares > div:first-child { border-top: 0; }
.cm-shares > div > a { flex: 1; min-width: 0; color: var(--ink); }
.cm-shares > div > a:hover { color: var(--accent-text); }
.cm-shares .input { width: 140px; flex: none; text-align: right; }
.cm-shares b { text-align: right; font-variant-numeric: tabular-nums; }
.cm-ask { display: grid; grid-template-columns: 1.6fr 1fr 150px auto; gap: 8px; margin-top: 12px; }
.cm-payform { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cm-payform details { width: 100%; }

/* the file, beside the form that is filled in from it */
.cm-viewer { display: flex; flex-direction: column; gap: 12px; }
.cm-frame { width: 100%; height: min(76vh, 920px); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface-3); box-shadow: var(--shadow); display: block; }
.cm-shot img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.cm-noview { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius-lg); padding: 16px 18px; color: var(--ink-2); font-size: 13px; }

/* the management team, in settings */
.cm-mrows { display: flex; flex-direction: column; }
.cm-mrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.cm-mrow:first-child { border-top: 0; padding-top: 2px; }
.cm-mrow .who2 { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.cm-mrow .who2 .avatar { width: 34px; height: 34px; margin-top: 1px; }
.cm-mrow .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cm-mrow .title { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
.cm-mrow .title:hover { color: var(--accent-text); }
.cm-mrow .sub { color: var(--ink-3); font-size: 12.5px; }
.cm-mform { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(84px, 0.6fr)) auto; gap: 10px; align-items: end; margin-left: 46px; }
.cm-mform .go .btn { height: 38px; }
.cm-mrow .off { margin-left: 40px; margin-top: -4px; }

/* what management see */
body.share.is-commission .share-main, body.share.is-commission .share-top .in { max-width: 1000px; }
.cm-figures { display: grid; grid-template-columns: 1.3fr 1fr 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-top: 24px; }
.cm-figures > div { padding: 18px 22px 20px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cm-figures > div:last-child { border-right: 0; }
.cm-figures span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.cm-figures b { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-figures i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.cm-figures .is-lead { background: linear-gradient(135deg, rgba(37, 205, 214, 0.13), rgba(91, 76, 245, 0.09)); }
.cm-figures .is-lead b { font-size: 40px; letter-spacing: -0.04em; }
.share-sec h2 .badge { vertical-align: 1px; margin-left: 6px; letter-spacing: 0; text-transform: none; }
.cm-lede { color: var(--ink-3); font-size: 13px; margin: -2px 0 12px; line-height: 1.5; }
.cm-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.share-item.cm-st { gap: 14px; }
.share-item.cm-st .cm-amt { font-size: 15.5px; }
.cm-back { margin-top: 20px; }
.cm-back a { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.cm-back a:hover { color: var(--ink); }
body.share.is-commission .cm-sum { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); margin-top: 12px; }
body.share.is-commission .table-wrap { border-radius: 16px; }

@media (max-width: 1100px) {
  .cm-layout, .cm-edit, .cm-edit.has-file, .cm-settings { grid-template-columns: minmax(0, 1fr); }
  .cm-side { position: static; }
  .cm-cost .use { width: 190px; }
  .cm-frame { height: 62vh; }
}
@media (max-width: 860px) {
  .kpis.is-three, .cm-figures { grid-template-columns: 1fr; }
  .cm-figures > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cm-figures > div:last-child { border-bottom: 0; }
  .cm-amounts, .cm-amounts.is-cost { grid-template-columns: 1fr 1fr; }
  .cm-ask, .cm-mform { grid-template-columns: 1fr; margin-left: 0; }
  .cm-mrow .off { margin-left: -6px; }
  .cm-cost { flex-wrap: wrap; }
  .cm-cost .use { width: 100%; order: 3; }
  .cm-totals { min-width: 0; width: 100%; }
  .cm-todo .badge { display: none; }
  .cm-shares > div { grid-template-columns: 1fr 110px; }
  .cm-shares > div .badge { display: none; }
}

/* a tick box keeps its own voice inside a field */
.field label.check, .cm-part label.check { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cm-layout .card-head, .cm-edit .card-head { flex-wrap: wrap; }
/* the description takes the room; the figures take what they need */
.cm-table th:nth-child(2), .cm-table td.what { width: 100%; }
.cm-edit.has-file .cm-amounts, .cm-edit.has-file .cm-amounts.is-cost { grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  /* too narrow for a table: each line becomes a card, its figures labelled */
  .cm-table table.table { min-width: 0; display: block; }
  .cm-table thead { display: none; }
  .cm-table .table tbody { display: block; }
  .cm-table .table tbody.cm-line { padding: 13px 14px; }
  .cm-table .table tbody + tbody { border-top: 1px solid var(--rule); }
  .cm-table .table tbody + tbody > tr:first-child > td { border-top: 0; }
  .cm-table .table tbody.cm-line > tr:first-child { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 10px; }
  .cm-table .table tbody.cm-line > tr.work { display: block; margin-top: 8px; }
  .cm-table .table tbody.cm-line > tr.work > td:first-child { display: none; }
  .cm-table .table td, .cm-table .table tr.band td { display: block; padding: 0 !important; border: 0; width: auto; }
  .cm-table td.when, .cm-table td.what { grid-column: 1 / -1; }
  .cm-table td.num { text-align: left; }
  .cm-table td.num::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .cm-table td.due { text-align: right; }
  .cm-table .is-other td.due { grid-column: 1 / -1; }
  .cm-table .table tbody.band { padding: 8px 14px; background: var(--surface-2); }
  .cm-table .table tbody.cm-line:hover td { background: transparent; }
  .cm-why { white-space: normal; }
}

/* groups: money in that shares costs */
.cm-groups { display: flex; flex-direction: column; margin: -4px 0; }
.cm-group { display: flex; align-items: center; gap: 13px; padding: 10px 0; min-width: 0; }
.cm-group + .cm-group { box-shadow: 0 -1px 0 var(--rule); }
.cm-group .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-group .title { font-weight: 650; letter-spacing: -0.01em; }
.cm-group .sub { color: var(--ink-3); font-size: 12px; }

/* ============================================================================
   v0.9.1 — deleting a song, and choosing what a Press link covers
   ========================================================================== */

/* on a card: beside the move buttons, a step apart, red only when it is about to be pressed */
.moves button.del { display: inline-grid; place-items: center; color: var(--ink-3); margin-left: 3px; box-shadow: -1px 0 0 var(--rule); border-radius: 0 6px 6px 0; }
.moves button.del:hover { background: var(--red); color: #fff; box-shadow: none; border-radius: 6px; }
.moves button.del .ico { pointer-events: none; }
/* on the song's own page: top right, quiet until wanted */
.song-top { flex-wrap: wrap; }
.song-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; align-self: flex-start; }

/* tick boxes that look like the choices they are */
.ticks { display: flex; flex-wrap: wrap; gap: 6px; }
.ticks .choice-opt.is-all span { font-weight: 650; }
.ticks .choice-opt input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.share-row .covers { color: var(--ink-2); font-weight: 600; }
.share-row .menu-body { width: 420px; }

/* links that are sent out: when they run out, and what can be done with them */
.share-row { align-items: flex-start; }
.share-row .expires { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.share-row .expires.is-soon { color: var(--amber); font-weight: 600; }
.share-row .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.share-row.is-off { opacity: 1; }
.share-row.is-off .title, .share-row.is-off .sub { color: var(--ink-3); }
.share-archive { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 6px; }
.share-archive > summary { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.share-archive > summary .n { margin-left: 7px; color: var(--ink-3); font-weight: 600; }
.share-archive .share-rows { margin-top: 2px; }
.share-archive .share-row:first-child { border-top: 0; }
.sharenew p.see { margin: 0; }

/* ============================================================================
   v0.12 — lists of things to get done: opportunities, to-dos, decisions

   One row each: tick, what, who, when, bin. Everything on a row is changed on
   the row. A row with more to it opens where it is.
   ========================================================================== */

.js .nojs { display: none !important; }

/* when it is due: plain with time in hand, amber inside a week, orange once it has passed */
.due { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 650; white-space: nowrap; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); background: var(--surface); transition: box-shadow var(--fast) var(--ease); }
.due.is-soon { color: var(--amber); background: var(--amber-soft); box-shadow: none; }
.due.is-late { color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 40%, transparent); }
.due.is-none { color: var(--ink-3); font-weight: 550; box-shadow: inset 0 0 0 1px var(--rule); background: transparent; }
.due.is-done { color: var(--green); background: var(--green-soft); box-shadow: none; }

/* ---- the line that adds one ---- */
.add-line { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 18px; align-items: center; }
.add-line.is-todo, .add-line.is-decision { grid-template-columns: minmax(0, 1fr) 190px 160px auto; }
.add-line.is-opp { grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr) auto 156px 180px auto; }
.add-line .joiner { color: var(--ink-3); font-size: 13px; font-weight: 550; }
.add-line .input[name=name], .add-line .input[name=title], .add-line .input[name=question] { font-size: 14.5px; }
.add-line .textarea { grid-column: 1 / -1; min-height: 40px; resize: none; line-height: 1.5; overflow: hidden; }
.add-line.is-saving { opacity: 0.7; pointer-events: none; }

/* ---- what is on the page under it ---- */
.things-lede { color: var(--ink-3); font-size: 13.5px; margin: 0 0 12px; }
.card.things-card { padding: 2px 20px; }
.things-h { font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 26px 0 10px; letter-spacing: 0; }
.things-h .n, .things-fold > summary .n { margin-left: 7px; color: var(--ink-3); font-weight: 600; }
.things-fold { margin-top: 18px; }
.things-fold > summary { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.things-fold > .things-card { margin-top: 6px; }
.things-who .select { min-width: 190px; }

/* ---- the controls every row has ---- */
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-4); background: transparent; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: transparent; font-size: 11px; font-weight: 800; line-height: 1; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
button.tick:hover { border-color: var(--green); color: var(--green); transform: scale(1.08); }
.tick.is-on { background: var(--green); border-color: var(--green); color: #fff; }
button.tick.is-on:hover { color: #fff; filter: brightness(0.93); }
.tick.is-ask { border-color: var(--amber); color: var(--amber); font-size: 12px; }
button.tick.is-ask:hover { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.is-saving > .tick { opacity: 0.5; }

.bin { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: 0.6; transition: color var(--fast) var(--ease), background var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.thing-head:hover .bin, .todo:hover .bin, .bin:focus-visible { opacity: 1; }
.bin:hover { color: var(--red); background: var(--red-soft); opacity: 1; }
@media (hover: none) { .bin { opacity: 0.8; } }

form.who, form.when { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
span.who { color: var(--ink-3); font-size: 12.5px; }
span.who.is-nobody { color: var(--amber); }
form.who { min-width: 0; max-width: 100%; }
form.who .inline-select { width: 176px; max-width: 100%; min-width: 0; text-overflow: ellipsis; text-align: right; text-align-last: right; }
form.when label { position: relative; display: inline-flex; cursor: pointer; border-radius: 7px; }
form.when label:hover .due { box-shadow: inset 0 0 0 1px var(--accent); }
form.when label:focus-within .due { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-ring); }
.js form.when input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; }
html:not(.js) form.when input[type=date] { margin-left: 6px; }

/* words that are changed by typing over them */
.plain { display: block; width: 100%; min-width: 0; border: 0; background: transparent; padding: 4px 7px; margin: -1px 0 -1px -7px; border-radius: 7px; font-weight: 550; color: var(--ink); line-height: 1.4; text-overflow: ellipsis; transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
input.plain:hover { background: var(--surface-3); }
input.plain:focus { background: var(--surface); outline: none; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
input.plain::placeholder { color: var(--ink-4); font-weight: 500; }
.rename { margin: 0; min-width: 0; }
.rename.is-saved .plain { box-shadow: 0 0 0 1px var(--green); }

/* ---- a to-do ---- */
.todos { container-type: inline-size; }
.todos .none { color: var(--ink-3); font-size: 12.5px; margin: 8px 0; }
.todo { display: grid; grid-template-columns: 20px minmax(0, 1fr) 176px 156px 28px; grid-template-areas: "tick what who when bin"; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), background 0.4s var(--ease); }
.todo:first-child { border-top: 0; }
.todo > .tick-form, .todo > .tick { grid-area: tick; }
.todo > .what { grid-area: what; min-width: 0; display: flex; flex-direction: column; }
.todo > .who { grid-area: who; justify-self: end; }
.todo > .when { grid-area: when; justify-self: end; }
.todo > .bin-form { grid-area: bin; }
.todo .sub { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .sub a:hover { color: var(--accent-text); }
.todo.is-done .plain { color: var(--ink-3); text-decoration: line-through; font-weight: 450; }
@container (max-width: 620px) {
  .todo { grid-template-columns: 20px minmax(0, auto) minmax(0, 1fr) 28px; grid-template-areas: "tick what what bin" ". who when when"; row-gap: 4px; column-gap: 10px; }
  .todo > .who, .todo > .when { justify-self: start; }
  .todo form.who .inline-select { width: auto; max-width: 150px; text-align: left; text-align-last: left; padding-left: 0; }
}
/* headings inside a list of to-dos */
.things-k { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0; padding: 16px 0 4px; }
.things-k .n { margin-left: 7px; letter-spacing: 0; font-weight: 500; color: var(--ink-4); }
.things-group + .things-group { border-top: 1px solid var(--rule); }
.things-group.is-late .things-k { color: var(--orange); }

/* the line that adds a step */
.add-step { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0 2px; margin: 0; border-top: 1px solid var(--rule); }
.todos.is-empty + .add-step { border-top: 0; }
.add-step .plus { color: var(--ink-4); display: inline-flex; justify-content: center; }
.add-step .btn { opacity: 0; transition: opacity var(--fast) var(--ease); }
.add-step:focus-within .btn { opacity: 1; }

/* ---- a row with more to it: an opportunity, a decision ---- */
.thing, .todo { scroll-margin-top: 90px; }
.thing { border-top: 1px solid var(--rule); transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), background 0.4s var(--ease); }
.thing:first-child { border-top: 0; }
.thing-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) 176px 156px 28px; grid-template-areas: "tick title who when bin"; gap: 14px; align-items: center; padding: 13px 0; }
.thing-head > .tick-form, .thing-head > .tick { grid-area: tick; }
.thing-head > .thing-title { grid-area: title; }
.thing-head > .who { grid-area: who; justify-self: end; }
.thing-head > .when { grid-area: when; justify-self: end; }
.thing-head > .bin-form { grid-area: bin; }
.thing-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; background: transparent; border: 0; padding: 2px 0; cursor: pointer; border-radius: 7px; }
.thing-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.thing-title .t { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.thing-title .t::after { content: "›"; display: inline-block; margin-left: 8px; color: var(--ink-4); font-weight: 500; transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.thing-title:hover .t::after { color: var(--accent-text); }
.thing.is-open .thing-title .t::after { transform: rotate(90deg); }
.thing-title .for { font-weight: 500; color: var(--ink-2); }
.thing-title .s { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thing-title .s strong { color: var(--green); font-weight: 650; }
.thing.is-done .thing-title .t { color: var(--ink-3); font-weight: 550; }
.thing.is-decision.is-done .thing-title .t { color: var(--ink); font-weight: 600; }

.thing-body { display: grid; gap: 16px; padding: 2px 42px 20px 34px; animation: rise var(--slow) var(--ease); }
.js .thing:not(.is-open) > .thing-body { display: none; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; margin: 0; }
.fields .f { display: flex; flex-direction: column; min-width: 0; }
.fields .f.is-wide { grid-column: 1 / -1; }
.thing-steps { min-width: 0; }
.thing-body .k { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.thing-body .k .n { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-4); font-size: 12px; }
.fields .f.is-saved .k::after { content: "Saved"; letter-spacing: 0; text-transform: none; color: var(--green); font-weight: 600; font-size: 11.5px; }
.fields .textarea { min-height: 0; resize: none; overflow: hidden; line-height: 1.5; }
.thing-body .brief { white-space: pre-wrap; color: var(--ink-2); margin: 0; }
.thing-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.thing-links:empty { display: none; }
.thing-links a { font-size: 12px; font-weight: 600; color: var(--accent-text); padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.thing-links a:hover { background: var(--accent); color: var(--accent-ink); }
.thing-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--ink-3); font-size: 12.5px; }
.thing-foot a { color: var(--accent-text); font-weight: 600; }

/* giving the answer */
.decide .options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.decide .opt { border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); padding: 8px 15px; border-radius: 999px; font-weight: 650; font-size: 13px; cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.decide .opt:hover { border-color: var(--accent); background: var(--hover); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.decide .answer { display: flex; gap: 8px; margin: 0; }
.decide .answer .input { flex: 1; min-width: 0; }

/* files kept against a thing */
.files { display: grid; gap: 10px; }
.todo.is-file { grid-template-columns: 40px minmax(0, 1fr) 28px; grid-template-areas: "tick what bin"; }
.file-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 7px; background: var(--surface-3); color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.todo.is-file a.plain { width: auto; display: inline-block; }
.todo.is-file a.plain:hover { color: var(--accent-text); background: transparent; }
.drop.is-small { padding: 12px 14px; min-height: 0; }
.drop.is-small .drop-words { font-size: 12.5px; color: var(--ink-3); }
.drop.is-small .drop-words b { color: var(--ink); font-weight: 600; }
.fields.is-one { grid-template-columns: 1fr; }
.obj-head .song-actions { display: flex; gap: 8px; align-items: center; flex: none; }

/* the rules: steps as rows, with when and who chosen on the row */
.rules-card { margin-bottom: 14px; }
.todo.is-rule { grid-template-columns: 20px minmax(0, 1fr) 190px 176px 28px; grid-template-areas: "tick what when who bin"; }
.todo.is-rule > .rule-when { grid-area: when; justify-self: end; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.rule-when .inline-select { width: 186px; max-width: 100%; min-width: 0; text-align: right; text-align-last: right; }
.todo.is-rule > .who { grid-area: who; justify-self: end; }
.rule-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); margin-left: 6px; }
.todo.is-flag { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "tick what"; }
.todo.is-flag.is-off .rule-say { color: var(--ink-3); }
.rule-say { font-weight: 500; line-height: 1.6; }
.rule-num { display: inline; margin: 0; }
.rule-num .plain.num { display: inline-block; width: 64px; padding: 1px 6px; margin: 0 2px; text-align: center; font-weight: 700; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule-strong); background: var(--surface); }
.add-step.is-rule { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; }
.rules-foot { padding: 10px 0 2px; display: flex; justify-content: flex-end; }
.rule-link { font-size: 12.5px; padding: 6px 10px; background: var(--surface-3); border-radius: 8px; word-break: break-all; }
.rules-public .rules-card { padding: 16px 20px; }
@container (max-width: 620px) {
  .todo.is-rule { grid-template-columns: 20px minmax(0, 1fr) 28px; grid-template-areas: "tick what bin" ". when ." ". who ."; }
  .todo.is-rule > .rule-when, .todo.is-rule > .who { justify-self: start; }
  .add-step.is-rule { grid-template-columns: 20px minmax(0, 1fr); }
  .add-step.is-rule .inline-select, .add-step.is-rule .btn { grid-column: 2; justify-self: start; }
}

/* a first password, shown once */
.first-password { padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); margin-bottom: 16px; }
.first-password .k { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.first-password .pw { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 12px; background: var(--surface); border-radius: 8px; color: var(--ink); }
.roles-said > div { margin-top: 4px; }

/* the agenda */
.add-line.is-agenda { grid-template-columns: minmax(0, 1fr) auto; }
.thing.is-topic .when a.due { text-decoration: none; }
.thing.is-topic .when a.due:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }
.thing.is-carried .thing-title .t::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: middle; }
.add-step.is-action { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; }
.add-step .input.is-sm { padding: 4px 8px; font-size: 12.5px; width: 150px; }
.call-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.call-list li.is-done { color: var(--ink-3); }
.close-call { margin-top: 18px; }
.thing.is-call .thing-head { grid-template-columns: 20px minmax(0, 1fr) 28px; grid-template-areas: "tick title bin"; }
.thing.is-call .thing-head > .when { display: none; }

/* the diary */
.cal-row .what.is-diary { color: var(--violet); }
.cal-row .what.is-todo { color: var(--ink-3); }
.add-line.is-diary { grid-template-columns: 150px minmax(0, 1.4fr) 156px auto 156px minmax(0, 1fr) auto; }
.kind-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--ink-3); font-size: 13px; }
.thing.is-entry.is-done .thing-title .t { color: var(--ink-3); }
.todo.is-regular { grid-template-columns: 20px minmax(0, 1fr) 176px 156px auto 28px; grid-template-areas: "tick what who when book bin"; }
.todo.is-regular > form.book { grid-area: book; }
.inline-select.is-quiet { padding-left: 0; font-weight: 600; color: var(--ink-3); font-size: 12px; }
.add-step.is-regular { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; }
.add-step.is-agreement { grid-template-columns: 20px minmax(0, 1.4fr) auto minmax(0, 1fr) auto auto; }
.add-step.is-log { grid-template-columns: 20px minmax(0, 1fr) auto; }
.add-step.is-log .select { max-width: 420px; }
/* Settings › Pages: the links in order */
.todo.is-link { grid-template-columns: 20px minmax(0, 1fr) auto 28px; grid-template-areas: "tick what moves bin"; }
.todo.is-link .order-mark { color: var(--ink-4); font-size: 11.5px; font-weight: 650; text-align: center; }
.todo.is-link .rename.two { display: grid; gap: 0; }
.todo.is-link .sub-in { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.todo.is-link .sub-in:focus { color: var(--ink); }
.moves-v { grid-area: moves; display: inline-flex; gap: 2px; opacity: 0; transition: opacity var(--fast) var(--ease); }
.todo.is-link:hover .moves-v, .todo.is-link:focus-within .moves-v { opacity: 1; }
.moves-v .btn[disabled] { opacity: 0.3; pointer-events: none; }
.add-step.is-link { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.4fr) auto; }
@container (max-width: 620px) { .add-step.is-link { grid-template-columns: 20px minmax(0, 1fr); } .add-step.is-link > * { grid-column: 2; } .add-step.is-link > .plus { grid-column: 1; } .moves-v { opacity: 1; } }
form.when.is-inline { display: inline-flex; vertical-align: middle; }
@container (max-width: 700px) {
  .todo.is-regular { grid-template-columns: 20px minmax(0, auto) minmax(0, 1fr) 28px; grid-template-areas: "tick what what bin" ". who when book"; }
  .todo.is-regular > .who, .todo.is-regular > .when, .todo.is-regular > form.book { justify-self: start; }
}
@container (max-width: 700px) {
  .add-step.is-agreement { grid-template-columns: 20px minmax(0, 1fr); }
  .add-step.is-agreement > * { grid-column: 2; justify-self: start; }
  .add-step.is-agreement > .plus { grid-column: 1; }
  .add-step.is-agreement .plain[name=with_whom] { width: 100%; }
}
@media (max-width: 1100px) {
  .add-line.is-diary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .add-line.is-diary .joiner { display: none; }
  .add-line.is-diary .input[name=title] { grid-column: 2 / 4; }
  .add-line.is-diary .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .add-line.is-diary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .add-line.is-diary .input[name=title], .add-line.is-diary .input[name=place] { grid-column: 1 / -1; }
  .add-line.is-diary .select { grid-column: 1 / -1; }
}

/* going, arriving */
.thing.is-going, .todo.is-going { opacity: 0; transform: translateX(10px); pointer-events: none; }
.thing.is-hit, .todo.is-hit { animation: hit 1.8s var(--ease); }
@keyframes hit { 0%, 35% { background: var(--accent-soft); box-shadow: -20px 0 0 var(--accent-soft), 20px 0 0 var(--accent-soft); } 100% { background: transparent; box-shadow: -20px 0 0 transparent, 20px 0 0 transparent; } }

/* a message with one thing to press */
.toast.has-action { display: inline-flex; align-items: center; gap: 14px; padding: 7px 8px 7px 18px; }
.toast button { border: 0; border-radius: 8px; padding: 6px 13px; font-weight: 700; font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, 0.16); color: inherit; transition: background var(--fast) var(--ease); }
.toast button:hover { background: rgba(255, 255, 255, 0.28); }
[data-theme="dark"] .toast button { background: rgba(0, 0, 0, 0.14); }
[data-theme="dark"] .toast button:hover { background: rgba(0, 0, 0, 0.24); }

@media (max-width: 1100px) {
  .add-line.is-opp { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .add-line.is-opp .joiner:nth-of-type(2) { display: none; }
  .add-line.is-opp .input[type=date], .add-line.is-opp .select, .add-line.is-opp .btn { grid-column: auto; }
  .add-line.is-opp .input[type=date] { grid-column: 1; }
  .add-line.is-opp .select { grid-column: 2 / 4; }
  .add-line.is-opp .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .add-line.is-todo, .add-line.is-decision, .add-line.is-opp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .add-line .joiner { display: none; }
  .add-line .input[name=name], .add-line .input[name=title], .add-line .input[name=question], .add-line .input[name=company] { grid-column: 1 / -1; }
  .add-line .input[type=date] { grid-column: 1; min-width: 0; }
  .add-line .select, .add-line.is-opp .select { grid-column: 2; min-width: 0; }
  .add-line .textarea { grid-column: 1 / -1; order: 8; }
  .add-line .btn, .add-line.is-opp .btn { grid-column: 1 / -1; order: 9; }
  .card.things-card { padding: 2px 14px; }
  .thing-head { grid-template-columns: 20px minmax(0, auto) minmax(0, 1fr) 28px; grid-template-areas: "tick title title bin" ". who when when"; row-gap: 6px; column-gap: 10px; }
  .thing-head > .who, .thing-head > .when { justify-self: start; }
  .thing-head form.who .inline-select { width: auto; max-width: 150px; text-align: left; text-align-last: left; padding-left: 0; }
  .thing-title .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .thing-body { padding: 0 0 18px; }
  .fields { grid-template-columns: 1fr; }
  .bin { opacity: 0.8; }
}

/* ============================================================================
   v0.12 — the page before sign-in, and the screen with the logo between pages
   ========================================================================== */

/* ---- the logo, between pages ---- */
.splash {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 700px at 18% 12%, #17313a, transparent 62%),
    radial-gradient(900px 640px at 86% 92%, rgba(91, 76, 245, 0.20), transparent 60%),
    #0b0f12;
}
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 22px; animation: splash-mark 0.5s var(--ease) both; }
.splash img { width: min(230px, 56vw); height: auto; opacity: 0.96; }
.splash i { display: block; width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.splash i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, #25CDD6, transparent); animation: splash-run 1.1s ease-in-out infinite; }
/* arriving: it is there from the first moment, then lifts */
.is-arriving .splash, .front .splash { display: flex; animation: splash-out 0.42s var(--ease) 0.55s forwards; }
.front .splash { animation-delay: 0.8s; }
/* leaving: it comes down over the page */
.is-leaving .splash { display: flex; animation: splash-in 0.22s var(--ease) both; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes splash-mark { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes splash-run { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
/* what is under it rises as it lifts */
.is-arriving .login > *, .is-arriving .shell .page > * { animation: rise-in 0.55s var(--ease) 0.62s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- the front page ---- */
body.front {
  min-height: 100vh; min-height: 100dvh; margin: 0; color: #fff; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 12% 8%, #17313a, transparent 62%),
    radial-gradient(900px 640px at 92% 96%, rgba(91, 76, 245, 0.22), transparent 60%),
    radial-gradient(700px 500px at 60% 18%, rgba(37, 205, 214, 0.08), transparent 60%),
    #0b0f12;
  background-attachment: fixed;
}
.front-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px clamp(24px, 6vw, 84px); animation: rise-in 0.6s var(--ease) 0.95s both; }
.front-mark { width: 150px; height: auto; opacity: 0.92; }
.front-in { color: rgba(255, 255, 255, 0.8); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 9px 20px; transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease); }
.front-in:hover { color: #0B1215; background: #fff; border-color: #fff; transform: translateY(-2px); }
.front-main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3vh clamp(24px, 6vw, 84px) 7vh; max-width: 760px; }
.front.has-wall .front-main { max-width: min(760px, 56vw); }
.front-main > * { animation: rise-in 0.62s var(--ease) both; }
.front-eyebrow { margin: 0; color: #25CDD6; font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 650; animation-delay: 1.0s; }
.front-main h1 { margin: 20px 0 0; font-size: clamp(44px, 7.2vw, 92px); font-weight: 800; letter-spacing: -0.038em; line-height: 0.98; color: #fff; animation-delay: 1.08s; }
.front-main h1 em { font-style: normal; color: #25CDD6; }
.front-sub { margin: 26px 0 0; color: #b7c0c4; font-size: clamp(15.5px, 1.45vw, 19px); line-height: 1.55; max-width: 44ch; animation-delay: 1.18s; }
.front-go { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; animation-delay: 1.28s; }
.front-go .btn.is-primary { padding: 14px 40px; font-size: 15px; border-radius: 999px; box-shadow: 0 2px 12px rgba(37, 205, 214, 0.24); transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), filter 0.18s var(--ease); }
.front-go .btn.is-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 205, 214, 0.38); filter: none; }
.front-go .btn.is-primary:active { transform: translateY(0) scale(0.985); }
.front-site { color: rgba(255, 255, 255, 0.62); font-size: 13.5px; font-weight: 600; }
.front-site:hover { color: #fff; }
.front-now { margin: 54px 0 0; display: flex; flex-wrap: wrap; gap: 22px 44px; animation-delay: 1.4s; }
.front-now > div { min-width: 0; }
.front-now dt { color: rgba(255, 255, 255, 0.42); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650; margin-bottom: 10px; }
.front-now dd { margin: 0; }
.front-now a, .front-now .plainly { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.front-now img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); flex: none; }
.front-now span > b { display: block; font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
.front-now small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin-top: 2px; }
.front-now a:hover small { color: #25CDD6; }
.front-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px clamp(24px, 6vw, 84px) 26px; color: rgba(255, 255, 255, 0.34); font-size: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); animation: rise-in 0.6s var(--ease) 1.5s both; }

/* the wall of artwork: three columns that drift, tilted, fading out at the edges */
.front-wall { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 46vw; overflow: hidden; pointer-events: none; animation: splash-in 1.4s var(--ease) 1.1s both;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%), linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 34%), linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent); mask-composite: intersect; }
.wall-tilt { position: absolute; top: -18%; bottom: -18%; right: -6%; width: 112%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transform: rotate(-9deg); transform-origin: center; }
.wall-col { min-width: 0; }
.wall-run { display: flex; flex-direction: column; gap: 18px; animation: wall-up 64s linear infinite; will-change: transform; }
.wall-col.is-down .wall-run { animation-name: wall-down; animation-duration: 78s; }
.wall-col.is-slow .wall-run { animation-duration: 92s; }
.wall-run img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); background: #151c21; opacity: 0.9; }
/* each run holds its covers twice: half its height is exactly one turn */
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }

.login-logo { display: block; }
.login-logo img { width: 240px; height: auto; }
.login-back { margin-top: 14px; color: rgba(255, 255, 255, 0.5); font-size: 12.5px; font-weight: 600; }
.login-back:hover { color: #fff; }

@media (max-width: 900px) {
  .front-wall { width: 100%; opacity: 0.2; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent); animation-name: wall-dim; }
  .wall-tilt { right: -20%; width: 140%; }
  .front.has-wall .front-main { max-width: none; }
  .front-top { padding-top: 20px; }
  .front-main { padding-bottom: 5vh; }
  .front-now { margin-top: 40px; gap: 20px 32px; }
  .front-foot { justify-content: center; text-align: center; }
}
@keyframes wall-dim { from { opacity: 0; } to { opacity: 0.2; } }

/* no movement for anyone who has asked for none, and nothing left covering the page */
@media (prefers-reduced-motion: reduce) {
  .splash { display: none !important; }
  .front-top, .front-main > *, .front-foot, .front-wall, .is-arriving .login > *, .is-arriving .shell .page > * { animation: none !important; }
  .wall-run { animation: none !important; }
  .thing-body { animation: none; }
}

/* ---------------------------------------------------------------- the Bio screen: Komi's Content screen, in our clothes */
.bio-edit { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.bio-sections { display: flex; flex-direction: column; gap: 14px; }
.bio-sec { padding: 14px 16px 12px; margin-bottom: 14px; }
.bio-sections .bio-sec { margin-bottom: 0; }
.bio-sec.is-off { opacity: 0.6; }
.bio-sec.is-saving { opacity: 0.7; pointer-events: none; }
.bio-sec.is-dragging { opacity: 0.4; }
.bio-sec-head { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 8px; }
.bio-sec-head h2 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
.bio-sec-head form.rename { flex: 1; min-width: 0; }
.bio-sec-head .plain.h { font-size: 15px; font-weight: 700; width: 100%; }
.bio-sec-head .bio-kind { flex: none; }
.bio-sec-head .muted { flex: 1; }
.bio-sec-head .bin { opacity: 0; }
.bio-sec:hover .bio-sec-head .bin, .bio-sec-head .bin:focus-visible { opacity: 1; }
.grip { display: inline-flex; align-items: center; justify-content: center; width: 20px; color: var(--ink-4); font-size: 13px; letter-spacing: -3px; cursor: grab; user-select: none; touch-action: none; flex: none; }
.grip:active { cursor: grabbing; }
.eye { border: 1px solid var(--rule-2); background: transparent; color: var(--ink-3); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 3px 9px; cursor: pointer; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.eye:hover { color: var(--ink); border-color: var(--ink-3); }
.eye.is-off { color: var(--amber-text, #9a6b16); border-color: color-mix(in srgb, var(--amber, #F5A45C) 60%, transparent); }
.eye-form { display: inline-flex; }
.bio-note { margin: 0 0 8px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.bio-note a { color: var(--accent-text); font-weight: 600; }
.fields.is-tight { margin-bottom: 10px; }

/* items */
.bio-items { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.bio-items .todo, .bio-more .todo { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px 8px 6px; }
.bio-items .todo:first-child, .bio-more .todo:first-child { border-top: 1px solid var(--rule); }
.bio-more > .todos { display: flex; flex-direction: column; gap: 10px; }
.todo.is-bio-item { grid-template-columns: 20px 32px minmax(0, 1fr) auto auto auto 28px; grid-template-areas: "grip thumb what more moves eye bin" "body body body body body body body"; gap: 6px 12px; }
.todo.is-bio-item > .moves-v { grid-area: moves; }
.bio-sec-head > .moves-v { opacity: 0; }
.bio-sec:hover > .bio-sec-head > .moves-v, .bio-sec-head > .moves-v:focus-within, .todo.is-bio-item:hover > .moves-v, .todo.is-bio-item:focus-within > .moves-v { opacity: 1; }
@media (hover: none) { .moves-v, .bio-sec-head > .moves-v, .todo.is-bio-item > .open-more { opacity: 1; } }
.todo.is-bio-item > .grip { grid-area: grip; }
.todo.is-bio-item > .bio-thumb { grid-area: thumb; }
.todo.is-bio-item > .what { grid-area: what; }
.todo.is-bio-item > .open-more { grid-area: more; opacity: 0; }
.todo.is-bio-item:hover > .open-more, .todo.is-bio-item.is-open > .open-more, .todo.is-bio-item > .open-more:focus-visible { opacity: 1; }
.todo.is-bio-item > .eye-form { grid-area: eye; }
.todo.is-bio-item > .bin-form { grid-area: bin; }
.todo.is-bio-item > .bio-item-body { grid-area: body; display: none; padding: 4px 0 6px 44px; }
.todo.is-bio-item.is-open > .bio-item-body { display: block; }
.todo.is-bio-item.is-off > .what, .todo.is-bio-item.is-off > .bio-thumb { opacity: 0.5; }
.todo.is-bio-item.is-dragging { opacity: 0.4; }
.bio-thumb { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.bio-thumb img { width: 32px; height: 32px; object-fit: cover; }
.bio-thumb.is-blank img { width: 16px; height: 16px; filter: invert(0.5); }
[data-theme="dark"] .bio-thumb.is-blank img { filter: none; opacity: 0.6; }
.todo .rename.two { display: grid; gap: 0; }
.todo .rename.two .sub-in { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.todo .rename.two .sub-in:focus { color: var(--ink); }
.todo .sub.is-auto { color: var(--ink-4); font-size: 11px; }
.bio-pic-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bio-pic-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.bio-upload { position: relative; overflow: hidden; cursor: pointer; }
.bio-more > summary { color: var(--accent-text); font-weight: 600; font-size: 13px; padding: 8px 0 4px 52px; }
.bio-more > .todos { margin-top: 0; }
.add-step.is-bio-add { grid-template-columns: 20px minmax(0, 1.4fr) minmax(0, 1fr) auto; border-top: 0; }
.add-step.is-bio-add .plus { color: var(--accent-text); font-weight: 700; }
.add-step.is-bio-add .plain::placeholder, .add-step.is-bio-add .select { color: var(--accent-text); font-weight: 600; }
.add-step.is-bio-add .plain:focus::placeholder { color: var(--ink-4); font-weight: 500; }
.add-step.is-bio-add .select { max-width: 100%; }
.add-step.is-social { grid-template-columns: 20px auto minmax(0, 1fr) auto; }
.todo.is-social { grid-template-columns: 20px 28px minmax(0, 1fr) 28px; grid-template-areas: "grip mark what bin"; }
.todo.is-social > .grip { grid-area: grip; }
.todo.is-social > .social-mark { grid-area: mark; width: 28px; height: 28px; border-radius: 8px; background: #111; display: inline-flex; align-items: center; justify-content: center; }
.todo.is-social > .what { grid-area: what; }
.todo.is-social > .bin-form { grid-area: bin; }
.todo.is-message { grid-template-columns: 20px minmax(0, 1fr) 28px; grid-template-areas: "mark what bin"; align-items: start; }
.todo.is-message > .msg-mark { grid-area: mark; color: var(--accent); font-size: 10px; padding-top: 6px; }
.todo.is-message > .what { grid-area: what; }
.todo.is-message .msg-body { margin: 6px 0 0; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.todo.is-message > .bin-form { grid-area: bin; }
.bio-messages { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.bio-messages > .k { display: flex; align-items: center; gap: 8px; }
.bio-messages > .k .n { color: var(--ink-4); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* the header card */
.bio-header-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.bio-photo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bio-photo img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; background: #111; }
.bio-photo-none { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 14px; background: var(--surface-2); color: var(--ink-4); font-size: 12px; text-align: center; }
.bio-photo-menu .menu-body { left: 0; right: auto; width: 360px; }
.bio-press-pics { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.bio-press-pic { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; line-height: 0; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.bio-press-pic img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.bio-press-pic:hover { border-color: var(--accent); transform: translateY(-1px); }
.bio-add-row { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 14px 0 18px; align-items: center; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bio-add-row .btn { border-radius: 999px; padding: 9px 20px; }
.bio-add-section { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bio-add-section .select { width: auto; }
.bio-add-section .input { width: 260px; }

/* the phone at the right: the page as it is, in a frame that stays put while the list scrolls */
.bio-preview { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bio-preview-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bio-url { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.bio-url code { font-weight: 600; }
.bio-devices { display: inline-flex; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.bio-devices button { border: 0; background: transparent; color: var(--ink-3); min-width: 34px; height: 30px; padding: 0 8px; cursor: pointer; font-size: 13px; }
.bio-devices button.is-active { background: var(--ink); color: var(--surface); }
.bio-frame { width: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; background: #121212; box-shadow: var(--shadow-pop); transition: width var(--slow) var(--ease), max-width var(--slow) var(--ease); }
.bio-frame { --frame-h: min(710px, calc(100vh - 170px)); height: var(--frame-h); }
.bio-frame.is-phone { width: 402px; }
.bio-frame.is-tablet, .bio-frame.is-desktop { width: 100%; }
.bio-frame iframe { display: block; width: 100%; height: var(--frame-h); border: 0; background: #121212; transform-origin: 0 0; }
/* the wider pages, shrunk to fit the column */
.bio-frame.is-tablet iframe { width: 768px; height: calc(var(--frame-h) / 0.52); transform: scale(0.52); }
.bio-frame.is-desktop iframe { width: 1200px; height: calc(var(--frame-h) / 0.333); transform: scale(0.333); }
@media (max-width: 1180px) {
  .bio-edit { grid-template-columns: minmax(0, 1fr); }
  .bio-preview { position: static; }
  .bio-frame.is-phone { width: 100%; }
  .bio-frame iframe { height: 640px; }
}
@media (max-width: 860px) { .bio-add-row { position: static; background: none; padding-top: 6px; } }
@media (max-width: 860px) {
  .bio-sec-head { flex-wrap: wrap; row-gap: 6px; }
  .bio-sec-head form.rename, .bio-sec-head h2 { flex: 1 1 calc(100% - 34px); min-width: 0; }
  .bio-sec-head > .bio-kind { margin-left: 30px; }
}
@container (max-width: 640px) {
  .bio-header-grid { grid-template-columns: minmax(0, 1fr); }
  .todo.is-bio-item { grid-template-columns: 20px 32px minmax(0, 1fr) 28px; grid-template-areas: "grip thumb what bin" ". . more more" "body body body body"; }
  .todo.is-bio-item > .open-more { justify-self: start; }
  .todo.is-bio-item > .moves-v, .todo.is-bio-item > .eye-form { grid-area: more; justify-self: end; }
  .todo.is-bio-item > .moves-v { margin-right: 64px; }
  .todo.is-bio-item > .open-more { opacity: 1; }
  .add-step.is-bio-add, .add-step.is-social { grid-template-columns: 20px minmax(0, 1fr); }
  .add-step.is-bio-add > *, .add-step.is-social > * { grid-column: 2; }
  .add-step.is-bio-add > .plus, .add-step.is-social > .plus { grid-column: 1; }
}

/* the artist's name in type, where an install has no logo switched on */
.brand-type { display: inline-block; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: inherit; }
.brand-type.is-xs { font-size: 12px; }
.brand-type.is-sm { font-size: 17px; }
.brand-type.is-lg { font-size: 26px; }
.sidebar-logo .brand-type { color: #fff; opacity: 0.35; transition: opacity var(--slow) var(--ease); }
.sidebar-logo:hover .brand-type { opacity: 0.7; }
.splash .brand-type, .front .brand-type { color: #fff; }
.login-logo .brand-type { color: #fff; }

/* ---- everyone on a to-do: the names are the control, the people are ticked underneath */
form.who.is-many { position: relative; }
.who-pick { position: relative; }
.who-pick > summary { list-style: none; display: inline-block; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 20px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center; }
.who-pick > summary::-webkit-details-marker { display: none; }
.who-pick[open] > summary { border-color: var(--accent); background-color: var(--hover); }
.who-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; padding: 6px 4px; background: var(--bg-elev); border: 1px solid var(--rule-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); display: grid; gap: 2px; }
.who-list .check { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.who-list .check:hover { background: var(--hover); }
.who-list .check input { margin: 0; }
.todo form.who.is-many .inline-select { width: auto; text-align: left; text-align-last: left; }
@container (max-width: 620px) { .who-list { right: auto; left: 0; } }

/* ---- a link that plays */
.player { margin: 8px 0 2px; }
.player.is-audio audio { width: 100%; height: 36px; display: block; }
.player.is-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: var(--surface-3); }
.player.is-video { aspect-ratio: 16 / 9; }
.player.is-video iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }
.link-row .meta { align-self: flex-start; }

/* ---- a press link that is private from the start */
.linkform .choice { grid-column: 1 / -1; }
.choice.is-small .choice-opt span { padding: 5px 11px; font-size: 12.5px; }

/* ---- the way back to the platform */
.sidebar .powered { display: block; margin: 8px 12px 2px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }
.sidebar .powered b { font-weight: 900; letter-spacing: -0.05em; color: var(--ink-2); }
.sidebar .powered b i { font-style: normal; opacity: 0.5; }
.sidebar .powered:hover { color: var(--ink); }
.front-powered { color: inherit; }
.front-powered b { font-weight: 900; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.7); }
.front-powered:hover b { color: #fff; }
