*{box-sizing:border-box}body{margin:0;background:#f6f2ec;color:#2e2d2b;font-family:Inter,Arial,sans-serif}.top{height:72px;display:flex;align-items:center;padding:0 32px;background:#fff;border-bottom:1px solid #e8e4dd;gap:30px}.brand{font-size:29px;letter-spacing:-2px;font-weight:800}.brand span{color:#4765ee}.top-label,.eyebrow,.prototype,.preview-meta,.stage-caption,.settings-foot{font-size:10px;font-weight:700;letter-spacing:.13em}.top-label{color:#878780}.top-label span{padding:0 8px;color:#c8c6c0}.prototype{margin-left:auto;letter-spacing:.03em;color:#5b7222;background:#f1f5e8;border-radius:30px;padding:9px 13px}.layout{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 72px)}.settings{background:#fff;padding:35px 30px 24px;border-right:1px solid #e8e4dd}.eyebrow{color:#7e817a}.intro h1{font-size:27px;letter-spacing:-1px;margin:10px 0}.intro p,.preview-head p{font-size:13px;line-height:1.6;color:#888981;margin:0}.settings section{border-top:1px solid #ecebe6;margin-top:28px;padding-top:22px}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:19px}.section-title span{font-size:10px;color:#a2a39d}.section-title h2{font-size:15px;margin:0}.settings label:not(.toggle){display:block;font-size:12px;font-weight:700;margin:18px 0 9px}.segmented{display:flex;background:#f3f2ef;border-radius:9px;padding:4px}.segmented button{border:0;background:transparent;flex:1;padding:10px;border-radius:7px;font-weight:600;color:#888;cursor:pointer}.segmented .active{background:#fff;color:#2e2d2b;box-shadow:0 1px 5px #00000010}select{width:100%;padding:12px;border:1px solid #deded9;border-radius:8px;background:#fff;color:#2e2d2b;font:inherit;font-size:13px}.counter,.toggle{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.counter strong,.toggle strong{display:block;font-size:12px}.counter small,.toggle small{display:block;color:#999a93;font-size:11px;margin-top:5px}.stepper{display:flex;align-items:center;gap:11px}.stepper button{width:27px;height:27px;border:1px solid #e4e4df;background:white;border-radius:7px;cursor:pointer;font-size:16px}.stepper output{width:15px;text-align:center;font-size:12px;font-weight:700}.toggle{cursor:pointer}.toggle input{position:absolute;opacity:0}.toggle i{width:35px;height:20px;background:#d6d7d2;border-radius:20px;position:relative;transition:.2s}.toggle i:after{content:'';position:absolute;width:14px;height:14px;top:3px;left:3px;border-radius:50%;background:white;transition:.2s}.toggle input:checked+i{background:#4765ee}.toggle input:checked+i:after{transform:translateX(15px)}.toggle input:focus-visible+i{outline:2px solid #2e2d2b;outline-offset:3px}.settings-foot{border-top:1px solid #ecebe6;padding-top:24px;margin-top:28px;color:#aaa}.settings-foot span{float:right}.preview{padding:42px 5vw 30px;min-width:0}.preview-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.preview-head h2{font-size:30px;letter-spacing:-1.3px;margin:9px 0}.preview-meta{white-space:nowrap;color:#8a8b85}.live-dot{display:inline-block;width:7px;height:7px;background:#74a311;border-radius:50%;margin-right:5px}.divider{color:#c4c4be;padding:0 9px}.stage{min-height:560px;height:calc(100vh - 250px);display:flex;align-items:center;justify-content:center}.device{width:min(100%,1000px);height:auto;aspect-ratio:16/9;background:#1e1e1c;padding:11px;border-radius:18px;box-shadow:0 25px 55px #29272224,0 4px 10px #29272212;max-height:100%;transition:width .2s}.device iframe{width:100%;height:100%;border:0;border-radius:8px;background:#f6f2ec}.stage-caption{display:flex;justify-content:space-between;color:#9b9c95;letter-spacing:.08em}.stage-caption span+span{text-transform:none;letter-spacing:0;font-weight:400}@media(max-width:800px){.layout{display:flex;flex-direction:column}.settings{border-right:0}.preview{padding:30px 20px}.stage{min-height:350px;height:55vh}.top{padding:0 20px}.top-label{display:none}.preview-head h2{font-size:24px}}
#theme button { font-size: 11px; white-space: nowrap; }
.palette{margin-top:18px}.palette-heading{font-size:12px;font-weight:700;margin-bottom:10px}.palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.palette-item{display:flex;align-items:center;gap:8px;min-width:0}.swatch{display:block;width:24px;height:24px;border-radius:6px;border:1px solid #2e2d2b1c;flex:none}.palette-item strong,.palette-item small{display:block;white-space:nowrap}.palette-item strong{font-size:10px;font-weight:600}.palette-item small{font-size:9px;color:#8b8c85;margin-top:2px}
.theme-palette{margin-top:16px;padding:13px;border:1px solid #e5e5e2;border-radius:11px;background:#f4f4f4;color:#2e2d2b}.theme-palette.dark{background:#292c27;color:#fff;border-color:#383d37}.theme-palette-title{font-size:11px;font-weight:700;margin-bottom:13px}.token-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.token-column{display:flex;flex-direction:column;gap:9px}.token{display:flex;align-items:center;gap:6px;font-size:9px;min-width:0;overflow-wrap:anywhere}.token-swatch{width:19px;height:19px;border-radius:50%;border:1px solid #80808055;flex:none}.palette-heading{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:10px 0}.palette-heading::-webkit-details-marker{display:none}.palette-heading:after{content:'+';font-size:16px;font-weight:400}.palette[open] .palette-heading:after{content:'−'}.palette-grid{padding:0 0 8px}
.theme-palette-title{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;margin:0}.theme-palette-title::-webkit-details-marker{display:none}.theme-palette-title:after{content:'+';font-size:16px;font-weight:400}.theme-palette[open] .theme-palette-title:after{content:'−'}.theme-palette[open] .token-columns{margin-top:13px}
/* Let the preview fill the available workspace while preserving its aspect ratio. */
.preview{padding:16px;min-width:0;height:calc(100vh - 72px);position:sticky;top:0}
.stage{min-height:0;height:100%;width:100%;container-type:size}
.device{--ratio:16 / 9;aspect-ratio:var(--ratio);width:auto;height:auto;max-width:100%;max-height:100%;width:min(100cqw, calc(100cqh * var(--ratio)));padding:8px}
@media(max-width:800px){.preview{position:static;height:65vh;min-height:350px;padding:16px}.stage{min-height:0;height:100%}}
.layout{min-height:100vh}.preview{height:100vh}.sidebar-brand{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-bottom:32px}.sidebar-brand .top-label{display:block;font-size:9px}.sidebar-brand .top-label span{padding:0 4px}.sidebar-brand .prototype{margin-left:0;font-size:9px;padding:7px 10px}@media(max-width:800px){.preview{height:65vh}}
.stage{flex-direction:column;gap:0}.device{flex:none;border-radius:18px 18px 4px 4px}.physical-labels{height:58px;flex:none;display:grid;grid-template-columns:repeat(5,1fr) 1.25fr;align-items:center;gap:4px;padding:6px 12px;background:#292b2c;color:#fff;border-radius:0 0 12px 12px;box-shadow:0 18px 30px #29272220;text-align:center}.physical-labels div{min-width:0;line-height:1.1}.physical-labels span{display:block;font-size:clamp(6px,.8vw,10px)}.physical-labels b{display:block;font-size:clamp(8px,1vw,14px);font-weight:400;margin-top:3px;white-space:nowrap;overflow:hidden}
/* Match the five navigation buttons inside the display; reserve space for the accessibility toggle. */
.physical-labels{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding-left:26px;padding-right:70px}
.device{border-radius:18px 18px 0 0}.device iframe{border-radius:8px 8px 0 0}
.physical-labels span{display:none}.physical-labels{height:72px;padding-top:20px;padding-bottom:8px}.physical-labels b{margin-top:0}
.physical-labels{align-items:start;padding-top:2px}
.device iframe{border-radius:8px}
.physical-labels{height:25px;padding-bottom:2px}
