@import url("/assets/studio.css?v=20261127-etherical-1");
@import url("/assets/deck.css?v=20261127-etherical-1");
:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #191b1c;
  --border: #2b2e2f;
  --text: #f1f2ed;
  --muted: #949a98;
  --lime: #b9f57b;
  --orange: #e7a15d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #414544;
  background: #292d2c;
  color: var(--text);
  padding: 11px 16px;
  border-radius: 7px;
  font-weight: 600;
}
button:hover {
  border-color: var(--lime);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
.primary {
  background: var(--lime);
  color: #182010;
  border-color: var(--lime);
}
button.ghost {
  background: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
input,
select,
textarea {
  background: #111414;
  border: 1px solid #3c4140;
  border-radius: 6px;
  padding: 10px;
  color: var(--text);
  max-width: 100%;
}
input[type="range"] {
  accent-color: var(--lime);
  padding: 0;
}
input[type="checkbox"] {
  accent-color: var(--lime);
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #c8ceca;
}
label.inline {
  display: flex;
  align-items: center;
}
form {
  display: grid;
  gap: 14px;
}
textarea {
  min-height: 80px;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  background: #141617;
  z-index: 5;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  gap: 9px;
}
.logo-mark {
  background: var(--lime);
  color: #182010;
  font-size: 23px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  font-style: italic;
}
.logo-dot {
  font-size: 9px;
  align-self: start;
  color: var(--muted);
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 18px 0 40px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 12px;
  color: #969e9a;
  border-radius: 6px;
  font-size: 15px;
}
.sidebar nav span {
  font-size: 12px;
}
.sidebar nav a.active {
  background: #283223;
  color: var(--lime);
  box-shadow: inset 2px 0 var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #b4bcb5;
}
.sidebar-bottom p {
  color: #6d7570;
  letter-spacing: 0;
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  background: var(--lime);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
}
.workspace {
  margin-left: 230px;
}
header {
  height: 94px;
  border-bottom: 1px solid var(--border);
  padding: 22px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #838d85;
}
header p {
  margin: 8px 0 0;
  font-size: 14px;
}
.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.badge {
  font-size: 8px;
  padding: 6px 9px;
  letter-spacing: 1px;
  border: 1px solid #44563a;
  border-radius: 4px;
  color: var(--lime);
}
.avatar {
  font-size: 11px;
  background: #252a26;
}
main {
  padding: 32px 38px;
  min-height: calc(100vh - 145px);
  max-width: 1800px;
  margin: auto;
}
footer {
  border-top: 1px solid var(--border);
  padding: 20px 38px;
  color: #737b77;
  font-size: 9px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--lime);
  text-transform: uppercase;
}
.page-title {
  font-size: 34px;
  letter-spacing: -1.4px;
  margin: 12px 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 290px;
  background: linear-gradient(115deg, #20291d, #1e251e 55%, #151a17);
  border: 1px solid #36442e;
  border-radius: 12px;
  overflow: hidden;
}
.hero-copy {
  padding: 35px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin: 18px 0;
}
.hero h1 span {
  color: var(--lime);
}
.hero p {
  max-width: 370px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.actions a {
  padding: 12px 17px;
  border: 1px solid #4c5748;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.hero-art {
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(ellipse, #37482d 0, transparent 68%);
  overflow: hidden;
}
.hero-record {
  height: 255px;
  width: 255px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #151918 0 2px,
    #2c332c 3px,
    #101412 4px
  );
  box-shadow: 0 24px 35px #0008;
  transform: rotate(-20deg);
  border: 4px solid #3b4538;
  display: grid;
  place-items: center;
}
.hero-record div {
  height: 88px;
  width: 88px;
  background: var(--lime);
  color: #19220f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 3px solid #101810;
}
.hero-art .orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #64765728;
  border-radius: 50%;
}
.hero-art .mini-tag {
  position: absolute;
  bottom: 20px;
  right: 18px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #b5c2ac;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 30px;
}
.stat,
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 9px;
  padding: 22px;
}
.stat .value {
  font-size: 25px;
  margin: 12px 0 8px;
  font-weight: 700;
}
.stat .eyebrow {
  color: #9ba69c;
  font-size: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 23px 0 17px;
}
.section-heading h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}
.section-heading a {
  font-size: 10px;
  color: var(--lime);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.feature-art {
  height: 135px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f392a, #19221c);
  position: relative;
  overflow: hidden;
}
.feature-art.violet {
  background: linear-gradient(145deg, #343145, #1b1a24);
}
.feature-art.orange {
  background: linear-gradient(145deg, #49372c, #211c19);
}
.feature-body {
  padding: 18px;
}
.feature-body h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.feature-body p {
  font-size: 11px;
  min-height: 36px;
}
.feature-body a {
  display: inline-block;
  font-size: 10px;
  color: var(--lime);
  margin-top: 12px;
}
.bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 65px;
}
.bars i {
  display: block;
  background: var(--lime);
  width: 6px;
  border-radius: 2px;
  height: var(--h);
  opacity: 0.7;
}
.mini-record {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #17151e 0 3px,
    #464052 4px,
    #111116 5px
  );
  border: 3px solid #6c6276;
  display: grid;
  place-items: center;
}
.mini-record:after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #cbb7f1;
}
.chart-art {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 70px;
}
.chart-art i {
  display: block;
  width: 20px;
  background: #dc9e66;
  border-radius: 3px 3px 0 0;
  height: var(--h);
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.empty {
  padding: 25px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.upgrade {
  background: linear-gradient(125deg, #28351f, #1b211a);
  border-color: #3d5030;
}
.upgrade h3 {
  font-size: 23px;
  margin: 15px 0;
}
.upgrade strong {
  color: var(--lime);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.track-row,
.song-row {
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.song-info {
  flex: 1;
  min-width: 150px;
}
.song-info strong {
  font-size: 13px;
  display: block;
}
.song-info small {
  color: var(--muted);
  font-size: 10px;
}
.rank {
  font-size: 18px;
  color: var(--lime);
  width: 30px;
}
.song-row button {
  font-size: 10px;
  padding: 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input[type="number"] {
  width: 80px;
}
.studio-track {
  border: 1px solid var(--border);
  background: #171b19;
  padding: 15px;
  border-radius: 8px;
  margin: 12px 0;
}
.studio-track canvas {
  width: 100%;
  height: 65px;
  background: #101512;
  margin-top: 10px;
}
.track-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
}
.track-controls input[type="range"] {
  width: 80px;
}
.track-controls input[type="number"] {
  width: 75px;
}
.track-controls label {
  display: flex;
  align-items: center;
  font-size: 10px;
}
.sequencer {
  overflow: auto;
}
.step-row {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 6px 0;
}
.step-row span {
  min-width: 80px;
  font-size: 11px;
}
.step {
  width: 29px;
  height: 28px;
  padding: 0;
  border: 1px solid #3b473b;
  background: #222a23;
  border-radius: 3px;
}
.step.on {
  background: var(--lime);
  border-color: var(--lime);
}
.step.beat {
  outline: 2px solid #fff;
}
.piano {
  display: flex;
  height: 120px;
  margin-top: 15px;
  touch-action: none;
}
.key {
  flex: 1;
  min-width: 20px;
  border-radius: 0 0 5px 5px;
  background: #e6e9dc;
  color: #252c20;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 10px;
}
.key.sharp {
  background: #292d2b;
  color: white;
  max-height: 80px;
  min-width: 16px;
  margin: 0 -10px;
  z-index: 1;
}
.key:active {
  background: var(--lime);
}
.pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.pad {
  height: 70px;
  border: 1px solid #576b49;
  background: #293225;
  color: #cae6b2;
  font-size: 10px;
  touch-action: none;
}
.pad.loaded {
  border-color: var(--lime);
  box-shadow: inset 0 -3px #a9dc70;
}
.sampler-row {
  display: flex;
  gap: 12px;
}
.dj-layout {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 15px;
  align-items: start;
}
.mixer {
  padding: 16px;
  text-align: center;
}
.mixer label {
  margin: 16px 0;
}
.eq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.eq input {
  width: 100%;
}
.mixer h3 {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--lime);
}
.local-library {
  margin-top: 20px;
}
.file-label {
  display: inline-block;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px dashed #627456;
  border-radius: 6px;
  color: var(--lime);
  font-size: 11px;
}
.file-label input {
  display: none;
}
dialog {
  border: 1px solid #4a5348;
  border-radius: 12px;
  background: #1b201c;
  color: var(--text);
  width: min(460px, 92vw);
  padding: 25px;
}
dialog::backdrop {
  background: #000b;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #30412a;
  color: #efffe4;
  padding: 14px 22px;
  border: 1px solid #668b4b;
  border-radius: 8px;
  z-index: 20;
  font-size: 12px;
  max-width: 90vw;
  display: none;
}
#notice.visible {
  display: block;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.admin-table td,
.admin-table th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 12px;
}
.table-wrap {
  overflow: auto;
}
.pill {
  font-size: 9px;
  color: var(--lime);
  padding: 5px 8px;
  background: #2c3727;
  border-radius: 4px;
}
.warning {
  color: var(--orange);
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.studio-transport {
  position: sticky;
  top: 0;
  background: #172015;
  padding: 15px;
  border: 1px solid #405635;
  border-radius: 8px;
  z-index: 2;
}
.synth-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.synth-controls label {
  max-width: 150px;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  color: var(--lime);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 330px;
  }
  .hero-copy {
    padding: 45px;
  }
  .hero h1 {
    font-size: 55px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  .logo {
    font-size: 18px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 25px;
  }
  .dj-layout {
    grid-template-columns: 1fr 1fr;
  }
  .mixer {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero-record {
    width: 220px;
    height: 220px;
  }
  .cards {
    gap: 10px;
  }
}
@media (max-width: 750px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    gap: 5px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .sidebar nav span {
    font-size: 10px;
  }
  .workspace {
    margin: 0;
  }
  header {
    padding: 17px 20px;
    height: 75px;
  }
  main {
    padding: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero-art {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .stat .value {
    font-size: 21px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .feature-card {
    display: grid;
    grid-template-columns: 110px 1fr;
  }
  .feature-art {
    height: 100%;
  }
  .feature-body {
    padding: 15px;
  }
  .feature-body p {
    min-height: 0;
    margin: 4px 0;
  }
  .split,
  .form-grid,
  .settings-grid,
  .dj-layout {
    grid-template-columns: 1fr;
  }
  .mixer {
    grid-column: auto;
    grid-row: auto;
  }
  .header-actions {
    gap: 8px;
  }
  .badge {
    font-size: 7px;
  }
  footer {
    padding: 20px;
    font-size: 8px;
    gap: 12px;
  }
  .page-title {
    font-size: 28px;
  }
  .step {
    min-width: 24px;
  }
  .step-row span {
    min-width: 65px;
  }
  .hero h1 {
    font-size: 38px;
  }
}

.bars i:nth-child(3n) {
  height: 55px;
}
.bars i:nth-child(3n + 1) {
  height: 26px;
}
.bars i:nth-child(3n + 2) {
  height: 40px;
}
.chart-art i:nth-child(1) {
  height: 28px;
}
.chart-art i:nth-child(2) {
  height: 46px;
}
.chart-art i:nth-child(3) {
  height: 68px;
}
.chart-art i:nth-child(4) {
  height: 40px;
}
.chart-art i:nth-child(5) {
  height: 55px;
}
.panel + .panel {
  margin-top: 20px;
}

/* ETHERICAL local-only DJ and Studio shell. */
.local-only .workspace {
  margin-left: 0;
  max-width: 1600px;
  margin-inline: auto;
}
.local-only header {
  gap: 24px;
  position: sticky;
  top: 0;
  background: #141617;
  z-index: 5;
}
.top-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.top-nav a {
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.top-nav a.active {
  background: #283223;
  border-color: #405635;
  color: var(--lime);
}
.local-only .view-heading {
  margin-bottom: 24px;
}
.local-only .studio-transport {
  top: 94px;
}
@media (max-width: 750px) {
  .local-only header {
    gap: 10px;
  }
  .local-only header > .badge {
    display: none;
  }
  .top-nav {
    gap: 4px;
  }
  .top-nav a {
    padding: 10px 14px;
  }
  .local-only .studio-transport {
    position: static;
  }
  .local-only .logo {
    font-size: 19px;
  }
}

.chart-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.75fr);gap:24px;align-items:start}.chart-player{position:sticky;top:112px}.chart-selection{margin-top:0}.chart-list .song-row{padding:20px 0}.chart-list .song-info small{display:block;margin-top:5px}.chart-list .rank{width:45px}.chart-list button{font-size:11px}.chart-list>.muted{font-size:10px;margin-top:24px}.published-stats{margin:24px 0}.publish-dialog{width:min(520px,95vw)}.publish-dialog label.inline{line-height:1.5}.chart-list .song-info{min-width:120px}@media(max-width:800px){.chart-layout{grid-template-columns:1fr}.chart-player{position:static;max-width:500px;width:100%;margin:auto}.chart-list .song-row button{padding:8px}.local-only .top-nav a{padding:10px}.local-only header{gap:8px}.local-only header>.badge{display:none}}
