
/* =========================================================================
   Team Design System — Colors & Type
   =========================================================================
   Brand: Team (Team Rollouts, Inc.)
   A platform for the music industry to manage releases and rollouts.
   ========================================================================= */

/* ---------- Fonts ----------
   Primary:   Inter — workhorse UI sans. Used for body, headlines,
              buttons, labels. Weights 300/400/500/600/700.
   Secondary: Montserrat — used for display moments, editorial
              emphasis, occasional headlines. Italics carry the
              signature "highlighter" role (the word the headline
              leans on). Weights 400/500/600/700 + italics.
   Feature:   Special Gothic Expanded One — occasional display face
              for hero moments, posters, merch-style type. Used
              SPARINGLY — one hit per screen, max.
   Mono:      JetBrains Mono — labels, timestamps, tags, data,
              footnotes, system messages. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Special+Gothic+Expanded+One&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* =========================================================================
     COLORS — Core palette
     ========================================================================= */

  /* --- Ink (near-blacks, our primary canvas) --- */
  --ink-900: #0E0E10;   /* darkest — app chrome, deep backgrounds */
  --ink-800: #17171A;   /* default dark bg (matches social posts) */
  --ink-700: #1E1E22;   /* raised surface on dark */
  --ink-600: #2A2A30;   /* card border / divider on dark */
  --ink-500: #3A3A42;   /* muted border */

  /* --- Paper (near-whites, inverted canvas) --- */
  --paper-50:  #FFFFFF; /* pure white — light canvas */
  --paper-100: #FAFAF7; /* warm off-white — preferred light bg */
  --paper-200: #F2F1EC; /* subtle tint — inset panels */
  --paper-300: #E6E4DC; /* border / divider on light */
  --paper-400: #CFCCC1; /* muted stroke */

  /* --- Lime (signature accent — only used at small doses) --- */
  --lime-50:   #F2FBDC;
  --lime-100:  #E4F5B0;
  --lime-300:  #CAEC73;
  --lime-500:  #C0EC5F;   /* PRIMARY accent — "REALITY" pill, highlights */
  --lime-600:  #A8D84A;
  --lime-700:  #7FA830;

  /* --- Ember (logomark gradient stack — warm, signature) --- */
  --ember-950: #3B0F08;   /* deepest maroon (logo stripe 1) */
  --ember-900: #5A1710;
  --ember-800: #8C1F13;
  --ember-700: #BF2A14;
  --ember-600: #E83E18;   /* iconic red-orange (logo stripe 4) */
  --ember-500: #F25A22;
  --ember-400: #F4833E;
  --ember-300: #F2A56B;
  --ember-200: #E8C4A0;
  --ember-100: #DCD1C5;   /* palest sand (logo stripe 7) */

  /* --- Semantic signals --- */
  --signal-live:    #C0EC5F; /* release live / success */
  --signal-due:     #F4833E; /* due soon / warning */
  --signal-late:    #E83E18; /* overdue / error */
  --signal-hold:    #8A8A94; /* paused / neutral */

  /* =========================================================================
     SEMANTIC — FOREGROUND (dark mode is the default canvas)
     ========================================================================= */
  --fg-1: var(--paper-100);          /* primary text on dark */
  --fg-2: #B8B6AE;                   /* secondary — captions, meta */
  --fg-3: #7A7770;                   /* tertiary — timestamps, hints */
  --fg-inverse: var(--ink-900);      /* text on light surfaces / lime pills */
  --fg-accent: var(--lime-500);
  --fg-brand:  var(--ember-600);
  --fg-link:   var(--lime-500);

  /* =========================================================================
     SEMANTIC — BACKGROUND
     ========================================================================= */
  --bg-canvas:   var(--ink-800);     /* the Team canvas — warm near-black */
  --bg-surface:  var(--ink-700);     /* cards, panels */
  --bg-raised:   var(--ink-600);     /* dropdowns, modals */
  --bg-inverse:  var(--paper-100);   /* light canvas pages */
  --bg-inset:    #121214;

  /* Border & divider */
  --border-hair:    rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);
  --border-focus:   var(--lime-500);

  /* =========================================================================
     RADII — soft but not cute. Pills for CTAs.
     ========================================================================= */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* =========================================================================
     SPACING — 4px base
     ========================================================================= */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* =========================================================================
     SHADOWS — restrained. Mostly we use borders.
     ========================================================================= */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.55);
  --shadow-glow-lime: 0 0 0 3px rgba(192,236,95,0.25);

  /* =========================================================================
     TYPE — Families
     ========================================================================= */
  --font-sans:      'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-secondary: 'Montserrat', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-feature:   'Special Gothic Expanded One', 'Montserrat', 'Inter', sans-serif;
  --font-highlight: 'Instrument Serif', 'Playfair Display', Georgia, serif; /* italic-only, for the "highlighter" word */
  --font-display:   'Special Gothic Expanded One', 'Montserrat', 'Inter', sans-serif; /* legacy alias */
  --font-mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (px) */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  40px;
  --fs-4xl:  56px;
  --fs-5xl:  72px;
  --fs-6xl:  96px;

  /* Line heights */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.45;
  --lh-relaxed: 1.6;

  /* Letter spacing — mono labels get +tracking when uppercased */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-mono:   0.04em;

  /* =========================================================================
     MOTION
     ========================================================================= */
  --ease-out:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out:  cubic-bezier(0.6, 0, 0.2, 1);
  --dur-fast:     120ms;
  --dur-base:     200ms;
  --dur-slow:     400ms;
}

