/* ==========================================================================
   Studio theme
   A dark music-workstation look shared by every page: a transport bar on
   top, panels with track headers, regions on a timeline, an inspector and
   a mixer. Original design; no third-party product assets.
   ========================================================================== */

:root {
  --bg: #121214;
  --panel: #1c1d20;
  --panel-2: #24252a;
  --panel-3: #2e3036;
  --raise: #3a3c43;
  --line: #08080a;
  --edge: #34363d;
  --text: #e8e8eb;
  --muted: #a3a5ad;
  --dim: #6e7079;
  --accent: #2cccd8;
  --accent-soft: rgba(44, 204, 216, 0.16);
  --lcd: #0a1416;
  --lcd-text: #8ff4ff;
  --rec: #ff4d4d;
  --play: #4ee07a;
  --c-teal: #2bb7a8;
  --c-blue: #4a8df8;
  --c-yellow: #e0b53a;
  --c-purple: #a571f0;
  --c-orange: #ef8a3d;
  --c-green: #5cc56b;
  --c-pink: #e7609c;
  --tp-h: 64px;
  --radius: 6px;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

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

html { scroll-padding-top: calc(var(--tp-h) + 12px); }

body.daw {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 70% -200px, rgba(44, 204, 216, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.daw a { color: inherit; }
.daw img { max-width: 100%; }
.daw :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #001014 !important;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }

/* ---------- Transport bar ---------- */
.transport {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--tp-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: linear-gradient(#2a2b30, #1f2024);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 24px -12px rgba(0, 0, 0, 0.8);
}

.tp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex: 0 1 auto;
}
.tp-brand img { width: 34px; height: 34px; border-radius: 6px; display: block; }
.tp-brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.tp-brand-text strong { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.tp-brand-text span { font-size: 11px; color: var(--muted); font-family: var(--mono); }

.tp-controls {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #16171a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tp-btn {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(#3a3c42, #2c2e33);
  color: #d6d7db;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 1px rgba(0, 0, 0, 0.5);
  transition: background 0.15s, color 0.15s;
}
.tp-btn svg { width: 15px; height: 15px; fill: currentColor; }
.tp-btn:hover { background: linear-gradient(#45474e, #34363c); color: #fff; }
.tp-btn[aria-pressed="true"] { color: #062a1a; background: linear-gradient(#6af097, #3cc66a); }
.tp-btn.tp-cycle[aria-pressed="true"] { color: #2a1d00; background: linear-gradient(#f3cc58, #d6a72a); }
.tp-btn.tp-click[aria-pressed="true"] { color: #001b1e; background: linear-gradient(#6ae6ef, var(--accent)); }
.tp-btn .ic-pause { display: none; }
.tp-btn[aria-pressed="true"] .ic-play { display: none; }
.tp-btn[aria-pressed="true"] .ic-pause { display: block; }

.lcd {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 44px;
  padding: 0 4px;
  border-radius: 7px;
  background: linear-gradient(#0c191c, var(--lcd));
  border: 1px solid #000;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--lcd-text);
  font-family: var(--mono);
  text-shadow: 0 0 10px rgba(143, 244, 255, 0.45);
  min-width: 0;
}
.lcd-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.lcd-cell + .lcd-cell { border-left: 1px solid rgba(143, 244, 255, 0.12); }
.lcd-val { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.lcd-lbl { font-size: 9px; letter-spacing: 0.16em; color: rgba(143, 244, 255, 0.55); text-transform: uppercase; }
.lcd-cell.lcd-track { min-width: 0; max-width: 220px; }
.lcd-cell.lcd-track .lcd-val { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.tp-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tp-nav a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #d6d7db;
  background: linear-gradient(#34363c, #2a2c31);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 1px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.tp-nav a:hover { color: #fff; background: linear-gradient(#42444b, #33353b); }
.tp-nav a[aria-current="page"] { color: #001b1e; background: linear-gradient(#6ae6ef, var(--accent)); }
.tp-menu { display: none; }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  background: linear-gradient(#2a2b30, #232428);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.panel-head h2,
.panel-head .panel-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.panel-head .spacer { flex: 1; }
.panel-head .hint { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.panel-body { padding: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  font: 600 13px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  color: #e8e8eb;
  background: linear-gradient(#3e4047, #2f3137);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-accent { color: #001b1e !important; background: linear-gradient(#6ae6ef, var(--accent)); }

/* ---------- Home layout ---------- */
.studio {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  max-width: 1680px;
  margin: 0 auto;
}
.studio > * { grid-column: 2; min-width: 0; }
.studio > .inspector {
  grid-column: 1;
  grid-row: 1 / span 7;
  align-self: start;
  position: sticky;
  top: calc(var(--tp-h) + 12px);
  max-height: calc(100vh - var(--tp-h) - 24px);
  display: flex;
  flex-direction: column;
}

/* Hero / project overview */
.overview { position: relative; }
.overview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 32px 32px 8px;
}
.overview .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.overview h1 {
  margin: 10px 0 4px;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.overview .role { font-size: 20px; color: var(--muted); margin: 0 0 18px; }
.overview .tagline { font-size: 19px; line-height: 1.55; color: #cfd0d5; max-width: 34em; margin: 0 0 24px; }
.overview .tagline strong { color: var(--accent); font-weight: 600; }
.overview .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.overview-art { position: relative; }
.overview-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }

.master {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}
.master-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  font-size: 12px;
}
.master-head strong { font-weight: 600; }
.master-head span { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.master-wave { position: relative; height: 64px; background: #17181b; overflow: hidden; }
.master-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.master-wave .wave-played { clip-path: inset(0 calc(100% - var(--pos, 0%)) 0 0); }

/* ---------- Arrangement (tracks) ---------- */
.arrange { --head: 230px; --bars: 16; }
.arrange-grid { position: relative; }
.ruler {
  display: grid;
  grid-template-columns: var(--head) minmax(0, 1fr);
  height: 28px;
  background: #202125;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  user-select: none;
}
.ruler-corner {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.ruler-scale {
  position: relative;
  cursor: pointer;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px calc(100% / var(--ticks, 16)));
  background-size: 100% 9px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.ruler-scale span { position: absolute; top: 5px; transform: translateX(4px); }
.ruler-scale .cycle-band {
  position: absolute;
  top: 0;
  height: 9px;
  left: 0;
  right: 0;
  background: rgba(224, 181, 58, 0.55);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.2s;
}
.is-cycling .ruler-scale .cycle-band { opacity: 1; }

.track {
  display: grid;
  grid-template-columns: var(--head) minmax(0, 1fr);
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}
.track:last-child { border-bottom: 0; }
.track-head {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 10px 12px 10px 14px;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
}
.track-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tc, var(--c-teal));
}
.track.is-selected .track-head { background: #2c2e34; }
.track-num { grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; }
.track-name { font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-sub { grid-column: 2; font-size: 11px; color: var(--dim); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-tools { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 4px; }
.ms {
  width: 22px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  font: 700 10px/20px var(--ui);
  color: #c3c4ca;
  background: linear-gradient(#3e4047, #30323808);
  background-color: #33353b;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ms[aria-pressed="true"][data-act="mute"] { background: #3a8ef6; color: #fff; }
.ms[aria-pressed="true"][data-act="solo"] { background: #e7c33f; color: #2a1d00; }
.meter {
  width: 6px;
  height: 40px;
  margin-left: 4px;
  border-radius: 2px;
  background: #111214;
  position: relative;
  overflow: hidden;
}
.meter i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--lvl, 0) * 100%);
  background: linear-gradient(0deg, #3fdc6e 0%, #3fdc6e 60%, #e9d23d 80%, #ff5a4a 100%);
  background-size: 100% 40px;
  background-position: bottom;
  transition: height 0.08s linear;
}

.lane {
  position: relative;
  background-color: #18191c;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px calc(100% / var(--bars))),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px calc(100% / (var(--bars) * 4)));
}
.track.is-muted .region { filter: grayscale(1) brightness(0.55); }

.region {
  --rc: var(--tc, var(--c-teal));
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc((var(--start) - 1) / var(--bars) * 100%);
  width: calc(var(--len) / var(--bars) * 100%);
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: color-mix(in srgb, var(--rc) 34%, #141518);
  border: 1px solid color-mix(in srgb, var(--rc) 70%, #000);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, filter 0.2s;
}
.region:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); }
.region.is-selected { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 6px 18px rgba(0, 0, 0, 0.6); }
.region-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--rc) 80%, #000);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.region-head span { overflow: hidden; text-overflow: ellipsis; }
.region-head svg { flex: none; width: 10px; height: 10px; fill: currentColor; opacity: 0.8; }
.region-body { position: relative; flex: 1; display: flex; align-items: stretch; min-height: 0; }
.region-body img {
  flex: none;
  height: 100%;
  width: auto;
  max-width: 40%;
  object-fit: cover;
  object-position: left top;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.25);
}
.region-body svg.notes { flex: 1; min-width: 0; height: 100%; color: color-mix(in srgb, var(--rc) 55%, #fff); }

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--head) + (100% - var(--head)) * var(--ph, 0));
  width: 0;
  z-index: 5;
  pointer-events: none;
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}
.playhead::after {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  border: 7px solid transparent;
  border-top: 9px solid #fff;
  border-bottom: 0;
}

/* ---------- Inspector ---------- */
.inspector .panel-head { flex: none; }
.inspector-body { overflow: auto; overscroll-behavior: contain; padding: 0 0 16px; scrollbar-width: thin; }
.js .detail:not(.is-active) { display: none; }
.detail { padding: 0 0 8px; }
.detail + .detail { border-top: 1px solid var(--edge); }
.detail-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  margin: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 35%, #1c1d20), #141518 75%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.detail-art img { max-height: 148px; width: auto; max-width: 88%; object-fit: contain; border-radius: 4px; }
.detail-art .chip { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, 0.55); color: #fff; }
.detail-main { padding: 16px 16px 0; }
.detail h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; font-weight: 700; }
.detail .summary { margin: 0 0 14px; color: #c9cad0; font-size: 14px; }
.params { margin: 0 0 16px; border-top: 1px solid var(--edge); }
.params > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 13px;
}
.params dt { color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.params dd { margin: 0; color: var(--text); }
.detail h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.detail p { margin: 0 0 14px; font-size: 14px; color: #c3c4ca; }
.detail .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail .actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Career arrangement ---------- */
.career { --head: 230px; }
.career .ruler-scale { cursor: default; }
.career .lane { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px calc(100% / var(--years, 10))); }
.career .track { min-height: 64px; }
.career .region {
  left: calc((var(--from) - var(--y0)) / var(--years) * 100%);
  width: max(10px, calc((var(--to) - var(--from)) / var(--years) * 100%));
  cursor: default;
}
.career .region:hover { transform: none; }
.career .region-body { align-items: center; padding: 0 8px; font-size: 11px; font-family: var(--mono); color: rgba(255, 255, 255, 0.85); white-space: nowrap; overflow: hidden; }
.career .track-sub { white-space: normal; }
.marker-lane { position: relative; height: 34px; }
.marker {
  position: absolute;
  top: 6px;
  left: calc((var(--at) - var(--y0)) / var(--years) * 100%);
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: 0 4px 4px 0;
  background: #545862;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-left: 2px solid #fff;
}
.accolades { margin: 0; padding: 18px 20px 20px 20px; list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.accolades li { position: relative; padding-left: 22px; color: #c9cad0; font-size: 14px; }
.accolades li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--c-yellow);
  border-radius: 1px;
}

/* ---------- Mixer ---------- */
.mixer-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.inserts { padding: 16px; border-right: 1px solid var(--line); background: var(--panel-2); }
.inserts h3, .strips-title { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.inserts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.inserts li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: linear-gradient(#3a3d45, #30333a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 500;
}
.inserts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--play); box-shadow: 0 0 6px var(--play); flex: none; }

.strips { display: flex; gap: 6px; padding: 16px; overflow-x: auto; scrollbar-width: thin; }
.strip-group { display: flex; flex-direction: column; gap: 8px; }
.strip-group + .strip-group { padding-left: 10px; border-left: 1px solid var(--edge); }
.strip-row { display: flex; gap: 6px; }
.strip {
  width: 84px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 0;
  border-radius: 6px;
  background: linear-gradient(#2b2d32, #222327);
  border: 1px solid var(--line);
  overflow: hidden;
}
.strip-logo {
  width: 60px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 4px;
  background: #f2f2f4;
}
.strip-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #5a5d66, #2a2c31 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: rotate(var(--pan, 0deg));
}
.knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.fader-wrap { display: flex; gap: 6px; align-items: stretch; height: 130px; }
.fader {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 130px;
  margin: 0;
  background: transparent;
  cursor: ns-resize;
}
.fader::-webkit-slider-runnable-track { width: 4px; height: 100%; border-radius: 2px; background: #0c0d0f; box-shadow: 0 0 0 1px #000; }
.fader::-moz-range-track { width: 4px; height: 100%; border-radius: 2px; background: #0c0d0f; }
.fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(#e9eaee, #a9abb2);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  margin-left: -9px;
}
.fader::-moz-range-thumb {
  width: 22px;
  height: 12px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(#e9eaee, #a9abb2);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}
.strip .meter { height: 130px; margin: 0; }
.strip-name {
  align-self: stretch;
  margin: 0 -6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--sc, var(--c-blue));
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip.master-strip { width: 96px; background: linear-gradient(#33353b, #26272c); }
.strip.master-strip .strip-logo { background: #0e0f11; }

/* ---------- Notes ---------- */
.notes-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.note { padding: 24px 26px; }
.note + .note { border-left: 1px solid var(--line); }
.note .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.note h2, .note h3 { margin: 6px 0 12px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.note p { margin: 0 0 14px; color: #c9cad0; font-size: 15px; }
.note-split { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; align-items: start; }
.note-split img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* ---------- Footer ---------- */
.daw-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 13px;
  color: var(--dim);
}
.daw-footer .spacer { flex: 1; }

/* ---------- Case study pages ---------- */
.studio.case { grid-template-columns: 260px minmax(0, 1fr); }
.studio.case > .tracklist {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: calc(var(--tp-h) + 12px);
}
.tracklist ol { list-style: none; margin: 0; padding: 6px 0; }
.tracklist a {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 14px 10px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #cfd0d5;
}
.tracklist a::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 2px 2px 0; background: var(--tc); }
.tracklist a:hover { background: var(--panel-2); color: #fff; }
.tracklist a[aria-current="page"] { background: #2c2e34; color: #fff; }
.tracklist a[aria-current="page"] .track-num { color: var(--accent); }
.tracklist .track-num { grid-row: auto; }
.tracklist .home-link { border-top: 1px solid var(--line); }

.editor { min-width: 0; }
.editor .panel-head .spacer + .chip { margin-left: 8px; }
.editor-progress { position: relative; height: 4px; background: #101113; }
.editor-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--ph, 0) * 100%); background: linear-gradient(90deg, var(--accent), #8ff4ff); }

/* Re-skin the imported page content inside the editor */
.editor-content { padding: 8px 0 24px; color: #c9cad0; font-family: var(--ui); }
.editor-content .section,
.editor-content .persona,
.editor-content .section-2,
.editor-content .section.about,
.editor-content .section.skills,
.editor-content .section.experience,
.editor-content .gallery { background-color: transparent !important; color: inherit; }
.editor-content .w-container { max-width: 980px; padding-left: 24px; padding-right: 24px; }
.editor-content h1,
.editor-content .heading-jumbo {
  color: var(--text) !important;
  font-family: var(--ui);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  text-align: left;
  margin: 18px 0 10px;
}
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content .heading-2,
.editor-content .position-name-text {
  color: var(--text) !important;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.editor-content .position-name-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 22px;
}
.editor-content .position-name-text::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(44, 204, 216, 0.6);
  flex: none;
}
.editor-content p,
.editor-content li,
.editor-content .paragraph-light,
.editor-content .paragraph-light.cc-position-name,
.editor-content .paragraph-tiny,
.editor-content .paragraph-tiny.cc-paragraph-tiny-light,
.editor-content .text-block-5,
.editor-content .div-block-41,
.editor-content [class^="text-span"] { color: #c9cad0 !important; font-family: var(--ui); }
.editor-content .paragraph-light { font-size: 16px; line-height: 1.75; }
.editor-content a:not(.w-lightbox):not(.btn) { color: var(--accent); }
.editor-content strong { color: var(--text); }
.editor-content img { border-radius: 6px; }
.editor-content .w-lightbox img { transition: transform 0.2s, box-shadow 0.2s; }
.editor-content .w-lightbox:hover img { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.editor-content .container { border-top-color: var(--edge); }
.editor-content .totop,
.editor-content .footer-links,
.editor-content .email-section { display: none; }
.editor-content .gallery-grid-container { gap: 10px; }
.editor-content .gallery-thumbnail { border-radius: 6px; border: 1px solid var(--line); }

/* Lightbox stays dark */
.w-lightbox-backdrop { background: rgba(6, 7, 9, 0.94) !important; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lcd-cell.lcd-sig { display: none; }
  .tp-brand-text span { display: none; }
  .mixer-body { grid-template-columns: 1fr; }
  .inserts { border-right: 0; border-bottom: 1px solid var(--line); }
  .inserts ul { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (max-width: 980px) {
  :root { --tp-h: 56px; }
  .transport { gap: 10px; padding: 0 12px; }
  .tp-brand-text, .lcd-cell.lcd-track, .tp-btn.tp-click, .tp-btn.tp-rewind { display: none; }
  .lcd-val { font-size: 15px; }
  .lcd { height: 38px; }
  .tp-menu {
    display: grid;
    margin-left: auto;
  }
  .tp-nav {
    display: none;
    position: absolute;
    top: var(--tp-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: #1f2024;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.8);
  }
  .tp-nav.is-open { display: flex; }
  .tp-nav a { height: 42px; justify-content: center; font-size: 15px; }

  .studio, .studio.case { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
  .studio > .inspector,
  .studio.case > .tracklist { position: static; max-height: none; order: 0; }
  .studio > .inspector { order: 2; }
  .studio > .overview { order: 0; }
  .studio > .arrange { order: 1; }
  .studio > .career { order: 3; }
  .studio > .mixer { order: 4; }
  .studio > .notes { order: 5; }
  .studio > .daw-footer { order: 6; }
  .inspector-body { overflow: visible; }

  .overview-body { grid-template-columns: 1fr; padding: 24px 18px 4px; }
  .overview-art { order: -1; max-width: 520px; }
  .master { grid-template-columns: 110px minmax(0, 1fr); }

  .arrange, .career { --head: 132px; }
  .track-head { grid-template-columns: minmax(0, 1fr); padding: 8px 8px 8px 12px; }
  .track-num, .track-tools { display: none; }
  .track-sub { grid-column: 1; }
  .track-name { white-space: normal; font-size: 12px; }
  .region-body img { max-width: 50%; }

  .notes-body { grid-template-columns: 1fr; }
  .note + .note { border-left: 0; border-top: 1px solid var(--line); }

  .studio.case > .tracklist ol { display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .tracklist a { white-space: nowrap; padding: 8px 12px 8px 14px; border-radius: 4px; }
  .tracklist .home-link { border-top: 0; }
  .editor-content .w-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .lcd-cell.lcd-tempo { display: none; }
  .tp-controls .tp-cycle { display: none; }
  .note-split { grid-template-columns: 1fr; }
  .note-split img { max-width: 260px; }
  .overview .tagline { font-size: 17px; }
  .career .region-body { font-size: 0; }
  .marker { font-size: 10px; padding: 0 6px 0 5px; }
  .accolades, .note { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .region, .btn, .meter i { transition: none; }
}

/* ---------- Fixes ---------- */
.track-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.career .track-head { grid-template-columns: minmax(0, 1fr); }
.career .track-name, .career .track-sub { grid-column: 1; }
.note-split img, .overview-art img { height: auto; }
.strips { flex-wrap: wrap; row-gap: 14px; }
.ruler-scale span { color: var(--muted); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 980px) {
  .panel-head .hint { display: none; }
  .arrange:not(.career) .arrange-grid { min-width: 760px; }
  .career .arrange-grid { min-width: 680px; }
  .ruler-corner, .track-head { position: sticky; left: 0; z-index: 6; }
  .track-head { box-shadow: 6px 0 10px -6px rgba(0, 0, 0, 0.7); }
}
@media (max-width: 980px) {
  .studio.case > .tracklist li { flex: none; }
  .tracklist a { display: flex; gap: 8px; }
  .tracklist .track-num { display: inline; }
}
