:root{--bg:#eef0f3;--panel:#fff;--raised:#f4f5f7;--line:#e1e4e8;--text:#121316;--muted:#6b707a;--accent:#2f6bff;--accent-ink:#fff;--accent-soft:#2f6bff1f;--stage:#e4e7eb;--radius:10px;--font-sans:var(--font-geist-sans), system-ui, sans-serif;--font-mono:var(--font-geist-mono), ui-monospace, monospace}.app.dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d0e10;--panel:#141518;--raised:#1c1e22;--line:#26292e;--text:#ecedef;--muted:#8b9099;--accent:#4f86ff;--accent-soft:#4f86ff29;--stage:#08090a}*{box-sizing:border-box}html,body{background:#0d0e10;height:100%;margin:0}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{cursor:default;opacity:.4}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.app{background:var(--bg);height:100dvh;color:var(--text);grid-template-rows:52px 1fr;font-size:13px;line-height:1.45;display:grid;overflow:hidden}.topbar{border-bottom:1px solid var(--line);background:var(--panel);grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 12px 0 16px;display:grid}.topbar-left,.topbar-right{align-items:center;gap:8px;min-width:0;display:flex}.topbar-right{justify-content:flex-end}.brand{letter-spacing:-.01em;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.brand-mark{width:20px;height:20px;color:var(--text);flex-shrink:0}.divider{background:var(--line);width:1px;height:18px;margin:0 4px}.filename{width:220px;min-width:0;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:6px;padding:5px 8px}.filename:hover{border-color:var(--line)}.filename:focus{border-color:var(--accent);color:var(--text);outline:none}.aspect-switch{background:var(--raised);border:1px solid var(--line);border-radius:9px;gap:2px;padding:3px;display:flex}.aspect-switch button{height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:0 10px;font-size:12px;display:flex}.aspect-switch button:hover{color:var(--text)}.aspect-switch button.is-active{background:var(--panel);color:var(--text);box-shadow:0 1px 2px #0000002e, 0 0 0 1px var(--line)}.aspect-glyph{border:1.5px solid;border-radius:2px;display:inline-block}.status{color:var(--muted);white-space:nowrap;margin-right:6px;font-size:12px;animation:.2s fade-in}.icon-btn{width:32px;height:32px;color:var(--muted);border-radius:7px;place-items:center;display:inline-grid}.icon-btn:hover:not(:disabled){background:var(--raised);color:var(--text)}.icon-btn.sm{border-radius:6px;width:24px;height:24px}.export{margin-left:4px;display:flex;position:relative}.btn-primary{background:var(--accent);height:32px;color:var(--accent-ink);border-radius:8px 0 0 8px;align-items:center;gap:7px;padding:0 12px;font-weight:500;display:inline-flex}.btn-primary:hover:not(:disabled){filter:brightness(1.08)}.btn-caret{border-left:1px solid #ffffff38;border-radius:0 8px 8px 0;padding:0 8px}.export-scale{opacity:.72;font-size:11px}.menu{background:var(--panel);border:1px solid var(--line);z-index:20;border-radius:10px;flex-direction:column;gap:2px;width:232px;padding:6px;animation:.14s fade-in;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 16px 40px #00000052}.menu-label{color:var(--muted);margin:4px 8px 6px;font-size:11px}.menu-scales{border-bottom:1px solid var(--line);grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:4px;padding:0 4px 6px;display:grid}.menu-scales button{background:var(--raised);height:28px;font-family:var(--font-mono);color:var(--muted);border-radius:6px;font-size:12px}.menu-scales button.is-active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.menu-item{text-align:left;border-radius:6px;align-items:center;gap:8px;height:32px;padding:0 8px;display:flex}.menu-item:hover{background:var(--raised)}.menu-item kbd{font-family:var(--font-mono);color:var(--muted);margin-left:auto;font-size:11px}.menu-item:disabled{color:var(--muted);opacity:.55;cursor:default}.menu-item:disabled:hover{background:0 0}.app-menu{position:relative}.app-menu .icon-btn[aria-expanded=true]{background:var(--raised);color:var(--text)}.app-menu-list{width:248px;left:0;right:auto}.app-menu-list .menu-item{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;height:34px;color:var(--text);padding:0 10px;font-size:12px;text-decoration:none}.app-menu-list .menu-item:disabled{color:var(--muted)}.menu-trail{color:var(--muted);margin-left:auto}.menu-sep{border:0;border-top:1px solid var(--line);margin:4px 2px}.submenu{flex-direction:column;display:flex;position:relative}.submenu-list{width:236px;top:-6px;left:calc(100% + 4px);right:auto}.info-dialog{border:1px solid var(--line);background:var(--panel);width:min(480px,100vw - 32px);max-height:min(640px,100vh - 64px);color:var(--text);border-radius:12px;padding:0;box-shadow:0 24px 64px #0006}.info-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#08090a80}.info-dialog[open]{animation:.16s fade-in}.info-dialog-inner{max-height:inherit;flex-direction:column;display:flex}.info-dialog-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:14px 14px 12px 20px;display:flex}.info-dialog-head h2{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:12px;font-weight:500}.info-dialog-body{padding:20px;line-height:1.55;overflow-y:auto}.tour{z-index:60;position:fixed;inset:0}.tour-scrim{background:#040506bd;animation:.2s fade-in;position:absolute;inset:0}.tour-spotlight{box-shadow:0 0 0 2px var(--accent), 0 0 0 9999px #040506bd;pointer-events:none;border-radius:10px;transition:left .3s cubic-bezier(.2,.8,.2,1),top .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1),height .3s cubic-bezier(.2,.8,.2,1);position:absolute}.tour-card{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:12px;flex-direction:column;gap:8px;padding:14px 16px 16px;animation:.2s fade-in;display:flex;position:absolute;box-shadow:0 24px 64px #00000073}.tour-card-head{justify-content:space-between;align-items:center;margin-right:-8px;display:flex}.tour-progress{font-family:var(--font-mono);letter-spacing:.08em;color:var(--muted);font-size:11px}.tour-close{width:26px;height:26px}.tour-title{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;text-wrap:balance;margin:0;font-size:13px;font-weight:500}.tour-body{color:var(--muted);text-wrap:pretty;margin:0;line-height:1.6}.tour-body kbd{font-family:var(--font-mono);background:var(--raised);border:1px solid var(--line);color:var(--text);border-radius:5px;padding:1px 5px;font-size:11px}.tour-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:6px;display:flex}.tour-skip{height:32px;color:var(--muted);border-radius:6px;padding:0 4px;font-size:13px}.tour-skip:hover{color:var(--text)}.tour-next{background:var(--accent);height:32px;color:var(--accent-ink);border-radius:8px;padding:0 14px;font-weight:500}.tour-next:hover{filter:brightness(1.08)}@media (prefers-reduced-motion:reduce){.tour-spotlight,.tour-card,.tour-scrim{transition:none;animation:none}}.info-dialog-foot{border-top:1px solid var(--line);font-family:var(--font-mono);letter-spacing:.06em;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;font-size:11px;display:flex}.info-dialog-foot a{color:var(--text);border-radius:3px;text-decoration:none}.info-dialog-foot a:hover{text-underline-offset:3px;text-decoration:underline}.info-dialog-foot a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.info-dialog kbd{font-family:var(--font-mono);background:var(--raised);border:1px solid var(--line);color:var(--text);border-radius:5px;padding:2px 6px;font-size:11px}.prose{flex-direction:column;gap:12px;display:flex}.prose p{text-wrap:pretty;margin:0}.prose .muted{color:var(--muted)}.shortcut-list{flex-direction:column;margin:0;display:flex}.shortcut-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:10px 0;display:flex}.shortcut-row:last-child{border-bottom:0}.shortcut-row dt{color:var(--text)}.shortcut-row dd{margin:0}.changelog{flex-direction:column;gap:24px;margin:0;padding:0;list-style:none;display:flex}.changelog-date{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 4px;font-size:11px}.changelog h3{text-wrap:balance;margin:0 0 8px;font-size:15px;font-weight:600}.changelog ul{color:var(--muted);flex-direction:column;gap:6px;margin:0;padding-left:18px;display:flex}.changelog ul li{text-wrap:pretty}.workspace{grid-template-columns:minmax(0,1fr) 320px;min-height:0;display:grid}.stage{background:var(--stage);flex-direction:column;min-width:0;min-height:0;display:flex}.stage-area{contain:size;flex:1;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.artboard{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:4px;flex:none;position:relative;overflow:hidden;box-shadow:0 0 0 1px #ffffff0f,0 24px 60px -20px #00000080}.artboard:active{cursor:grabbing}.artboard.is-transparent{background:repeating-conic-gradient(#2a2c30 0 25%, #1f2124 0 50%) 0 0 / 16px 16px}.app:not(.dark) .artboard.is-transparent{background:repeating-conic-gradient(#e2e4e8 0 25%, #f6f7f8 0 50%) 0 0 / 16px 16px}.artboard.is-dragging{box-shadow:0 0 0 2px var(--accent), 0 24px 60px -20px #00000080}.layer{pointer-events:none;width:100%;height:100%;display:block;position:absolute;inset:0}.artboard-note{text-align:center;color:var(--muted);margin:0;position:absolute;inset:auto 0 16px}.drop-veil{color:#fff;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#08090a8c;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-weight:500;display:flex;position:absolute;inset:0}.sample-pill{color:#f2f3f5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);white-space:nowrap;background:#0c0d0fb8;border-radius:999px;align-items:center;gap:8px;height:32px;padding:0 12px;font-size:12px;display:flex;position:absolute;bottom:14px;left:50%;transform:translate(-50%);box-shadow:0 0 0 1px #ffffff1a}.sample-pill:hover{background:#0c0d0fdb}.sample-pill-cta{color:#f2f3f59e}.focus-reticle{cursor:move;opacity:.55;touch-action:none;border-radius:50%;width:30px;height:30px;margin:-15px 0 0 -15px;transition:opacity .15s,transform .15s;position:absolute;box-shadow:0 0 0 1.5px #ffffffd9,0 0 0 3px #0000002e,inset 0 0 0 1px #0000002e}.artboard:hover .focus-reticle,.focus-reticle:focus-visible,.focus-reticle.is-active{opacity:1}.focus-reticle.is-active{transform:scale(1.15)}.focus-reticle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.focus-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;margin:-3px 0 0 -3px;position:absolute;top:50%;left:50%;box-shadow:0 0 0 1.5px #fff}.focus-axis{pointer-events:none;border-top:1px dashed #fffc;width:120px;height:0;position:absolute;top:50%;left:50%}.focus-pad{background:var(--raised);background-image:linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));cursor:crosshair;touch-action:none;background-position:50%;background-repeat:no-repeat;background-size:1px 100%,100% 1px;border-radius:8px;height:112px;position:relative}.focus-pad:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.framer{background:var(--raised);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:8px;justify-content:center;align-items:center;height:156px;display:flex;position:relative;overflow:hidden}.framer.is-dragging{cursor:grabbing}.framer:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.framer-screen{position:relative}.framer-clip{box-shadow:0 0 0 1px var(--muted);border-radius:4px;position:absolute;inset:0;overflow:hidden}.framer-ghost,.framer-img{pointer-events:none;max-width:none;position:absolute}.framer-ghost{opacity:.22}.framer.is-dragging .framer-ghost{opacity:.34}.focus-pad-dot{background:var(--accent);width:12px;height:12px;box-shadow:0 0 0 3px var(--accent-soft);pointer-events:none;border-radius:50%;margin:-6px 0 0 -6px;position:absolute}.preset-grid{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.shot-strip{scrollbar-width:none;justify-content:center;gap:4px;padding:6px 16px 4px;display:flex;overflow-x:auto}.shot{width:76px;color:var(--muted);border-radius:8px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:8px 4px 7px;font-size:11px;display:flex}.shot:hover{background:var(--raised);color:var(--text)}.shot.is-active{background:var(--raised);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}.shot-preview{perspective:90px;place-items:center;width:48px;height:40px;display:grid}.shot-slab{background:linear-gradient(160deg, var(--muted), transparent 140%);border:1.5px solid var(--muted);transition:transform .35s cubic-bezier(.2,.8,.2,1);display:block}.shot:hover .shot-slab,.shot.is-active .shot-slab{border-color:var(--accent);background:linear-gradient(160deg, var(--accent-soft), var(--accent-soft))}.shot-name{white-space:nowrap}.stage-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:4px 16px 10px;font-size:11px;display:flex}.stage-hint{text-align:center}.inspector{background:var(--panel);border-left:1px solid var(--line);flex-direction:column;min-height:0;display:flex}.tabs{border-bottom:1px solid var(--line);grid-template-columns:repeat(5,1fr);gap:2px;padding:8px;display:grid}.tabs button{color:var(--muted);border-radius:7px;flex-direction:column;align-items:center;gap:3px;padding:7px 0 6px;font-size:11px;display:flex}.tabs button:hover{color:var(--text);background:var(--raised)}.tabs button.is-active{color:var(--text);background:var(--raised);box-shadow:inset 0 0 0 1px var(--line)}.tabs button.is-active svg{color:var(--accent)}.inspector-scroll{scrollbar-width:thin;flex:1;overflow-y:auto}.section{border-bottom:1px solid var(--line);padding:14px 14px 16px}.section-head{justify-content:space-between;align-items:center;min-height:24px;margin-bottom:10px;display:flex}.section-head h3{letter-spacing:.01em;margin:0;font-size:12px;font-weight:600}.section-aside{color:var(--muted);align-items:center;gap:4px;display:flex}.section-body{flex-direction:column;gap:6px;display:flex}.hint{color:var(--muted);text-wrap:pretty;margin:2px 2px 0;font-size:12px;line-height:1.5}.field{flex-direction:column;gap:5px;display:flex}.field-label{color:var(--muted);font-size:11px}.slider{background:var(--raised);cursor:ew-resize;border-radius:7px;justify-content:space-between;align-items:center;height:32px;padding:0 10px;display:flex;position:relative;overflow:hidden}.slider-fill{background:var(--accent-soft);border-right:2px solid var(--accent);pointer-events:none;position:absolute;top:0;bottom:0}.slider-zero{background:var(--line);pointer-events:none;width:1px;position:absolute;top:8px;bottom:8px}.slider-label,.slider-value{pointer-events:none;position:relative}.slider-label{color:var(--text);font-size:12px}.slider-value{font-family:var(--font-mono);color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.slider input{opacity:0;cursor:ew-resize;width:100%;height:100%;margin:0;position:absolute;inset:0}.slider:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:1px}.slider:hover .slider-value{color:var(--text)}.segmented{background:var(--raised);border-radius:8px;gap:2px;padding:3px;display:flex}.segmented button{height:26px;color:var(--muted);border-radius:5px;flex:1;font-size:12px}.segmented button:hover{color:var(--text)}.segmented button.is-active{background:var(--panel);color:var(--text);box-shadow:0 1px 2px #0003, 0 0 0 1px var(--line)}.toggle-row{background:var(--raised);text-align:left;border-radius:7px;justify-content:space-between;align-items:center;height:32px;padding:0 10px;font-size:12px;display:flex}.switch{background:var(--line);border-radius:999px;width:28px;height:16px;transition:background .15s;position:relative}.switch span{background:var(--text);border-radius:50%;width:12px;height:12px;transition:transform .15s;position:absolute;top:2px;left:2px}.toggle-row[aria-checked=true] .switch{background:var(--accent)}.toggle-row[aria-checked=true] .switch span{background:#fff;transform:translate(12px)}.text-input{border:1px solid var(--line);background:var(--raised);resize:vertical;border-radius:7px;width:100%;padding:7px 10px;font-size:12px}.text-input:focus{border-color:var(--accent);outline:none}.source{border:1px dashed var(--line);border-radius:9px;align-items:center;gap:10px;margin-bottom:4px;padding:8px;display:flex}.source-thumb{background:var(--raised);width:44px;height:44px;color:var(--muted);border-radius:7px;flex:none;place-items:center;display:grid;overflow:hidden}.source-thumb img{object-fit:cover;width:100%;height:100%}.source-thumb:hover{color:var(--accent)}.source-text{flex-direction:column;flex:1;min-width:0;display:flex}.source-text strong{font-size:12px;font-weight:500}.source-text span{color:var(--muted);font-size:11px}.device-grid{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.device-tile{background:var(--raised);color:var(--muted);text-align:left;border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 9px 8px;display:flex;box-shadow:inset 0 0 0 1px #0000}.device-tile svg{margin-bottom:6px}.device-tile:hover{color:var(--text)}.device-tile.is-active{color:var(--text);box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--accent-soft)}.device-tile.is-active svg{color:var(--accent)}.device-name{color:var(--text);min-height:2.5em;font-size:12px;font-weight:500;line-height:1.25}.device-spec{font-size:10px}.finish-row{align-items:center;gap:10px;padding:6px 2px;display:flex}.swatches{gap:6px;display:flex}.swatch{width:20px;height:20px;box-shadow:inset 0 0 0 1px #00000040, 0 0 0 0 var(--accent);border-radius:50%;transition:box-shadow .15s}.swatch.is-active{box-shadow:inset 0 0 0 1px #00000040, 0 0 0 2px var(--panel), 0 0 0 3.5px var(--accent)}.finish-name{color:var(--muted);margin-left:auto;font-size:11px}.gradient-grid{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.gradient-tile{aspect-ratio:1.25;color:#fff;border-radius:7px;place-items:center;display:grid;box-shadow:inset 0 0 0 1px #ffffff14}.gradient-tile.is-active{box-shadow:0 0 0 2px var(--panel), 0 0 0 3.5px var(--accent)}.gradient-tile svg{filter:drop-shadow(0 1px 2px #00000080)}.color-field{gap:6px;display:flex}.color-field input[type=color]{border:1px solid var(--line);background:var(--raised);cursor:pointer;border-radius:7px;width:36px;height:32px;padding:2px}.bg-image{border:1px dashed var(--line);height:72px;color:var(--muted);background:var(--raised) center / cover;border-radius:8px;justify-content:center;align-items:center;gap:8px;display:flex;position:relative}.bg-image:hover{color:var(--text);border-color:var(--accent)}.bg-image-label{color:#fff;background:#0c0d0fb3;border-radius:999px;padding:3px 8px;font-size:11px}.chips{gap:4px;display:flex}.chip{background:var(--raised);height:26px;color:var(--muted);border-radius:6px;flex:1;font-size:11px}.chip:hover{color:var(--text)}.chip.is-active{color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}@keyframes fade-in{0%{opacity:0;transform:translateY(-2px)}}@media (max-width:1100px){.aspect-switch .mono,.stage-hint{display:none}}@media (max-width:820px){.app{grid-template-rows:auto 1fr;height:auto;min-height:100dvh;overflow:auto}.topbar{grid-template-columns:1fr auto;row-gap:8px;padding:8px 12px}.aspect-switch{grid-area:2/1/auto/-1;justify-self:center}.filename,.divider{display:none}.workspace{grid-template-columns:1fr}.stage{height:62dvh}.inspector{border-left:0;border-top:1px solid var(--line)}.inspector-scroll{overflow:visible}}