/* =========================================================================
   LIGHT SURFACE OVERRIDE
   Apply to anything that should sit on paper instead of ink.
   ========================================================================= */
[data-surface="light"] {
  --bg-canvas:  var(--paper-100);
  --bg-surface: var(--paper-50);
  --bg-raised:  var(--paper-50);
  --bg-inset:   var(--paper-200);
  --fg-1: var(--ink-900);
  --fg-2: #4A4842;
  --fg-3: #8A8780;
  --border-hair:    rgba(14,14,16,0.05);
  --border-default: rgba(14,14,16,0.10);
  --border-strong:  rgba(14,14,16,0.18);
}

/* =========================================================================
   SEMANTIC TYPE — composed styles
   ========================================================================= */

/* Display — editorial hero moments. Uses Inter for the base and
   Montserrat italic for the emphasis word (the "highlighter" move).
   For poster-style moments, use .t-feature instead. */
.t-display {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 96px);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--fg-1);
}
.t-display em,
.t-display .ital {
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-accent);
}

/* Feature — Special Gothic Expanded One. Used for big moments:
   poster-style headings, merch, section dividers in marketing.
   Always uppercase or sentence-case; never mid-sentence. */
.t-feature {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg-1);
}

/* Headlines */
h1, .t-h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--fg-1);
}
h2, .t-h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--fg-1);
}
h3, .t-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-2xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--fg-1);
}
h4, .t-h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  font-weight: 500;
  color: var(--fg-1);
}

/* Body */
p, .t-body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-1);
}
.t-body-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}
.t-body-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}

/* Caption / meta */
.t-caption {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--fg-3);
}

/* Mono label — classic Team small-caps-feel overline.
   Used for section labels, timestamps, tags, footnotes. */
.t-mono,
.t-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-2);
}
.t-mono-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Italic pull — inline editorial accent using Instrument Serif Italic.
   This is THE "highlighter" move from the Myth vs Machine series.
   Pick ONE word per headline and italicize it.
   e.g. <span class="t-ital">really</span>
   Color is usually lime on dark, or keeps inherited color on light. */
.t-ital {
  font-family: var(--font-highlight);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Code / data */
code, .t-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
  color: var(--fg-1);
}

/* =========================================================================
   Team — Releases redesign
   Light-first, data-forward, editorial magazine feel
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The entire page is themed via data-surface. We default to light. */
:root {
  --card-bg: var(--paper-50);
  --card-border: var(--paper-300);
  --card-shadow: 0 1px 0 rgba(14,14,16,0.02), 0 8px 24px -12px rgba(14,14,16,0.08);
  --thumb-bg: var(--paper-200);
  --sidebar-bg: var(--paper-100);
  --sidebar-active: var(--ink-900);
  --sidebar-active-fg: var(--paper-50);
  --row-hover: rgba(14,14,16,0.03);
  --accent: var(--ember-600);
  --accent-soft: rgba(232,62,24,0.08);
  --accent-ink: #fff;
}
[data-surface="dark"] {
  --bg-canvas:  #121214;
  --bg-surface: #1A1A1D;
  --bg-raised:  var(--ink-700);
  --bg-inset:   #0E0E10;
  --fg-1: #F2F0E8;
  --fg-2: #B0AEA4;
  --fg-3: #76736B;
  --border-hair:    rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);
  --card-bg: #1A1A1D;
  --card-border: rgba(255,255,255,0.08);
  --card-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 8px 24px -12px rgba(0,0,0,0.6);
  --thumb-bg: #232328;
  --sidebar-bg: #141416;
  --sidebar-active: #F2F0E8;
  --sidebar-active-fg: #0E0E10;
  --row-hover: rgba(255,255,255,0.04);
  --accent-soft: rgba(232,62,24,0.14);
}

