/* Shared structure, distinct design systems. Palettes come from theme-colours.css. */
html[data-theme]{--body-font:Inter,"Segoe UI",system-ui,sans-serif;--heading:Bricolage,"Trebuchet MS",sans-serif;--button-radius:999px;--card-radius:17px;--field-radius:9px;--nav-radius:9px;--panel-radius:20px;--motion-time:180ms;--motion-ease:cubic-bezier(.2,.8,.2,1);--hover-lift:-3px;--press-offset:1px;--button-shadow:0 4px 0 var(--card-shadow);--site-border:1px}
html[data-theme] body{background:var(--paper);color:var(--ink);font-family:var(--body-font)}
html.appearance-changing *,html.appearance-changing *:before,html.appearance-changing *:after{transition:none!important}
html.appearance-interacted .hero-copy,html.appearance-interacted .code-sculpture,html.appearance-interacted .templates-section{animation:none!important}
html[data-theme] button,html[data-theme] input,html[data-theme] select,html[data-theme] textarea{font-family:var(--body-font)}
html[data-theme] h1,html[data-theme] h2,html[data-theme] h3,html[data-theme] .logo-word,html[data-theme] .footer-wordmark{font-family:var(--heading)}
html[data-theme] .logo-word{white-space:nowrap}
html[data-theme] ::selection{background:var(--lime);color:var(--on-accent)}
html[data-theme] *{scrollbar-color:var(--muted) var(--soft)}
html[data-theme] a:focus-visible,html[data-theme] button:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
html[data-theme] input:focus,html[data-theme] select:focus,html[data-theme] textarea:focus{outline-color:var(--focus)}
html[data-theme] .eyebrow,html[data-theme] .topbar-caption,html[data-theme] .topbar-slash,html[data-theme] .hero-copy>p,html[data-theme] .muted,html[data-theme] .lead,html[data-theme] .help{color:var(--muted)}
html[data-theme] #topbar,html[data-theme] .hero,html[data-theme] footer{border-color:var(--line)}
html[data-theme] #sidebar{background:var(--nav-bg);color:var(--nav-fg)}
html[data-theme] .logo b{color:var(--lime)}
html[data-theme] .sidebar-tagline,html[data-theme] .nav-label,html[data-theme] .sidebar-signature{color:var(--nav-muted)}
html[data-theme] .nav-item{color:var(--nav-fg);border-radius:var(--nav-radius);transition:background var(--motion-time),color var(--motion-time),transform var(--motion-time)}
html[data-theme] .nav-item:hover{background:color-mix(in srgb,var(--nav-active-bg) 55%,var(--nav-bg));color:var(--nav-fg)}
html[data-theme] .nav-item.active{background:var(--nav-active-bg);color:var(--nav-active-fg)}
html[data-theme] .sidebar-note{background:color-mix(in srgb,var(--nav-bg) 89%,var(--lime));border-color:var(--nav-line);border-radius:var(--card-radius)}
html[data-theme] .sidebar-note strong{color:var(--nav-fg);font-family:var(--heading)}
html[data-theme] .sidebar-note p{color:var(--nav-muted)}
html[data-theme] .sidebar-note .studio-spark,html[data-theme] .sidebar-note-link{color:var(--lime)}
html[data-theme] .sidebar-note-link{border-color:var(--nav-muted)}
html[data-theme] #sidebar .button.primary{background:var(--lime);border-color:var(--lime);color:var(--on-accent);border-radius:var(--button-radius)!important}
html[data-theme] #sidebar .button.primary:hover{background:var(--lime);color:var(--on-accent);filter:brightness(1.07)}
html[data-theme] .button{border-color:var(--line);color:var(--ink);border-radius:var(--button-radius);transition:background var(--motion-time),color var(--motion-time),border-color var(--motion-time),transform var(--motion-time) var(--motion-ease),box-shadow var(--motion-time)}
html[data-theme] .button:hover{background:var(--soft);border-color:var(--focus);transform:translateY(var(--hover-lift));box-shadow:var(--button-shadow)}
html[data-theme] .button.primary{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg)}
html[data-theme] .button.primary:hover{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg);filter:brightness(1.07)}
html[data-theme] .button:active{transform:translateY(var(--press-offset));box-shadow:none}
html[data-theme] .button.ghost{background:transparent;border-color:transparent;color:var(--ink)}
html[data-theme] .button.ghost:hover{background:var(--soft);border-color:var(--line)}
html[data-theme] .button.liked{background:var(--soft);border-color:var(--focus);color:var(--accent-ink)}
html[data-theme] .button.danger{background:color-mix(in srgb,var(--danger) 10%,var(--white));border-color:color-mix(in srgb,var(--danger) 45%,var(--line))}
html[data-theme] .text-button{color:var(--muted)}
html[data-theme] .text-button:hover,html[data-theme] .text-link:hover{color:var(--accent-ink)}
html[data-theme] .text-link,html[data-theme] .hero-community-link{color:var(--ink);border-color:var(--line)}
html[data-theme] .hero-eyebrow>span{color:var(--accent-ink)}
html[data-theme] .hero h1 em:after{background:var(--lime)}
html[data-theme] .input,html[data-theme] .search-input,html[data-theme] .topbar-search{background:var(--field-bg);border-color:var(--line);color:var(--field-fg);border-radius:var(--field-radius)}
html[data-theme] .input::placeholder,html[data-theme] .topbar-search-input::placeholder{color:var(--muted);opacity:1}
html[data-theme] .topbar-search-input{color:var(--field-fg)}
html[data-theme] .search-input svg,html[data-theme] .topbar-search svg{color:var(--muted)}
html[data-theme] .search-input .input{background:transparent}
html[data-theme] .template-tile,html[data-theme] .project-card,html[data-theme] .empty,html[data-theme] .settings-card,html[data-theme] .discussion-post,html[data-theme] .topic-list,html[data-theme] .noticeboard,html[data-theme] .idea-jar{background:var(--white);border-color:var(--line);border-radius:var(--card-radius);border-width:var(--site-border)}
html[data-theme] .template-tile,html[data-theme] .project-card{transition:transform var(--motion-time) var(--motion-ease),box-shadow var(--motion-time),border-color var(--motion-time)}
html[data-theme] .template-tile:hover,html[data-theme] .project-card:hover{transform:translateY(var(--hover-lift));box-shadow:0 5px 0 var(--card-shadow);border-color:var(--focus)}
html[data-theme] .template-tile[data-kind='web'],html[data-theme] .project-cover.web{background:var(--cover-web)}
html[data-theme] .template-tile[data-kind='python'],html[data-theme] .project-cover.python{background:var(--cover-python)}
html[data-theme] .template-tile[data-kind='javascript'],html[data-theme] .project-cover.javascript{background:var(--cover-js)}
html[data-theme] .template-tile[data-kind='three'],html[data-theme] .project-cover.three{background:var(--cover-three)}
html[data-theme] .project-cover.react{background:var(--cover-react)}
html[data-theme] .template-content strong{font-family:var(--heading)}
html[data-theme] .template-content small,html[data-theme] .card-description,html[data-theme] .empty p{color:var(--muted)}
html[data-theme] .template-symbol,html[data-theme] .language-mark{color:var(--cover-ink)}
html[data-theme] .template-tile.selected{background:var(--soft);border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
html[data-theme] .template-tile.selected:after{background:var(--primary-bg);color:var(--primary-fg)}
html[data-theme] .project-card-bottom,html[data-theme] .message,html[data-theme] .discussion-post>.actions{border-color:var(--line)}
html[data-theme] .byline:hover{color:var(--accent-ink)}
html[data-theme] .card-stats{color:var(--muted)}
html[data-theme] .tag,html[data-theme] .badge,html[data-theme] .badge.subtle{background:var(--soft);color:var(--accent-ink);border-color:var(--line)}
html[data-theme] .badge.solved{background:color-mix(in srgb,var(--lime) 18%,var(--white));color:var(--accent-ink);border-color:var(--line)}
html[data-theme] .cover-label{background:var(--white);border-color:var(--line);color:var(--ink)}
html[data-theme] .cover-open{background:var(--white);color:var(--ink)}
html[data-theme] .project-card:hover .cover-open{background:var(--primary-bg);color:var(--primary-fg)}
html[data-theme] .idea-jar{background:var(--lilac)}
html[data-theme] .idea-shuffle{border-color:var(--line);color:var(--ink)}
html[data-theme] .idea-shuffle:hover{background:var(--white)}
html[data-theme] .idea-content p,html[data-theme] .rail-empty,html[data-theme] .noticeboard-topic small,html[data-theme] .notice-category{color:var(--muted)}
html[data-theme] .idea-start,html[data-theme] .noticeboard-topic{border-color:var(--line)}
html[data-theme] .noticeboard-topic:hover strong{color:var(--accent-ink)}
html[data-theme] .idea-doodle{color:var(--accent-ink);opacity:.24}
html[data-theme] .empty-icon{color:var(--accent-ink)}
html[data-theme] .empty-eyes i{background:var(--accent-ink)}
html[data-theme] .viewer-frame{border-color:var(--line);background:var(--workbench-bg);border-radius:var(--card-radius);box-shadow:0 5px 0 var(--card-shadow)}
html[data-theme] .viewer-caption{background:var(--workbench-bg);color:var(--workbench-fg);border-color:var(--line)}
html[data-theme] .viewer-caption>strong{font-family:var(--heading)}
html[data-theme] .shared-pane-buttons{background:color-mix(in srgb,var(--workbench-bg) 95%,#000);border-color:var(--line);border-radius:var(--button-radius)}
html[data-theme] .pane-button{color:var(--workbench-fg);border-radius:var(--button-radius);font-family:var(--body-font)}
html[data-theme] .pane-button[aria-pressed='true']{background:var(--lime);color:var(--on-accent)}
html[data-theme] .viewer-caption>.button{background:var(--lime);color:var(--on-accent);border-color:var(--lime)}
html[data-theme] .fork-attribution a{color:var(--accent-ink);border-color:var(--line)}
html[data-theme] .prose{color:var(--ink)}
html[data-theme] .post-code{background:var(--code-bg);color:var(--code-fg);border-color:var(--line);border-radius:var(--field-radius)}
html[data-theme] .post-link{color:var(--accent-ink)}
html[data-theme] .join-prompt{background:var(--soft);border-color:var(--line);border-radius:var(--card-radius)}
html[data-theme] .category-tabs,html[data-theme] .topic-row{border-color:var(--line)}
html[data-theme] .category-tab{background:var(--soft);color:var(--ink);border-color:transparent;border-radius:var(--button-radius)}
html[data-theme] .category-tab.active{background:var(--primary-bg);color:var(--primary-fg);border-color:var(--primary-bg)}
html[data-theme] .category-tab:hover{background:var(--soft);color:var(--accent-ink);border-color:var(--line)}
html[data-theme] .category-tab.active:hover{background:var(--primary-bg);color:var(--primary-fg)}
html[data-theme] .topic-row:hover{background:var(--soft)}
html[data-theme] .topic-symbol,html[data-theme] .topic-row:nth-child(n) .topic-symbol{background:var(--soft);color:var(--accent-ink);border-radius:var(--field-radius)}
html[data-theme] .topic-title{font-family:var(--heading)}
html[data-theme] .topic-title:hover{color:var(--accent-ink)}
html[data-theme] .reply-count strong,html[data-theme] .community-note,html[data-theme] .community-note svg{color:var(--accent-ink)}
html[data-theme] .profile-header{background:var(--soft);border-color:var(--line);border-radius:var(--panel-radius)}
html[data-theme] .profile-header:after{color:var(--lime);opacity:.18}
html[data-theme] .profile-header>.button{background:var(--white)}
html[data-theme] .profile-header .avatar.large{border-color:var(--white)}
html[data-theme] .modal{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:var(--panel-radius)}
html[data-theme] .modal-head h2{font-family:var(--heading)}
html[data-theme] .close-button{background:var(--soft);color:var(--ink);border-color:var(--line);border-radius:var(--button-radius)}
html[data-theme] .recovery-code{background:var(--soft);color:var(--accent-ink);border-color:var(--line);border-radius:var(--field-radius)}
html[data-theme] .toast{background:var(--primary-bg);color:var(--primary-fg);border-color:var(--line);border-radius:var(--field-radius);box-shadow:0 5px 0 var(--card-shadow)}
html[data-theme] footer{color:var(--muted)}
html[data-theme] footer>a,html[data-theme] .footer-wordmark{color:var(--ink)}
html[data-theme] .footer-wordmark>span{color:var(--accent-ink)}
html[data-theme] .mobile-menu{color:var(--ink)}
html[data-theme] .nav-open #sidebar{box-shadow:20px 0 80px var(--nav-shadow)}

/* The theme selector previews both a website and its companion code editor. */
.appearance-trigger{padding:8px 12px;min-height:36px;flex-shrink:0}
.appearance-trigger-content{display:flex;align-items:center;gap:7px}
.appearance-trigger svg{width:17px;height:17px}
.appearance-name{font-size:11px}
.appearance-dialog{width:min(760px,calc(100% - 28px));padding:30px}
.appearance-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.appearance-dialog .modal-head{margin-bottom:13px;flex:0 0 auto}
.appearance-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
.appearance-intro{font-size:12px;color:var(--muted);margin-bottom:22px;max-width:530px;line-height:1.8}
.appearance-designs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow-y:auto;overscroll-behavior:contain;min-height:140px;max-height:min(47dvh,480px);padding:2px 4px 3px 2px;flex:1 1 auto}
.appearance-intro,.appearance-variant-title,.appearance-description,.appearance-variants,.appearance-body>.button{flex-shrink:0}
.appearance-design{position:relative;padding:11px;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--white);color:var(--ink);text-align:left;min-width:0;transition:border-color var(--motion-time),box-shadow var(--motion-time)}
.appearance-design:hover{border-color:var(--focus)}
.appearance-design[aria-checked='true']{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
.appearance-design-info{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:12px}
.appearance-design-info strong{font-weight:650}
.appearance-selected-mark{opacity:0;color:var(--accent-ink)}
.appearance-design[aria-checked='true'] .appearance-selected-mark{opacity:1}
.appearance-design>small{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.6}
.appearance-mini{position:relative;display:flex;height:100px;border:1px solid var(--mini-line);border-radius:7px;overflow:hidden;background:var(--mini-bg);color:var(--mini-fg)}
.mini-nav{width:27px;background:var(--mini-top);border-right:1px solid var(--mini-line)}
.mini-nav:after{content:'';display:block;height:3px;background:var(--mini-accent);margin:22px 5px 0;box-shadow:0 9px 0 var(--mini-line),0 18px 0 var(--mini-line)}
.mini-page{position:relative;display:flex;flex-direction:column;gap:8px;flex:1;padding:14px 12px;min-width:0}
.mini-heading{font:600 17px/1.1 var(--mini-font);white-space:nowrap;letter-spacing:-.5px}
.mini-preview-cards{display:flex;gap:5px}
.mini-preview-cards i{display:block;width:38px;height:20px;border-radius:4px;background:var(--mini-accent);opacity:.55}
.mini-preview-action{align-self:flex-start;border:1px solid var(--mini-accent);border-radius:12px;padding:2px 7px;font:7px system-ui;color:var(--mini-fg)}
.mini-editor{width:34%;background:var(--mini-top);border-left:1px solid var(--mini-line);padding:18px 8px}
.mini-editor i{height:3px;width:80%;display:block;background:var(--mini-accent);margin:9px 0;opacity:.7}
.mini-editor i:nth-child(2){margin-left:5px;width:65%;opacity:.4}
.appearance-mini[data-preview-theme='hacker']{border-radius:0}.appearance-mini[data-preview-theme='hacker'] *{border-radius:0!important}.appearance-mini[data-preview-theme='hacker'] .mini-heading{font-size:17px;letter-spacing:-.7px}.appearance-mini[data-preview-theme='hacker'] .mini-heading:before{content:'> '}
.appearance-mini[data-preview-theme='cyberpunk']{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));border-radius:0}.appearance-mini[data-preview-theme='cyberpunk'] .mini-heading{text-transform:uppercase;font-size:14px}.appearance-mini[data-preview-theme='cyberpunk'] .mini-preview-action{border-radius:0;transform:skew(-8deg)}
.appearance-mini[data-preview-theme='midnight']{border-radius:12px}.appearance-mini[data-preview-theme='midnight'] .mini-heading{font:italic 19px Georgia,serif}.appearance-mini[data-preview-theme='midnight'] .mini-preview-cards i{border-radius:9px}
.appearance-mini[data-preview-theme='paper']{border-radius:0}.appearance-mini[data-preview-theme='paper'] .mini-heading{font:italic 19px Georgia,serif}.appearance-mini[data-preview-theme='paper'] .mini-preview-action{border-radius:2px}.appearance-mini[data-preview-theme='paper'] .mini-preview-cards i{height:1px;box-shadow:0 7px 0 var(--mini-accent)}
.appearance-mini[data-preview-theme='retro']{border-radius:0;box-shadow:inset 1px 1px white,inset -1px -1px #333}.appearance-mini[data-preview-theme='retro'] .mini-heading{font:700 12px Tahoma,sans-serif}.appearance-mini[data-preview-theme='retro'] .mini-preview-action{border-radius:0;box-shadow:inset 1px 1px white,inset -1px -1px #333}
.appearance-mini[data-preview-theme='daylight'] .mini-preview-action{border-radius:3px}.appearance-mini[data-preview-theme='studio'] .mini-heading{font:600 14px system-ui}
.appearance-variant-title{margin-top:25px;font-size:23px}
.appearance-description{font-size:11px;line-height:1.8;color:var(--muted);margin:9px 0 15px}
.appearance-variants{display:flex;flex-wrap:wrap;gap:9px}
.appearance-variant{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:var(--button-radius);background:var(--white);color:var(--ink);font-size:11px}
.appearance-variant[aria-checked='true']{border-color:var(--focus);background:var(--soft);box-shadow:0 0 0 1px var(--focus)}
.appearance-variant-swatch{display:block;width:24px;height:24px;border-radius:50%;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);background:linear-gradient(135deg,var(--swatch-a) 50%,var(--swatch-b) 50%)}
.appearance-body>.button{margin-top:23px;min-width:110px}
.appearance-settings-card{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.appearance-settings-card>div{flex:1;min-width:180px}
.appearance-settings-card p{margin-top:12px;font-size:12px;line-height:1.8;color:var(--muted)}
.appearance-settings-card>.button{margin-left:auto}

/* A shared art skeleton becomes a different object in each design. */
.scene-window{display:none;position:absolute;left:25px;right:12px;top:35px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--white);box-shadow:10px 15px 0 var(--card-shadow);overflow:hidden;transform:rotate(-4deg)}
.scene-titlebar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 15px;background:var(--soft);min-height:38px}
.scene-title{font:10px ui-monospace,monospace;color:var(--muted)}
.scene-title:before{content:var(--scene-title,'sketch.js')}
.scene-window-dots{display:flex;gap:4px}.scene-window-dots i{width:5px;height:5px;border-radius:50%;background:var(--muted);opacity:.5}
.scene-content{display:flex;min-height:180px}
.scene-code{font:11px/1.8 Consolas,monospace;color:var(--code-fg);white-space:pre;padding:19px 17px;background:var(--code-bg);flex:1}
.scene-keyword{color:var(--code-keyword)}.scene-string{color:var(--code-string)}
.scene-cursor{display:inline-block;height:13px;width:6px;vertical-align:middle;margin-left:3px;background:var(--lime)}
.scene-result{width:30%;background:var(--soft);padding:35px 11px;text-align:center;color:var(--accent-ink);font:14px ui-monospace,monospace}
.scene-result-shape{width:48px;height:48px;margin:5px auto 20px;background:var(--lime);border-radius:14px;transform:rotate(12deg)}
.scene-footer{display:flex;gap:9px;padding:11px 15px;font:9px ui-monospace,monospace;color:var(--muted);border-top:1px solid var(--line)}
.scene-caption:before{content:var(--scene-caption,'ready for your next idea')}
html:not([data-theme='workshop']) .sculpture-key{background:var(--soft);border-color:var(--line);box-shadow:10px 14px 0 var(--card-shadow),inset 2px 2px 0 color-mix(in srgb,var(--lime) 35%,transparent)}
html:not([data-theme='workshop']) .key-glyph,html:not([data-theme='workshop']) .key-glyph i{color:var(--accent-ink);text-shadow:none}
html:not([data-theme='workshop']) .art-caption{color:var(--muted)}
html:not([data-theme='workshop']) .art-sticker{background:var(--white);color:var(--ink);border-color:var(--line);box-shadow:3px 4px 0 var(--card-shadow)}
html:not([data-theme='workshop']) .art-sticker .studio-spark{color:var(--accent-ink)}
html:not([data-theme='workshop']) .mini-browser{background:var(--white);border-color:var(--focus);box-shadow:5px 6px 0 var(--card-shadow)}
html:not([data-theme='workshop']) .mini-browser-dots{border-color:var(--line)}
html:not([data-theme='workshop']) .mini-browser-dots i,html:not([data-theme='workshop']) .mini-lines i{background:var(--accent-ink)}
html:not([data-theme='workshop']) .mini-square{background:var(--lime)}
html:not([data-theme='workshop']) .js-block{background:var(--lime);color:var(--on-accent);border-color:var(--focus);box-shadow:7px 8px 0 var(--card-shadow)}
html:not([data-theme='workshop']) .cover-star,html:not([data-theme='workshop']) .code-brace{color:var(--accent-ink)}
html:not([data-theme='workshop']) .python-dots i{background:var(--lime);border-color:var(--focus);box-shadow:0 3px 0 var(--card-shadow)}
html:not([data-theme='workshop']) .orbit-art i{border-color:var(--accent-ink)}
html:not([data-theme='workshop']) .orbit-art b{background:var(--lime);border-color:var(--white)}
html:not([data-theme='workshop']) .cube-art i{background:var(--lime);border-color:var(--focus)}

