:root {
  --bg: #08090b;
  --panel: #111317;
  --panel-2: #171a20;
  --panel-3: #20242b;
  --ink: #f5f6f2;
  --muted: #9ca2ab;
  --line: rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.28);
  --acid: #d9ff45;
  --pink: #ff4da6;
  --cyan: #5ce1e6;
  --amber: #ffb84d;
  --violet: #9f7aea;
  --green: #51d88a;
  --red: #ff6262;
  --radius: 16px;
  --shadow: 0 28px 80px rgba(0,0,0,.45);
  --header-h: 76px;
  --player-h: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; padding-bottom: calc(var(--player-h) + 24px); background: radial-gradient(circle at 18% 0%, rgba(92,225,230,.08), transparent 34%), radial-gradient(circle at 90% 12%, rgba(255,77,166,.08), transparent 30%), var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--acid); color: #000; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.app-noise { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }

.app-header { position: sticky; top: 0; z-index: 50; min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.92); backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: center; gap: 11px; border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid var(--ink); border-radius: 50%; overflow: hidden; transform: rotate(-8deg); }
.brand-mark i { position: absolute; left: -6px; width: 48px; height: 12px; border-radius: 999px; background: var(--pink); transform: rotate(31deg); }
.brand-mark i:first-child { top: 7px; background: var(--acid); }
.brand-mark i:last-child { bottom: 5px; background: var(--cyan); }
.brand strong, .brand small { display: block; line-height: 1; letter-spacing: .05em; }
.brand strong { font-size: .92rem; }
.brand small { margin-top: 5px; color: var(--muted); font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.main-nav { display: flex; justify-content: center; gap: 4px; }
.nav-button, .segment, .workspace-tab { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.nav-button { padding: 10px 12px; border-radius: 999px; font-weight: 750; font-size: .86rem; }
.nav-button:hover, .nav-button.active { color: var(--ink); background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.global-search { width: min(280px, 24vw); height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.global-search:focus-within { border-color: var(--cyan); }
.global-search span { color: var(--muted); }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search input::placeholder { color: #777d86; }

.button, .icon-button, .more-button, .player-button { border: 1px solid transparent; cursor: pointer; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 999px; font-weight: 850; font-size: .82rem; white-space: nowrap; }
.button-primary { color: #090a0c; background: var(--acid); }
.button-primary:hover { filter: brightness(1.06); }
.button-secondary { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.05); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.09); }
.button-danger { color: #fff; background: var(--red); }
.icon-button, .more-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border-color: var(--line); background: rgba(255,255,255,.05); font-size: 1.15rem; }
.icon-button:hover, .more-button:hover { background: rgba(255,255,255,.12); }
.button-row { display: flex; gap: 8px; align-items: center; }

.app-main { position: relative; z-index: 1; width: min(1600px, 100%); margin: 0 auto; padding: 40px 24px 24px; }
.view { display: none; }
.view.active { display: block; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin: 4px 0 0; max-width: 920px; font-size: clamp(2.2rem, 5vw, 5.7rem); line-height: .9; letter-spacing: -.065em; }
.eyebrow { margin: 0; color: var(--acid); font: 800 .68rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.view-controls { display: flex; align-items: end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.segmented { display: inline-flex; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.segment { padding: 8px 13px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.segment.active { color: #08090b; background: var(--ink); }
.select-shell { display: grid; gap: 5px; min-width: 132px; }
.select-shell > span { color: var(--muted); font: 750 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.select-shell select { height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.metric-card { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); overflow: hidden; position: relative; }
.metric-card::after { content: ""; position: absolute; right: -35px; bottom: -45px; width: 105px; height: 105px; border: 18px solid rgba(255,255,255,.035); border-radius: 50%; }
.metric-card strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.06em; }
.metric-card span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.metric-card small { color: var(--ink); font: 700 .68rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }

.timeline-board { display: grid; gap: 16px; }
.timeline-group { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
.timeline-date { position: sticky; top: 94px; align-self: start; padding-top: 14px; color: var(--muted); font: 800 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.timeline-items { display: grid; gap: 8px; }
.release-row { position: relative; display: grid; grid-template-columns: 74px minmax(220px,1.5fr) minmax(140px,.7fr) 130px 138px 120px 105px; gap: 14px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.028); cursor: pointer; text-align: left; transition: .18s ease; }
.release-row:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.release-cover { position: relative; width: 74px; aspect-ratio: 1; border-radius: 9px; background: linear-gradient(145deg, var(--panel-3), var(--panel)); overflow: hidden; }
.release-cover img { width: 100%; height: 100%; object-fit: cover; }
.release-cover .cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 950; color: var(--acid); }
.release-primary { min-width: 0; }
.release-primary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.release-primary span, .release-cell span { display: block; margin-top: 4px; color: var(--muted); font-size: .77rem; }
.release-cell strong { display: block; font-size: .8rem; }
.status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.07); font: 800 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }
.status-pill i, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--muted); }
.status-concept i, .status-dot.concept { background: var(--violet); }
.status-audio-production i { background: var(--cyan); }
.status-mixing i { background: var(--amber); }
.status-mastering i { background: var(--pink); }
.status-artwork i { background: #ff7860; }
.status-metadata i { background: #5ca7ff; }
.status-scheduled i { background: var(--acid); }
.status-released i, .status-dot.released { background: var(--green); }
.status-on-hold i { background: #999; }
.status-cancelled i { background: var(--red); }
.status-archived i, .status-dot.archived { background: #68707b; }
.row-progress { display: grid; gap: 5px; }
.row-progress-track, .progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.row-progress-track i, .progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--acid); }
.row-progress small { color: var(--muted); font: 750 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.bandcamp-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.pipeline-board { display: grid; grid-template-columns: repeat(8, minmax(240px,1fr)); gap: 10px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; }
.pipeline-column { min-height: 420px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); scroll-snap-align: start; }
.pipeline-column.dragover { border-color: var(--acid); background: rgba(217,255,69,.05); }
.pipeline-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 12px; }
.pipeline-head strong { font-size: .78rem; }
.pipeline-head span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: .68rem; }
.pipeline-list { display: grid; gap: 8px; min-height: 350px; align-content: start; }
.pipeline-card { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); cursor: grab; }
.pipeline-card:active { cursor: grabbing; }
.pipeline-card .release-cover { width: 52px; }
.pipeline-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.pipeline-card span { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.pipeline-card small { display: block; margin-top: 8px; color: var(--acid); font: 750 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }

.calendar-nav { display: flex; align-items: center; gap: 8px; }
.calendar-nav strong { min-width: 150px; text-align: center; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 14px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.calendar-weekday { min-height: 42px; display: grid; place-items: center; background: var(--panel); color: var(--muted); font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.calendar-day { min-height: 132px; padding: 9px; background: var(--bg); }
.calendar-day.outside { opacity: .42; }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--acid); }
.calendar-day-number { display: block; margin-bottom: 8px; color: var(--muted); font: 750 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.calendar-event { width: 100%; display: block; margin-top: 5px; padding: 6px 7px; border: 0; border-left: 3px solid var(--green); border-radius: 5px; background: rgba(255,255,255,.07); color: var(--ink); text-align: left; cursor: pointer; }
.calendar-event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.calendar-event span { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; }
.calendar-event.milestone { border-left-color: var(--pink); }
.calendar-agenda, .audio-queue-panel, .audio-focus-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.026); }
.calendar-agenda { padding: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 1rem; }
.panel-head span { color: var(--muted); font: 750 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agenda-list { display: grid; gap: 7px; }
.agenda-item { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.045); cursor: pointer; }
.agenda-date { color: var(--acid); font: 850 .65rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.agenda-item strong { display: block; font-size: .8rem; }
.agenda-item span { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }

.audio-review-layout { display: grid; grid-template-columns: minmax(340px,.75fr) minmax(0,1.25fr); gap: 14px; }
.audio-queue-panel { padding: 15px; }
.audio-queue { display: grid; gap: 8px; }
.audio-queue-item { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.045); color: inherit; text-align: left; cursor: pointer; }
.audio-queue-item:hover, .audio-queue-item.active { border-color: var(--cyan); }
.audio-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: #071014; }
.audio-queue-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.audio-queue-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; }
.audio-review-state { padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.08); font: 750 .6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.audio-review-state.approved { color: var(--green); }
.audio-focus-panel { min-height: 520px; padding: 22px; }
.audio-focus-empty { min-height: 470px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.audio-focus-empty strong { color: var(--ink); }
.big-glyph { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); font-size: 2.5rem; }
.audio-focus-art { width: min(280px,100%); aspect-ratio: 1; border-radius: 13px; background: var(--panel-2); overflow: hidden; }
.audio-focus-art img { width: 100%; height: 100%; object-fit: cover; }
.audio-focus-grid { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,1fr); gap: 22px; }
.audio-focus-copy h2 { margin: 5px 0 4px; font-size: clamp(1.8rem,4vw,3.7rem); line-height: .95; letter-spacing: -.05em; }
.audio-focus-copy > span { color: var(--muted); }
.focus-player { margin: 26px 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.focus-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-notes { margin-top: 16px; }

.bandcamp-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.bandcamp-summary article { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.bandcamp-summary strong { display: block; font-size: 2rem; letter-spacing: -.05em; }
.bandcamp-summary span { color: var(--muted); font-size: .73rem; }
.bandcamp-sync-panel { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); overflow: hidden; }
.sync-panel-message { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; }
.sync-panel-message span { color: var(--muted); font-size: .76rem; }
.sync-panel-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.sync-panel-head > div { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sync-panel-head strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-panel-head > span { color: var(--muted); font: 600 .69rem/1.3 var(--mono); text-align: right; }
.sync-state { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line-strong); font: 800 .62rem/1 var(--mono); letter-spacing: .08em; }
.sync-state.sync-ok { color: var(--acid); border-color: color-mix(in srgb,var(--acid) 55%,transparent); }
.sync-state.sync-partial,.sync-state.sync-error { color: var(--pink); border-color: color-mix(in srgb,var(--pink) 55%,transparent); }
.sync-source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.sync-source { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.sync-source:last-child { border-right: 0; }
.sync-source > div { display: grid; gap: 3px; margin-bottom: 8px; }
.sync-source strong { font-size: .8rem; }
.sync-source span,.sync-source small { color: var(--muted); font-size: .68rem; line-height: 1.35; overflow-wrap: anywhere; }
.sync-source.is-ok strong::before,.sync-source.is-error strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--acid); }
.sync-source.is-error strong::before { background: var(--pink); }
.archive-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 12px; }
.archive-status-key { display: flex; gap: 14px; color: var(--muted); font: 750 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.archive-status-key span { display: flex; align-items: center; gap: 6px; }
.archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.archive-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); cursor: pointer; }
.archive-card:hover { border-color: var(--line-strong); }
.archive-art { aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.archive-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.archive-card:hover .archive-art img { transform: scale(1.025); }
.archive-copy { padding: 13px; }
.archive-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.archive-copy > span { display: block; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.archive-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 13px; }
.archive-meta small { color: var(--muted); font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.archive-link { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(8,9,11,.8); text-decoration: none; backdrop-filter: blur(12px); }

.workspace-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.workspace-drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .25s ease; }
.workspace-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(1180px,95vw); display: grid; grid-template-rows: auto auto auto minmax(0,1fr); background: #0c0e11; box-shadow: var(--shadow); transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.workspace-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header { min-height: 92px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-release-id { min-width: 72px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--acid); font: 900 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.drawer-heading { min-width: 0; }
.drawer-heading h2 { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.5rem,3vw,2.8rem); line-height: 1; letter-spacing: -.045em; }
.close-button { font-size: 1.55rem; }
.workspace-command-bar { position: relative; display: flex; align-items: end; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.status-control, .date-control { display: grid; gap: 5px; }
.status-control span, .date-control span { color: var(--muted); font: 750 .6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.status-control select, .date-control input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
.workspace-progress { width: 180px; display: grid; gap: 7px; margin: 0 auto 5px 0; }
.workspace-progress span { color: var(--muted); font: 750 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.more-menu { position: absolute; top: 62px; right: 20px; z-index: 4; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #181b20; box-shadow: var(--shadow); }
.more-menu button { width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.more-menu button:hover { background: rgba(255,255,255,.08); }
.danger-text { color: var(--red) !important; }
.workspace-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.workspace-tab { position: relative; padding: 14px 13px; font-weight: 800; font-size: .78rem; white-space: nowrap; }
.workspace-tab.active { color: var(--ink); }
.workspace-tab.active::after { content: ""; position: absolute; right: 11px; bottom: -1px; left: 11px; height: 3px; background: var(--acid); }
.workspace-body { overflow-y: auto; padding: 20px; }
.workspace-section { display: grid; gap: 14px; }
.workspace-grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: 14px; }
.workspace-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.workspace-card h3 { margin: 0 0 14px; font-size: .95rem; }
.workspace-art-card { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 16px; }
.workspace-art { width: 180px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--panel-2); }
.workspace-art img { width: 100%; height: 100%; object-fit: cover; }
.release-facts { display: grid; gap: 11px; }
.release-fact { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.release-fact:last-child { border-bottom: 0; }
.release-fact small { display: block; color: var(--muted); font: 750 .61rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.release-fact strong, .release-fact a { display: block; margin-top: 5px; font-size: .78rem; overflow-wrap: anywhere; }
.release-fact a { color: var(--cyan); }
.milestone-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.milestone-group { padding: 11px; border-radius: 11px; background: rgba(255,255,255,.035); }
.milestone-group h4 { margin: 0 0 8px; color: var(--muted); font: 850 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.milestone-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 34px; }
.milestone-item input[type="checkbox"] { accent-color: var(--acid); }
.milestone-item span { font-size: .75rem; }
.milestone-item small { color: var(--muted); font: 700 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.milestone-add { display: flex; gap: 7px; margin-top: 10px; }
.milestone-add input { min-width: 0; flex: 1; }

.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font: 750 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea, .notes-textarea, .focus-notes textarea, .milestone-add input { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: rgba(0,0,0,.22); color: var(--ink); }
.field textarea, .notes-textarea, .focus-notes textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .notes-textarea:focus { border-color: var(--cyan); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.span-2 { grid-column: span 2; }
.metadata-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.validation-list { display: grid; gap: 7px; }
.validation-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; }
.validation-item.ok { color: var(--green); }
.validation-item.missing { color: var(--amber); }

.dropzone { position: relative; min-height: 160px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; text-align: center; }
.dropzone.dragover { border-color: var(--acid); background: rgba(217,255,69,.06); }
.dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dropzone .drop-glyph { font-size: 2rem; color: var(--acid); }
.dropzone strong { font-size: .82rem; }
.dropzone small { color: var(--muted); font-size: .67rem; }
.asset-list, .track-list, .notes-grid { display: grid; gap: 8px; }
.asset-row, .track-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.asset-kind { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--cyan); font-weight: 900; font-size: .65rem; }
.asset-row strong, .track-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.asset-row span, .track-row span { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; }
.asset-actions { display: flex; gap: 5px; }
.asset-actions button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; }
.asset-actions button:hover { background: rgba(255,255,255,.11); }
.note-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.note-head strong { font-size: .78rem; }
.copy-button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); color: var(--muted); cursor: pointer; font: 800 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.copy-button:hover { color: var(--ink); }
.notes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.notes-textarea { min-height: 145px; }

.mini-player { position: fixed; right: 16px; bottom: 14px; left: 16px; z-index: 80; min-height: var(--player-h); display: grid; grid-template-columns: 48px minmax(150px,1fr) 42px minmax(180px,1.4fr) 40px; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,19,23,.94); backdrop-filter: blur(24px); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.mini-art { width: 48px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(145deg, var(--pink), var(--cyan)); overflow: hidden; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-art span { font-weight: 950; font-size: .7rem; }
.mini-meta { min-width: 0; }
.mini-meta strong, .mini-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta strong { font-size: .78rem; }
.mini-meta span { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.player-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #08090b; }
.player-progress-shell { min-width: 0; }
.player-progress-shell input { width: 100%; accent-color: var(--acid); }
.player-time { display: flex; justify-content: space-between; color: var(--muted); font: 700 .56rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.app-dialog { width: min(680px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #111317; color: var(--ink); box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
.app-dialog form { padding: 20px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-head h2 { margin: 5px 0 0; font-size: 2rem; letter-spacing: -.04em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-help { margin: -7px 0 18px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.lookup-status { min-height: 20px; margin: 12px 0 0; color: var(--acid); font: 750 .67rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 104px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #20242b; color: var(--ink); box-shadow: var(--shadow); animation: toast-in .2s ease both; font-size: .76rem; }
.toast.error { border-color: rgba(255,98,98,.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: auto 1fr; }
  .main-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-top: 8px; border-top: 1px solid var(--line); }
  .header-actions { justify-self: end; }
  .release-row { grid-template-columns: 64px minmax(180px,1.4fr) minmax(120px,.7fr) 120px 110px 96px; }
  .release-cell.release-type-cell { display: none; }
  .release-cover { width: 64px; }
  .archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .calendar-layout { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 900px) {
  :root { --header-h: 120px; }
  .app-header { position: relative; padding: 12px 14px; gap: 12px; }
  .global-search { width: min(250px,42vw); }
  .app-main { padding: 28px 14px 20px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: clamp(2.5rem,11vw,5rem); }
  .view-controls { width: 100%; justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .timeline-group { grid-template-columns: 1fr; }
  .timeline-date { position: static; padding: 7px 2px 0; }
  .release-row { grid-template-columns: 58px minmax(0,1fr) 115px; }
  .release-row .bandcamp-chip { display: none; }
  .release-cover { width: 58px; }
  .release-cell, .row-progress { display: none; }
  .release-cell.status-cell { display: block; }
  .calendar-layout, .audio-review-layout { grid-template-columns: 1fr; }
  .calendar-agenda { order: -1; }
  .calendar-grid { overflow-x: auto; grid-template-columns: repeat(7,minmax(120px,1fr)); }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drawer-panel { width: 100vw; }
  .workspace-command-bar { align-items: stretch; flex-wrap: wrap; }
  .workspace-progress { order: 4; width: 100%; }
  .workspace-grid, .audio-focus-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 116px; }
  .app-header { display: flex; flex-wrap: wrap; }
  .brand { flex: 1; }
  .header-actions { width: 100%; order: 2; }
  .global-search { flex: 1; width: auto; }
  .main-nav { width: 100%; order: 3; }
  .nav-button { padding-inline: 10px; font-size: .76rem; }
  .page-head { margin-bottom: 20px; }
  .view-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .segmented { grid-column: 1 / -1; width: fit-content; }
  .select-shell { min-width: 0; }
  .select-shell select { width: 100%; }
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 110px; padding: 14px; }
  .metric-card strong { font-size: 2.1rem; }
  .release-row { grid-template-columns: 54px minmax(0,1fr); }
  .release-cover { width: 54px; }
  .status-cell { grid-column: 2; }
  .archive-grid { grid-template-columns: 1fr; }
  .bandcamp-summary { grid-template-columns: 1fr; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-nav { flex-wrap: wrap; }
  .calendar-nav strong { order: -1; width: 100%; text-align: left; }
  .drawer-header { min-height: 80px; padding: 12px; }
  .drawer-release-id { display: none; }
  .workspace-command-bar { padding: 10px 12px; }
  .workspace-command-bar .button-primary { width: 100%; order: 5; }
  .workspace-tabs { padding: 0 7px; }
  .workspace-body { padding: 12px; }
  .workspace-art-card { grid-template-columns: 1fr; }
  .workspace-art { width: 100%; max-width: 260px; }
  .milestone-groups { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .mini-player { right: 8px; bottom: 8px; left: 8px; grid-template-columns: 42px minmax(0,1fr) 40px 36px; gap: 8px; }
  .mini-art { width: 42px; }
  .player-progress-shell { grid-column: 1 / -1; grid-row: 2; }
  .mini-player .icon-button { width: 36px; height: 36px; }
  .toast-region { right: 10px; bottom: 122px; left: 10px; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.track-editor-list { display: grid; gap: 8px; }
.track-editor-row { display: grid; grid-template-columns: 70px minmax(170px,1.2fr) minmax(150px,1fr) minmax(145px,.8fr) auto 40px; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.track-number-field { min-width: 0; }
.track-explicit { min-height: 42px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.track-explicit input { accent-color: var(--acid); }
.compact-empty { min-height: 130px; }
@media (max-width: 900px) {
  .track-editor-row { grid-template-columns: 60px 1fr 1fr; }
  .track-editor-row .field:nth-of-type(4) { grid-column: 2 / -1; }
}
@media (max-width: 640px) {
  .track-editor-row { grid-template-columns: 54px minmax(0,1fr) 40px; }
  .track-editor-row .field:nth-of-type(2), .track-editor-row .field:nth-of-type(3), .track-editor-row .field:nth-of-type(4) { grid-column: 1 / -1; }
  .track-explicit { grid-column: 1 / 3; }
}

/* Team server authentication + synchronization */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(18px);
}
.login-panel {
  position: relative;
  width: min(100%, 480px);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(18,18,18,.98);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.login-close { position: absolute; top: 16px; right: 16px; }
.login-panel h1 { margin: 10px 0 28px; font-size: clamp(34px, 6vw, 64px); line-height: .94; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.login-brand > span:last-child { display: grid; line-height: 1; }
.login-brand small { margin-top: 4px; opacity: .55; letter-spacing: .15em; }
.login-form { display: grid; gap: 16px; }
.login-form .button { width: 100%; min-height: 48px; margin-top: 4px; }
.login-status { min-height: 1.3em; margin: 0; color: #ff907d; font-size: 13px; }
.sync-status {
  min-width: 70px;
  font: 600 11px/1.1 var(--mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .66;
}
.sync-status[data-state="saving"] { opacity: 1; }
.sync-status[data-state="error"] { color: #ff907d; opacity: 1; }
.sync-status[data-state="live"] { color: #b8ff77; opacity: .85; }
.public-access,
.account-menu { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.public-access > span,
.account-menu > span { display: grid; max-width: 150px; }
.public-access strong,
.account-menu strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.public-access small,
.account-menu small { margin-top: 3px; opacity: .5; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.public-access .button { min-height: 38px; padding: 0 14px; }
.read-only-banner {
  position: sticky;
  top: var(--header-height, 76px);
  z-index: 20;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(15,15,15,.96);
  color: rgba(255,255,255,.62);
  font: 600 11px/1.4 var(--mono, monospace);
  letter-spacing: .04em;
  text-align: center;
}
body.read-only #newReleaseButton,
body.read-only #importBandcampButton,
body.read-only #syncBandcampButton,
body.read-only #workspaceStatus,
body.read-only #workspaceReleaseDate,
body.read-only #duplicateReleaseButton,
body.read-only #deleteReleaseButton,
body.read-only [data-file-input],
body.read-only [data-dropzone],
body.read-only [data-milestone-id],
body.read-only #metadataEditor button[type="submit"],
body.read-only [data-set-cover],
body.read-only [data-delete-asset],
body.read-only [data-add-milestone],
body.read-only [data-add-track],
body.read-only [data-remove-track],
body.read-only [data-toggle-audio-approval],
body.public-view .editor-only { display: none !important; }
body.read-only textarea[data-note-key],
body.read-only [data-track-field],
body.read-only [data-asset-notes],
body.read-only #metadataEditor input,
body.read-only #metadataEditor textarea,
body.read-only #metadataEditor select { pointer-events: none; opacity: .74; }
.public-note { min-height: 150px; padding: 4px 0; color: rgba(255,255,255,.78); line-height: 1.75; white-space: normal; }
.public-release-copy p { color: rgba(255,255,255,.72); line-height: 1.7; }
.public-credits { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.public-credits small { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.public-track-list { display: grid; }
.public-track-list > span { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.public-track-list i { color: var(--muted); font: 600 11px/1 var(--mono, monospace); font-style: normal; }
.public-track-list small { color: var(--muted); }
.public-asset-toggle { min-width: 62px !important; padding: 0 8px !important; font-size: 9px !important; letter-spacing: .08em; }
.public-asset-toggle.active { border-color: rgba(184,255,119,.5) !important; color: #b8ff77 !important; }
body.public-view .pipeline-card { cursor: pointer; }
body.public-view .workspace-progress { display: none; }
@media (max-width: 980px) {
  .sync-status { display: none; }
  .public-access > span,
  .account-menu > span { display: none; }
  .public-access,
  .account-menu { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .public-access .button { padding: 0 10px; font-size: 10px; }
  .public-track-list > span { grid-template-columns: 34px minmax(0,1fr); }
  .public-track-list small { grid-column: 2; }
}
body.public-view #audioQueueFilter { display: none; }
body.public-view #audioView .select-shell:has(#audioQueueFilter) { display: none; }
body.public-view .row-progress { display: none; }

@media(max-width:760px){.sync-panel-head{align-items:flex-start;flex-direction:column}.sync-panel-head>div{align-items:flex-start;flex-direction:column}.sync-panel-head>span{text-align:left}.sync-source-grid{grid-template-columns:1fr}.sync-source{border-right:0;border-bottom:1px solid var(--line)}.sync-source:last-child{border-bottom:0}.sync-panel-message{align-items:flex-start;flex-direction:column}}

/* --------------------------------------------------------------------------
   v4.3 — Minimal light owner interface
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f6f3;
  --panel-3: #ecece7;
  --ink: #111111;
  --muted: #666660;
  --line: rgba(17,17,17,.18);
  --line-strong: rgba(17,17,17,.72);
  --acid: #111111;
  --pink: #111111;
  --cyan: #111111;
  --amber: #555550;
  --violet: #777770;
  --green: #111111;
  --red: #a00000;
  --radius: 0;
  --shadow: 0 0 0 1px rgba(17,17,17,.14);
  --header-h: 68px;
  --player-h: 72px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
}

html, body { background: #fff; }
body {
  color: var(--ink);
  background: #fff;
  font-family: var(--mono);
  letter-spacing: -.015em;
}
button, input, select, textarea { font-family: inherit; }
p, .dialog-help, .sync-panel-message span, .release-fact, .public-release-copy, .public-note {
  text-align: justify;
  text-justify: inter-word;
}
.app-noise { display: none; }

.app-header {
  min-height: var(--header-h);
  grid-template-columns: auto 1fr auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--ink);
  background: rgba(255,255,255,.98);
  backdrop-filter: none;
}
.brand { gap: 10px; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: none;
  background: #fff;
}
.brand-mark i { left: -4px; width: 40px; height: 9px; background: #111; transform: rotate(29deg); }
.brand-mark i:first-child { top: 7px; background: #fff; border: 1px solid #111; }
.brand-mark i:last-child { bottom: 5px; background: #111; }
.brand strong { font-size: .82rem; letter-spacing: .03em; }
.brand small { margin-top: 3px; color: var(--muted); font: 500 .56rem/1 var(--mono); letter-spacing: .12em; }
.main-nav { justify-content: flex-start; margin-left: 34px; gap: 0; }
.nav-button {
  min-height: 68px;
  padding: 0 14px;
  border-radius: 0;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav-button:hover, .nav-button.active { color: var(--ink); background: #f4f4f1; border-color: var(--line); }
.header-actions { gap: 8px; }
.global-search {
  width: min(300px,24vw);
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.global-search:focus-within { border-color: var(--ink); }
.global-search input { color: var(--ink); font-size: .72rem; }
.global-search input::placeholder { color: #8b8b84; }
.sync-status { color: var(--muted); font: 600 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sync-status[data-state="live"] { color: var(--ink); }
.account-menu { gap: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.account-menu strong, .account-menu small { font-family: var(--mono); }
.account-menu strong { font-size: .68rem; }
.account-menu small { color: var(--muted); font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; }

.button, .icon-button, .more-button, .player-button, .segment, .workspace-tab { border-radius: 0; }
.button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.button-primary { color: #fff; background: #111; }
.button-primary:hover { filter: none; background: #333; }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.button-secondary:hover { border-color: #111; background: #f3f3f0; }
.icon-button, .more-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 1rem;
}
.icon-button:hover, .more-button:hover { background: #f0f0ed; border-color: var(--ink); }

.app-main { width: min(1500px,100%); padding: 46px 28px 34px; }
.view.active { animation: none; }
.page-head { align-items: end; margin-bottom: 34px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.page-head > div:first-child { width: min(720px,100%); }
.page-head h1 {
  max-width: 100%;
  margin: 10px 0 0;
  font-size: clamp(2.1rem,5vw,4.6rem);
  line-height: .93;
  letter-spacing: -.085em;
  text-align: justify;
  text-justify: inter-character;
}
.eyebrow { color: var(--ink); font: 700 .62rem/1.3 var(--mono); letter-spacing: .13em; }
.view-controls { gap: 12px; }
.segmented { padding: 0; border: 1px solid var(--ink); border-radius: 0; background: #fff; }
.segment { min-height: 36px; padding: 0 12px; border-radius: 0; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; }
.segment + .segment { border-left: 1px solid var(--ink); }
.segment.active { color: #fff; background: #111; }
.select-shell { min-width: 140px; gap: 6px; }
.select-shell > span { color: var(--muted); font: 600 .56rem/1 var(--mono); }
.select-shell select, .status-control select, .date-control input {
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: .68rem;
}

.metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 34px; border: 1px solid var(--ink); }
.metric-card {
  min-height: 110px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
}
.metric-card:last-child { border-right: 0; }
.metric-card::after { display: none; }
.metric-card strong { font-size: 2.15rem; letter-spacing: -.08em; }
.metric-card span, .metric-card small { color: var(--muted); font: 600 .62rem/1.4 var(--mono); }

.timeline-board { gap: 28px; }
.timeline-group { grid-template-columns: 92px minmax(0,1fr); gap: 18px; }
.timeline-date { top: 84px; padding-top: 13px; color: var(--ink); font: 700 .62rem/1.35 var(--mono); }
.timeline-items { gap: 0; border-top: 1px solid var(--ink); }
.release-row {
  grid-template-columns: 62px minmax(220px,1.5fr) minmax(140px,.7fr) 120px 135px 115px 90px;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.release-row:hover { transform: none; border-color: var(--ink); background: #f7f7f4; }
.release-cover { width: 62px; border-radius: 0; background: var(--panel-2); border: 1px solid var(--line); }
.release-cover .cover-fallback { color: var(--ink); }
.release-primary strong { font-size: .84rem; }
.release-primary span, .release-cell span { color: var(--muted); font-size: .66rem; }
.release-cell strong { font-size: .68rem; }
.status-pill {
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 700 .57rem/1.25 var(--mono);
}
.status-pill i, .status-dot { width: 6px; height: 6px; background: #111 !important; }
.row-progress-track, .progress-track { height: 3px; border-radius: 0; background: #deded9; }
.row-progress-track i, .progress-track i { background: #111; }

.pipeline-board { gap: 0; border: 1px solid var(--ink); overflow-x: auto; }
.pipeline-column { border: 0; border-right: 1px solid var(--ink); border-radius: 0; background: #fff; }
.pipeline-column:last-child { border-right: 0; }
.pipeline-head { border-bottom: 1px solid var(--ink); background: #f5f5f2; }
.pipeline-list { padding: 8px; }
.pipeline-card { border: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.pipeline-card:hover { border-color: #111; }

.calendar-layout, .audio-review-layout { gap: 0; border: 1px solid var(--ink); }
.calendar-grid, .calendar-agenda, .audio-queue-panel, .audio-focus-panel { border: 0; border-radius: 0; background: #fff; }
.calendar-agenda, .audio-focus-panel { border-left: 1px solid var(--ink); }
.calendar-weekday, .calendar-day { border-color: var(--line); background: #fff; }
.calendar-day.outside { background: #f6f6f3; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #111; }
.calendar-event { border-radius: 0; background: #111; color: #fff; }
.agenda-item, .audio-queue-item { border-radius: 0; border-color: var(--line); background: #fff; }
.agenda-item:hover, .audio-queue-item:hover, .audio-queue-item.active { border-color: #111; background: #f6f6f3; }
.audio-icon, .big-glyph { border-radius: 0; background: #111; color: #fff; }
.audio-review-state { border-radius: 0; background: #f0f0ec; }
.audio-focus-art { border-radius: 0; border: 1px solid var(--line); }
.focus-player { border-radius: 0; background: #fff; }

.bandcamp-summary { gap: 0; margin-bottom: 22px; border: 1px solid var(--ink); }
.bandcamp-summary article { padding: 14px; border: 0; border-right: 1px solid var(--ink); border-radius: 0; background: #fff; }
.bandcamp-summary article:last-child { border-right: 0; }
.bandcamp-summary strong { font-size: 1.65rem; }
.bandcamp-summary span { color: var(--muted); font-size: .62rem; }
.bandcamp-sync-panel { border: 1px solid var(--ink); border-radius: 0; background: #fff; }
.sync-panel-head { border-color: var(--ink); }
.sync-state { border-color: var(--ink) !important; color: var(--ink) !important; background: #fff; }
.sync-source { border-color: var(--ink); }
.sync-source.is-ok strong::before, .sync-source.is-error strong::before { background: #111; border-radius: 0; }
.archive-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.archive-card { border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; background: #fff; }
.archive-card:hover { background: #f7f7f4; }
.archive-art { background: #f1f1ed; }
.archive-copy { padding: 12px; }
.archive-link { top: 8px; right: 8px; width: 32px; height: 32px; border: 1px solid #111; border-radius: 0; background: #fff; color: #111; backdrop-filter: none; }

.workspace-drawer { color: var(--ink); }
.drawer-backdrop { background: rgba(255,255,255,.82); }
.drawer-panel { width: min(1120px,96vw); background: #fff; box-shadow: -1px 0 0 #111; }
.drawer-header, .workspace-command-bar, .workspace-tabs { border-color: var(--ink); background: #fff; }
.drawer-release-id { border-radius: 0; color: var(--ink); border-color: var(--ink); }
.drawer-heading h2 { letter-spacing: -.065em; }
.workspace-command-bar { gap: 8px; }
.more-menu { border: 1px solid var(--ink); border-radius: 0; background: #fff; box-shadow: 6px 6px 0 rgba(17,17,17,.12); }
.more-menu button { border-radius: 0; color: var(--ink); }
.more-menu button:hover { background: #efefeb; }
.workspace-tab { font-size: .67rem; text-transform: uppercase; letter-spacing: .04em; }
.workspace-tab.active::after { right: 0; left: 0; height: 2px; background: #111; }
.workspace-body { padding: 18px; background: #fff; }
.workspace-grid { gap: 12px; }
.workspace-card { padding: 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.workspace-art { border-radius: 0; border: 1px solid var(--line); }
.release-fact { border-color: var(--line); }

.field span, .status-control span, .date-control span { color: var(--muted); font: 600 .57rem/1 var(--mono); letter-spacing: .08em; }
.field input, .field select, .field textarea, .notes-textarea {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: .72rem;
}
.field input:focus, .field select:focus, .field textarea:focus, .notes-textarea:focus { outline: 2px solid #111; outline-offset: -1px; }
.dropzone { border: 1px dashed var(--line-strong); border-radius: 0; background: #fff; }
.dropzone:hover, .dropzone.dragover { border-color: #111; background: #f4f4f1; }
.drop-glyph { border-radius: 0; background: #111; color: #fff; }
.asset-row, .track-row, .track-editor-row, .milestone-group, .note-card, .validation-item { border-radius: 0; background: #fff; border-color: var(--line); }
.asset-kind { border-radius: 0; background: #111; color: #fff; }
.copy-button { border-radius: 0; }

.app-dialog { max-width: 760px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: #fff; box-shadow: 12px 12px 0 rgba(17,17,17,.14); }
.app-dialog::backdrop { background: rgba(255,255,255,.84); }
.dialog-head { border-color: var(--ink); }
.dialog-help { color: var(--muted); }

.login-screen { background: rgba(255,255,255,.94); }
.login-panel { border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: #fff; box-shadow: 12px 12px 0 rgba(17,17,17,.12); }

.mini-player {
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.mini-art { border-radius: 0; background: #111; color: #fff; }
.player-button { border: 1px solid #111; border-radius: 0; background: #111; color: #fff; }
.mini-seek, input[type="range"] { accent-color: #111; }
.toast { border: 1px solid #111; border-radius: 0; color: #111; background: #fff; box-shadow: 6px 6px 0 rgba(17,17,17,.12); }
.toast.error { color: #8b0000; border-color: #8b0000; }
.empty-state { border: 1px solid var(--ink); border-radius: 0; background: #fff; }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: auto 1fr; }
  .main-nav { order: 3; grid-column: 1 / -1; margin: 0 -20px; border-top: 1px solid var(--line); overflow-x: auto; }
  .nav-button { min-height: 46px; }
  .header-actions { justify-self: end; }
  .global-search { width: min(260px,34vw); }
  .release-row { grid-template-columns: 58px minmax(180px,1fr) 120px 105px; }
  .release-row .release-type-cell, .release-row .status-cell + .release-cell, .release-row .row-progress { display: none; }
}
@media (max-width: 760px) {
  .app-main { padding: 30px 14px 24px; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: clamp(2rem,13vw,3.5rem); }
  .view-controls { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .timeline-group { grid-template-columns: 1fr; gap: 4px; }
  .timeline-date { position: static; padding: 0 0 8px; }
  .release-row { grid-template-columns: 54px minmax(0,1fr) auto; padding: 9px 0; }
  .release-row .release-cell:not(.status-cell), .release-row .row-progress { display: none; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calendar-layout, .audio-review-layout { border: 0; }
  .calendar-agenda, .audio-focus-panel { border-left: 0; border-top: 1px solid var(--ink); }
  .global-search { display: none; }
  .account-menu span { display: none; }
}

/* --------------------------------------------------------------------------
   v4.5 — Calendar-first refinement
   -------------------------------------------------------------------------- */
:root {
  --cb-yellow: #ffd600;
  --cb-blue: #1597d4;
  --cb-paper: #f7f7f3;
  --cb-ink: #101010;
}

.app-noise { display: none; }
.app-header {
  min-height: 76px;
  padding: 0 22px;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--ink);
  background: rgba(255,255,255,.97);
}
.brand {
  width: 164px;
  min-height: 76px;
  padding: 0;
  justify-content: flex-start;
  border: 0;
  background: transparent;
}
.brand img { display: block; width: 148px; height: auto; object-fit: contain; }
.login-brand img { display: block; width: min(260px, 78%); height: auto; }
.main-nav { margin-left: 10px; }
.nav-button {
  position: relative;
  min-height: 76px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #686862;
}
.nav-button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: transparent;
}
.nav-button:hover { border: 0; color: var(--ink); background: var(--cb-paper); }
.nav-button.active { border: 0; color: var(--ink); background: transparent; }
.nav-button.active::after { background: var(--cb-blue); }
.public-access { border-left-color: var(--line); }
.public-access > span { display: none; }
.public-access .button { border-color: var(--ink); }
.sync-status[data-state="live"] { color: var(--cb-blue); }

.app-main { width: min(1460px, 100%); padding-top: 58px; }
.page-head {
  min-height: 142px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}
.page-head h1 {
  max-width: 14ch;
  margin-top: 12px;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  line-height: .84;
  letter-spacing: -.095em;
  text-align: left;
}
.eyebrow { color: var(--cb-blue); letter-spacing: .16em; }
.view-controls { align-items: end; }
.select-shell > span { color: #4f4f4a; }

.metric-grid {
  margin-bottom: 42px;
  border: 0;
  gap: 10px;
  background: transparent;
}
.metric-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--cb-paper);
}
.metric-card:last-child { border-right: 1px solid var(--line); }
.metric-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 5px;
  background: var(--ink);
}
.metric-card:nth-child(2)::before { background: var(--cb-blue); }
.metric-card:nth-child(3)::before { background: var(--cb-yellow); }
.metric-card strong { margin-top: 10px; font-size: 2.85rem; line-height: .9; }
.metric-card span { color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.metric-card small { max-width: 30ch; margin-top: auto; color: #71716b; }

.timeline-board { gap: 42px; }
.timeline-group { grid-template-columns: 116px minmax(0,1fr); gap: 22px; }
.timeline-date {
  top: 90px;
  padding: 11px 10px;
  border-top: 4px solid var(--ink);
  background: var(--cb-paper);
  font-size: .68rem;
  letter-spacing: .07em;
}
.timeline-items { display: grid; gap: 10px; border-top: 0; }
.release-row {
  grid-template-columns: 82px minmax(220px,1.5fr) minmax(125px,.65fr) 130px 125px 120px 96px;
  min-height: 102px;
  gap: 16px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.025);
}
.release-row:hover {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--cb-paper);
}
.release-cover { width: 82px; height: 82px; border: 0; background: var(--cb-paper); }
.release-cover img, .workspace-art img, .archive-art img, .public-release-art img, .mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.release-primary strong { font-size: 1rem; line-height: 1.15; }
.release-primary span { margin-top: 7px; font-size: .7rem; color: #666; }
.release-cell strong { color: var(--ink); font-size: .71rem; }
.release-cell span { margin-top: 5px; }
.status-pill {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--cb-paper);
}
.status-pill i { background: var(--cb-blue) !important; }
.status-scheduled { background: #fff9c8; border-color: #d2bd00; }
.status-artwork, .status-metadata { background: #e8f7ff; border-color: #65b9df; }
.status-mixing, .status-mastering, .status-audio-production { background: #f0edff; border-color: #a697db; }
.status-released { background: #e9f8ea; border-color: #72b976; }
.status-on-hold, .status-cancelled { background: #f6eeee; border-color: #bd8e8e; }
.bandcamp-chip { color: var(--cb-blue); font-weight: 800; }

/* Public catalog is art-first and intentionally separate from the owner list. */
.public-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
  padding-bottom: 80px;
}
.public-release-card {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--ink);
  background: #fff;
}
.public-release-open {
  display: block;
  width: 100%;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.public-release-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cb-paper);
}
.public-release-art::after {
  content: "VIEW";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  background: var(--ink);
  color: #fff;
  font: 700 .57rem/1 var(--mono);
  letter-spacing: .09em;
  opacity: 0;
  transform: translateY(5px);
  transition: .18s ease;
}
.public-release-open:hover .public-release-art::after { opacity: 1; transform: translateY(0); }
.public-release-art img { transition: transform .28s ease; }
.public-release-open:hover .public-release-art img { transform: scale(1.025); }
.public-release-copy-block { display: grid; padding: 14px 0 10px; }
.public-release-kicker {
  color: #777770;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.public-release-copy-block strong {
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.15;
}
.public-release-copy-block > span:last-child { margin-top: 5px; color: #5f5f59; font-size: .72rem; }
.public-bandcamp-link {
  display: inline-flex;
  margin-top: 2px;
  color: var(--cb-blue);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.public-bandcamp-link:hover { color: var(--ink); }
body.public-view .metric-grid { grid-template-columns: 1.25fr repeat(3, 1fr); }
body.public-view .metric-card:first-child { background: var(--ink); color: #fff; }
body.public-view .metric-card:first-child::before { background: var(--cb-yellow); }
body.public-view .metric-card:first-child span,
body.public-view .metric-card:first-child small { color: rgba(255,255,255,.72); }
body.public-view .workspace-command-bar { display: none; }
body.public-view .drawer-header { min-height: 108px; }
body.public-view .drawer-release-id { display: none; }
body.public-view .drawer-heading h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
body.public-view .workspace-tabs { top: 0; }
body.public-view .mini-player { display: none; }
body.public-view .mini-player.is-active { display: grid; }
body.public-view .main-nav { margin-left: 0; }
body.public-view .page-head { min-height: 170px; }
body.public-view .page-head h1 { max-width: 11ch; }
body.public-view .view-controls { margin-left: auto; }
body.public-view .workspace-drawer .drawer-panel { width: min(1040px, 96vw); }
body.public-view .workspace-grid { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
body.public-view .workspace-card { padding: 22px; }
body.public-view .workspace-art { aspect-ratio: 1; }
body.public-view .public-release-copy p,
body.public-view .public-note { color: #33332f; text-align: justify; }

.workspace-drawer.open .drawer-panel { animation: drawerIn .22s ease both; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
.drawer-backdrop { background: rgba(16,16,16,.28); backdrop-filter: blur(3px); }
.drawer-panel { box-shadow: -18px 0 48px rgba(0,0,0,.14); }
.drawer-header { min-height: 110px; padding: 18px; background: #fff; }
.drawer-heading h2 { font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: .9; }
.workspace-command-bar { min-height: 68px; padding: 10px 18px; background: var(--cb-paper); }
.workspace-tabs { padding: 0 18px; background: #fff; }
.workspace-tab { min-height: 52px; padding: 0 16px; color: #6c6c66; }
.workspace-tab.active { color: var(--ink); }
.workspace-tab.active::after { height: 3px; background: var(--cb-blue); }
.workspace-body { padding: 24px; background: var(--cb-paper); }
.workspace-card { padding: 20px; border-color: rgba(17,17,17,.22); box-shadow: 0 3px 14px rgba(0,0,0,.025); }
.workspace-card > h3, .panel-head h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.workspace-art-card { background: #fff; }
.workspace-art { background: var(--cb-paper); }
.release-fact { padding: 13px 0; }
.release-fact small { color: #707069; }
.release-fact strong { font-size: .78rem; }
.milestone-group h4 { padding-bottom: 9px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.validation-item.ok { border-left: 4px solid #72b976; }
.validation-item.missing { border-left: 4px solid var(--cb-yellow); }

.new-release-cover-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: var(--cb-paper);
  color: #777770;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.new-release-cover-preview img { width: 100%; max-height: 250px; object-fit: contain; background: #fff; }
.new-release-cover-preview img + span { padding: 9px 12px; }
.login-close { display: grid !important; }
.login-panel { width: min(520px, 100%); padding-top: 34px; }
.login-panel h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.07em; }

@media (max-width: 1180px) {
  .public-catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .release-row { grid-template-columns: 76px minmax(190px,1fr) 120px 110px 118px; }
  .release-row .row-progress, .release-row .bandcamp-chip { display: none; }
}
@media (max-width: 880px) {
  .app-header { grid-template-columns: 158px minmax(0,1fr) auto; }
  .brand { width: 150px; }
  .brand img { width: 138px; }
  .public-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 14px; }
  body.public-view .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.public-view .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-header { grid-template-columns: 132px 1fr; padding: 0 14px; }
  .brand { width: 126px; min-height: 64px; }
  .brand img { width: 120px; }
  .main-nav { grid-column: 1 / -1; }
  .header-actions { gap: 6px; }
  .public-access .button { min-height: 34px; padding: 0 8px; }
  .app-main { padding-top: 36px; }
  .page-head { min-height: 120px; align-items: flex-start; }
  .page-head h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .metric-grid, body.public-view .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 110px; padding: 14px; }
  .public-catalog-grid { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .public-release-copy-block strong { font-size: .86rem; }
  .public-release-kicker { font-size: .52rem; }
  .timeline-group { gap: 10px; }
  .timeline-date { width: max-content; }
  .release-row { grid-template-columns: 68px minmax(0,1fr) auto; min-height: 86px; padding: 8px; }
  .release-cover { width: 68px; height: 68px; }
  .drawer-panel { width: 100vw; }
  .workspace-body { padding: 14px; }
}
body.public-view { padding-bottom: 24px; }
body.public-view.player-active { padding-bottom: calc(var(--player-h) + 24px); }

/* v4.5 calendar-first refinement */
:root {
  --cb-paper: #f2f0ea;
  --cb-blue: #2267ff;
  --cb-yellow: #ffd84d;
  --cb-orange: #ff7a00;
  --cb-lime: #d9ff45;
  --cb-red: #ff5d45;
  --cb-mint: #44dfc6;
}
html, body { background: #f4f2ec; color: #111; }
body { background: #f4f2ec; color: #111; }
.app-noise { opacity: .02; }
.app-header {
  background: rgba(255,255,255,.94);
  border-bottom: 2px solid #111;
  backdrop-filter: blur(16px);
}
.brand img { width: 132px; height: auto; }
.main-nav { justify-content: flex-start; }
.nav-button {
  min-height: 76px;
  padding: 0 16px;
  color: #62625d;
  font: 800 .76rem/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nav-button:hover { background: #efeee8; }
.nav-button.active { color: #111; }
.global-search {
  border-radius: 0;
  border: 1px solid #111;
  background: #fff;
}
.global-search input { color: #111; }
.global-search input::placeholder { color: #7c7c75; }
.sync-status[data-state="live"] { color: var(--cb-blue); }
.page-head { min-height: auto; padding-bottom: 18px; border-bottom: 2px solid #111; }
#calendarView .page-head h1 { max-width: 12ch; font-size: clamp(2.8rem, 7vw, 5.8rem); }
#releasesView .page-head h1 { max-width: 10ch; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.eyebrow { color: var(--cb-blue); }
.metric-grid { gap: 12px; }
.metric-card {
  min-height: 122px;
  border: 2px solid #111;
  box-shadow: none;
}
.metric-card::after { display: none; }
.metric-card:nth-child(1) { background: #fff; }
.metric-card:nth-child(2) { background: #f1f6ff; }
.metric-card:nth-child(3) { background: #fff6cf; }
.metric-card:nth-child(4) { background: #effaf1; }
.metric-card span { color: #3d3d38; }
.metric-card small { color: #54544f; }
.timeline-board { gap: 34px; }
.timeline-group { gap: 20px; }
.timeline-date {
  top: 90px;
  padding: 10px;
  border-top: 4px solid #111;
  background: #fff;
  color: #111;
}
.release-row {
  grid-template-columns: 84px minmax(220px,1.5fr) minmax(120px,.7fr) 140px 138px 120px 110px;
  min-height: 104px;
  gap: 18px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.release-row:hover {
  transform: none;
  border-color: #111;
  background: #fff;
  box-shadow: 8px 8px 0 #ece7d6;
}
.release-cover { width: 84px; height: 84px; border-radius: 0; border: 1px solid #111; background: #efeee8; }
.release-primary strong { font-size: 1.12rem; line-height: 1.05; }
.release-primary span, .release-cell span { color: #555550; }
.release-cell strong { font-size: .76rem; }
.status-pill { border-radius: 0; border-color: #111; }
.row-progress small { color: #555550; }
.bandcamp-chip { color: var(--cb-blue); }

.calendar-nav { gap: 10px; }
.calendar-nav strong { min-width: 190px; font-size: 1rem; }
.calendar-layout { grid-template-columns: minmax(0,1.22fr) 380px; gap: 20px; align-items: start; }
.calendar-grid {
  border: 2px solid #111;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  gap: 0;
}
.calendar-weekday {
  min-height: 48px;
  background: #fff;
  color: #111;
  border-right: 1px solid #111;
  font-size: .68rem;
  letter-spacing: .12em;
}
.calendar-weekday:last-child { border-right: 0; }
.calendar-day {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #111;
  border-right: 1px solid #111;
  background: #fff;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #ebe8df; opacity: 1; }
.calendar-day.today { box-shadow: inset 0 0 0 3px var(--cb-blue); }
.calendar-day.has-events { background: linear-gradient(180deg, #fff 0%, #fcfbf7 100%); }
.calendar-day-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0;
  border: 1px solid #111;
  color: #111;
  background: #fff;
}
.calendar-day-events { display: grid; gap: 6px; align-content: start; }
.calendar-event {
  margin-top: 0;
  padding: 8px 9px;
  border: 1px solid #111;
  border-left: 6px solid #111;
  border-radius: 0;
  background: #fff;
}
.calendar-event strong { font-size: .72rem; line-height: 1.12; }
.calendar-event span { color: #4e4e48; font-size: .58rem; }
.calendar-event.release-event.status-released { background: #eef9ef; border-left-color: #58a95d; }
.calendar-event.release-event.status-scheduled,
.calendar-event.release-event.status-artwork,
.calendar-event.release-event.status-metadata { background: #fff8d8; border-left-color: #e6b500; }
.calendar-event.release-event.status-mixing,
.calendar-event.release-event.status-mastering,
.calendar-event.release-event.status-audio-production { background: #eef4ff; border-left-color: var(--cb-blue); }
.calendar-event.release-event.status-concept,
.calendar-event.release-event.status-on-hold,
.calendar-event.release-event.status-cancelled { background: #f7f2ff; border-left-color: #8c66ff; }
.calendar-event.milestone { background: #fff0e8; border-left-color: var(--cb-orange); }
.calendar-more {
  padding-top: 2px;
  color: #5d5d57;
  font: 800 .62rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.calendar-agenda {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 0;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
}
.panel-head { margin-bottom: 0; padding: 16px 16px 12px; border-bottom: 1px solid #111; }
.panel-head h2 { font-size: 1.15rem; }
.panel-head span { color: #4e4e48; }
.agenda-list { gap: 10px; padding: 14px; }
.agenda-item {
  grid-template-columns: 68px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
}
.agenda-item.release.status-released { background: #f2fcf3; }
.agenda-item.release.status-scheduled,
.agenda-item.release.status-artwork,
.agenda-item.release.status-metadata { background: #fffbe5; }
.agenda-item.release.status-mixing,
.agenda-item.release.status-mastering,
.agenda-item.release.status-audio-production { background: #eff4ff; }
.agenda-item.milestone { background: #fff2ea; }
.agenda-art {
  width: 68px;
  height: 68px;
  border: 1px solid #111;
  border-radius: 0;
  overflow: hidden;
  background: #efeee8;
}
.agenda-art .cover-fallback { font-size: .95rem; }
.agenda-copy { display: grid; }
.agenda-copy small {
  color: var(--cb-blue);
  font: 800 .63rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.agenda-copy strong {
  margin-top: 6px;
  display: block;
  font-size: .95rem;
  line-height: 1.08;
}
.agenda-copy span {
  margin-top: 6px;
  display: block;
  color: #4f4f49;
  font-size: .72rem;
}
body.public-view .calendar-layout { grid-template-columns: minmax(0,1.15fr) 360px; }
body.public-view .mini-player { display: none !important; }
body.public-view .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
body.public-view .public-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.public-view .page-head h1 { max-width: 12ch; }

@media (max-width: 1180px) {
  .calendar-layout, body.public-view .calendar-layout { grid-template-columns: 1fr; }
  .calendar-agenda { position: static; }
  .release-row { grid-template-columns: 84px minmax(180px,1fr) 120px 130px 120px; }
  .release-row .row-progress, .release-row .bandcamp-chip { display: none; }
}
@media (max-width: 760px) {
  .app-header { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px; }
  .main-nav { order: 2; overflow-x: auto; }
  .header-actions { order: 3; flex-wrap: wrap; }
  .global-search { width: 100%; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(130px, 1fr)); overflow-x: auto; }
  .calendar-day { min-height: 148px; }
  .release-row { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
  .release-row > :nth-child(n+4) { display: none; }
  .metric-grid, body.public-view .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.public-view .public-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .page-head h1, #calendarView .page-head h1, #releasesView .page-head h1 { font-size: clamp(2.3rem, 13vw, 4rem); }
  body.public-view .public-catalog-grid { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 56px minmax(0,1fr); }
  .agenda-art { width: 56px; height: 56px; }
}

/* =========================================================
   v4.6 — Bold color system across the complete application
   ========================================================= */
:root {
  --cb-black: #0a0a0a;
  --cb-white: #ffffff;
  --cb-paper: #f5f3ed;
  --cb-grid: #d8d5cc;
  --cb-blue: #1e5bff;
  --cb-acid: #d8ff31;
  --cb-cyan: #36ddd0;
  --cb-orange: #ff6a21;
  --cb-yellow: #ffd83d;
  --cb-pink: #ff4c91;
  --cb-violet: #825cff;
  --cb-green: #41d897;
  --cb-red: #ff4e42;
  --cb-soft-blue: #eaf0ff;
  --cb-soft-green: #eafaf3;
  --cb-soft-yellow: #fff7ce;
  --cb-soft-orange: #fff0e6;
  --cb-soft-pink: #fff0f7;
  --ink: var(--cb-black);
  --muted: #66665f;
  --line: #d4d1c8;
  --line-strong: #111;
  --bg: var(--cb-paper);
  --panel: #fff;
  --panel-2: #efede6;
  --panel-3: #e7e4dc;
  --acid: var(--cb-acid);
  --cyan: var(--cb-cyan);
  --amber: var(--cb-orange);
  --pink: var(--cb-pink);
  --violet: var(--cb-violet);
  --green: var(--cb-green);
  --red: var(--cb-red);
  --radius: 0px;
  --shadow: 10px 10px 0 rgba(10,10,10,.08);
}

html { background: var(--cb-paper); }
body {
  position: relative;
  background:
    linear-gradient(rgba(10,10,10,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.035) 1px, transparent 1px),
    var(--cb-paper);
  background-size: 40px 40px;
  color: var(--cb-black);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 5px;
  background: linear-gradient(90deg,
    var(--cb-blue) 0 20%,
    var(--cb-acid) 20% 40%,
    var(--cb-orange) 40% 60%,
    var(--cb-cyan) 60% 80%,
    var(--cb-pink) 80% 100%);
  pointer-events: none;
}
.app-noise { display: none; }

/* Header + navigation */
.app-header {
  top: 5px;
  min-height: 84px;
  padding: 0 18px;
  border-bottom: 2px solid var(--cb-black);
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 0 rgba(10,10,10,.035);
}
.brand {
  align-self: stretch;
  min-width: 168px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}
.brand img { width: 142px; height: auto; }
.main-nav { justify-content: flex-start; gap: 0; align-self: stretch; }
.nav-button {
  min-height: 82px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: #55554f;
  font: 900 .74rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-button:first-child { border-left: 1px solid var(--line); }
.nav-button::after { right: 0; left: 0; height: 7px; }
.nav-button:hover { color: var(--cb-black); background: var(--cb-soft-yellow); }
.nav-button.active { color: var(--cb-black); background: var(--cb-acid); }
.nav-button.active::after { background: var(--cb-blue); }
.header-actions { gap: 0; align-self: stretch; }
.global-search {
  width: min(330px,26vw);
  height: 48px;
  margin: auto 14px auto 0;
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 5px 5px 0 var(--cb-soft-blue);
}
.global-search:focus-within { border-color: var(--cb-blue); box-shadow: 5px 5px 0 var(--cb-acid); }
.sync-status {
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--cb-blue) !important;
  font-weight: 900;
  letter-spacing: .12em;
}
.account-menu, .public-access {
  align-self: stretch;
  min-height: 82px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.account-menu strong, .public-access strong { font-size: .78rem; }
.account-menu small, .public-access small { color: #66665f; }
.button, .icon-button, .more-button, .player-button {
  border-radius: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover, .icon-button:hover, .more-button:hover, .player-button:hover {
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 var(--cb-black);
}
.button-primary {
  border: 2px solid var(--cb-black);
  color: #fff;
  background: var(--cb-black);
}
.button-primary:hover { color: var(--cb-black); background: var(--cb-acid); filter: none; }
.button-secondary {
  border: 2px solid var(--cb-black);
  color: var(--cb-black);
  background: #fff;
}
.button-secondary:hover { background: var(--cb-cyan); }
.button-danger { border: 2px solid var(--cb-black); background: var(--cb-red); }
.icon-button, .more-button { border: 2px solid var(--cb-black); background: #fff; }
#newReleaseButton { align-self: center; margin-left: 14px; background: var(--cb-blue); }
#newReleaseButton:hover { background: var(--cb-acid); }

/* General page structure */
.app-main { width: min(1540px,100%); padding: 46px 28px 34px; }
.view.active { animation: none; }
.page-head {
  position: relative;
  min-height: 160px;
  align-items: end;
  padding: 0 0 24px;
  border-bottom: 4px solid var(--cb-black);
}
.page-head h1 {
  max-width: 10ch;
  margin: 8px 0 0;
  font-family: Arial Black, Helvetica Neue, Arial, sans-serif;
  font-size: clamp(3.3rem,7.8vw,7.8rem);
  font-weight: 950;
  line-height: .78;
  letter-spacing: -.09em;
  text-transform: uppercase;
}
.page-head h1::after { content: "."; color: var(--cb-blue); }
.eyebrow {
  color: var(--cb-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.view-controls, .calendar-nav { position: relative; z-index: 1; }
.segmented {
  padding: 0;
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
}
.segment { min-height: 40px; padding: 0 14px; border-radius: 0; }
.segment + .segment { border-left: 2px solid var(--cb-black); }
.segment.active { color: #fff; background: var(--cb-black); }
.select-shell { min-width: 150px; }
.select-shell > span { color: #3f3f3a; font-weight: 900; }
.select-shell select,
.field input,
.field select,
.field textarea,
.status-control select,
.date-control input {
  border: 2px solid var(--cb-black) !important;
  border-radius: 0 !important;
  color: var(--cb-black) !important;
  background: #fff !important;
}
.select-shell select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.status-control select:focus,
.date-control input:focus {
  outline: 3px solid var(--cb-acid);
  outline-offset: 0;
}

/* Metrics */
.metric-grid { gap: 12px; margin: 26px 0 38px; }
.metric-card {
  min-height: 142px;
  padding: 18px;
  border: 2px solid var(--cb-black);
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(10,10,10,.12);
}
.metric-card::before { top: auto; right: 14px; bottom: 14px; left: auto; width: 30px; height: 30px; }
.metric-card::after { display: block; right: 16px; bottom: 16px; width: 34px; height: 34px; border: 0; border-radius: 0; }
.metric-card:nth-child(1) { background: var(--cb-acid); }
.metric-card:nth-child(2) { background: var(--cb-cyan); }
.metric-card:nth-child(3) { background: var(--cb-orange); }
.metric-card:nth-child(4) { background: var(--cb-green); }
.metric-card:nth-child(1)::after { background: repeating-linear-gradient(90deg,var(--cb-black) 0 3px,transparent 3px 6px); }
.metric-card:nth-child(2)::after { border: 4px solid var(--cb-black); border-radius: 50%; }
.metric-card:nth-child(3)::after { clip-path: polygon(50% 0,100% 100%,0 100%); background: var(--cb-black); }
.metric-card:nth-child(4)::after { border-radius: 50%; background: var(--cb-black); }
.metric-card span { color: var(--cb-black); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong {
  margin-top: 10px;
  font-family: Arial Black, Helvetica Neue, Arial, sans-serif;
  font-size: 3.6rem;
  font-weight: 950;
}
.metric-card small { max-width: 26ch; color: #20201d; font-weight: 800; }
body.public-view .metric-card:first-child { color: var(--cb-black); background: var(--cb-acid); }
body.public-view .metric-card:first-child span,
body.public-view .metric-card:first-child small { color: var(--cb-black); }

/* Calendar */
.calendar-layout { gap: 22px; }
.calendar-grid { border: 3px solid var(--cb-black); background: var(--cb-black); }
.calendar-weekday {
  min-height: 46px;
  color: #fff;
  background: var(--cb-black);
  font-weight: 950;
  letter-spacing: .15em;
}
.calendar-weekday:nth-child(1) { background: var(--cb-blue); }
.calendar-weekday:nth-child(2) { background: var(--cb-black); }
.calendar-weekday:nth-child(3) { background: var(--cb-violet); }
.calendar-weekday:nth-child(4) { background: var(--cb-orange); }
.calendar-weekday:nth-child(5) { background: var(--cb-cyan); color: var(--cb-black); }
.calendar-weekday:nth-child(6) { background: var(--cb-pink); }
.calendar-weekday:nth-child(7) { background: var(--cb-acid); color: var(--cb-black); }
.calendar-day {
  min-height: 176px;
  padding: 10px;
  border-top: 1px solid var(--cb-black);
  border-right: 1px solid var(--cb-black);
  background: #fff;
}
.calendar-day.outside { background: #e9e6de; }
.calendar-day.today { box-shadow: inset 0 0 0 5px var(--cb-blue); }
.calendar-day-number {
  width: 32px;
  height: 32px;
  border: 2px solid var(--cb-black);
  color: var(--cb-black);
  background: #fff;
  font-weight: 950;
}
.calendar-day.today .calendar-day-number { color: #fff; background: var(--cb-blue); }
.calendar-event {
  padding: 9px;
  border: 2px solid var(--cb-black);
  border-left-width: 8px;
  box-shadow: 3px 3px 0 rgba(10,10,10,.11);
}
.calendar-event strong { font-size: .76rem; font-weight: 950; }
.calendar-event span { color: #30302d; font-weight: 750; }
.calendar-event.release-event.status-released { background: var(--cb-soft-green); border-left-color: var(--cb-green); }
.calendar-event.release-event.status-scheduled { background: var(--cb-acid); border-left-color: var(--cb-black); }
.calendar-event.release-event.status-artwork { background: var(--cb-soft-yellow); border-left-color: var(--cb-yellow); }
.calendar-event.release-event.status-metadata { background: var(--cb-soft-blue); border-left-color: var(--cb-blue); }
.calendar-event.release-event.status-audio-production,
.calendar-event.release-event.status-mixing,
.calendar-event.release-event.status-mastering { background: #efeaff; border-left-color: var(--cb-violet); }
.calendar-event.release-event.status-concept { background: var(--cb-soft-pink); border-left-color: var(--cb-pink); }
.calendar-event.milestone { background: var(--cb-soft-orange); border-left-color: var(--cb-orange); }
.calendar-more { color: var(--cb-blue); font-weight: 950; }
.calendar-agenda {
  border: 3px solid var(--cb-black);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(10,10,10,.09);
}
.calendar-agenda .panel-head { padding: 16px; color: #fff; background: var(--cb-black); }
.calendar-agenda .panel-head span { color: var(--cb-acid); }
.agenda-list { gap: 12px; padding: 14px; }
.agenda-item {
  grid-template-columns: 72px minmax(0,1fr);
  padding: 0;
  border: 2px solid var(--cb-black);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(10,10,10,.08);
}
.agenda-item:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(10,10,10,.14); }
.agenda-art { width: 72px; height: 100%; min-height: 88px; border: 0; border-right: 2px solid var(--cb-black); }
.agenda-copy { padding: 10px 10px 10px 0; }
.agenda-copy small { color: var(--cb-blue); }
.agenda-copy strong { font-size: 1rem; font-weight: 950; }
.agenda-copy span { color: #4c4c47; }
.agenda-item.status-artwork { background: var(--cb-soft-yellow); }
.agenda-item.status-scheduled { background: var(--cb-acid); }
.agenda-item.status-released { background: var(--cb-soft-green); }
.agenda-item.status-metadata { background: var(--cb-soft-blue); }
.agenda-item.status-audio-production,
.agenda-item.status-mixing,
.agenda-item.status-mastering { background: #efeaff; }
.agenda-item.milestone { background: var(--cb-soft-orange); }

/* Release archive + pipeline */
.timeline-board { gap: 40px; }
.timeline-date {
  padding: 12px;
  border: 2px solid var(--cb-black);
  border-top-width: 7px;
  color: var(--cb-black);
  background: var(--cb-acid);
  box-shadow: 4px 4px 0 rgba(10,10,10,.1);
}
.release-row {
  min-height: 112px;
  border: 2px solid var(--cb-black);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(10,10,10,.07);
}
.release-row::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -2px;
  width: 8px;
  background: var(--cb-blue);
}
.release-row:has(.status-released)::before { background: var(--cb-green); }
.release-row:has(.status-scheduled)::before { background: var(--cb-acid); }
.release-row:has(.status-artwork)::before { background: var(--cb-yellow); }
.release-row:has(.status-mixing),
.release-row:has(.status-mastering),
.release-row:has(.status-audio-production)::before { background: var(--cb-violet); }
.release-row:hover { box-shadow: 10px 10px 0 var(--cb-acid); }
.release-cover { border: 2px solid var(--cb-black); }
.release-primary strong { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; font-size: 1.15rem; letter-spacing: -.025em; }
.status-pill { border: 2px solid var(--cb-black); font-weight: 950; }
.row-progress-track { height: 8px; border: 1px solid var(--cb-black); background: #fff; }
.row-progress-track i { background: var(--cb-blue); }
.pipeline-board { gap: 12px; }
.pipeline-column {
  border: 2px solid var(--cb-black);
  background: #fff;
  box-shadow: 5px 5px 0 rgba(10,10,10,.07);
}
.pipeline-column:nth-child(4n+1) .pipeline-head { background: var(--cb-acid); }
.pipeline-column:nth-child(4n+2) .pipeline-head { background: var(--cb-cyan); }
.pipeline-column:nth-child(4n+3) .pipeline-head { background: var(--cb-orange); }
.pipeline-column:nth-child(4n+4) .pipeline-head { background: var(--cb-pink); }
.pipeline-head { border-bottom: 2px solid var(--cb-black); color: var(--cb-black); }
.pipeline-card {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
}
.pipeline-card:hover { box-shadow: 5px 5px 0 var(--cb-blue); transform: translate(-2px,-2px); }

/* Public release catalog */
.public-catalog-grid { gap: 34px 20px; }
.public-release-card {
  border: 2px solid var(--cb-black);
  background: #fff;
  box-shadow: 7px 7px 0 rgba(10,10,10,.08);
}
.public-release-card:nth-child(5n+1) { box-shadow: 7px 7px 0 var(--cb-acid); }
.public-release-card:nth-child(5n+2) { box-shadow: 7px 7px 0 var(--cb-cyan); }
.public-release-card:nth-child(5n+3) { box-shadow: 7px 7px 0 var(--cb-orange); }
.public-release-card:nth-child(5n+4) { box-shadow: 7px 7px 0 var(--cb-pink); }
.public-release-card:nth-child(5n+5) { box-shadow: 7px 7px 0 var(--cb-blue); }
.public-release-open { padding: 0; }
.public-release-art { border: 0; border-bottom: 2px solid var(--cb-black); }
.public-release-art::after { right: 0; bottom: 0; padding: 10px 12px; background: var(--cb-blue); }
.public-release-copy-block { padding: 14px; }
.public-release-kicker { color: var(--cb-blue); font-weight: 950; }
.public-release-copy-block strong { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; font-size: 1.15rem; }
.public-bandcamp-link {
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border-top: 2px solid var(--cb-black);
  color: var(--cb-black);
  background: var(--cb-acid);
}
.public-bandcamp-link:hover { color: #fff; background: var(--cb-black); }

/* Audio */
.audio-review-layout { gap: 18px; }
.audio-queue-panel, .audio-focus-panel {
  border: 3px solid var(--cb-black);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(10,10,10,.08);
}
.audio-queue-panel .panel-head { margin: -15px -15px 12px; padding: 16px; border-bottom: 2px solid var(--cb-black); background: var(--cb-cyan); }
.audio-focus-panel { background: var(--cb-soft-blue); }
.audio-queue-item {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
}
.audio-queue-item:nth-child(3n+1) .audio-icon { background: var(--cb-acid); }
.audio-queue-item:nth-child(3n+2) .audio-icon { background: var(--cb-orange); }
.audio-queue-item:nth-child(3n+3) .audio-icon { background: var(--cb-cyan); }
.audio-queue-item:hover, .audio-queue-item.active { border-color: var(--cb-black); box-shadow: 5px 5px 0 var(--cb-blue); }
.audio-icon { border: 2px solid var(--cb-black); border-radius: 0; color: var(--cb-black); }
.audio-focus-art { border: 3px solid var(--cb-black); border-radius: 0; box-shadow: 8px 8px 0 var(--cb-acid); }
.audio-focus-copy h2 { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; text-transform: uppercase; }
.focus-player { border: 2px solid var(--cb-black); border-radius: 0; background: #fff; }
.big-glyph { border: 3px solid var(--cb-black); border-radius: 0; color: var(--cb-black); background: var(--cb-acid); }

/* Bandcamp */
.bandcamp-summary { gap: 12px; }
.bandcamp-summary article {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(10,10,10,.08);
}
.bandcamp-summary article:nth-child(1) { background: var(--cb-acid); }
.bandcamp-summary article:nth-child(2) { background: var(--cb-cyan); }
.bandcamp-summary article:nth-child(3) { background: var(--cb-orange); }
.bandcamp-sync-panel { border: 3px solid var(--cb-black); border-radius: 0; background: #fff; }
.sync-panel-head { border-bottom: 2px solid var(--cb-black); background: var(--cb-soft-blue); }
.sync-state { border: 2px solid var(--cb-black); color: var(--cb-black) !important; background: var(--cb-acid); }
.sync-source { border-right: 2px solid var(--cb-black); }
.archive-grid { gap: 16px; }
.archive-card {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(10,10,10,.08);
}
.archive-card:nth-child(4n+1) { box-shadow: 6px 6px 0 var(--cb-acid); }
.archive-card:nth-child(4n+2) { box-shadow: 6px 6px 0 var(--cb-cyan); }
.archive-card:nth-child(4n+3) { box-shadow: 6px 6px 0 var(--cb-orange); }
.archive-card:nth-child(4n+4) { box-shadow: 6px 6px 0 var(--cb-pink); }
.archive-art { border-bottom: 2px solid var(--cb-black); }
.archive-copy strong { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; }
.archive-link { top: 0; right: 0; border: 0; border-radius: 0; color: #fff; background: var(--cb-blue); }

/* Workspace drawer */
.drawer-backdrop { background: rgba(10,10,10,.55); backdrop-filter: blur(4px); }
.drawer-panel { border-left: 4px solid var(--cb-black); background: var(--cb-paper); box-shadow: -18px 0 0 rgba(10,10,10,.12); }
.drawer-header {
  min-height: 124px;
  border-bottom: 4px solid var(--cb-black);
  background:
    linear-gradient(90deg,var(--cb-acid) 0 14px,#fff 14px 100%);
}
.drawer-release-id { border: 2px solid var(--cb-black); border-radius: 0; color: var(--cb-black); background: var(--cb-acid); }
.drawer-heading h2 { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; font-size: clamp(2.5rem,4.5vw,5rem); text-transform: uppercase; }
.workspace-command-bar { border-bottom: 2px solid var(--cb-black); background: var(--cb-cyan); }
.workspace-progress .progress-track { height: 9px; border: 2px solid var(--cb-black); background: #fff; }
.workspace-progress .progress-track i { background: var(--cb-blue); }
.workspace-tabs { border-bottom: 2px solid var(--cb-black); background: #fff; }
.workspace-tab { min-height: 56px; color: #53534e; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.workspace-tab + .workspace-tab { border-left: 1px solid var(--line); }
.workspace-tab.active { color: var(--cb-black); background: var(--cb-acid); }
.workspace-tab.active::after { display: none; }
.workspace-body { background: var(--cb-paper); }
.workspace-grid { gap: 18px; }
.workspace-card {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(10,10,10,.07);
}
.workspace-card:nth-child(4n+1) { box-shadow: 6px 6px 0 var(--cb-acid); }
.workspace-card:nth-child(4n+2) { box-shadow: 6px 6px 0 var(--cb-cyan); }
.workspace-card:nth-child(4n+3) { box-shadow: 6px 6px 0 var(--cb-orange); }
.workspace-card:nth-child(4n+4) { box-shadow: 6px 6px 0 var(--cb-pink); }
.workspace-card h3 { font-weight: 950; letter-spacing: .1em; }
.workspace-art { border: 3px solid var(--cb-black); border-radius: 0; box-shadow: 7px 7px 0 var(--cb-blue); }
.release-fact { border-bottom: 2px solid var(--cb-black); }
.milestone-group {
  border: 2px solid var(--cb-black);
  background: #fff;
}
.milestone-group:nth-child(5n+1) h4 { background: var(--cb-acid); }
.milestone-group:nth-child(5n+2) h4 { background: var(--cb-cyan); }
.milestone-group:nth-child(5n+3) h4 { background: var(--cb-orange); }
.milestone-group:nth-child(5n+4) h4 { background: var(--cb-pink); }
.milestone-group:nth-child(5n+5) h4 { background: var(--cb-green); }
.milestone-group h4 { margin: 0; padding: 12px; border-bottom: 2px solid var(--cb-black); }
.milestone-item { border-bottom: 1px solid var(--line); }
.milestone-add { padding: 10px; background: var(--cb-paper); }
.validation-item { border: 2px solid var(--cb-black); background: #fff; }
.validation-item.ok { border-left: 10px solid var(--cb-green); }
.validation-item.missing { border-left: 10px solid var(--cb-orange); }

/* Notes, tracks, assets */
.notes-grid { gap: 16px; }
.note-card {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(10,10,10,.08);
}
.note-card:nth-child(4n+1) .note-head { background: var(--cb-acid); }
.note-card:nth-child(4n+2) .note-head { background: var(--cb-cyan); }
.note-card:nth-child(4n+3) .note-head { background: var(--cb-orange); }
.note-card:nth-child(4n+4) .note-head { background: var(--cb-pink); }
.note-head { padding: 12px; border-bottom: 2px solid var(--cb-black); }
.notes-textarea { border: 0 !important; background: #fff !important; }
.copy-button { border: 2px solid var(--cb-black); background: #fff; }
.track-editor-row, .asset-row {
  border: 2px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
}
.track-editor-row:nth-child(odd) { box-shadow: 5px 5px 0 var(--cb-soft-blue); }
.asset-row:nth-child(odd) { box-shadow: 5px 5px 0 var(--cb-soft-yellow); }
.asset-kind { border: 2px solid var(--cb-black); border-radius: 0; color: var(--cb-black); background: var(--cb-acid); }
.dropzone {
  border: 3px dashed var(--cb-black);
  border-radius: 0;
  background: var(--cb-soft-blue);
}
.dropzone:hover { background: var(--cb-acid); }
.drop-glyph { color: var(--cb-black); background: var(--cb-orange); }

/* Dialogs + login */
.login-screen { background: rgba(10,10,10,.72); backdrop-filter: blur(6px); }
.login-panel, .app-dialog {
  border: 4px solid var(--cb-black);
  border-radius: 0;
  background: #fff;
  box-shadow: 14px 14px 0 var(--cb-acid);
}
.login-panel::before, .app-dialog::before {
  content: "";
  display: block;
  height: 16px;
  margin: -28px -28px 24px;
  background: linear-gradient(90deg,var(--cb-blue) 0 25%,var(--cb-acid) 25% 50%,var(--cb-orange) 50% 75%,var(--cb-cyan) 75% 100%);
}
.login-panel h1, .dialog-head h2 { font-family: Arial Black, Helvetica Neue, Arial, sans-serif; text-transform: uppercase; }
.new-release-cover-preview { border: 3px dashed var(--cb-black); background: var(--cb-soft-yellow); }
.dialog-actions { border-top: 2px solid var(--cb-black); }

/* Mini player */
.mini-player {
  border-top: 3px solid var(--cb-black);
  background: #fff;
  box-shadow: 0 -8px 0 rgba(10,10,10,.05);
}
.mini-art { border: 2px solid var(--cb-black); border-radius: 0; color: #fff; background: var(--cb-black); }
.player-button { border: 2px solid var(--cb-black); color: #fff; background: var(--cb-black); }
.player-button:hover { color: var(--cb-black); background: var(--cb-acid); }
.mini-seek { accent-color: var(--cb-blue); }

/* Status blocks */
.status-concept { background: var(--cb-soft-pink); }
.status-audio-production, .status-mixing, .status-mastering { background: #efeaff; }
.status-artwork { background: var(--cb-soft-yellow); }
.status-metadata { background: var(--cb-soft-blue); }
.status-scheduled { background: var(--cb-acid); }
.status-released { background: var(--cb-soft-green); }
.status-on-hold { background: #eee; }
.status-cancelled { background: #ffe8e5; }
.status-archived { background: #ecebe7; }

/* Read-only mode */
body.public-view .page-head { min-height: 150px; }
body.public-view .main-nav { margin-left: 0; }
body.public-view .public-access .button { background: var(--cb-acid); }
body.public-view .calendar-layout { grid-template-columns: minmax(0,1.2fr) 380px; }
body.public-view .calendar-agenda { top: 100px; }
body.public-view .mini-player { display: none !important; }

/* Responsive */
@media (max-width: 1180px) {
  .app-header { grid-template-columns: 180px minmax(0,1fr); gap: 0; }
  .header-actions { grid-column: 1 / -1; min-height: 64px; border-top: 1px solid var(--line); }
  .global-search { width: min(500px,45vw); margin-left: auto; }
  body.public-view .calendar-layout, .calendar-layout { grid-template-columns: 1fr; }
  .calendar-agenda { position: static; }
}
@media (max-width: 760px) {
  body { background-size: 28px 28px; }
  .app-header { display: flex; flex-wrap: wrap; top: 5px; padding: 0 12px; }
  .brand { min-height: 70px; min-width: 140px; border-right: 0; }
  .brand img { width: 126px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
  .nav-button { min-height: 54px; padding: 0 14px; }
  .header-actions { order: 2; flex: 1; min-height: 70px; border-top: 0; }
  .account-menu, .public-access, .sync-status { min-height: 70px; }
  .global-search { display: none; }
  #newReleaseButton { margin-left: auto; }
  .app-main { padding: 30px 14px; }
  .page-head { min-height: 126px; }
  .page-head h1 { font-size: clamp(2.8rem,15vw,5rem); }
  .metric-grid, body.public-view .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { min-height: 126px; padding: 14px; }
  .metric-card strong { font-size: 2.9rem; }
  .calendar-grid { grid-template-columns: repeat(7,minmax(132px,1fr)); overflow-x: auto; }
  .calendar-day { min-height: 150px; }
  .release-row { grid-template-columns: 72px minmax(0,1fr); min-height: 96px; }
  .release-row > :nth-child(n+4) { display: none; }
  .public-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-command-bar { flex-wrap: wrap; }
  .workspace-progress { order: 8; width: 100%; }
}
@media (max-width: 520px) {
  .header-actions { flex-wrap: wrap; }
  .sync-status { min-width: 54px; padding: 0 8px; }
  .account-menu, .public-access { border-left: 1px solid var(--line); }
  .metric-grid, body.public-view .metric-grid { grid-template-columns: 1fr; }
  .public-catalog-grid, .archive-grid { grid-template-columns: 1fr; }
  .calendar-agenda { box-shadow: none; }
  .agenda-item { grid-template-columns: 64px minmax(0,1fr); }
  .agenda-art { width: 64px; }
  .drawer-header { grid-template-columns: minmax(0,1fr) auto; }
  .drawer-release-id { display: none; }
}
.release-row:has(.status-mixing)::before,
.release-row:has(.status-mastering)::before,
.release-row:has(.status-audio-production)::before { background: var(--cb-violet); }
.metric-card::before { display: none; }
.page-head h1::after {
  content: "";
  display: inline-block;
  width: .15em;
  height: .15em;
  margin-left: .055em;
  background: var(--cb-blue);
  vertical-align: .08em;
}

/* Signed-out Calm Bomb team view mirrors the release interface */
body.public-view .public-access > span {
  display: grid;
  gap: 2px;
  padding-right: 8px;
}
body.public-view .public-access strong {
  font: 950 .66rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.public-view .public-access small {
  color: #5f5f59;
  font: 800 .54rem/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.public-view .workspace-command-bar { display: flex; }
body.public-view .drawer-release-id { display: grid; }
body.public-view .workspace-progress { display: grid; }
body.public-view .row-progress { display: grid; }
body.public-view .mini-player { display: grid !important; }
body.public-view .workspace-drawer .drawer-panel { width: min(1180px, 96vw); }
body.public-view .workspace-grid { grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); }
body.public-view .workspace-card { padding: 20px; }
body.public-view .page-head { min-height: 150px; }
body.public-view .timeline-board { display: grid; }
body.public-view .timeline-group { display: grid; }
body.public-view .release-row { display: grid; }
body.public-view .workspace-command-bar .button-primary,
body.public-view .workspace-command-bar .more-button { display: none !important; }
body.public-view .workspace-command-bar select:disabled,
body.public-view .workspace-command-bar input:disabled,
body.public-view #metadataEditor input:disabled,
body.public-view #metadataEditor textarea:disabled,
body.public-view #metadataEditor select:disabled {
  opacity: 1;
  color: var(--cb-black);
  -webkit-text-fill-color: var(--cb-black);
  cursor: default;
}
body.public-view .milestone-item input:disabled { opacity: 1; }
body.public-view .metadata-actions { justify-content: flex-start; }
body.public-view .public-note { min-height: 88px; }

@media (max-width: 880px) {
  body.public-view .workspace-grid { grid-template-columns: 1fr; }
  body.public-view .public-access > span { display: none; }
}


/* v4.8 — accessibility and release archive clarity */
/* Bright surfaces always use dark text. White text is reserved for black and
   accessible electric-blue surfaces only. */
.calendar-weekday:nth-child(1) { color: #fff; }
.calendar-weekday:nth-child(2) { color: #fff; }
.calendar-weekday:nth-child(3),
.calendar-weekday:nth-child(4),
.calendar-weekday:nth-child(5),
.calendar-weekday:nth-child(6),
.calendar-weekday:nth-child(7) { color: var(--cb-black); }
.calendar-event { color: var(--cb-black); }
.button-danger { color: var(--cb-black); }
.audio-review-state.approved,
.validation-item.ok,
.validation-item.missing { color: var(--cb-black); }
.danger-text { color: #861c14 !important; }
.pipeline-card small { color: #4b4b46; }
.lookup-status { color: #343430; }
.release-cover .cover-fallback { color: var(--cb-black); }
.release-fact a { color: #1649cc; }

/* Metrics are data, not explanatory copy. */
.metric-card {
  min-height: 122px;
  justify-content: space-between;
}
.metric-card strong { margin-top: auto; }
.metric-card small { display: none; }

/* Cleaner release rows: identity, metadata, state, destination. */
.release-row {
  grid-template-columns: 86px minmax(250px, 1.55fr) minmax(270px, .95fr) minmax(180px, .62fr) 112px;
  min-height: 108px;
  gap: 20px;
  padding: 10px 18px 10px 12px;
}
.release-cover { width: 86px; height: 86px; }
.release-primary { align-self: center; }
.release-primary strong {
  max-width: 34ch;
  white-space: normal;
  line-height: 1.05;
}
.release-primary span { margin-top: 8px; }
.release-meta-group {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, .7fr) minmax(130px, 1fr);
  gap: 18px;
  align-items: start;
  padding-left: 20px;
  border-left: 1px solid #bbb8af;
}
.release-meta-item { min-width: 0; display: grid; gap: 5px; }
.release-meta-item small {
  color: #62625c;
  font: 900 .56rem/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.release-meta-item strong {
  overflow: hidden;
  color: var(--cb-black);
  font: 900 .72rem/1.25 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-meta-item em {
  color: #66665f;
  font: 700 .62rem/1.2 var(--mono);
  font-style: normal;
}
.release-state-group {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid #bbb8af;
}
.release-state-group .row-progress { width: 100%; }
.release-state-group .row-progress small { color: #4d4d48; }
.release-row-end {
  align-self: stretch;
  display: grid;
  place-items: center end;
  padding-left: 16px;
  border-left: 1px solid #bbb8af;
}
.record-type {
  color: #595953;
  font: 800 .59rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}
.bandcamp-chip {
  color: #1649cc;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Reduce decorative weight inside the archive while preserving color cues. */
.timeline-board { gap: 34px; }
.timeline-items { gap: 12px; }
.release-row:hover { box-shadow: 7px 7px 0 var(--cb-acid); }

@media (max-width: 1180px) {
  .release-row {
    grid-template-columns: 78px minmax(220px, 1.4fr) minmax(230px, .9fr) minmax(160px, .65fr);
  }
  .release-cover { width: 78px; height: 78px; }
  .release-row-end { display: none; }
}
@media (max-width: 820px) {
  .release-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }
  .release-cover { width: 72px; height: 72px; }
  .release-meta-group,
  .release-state-group,
  .release-row-end { display: none; }
  .release-primary strong { max-width: none; }
}

/* Explicit foregrounds prevent inherited white text on bright surfaces. */
.metric-card,
.calendar-event,
.agenda-item,
.release-row,
.pipeline-column,
.pipeline-card,
.public-release-card,
.audio-queue-panel,
.audio-focus-panel,
.audio-queue-item,
.bandcamp-summary article,
.bandcamp-sync-panel,
.archive-card,
.workspace-command-bar,
.workspace-card,
.milestone-group,
.milestone-group h4,
.note-card,
.note-head,
.track-editor-row,
.asset-row,
.dropzone,
.validation-item,
.new-release-cover-preview {
  color: var(--cb-black);
}