/* =========================================================================
   Shell layout
   ========================================================================= */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  min-height: 720px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--card-border);
  display: flex; flex-direction: column;
  padding: 14px 10px 16px;
  gap: 10px;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 2px; }

.profile {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.profile:hover { background: var(--row-hover); }
.profile .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ember-600);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
  font-weight: 600;
  flex: none;
}
.profile .who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.profile .who strong { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.profile .who span {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3);
  letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
.profile .caret { margin-left: auto; color: var(--fg-3); flex: none; }

/* Workspace switcher */
.ws-list { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.ws {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
}
.ws:hover { background: var(--row-hover); }
.ws.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-fg);
}
.ws.active .ws-meta { color: rgba(255,255,255,0.55); }
[data-surface="light"] .ws.active .ws-meta { color: rgba(255,255,255,0.6); }
.ws .ws-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: var(--paper-200); color: var(--ink-900);
  flex: none;
  border: 1px solid var(--card-border);
}
[data-surface="dark"] .ws .ws-icon { background: #26262B; color: var(--fg-1); border-color: rgba(255,255,255,0.08); }
.ws.active .ws-icon { background: var(--ember-600); color: #fff; border: 0; }
.ws-name { font-size: 13px; font-weight: 500; line-height: 1.1; }
.ws-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1.1;
}
.ws-body { display: flex; flex-direction: column; min-width: 0; }

.nav-group { display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.nav-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 10px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-item:hover { background: var(--row-hover); color: var(--fg-1); }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-fg);
}
.nav-item.active .count { color: rgba(255,255,255,0.55); }
.nav-item svg { flex: none; }
.nav-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
}
.nav-item .count.pill {
  background: var(--accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
}

.sidebar .divider { height: 1px; background: var(--card-border); margin: 4px 10px; }

.ws-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--row-hover);
  font-size: 12.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  cursor: text;
}
.ws-search input {
  border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 12.5px;
  color: var(--fg-1); width: 100%;
}
.ws-search input::placeholder { color: var(--fg-3); }

/* Sidebar footer — brand */
.sidebar-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--card-border);
}
.sidebar-foot .brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(180deg, var(--ember-950) 0%, var(--ember-800) 35%, var(--ember-600) 65%, var(--ember-300) 100%);
  flex: none;
}
.sidebar-foot .name {
  font-family: var(--font-feature); font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--fg-1);
  text-transform: uppercase;
}
.sidebar-foot .tier {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ember-100);
  color: var(--ember-800);
  text-transform: uppercase;
  margin-left: auto;
}
[data-surface="dark"] .sidebar-foot .tier { background: rgba(232,62,24,0.15); color: var(--ember-300); }

/* =========================================================================
   Main
   ========================================================================= */
.main {
  display: flex; flex-direction: column;
  overflow-y: auto;
  background: var(--bg-canvas);
}

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 32px 10px;
  position: sticky; top: 0;
  background: linear-gradient(180deg, var(--bg-canvas) 70%, transparent 100%);
  z-index: 10;
}
.breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.page-title {
  font-family: var(--font-sans);
  font-size: 30px;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-1);
  margin: 0;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.page-title .t-ital {
  color: var(--accent);
}
.title-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.iconbtn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.iconbtn:hover { background: var(--row-hover); color: var(--fg-1); }
.iconbtn.on { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 30%, transparent); background: var(--accent-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--row-hover); }
.btn.primary {
  background: var(--ink-900);
  color: var(--paper-50);
  border-color: var(--ink-900);
}
.btn.primary:hover { background: #000; }
[data-surface="dark"] .btn.primary { background: var(--paper-100); color: var(--ink-900); border-color: var(--paper-100); }
[data-surface="dark"] .btn.primary:hover { background: #fff; }
.btn.accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn.accent:hover { filter: brightness(1.07); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* Filter bar */
.filterbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 32px 18px;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 2px; background: var(--row-hover); padding: 3px; border-radius: 10px; }
.tab {
  font-size: 12.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 7px;
  color: var(--fg-2); cursor: pointer;
  border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--fg-1); }
.tab.active {
  background: var(--card-bg); color: var(--fg-1);
  box-shadow: var(--card-shadow);
}
.tab .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: 0.03em; }
.tab.active .n { color: var(--fg-2); }

.filterbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* View switcher */
.viewswitch { display: flex; gap: 2px; border: 1px solid var(--card-border); border-radius: 10px; padding: 2px; background: var(--card-bg); }
.viewswitch button {
  width: 32px; height: 28px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 7px;
  color: var(--fg-3); cursor: pointer;
}
.viewswitch button:hover { color: var(--fg-1); }
.viewswitch button.active { background: var(--ink-900); color: var(--paper-50); }
[data-surface="dark"] .viewswitch button.active { background: var(--paper-100); color: var(--ink-900); }