/* STUDIO — a balanced blue workbench, compact controls and browser-window art. */
html[data-theme='studio']{--heading:"Segoe UI",Inter,system-ui,sans-serif;--button-radius:8px;--card-radius:13px;--field-radius:7px;--nav-radius:7px;--panel-radius:15px;--motion-time:170ms;--hover-lift:-2px;--scene-title:'playground / sketch.js';--scene-caption:'a workspace for your next idea'}
html[data-theme='studio'] #sidebar{border-right:1px solid var(--line)}
html[data-theme='studio'] .logo-word{font-weight:750;font-size:35px;letter-spacing:-1.8px}
html[data-theme='studio'] .hero{min-height:380px}
html[data-theme='studio'] .hero h1{font-size:clamp(48px,5vw,75px);font-weight:650;letter-spacing:-3px}
html[data-theme='studio'] .hero h1 em{font-style:normal;font-weight:650;color:var(--accent-ink)}
html[data-theme='studio'] .hero h1 em:after{height:2px;bottom:-3px;transform:none;border-radius:0}
html[data-theme='studio'] .sculpture-key,html[data-theme='studio'] .sculpture-orbit,html[data-theme='studio'] .sculpture-orb,html[data-theme='studio'] .sculpture-small-key,html[data-theme='studio'] .art-sticker{display:none}
html[data-theme='studio'] .scene-window{display:block;top:38px}
html[data-theme='studio'] .sidebar-note strong{font-size:21px}
html[data-theme='studio'] .topic-title{font-size:19px;font-weight:600}
html[data-theme='studio'] .template-content strong{font-size:17px}
html[data-theme='studio'] .nav-item.active{box-shadow:inset 3px 0 var(--lime)}

