:root {
  color-scheme:dark;
  --bg:#151c22;
  --surface:#1c242b;
  --ink:#e7e2d6;
  --muted:#a6aaa8;
  --line:#ffffff20;
  --green:#c9b889;
  --soft:#283239;
  --scene:155;
  --record-color:#2d7b65
}

body {
  background:radial-gradient(ellipse at 75% 25%,hsl(var(--scene) 22% 19% / .65),transparent 65%),#151c22;
  min-height:100vh
}

.site-header {
  background:transparent;
  border-bottom:1px solid var(--line);
  max-width:1440px;
  margin:auto;
  padding:24px 40px
}
.brand {
  color:var(--ink)
}
.brand-mark i {
  background:#c9b889
}
.version {
  color:#c9b889;
  background:transparent;
  border-left:1px solid var(--line);
  border-radius:0
}
.page-shell {
  max-width:1360px;
  padding:0 48px;
  margin:auto
}
.intro {
  margin:42px 0 16px
}
.intro h1 {
  font-family:Georgia,"Songti SC","SimSun",serif;
  font-weight:400;
  font-size:clamp(32px,4vw,54px);
  letter-spacing:.06em
}
.intro h1 span {
  color:#c9b889
}
.intro-description {
  color:var(--muted);
  font-size:13px
}
.eyebrow,.section-kicker {
  color:#c9b889;
  letter-spacing:.16em;
  font-size:10px
}
.intro-note {
  display:none
}
.workspace {
  display:grid;
  grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr);
  gap:7%;
  align-items:center;
  margin-bottom:64px
}
.panel {
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0
}
.editor-panel {
  padding:10px 0;
  min-width:0
}
.editor-panel>.section-row {
  align-items:flex-start;
  flex-direction:column;
  gap:14px
}
.color-name {
  font:36px Georgia,"SimSun",serif;
  color:var(--ink);
  letter-spacing:.2em
}
.color-preview {
  height:76px;
  margin:18px 0 22px;
  border:8px solid #bcbcbc;
  border-radius:1px
}
.preview-label {
  font-size:8px;
  letter-spacing:.12em;
  left:12px;
  top:9px
}
.color-preview #previewHex {
  font-size:18px;
  left:12px;
  bottom:10px
}
.color-preview #previewAlpha {
  font-size:10px;
  right:10px;
  bottom:12px
}
.hex-input-row {
  background:transparent;
  border:0;
  border-bottom:1px solid #c9b88970;
  border-radius:0
}
.hex-input-row input {
  color:var(--ink);
  font-size:clamp(22px,3vw,36px);
  background:transparent;
  padding-left:0;
  min-width:0
}
.hex-input-row .compact {
  background:#ffffff0a;
  color:var(--ink);
  font-size:12px
}
.hex-label-row {
  font-size:10px
}
.field-error:empty {
  margin:0;
  min-height:0
}
.fine-tune {
  border-bottom:1px solid var(--line);
  margin:14px 0 20px
}
.fine-tune>summary {
  padding:14px 0;
  cursor:pointer;
  font-size:12px
}
.fine-tune>summary span {
  float:right;
  color:var(--muted);
  font:10px var(--mono)
}
.fine-tune .sliders {
  margin-top:20px
}
.format-list>div {
  background:#ffffff06
}
.format-list code {
  color:var(--ink)
}
.button.primary {
  background:#c9b889;
  color:#192127;
  border:1px solid #c9b889
}
.button.secondary {
  background:transparent;
  color:var(--ink);
  border:1px solid var(--line)
}
.save-button {
  height:46px
}
.lab-link {
  display:block;
  text-align:center;
  margin-top:18px;
  font-size:12px;
  color:#d7c99f;
  text-underline-offset:5px
}
.local-note {
  font-size:10px;
  margin-top:16px
}
.text-button {
  color:#c9b889
}
.record-player {
  min-width:0;
  position:relative;
  padding:22px 24px 18px;
  background:linear-gradient(135deg,#ffffff04,#00000018);
  border:1px solid #ffffff12;
  border-radius:10px;
  box-shadow:0 25px 60px #00000025
}
.machine-top {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#a7a99e;
  font:8px var(--mono);
  letter-spacing:.14em
}
.turntable {
  position:relative;
  aspect-ratio:1.15;
  margin:16px 0 0
}
.hue-ring {
  position:absolute;
  width:83%;
  aspect-ratio:1;
  left:3%;
  top:3%;
  border-radius:50%;
  background:conic-gradient(#e37676,#dcbe77,#91bd78,#71c1b0,#778bd0,#b879b6,#e37676);
  box-shadow:0 0 0 5px #0e1418,0 0 0 6px #ffffff16,0 12px 35px #0008;
  cursor:crosshair;
  touch-action:none
}
.ring-indicator {
  position:absolute;
  inset:-7px;
  transform:rotate(calc(var(--scene) * 1deg));
  pointer-events:none
}
.ring-indicator:before {
  content:"";
  position:absolute;
  left:calc(50% - 5px);
  top:0;
  width:10px;
  height:27px;
  background:#fff1dc;
  border-radius:3px;
  box-shadow:0 0 0 2px #10191d,0 3px 6px #0008
}
.platter {
  position:absolute;
  width:76%;
  aspect-ratio:1;
  left:6.5%;
  top:7%;
  border-radius:50%;
  pointer-events:none;
  background:#111;
  border:7px solid #131719;
  box-shadow:0 0 0 2px #ffffff20,0 4px 14px #0009;
  overflow:hidden
}
.vinyl {
  width:100%;
  height:100%;
  border-radius:50%;
  background:repeating-radial-gradient(circle,transparent 0 2px,#ffffff0b 3px,transparent 4px),conic-gradient(from 35deg,#000a,#ffffff12,#000b,var(--record-color),#000a,#ffffff12,#000b,var(--record-color),#000a);
  animation:record-spin 24s linear infinite;
  animation-play-state:paused;
  display:grid;
  place-items:center
}
.is-playing .vinyl {
  animation-play-state:running
}
.record-label {
  width:37%;
  aspect-ratio:1;
  border-radius:50%;
  background:var(--record-color);
  border:1px solid #fff4;
  box-shadow:0 0 0 5px #0005;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:var(--label-ink,#fff);
  gap:9px;
  text-align:center
}
.record-label span {
  font:6px var(--mono);
  letter-spacing:.12em
}
.record-label strong {
  font:italic 24px Georgia,serif
}
.record-label i {
  width:12px;
  height:12px;
  border-radius:50%;
  background:#d4d6ce;
  border:4px solid #161e22
}
.tonearm {
  position:absolute;
  right:3%;
  top:0;
  width:17%;
  height:76%;
  transform-origin:50% 10%;
  transform:rotate(-15deg);
  transition:transform .9s cubic-bezier(.3,.1,.2,1);
  z-index:2;
  filter:drop-shadow(5px 8px 4px #0007)
}
.is-playing .tonearm {
  transform:rotate(17deg)
}
.arm-base {
  position:absolute;
  top:0;
  left:20%;
  width:60%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,#6d716d 0 12%,#232a2d 14% 27%,#9e9f92 29% 32%,#343d40 34% 55%,#131a1f 57%);
  box-shadow:0 0 0 1px #ffffff28
}
.arm-shaft {
  position:absolute;
  left:46%;
  top:9%;
  width:11%;
  height:72%;
  background:linear-gradient(90deg,#686f6f,#d5d5c6 45%,#888d85 65%,#343e40);
  border-radius:10px;
  transform:rotate(8deg);
  transform-origin:top
}
.arm-head {
  position:absolute;
  left:17%;
  top:77%;
  width:29%;
  height:15%;
  border-radius:3px;
  background:linear-gradient(90deg,#978c68,#d4c6a0,#978a65);
  transform:rotate(8deg);
  border-bottom:6px solid #182127
}
.disc-caption {
  position:absolute;
  bottom:1%;
  left:0;
  width:87%;
  text-align:center;
  font-size:10px;
  color:#adb0a5;
  letter-spacing:.12em
}
.machine-controls {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:18px;
  gap:16px
}
.play-sound {
  font-size:12px;
  padding:10px 0;
  color:#ded3b4
}
.play-sound>span:first-child {
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid #c9b88970;
  border-radius:50%;
  margin-right:8px;
  font-size:10px
}
#soundStatus {
  font-size:10px;
  color:var(--muted);
  max-width:240px;
  margin:5px 0
}
.volume-control {
  display:grid;
  grid-template-columns:42px 75px;
  gap:6px 10px;
  align-items:center
}
.volume-control label {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  font:8px var(--mono);
  color:#b4b3a7
}
.volume-knob {
  width:38px;
  height:38px;
  background:radial-gradient(circle at 35% 30%,#626964,#232e32 65%);
  border:1px solid #aaa68e;
  border-radius:50%;
  box-shadow:2px 4px 7px #0008;
  position:relative
}
.volume-knob i {
  position:absolute;
  inset:4px;
  transform:rotate(-65deg)
}
.volume-knob i:before {
  content:"";
  position:absolute;
  width:2px;
  height:7px;
  left:calc(50% - 1px);
  top:0;
  background:#e2d4a8
}
#volume {
  width:75px;
  accent-color:#c9b889
}
.tools-section {
  border-top:1px solid var(--line);
  padding-top:30px
}
.tools-title h2 {
  font:24px Georgia,"SimSun",serif;
  margin:12px 0 22px
}
.source-panel {
  padding:0
}
.source-heading {
  display:none
}
.tabs {
  max-width:530px;
  background:#ffffff05
}
.tabs button {
  color:#aeb2b0
}
.tabs button[aria-selected=true] {
  background:#c9b889;
  color:#172027;
  box-shadow:none
}
.drop-zone {
  background:#ffffff03;
  border:1px dashed #ffffff30
}
.empty-state h2,.screen-empty h2 {
  font-family:Georgia,"SimSun",serif;
  font-weight:400
}
.image-toolbar {
  background:transparent
}
.image-bottom,.sample-options {
  border-color:var(--line)
}
select {
  background:#263039;
  color:var(--ink);
  border-color:var(--line)
}
.history-section {
  border-top:1px solid var(--line);
  margin-top:20px
}
.history-chip {
  border-radius:50%
}
.collection-panel {
  margin-top:44px;
  padding:32px 0;
  border-top:1px solid var(--line)
}
.collection-heading h2 {
  font:26px Georgia,"SimSun",serif
}
.saved-list {
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:22px
}
.saved-card {
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible
}
.saved-color {
  padding:12px;
  width:100%
}
.color-strip {
  aspect-ratio:1;
  height:auto;
  border-radius:50%;
  box-shadow:0 0 0 5px #080e11,0 0 0 6px #ffffff20;
  position:relative;
  overflow:hidden
}
.color-strip:after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:repeating-radial-gradient(circle,transparent 0 4px,#0002 5px,transparent 6px);
  border:30px solid #0003
}
.color-strip:before {
  content:"";
  position:absolute;
  z-index:1;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#1b2429;
  top:calc(50% - 6px);
  left:calc(50% - 6px);
  border:2px solid #fff8
}
.color-caption {
  color:var(--ink);
  text-align:center;
  padding-top:15px;
  font-size:12px
}
.delete-color {
  background:#273139;
  color:#ddd;
  border:1px solid var(--line)
}
.saved-empty {
  background:transparent;
  border:1px dashed var(--line)
}
.collection-footnote,.site-footer {
  color:var(--muted)
}
.site-footer {
  border-top:1px solid var(--line)
}
dialog {
  background:#20292f;
  color:var(--ink);
  border:1px solid #ffffff30
}
dialog p,dialog li {
  color:#bcc0bd
}
dialog input {
  background:#121a1f;
  color:var(--ink)
}
.toast {
  background:#e4dcc6;
  color:#182127
}
.notice {
  background:#403e2d;
  color:#efe2b6
}
.mobile-dock {
  background:#1a242bf5;
  border-top:1px solid var(--line)
}
.mobile-dock code {
  color:var(--ink)
}
:focus-visible {
  outline:2px solid #ecd5a0
}
.screen-empty {
  background:transparent
}
.screen-illustration {
  opacity:.7
}
.fine-tune .format-list {
  margin-top:16px
}
.section-row .count,.count {
  background:#ffffff12;
  color:#d1c4a3
}

@keyframes record-spin {
  to {
  transform:rotate(360deg)
}

}

@media(min-width:1100px) {
  .intro {
  max-width:65%
}
.record-player {
  margin-top:-85px
}
.workspace {
  min-height:520px
}
.editor-panel {
  max-width:370px
}

}

@media(max-width:800px) {
  .site-header {
  padding:18px 22px
}
.header-meta {
  font-size:0
}
.header-meta button {
  font-size:11px
}
.page-shell {
  padding:0 24px
}
.workspace {
  grid-template-columns:1fr;
  gap:25px
}
.record-player {
  grid-row:1;
  margin-top:0;
  max-width:580px;
  width:100%;
  justify-self:center
}
.editor-panel {
  max-width:580px;
  width:100%;
  justify-self:center
}
.intro {
  margin-top:30px
}
.intro h1 {
  font-size:36px
}
.intro-description {
  max-width:290px;
  line-height:1.8
}
.color-name {
  font-size:28px
}
.editor-panel>.section-row {
  flex-direction:row;
  align-items:center
}
.color-preview {
  height:70px
}
.saved-list {
  grid-template-columns:repeat(auto-fill,minmax(115px,1fr))
}
.collection-heading {
  align-items:flex-start
}
.intro .eyebrow {
  font-size:9px
}
.site-footer {
  margin-bottom:90px
}
.machine-top {
  font-size:7px
}
.record-label strong {
  font-size:20px
}

}

@media(max-width:420px) {
  .page-shell {
  padding:0 18px
}
.record-player {
  padding:18px 13px
}
.machine-top {
  letter-spacing:0
}
.record-label span {
  font-size:5px
}
.record-label {
  gap:5px
}
.record-label strong {
  font-size:18px
}
.volume-control {
  grid-template-columns:32px 60px;
  gap:6px
}
.volume-knob {
  width:30px;
  height:30px
}
#volume {
  width:60px
}
.play-sound {
  font-size:11px
}
.machine-controls {
  gap:8px
}
.disc-caption {
  font-size:8px
}
.brand .version {
  font-size:8px
}
.collection-actions {
  gap:8px
}
.header-meta .status-dot {
  display:none
}

}

@media(prefers-reduced-motion:reduce) {
  .vinyl {
  animation:none!important
}
.tonearm {
  transition:none
}
html {
  scroll-behavior:auto
}

}


.color-preview #previewAlpha {
  left:auto
}
.color-name {
  background:none;
  padding:0
}
.disc-caption {
  bottom:-3%
}
.machine-controls {
  margin-top:14px
}
.volume-knob {
  touch-action:none;
  cursor:ns-resize
}


.intro { padding: 18px 0 24px; }
@media (max-width: 800px) {
  .intro { padding: 8px 0 16px; margin-top: 24px; }
  .intro h1 { font-size: 30px; letter-spacing: .02em; }
  .intro h1 span { white-space: nowrap; }
}
