:root{--bg:#f5f6f8;--panel:#fff;--text:#1f2329;--muted:#4b5563;--border:#e3e5e9;--primary:#0836ff;--primary-hover:#0435c9;--primary-soft:#0836ff14;--danger:#dc2626;--radius:10px;--header:64px}*{box-sizing:border-box}html,body{height:100%}body{background:var(--bg);color:var(--text);margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--primary)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}.header{height:var(--header);border-bottom:1px solid var(--border);background:var(--panel);justify-content:space-between;align-items:center;gap:16px;padding:0 20px;display:flex}.header__brand{align-items:center;gap:12px;min-width:0;display:flex}.header__logo{flex:none;display:flex}.header__logo img{width:auto;height:28px;display:block}.header__divider{background:var(--border);flex:none;width:1px;height:32px}.header__title{margin:0;font-size:16px;line-height:1.2}.header__subtitle{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:2px 0 0;font-size:12px;overflow:hidden}.header__nav{white-space:nowrap;gap:18px;display:flex}.header__nav a{color:var(--text);text-decoration:none}.header__nav a:hover{color:var(--primary)}.layout{height:calc(100vh - var(--header));grid-template-columns:360px 1fr;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--panel);flex-direction:column;min-height:0;display:flex}.sidebar__presets{border-bottom:1px solid var(--border);padding:16px 16px 12px}.sidebar__label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;font-size:12px;font-weight:600;display:block}.sidebar__footer{border-top:1px solid var(--border);padding:12px 16px}.form{flex:1;overflow-y:auto}.workspace{grid-template-rows:auto minmax(320px,1fr) minmax(220px,38%);gap:12px;min-width:0;min-height:0;padding:12px 16px 16px;display:grid}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border);background:var(--panel);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:5px 12px;font-size:13px}.chip:hover{border-color:var(--primary);color:var(--primary)}.section{border-bottom:1px solid var(--border)}.section[hidden]{display:none}.section__title{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:14px 16px;font-weight:600;list-style:none;display:flex}.section__title::-webkit-details-marker{display:none}.section__title:after{content:"›";color:var(--muted);font-size:18px;line-height:1;transition:transform .2s}.section[open]>.section__title:after{transform:rotate(90deg)}.section__title:hover{background:var(--bg)}.section__body{gap:14px;padding:2px 16px 18px;display:grid}.field{gap:6px;display:grid}.field[hidden]{display:none}.field__label{font-size:13px;font-weight:500}.field__hint{color:var(--muted);margin:0;font-size:12px}.field__error{color:var(--danger);margin:0;font-size:12px}.field__error:empty{display:none}.input{border:1px solid var(--border);background:var(--panel);width:100%;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}.input--mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.input--invalid{border-color:var(--danger)}textarea.input{resize:vertical;min-height:64px}.check{cursor:pointer;align-items:center;gap:10px;display:flex}.check input{width:16px;height:16px;accent-color:var(--primary);margin:0}.color{grid-template-columns:38px 1fr;gap:8px;display:grid}.color__picker{border:1px solid var(--border);background:var(--panel);cursor:pointer;border-radius:8px;width:38px;height:36px;padding:3px}.range{grid-template-columns:1fr 64px;align-items:center;gap:10px;display:grid}.range input{width:100%;accent-color:var(--primary)}.range__value{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;font-size:12px}.segmented{background:#eceef2;border-radius:9px;padding:3px;display:inline-flex}.segmented--block{display:flex}.segmented--block .segmented__item{flex:1}.segmented__item{color:var(--muted);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:7px;padding:6px 12px;font-size:13px}.segmented__item:hover{color:var(--text)}.segmented__item--active{background:var(--panel);color:var(--text);box-shadow:0 1px 3px #0000001a}.btn{font:inherit;cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:8px;align-items:center;gap:6px;padding:8px 14px;font-weight:500;transition:background-color .15s,border-color .15s,color .15s;display:inline-flex}.btn--primary{background:var(--primary);color:#fff}.btn--primary:hover{background:var(--primary-hover)}.btn--ghost{border-color:var(--border);background:var(--panel);color:var(--text)}.btn--ghost:hover{border-color:var(--primary);color:var(--primary)}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.toolbar__group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.segmented[hidden]{display:none}.stage{border:1px solid var(--border);border-radius:var(--radius);background:repeating-conic-gradient(#eef0f3 0% 25%,#f6f7f9 0% 50%) 50%/20px 20px;justify-content:center;min-height:0;display:flex;overflow:hidden}.stage__frame{background:#fff;border:none;width:100%;max-width:100%;height:100%;transition:width .3s}.code{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);flex-direction:column;min-height:0;display:flex;overflow:hidden}.code__head{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px 8px 6px;display:flex}.code__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.code__assets{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.code__assets select{border:1px solid var(--border);background:var(--panel);font:inherit;border-radius:8px;padding:6px 8px}.code__hint{border-bottom:1px solid var(--border);color:var(--muted);background:#fafbfc;margin:0;padding:8px 14px;font-size:12px}.code__body{color:#e2e8f0;tab-size:4;background:#0f172a;flex:1;margin:0;padding:14px;font:12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.tabs{gap:2px;display:flex}.tabs__item{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:7px 12px;font-weight:500}.tabs__item:hover{color:var(--text)}.tabs__item--active{background:var(--primary-soft);color:var(--primary)}.toast{z-index:100;color:#fff;opacity:0;pointer-events:none;background:#111827;border-radius:8px;padding:10px 16px;transition:opacity .2s,transform .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);box-shadow:0 8px 24px #0003}.toast--visible{opacity:1;transform:translate(-50%)}@media (width<=900px){.header{flex-wrap:wrap;height:auto;padding:12px 16px}.header__subtitle{white-space:normal}.layout{flex-direction:column;height:auto;display:flex}.sidebar{border-right:none;border-bottom:1px solid var(--border)}.form{overflow:visible}.workspace{flex-direction:column;padding:12px;display:flex}.stage{height:560px}.code{height:480px}}