/* CYBERPUNK — chamfered panels, condensed caps, reticles and responsive neon edges. */
html[data-theme='cyberpunk']{--body-font:Bahnschrift,"Arial Narrow","Segoe UI",sans-serif;--heading:Bahnschrift,"Arial Narrow",sans-serif;--button-radius:0px;--card-radius:3px;--field-radius:2px;--nav-radius:0px;--panel-radius:4px;--motion-time:120ms;--hover-lift:-2px;--press-offset:2px;--button-shadow:3px 3px 0 color-mix(in srgb,var(--lime) 28%,transparent)}
html[data-theme='cyberpunk'] body{background-image:linear-gradient(color-mix(in srgb,var(--line) 28%,transparent) 1px,transparent 1px);background-size:100% 64px;letter-spacing:.025em}
html[data-theme='cyberpunk'] #sidebar{border-right:1px solid var(--lime)}
html[data-theme='cyberpunk'] #topbar{box-shadow:0 2px 18px color-mix(in srgb,var(--lime) 12%,transparent)}
html[data-theme='cyberpunk'] .logo-word,html[data-theme='cyberpunk'] .hero h1,html[data-theme='cyberpunk'] .page-heading h1,html[data-theme='cyberpunk'] .section-heading h2{text-transform:uppercase;letter-spacing:-.025em;font-weight:750}
html[data-theme='cyberpunk'] .logo b{font-size:23px;margin-top:4px}
html[data-theme='cyberpunk'] .hero h1{font-size:clamp(48px,5.1vw,79px);line-height:1.02}
html[data-theme='cyberpunk'] .hero h1 em{font-style:normal;color:var(--lime);text-shadow:2px 0 0 color-mix(in srgb,var(--lime) 35%,transparent)}
html[data-theme='cyberpunk'] .hero h1 em:after{height:3px;transform:skew(-25deg);border-radius:0}
html[data-theme='cyberpunk'] .button.primary,html[data-theme='cyberpunk'] .create-button,html[data-theme='cyberpunk'] .category-tab,html[data-theme='cyberpunk'] .pane-button[aria-pressed='true']{clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px));text-transform:uppercase;letter-spacing:.07em}
html[data-theme='cyberpunk'] .button:hover{box-shadow:inset 0 -2px var(--lime),var(--button-shadow)}
html[data-theme='cyberpunk'] .nav-item{border-left:2px solid transparent;text-transform:uppercase;font-size:11px;letter-spacing:.08em}
html[data-theme='cyberpunk'] .nav-item.active{border-color:var(--lime);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
html[data-theme='cyberpunk'] .project-card,html[data-theme='cyberpunk'] .idea-jar,html[data-theme='cyberpunk'] .template-tile{border-top:2px solid var(--focus)}
html[data-theme='cyberpunk'] .project-card:hover{box-shadow:4px 5px 0 color-mix(in srgb,var(--lime) 20%,transparent)}
html[data-theme='cyberpunk'] .avatar{border-radius:3px;clip-path:polygon(0 0,calc(100% - 5px) 0,100% 5px,100% 100%,0 100%)}
html[data-theme='cyberpunk'] .sculpture-key{border-radius:4px;clip-path:polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px));background:repeating-linear-gradient(0deg,transparent 0 3px,color-mix(in srgb,var(--lime) 8%,transparent) 3px 4px),var(--soft);border:2px solid var(--lime);box-shadow:none}
html[data-theme='cyberpunk'] .key-glyph,html[data-theme='cyberpunk'] .key-glyph i{color:var(--lime)}
html[data-theme='cyberpunk'] .sculpture-orbit{border-width:2px;border-color:var(--lime);box-shadow:0 0 20px color-mix(in srgb,var(--lime) 15%,transparent);width:255px;height:255px;left:40px;top:35px}
html[data-theme='cyberpunk'] .sculpture-orb{width:60px;height:60px;border:1px solid var(--lime);background:repeating-conic-gradient(var(--lime) 0 1deg,transparent 1deg 45deg);box-shadow:none}
html[data-theme='cyberpunk'] .sculpture-small-key{background:var(--soft);color:var(--lime);border:1px solid var(--lime);box-shadow:4px 4px 0 var(--line);border-radius:0}
html[data-theme='cyberpunk'] .art-sticker{border-radius:0;transform:none;border-left:3px solid var(--lime)}
html[data-theme='cyberpunk'] .studio-spark{font-family:monospace}

