@font-face{font-family:Space;src:url('/portal-assets/space-grotesk-latin.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;--bg:#0b0d13;--panel:#131821;--ink:#eef2fa;--muted:#a1aec2;--line:#ffffff18;--accent:#c5b9ff;--mint:#b6e8d0}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at 75% 0,#48337f24,transparent 45%),var(--bg);color:var(--ink);font:16px/1.6 Space,system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,input,select,a{touch-action:manipulation}button{min-height:42px;border:1px solid var(--line);border-radius:8px;background:#ffffff05;color:inherit;padding:8px 13px;cursor:pointer}button:hover{border-color:#c5b9ff70}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.topbar{max-width:1380px;margin:auto;padding:21px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:18px;letter-spacing:-.6px}.brand>span>span{color:var(--muted)}.topbar>a:last-child{font-size:14px;color:var(--muted)}main{max-width:1380px;margin:auto;padding:34px 36px 14px}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:0 0 10px}h1{font-size:clamp(31px,3.8vw,48px);font-weight:500;line-height:1.2;letter-spacing:-1.9px;margin:0 0 10px}h1 span{color:var(--accent)}.intro>div>p:last-child{margin:0;color:var(--muted);font-size:15px}.device-tag{flex-shrink:0;padding:13px 18px;border:1px solid #c5b9ff35;border-radius:12px;background:#c5b9ff08;text-align:right}.device-tag>span{display:block;color:var(--accent);font-size:22px;font-weight:500;line-height:1.3}.device-tag>small{font-size:12px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:26px;align-items:start}.controls{border:1px solid var(--line);border-radius:15px;background:#111720;padding:23px;min-width:0}.section-heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading{margin-bottom:20px}.section-heading h2,.panel-heading h2{font-size:21px;font-weight:500;letter-spacing:-.5px;line-height:1.3;margin:0}.section-heading button{font-size:12px;color:var(--muted);min-height:36px;padding:5px 11px}.port-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0 23px;border-top:1px solid var(--line)}.port-row label{font-size:15px}.port-row p{font-size:12px;color:var(--muted);margin:5px 0 0}.port-input{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;column-gap:4px;width:125px;flex-shrink:0}.port-input>span:first-child{color:var(--accent);font-size:20px}.port-input input{width:93px;min-height:43px;background:#0b111b;border:1px solid #ffffff27;border-radius:8px;color:var(--ink);padding:8px 9px;font-size:17px;font-variant-numeric:tabular-nums}.port-input>span:last-child{flex-basis:100%;text-align:right;color:var(--muted);font-size:10px;margin-top:3px}fieldset{margin:0;padding:0;border:0}legend{font-size:15px;font-weight:500;padding:0;margin-bottom:12px}.effect-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.effect-tabs button{font-size:12px;line-height:1.4;padding:10px 3px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px;min-width:0}.effect-tabs svg{width:21px;height:21px}.effect-tabs [aria-pressed=true]{background:#c5b9ff1a;border-color:#c5b9ff80;color:#e3ddff}.field-note{font-size:12px;line-height:1.65;color:var(--muted);margin:9px 0 0}.state-panel{margin-top:22px;padding-top:21px;border-top:1px solid var(--line)}.state-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.state-heading h3,.timing-panel h3{font-size:15px;font-weight:500;margin:0}.color-label{font-size:11px;color:var(--accent);background:#c5b9ff0e;border:1px solid #c5b9ff25;padding:3px 7px;border-radius:5px}.range-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;font-size:14px}.range-heading output{font-size:13px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{width:100%;height:34px;margin:9px 0 3px;accent-color:var(--accent);cursor:pointer}.color-tabs{display:flex;gap:5px;margin:9px 0 13px}.color-tabs button{flex:1;font-size:12px;min-height:36px;padding:5px 7px;border-radius:6px;color:var(--muted)}.color-tabs [aria-pressed=true]{border-color:#c5b9ff55;background:#c5b9ff0e;color:#e4ddff}.palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.swatch{position:relative;display:grid;place-items:center;min-height:37px;width:100%;padding:0;border:2px solid transparent;border-radius:7px;color:#0b0d13;font-size:11px;font-weight:600;text-shadow:0 0 5px #fff9}.swatch[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}.swatch[aria-pressed=true]:after{content:'✓';position:absolute;right:2px;bottom:-1px;font-size:10px}.custom-color{display:grid;grid-template-columns:95px minmax(0,1fr);gap:14px}.custom-color label{display:block;font-size:12px;color:var(--muted)}input[type=color]{display:block;width:100%;height:44px;background:transparent;border:1px solid #ffffff30;border-radius:8px;padding:3px;margin-top:7px;cursor:pointer}input[type=text],select{width:100%;min-height:44px;padding:9px 11px;border:1px solid #ffffff28;border-radius:8px;background:#0c121d;color:var(--ink);font-size:14px}.custom-color input[type=text]{font-family:Consolas,monospace;font-size:16px;margin-top:7px;text-transform:uppercase}select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a1aec2' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:16px}.timing-panel{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.timing-panel>h3{margin-bottom:18px}.control-row{margin-top:16px}.control-row>label{display:block;font-size:14px;margin-bottom:8px}.api-note{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin:21px 0 0}.output-column{min-width:0;position:sticky;top:20px}.preview-panel{overflow:hidden;border:1px solid #c5b9ff35;border-radius:15px;background:linear-gradient(130deg,#1d1b32,#111925 80%)}.preview-panel>.panel-heading{padding:21px 23px 0}.panel-heading .eyebrow{font-size:10px;margin-bottom:5px}.port-badge{border:1px solid #c5b9ff45;border-radius:7px;background:#c5b9ff0a;padding:6px 9px;color:#d4cbff;font:15px/1.3 Consolas,monospace}canvas{display:block;width:100%;height:240px}.preview-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 21px}.preview-controls>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.preview-controls>div{display:flex;gap:7px}.preview-controls button{font-size:12px;min-height:34px;padding:5px 11px}.preview-note{font-size:11px;color:var(--muted);padding:0 22px;margin:15px 0 18px;line-height:1.7}.presets{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.presets button{font-size:12px;border-radius:20px;min-height:34px;padding:5px 12px;color:#c5cce0}.presets [data-preset=off]{margin-left:auto;color:#e0b5ac}.code-panel{border:1px solid var(--line);border-radius:14px;padding:21px;background:#111720}.primary{background:var(--accent);border-color:var(--accent);color:#241947;font-weight:500;font-size:13px;padding:9px 13px;white-space:nowrap}.primary:hover{background:#d8d0ff}.format-label{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted);margin:18px 0 12px}.format-label select{font-size:12px;min-height:38px;flex:1}.code-panel textarea{display:block;width:100%;min-height:108px;max-height:300px;resize:vertical;border:1px solid #ffffff1b;border-radius:9px;background:#090e17;color:#b9e8d2;padding:14px;font:14px/1.9 Consolas,"Cascadia Code",monospace;white-space:pre;tab-size:2}.copy-status{font-size:12px;color:var(--mint);margin:9px 0;min-height:19px}.command-steps{font-size:12px;line-height:1.8;color:var(--muted);padding-left:19px;margin:12px 0 16px}.command-steps li{padding-left:2px;margin:5px 0}.command-steps strong{color:#d4deed;font-weight:400}.send-note{font-size:12px;line-height:1.7;color:var(--muted);border:1px solid #c5b9ff23;border-radius:8px;background:#c5b9ff05;padding:11px 12px;margin:0}.send-note strong{color:#d6d1ed;font-weight:500}.usage{border-top:1px solid var(--line);margin-top:17px;padding-top:11px}.usage summary{cursor:pointer;font-size:12px;color:#c4cce1;min-height:30px}.usage p{font-size:12px;line-height:1.8;color:var(--muted)}.usage a{text-decoration:underline;text-underline-offset:3px}.error{font-size:13px;line-height:1.6;color:#ffcfb3;background:#e9994c0c;border:1px solid #e9994c40;border-radius:8px;padding:11px;margin:12px 0}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;padding:23px 0;margin-top:30px;font-size:12px;color:var(--muted)}.mobile-copy{display:none}
@media(max-width:1000px){.topbar{padding:19px 25px}main{padding:28px 25px 14px}.workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.controls{padding:18px}.palette{gap:7px}.swatch{min-height:31px}.output-column{position:static}.preview-panel>.panel-heading{padding:19px 18px 0}.code-panel{padding:18px}.panel-heading h2{font-size:19px}.primary{font-size:12px;padding:8px 11px}.effect-tabs{gap:5px}.effect-tabs button{font-size:11px}}
@media(max-width:760px){.topbar{padding:17px 19px}.brand{font-size:16px}.topbar>a:last-child{font-size:12px}main{padding:25px 18px calc(env(safe-area-inset-bottom) + 77px)}.intro{display:block;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.1px}h1{font-size:35px;letter-spacing:-1.6px}.intro>div>p:last-child{font-size:14px}.device-tag{display:inline-flex;align-items:center;gap:12px;padding:7px 11px;margin-top:16px;border-radius:8px}.device-tag>span{font-size:15px}.device-tag>small{font-size:11px}.workspace{display:flex;flex-direction:column;gap:17px}.output-column{display:contents}.preview-panel{order:0;width:100%}.controls{order:1;width:100%;padding:19px}.presets{order:2;width:100%;margin:0;gap:6px}.code-panel{order:3;width:100%;padding:19px}canvas{height:200px}.preview-panel>.panel-heading{padding:17px 18px 0}.preview-controls{padding:0 17px}.preview-note{padding:0 18px;margin:12px 0 15px}.section-heading h2{font-size:20px}.port-row label{font-size:14px}.port-input{width:112px}.port-input input{width:80px}.effect-tabs button{font-size:12px;min-height:70px}.palette{gap:9px}.swatch{min-height:37px}.range-heading{font-size:15px}.range-heading output{font-size:14px}input[type=range]{height:38px}.state-heading h3,.timing-panel h3{font-size:16px}.color-tabs button{font-size:13px;min-height:40px}.field-note{font-size:13px}.control-row>label{font-size:15px}select{font-size:16px}.preview-controls button{min-height:38px;font-size:12px}.primary{font-size:13px}.presets button{min-height:38px;font-size:12px}.code-panel textarea{font-size:13px;padding:12px}.command-steps,.send-note,.usage p{font-size:13px}.usage summary{font-size:13px;min-height:38px}.format-label{font-size:13px}.format-label select{font-size:13px;min-height:42px}.mobile-copy{display:block;position:fixed;z-index:20;bottom:calc(12px + env(safe-area-inset-bottom));right:18px;left:18px;min-height:46px;background:#d0c5ff;color:#241744;border-color:#ded6ff;font-size:14px;font-weight:500;box-shadow:0 5px 30px #0008}footer{font-size:11px}}
@media(max-width:359px){.controls{padding:16px}.palette{gap:7px}.swatch{min-height:32px}.port-row{gap:10px}.port-input{width:100px}.port-input input{width:72px}.effect-tabs button{font-size:10px}h1{font-size:31px}.code-panel{padding:16px}.panel-heading{gap:9px}.panel-heading h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
