:root {
  --paper: #11111b;
  --sidebar: #13131d;
  --card: #1b1d2c;
  --ink: #f1f1f9;
  --muted: #b1aec5;
  --line: #363545;
  --accent: #d7f875;
  --accent-dark: #e3ff99;
  --soft-accent: #2e3126;
  --green: #c6df99;
  --code: #141620;
  --error: #ffb2b5;
  --radius: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex-shrink: 0; }
button svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }

/* The studio shell follows the community's compact dashboard proportions. */
.studio-sidebar { width: 205px; position: fixed; inset: 0 auto 0 0; z-index: 4; padding: 32px 16px 24px; background: var(--sidebar); border-right: 1px solid var(--line); overflow-y: auto; }
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 58px; }
.brand-logo { display: block; width: 52px; height: auto; flex-shrink: 0; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand-name > span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 2.6px; margin-top: 10px; }
.nav-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; margin: 0 12px 18px; }
.studio-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 13px; border: 1px solid transparent; border-radius: 10px; color: #bebccd; text-decoration: none; font-size: 14px; line-height: 1.4; transition: background .15s, border-color .15s; }
.nav-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: #202130; border-color: var(--line); color: var(--ink); }
.nav-link.is-active { background: var(--soft-accent); border-color: #464a35; color: var(--accent); }
.sidebar-bottom { margin: 48px 12px 0; }
.platform-pill { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; color: #c5bfdc; background: #20202f; font-size: 12px; line-height: 1.25; }
.sidebar-bottom .platform-pill { background: none; border-radius: 20px; font-size: 11px; padding: 6px 9px; }
.sidebar-bottom > p { font-size: 23px; line-height: 1.45; font-weight: 400; letter-spacing: -.6px; margin-top: 23px; }
.sidebar-bottom > p > span { color: var(--accent); }
.sidebar-caption { display: block; color: #9c99b2; font-size: 12px; line-height: 1.7; margin-top: 17px; max-width: 145px; }
.page-shell { margin-left: 205px; min-width: 0; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--sidebar); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.breadcrumb > strong { font-weight: 400; color: #e4e1ec; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #1c2411; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s; }
.header-action svg { width: 18px; height: 18px; }
.header-action:hover { background: var(--accent-dark); }
main { padding: 30px 26px 0; max-width: 1580px; margin: 0 auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: #bbb3d4; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.5; }
h1 { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; margin-top: 11px; }
.intro-description { margin-top: 13px; font-size: 16px; line-height: 1.6; color: #b9b6c9; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 44px; margin-top: 15px; padding: 12px 16px; background: #202133; border: 1px solid #434256; border-radius: 9px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 2px #ffffff02; }
.reset-button:hover { background: #2b2b42; border-color: #626075; }
.intro-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 21px; border-bottom: 1px solid #2d2d3c; margin-bottom: 24px; }
.intro-status > p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; line-height: 1.5; color: #d0d6c5; }
.status-detail { color: var(--muted); margin-left: 2px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.feature-card { min-width: 0; min-height: 158px; padding: 20px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 3px #ffffff01; }
.feature-card.featured { background: linear-gradient(120deg, #252b20, #1c231e); border-color: #454b38; }
.feature-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #c8c4d7; font-size: 14px; line-height: 1.4; }
.feature-label svg { height: 18px; width: 18px; stroke: #b9aed6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.featured .feature-label svg { stroke: var(--accent); }
.feature-card:nth-child(3) .feature-label svg { stroke: #dfb8c8; }
.feature-card:nth-child(4) .feature-label svg { stroke: #b9d7a8; }
.feature-card > strong { display: block; font-size: 38px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.15; margin-top: 22px; }
.feature-card.featured > strong { color: var(--accent); }
.feature-card > p { color: #a9a5bd; font-size: 12px; line-height: 1.5; margin-top: 10px; }

/* A lavender-to-lime rule and a restrained dark gradient frame the editor. */
.workbench { position: relative; border: 1px solid #424050; border-radius: 16px; padding: 26px 24px 24px; background: linear-gradient(118deg, #242136 0%, #202333 52%, #20292a 100%); }
.workbench::before { content: ''; position: absolute; height: 3px; top: 0; left: 26px; right: 26px; background: linear-gradient(90deg, #bfa4e1, #d7f875); }
.workspace-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.workspace-topline .eyebrow { font-size: 11px; margin-bottom: 10px; }
.workspace-topline h2 { font-size: 26px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.workbench-badge { color: #d5e5be; border: 1px solid #48503b; border-radius: 6px; background: #2a3328; padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.editor { min-width: 0; border: 1px solid #3b394b; background: #191a27; border-radius: var(--radius); overflow: hidden; }
.editor-section { padding: 25px 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.editor-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.step-number { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #464557; border-radius: 8px; background: #262538; font-size: 11px; font-weight: 700; color: #c9c0dd; margin-top: 1px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.55px; }
.section-heading p { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 5px; }
.section-meta { margin-left: auto; padding-top: 7px; color: #b7adc8; font-size: 8px; font-weight: 600; letter-spacing: .7px; }
.field + .field { margin-top: 20px; }
.field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 500; color: #e0ddeb; }
input[type=text], textarea { display: block; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #716c83; border-radius: 8px; background: #13141f; color: var(--ink); font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input[type=text] { min-height: 46px; }
textarea { resize: vertical; min-height: 116px; max-height: 360px; }
input::placeholder, textarea::placeholder { color: #9691ab; opacity: 1; }
input:hover, textarea:hover { border-color: #9a8eaf; }
input:focus, textarea:focus { border-color: #b6cd79; outline: none; box-shadow: 0 0 0 3px #d7f87514; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: #d8808c; }
.field-hint { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 8px; }
.field-error { color: var(--error); font-size: 12px; line-height: 1.6; margin-top: 7px; }
.filename-input { position: relative; }
.filename-input > svg { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; color: #aba1c6; pointer-events: none; }
.filename-input input { padding-left: 38px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.artwork-picker { display: flex; align-items: center; gap: 14px; padding: 14px; margin-top: 21px; border: 1px dashed #51495f; border-radius: 10px; background: #211f30; }
.artwork-thumbnail { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 76px; height: 84px; border: 1px solid #474052; border-radius: 8px; background: #2a263a; overflow: hidden; }
.artwork-thumbnail > svg { width: 34px; height: 34px; color: #b4a2d0; }
.artwork-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.artwork-picker-copy { min-width: 0; }
.micro-label { color: #b6acd0; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 1.3px; }
.artwork-picker-copy > p { font-size: 13px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.artwork-picker-copy > .field-hint { font-size: 11px; margin-top: 3px; }
.artwork-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; margin-top: 5px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 5px 0; border: 0; background: none; color: #c5bfda; font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; }
.text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .5; text-decoration: none; }
.text-button > span { font-size: 15px; }
.accent { color: var(--accent); }
.artwork-actions .text-button { min-height: 40px; font-size: 12px; gap: 5px; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; color: #b2adbf; font-size: 11px; line-height: 1.7; margin-top: 12px; }
.privacy-note svg { width: 12px; height: 12px; margin-top: 3px; }
.notice { padding: 12px 14px; margin-top: 12px; border: 1px solid #74434f; border-radius: 8px; background: #34232e; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-error { color: var(--error); }
.notice .text-button { margin-top: 5px; }
.trait-column-labels, .trait-row-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 10px; }
.trait-column-labels { font-size: 12px; font-weight: 500; color: #d1cbdf; margin-bottom: 9px; }
.trait-row + .trait-row { margin-top: 12px; }
.trait-row-inputs { align-items: center; }
.trait-row input { padding-left: 11px; padding-right: 11px; font-size: 14px; }
.remove-trait { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: 7px; color: #b1a7c5; }
.remove-trait:hover { color: #ffc5c5; background: #392a3a; }
.remove-trait svg { width: 17px; height: 17px; }
.add-trait-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; gap: 8px; padding: 11px; margin-top: 15px; background: #252633; border: 1px dashed #555461; border-radius: 8px; color: var(--accent); font-size: 13px; font-weight: 500; }
.add-trait-button:hover { background: #2e3126; border-color: #8c9b63; }
.add-trait-button:disabled { opacity: .5; }
.add-trait-button > span { font-size: 19px; line-height: 1; }
.traits-hint { font-size: 11px; margin-top: 10px; }

/* Live output retains all local preview, validation and download states. */
.output-rail { min-width: 0; position: sticky; top: 24px; }
.output-card { padding: 22px 20px; border: 1px solid #424050; border-radius: var(--radius); background: #1b1d2ce6; }
.output-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.output-heading .micro-label { color: #bdb0d8; font-size: 10px; margin-bottom: 7px; }
.output-heading h2 { font-size: 26px; font-weight: 600; letter-spacing: -.6px; line-height: 1.25; }
.file-badge { padding: 7px 8px; border: 1px solid #4a425d; border-radius: 6px; background: #292439; color: #d2c4e8; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 11px; white-space: nowrap; }
.code-window { border: 1px solid #353448; border-radius: 10px; background: var(--code); color: #d8d4e8; overflow: hidden; }
.code-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px; border-bottom: 1px solid #353448; background: #1e1d2d; }
.code-filename { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cec6df; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 11px; }
.preview-state { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; color: #aaa4c0; }
.preview-state .status-dot { background: #8b809e; width: 5px; height: 5px; }
.preview-state.is-ready { color: var(--accent); }
.preview-state.is-ready .status-dot { background: var(--accent); }
.preview-empty { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 15px; text-align: center; background: radial-gradient(ellipse at 50% 42%, #25203588, transparent 70%); }
.empty-braces { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; color: #827399; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 48px; font-weight: 400; line-height: 1.2; }
.empty-braces > span { color: var(--accent); font-family: Arial, sans-serif; font-size: 31px; line-height: 1; }
.preview-empty h3 { font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -.3px; color: #e4ddec; }
.preview-empty p { font-size: 12px; color: #aaa3bc; line-height: 1.8; margin-top: 10px; }
.empty-rule { width: 29px; height: 2px; background: #807391; margin-top: 26px; }
#json-preview { margin: 0; min-height: 310px; max-height: 510px; overflow: auto; padding: 20px 16px; tab-size: 2; color: #a8a0b9; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 12px; line-height: 1.8; scrollbar-width: thin; scrollbar-color: #68607b #141620; }
#json-code { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-key { color: #c0ace8; }
.json-string { color: #d5e9a3; }
.json-number, .json-literal { color: #efc2d3; }
.code-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; border-top: 1px solid #353448; color: #b2abc1; }
.code-footer > span { font-size: 11px; }
.code-footer > button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 4px 0; background: none; border: 0; color: #d4ccdf; font-size: 11px; }
.code-footer > button svg { width: 14px; height: 14px; }
.code-footer > button:disabled { opacity: .5; }
.code-footer > button:hover:enabled { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.download-area { padding-top: 19px; }
.validation-status { display: flex; align-items: flex-start; gap: 8px; min-height: 18px; margin-bottom: 14px; font-size: 12px; line-height: 1.6; color: #b8b1c8; }
.validation-icon { flex-shrink: 0; font-size: 15px; line-height: 1.25; }
.validation-status.is-ready { color: var(--accent); }
.validation-status.has-errors { color: var(--error); }
.download-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; padding: 14px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: #1e2612; font-size: 14px; font-weight: 700; transition: background .15s, transform .15s; }
.download-button > span:not(.download-arrow) { min-width: 0; overflow-wrap: anywhere; }
.download-button:hover:enabled { background: var(--accent-dark); border-color: var(--accent-dark); }
.download-button:active:enabled { transform: translateY(1px); }
.download-button:disabled { color: #bdc3ad; background: #3b4131; border-color: #535d40; }
.download-button > svg { width: 18px; height: 18px; }
.download-arrow { margin-left: auto; font-size: 18px; line-height: 1; font-weight: 400; }
.download-note { margin-top: 12px; text-align: center; color: #afa8c0; font-size: 11px; line-height: 1.5; }
.pairing-note { display: flex; gap: 13px; padding: 24px 5px 0; }
.pairing-symbol { flex-shrink: 0; margin-top: 0; color: #c0d8a4; font-size: 25px; line-height: 1; }
.pairing-note > div { min-width: 0; }
.pairing-note h3 { font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 7px; }
.pairing-note p { font-size: 12px; color: #b7b2c6; line-height: 1.8; }
.filename-pair { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 8px; margin-top: 13px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 11px; }
.filename-pair > span:not(.pair-arrow):not(#pair-example) { padding: 6px 8px; border: 1px solid #48503d; border-radius: 5px; background: #2c322a; color: #d8e6c5; overflow-wrap: anywhere; max-width: 100%; }
.pair-arrow { color: #c2b6d7; font-size: 13px; }
#pair-example { color: #afa5c3; font-family: Arial, Helvetica, sans-serif; font-size: 9px; letter-spacing: .8px; }
.local-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 22px; padding: 18px 5px 0; border-top: 1px solid #404050; font-size: 11px; line-height: 1.6; color: #b2b4c0; }
.local-note .status-dot { margin-top: 6px; width: 5px; height: 5px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 27px 26px 0; padding: 22px 0 27px; border-top: 1px solid #2c2c3b; color: #a5a0b8; font-size: 11px; line-height: 1.7; }
.site-footer p { display: flex; align-items: center; gap: 8px; }
.site-footer .status-dot { width: 4px; height: 4px; }
.site-footer > span { text-align: right; }
.toast { position: fixed; z-index: 10; bottom: 25px; left: calc(50% + 102px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 245px); overflow-wrap: anywhere; padding: 13px 19px; border: 1px solid #66724b; border-radius: 10px; background: #2b3327; color: #e8f3d6; box-shadow: 0 8px 24px #0005; text-align: center; font-size: 13px; line-height: 1.6; }
.noscript-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; padding: 16px; background: var(--accent); color: #1d2611; text-align: center; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 20px; top: -80px; padding: 12px; border-radius: 6px; background: var(--accent); color: #1d2611; font-size: 13px; }
.skip-link:focus { top: 10px; }

@media(min-width:1500px) {
  main { padding-top: 34px; }
  .workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .editor-section { padding: 28px; }
  .section-heading h2 { font-size: 24px; }
  .section-meta { font-size: 9px; }
  .output-card { padding: 26px; }
  .preview-empty, #json-preview { min-height: 345px; }
}
@media(max-width:1100px) and (min-width:781px) {
  main { padding-left: 22px; padding-right: 22px; }
  .feature-card { padding: 18px 13px; }
  .feature-label { font-size: 12px; }
  .feature-card > strong { font-size: 33px; }
  .feature-card > p { font-size: 11px; }
  .workbench { padding: 24px 17px 20px; }
  .workspace { gap: 16px; }
  .editor-section { padding: 22px 16px; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .section-meta { margin-left: 37px; margin-top: -3px; padding-top: 0; }
  .output-card { padding: 20px 14px; }
  .output-heading { gap: 8px; }
  .output-heading h2 { font-size: 23px; }
  .file-badge { padding: 6px; font-size: 10px; }
  .artwork-picker { padding: 12px; gap: 10px; align-items: flex-start; }
  .artwork-thumbnail { width: 52px; height: 64px; }
  .artwork-actions .text-button { font-size: 11px; }
  .trait-column-labels, .trait-row-inputs { gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .remove-trait { width: 36px; }
  .intro-status .status-detail { display: none; }
}
@media(max-width:920px) and (min-width:781px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .output-rail { position: static; }
  .section-heading .section-meta { margin-left: auto; padding-top: 7px; margin-top: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 135px; }
  .feature-card > strong { margin-top: 15px; }
  .intro { align-items: flex-start; }
  .intro-description { font-size: 14px; }
  .reset-button { margin-top: 35px; }
  .artwork-thumbnail { width: 76px; height: 84px; }
  .intro-status > .platform-pill { font-size: 10px; }
}
@media(max-width:780px) {
  html { scroll-padding-top: 16px; }
  .studio-sidebar { position: relative; inset: auto; width: auto; padding: 20px 20px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .wordmark { width: fit-content; gap: 12px; margin: 0 0 18px; }
  .brand-logo { width: 44px; }
  .brand-name { font-size: 18px; }
  .brand-name > span { display: inline; margin-left: 9px; font-size: 10px; letter-spacing: 2px; }
  .nav-label, .sidebar-bottom { display: none; }
  .studio-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .nav-link { justify-content: center; gap: 7px; padding: 10px 7px; min-height: 44px; border-radius: 8px; font-size: 12px; }
  .nav-link svg { width: 16px; height: 16px; }
  .page-shell { margin-left: 0; }
  .site-header { height: 68px; padding: 0 20px; }
  .breadcrumb { font-size: 12px; gap: 7px; }
  .header-action { min-height: 40px; padding: 10px 12px; font-size: 12px; border-radius: 8px; }
  main { padding: 27px 20px 0; }
  .intro { gap: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
  h1 { font-size: 33px; letter-spacing: -.8px; }
  .intro-description { font-size: 14px; margin-top: 11px; }
  .reset-button { padding: 11px 12px; font-size: 12px; gap: 7px; }
  .intro-status { padding: 21px 0; gap: 10px; }
  .intro-status > p { font-size: 11px; gap: 7px; }
  .status-detail { display: none; }
  .intro-status > .platform-pill { font-size: 10px; padding: 6px 8px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
  .feature-card { min-height: 142px; padding: 18px; }
  .feature-label { font-size: 13px; }
  .feature-card > strong { font-size: 34px; margin-top: 15px; }
  .feature-card > p { margin-top: 8px; }
  .workbench { padding: 24px 20px 22px; }
  .workspace-topline { margin-bottom: 23px; }
  .workspace-topline .eyebrow { font-size: 10px; }
  .workspace-topline h2 { font-size: 25px; }
  .workbench-badge { font-size: 11px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .editor-section { padding: 24px; }
  .section-heading h2 { font-size: 22px; }
  .section-meta { font-size: 9px; }
  input[type=text], textarea, .trait-row input { font-size: 16px; }
  .trait-column-labels, .trait-row-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .remove-trait { width: 44px; }
  .output-rail { position: static; }
  .output-card { padding: 24px; }
  .code-filename { font-size: 12px; }
  .preview-empty, #json-preview { min-height: 260px; }
  .preview-empty h3 { font-size: 21px; }
  .pairing-note { padding-top: 23px; }
  .site-footer { margin: 26px 20px 0; font-size: 10px; }
  .toast { left: 50%; max-width: calc(100% - 32px); }
}
@media(max-width:430px) {
  .studio-sidebar { padding: 18px 14px 12px; }
  .wordmark { margin-bottom: 16px; }
  .brand-name { font-size: 17px; }
  .brand-name > span { font-size: 9px; }
  .studio-nav { gap: 4px; }
  .nav-link { min-height: 62px; flex-direction: column; gap: 7px; padding: 9px 3px; font-size: 10px; text-align: center; }
  .nav-link svg { width: 17px; height: 17px; }
  .site-header { height: 62px; padding: 0 16px; gap: 10px; }
  .breadcrumb { font-size: 10px; gap: 5px; }
  .header-action { padding: 9px; font-size: 11px; gap: 5px; }
  .header-action svg { width: 15px; height: 15px; }
  main { padding: 25px 16px 0; }
  .intro { flex-wrap: wrap; gap: 13px; align-items: flex-start; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  h1 { font-size: 32px; }
  .intro-description { font-size: 13px; }
  .reset-button { min-height: 40px; margin-top: 0; padding: 9px 12px; }
  .intro-status { flex-wrap: wrap; gap: 10px; padding: 18px 0; margin-bottom: 18px; }
  .intro-status > p { font-size: 10px; }
  .intro-status > .platform-pill { font-size: 9px; }
  .feature-grid { gap: 10px; margin-bottom: 18px; }
  .feature-card { min-height: 136px; padding: 15px 13px; }
  .feature-label { font-size: 11px; gap: 6px; }
  .feature-label svg { width: 15px; height: 15px; }
  .feature-card > strong { font-size: 32px; margin-top: 17px; }
  .feature-card > p { font-size: 10px; }
  .workbench { padding: 22px 11px 18px; border-radius: 14px; }
  .workbench::before { left: 17px; right: 17px; }
  .workspace-topline { align-items: flex-start; flex-direction: column; gap: 12px; padding: 0 5px; }
  .workspace-topline .eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 8px; }
  .workspace-topline h2 { font-size: 24px; }
  .workbench-badge { font-size: 10px; padding: 5px 7px; }
  .editor-section { padding: 22px 14px; }
  .section-heading { flex-wrap: wrap; gap: 9px; margin-bottom: 21px; }
  .step-number { width: 26px; height: 26px; font-size: 10px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 11px; }
  .section-meta { margin-left: 35px; padding-top: 0; margin-top: -3px; font-size: 8px; }
  .field label { font-size: 13px; }
  .field-hint, .field-error { font-size: 11px; }
  .artwork-picker { padding: 11px; gap: 10px; align-items: flex-start; }
  .artwork-thumbnail { width: 52px; height: 66px; }
  .micro-label { font-size: 9px; }
  .artwork-picker-copy > p { font-size: 12px; }
  .artwork-picker-copy > .field-hint { font-size: 10px; }
  .artwork-actions .text-button { font-size: 11px; }
  .privacy-note { font-size: 10px; }
  .trait-column-labels, .trait-row-inputs { gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .trait-column-labels { font-size: 11px; }
  .trait-row input { padding-left: 8px; padding-right: 8px; }
  .remove-trait { width: 34px; }
  .output-card { padding: 21px 14px; }
  .output-heading h2 { font-size: 25px; }
  .file-badge { font-size: 10px; padding: 6px; }
  .code-toolbar { padding: 12px; gap: 8px; }
  .code-filename { font-size: 11px; }
  .preview-state { font-size: 9px; }
  .preview-empty { padding: 24px 10px; }
  .preview-empty h3 { font-size: 19px; }
  .preview-empty p { font-size: 11px; }
  .desktop-break { display: none; }
  #json-preview { font-size: 11px; padding: 18px 12px; }
  .validation-status { font-size: 11px; }
  .download-button { font-size: 13px; padding: 13px 11px; }
  .download-note { font-size: 10px; }
  .pairing-note { padding-left: 5px; padding-right: 5px; gap: 10px; }
  .pairing-note h3 { font-size: 13px; }
  .pairing-note p { font-size: 11px; }
  .filename-pair { gap: 6px; font-size: 10px; }
  .local-note { font-size: 10px; }
  .site-footer { align-items: flex-start; margin: 22px 16px 0; gap: 20px; font-size: 9px; }
  .site-footer p { display: block; max-width: 155px; }
  .site-footer p .status-dot { margin-right: 5px; }
  .site-footer > span { max-width: 120px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* The ART layout owns the brand, route navigation and breadcrumb. */
:root:has(.community-editor) { --paper: #10111a; --accent: #d6f875; --card: #191b29; }
.community-editor .page-shell { margin-left: 0; }
.community-editor main { max-width: 1510px; padding: 36px 38px 0; }
.community-editor .site-footer { max-width: 1510px; margin-inline: auto; padding-inline: 38px; }
.community-editor .intro h1 { font-size: 36px; }
.community-editor .output-rail { position: static; }
@media (max-width: 1200px) { .community-editor main { padding: 29px 25px 0; } .community-editor .site-footer { padding-inline: 25px; } }
@media (max-width: 600px) { .community-editor main { padding: 26px 18px 0; } .community-editor .site-footer { padding-inline: 18px; } .community-editor .intro h1 { font-size: 31px; } }
