:root{color-scheme:light;font-family:Inter,Arial,sans-serif;color:#111b31;background:#f2f5fa;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,iframe:focus-visible{outline:3px solid #165ffd;outline-offset:4px}
.toolbar{min-height:88px;padding:16px 28px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;background:#fff;border-bottom:1px solid #e0e7f0;flex:none}
.identity{display:flex;align-items:center;gap:14px;min-width:0}
.back{width:40px;height:40px;border:1px solid #e1e7f1;border-radius:12px;display:grid;place-items:center;font-size:23px;flex:none}
.back:hover{background:#eef4ff}
.heading{min-width:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;color:#63738d;white-space:nowrap}
h1{margin:5px 0 0;font-size:18px;line-height:1.2;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-switch{display:flex;gap:4px;padding:5px;border-radius:15px;background:#f1f4f9;border:1px solid #e4eaf2}
.device-switch button{min-height:42px;padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;color:#596a84;background:transparent;font-size:13px;font-weight:700}
.device-switch button[aria-pressed="true"]{color:#fff;background:#165ffd;box-shadow:0 3px 8px #165ffd25}
.device-switch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dimensions{justify-self:end;color:#61708a;font-size:12px;font-variant-numeric:tabular-nums}
.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;white-space:nowrap}
.choose-model{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:12px 18px;border-radius:12px;background:#165ffd;color:white;font-size:13px;font-weight:700}
.choose-model:hover{background:#104bd0}
@media(max-width:1100px){.toolbar-actions .dimensions{display:none}}
.workspace{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px 24px 24px}
.preview-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#69788f;font-size:11px;margin-bottom:14px;flex:none}
.preview-caption p{margin:0;line-height:1.5}.preview-caption span{text-align:right}
.stage{flex:1;min-height:0;position:relative;display:flex;justify-content:center;align-items:flex-start}
.frame-shell{position:relative;max-width:100%;overflow:hidden;border-radius:12px;background:white;box-shadow:0 12px 36px #23375416,0 0 0 1px #dce3ee;visibility:hidden}
.frame-shell.ready{visibility:visible}.frame-shell[data-device="mobile"]{border-radius:22px}
iframe{display:block;max-width:none;border:0;transform-origin:top left;background:white}
.error{max-width:500px;margin:auto;text-align:center;padding:32px;background:white;border:1px solid #dfe6f0;border-radius:18px}
.error h2{font-size:22px}.error p{font-size:14px;line-height:1.6;color:#60718b}
.direct-link{display:inline-block;margin-top:10px;padding:14px 20px;border-radius:12px;background:#165ffd;color:white;font-weight:600}
[hidden]{display:none!important}
@media(max-width:800px){.toolbar{padding:12px 14px;gap:12px;grid-template-columns:minmax(0,1fr) auto}.identity{gap:10px}.back{width:36px;height:36px}.eyebrow{font-size:8px;letter-spacing:.8px}h1{font-size:16px}.choose-model{font-size:12px;padding:12px;gap:6px}.device-switch{grid-row:2;grid-column:1/-1;justify-self:center}.device-switch button{min-height:44px;padding:10px 26px}.workspace{padding:12px 12px 16px}.preview-caption{font-size:10px;margin-bottom:12px}.preview-caption span{display:none}.frame-shell[data-device="mobile"]{border-radius:12px}}
@media(prefers-reduced-motion:no-preference){.device-switch button{transition:background .12s,color .12s}}