/* Segmented variant picker */
.variant-picker {
  display: inline-flex; gap: 0;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2px;
  background: var(--card-bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.variant-picker button {
  padding: 6px 10px;
  background: transparent; border: 0; border-radius: 7px;
  color: var(--fg-3); cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.variant-picker button:hover { color: var(--fg-1); }
.variant-picker button.active {
  background: var(--accent); color: #fff;
}

/* =========================================================================
   CONTENT AREA
   ========================================================================= */
.content { padding: 22px 32px 80px; flex: 1; }

/* ====== VARIANT A — Editorial Ledger ====== */
.grid-a {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.rcard {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  position: relative;
}
.rcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(14,14,16,0.04), 0 20px 40px -16px rgba(14,14,16,0.18);
  border-color: var(--border-strong);
}
.rcard.dragging { opacity: 0.4; }
.rcard.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.rcard .head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.status .sdot { width: 6px; height: 6px; border-radius: 50%; }
.status.progress { background: rgba(244,131,62,0.12); color: var(--ember-800); }
[data-surface="dark"] .status.progress { background: rgba(244,131,62,0.15); color: var(--ember-300); }
.status.progress .sdot { background: var(--ember-500); }
.status.released { background: rgba(168,216,74,0.18); color: #54721E; }
[data-surface="dark"] .status.released { background: rgba(192,236,95,0.18); color: var(--lime-500); }
.status.released .sdot { background: var(--lime-600); }
.status.scheduled { background: rgba(14,14,16,0.05); color: var(--fg-1); }
[data-surface="dark"] .status.scheduled { background: rgba(255,255,255,0.06); }
.status.scheduled .sdot { background: var(--fg-2); }
.status.hold { background: rgba(138,138,148,0.14); color: var(--fg-2); }
.status.hold .sdot { background: var(--signal-hold); }

.head .menu { margin-left: auto; color: var(--fg-3); cursor: pointer; padding: 2px; }
.head .menu:hover { color: var(--fg-1); }

/* Cover strip: small cover thumb + release metadata and progress ring */
.cover-strip {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 4px 16px 14px;
  align-items: center;
  min-width: 0;
}
.cover {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--thumb-bg);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  flex: none;
  border: 1px solid var(--card-border);
}
.cover .cover-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .placeholder {
  width: 60%; height: 60%;
  color: var(--fg-3);
  opacity: 0.55;
}
.cover-strip .title-block { min-width: 0; }
.cover-strip .release-title {
  font-family: var(--font-feature);
  font-size: 15px;
  letter-spacing: 0.015em;
  line-height: 1.05;
  color: var(--fg-1);
  margin: 0 0 4px;
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cover-strip .artist {
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 4px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cover-strip .meta-row {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--fg-3);
  white-space: nowrap;
}
.cover-strip .meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); flex: none; }

/* Progress ring */
.pring { position: relative; width: 42px; height: 42px; flex: none; }
.pring svg { transform: rotate(-90deg); }
.pring circle { fill: none; }
.pring .pring-track { stroke: var(--card-border); }
.pring .pring-arc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray 300ms var(--ease-out); }
.pring .pct {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--fg-1);
}

/* Task summary row */
.tasks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.tsum {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--card-border);
}
.tsum:last-child { border-right: 0; }
.tsum .n {
  font-family: var(--font-feature);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--fg-1);
  line-height: 1;
}
.tsum .n.warn { color: var(--ember-600); }
.tsum .n.late { color: var(--ember-700); }
.tsum .l {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Foot row */
.rcard .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 14px;
  gap: 10px;
}
.foot .owner {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--fg-2);
}
.foot .owner .mini-av {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper-200);
  font-family: var(--font-mono); font-size: 9.5px;
  display: grid; place-items: center;
  color: var(--ink-900);
  font-weight: 600;
  border: 1px solid var(--card-border);
}
[data-surface="dark"] .foot .owner .mini-av { background: #2A2A30; color: var(--fg-1); }
.foot .date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 5px;
}
.foot .date strong { color: var(--fg-1); font-weight: 500; }

/* HOVER PREVIEW — slides down inside the card */
.rcard .preview {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
  background: var(--bg-inset);
  border-top: 1px solid var(--card-border);
}
[data-surface="light"] .rcard .preview { background: var(--paper-100); }
.rcard:hover .preview, .rcard.pinned .preview { max-height: 280px; }

