/* Concept-only instrument workspace; keep measurement geometry in grading.css. */
body.studio {
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --text: #e8e9e7; --ink: #e8e9e7; --muted: #a2a7a7; --soft: #a2a7a7;
  --gold: #c9a563; --gold-deep: #dfbf80; --line: #303536;
  --paper: #08090a; --cream: #1b2021;
  color: var(--text); background: #08090a; color-scheme: dark;
}
.studio .top { font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; background: #000000f5; border-bottom-color: #ffffff16; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.studio .links a, .studio .icon-btn { color: var(--muted); }
.studio .links a:hover, .studio .links a[aria-current], .studio .menu-panel a[aria-current] { color: var(--gold-deep); }
.studio .links a[aria-current] { box-shadow: 0 1px var(--gold); }
.studio .menu-panel { background: #08090af5; border-color: #ffffff20; }
.studio .menu-panel a:hover, .studio .icon-btn:hover { background: #292f30; }
.studio footer { background: #000; }
.studio .skip { background: #e8e9e7; color: #111; }
.studio-band .overlay, .studio-band .guides { --gold: #c9a563; }
.studio-band { padding-bottom: 48px; background: radial-gradient(ellipse at 12% 20%, #3d474c33, transparent 45%), radial-gradient(ellipse at 85% 65%, #39414426, transparent 50%), #050607; }
.studio-band .lab-page, .studio-band .lab-detail-dialog { --lab-rim: #343a3b; --lab-glass: linear-gradient(145deg, #ffffff03, transparent); --lab-control: linear-gradient(#ffffff04, transparent); --lab-shadow: 0 8px 24px -18px #000; }
.studio-band .lab-page { padding-top: 36px; }
.studio-band .lab-hero { max-width: 1240px; margin: 0 auto 24px; gap: 20px 32px; padding-bottom: 24px; border-bottom: 1px solid #ffffff14; }
.studio-band .lab-hero h1 { margin: 12px 0; font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif; font-size: clamp(44px, 5.6vw, 76px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.studio-band .lab-heading > p:not(.eyebrow) { max-width: 56ch; }
.studio-band .eyebrow { padding: 0; border: 0; border-radius: 0; background: none; color: var(--gold-deep); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.studio-band h2 { color: var(--text); font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.studio-band h3 { color: var(--text); font-size: 15px; }
.studio-band a { color: var(--gold); }
.studio-band .panel, .studio-band .side, .studio-band .saved-item, .studio-band .lab-detail-dialog { background: linear-gradient(145deg, #ffffff0c, transparent 32%, #ffffff02 75%, #ffffff05), #050709c2; border: 1px solid #ffffff24; border-top-color: #ffffff38; border-radius: 16px; box-shadow: inset 0 1px #ffffff0d, inset 0 -1px #ffffff04, 0 20px 55px -25px #000; backdrop-filter: blur(28px) saturate(.6); -webkit-backdrop-filter: blur(28px) saturate(.6); }
.studio-band .lab-process, .studio-band .side-tabs, .studio-band .region-toggle, .studio-band .report-nav, .studio-band .view-toggle { background: #121617; border-color: var(--line); border-radius: 8px; box-shadow: none; }
.studio-band .lab-page .btn, .studio-band .lab-detail-dialog button { background: #272d2e; border-color: #485051; color: var(--text); border-radius: 7px; box-shadow: inset 0 1px #ffffff06; }
.studio-band .lab-page .btn-gold { background: linear-gradient(#d7b77b, #bd9753); color: #17120a; border-color: var(--gold); font-weight: 600; }
.studio-band .lab-page .btn:hover:not(:disabled), .studio-band .lab-detail-dialog button:hover:not(:disabled) { background: #343c3d; border-color: #7c898a; }
.studio-band .lab-page .btn-gold:hover:not(:disabled) { background: #dfbf80; border-color: #edcf96; }
.studio-band .side-tabs .btn[aria-selected=true], .studio-band .region-toggle button[aria-selected=true], .studio-band .report-nav button[aria-pressed=true], .studio-band .view-toggle input:checked+span, .studio-band .detail-tabs button[aria-selected=true] { color: var(--gold-deep); background: #2a2419; border-color: #aa874c; box-shadow: none; }
.studio-band .detail-tabs button { background: #121617; color: var(--muted); }
.studio-band .lab-session { min-width: 260px; }
.studio-band .lab-session > .actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio-band .lab-session #lab-next { grid-column: 1 / -1; min-height: 48px; }
.studio-band .lab-session .link-button { justify-content: center; font-size: 12px; color: var(--muted); }
.studio-band .lab-process { padding: 5px; gap: 5px; margin-top: 0; }
.studio-band .lab-process > span { padding: 12px 16px; border-radius: 5px; }
.studio-band .lab-process > span[aria-current] { background: #c9a56312; box-shadow: inset 2px 0 var(--gold); }
.studio-band .lab-process b { border-radius: 5px; border-color: #555d5c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.studio-band .lab-process small { display: block; margin: 4px 0 0 34px; color: var(--muted); }
.studio-band #lab-session-status:empty, .studio-band #workspace-save-status:empty { display: none; }
.studio-band #workspace-save-status { grid-column: 1 / -1; margin: 0; }
.studio-band .lab { max-width: 1240px; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.studio-band .lab:not(:has(.lab-results:not([hidden]))) { max-width: 900px; margin-inline: auto; }
.studio-band .lab-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.studio-band .panel-title { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.studio-band .lab-icon { width: 24px; height: 24px; flex: none; color: var(--gold-deep); }
.studio-band .drop { background: radial-gradient(ellipse at 50% 20%, #c9a5630a, transparent 65%), #080b0db3; border: 1px dashed #c9a56366; border-radius: 10px; min-height: 320px; }
.studio-band .drop:hover { border-color: var(--gold); background-color: #1b2121; }
.studio-band .drop-icon { width: 88px; height: 88px; border-radius: 24px; background: radial-gradient(circle at 30% 15%, #c9a56324, transparent 65%), #111315d9; border: 1px solid #c9a56366; box-shadow: inset 0 1px #edd5a326, 0 12px 32px #0006; }
.studio-band .drop-icon .lab-icon { width: 44px; height: 44px; color: var(--gold-deep); }
.studio-band .lab-heading h1 { display: flex; align-items: center; gap: 20px; }
.studio-band .lab-emblem { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border: 1px solid #c9a56366; border-radius: 20px; background: linear-gradient(145deg, #c9a5631f, #080d11); box-shadow: inset 0 1px #edd5a326, 0 12px 24px #0005; }
.studio-band .lab-emblem .lab-icon { width: 38px; height: 38px; }
.studio-band .lab-process .step-icon { float: left; display: grid; place-items: center; width: 44px; height: 44px; margin-right: 12px; border: 1px solid #879ba52b; border-radius: 12px; background: #050a0d80; }
.studio-band .lab-process small { margin-left: 56px; }
.studio-band .lab-process > span[aria-current] .step-icon { border-color: #c9a56399; background: linear-gradient(135deg, #c9a56326, #151410); box-shadow: inset 0 1px #edd5a330; }
.studio-band .side-tabs .btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; }
.studio-band .lab-session .link-button { display: inline-flex; align-items: center; gap: 7px; }
.studio-band .lab-session .link-button .lab-icon { width: 19px; height: 19px; }
.studio-band #lab-next::before { content: ''; width: 22px; height: 22px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%203H3v5m13-5h5v5M3%2016v5h5m13-5v5h-5M12%2017V7m-4%204%204-4%204%204'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%203H3v5m13-5h5v5M3%2016v5h5m13-5v5h-5M12%2017V7m-4%204%204-4%204%204'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.studio-band .report-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; }
.studio-band .report-nav .lab-icon { width: 22px; height: 22px; }
.studio-band .saved > .panel-title { gap: 12px; }
.studio-band .drop .hint { max-width: 48ch; font-size: 12px; }
.studio-band .drop-title { font-size: 19px; font-weight: 500; }
.studio-band .side-tabs { margin-bottom: 12px; }
.studio-band .viewer-frame, .studio-band .detail-viewport { background: #0b0e0f; border-color: #343c3d; border-radius: 6px; }
.studio-band .zoom-toolbar { padding-block: 10px; border-bottom: 1px solid var(--line); }
.studio-band .detail-image { background: #111617; color: var(--text); border-color: var(--line); border-radius: 8px; }
.studio-band .lab-detail-dialog { color: var(--text); }
.studio-band input:not([type="range"], [type="checkbox"], [type="radio"], [type="file"]), .studio-band select, .studio-band textarea { background-color: #101415; color: var(--text); border-color: #626d6c; box-shadow: none; color-scheme: dark; }
.studio-band .field-error, .studio-band .form-error { color: #f1ac97; }
.studio-band .bar { background: #343c3b; }
.studio-band .lab-results { position: static; max-height: none; overflow: visible; scrollbar-color: #66706d #171c1c; }
.studio-band .report-nav { padding: 5px; gap: 3px; z-index: 3; }
.studio-band .grade-panel { border-top-color: #c9a56399; background: linear-gradient(125deg, #c9a56312, transparent 55%), #050709d9; }
.studio-band .grade-panel .grade-number { font-size: clamp(40px, 4.5vw, 64px); color: #edd5a3; }
.studio-band .grade-panel .hint, .studio-band .grade-panel .disclaimer { font-size: 12px; }
.studio-band .report-nav button { border-radius: 4px; }
.studio-band .grade-number, .studio-band .ratio, .studio-band .zoom-toolbar output, .studio-band .corner-metrics dd, .studio-band .verdict-grade { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.studio-band .preview-grade { border-radius: 5px; background: #272b25; box-shadow: none; }
.studio-band .studio-grades { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.studio-band .studio-grades .verdicts li { background: #202626; border-radius: 7px; }
.studio-band .saved { padding-top: 32px; border-top: 1px solid var(--line); }
.studio-band :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-transparency: reduce) {
  .studio .top, .studio .menu-panel, .studio-band .panel, .studio-band .side, .studio-band .saved-item, .studio-band .lab-detail-dialog { background: #101314; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (min-width: 900px) {
  .studio-band .lab:has(.lab-results:not([hidden])) { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); }
  .studio-band .lab-results { position: static; max-height: none; overflow: visible; padding: 0; }
}
@media (max-width: 760px) {
  .studio-band .lab-page { padding-top: 24px; }
  .studio-band .lab-hero { display: flex; flex-direction: column; gap: 14px; }
  .studio-band .lab-session { align-self: stretch; min-width: 0; }
  .studio-band .lab-process { order: 1; }
  .studio-band .lab-process > span { padding: 10px 6px; }
  .studio-band .lab-process small { margin-left: 0; }
  .studio-band .lab-process .step-icon { float: none; margin: 0 0 8px; }
  .studio-band .lab-emblem { width: 54px; height: 54px; border-radius: 16px; }
  .studio-band .lab-emblem .lab-icon { width: 30px; height: 30px; }
  .studio-band .panel, .studio-band .side { padding: 14px; }
  .studio-band .lab-intro { display: block; }
  .studio-band .drop { min-height: 240px; }
}
