/* Operator studio. Same night sky, firelight, and clay as the scene, tuned for dense controls. */
:root {
  --panel-top: #242a6c; --panel-low: #161a4b; --line: rgba(196, 187, 232, .14); --muted: #a9a2d2; --text: var(--cream);
  --well: #0a0d2b; --edge: #070920;
  --slab: inset 0 2px 0 rgba(206, 198, 255, .2), inset 0 -4px 6px rgba(5, 6, 28, .45), 0 6px 0 var(--edge), 0 20px 34px rgba(3, 3, 16, .45);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night-900); color: var(--text); font: 400 14.5px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; display: block; }
p { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 244px; padding: 28px 18px 22px; display: flex; flex-direction: column;
  background: url('/assets/pines-far.svg') center bottom / 620px 88px repeat-x, linear-gradient(180deg, #080a20, #0c0f30 55%, #141a44);
  box-shadow: inset -2px 0 0 rgba(196, 187, 232, .08);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand img { width: 42px; height: auto; filter: drop-shadow(0 4px 6px rgba(3, 3, 16, .6)); }
.brand .clay-type { font-size: 21px; line-height: 1; white-space: nowrap; }
.brand small { display: block; margin-top: 7px; font: 700 10px/1 var(--body); letter-spacing: .17em; text-transform: uppercase; color: var(--tent); }
.nav-label { margin: 40px 12px 12px; font-size: 11px; font-weight: 700; letter-spacing: .17em; color: #7f79ad; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px 12px; border: 0; border-radius: 15px 13px 16px 14px / 14px 16px 13px 15px;
  background: transparent; color: var(--muted); text-align: left; font-size: 14.5px; font-weight: 600; transition: background .15s, color .15s;
}
.nav-item:hover { color: var(--text); background: rgba(196, 187, 232, .08); }
.nav-item.active {
  color: #3d1707; background: var(--grain) 0 0 / 128px, linear-gradient(175deg, #ffbb55, #f4831f 72%);
  box-shadow: inset 0 2px 0 rgba(255, 240, 200, .7), inset 0 -3px 4px rgba(150, 60, 0, .35), 0 4px 0 #8a3a0c, 0 10px 16px rgba(4, 3, 18, .45);
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-dot { display: none; }
.sidebar-bottom { margin-top: auto; padding-bottom: 54px; }
.camp-note { display: flex; align-items: flex-end; gap: 12px; padding: 0 8px 18px; color: var(--muted); }
.camp-note img { width: 46px; height: auto; flex: none; filter: drop-shadow(0 0 16px rgba(254, 165, 41, .55)); }
.camp-note p { font-size: 12.5px; line-height: 1.5; }
.sidebar-status { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 13px; font-size: 13px; font-weight: 600; color: #c8e6b6; background: rgba(47, 93, 74, .38); box-shadow: inset 0 0 0 1.5px rgba(141, 180, 135, .25); }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #9fe08f; box-shadow: 0 0 10px #6fce6a; }
.operator-button { width: 100%; margin-top: 14px; padding: 8px 6px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 13px; background: none; text-align: left; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.operator-button:hover { background: rgba(196, 187, 232, .08); }
.operator-avatar, .small-avatar, .camper-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #4a1f0e;
  font: 800 15px/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1;
  background: radial-gradient(circle at 35% 28%, #fff0b8, #fcd96b 50%, #eb9f30); box-shadow: inset 0 -2px 3px rgba(150, 70, 10, .5), 0 3px 0 var(--edge);
}
.operator-button small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.operator-button > span:last-child { margin-left: auto; color: #7f79ad; }

/* Shell */
.main { position: relative; margin-left: 244px; min-height: 100vh; background: radial-gradient(ellipse 70% 380px at 55% -140px, rgba(98, 83, 160, .5), transparent 70%); }
.main::before { content: ''; position: absolute; inset: 0 0 auto; height: 300px; pointer-events: none; background: url('/assets/stars.svg') 0 0 / 640px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); opacity: .7; }
.topbar { position: relative; height: 66px; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed var(--line); font-size: 13.5px; }
.breadcrumb { display: flex; gap: 12px; color: var(--muted); }
.breadcrumb strong { color: var(--text); font-weight: 600; }
.breadcrumb > span { color: #5d5890; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.timezone { font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 11px; background: rgba(196, 187, 232, .08); color: var(--dusk-200); transition: background .15s, color .15s; }
.icon-button:hover { background: rgba(196, 187, 232, .16); color: var(--text); }
.small-avatar { width: 32px; height: 32px; font-size: 14px; }
.workspace { position: relative; max-width: 1560px; margin: auto; padding: 34px 38px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { font-size: 11.5px; line-height: 1.5; font-weight: 700; letter-spacing: .17em; color: var(--tent); }
.page-heading h1 { margin: 8px 0 8px; font-size: 42px; line-height: 1.05; text-shadow: 0 3px 0 #1c1548; }
.page-heading p { font-size: 15.5px; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.mode-badge { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #ffe9a8; background: rgba(252, 217, 107, .12); box-shadow: inset 0 0 0 1.5px rgba(252, 217, 107, .32); }
.mode-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--ember); }
.mode-badge[data-mode='live'] { color: #ffd0c8; background: rgba(210, 70, 58, .16); box-shadow: inset 0 0 0 1.5px rgba(240, 110, 96, .4); }
.mode-badge[data-mode='live']::before { background: #ff6a55; box-shadow: 0 0 10px var(--berry); }

/* Clay buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px 11px; border: 0;
  border-radius: 14px 12px 15px 13px / 13px 15px 12px 14px; font-size: 14px; line-height: 1.3; font-weight: 700; white-space: nowrap; color: var(--text);
  background: var(--grain) 0 0 / 128px, linear-gradient(175deg, #454aa3, #2a2e78 75%);
  box-shadow: inset 0 2px 0 rgba(206, 198, 255, .32), inset 0 -3px 4px rgba(5, 6, 28, .5), 0 4px 0 var(--edge), 0 9px 14px rgba(3, 3, 16, .4);
  transition: transform .1s ease-out, box-shadow .1s ease-out, filter .15s;
}
.button:hover { filter: brightness(1.1); }
.button:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(206, 198, 255, .32), inset 0 -3px 4px rgba(5, 6, 28, .5), 0 1px 0 var(--edge), 0 3px 6px rgba(3, 3, 16, .4); }
.button svg { width: 16px; height: 16px; }
.button.primary { color: #3d1707; background: var(--grain) 0 0 / 128px, linear-gradient(175deg, #ffbb55, #f4831f 72%); box-shadow: inset 0 2px 0 rgba(255, 240, 200, .7), inset 0 -3px 4px rgba(150, 60, 0, .35), 0 4px 0 #8a3a0c, 0 9px 14px rgba(3, 3, 16, .4); }
.button.primary:active { box-shadow: inset 0 2px 0 rgba(255, 240, 200, .7), inset 0 -3px 4px rgba(150, 60, 0, .35), 0 1px 0 #8a3a0c, 0 3px 6px rgba(3, 3, 16, .4); }
.button.amber { color: #4a1f0e; background: var(--grain) 0 0 / 128px, linear-gradient(175deg, #ffec9e, #f3bd45 76%); box-shadow: inset 0 2px 0 rgba(255, 252, 226, .8), inset 0 -3px 4px rgba(150, 90, 0, .3), 0 4px 0 #94640c, 0 9px 14px rgba(3, 3, 16, .4); }
.button.amber:active { box-shadow: inset 0 2px 0 rgba(255, 252, 226, .8), inset 0 -3px 4px rgba(150, 90, 0, .3), 0 1px 0 #94640c, 0 3px 6px rgba(3, 3, 16, .4); }
.button.ghost { background: rgba(196, 187, 232, .08); box-shadow: inset 0 0 0 1.5px rgba(196, 187, 232, .28); }
.button.ghost:active { box-shadow: inset 0 0 0 1.5px rgba(196, 187, 232, .28); transform: translateY(1px); }
.button.small { padding: 8px 12px 9px; font-size: 13px; border-radius: 11px 10px 12px 10px; }
.button.small svg { width: 14px; height: 14px; }
.button.danger { color: #ffd0c8; background: rgba(210, 70, 58, .18); box-shadow: inset 0 0 0 1.5px rgba(240, 110, 96, .4); }

/* Clay slabs */
.panel, .health-card, .stat-card {
  background: var(--grain) 0 0 / 128px, linear-gradient(172deg, var(--panel-top), var(--panel-low) 70%);
  border-radius: 26px 23px 28px 24px / 24px 28px 23px 26px; box-shadow: var(--slab);
}
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.preview-card {
  align-self: start; padding: 0 12px; border-radius: 30px 27px 32px 28px / 28px 32px 27px 30px;
  background: var(--grain) 0 0 / 128px, linear-gradient(172deg, #c9662f, #8c3b1a 58%, #6f2c13);
  box-shadow: inset 0 3px 0 rgba(255, 214, 170, .5), inset 0 -6px 8px rgba(45, 12, 0, .5), 0 7px 0 #3a1506, 0 24px 40px rgba(3, 3, 16, .5);
}
.card-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 8px 12px; color: #ffe7c9; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; }
.card-title svg { width: 17px; height: 17px; }
.pill { display: flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #ffe7c9; background: rgba(43, 14, 5, .5); box-shadow: inset 0 2px 3px rgba(20, 5, 0, .6); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 8px var(--ember); }
.preview-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #0a0c24; box-shadow: 0 0 0 3px #3a1506, 0 2px 0 4px rgba(255, 214, 170, .3); }
.preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.preview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 13px 8px; font-size: 13px; font-weight: 500; color: #ffd9ae; }
.preview-bottom > div { display: flex; align-items: center; gap: 8px; }
.preview-bottom svg { width: 15px; height: 15px; }
.preview-controls button { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--cream); background: rgba(43, 14, 5, .55); box-shadow: inset 0 2px 4px rgba(20, 5, 0, .65), 0 1px 0 rgba(255, 214, 170, .28); transition: background .15s; }
.preview-controls button:hover { background: rgba(43, 14, 5, .8); }

.health-card { display: flex; flex-direction: column; gap: 15px; padding: 22px 22px 24px; }
.health-heading { display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; font-weight: 700; }
.health-heading svg { color: var(--tent); }
.health-banner { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 15px; background: rgba(47, 93, 74, .42); box-shadow: inset 0 0 0 1.5px rgba(141, 180, 135, .25); }
.health-banner > span { margin-top: 2px; color: #9fe08f; }
.health-banner svg { width: 16px; height: 16px; }
.health-banner strong { display: block; font-size: 14px; font-weight: 700; color: #e2f5d6; }
.health-banner p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: #b9d8ae; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.health-row strong { font-weight: 600; color: var(--text); }
#renderer-status { display: inline-block; }
#renderer-status::first-letter, .platform-state::first-letter { text-transform: uppercase; }
.health-divider { height: 0; border-top: 2px dashed var(--line); }
.platform-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.platform-row > span:nth-child(2) { flex: 1; }
.platform-icon { color: var(--dusk-200); }
.platform-state { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(196, 187, 232, .1); }
.platform-state[data-state='online'] { color: #c8f0b8; background: rgba(79, 131, 104, .45); }
.platform-state[data-state='starting'], .platform-state[data-state='reconnecting'] { color: #ffe9a8; background: rgba(252, 217, 107, .16); }
.platform-state[data-state='needs attention'], .platform-state[data-state='stale'] { color: #ffd0c8; background: rgba(210, 70, 58, .22); }
.health-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.health-footer svg { width: 15px; height: 15px; flex: none; color: var(--dusk-300); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.stat-card { padding: 18px 20px 20px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stat-label svg { width: 38px; height: 38px; padding: 10px; flex: none; border-radius: 50%; color: #4a1f0e; background: radial-gradient(circle at 35% 28%, #fff0b8, #fcd96b 50%, #eb9f30); box-shadow: inset 0 -2px 3px rgba(150, 70, 10, .5), 0 3px 0 var(--edge); }
.stat-card:nth-child(1) .stat-label svg { color: #e2f5d6; background: radial-gradient(circle at 35% 28%, #7fb894, #3f7860 55%, #1f4a3c); box-shadow: inset 0 -2px 3px rgba(4, 22, 18, .6), 0 3px 0 var(--edge); }
.stat-card:nth-child(2) .stat-label svg { color: #3d1707; background: radial-gradient(circle at 35% 28%, #ffd28a, #f4831f 58%, #c4581a); box-shadow: inset 0 -2px 3px rgba(120, 40, 0, .5), 0 3px 0 var(--edge); }
.stat-card:nth-child(4) .stat-label svg { color: #ffe7c9; background: radial-gradient(circle at 35% 28%, #e3935a, #a8481f 58%, #7a3319); box-shadow: inset 0 -2px 3px rgba(45, 12, 0, .6), 0 3px 0 var(--edge); }
.stat-value { margin: 4px 0 4px; font: 800 38px/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.02em; }
.stat-value small { margin-left: 7px; font: 700 13px/1 var(--body); letter-spacing: .04em; color: var(--dusk-200); }
.stat-note { font-size: 13px; color: var(--muted); }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.panel { padding: 22px 24px 24px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.panel-title > svg { color: var(--tent); }
.text-button { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--tent); }
.text-button:hover { color: var(--flame); }
.text-button svg { width: 14px; height: 14px; }
.empty-state { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 14.5px; font-weight: 600; }
.empty-state p { margin-top: 3px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; color: #4a1f0e; background: radial-gradient(circle at 35% 28%, #fff0b8, #fcd96b 50%, #eb9f30); box-shadow: inset 0 -2px 3px rgba(150, 70, 10, .5), 0 3px 0 var(--edge); }
.empty-icon svg { width: 21px; height: 21px; }
.drop-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 2px dashed var(--line); }
.drop-row:last-child { border: 0; }
.drop-person { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.drop-person small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.drop-amount { text-align: right; font-size: 14.5px; font-weight: 700; color: var(--flame); }
.drop-amount small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.small-description { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Mixer */
.audio-mini label { display: flex; justify-content: space-between; margin: 16px 0 6px; font-size: 13.5px; font-weight: 600; }
.audio-mini label span { color: var(--flame); font-weight: 700; }
.audio-mini input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.audio-mini input::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: var(--well); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(206, 198, 255, .2); }
.audio-mini input::-moz-range-track { height: 10px; border-radius: 99px; background: var(--well); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(206, 198, 255, .2); }
.audio-mini input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -7px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffd28a, #f4831f 58%, #c4581a); box-shadow: inset 0 -2px 3px rgba(120, 40, 0, .5), 0 3px 0 #5a2409, 0 6px 8px rgba(0, 0, 0, .4); }
.audio-mini input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffd28a, #f4831f 58%, #c4581a); box-shadow: inset 0 -2px 3px rgba(120, 40, 0, .5), 0 3px 0 #5a2409, 0 6px 8px rgba(0, 0, 0, .4); }
.audio-mini input:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 99px; }
.audio-source { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.audio-source svg { width: 15px; height: 15px; flex: none; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; padding: 20px 0 26px; border-top: 2px dashed var(--line); font-size: 13px; color: #8a84ba; }
.footer > span:first-child { display: flex; align-items: center; gap: 9px; }
.footer img { width: 22px; height: auto; }

/* Settings, forms, tables */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-grid .panel { align-self: start; }
.settings-grid h2, .content-heading { margin: 0 0 6px; font-size: 23px; line-height: 1.15; }
.settings-grid p { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.settings-grid .empty-state p { margin: 3px 0 0; }
.settings-grid section > .button { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--dusk-200); }
.field input, .field select, .field textarea, dialog input {
  display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 13px; border: 0; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; color: var(--text); background: var(--well);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(196, 187, 232, .18); transition: box-shadow .15s;
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 38px; background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4bbe8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus, dialog input:focus { outline: 0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 0 0 2.5px var(--tent); }
.field input::placeholder, .field textarea::placeholder { color: #6b6699; font-weight: 400; }
.field textarea { resize: vertical; min-height: 80px; }
.field small { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: #8f89bd; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.config-note { font-size: 13px; line-height: 1.6; color: #8f89bd; }
.activity-list { display: flex; flex-direction: column; max-height: 520px; overflow: auto; }
.log-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 2px dashed var(--line); font-size: 13.5px; }
.log-row time { flex: none; font: 500 12.5px/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #8f89bd; }
.log-kind { min-width: 92px; flex: none; }
.log-kind, .badge { align-self: flex-start; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; text-align: center; color: #c8f0b8; background: rgba(79, 131, 104, .4); }
.log-message { line-height: 1.6; word-break: break-word; color: var(--dusk-200); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 10px 12px 10px 0; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8f89bd; border-bottom: 2px dashed var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 2px dashed var(--line); color: var(--dusk-200); }
td:first-child { font-weight: 600; color: var(--text); }
.address { max-width: 300px; overflow: hidden; text-overflow: ellipsis; font: 500 12.5px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--dusk-200); }
.badge { display: inline-block; }
.badge.inactive { color: #ffd9ae; background: rgba(168, 72, 31, .4); }
.section-gap { margin-top: 24px; }
.settings-grid h2.section-gap { margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--line); }
.wide-panel { max-width: 100%; }
.note-strip { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 14px 18px; border-radius: 16px; font-size: 13.5px; line-height: 1.6; color: #ffe9a8; background: rgba(252, 217, 107, .1); box-shadow: inset 0 0 0 1.5px rgba(252, 217, 107, .28); }
.note-strip svg { flex: none; margin-top: 2px; }
.music-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.music-item > span:nth-child(2) { color: var(--tent); }
.music-item strong { font-size: 14.5px; font-weight: 600; }
.music-item small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.track-number { min-width: 22px; font: 800 15px/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: #8f89bd; }
.wallet-heading { display: flex; align-items: center; justify-content: space-between; }
.wallet-heading h2 { margin: 0; }
.balance-big { margin: 18px 0 6px; font: 900 54px/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.02em; color: var(--flame); text-shadow: 0 3px 0 #1c1548; }
.balance-big small { font: 700 16px/1 var(--body); letter-spacing: .04em; color: var(--dusk-200); text-shadow: none; }
.wallet-address { padding: 11px 14px; border-radius: 12px; overflow-wrap: anywhere; font: 500 12.5px/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--dusk-200); background: var(--well); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(196, 187, 232, .18); }
.wallet-qr { display: block; width: 148px; margin: 20px 4px 8px; border-radius: 14px; transform: rotate(-2deg); box-shadow: 0 0 0 4px #f1d6a4, 0 6px 0 4px var(--edge), 0 16px 22px rgba(3, 3, 16, .5); }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.upload-area { margin: 18px 0 0; padding: 22px; border: 2px dashed rgba(196, 187, 232, .32); border-radius: 18px; text-align: center; font-size: 14.5px; font-weight: 600; background: rgba(10, 13, 43, .4); }
.upload-area input { display: block; max-width: 100%; margin: 14px auto 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.upload-area input::file-selector-button { margin-right: 12px; padding: 8px 13px; border: 0; border-radius: 10px; font: 700 13px/1.3 var(--body); color: var(--text); background: linear-gradient(175deg, #454aa3, #2a2e78 75%); box-shadow: inset 0 2px 0 rgba(206, 198, 255, .32), 0 3px 0 var(--edge); cursor: pointer; }
.upload-area small { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: #8f89bd; }

/* Sign in */
dialog { width: min(400px, calc(100vw - 32px)); padding: 34px 32px 30px; border: 0; border-radius: 30px 27px 32px 28px / 28px 32px 27px 30px; color: var(--text); background: var(--grain) 0 0 / 128px, linear-gradient(172deg, #2a3078, #171b4e 70%); box-shadow: inset 0 2px 0 rgba(206, 198, 255, .25), inset 0 -5px 7px rgba(5, 6, 28, .5), 0 8px 0 var(--edge), 0 30px 80px rgba(0, 0, 0, .7); overflow: visible; }
dialog::backdrop { background: rgba(5, 6, 24, .78); backdrop-filter: blur(6px); }
.dialog-art { position: absolute; top: -64px; right: 70px; width: 64px; height: auto; filter: drop-shadow(0 0 26px rgba(254, 165, 41, .6)); pointer-events: none; }
dialog h2 { margin: 8px 0 8px; font-size: 36px; line-height: 1.05; }
dialog p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
dialog label { display: block; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--dusk-200); }
dialog .button { width: 100%; margin-top: 8px; padding: 13px 16px 14px; font-size: 15px; }
.dialog-close { position: absolute; right: 16px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(196, 187, 232, .1); font-size: 22px; line-height: 1; color: var(--dusk-200); }
.dialog-close:hover { background: rgba(196, 187, 232, .2); }
dialog .field-error { min-height: 22px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #ffb4a6; }
.toast {
  position: fixed; z-index: 20; bottom: 28px; left: calc(50% + 122px); max-width: 80%; padding: 13px 22px 14px; border-radius: 16px 14px 17px 15px;
  font-size: 14.5px; font-weight: 600; color: var(--cream); background: var(--grain) 0 0 / 128px, linear-gradient(172deg, #c9662f, #8c3b1a 70%);
  box-shadow: inset 0 2px 0 rgba(255, 214, 170, .5), inset 0 -3px 4px rgba(45, 12, 0, .5), 0 5px 0 #3a1506, 0 16px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transform: translate(-50%, 18px) rotate(-1.5deg); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.5, .4, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(0); }

@media (min-width: 1700px) { .preview-frame { max-height: 640px; } }
@media (max-width: 1250px) {
  .sidebar { width: 208px; padding: 24px 14px 20px; }
  .brand .clay-type { font-size: 20px; }
  .brand img { width: 36px; }
  .main { margin-left: 208px; }
  .workspace { padding: 28px 26px 0; }
  .topbar { padding: 0 26px; }
  .studio-grid, .lower-grid { grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; }
  .health-card { padding: 18px; gap: 13px; }
  .page-heading h1 { font-size: 36px; }
  .stats-grid { gap: 14px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 32px; }
  .toast { left: calc(50% + 104px); }
}
@media (max-width: 1000px) {
  .studio-grid, .lower-grid, .settings-grid { grid-template-columns: 1fr; }
  .health-card { display: grid; grid-template-columns: 1fr 1fr; }
  .health-heading, .health-banner, .health-card .button { grid-column: 1 / -1; }
  .health-divider { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-direction: column; align-items: flex-end; }
  .timezone { display: none; }
}
@media (max-width: 680px) {
  .sidebar { position: relative; inset: auto; width: 100%; padding: 16px 16px 12px; gap: 14px; background: linear-gradient(180deg, #080a20, #0c0f30); box-shadow: inset 0 -2px 0 rgba(196, 187, 232, .08); }
  .nav-label, .sidebar-bottom { display: none; }
  .sidebar nav { flex-direction: row; gap: 4px; overflow-x: auto; }
  .nav-item { flex: 1; flex-direction: column; gap: 5px; padding: 9px 8px 10px; font-size: 11.5px; }
  .main { margin: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  .workspace { padding: 22px 16px 0; }
  .page-heading { flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 31px; }
  .page-heading p { font-size: 14.5px; }
  .heading-actions { flex-direction: row; align-items: center; }
  .preview-card { padding: 0 8px; }
  .preview-bottom { flex-wrap: wrap; }
  .stats-grid { gap: 12px; margin: 20px 0; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 12.5px; }
  .stat-label svg { width: 32px; height: 32px; padding: 8px; }
  .health-card { display: flex; }
  .panel { padding: 18px 18px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .log-row { flex-wrap: wrap; gap: 6px 10px; }
  .log-message { flex-basis: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .toast { left: 50%; max-width: 92%; width: max-content; }
  .dialog-art { width: 52px; top: -52px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
