:root {
  --bg: #090b08;
  --panel: #171b13;
  --edge: #3e4935;
  --green: #b5ff45;
  --green2: #65c638;
  --amber: #ffcc55;
  --ink: #e8eedf;
  --muted: #8d9b83;
  --red: #ff6262;
  font:
    13px/1.35 "Segoe UI",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -20%, #334120 0, transparent 38%),
    linear-gradient(135deg, #070807, #10150c);
  padding: 18px;
}
.shell {
  max-width: 1180px;
  margin: auto;
}
.panel {
  background: linear-gradient(180deg, #22291b, #11150f);
  border: 1px solid #4b5840;
  border-radius: 8px;
  box-shadow:
    0 18px 50px #0009,
    inset 0 1px #ffffff16;
  padding: 16px;
}
.installer {
  max-width: 760px;
  margin: 7vh auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  background: var(--green);
  color: #10150c;
  font-weight: 1000;
  font-size: 20px;
  transform: skew(-8deg);
  box-shadow: 5px 5px 0 #000;
}
.brand h1 {
  font-size: 24px;
  line-height: 0.8;
  margin: 3px 0;
}
.eyebrow {
  font:
    700 10px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0;
}
.status {
  margin-left: auto;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 5px 9px;
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.status.ready {
  color: var(--green);
  border-color: var(--green);
}
.display {
  background: #050704;
  border: 1px solid #38452d;
  box-shadow: inset 0 0 24px #000;
  padding: 15px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-shadow: 0 0 12px #83ff464f;
}
.install-copy {
  margin: 18px 0;
}
.kicker {
  letter-spacing: 0.18em;
  margin: 0 0 16px;
}
.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.metric strong {
  font-size: 18px;
}
.mono {
  font-size: 11px;
  color: #8fca63;
}
.progress {
  height: 18px;
  background: #172012;
  margin: 12px 0;
  border: 1px solid #4c613b;
  padding: 2px;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 10px,
    #426b23 10px 12px
  );
  transition: width 0.15s;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.install-grid div {
  background: #0b0e09;
  padding: 10px;
  border: 1px solid #30382a;
}
.install-grid span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: var(--muted);
}
.install-grid strong {
  font:
    700 12px ui-monospace,
    monospace;
}
.current-file {
  min-height: 20px;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice {
  border-left: 3px solid var(--amber);
  background: #2b2411;
  padding: 12px;
  margin: 12px 0;
  color: #ffe1a0;
}
.notice.error {
  border-color: var(--red);
  background: #2b1111;
}
.actions {
  display: flex;
  gap: 8px;
}
button,
input,
select {
  font: inherit;
}
button {
  color: var(--ink);
  background: #262d20;
  border: 1px solid #536147;
  border-radius: 3px;
  padding: 8px 11px;
  cursor: pointer;
}
button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fineprint {
  color: var(--muted);
  font-size: 11px;
}
.player {
  display: grid;
  gap: 12px;
}
.now-playing {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.now-playing p {
  font-size: 18px;
  margin: 1px 0;
}
.now-playing small {
  color: #91bd6c;
}
.now-playing time {
  font-size: 16px;
}
canvas {
  width: 100%;
  height: 112px;
  background: #060805;
  border: 1px solid #34402b;
  margin-top: 8px;
}
.seek {
  width: 100%;
  accent-color: var(--green);
}
.transport {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.transport .primary {
  color: #10150c;
  background: var(--green);
  font-weight: 800;
}
.transport label {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  font:
    10px ui-monospace,
    monospace;
}
.transport input {
  width: 110px;
  accent-color: var(--green);
}
button[aria-pressed="true"] {
  color: var(--green);
  border-color: var(--green);
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
}
.library-panel {
  padding: 0;
  overflow: hidden;
  container-type: inline-size;
}
.library-panel header,
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.library-panel h2,
dialog h2 {
  margin: 2px 0 0;
  font-size: 17px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0 16px 12px;
}
.filters input,
.filters select,
.eq-actions select {
  min-width: 0;
  width: 100%;
  background: #0a0d08;
  color: var(--ink);
  border: 1px solid #394431;
  padding: 8px;
}
.track-head,
.track {
  display: grid;
  grid-template-columns: 40px minmax(220px, 1fr) 100px 64px 78px;
  gap: 10px;
  align-items: center;
}
.track-head {
  padding: 7px 16px;
  background: #0a0d08;
  color: var(--muted);
  font:
    9px ui-monospace,
    monospace;
  text-transform: uppercase;
}
.track-list {
  height: 470px;
  overflow: auto;
}
.track {
  height: 54px;
  padding: 7px 16px;
  border-bottom: 1px solid #2b3225;
  cursor: pointer;
}
.track:hover,
.track.selected {
  background: #222c19;
}
.track.selected {
  box-shadow: inset 3px 0 var(--green);
}
.track span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track .title {
  display: flex;
  flex-direction: column;
}
.track .title small {
  color: var(--muted);
}
.side-panel {
  min-height: 400px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #394431;
  margin: -4px -4px 16px;
}
.tabs button {
  border: 0;
  background: transparent;
}
.tabs .active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
dl {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  margin-top: 18px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
a {
  color: var(--green);
}
.eq-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.eq-bands {
  height: 275px;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin-top: 16px;
}
.eq-band {
  display: flex;
  align-items: center;
  flex-direction: column;
  font:
    9px ui-monospace,
    monospace;
  color: var(--muted);
}
.eq-band input {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 220px;
  accent-color: var(--green);
}
dialog {
  width: min(900px, calc(100% - 30px));
  max-height: 84vh;
  color: var(--ink);
  background: #11150f;
  border: 1px solid #526245;
  border-radius: 8px;
}
dialog::backdrop {
  background: #000c;
}
.credit {
  padding: 12px 16px;
  border-top: 1px solid #2b3225;
}
.credit p {
  margin: 4px 0;
  color: var(--muted);
}
@container (max-width: 760px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  body {
    padding: 8px;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
  .track-head,
  .track {
    grid-template-columns: 30px 1fr 56px;
  }
  .track-head span:nth-child(3),
  .track-head span:nth-child(5),
  .track > span:nth-child(3),
  .track > span:nth-child(5) {
    display: none;
  }
  .install-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    flex-wrap: wrap;
  }
  .transport label {
    margin-left: 0;
  }
  .side-panel {
    min-height: 330px;
  }
}