/* HACKER — charcoal canvas, expressive headings and quiet terminal details. */
html[data-theme='hacker']{--body-font:"Cascadia Mono","Lucida Console","Courier New",monospace;--heading:Bricolage,"Trebuchet MS",sans-serif;--button-radius:0px;--card-radius:0px;--field-radius:0px;--nav-radius:0px;--panel-radius:0px;--motion-time:0ms;--hover-lift:0px;--press-offset:0px;--button-shadow:none;--scene-title:'studio@playground:~';--scene-caption:'awaiting your next what-if'}
html[data-theme='hacker'] body{font-size:12px;background-image:none}
html[data-theme='hacker'] .hero-copy,html[data-theme='hacker'] .code-sculpture,html[data-theme='hacker'] .templates-section{animation:none}
html[data-theme='hacker'] #topbar,html[data-theme='hacker'] .hero{border:0;border-bottom:1px solid var(--line)}
html[data-theme='hacker'] footer{border:0;border-top:1px solid var(--line)}
html[data-theme='hacker'] #sidebar{border-right:1px solid var(--line)}
html[data-theme='hacker'] .logo-word{font-size:32px;letter-spacing:-2px}
html[data-theme='hacker'] .logo-word:before{content:'> ';color:var(--lime)}
html[data-theme='hacker'] .logo b{font-size:0}
html[data-theme='hacker'] .logo b:after{content:'_';font-size:29px}
html[data-theme='hacker'] .hero h1{font-size:clamp(48px,5.1vw,78px);font-weight:600;letter-spacing:-3.5px;line-height:1.06}
html[data-theme='hacker'] .hero h1 em{font-style:normal;color:var(--lime);font-weight:600}
html[data-theme='hacker'] .hero h1 em:after{width:8px;height:.65em;left:calc(100% + 9px);bottom:.12em;background:var(--lime);border-radius:0;transform:none;opacity:.4}
html[data-theme='hacker'] .button{font-size:11px;letter-spacing:0}
html[data-theme='hacker'] .button.primary:before{content:'[' / '';margin-right:1px}
html[data-theme='hacker'] .button.primary:after{content:']' / '';margin-left:1px}
html[data-theme='hacker'] .button:hover{background:var(--soft);color:var(--ink);border-color:var(--focus);filter:none;box-shadow:none}
html[data-theme='hacker'] .button.primary:hover{background:var(--lime);color:var(--on-accent)}
html[data-theme='hacker'] .nav-item{font-size:10px;letter-spacing:0;border-bottom:1px solid var(--nav-line)}
html[data-theme='hacker'] .nav-item.active:after{content:'<'}
html[data-theme='hacker'] .nav-item:hover{background:var(--nav-active-bg);color:var(--nav-active-fg)}
html[data-theme='hacker'] .sidebar-note,html[data-theme='hacker'] .empty{border-style:solid}
html[data-theme='hacker'] .sidebar-note strong{font-size:17px;line-height:1.35}
html[data-theme='hacker'] .section-heading h2,html[data-theme='hacker'] .page-heading h1{font-weight:500;letter-spacing:-1px}
html[data-theme='hacker'] .section-heading h2{font-size:24px}
html[data-theme='hacker'] .template-content strong,html[data-theme='hacker'] .project-card h3,html[data-theme='hacker'] .topic-title{font-size:16px;letter-spacing:-.6px}
html[data-theme='hacker'] .project-card:hover,html[data-theme='hacker'] .template-tile:hover{box-shadow:inset 3px 0 var(--lime);transform:none}
html[data-theme='hacker'] .cover-art{filter:grayscale(1);opacity:.75;transform:none!important}
html[data-theme='hacker'] .avatar{background:var(--soft);color:var(--accent-ink);border:1px solid var(--line);border-radius:0;font-family:var(--body-font)}
html[data-theme='hacker'] .sculpture-key,html[data-theme='hacker'] .sculpture-orbit,html[data-theme='hacker'] .sculpture-orb,html[data-theme='hacker'] .sculpture-small-key,html[data-theme='hacker'] .art-sticker{display:none}
html[data-theme='hacker'] .sculpture-grid{display:none}
html[data-theme='hacker'] .scene-window{display:block;transform:none;border:1px solid var(--line);box-shadow:0 16px 40px #00000029;top:42px;left:4px;right:4px;border-radius:0}
html[data-theme='hacker'] .scene-result{display:none}
html[data-theme='hacker'] .scene-code{font:12px/1.8 var(--body-font);min-height:210px}
html[data-theme='hacker'] .scene-titlebar{background:var(--soft);border-bottom:1px solid var(--line)}
html[data-theme='hacker'] .scene-title{color:var(--lime)}
html[data-theme='hacker'] .scene-window-dots{display:none}
html[data-theme='hacker'] .idea-jar>h2,html[data-theme='hacker'] .noticeboard h2{font-size:21px}
html[data-theme='hacker'] .idea-content h3{font-size:16px}
html[data-theme='hacker'] .empty h2{font-size:21px}
html[data-theme='hacker'] .button svg,html[data-theme='hacker'] .cover-open,html[data-theme='hacker'] .logo b{transition:none;transform:none!important}

/* MIDNIGHT — a quiet salon: generous curves, editorial serif type and gentle movement. */
html[data-theme='midnight']{--heading:"Iowan Old Style","Palatino Linotype",Georgia,serif;--button-radius:999px;--card-radius:25px;--field-radius:14px;--nav-radius:999px;--panel-radius:27px;--motion-time:320ms;--motion-ease:cubic-bezier(.16,1,.3,1);--hover-lift:-4px;--button-shadow:0 10px 25px var(--card-shadow)}
html[data-theme='midnight'] .logo-word{font-size:43px;font-weight:500;letter-spacing:-1.8px;font-style:italic}
html[data-theme='midnight'] .logo b{font-style:normal;font-size:22px;vertical-align:super}
html[data-theme='midnight'] .hero h1{font-size:clamp(58px,6vw,94px);font-weight:400;letter-spacing:-4px;line-height:1.02}
html[data-theme='midnight'] .hero h1 em{color:var(--accent-ink);font-weight:400}
html[data-theme='midnight'] .hero h1 em:after{display:none}
html[data-theme='midnight'] .hero-copy>p{line-height:2.1}
html[data-theme='midnight'] .nav-item.active{box-shadow:inset 0 0 0 1px var(--line)}
html[data-theme='midnight'] .nav-item.active:after{content:'·';font-size:24px}
html[data-theme='midnight'] .button{padding-inline:21px}
html[data-theme='midnight'] .template-tile{padding:23px}
html[data-theme='midnight'] .project-cover{height:180px}
html[data-theme='midnight'] .project-card h3,html[data-theme='midnight'] .topic-title{font-size:24px;font-weight:400;letter-spacing:-.3px}
html[data-theme='midnight'] .sculpture-key{border-radius:95px;background:radial-gradient(ellipse at 25% 15%,var(--line),var(--soft) 65%);box-shadow:10px 20px 30px #0004,inset 1px 2px 0 color-mix(in srgb,var(--lime) 30%,transparent)}
html[data-theme='midnight'] .key-glyph{font-family:Georgia,serif;font-weight:400}
html[data-theme='midnight'] .sculpture-orbit{border-width:2px;border-color:var(--accent-ink);box-shadow:none;opacity:.45;transform:rotate(-28deg);width:260px;height:260px;left:45px;top:25px}
html[data-theme='midnight'] .sculpture-orb{background:radial-gradient(circle at 30% 20%,color-mix(in srgb,var(--lime) 15%,#fff),var(--lime) 35%,var(--soft) 95%);box-shadow:0 8px 35px #0003}
html[data-theme='midnight'] .sculpture-small-key{background:var(--white);color:var(--accent-ink);border-radius:50%;border-color:var(--line);box-shadow:0 12px 25px #0003}
html[data-theme='midnight'] .art-sticker{border-radius:999px;padding:13px 17px;transform:rotate(-5deg);box-shadow:0 8px 25px #0002}
html[data-theme='midnight'] .category-tab{padding-inline:17px}
html[data-theme='midnight'] .section-heading .eyebrow{letter-spacing:2px}

/* DAYLIGHT — a clean architecture: small radii, crisp separators and underline states. */
html[data-theme='daylight']{--heading:"Segoe UI Variable Display","Segoe UI",Arial,sans-serif;--button-radius:5px;--card-radius:8px;--field-radius:5px;--nav-radius:3px;--panel-radius:10px;--motion-time:140ms;--hover-lift:-1px;--button-shadow:0 3px 10px var(--card-shadow);--scene-title:'Preview / index.html';--scene-caption:'a fresh canvas, ready to build'}
html[data-theme='daylight'] .logo-word{font-size:34px;font-weight:700;letter-spacing:-1.5px}
html[data-theme='daylight'] #sidebar{border-right:1px solid var(--line)}
html[data-theme='daylight'] .hero h1{font-size:clamp(47px,5vw,76px);font-weight:650;letter-spacing:-3px}
html[data-theme='daylight'] .hero h1 em{font-style:normal;font-weight:650;color:var(--accent-ink)}
html[data-theme='daylight'] .hero h1 em:after{height:2px;bottom:-5px;transform:none;border-radius:0;background:var(--focus)}
html[data-theme='daylight'] .nav-item.active{background:var(--white);box-shadow:inset 3px 0 var(--lime)}
html[data-theme='daylight'] .nav-item.active:after{display:none}
html[data-theme='daylight'] .category-tab{border-radius:0;background:transparent;border:0;border-bottom:2px solid transparent}
html[data-theme='daylight'] .category-tab.active{color:var(--accent-ink);border-bottom-color:var(--focus);background:transparent}
html[data-theme='daylight'] .project-card:hover{box-shadow:0 7px 20px var(--card-shadow)}
html[data-theme='daylight'] .sculpture-key,html[data-theme='daylight'] .sculpture-orbit,html[data-theme='daylight'] .sculpture-orb,html[data-theme='daylight'] .sculpture-small-key,html[data-theme='daylight'] .art-sticker{display:none}
html[data-theme='daylight'] .scene-window{display:block;transform:none;top:40px;left:10px;box-shadow:0 15px 40px var(--card-shadow)}
html[data-theme='daylight'] .scene-result-shape{border-radius:4px;transform:none}
html[data-theme='daylight'] .scene-result{border-left:1px solid var(--line)}
html[data-theme='daylight'] .template-content strong{font-size:17px;font-weight:600}
html[data-theme='daylight'] .project-card h3,html[data-theme='daylight'] .topic-title{font-size:19px}
html[data-theme='daylight'] .sidebar-note{background:var(--white)}

/* PAPER — a small coding journal: ink rules, serif headings, stamped controls. */
html[data-theme='paper']{--heading:"Iowan Old Style","Palatino Linotype",Georgia,serif;--button-radius:3px;--card-radius:3px;--field-radius:2px;--nav-radius:0px;--panel-radius:5px;--motion-time:150ms;--hover-lift:-1px;--press-offset:2px;--button-shadow:2px 3px 0 var(--card-shadow);--scene-title:'FIELD NOTES / 001';--scene-caption:'leave room for a happy accident'}
html[data-theme='paper'] body{background-image:radial-gradient(color-mix(in srgb,var(--ink) 7%,transparent) .55px,transparent .7px);background-size:5px 5px}
html[data-theme='paper'] #sidebar{background:var(--paper);border-right:1px solid var(--line)}
html[data-theme='paper'] .logo-word{font:italic 45px/1.1 var(--heading);letter-spacing:-2px;border-bottom:2px solid var(--ink);padding-bottom:10px}
html[data-theme='paper'] .sidebar-tagline{font-family:var(--heading);font-style:italic;font-size:12px}
html[data-theme='paper'] .hero{border-bottom:3px double var(--line)}
html[data-theme='paper'] .hero h1{font:400 clamp(56px,5.8vw,89px)/1.05 var(--heading);letter-spacing:-3.5px}
html[data-theme='paper'] .hero h1 em{font-weight:400;color:var(--ink)}
html[data-theme='paper'] .hero h1 em:after{height:1px;bottom:1px;background:var(--ink);border-radius:0;transform:rotate(-1deg)}
html[data-theme='paper'] .nav-item{border-bottom:1px solid var(--line);padding-left:5px;font-family:var(--heading);font-size:16px}
html[data-theme='paper'] .nav-item.active{background:transparent;font-style:italic;color:var(--accent-ink)}
html[data-theme='paper'] .nav-item.active:after{content:'→';font-family:Georgia,serif}
html[data-theme='paper'] .button.primary{background:var(--white);color:var(--ink);border:1px solid var(--ink);box-shadow:2px 2px 0 var(--card-shadow)}
html[data-theme='paper'] .button.primary:hover{background:var(--soft);color:var(--ink);border-color:var(--ink)}
html[data-theme='paper'] .template-tile{background:transparent!important;border:0;border-top:1px solid var(--ink);border-bottom:1px solid var(--line);padding-left:4px;padding-right:4px}
html[data-theme='paper'] .template-tile:hover{box-shadow:none;background:var(--white)!important}
html[data-theme='paper'] .project-card{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--ink)}
html[data-theme='paper'] .project-card:hover{box-shadow:none;border-color:var(--ink)}
html[data-theme='paper'] .project-card h3,html[data-theme='paper'] .topic-title{font-family:var(--heading);font-size:24px;font-weight:400;letter-spacing:-.5px}
html[data-theme='paper'] .project-cover{filter:sepia(.25)}
html[data-theme='paper'] .section-heading h2{font-weight:400;font-size:32px}
html[data-theme='paper'] .eyebrow{font-size:9px;letter-spacing:1.6px}
html[data-theme='paper'] .sculpture-key,html[data-theme='paper'] .sculpture-orbit,html[data-theme='paper'] .sculpture-orb,html[data-theme='paper'] .sculpture-small-key{display:none}
html[data-theme='paper'] .scene-window{display:block;top:25px;left:25px;right:15px;transform:rotate(-5deg);border-color:var(--ink);border-radius:1px;box-shadow:4px 5px 0 var(--soft),5px 6px 0 var(--line)}
html[data-theme='paper'] .scene-titlebar{background:transparent;border-bottom:1px solid var(--ink)}
html[data-theme='paper'] .scene-window-dots{display:none}
html[data-theme='paper'] .scene-code{background:repeating-linear-gradient(transparent 0 19px,var(--line) 19px 20px),var(--white);font-size:11px;line-height:20px;border-left:1px solid color-mix(in srgb,var(--lime) 45%,transparent);margin-left:22px;padding-left:15px}
html[data-theme='paper'] .scene-result{display:none}
html[data-theme='paper'] .scene-cursor{height:13px;width:1px;background:var(--ink)}
html[data-theme='paper'] .art-sticker{bottom:0;left:0;z-index:5;border-color:var(--ink);transform:rotate(-10deg);font-family:Georgia,serif}
html[data-theme='paper'] .topic-row{background:transparent}
html[data-theme='paper'] .topic-symbol{background:transparent;border:1px solid var(--line)}
html[data-theme='paper'] .idea-jar{background:var(--white);border-top:3px double var(--ink)}
html[data-theme='paper'] .idea-jar h2{font-style:italic;font-weight:400}
html[data-theme='paper'] .profile-header:after{content:'&';font-family:Georgia,serif;opacity:.1}

/* RETRO — desktop windows, title bars, bevels and honest one-pixel press feedback. */
html[data-theme='retro']{--body-font:Tahoma,"MS Sans Serif",Verdana,sans-serif;--heading:Tahoma,"MS Sans Serif",Verdana,sans-serif;--button-radius:0px;--card-radius:0px;--field-radius:0px;--nav-radius:0px;--panel-radius:0px;--motion-time:0ms;--hover-lift:0px;--press-offset:1px;--button-shadow:none;--bevel-out:inset 1px 1px #fff,inset -1px -1px #151515,inset 2px 2px #dfdfdf,inset -2px -2px #777;--bevel-in:inset 1px 1px #151515,inset -1px -1px #fff,inset 2px 2px #777,inset -2px -2px #dfdfdf;--scene-title:'Untitled — Studio.exe';--scene-caption:'Ready. Double-click your next idea.'}
html[data-theme='retro'] body{background:color-mix(in srgb,var(--lime) 52%,#65918a);font-size:12px}
html[data-theme='retro'] .hero-copy,html[data-theme='retro'] .code-sculpture,html[data-theme='retro'] .templates-section{animation:none}
html[data-theme='retro'] #sidebar{border:0;box-shadow:var(--bevel-out);padding:25px 15px 18px;background:#c0c0c0}
html[data-theme='retro'] .logo-word{font-size:31px;letter-spacing:-1.5px;font-weight:700}
html[data-theme='retro'] .logo b{font-size:21px;margin-top:3px}
html[data-theme='retro'] #topbar{background:var(--soft);border:0;box-shadow:var(--bevel-out);height:83px}
html[data-theme='retro'] main{background:var(--paper);margin:19px 18px 0;padding:0 25px 35px;border:0;box-shadow:var(--bevel-out);max-width:none}
html[data-theme='retro'] .hero{padding-top:34px;border-bottom:2px groove #fff}
html[data-theme='retro'] .hero h1{font-size:clamp(40px,4.1vw,64px);line-height:1.13;letter-spacing:-2px;font-weight:700}
html[data-theme='retro'] .hero h1 em{font-style:normal;font-weight:700;color:var(--accent-ink)}
html[data-theme='retro'] .hero h1 em:after{display:none}
html[data-theme='retro'] .button,html[data-theme='retro'] #sidebar .button.primary,html[data-theme='retro'] .category-tab,html[data-theme='retro'] .pane-button,html[data-theme='retro'] .close-button,html[data-theme='retro'] .appearance-variant{background:#c0c0c0;color:#111;border:0;box-shadow:var(--bevel-out);border-radius:0!important}
html[data-theme='retro'] .button:hover,html[data-theme='retro'] .button.primary:hover{background:#cdcdcd;color:#111;filter:none;transform:none;box-shadow:var(--bevel-out)}
html[data-theme='retro'] .button:active,html[data-theme='retro'] .category-tab:active,html[data-theme='retro'] .pane-button[aria-pressed='true'],html[data-theme='retro'] .appearance-variant[aria-checked='true']{box-shadow:var(--bevel-in);background:#c0c0c0;transform:translate(1px,1px)}
html[data-theme='retro'] .category-tab.active{background:#ddd;color:#111;border:0;box-shadow:var(--bevel-in)}
html[data-theme='retro'] .nav-item{border:1px dotted transparent;font-size:11px;color:#111}
html[data-theme='retro'] .nav-item.active{background:var(--lime);color:var(--on-accent);border:1px dotted currentColor}
html[data-theme='retro'] .nav-item.active:after{content:'›'}
html[data-theme='retro'] .sidebar-tagline,html[data-theme='retro'] .nav-label,html[data-theme='retro'] .sidebar-signature{color:#333}
html[data-theme='retro'] .sidebar-note{background:#c0c0c0;border:0;box-shadow:var(--bevel-in);padding:16px 13px}
html[data-theme='retro'] .sidebar-note strong{font-size:18px;color:#111}
html[data-theme='retro'] .sidebar-note p{color:#333}
html[data-theme='retro'] .sidebar-note-link,html[data-theme='retro'] .sidebar-note .studio-spark{color:var(--accent-ink)}
html[data-theme='retro'] .template-tile,html[data-theme='retro'] .project-card,html[data-theme='retro'] .settings-card,html[data-theme='retro'] .discussion-post,html[data-theme='retro'] .empty,html[data-theme='retro'] .idea-jar,html[data-theme='retro'] .noticeboard,html[data-theme='retro'] .topic-list,html[data-theme='retro'] .modal{box-shadow:var(--bevel-out);border:0;background:#c0c0c0}
html[data-theme='retro'] .project-card:hover,html[data-theme='retro'] .template-tile:hover{transform:none;box-shadow:var(--bevel-out)}
html[data-theme='retro'] .template-tile.selected{box-shadow:var(--bevel-in);outline:1px dotted #111;outline-offset:-5px}
html[data-theme='retro'] .template-content strong,html[data-theme='retro'] .project-card h3,html[data-theme='retro'] .topic-title{font-size:16px;letter-spacing:-.3px}
html[data-theme='retro'] .section-heading h2,html[data-theme='retro'] .page-heading h1{font-size:29px;font-weight:700;letter-spacing:-1px}
html[data-theme='retro'] .input,html[data-theme='retro'] .search-input,html[data-theme='retro'] .topbar-search,html[data-theme='retro'] .recovery-code,html[data-theme='retro'] .post-code{border:0;box-shadow:var(--bevel-in)}
html[data-theme='retro'] .search-input .input{box-shadow:none}
html[data-theme='retro'] .topic-list{padding:4px}
html[data-theme='retro'] .topic-row{background:#fff;border-bottom:1px solid #aaa}
html[data-theme='retro'] .topic-row:hover{background:#f0f0f0}
html[data-theme='retro'] .modal-head,html[data-theme='retro'] .viewer-caption{background:var(--lime);color:var(--on-accent);padding:7px 10px;font-weight:700}
html[data-theme='retro'] .modal{padding:5px}
html[data-theme='retro'] .modal .form,html[data-theme='retro'] .appearance-body{padding:18px}
html[data-theme='retro'] .modal-head{margin-bottom:0}
html[data-theme='retro'] .modal-head h2{font:700 17px Tahoma,sans-serif;letter-spacing:0}
html[data-theme='retro'] .viewer-frame{box-shadow:var(--bevel-out);padding:4px;border:0;background:#c0c0c0}
html[data-theme='retro'] .shared-pane-buttons{background:#c0c0c0;border:0;box-shadow:var(--bevel-in);padding:4px;gap:4px}
html[data-theme='retro'] .avatar{border-radius:0;border:1px solid #777;background:#ddd;color:#111;font-family:Tahoma,sans-serif}
html[data-theme='retro'] .sculpture-key,html[data-theme='retro'] .sculpture-orbit,html[data-theme='retro'] .sculpture-orb,html[data-theme='retro'] .sculpture-small-key,html[data-theme='retro'] .art-sticker{display:none}
html[data-theme='retro'] .scene-window{display:block;transform:rotate(-3deg);background:#c0c0c0;border:0;box-shadow:var(--bevel-out);padding:4px;top:31px;left:12px;right:3px}
html[data-theme='retro'] .scene-titlebar{background:var(--lime);color:var(--on-accent);border:0;padding:7px}
html[data-theme='retro'] .scene-title{color:var(--on-accent);font:700 10px Tahoma,sans-serif}
html[data-theme='retro'] .scene-window-dots i{border-radius:0;width:10px;height:10px;background:#c0c0c0;box-shadow:var(--bevel-out);opacity:1}
html[data-theme='retro'] .scene-content{margin-top:5px;box-shadow:var(--bevel-in);padding:3px}
html[data-theme='retro'] .scene-code{background:#fff;font:10px/1.8 'Courier New',monospace;min-height:173px}
html[data-theme='retro'] .scene-footer{padding:7px;box-shadow:var(--bevel-in);margin-top:5px;border:0;font:9px Tahoma,sans-serif}
html[data-theme='retro'] .scene-result{background:#ddd;padding:25px 5px}
html[data-theme='retro'] .scene-result-shape{border-radius:0;box-shadow:var(--bevel-out);transform:none;width:42px;height:42px}
html[data-theme='retro'] .scene-cursor{background:#000;width:1px}
html[data-theme='retro'] .idea-jar>h2,html[data-theme='retro'] .noticeboard h2{font:700 22px Tahoma,sans-serif}
html[data-theme='retro'] .idea-content h3{font-size:16px}
html[data-theme='retro'] footer{margin-top:18px;background:#c0c0c0;border:0;box-shadow:var(--bevel-out);padding:16px 20px}
html[data-theme='retro'] .toast{background:#c0c0c0;color:#111;box-shadow:var(--bevel-out);border:0}

/* Responsive adjustments preserve the same content order and keyboard navigation. */
@media(max-width:1250px){.appearance-name{display:none}.appearance-trigger{width:35px;height:35px;padding:7px;min-height:35px}}
@media(max-width:1000px){html[data-theme='cyberpunk'] .hero h1,html[data-theme='studio'] .hero h1,html[data-theme='daylight'] .hero h1{font-size:clamp(44px,5.5vw,58px);letter-spacing:-2.5px}html[data-theme='hacker'] .hero h1{font-size:clamp(34px,4.2vw,44px);letter-spacing:-2px}html[data-theme='midnight'] .hero h1,html[data-theme='paper'] .hero h1{font-size:clamp(50px,5.8vw,64px);letter-spacing:-3px}html[data-theme='retro'] .hero h1{font-size:clamp(35px,4.2vw,46px)}html[data-theme='hacker'] .sidebar-note strong{font-size:15px}html[data-theme='cyberpunk'] .nav-item{font-size:10px}html[data-theme='paper'] .nav-item{font-size:15px}html[data-theme='midnight'] .template-tile{padding:18px}html[data-theme='retro'] main{margin-inline:12px;padding-inline:20px}}
@media(max-width:700px){html[data-theme] #topbar{background:var(--paper)}html[data-theme='retro'] #topbar{background:#c0c0c0;height:70px}html[data-theme='retro'] #sidebar{top:70px}.appearance-dialog{padding:22px}.appearance-mini{height:86px}.mini-editor{width:29%}.mini-heading{font-size:14px}.mini-page{padding:13px 8px}.appearance-design>small{font-size:9px}html[data-theme='hacker'] .hero-copy>p{max-width:290px}html[data-theme='midnight'] .hero h1,html[data-theme='paper'] .hero h1{font-size:clamp(50px,8vw,65px)}html[data-theme='retro'] .appearance-dialog{padding:5px}}
@media(max-width:500px){.appearance-trigger{width:32px;height:32px;min-height:32px;padding:6px}.appearance-name{display:none}.appearance-dialog{padding:21px}.appearance-designs{gap:10px}.appearance-design{padding:8px}.appearance-mini{height:75px}.mini-nav{width:15px}.mini-nav:after{margin-inline:3px}.mini-page{padding:12px 7px;gap:7px}.mini-heading{font-size:12px;letter-spacing:-.6px}.mini-editor{display:none}.mini-preview-cards i{width:30px;height:15px}.mini-preview-action{font-size:6px}.appearance-design-info{font-size:11px}.appearance-design>small{font-size:8px;line-height:1.5}.appearance-variants{display:grid;grid-template-columns:1fr 1fr;gap:8px}.appearance-variant{padding:8px;font-size:10px}.appearance-variant-swatch{width:20px;height:20px}.appearance-intro{font-size:11px}.appearance-variant-title{font-size:22px}.appearance-dialog .modal-head h2{font-size:27px}html[data-theme='hacker'] .hero h1{font-size:clamp(29px,8.9vw,42px);letter-spacing:-2px;line-height:1.18}html[data-theme='studio'] .hero h1,html[data-theme='daylight'] .hero h1,html[data-theme='cyberpunk'] .hero h1{font-size:clamp(37px,10.8vw,53px);letter-spacing:-2px}html[data-theme='midnight'] .hero h1,html[data-theme='paper'] .hero h1{font-size:clamp(43px,12.2vw,58px);letter-spacing:-2.5px}html[data-theme='retro'] .hero h1{font-size:clamp(32px,9vw,45px);letter-spacing:-1.5px}html[data-theme='hacker'] .hero-community-link{font-size:9px}html[data-theme='hacker'] .hero-actions{gap:12px}html[data-theme='hacker'] .hero-actions .button{padding-inline:11px;font-size:10px}html[data-theme='hacker'] .section-heading h2{font-size:22px}html[data-theme='hacker'] .section-heading .text-link{font-size:9px}html[data-theme='paper'] .section-heading h2{font-size:29px}html[data-theme='paper'] .section-heading .text-link{font-size:9px}html[data-theme='retro'] main{margin:12px 10px 0;padding:0 16px 28px}html[data-theme='retro'] .hero{padding-top:28px}html[data-theme='retro'] .section-heading h2{font-size:23px}html[data-theme='retro'] .section-heading .text-link{font-size:9px}html[data-theme='retro'] .modal-head h2{font-size:16px}html[data-theme='retro'] .appearance-dialog{padding:4px}.scene-window{left:10px;right:4px}.scene-code{font-size:10px;padding:17px 13px}.scene-result{width:28%;padding-inline:6px}html[data-theme='midnight'] .project-card h3{font-size:24px}}
@media(max-width:420px){html[data-theme] .topbar-label{display:none}html[data-theme] .account-chip>span:last-child{display:none}html[data-theme] .account-actions{gap:5px}html[data-theme] #topbar{gap:10px}.scene-code{font-size:9px}html[data-theme='hacker'] .scene-code{font-size:10px}html[data-theme='paper'] .section-heading h2{font-size:25px}}
@media(max-width:360px){html[data-theme='workshop'] .hero h1{font-size:clamp(36px,11.7vw,43px)}html[data-theme='cyberpunk'] .hero h1{font-size:clamp(32px,10.4vw,37px)}html[data-theme='midnight'] .hero h1,html[data-theme='paper'] .hero h1{font-size:clamp(37px,12.2vw,43px)}}
@media(max-width:1000px){html[data-theme='hacker'] .hero h1{font-size:clamp(46px,5.8vw,64px)}}
@media(max-width:500px){html[data-theme='hacker'] .hero h1{font-size:clamp(38px,11.7vw,57px);letter-spacing:-2px;line-height:1.06}}
@media(max-width:360px){html[data-theme='hacker'] .hero h1{font-size:clamp(35px,11.2vw,41px);letter-spacing:-2.5px}}
/* Short screens use one scrollable sheet instead of clipping the palette or Done. */
@media(max-height:700px){.appearance-body{overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 5px 2px}.appearance-designs{max-height:none;overflow:visible;flex:0 0 auto}}
@media(hover:none){html[data-theme] .button:hover,html[data-theme] .project-card:hover,html[data-theme] .template-tile:hover{transform:none}}
html[data-motion='reduced'] *,html[data-motion='reduced'] *:before,html[data-motion='reduced'] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-motion='reduced'] .button:hover,html[data-motion='reduced'] .project-card:hover,html[data-motion='reduced'] .template-tile:hover{transform:none}
html[data-theme] select,html[data-theme] select option,html[data-theme] select optgroup{background-color:var(--field-bg);color:var(--field-fg);border-color:var(--line);color-scheme:inherit}html[data-theme] select.input{border-radius:var(--field-radius);accent-color:var(--focus)}
.feed-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:10px 0 22px}.feed-tab{padding:11px 0;border-bottom:2px solid transparent;font-size:13px;color:var(--muted);transition:color .18s,border-color .18s}.feed-tab.active{border-color:var(--accent-ink);color:var(--ink)}.feed-tab:hover{color:var(--accent-ink)}.feed-explanation{font-size:12px;color:var(--muted);margin:0 0 20px}.shared-pane-buttons{flex-wrap:wrap}html[data-theme="retro"] .feed-tab{padding:9px 12px;border:1px solid var(--line)}html[data-theme="retro"] .feed-tab.active{background:var(--soft)}
.studio-chevron{display:inline-block;flex:0 0 auto;vertical-align:middle;fill:none}.text-link:has(.studio-chevron),.sidebar-note-link:has(.studio-chevron),.idea-start:has(.studio-chevron),.hero-community-link:has(.studio-chevron){display:inline-flex;align-items:center;gap:7px}.sculpture-small-key>.studio-chevron{width:32px;height:32px}.cover-open>.studio-chevron{width:21px;height:21px}.scene-footer>.studio-chevron{width:18px;height:18px}
