/* Appearance is orthogonal to the ready-made presets. */
:root{--text-scale:1;--font-family:'Manrope',sans-serif;font-family:var(--font-family)}
html[data-mode=dark]{color-scheme:dark;--bg:#101210;--sidebar:#141614;--surface:#1a1d1a;--surface2:#202420;--surface3:#2a2f29;--border:#2b302a;--text:#f0f2eb;--muted:#92998e;--soft:#b3bcae;--hero:#202a1d;--hero-end:#151b13;--shadow:0 22px 70px #0004;--blue:#9cc8ff;--red:#ffa598}
html[data-mode=light]{color-scheme:light;--bg:#f4f5f2;--sidebar:#fafbf8;--surface:#fff;--surface2:#f3f5f0;--surface3:#e9eee3;--border:#dce1d6;--text:#202b24;--muted:#687463;--soft:#53634c;--hero:#e0eadc;--hero-end:#f2f5ed;--shadow:0 22px 70px #27342c13;--blue:#34669e;--red:#b64c46}
html[data-mode] .hero{background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface));min-height:212px}
.hero .orbit-art{display:none}.hero>.motion-scene{position:absolute;right:-28px;top:0;width:53%;height:100%;z-index:0;pointer-events:none}.hero-copy{z-index:1}.hero-grid{z-index:0}.hero p{max-width:250px}.phone-stage>.motion-scene{position:absolute;inset:0;width:100%;height:100%;opacity:.18;pointer-events:none;mask-image:radial-gradient(ellipse at 50% 45%,transparent 20%,#000 70%)}.phone-stage>.big-phone,.phone-stage>.control-toolbar,.phone-stage>.hint{z-index:1}.motion-scene{display:block;contain:strict}.device-preview{transform:perspective(650px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .45s cubic-bezier(.16,1,.3,1)}
.route-view,.scene-in{animation:none}.device-card{transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .3s,box-shadow .3s}.button:active{transform:translateY(0) scale(.97)}.nav-btn,.tab{transition:color .22s,background .22s,box-shadow .22s}.nav-btn.active{box-shadow:inset 2px 0 0 var(--accent)}.nav-btn:hover .icon{transform:translateY(-1px)}.nav-btn .icon{transition:transform .25s}.big-phone{transition:width .55s cubic-bezier(.16,1,.3,1),height .55s cubic-bezier(.16,1,.3,1)}
html[data-ui-motion=essential] .device-card:hover{transform:translateY(-2px)}html[data-ui-motion=essential] .mini-phone{transition-duration:.2s}html[data-ui-motion=essential] .wallpaper:after,html[data-ui-motion=essential] .mini-chart span{animation:none}html[data-ui-motion=fluid] .modal{animation:studio-rise .55s cubic-bezier(.16,1,.3,1)}html[data-ui-motion=cinematic] .modal{animation:studio-focus .65s cubic-bezier(.16,1,.3,1)}html[data-ui-motion=cinematic] .device-card:hover{transform:translateY(-6px)}html[data-ui-motion=cinematic] .button.primary:hover{box-shadow:0 8px 28px color-mix(in srgb,var(--accent) 23%,transparent)}html[data-ui-motion=cinematic] .chat-message:last-child{animation:studio-rise .55s cubic-bezier(.16,1,.3,1)}
.quick-theme{width:31px;height:31px;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center;color:var(--soft);background:var(--surface)}.quick-theme .icon{width:15px;height:15px}.quick-theme:hover{color:var(--accent);border-color:var(--accent)}
.design-drawer{width:480px;max-width:100%;padding:0;display:flex;flex-direction:column;overflow:hidden;animation:slideIn .35s cubic-bezier(.16,1,.3,1)}.studio-header{padding:23px 24px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.studio-header .eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--accent);margin-bottom:6px}.studio-header .modal-title{margin-bottom:6px}.studio-header .modal-title h2{font-size:22px}.studio-header p{font-size:11px;line-height:1.6;color:var(--muted)}.studio-tabs{display:flex;gap:4px;margin-top:17px;padding:4px;background:var(--surface2);border-radius:10px}.studio-tab{padding:8px 6px;flex:1;border-radius:7px;color:var(--muted);font-size:11px;font-weight:650}.studio-tab.active{background:var(--surface3);color:var(--text);box-shadow:0 1px 4px #0001}.studio-body{padding:19px 24px 25px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0}.studio-footer{padding:14px 24px;border-top:1px solid var(--border);background:var(--surface);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-footer .button{font-size:11px;padding:10px 15px;min-height:38px}.studio-footer .hint{font-size:9px;max-width:160px}.studio-preview{position:relative;min-height:162px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(115deg,var(--accent-dim),var(--surface2));overflow:hidden;isolation:isolate;margin-bottom:23px}.studio-preview>.motion-scene{position:absolute;right:-18px;top:0;width:60%;height:100%;z-index:-1}.studio-preview-copy{padding:21px;position:relative;max-width:80%}.studio-preview-tag{font-size:8px;letter-spacing:1.5px;color:var(--accent);margin-bottom:10px}.studio-preview h3{font-size:calc(23px * var(--text-scale));line-height:1.15;letter-spacing:-.8px;max-width:220px}.studio-preview p{font-size:calc(10px * var(--text-scale));color:var(--soft);margin:9px 0}.studio-preview-pill{display:inline-flex;gap:7px;align-items:center;font-size:9px;color:var(--accent)}.studio-preview-pill:before{content:'';width:5px;height:5px;background:var(--accent);border-radius:50%}.preview-replay{position:absolute;top:11px;right:11px;background:var(--surface);border:1px solid var(--border);border-radius:50%;height:28px;width:28px;display:grid;place-items:center;color:var(--soft)}.preview-replay .icon{height:12px;width:12px}.studio-section{margin:0 0 23px}.studio-section-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:650;margin-bottom:11px}.studio-section-title small{font-size:10px;font-weight:450;color:var(--muted)}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-option{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--border);background:var(--surface2);border-radius:10px;padding:13px;font-size:11px;font-weight:650}.mode-option .icon{width:18px;height:18px}.mode-option.active{border-color:var(--accent);background:var(--accent-dim);color:var(--accent)}.swatch-row{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.swatch{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:9px;padding:5px 0}.swatch-circle{height:33px;width:33px;display:grid;place-items:center;border-radius:50%;border:3px solid var(--surface);outline:1px solid transparent;background:var(--swatch);color:#102314;transition:transform .25s,outline-color .25s}.swatch:hover .swatch-circle{transform:scale(1.08)}.swatch.active .swatch-circle{outline-color:var(--accent)}.swatch.active{color:var(--text)}.swatch .icon{width:14px;height:14px}.font-options{display:grid;gap:7px}.font-option{display:flex;justify-content:space-between;align-items:center;width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:10px;text-align:left;background:var(--surface2)}.font-option.active{border-color:var(--accent)}.font-option .font-sample{font-size:19px;letter-spacing:-.5px;line-height:1.2}.font-option .font-name{display:block;font-size:10px;line-height:1.4;margin-top:5px;color:var(--muted)}.font-option .icon{width:16px;height:16px;color:var(--accent)}.size-range{width:100%;accent-color:var(--accent);margin:8px 0;cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.range-actions{display:flex;gap:7px;margin-top:10px}.range-actions button{flex:1;border:1px solid var(--border);border-radius:7px;font-size:9px;padding:7px 2px;color:var(--muted)}.range-actions button.active{background:var(--accent-dim);color:var(--accent);border-color:var(--accent)}
.motion-choice{display:flex;align-items:center;gap:13px;border:1px solid var(--border);border-radius:12px;padding:12px;text-align:left;width:100%;margin-bottom:9px;background:var(--surface2)}.motion-choice.active{border-color:var(--accent);background:var(--accent-dim)}.motion-choice-copy{flex:1;min-width:0}.motion-choice strong{font-size:12px;font-weight:650;display:block}.motion-choice small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.motion-choice .icon{height:16px;width:16px;color:var(--accent)}.motion-glyph{position:relative;width:52px;height:43px;border:1px solid var(--border);background:var(--surface);border-radius:8px;display:flex;gap:3px;justify-content:center;align-items:center;overflow:hidden;flex-shrink:0}.motion-glyph i{display:block;width:6px;height:18px;border-radius:4px;background:var(--accent)}.motion-glyph.essential i{height:6px;animation:essential-beat 2.4s infinite}.motion-glyph.fluid i{animation:fluid-beat 1.8s ease-in-out infinite alternate}.motion-glyph.cinematic i{animation:cinema-beat 2.4s cubic-bezier(.16,1,.3,1) infinite}.motion-glyph i:nth-child(2){animation-delay:.15s;opacity:.7}.motion-glyph i:nth-child(3){animation-delay:.3s;opacity:.4}.scene-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scene-choice{border:1px solid var(--border);border-radius:10px;padding:13px 5px 10px;background:var(--surface2);text-align:center}.scene-choice.active{border-color:var(--accent);color:var(--accent)}.scene-choice strong{display:block;font-size:10px;margin-top:7px}.scene-symbol{width:35px;height:35px;margin:auto;display:block;position:relative}.scene-symbol.orbital{border:1px solid currentColor;border-radius:50%;transform:rotate(-30deg) scaleY(.6)}.scene-symbol.orbital:after{content:'';position:absolute;inset:8px;background:var(--accent);border-radius:50%;transform:scaleY(1.6)}.scene-symbol.aurora{background:repeating-linear-gradient(120deg,transparent 0 5px,var(--accent) 5px 7px,transparent 7px 12px);border-radius:50% 15%;opacity:.8}.scene-symbol.constellation{background:radial-gradient(circle,var(--accent) 1px,transparent 2px);background-size:8px 8px;border-radius:50%;border:1px solid var(--border)}.motion-state-note{font-size:10px;color:var(--muted);background:var(--surface2);padding:10px 12px;border-radius:9px;margin:11px 0 20px}.motion-state-note strong{color:var(--text)}.studio-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.studio-actions .button{font-size:10px;padding:10px}.reference-box{padding:14px;border:1px solid var(--border);border-radius:11px;margin-top:15px;font-size:10px;color:var(--muted);line-height:1.8}.reference-box h4{font-size:11px;color:var(--text);margin-bottom:5px}.reference-box a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.reference-box p+p{margin-top:8px}.configuration-list{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:16px 0}.configuration-list div{background:var(--surface2);padding:10px 12px}.configuration-list small{display:block;font-size:9px;color:var(--muted)}.configuration-list strong{font-size:11px;font-weight:550}.design-drawer .review-textarea{font-size:12px;min-height:90px}.design-drawer .design-option{padding:10px}.design-drawer .design-option strong{font-size:12px}.design-drawer .design-option small{font-size:9px}.design-drawer .hint,.design-drawer .review-note{font-size:10px}.design-drawer .setting-line strong{font-size:12px}.design-drawer .setting-line small{font-size:10px}.studio-preset-intro{font-size:11px;color:var(--muted);margin-bottom:15px}.studio-error-free{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted)}.studio-error-free .icon{height:13px;width:13px;color:var(--accent)}
@keyframes studio-rise{from{opacity:0;transform:translateY(20px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes studio-focus{from{opacity:0;transform:translateY(28px) scale(.97);filter:blur(5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes essential-beat{0%,65%,100%{opacity:.35}35%{opacity:1}}@keyframes fluid-beat{from{transform:scaleY(.45)}to{transform:scaleY(1.2)}}@keyframes cinema-beat{0%,100%{transform:translateY(22px);opacity:0}30%,75%{transform:translateY(0);opacity:1}}
@media(min-width:721px){.sidebar{overflow-y:auto;scrollbar-width:thin}.workspace{margin-top:25px}.profile{padding-top:13px}.sidebar-bottom{padding-top:20px}.side-note{margin-top:12px;margin-bottom:14px}.side-note p{margin-top:5px;margin-bottom:7px}}
@media(max-width:1100px){.workspace .grow small{display:none}.workspace>.icon{display:none}.device-meta{flex-wrap:wrap;gap:5px}.device-card .button{white-space:normal}.topbar{gap:8px}}
@media(max-width:980px){.page-header{flex-wrap:wrap}.nav-btn{white-space:normal}.hero>.motion-scene{width:52%;right:-10px}.profile small{font-size:10px}.plans .plan{min-width:0}.filters{flex-wrap:wrap}.sidebar .nav-btn{font-size:calc(10.5px * var(--text-scale))}}
@media(max-width:720px){.hero>.motion-scene{opacity:.65;width:65%;right:-45px}.hero-copy h2{max-width:94%}.hero p{max-width:220px}.lab-button{font-size:10px}.quick-theme{height:29px;width:29px}.top-actions{gap:7px}.hero{min-height:207px}.page-header p{max-width:100%}.summary-top{min-width:65px}.summary-stats{min-width:0}.summary-footer{display:none}.section-heading .button{white-space:normal;text-align:center}.device-meta{font-size:calc(9px * var(--text-scale))}.filters{flex-wrap:wrap}.search input{min-width:0}.control-toolbar .icon-button{width:35px}.phone-stage>.hint{text-align:center}.footer{flex-wrap:wrap}.footer>span{text-align:left;max-width:none}.telegram-copy .scenario-list{grid-template-columns:1fr}.scenario-card small{font-size:calc(10px * var(--text-scale))}.sidebar{overflow-y:auto}.studio-header{padding:19px 20px 13px}.studio-body{padding:16px 20px 22px}.studio-footer{padding:12px 20px}.studio-footer .hint{max-width:140px}.studio-preview h3{font-size:calc(21px * var(--text-scale))}.studio-preview{min-height:155px}.studio-preview-copy{padding:18px}.studio-tabs{margin-top:13px}.studio-footer>.button{font-size:10px}.configuration-list strong{font-size:10px}.page-header h1{overflow-wrap:anywhere}}
@media(max-width:420px){.breadcrumbs{display:none}.topbar{padding:0 14px}.top-actions{gap:7px}.top-actions>.notification-dot{display:none}.device-grid{grid-template-columns:1fr}.mini-phone{height:160px;width:97px}.device-preview{height:178px}.device-meta{flex-direction:row}.search input{width:130px}.tabs{gap:1px}.tab{padding:7px 6px}.studio-header .modal-title h2{font-size:21px}.studio-footer{gap:8px}.studio-footer .hint{max-width:115px}.font-option .font-sample{font-size:18px}.mode-option{padding:12px 9px}.swatch-circle{height:29px;width:29px}.scene-choice strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.device-preview{transform:none!important}}

.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}

.motion-always{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--accent);white-space:nowrap}.motion-always i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:essential-beat 3.5s ease-in-out infinite}.settings-grid .setting-line{gap:14px}.settings-grid .motion-always{white-space:normal;min-width:90px}

.theme-preview.orbit{background:#13191f}.theme-preview.orbit>span:first-child{background:#253343}.theme-preview.orbit i{background:#304b69}.theme-preview.orbit i:first-child{background:#9bc6ff}