.preview-inner { padding: 14px 16px; }
.prev-block {
  display: flex; flex-direction: column; gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
.prev-block:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.prev-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.prev-head.late { color: var(--ember-700); }
[data-surface="dark"] .prev-head.late { color: var(--ember-300); }
.prev-head.up { color: var(--fg-2); }
.prev-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg-1);
  padding: 2px 0;
}
.prev-item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-item .d { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); flex: none; }

/* Progress bar (thin, at card bottom) */
.rcard .progressbar {
  height: 3px;
  background: var(--card-border);
  position: relative;
  overflow: hidden;
}
.rcard .progressbar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  transition: width 300ms var(--ease-out);
}

/* ====== VARIANT B — Studio Board (kanban-rhythm) ====== */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.column {
  background: transparent;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.col-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2px;
}
.col-head .badge {
  width: 8px; height: 8px; border-radius: 2px;
}
.col-head .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.col-head .cnt {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
}
.bcard {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--card-shadow);
}
.bcard:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.bcard-head { display: flex; align-items: center; gap: 10px; }
.bcard .bc-cover {
  width: 40px; height: 40px; border-radius: 7px;
  background: var(--thumb-bg);
  display: grid; place-items: center;
  border: 1px solid var(--card-border);
  flex: none;
  overflow: hidden;
}
.bcard .bc-cover .cover-art { width: 100%; height: 100%; object-fit: cover; }
.bc-title {
  font-family: var(--font-feature);
  font-size: 13.5px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--fg-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.bc-artist { font-size: 11.5px; color: var(--fg-2); margin-top: 2px; }
.bcard-foot {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.03em;
}
.bcard-foot .bar {
  flex: 1;
  height: 2px;
  background: var(--card-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.bcard-foot .bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
}
.bcard-foot .dbl {
  color: var(--fg-2);
}
.bcard-foot .d-late { color: var(--ember-700); }
[data-surface="dark"] .bcard-foot .d-late { color: var(--ember-300); }

/* ====== VARIANT C — Catalog Index (dense table) ====== */
.table-wrap {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--card-border);
  font-weight: 500;
}
.table tbody tr {
  border-bottom: 1px solid var(--card-border);
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--row-hover); }
.table tbody td { padding: 11px 14px; vertical-align: middle; color: var(--fg-1); }
.cell-release { display: flex; align-items: center; gap: 12px; }
.cell-release .mini-cover {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--thumb-bg);
  flex: none;
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--card-border);
}
.cell-release .mini-cover .cover-art { width: 100%; height: 100%; object-fit: cover; }
.cell-release .rel-title {
  font-family: var(--font-feature);
  font-size: 13px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.05;
}
.cell-release .rel-artist {
  font-size: 11.5px;
  color: var(--fg-2);
  margin-top: 2px;
}
.cell-progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.cell-progress .bar {
  flex: 1;
  height: 4px;
  background: var(--card-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cell-progress .bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 4px;
}
.cell-progress .pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--fg-2);
  min-width: 36px; text-align: right;
}
.cell-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--fg-2);
}
.cell-date .rel {
  display: block; font-family: var(--font-sans); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 1px;
}

/* ========== Drag indicator ========== */
.rcard[draggable="true"] { cursor: grab; }
.rcard[draggable="true"]:active { cursor: grabbing; }

/* ========== Tweaks panel ========== */
.tweaks-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 260px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  z-index: 50;
  box-shadow: 0 24px 48px -16px rgba(14,14,16,0.25);
  display: none;
}
.tweaks-float.open { display: block; }
.tweaks-float h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 10px;
  font-weight: 500;
}
.tweaks-float .tweak-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--card-border);
}
.tweaks-float .tweak-row:last-child { border-bottom: 0; }
.tweaks-float label { font-size: 12px; color: var(--fg-2); }
.seg {
  display: inline-flex;
  background: var(--row-hover);
  border-radius: 8px;
  padding: 2px;
}
.seg button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--fg-3);
  cursor: pointer;
}
.seg button.active { background: var(--card-bg); color: var(--fg-1); box-shadow: var(--card-shadow); }

.swatches { display: flex; gap: 5px; }
.swatches button {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  cursor: pointer;
  padding: 0;
}
.swatches button.active {
  box-shadow: 0 0 0 2px var(--fg-1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 64px 1fr; }
  .sidebar { padding: 10px 6px; }
  .ws-name, .ws-meta, .profile .who, .nav-label, .nav-item span:not(.count), .sidebar-foot .name, .sidebar-foot .tier, .ws-search { display: none; }
  .nav-item, .ws { justify-content: center; }
  .board { grid-template-columns: 1fr; }
}

