@layer reset,base,components,responsive;
@layer reset{*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}svg,img,canvas{display:block}html{scroll-behavior:smooth;scroll-padding-top:24px}}
@layer base{:root{--page:#f3f1e8;--paper:#fffdf5;--ink:#203e35;--muted:#61776b;--line:#ccd3c5;--green:#007c69;--lime:#c1ff72;--purple:#8780e6;--coral:#f17a61;font:14px/1.75 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);background:var(--page)}body{min-width:320px;background:radial-gradient(ellipse at 90% 0,#e4e0f3a0,transparent 30%),var(--page)}.page{width:min(1540px,calc(100% - 80px));margin:auto}.hero{padding:38px 0 32px}.eyebrow{display:flex;align-items:center;gap:12px;color:var(--green);font-size:10px;font-weight:750;letter-spacing:.11em}.hero h1{font-size:clamp(32px,3.5vw,57px);font-weight:800;line-height:1.22;letter-spacing:0;margin:22px 0}.hero h1 span{color:var(--coral)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}.lead{font-size:16px;line-height:1.9}.lead strong{color:var(--green)}h2{font-size:clamp(21px,2.1vw,29px);line-height:1.5}h3{font-size:16px;line-height:1.6}.kicker{font-size:10px;letter-spacing:.12em;font-weight:750;color:var(--green)}.note{font-size:11px;color:var(--muted);line-height:1.9}.quiet,.primary,.accent{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:11px;font-weight:750;line-height:1.5}.primary{color:#e8ffd4;background:var(--ink);border-color:var(--ink)}.accent{color:var(--ink);background:var(--lime);border-color:#b1e96a}button,a{transition:transform .18s,background .18s,box-shadow .18s}button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 14px #244b351a}button:active:not(:disabled){transform:translateY(0)}:focus-visible{outline:3px solid var(--purple);outline-offset:4px}.field{display:grid;gap:6px;font-size:11px;font-weight:650}.field input,.field textarea,.field select{width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px}.field textarea{resize:vertical}.range{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:11px;font-weight:650;align-items:center}.range input{grid-column:1/-1;width:100%;accent-color:var(--green);height:21px;cursor:pointer}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range+.range{margin-top:16px}.space{margin-top:17px}.check{display:flex;align-items:center;gap:8px;font-size:11px}.check input{width:16px;height:16px;accent-color:var(--green);flex:none}.checks{display:grid;gap:10px}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--wt-option;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#e8ede2}.segmented::before{content:"";position:absolute;z-index:-1;position-anchor:--wt-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);background:var(--ink);border-radius:6px;transition:top .18s,left .18s,width .18s,height .18s}.segmented button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;flex:1;border:0;border-radius:6px;background:none;padding:7px 10px;font-size:10px;font-weight:750;white-space:nowrap;line-height:1.5}.segmented button[aria-pressed=true]{anchor-name:--wt-option;color:var(--lime)}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#25463212}.segmented button[aria-pressed=true]:hover{background:none}@supports not(position-anchor:--wt-option){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}}
@layer components{
.studio{border:1px solid var(--line);border-radius:24px;overflow:clip;background:var(--paper);container:studio / inline-size}.section-heading{display:flex;align-items:center;gap:17px;padding:24px 26px;border-bottom:1px solid var(--line)}.section-symbol{display:grid;place-items:center;flex:none;width:51px;height:51px;background:var(--purple);color:#fffdf5;border-radius:15px}.section-symbol svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.section-heading h2{margin-top:4px}.jump{margin-left:auto;font-size:11px;font-weight:750;white-space:nowrap;color:var(--green);text-underline-offset:4px}.studio-grid{display:grid;grid-template-columns:270px minmax(0,1fr)}.controls{border-right:1px solid var(--line);background:#f6f5ed;min-width:0}.control-section{padding:23px 19px;border-bottom:1px solid var(--line)}.control-section h3{margin:6px 0 16px}.control-section>.note{margin-top:13px}.workspace{min-width:0;container:workspace / inline-size}.workspace-bar{display:flex;align-items:center;gap:12px;min-height:60px;padding:13px 18px;border-bottom:1px solid var(--line);font-size:11px;font-weight:650}.workspace-bar small{font-size:10px;font-weight:400;color:var(--muted);display:block}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;background:#b5c6b4;border-radius:50%}.window-dots i:first-child{background:var(--coral)}.device{margin-left:auto;width:122px;flex:none}.icon-button{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.preview-surround{background:#e1e8dc;padding:0}.preview-surround.mobile{padding:22px}.preview-host{width:100%;margin:auto}.preview-surround.mobile .preview-host{max-width:390px;border-radius:15px;overflow:hidden;box-shadow:0 10px 24px #153c2826}.preview-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px 20px;border-block:1px solid var(--line)}.render-badge{margin-left:auto;font:10px/1.6 ui-monospace,monospace;color:var(--green)}.inspect{padding:18px 22px;background:#f2f5eb;border-bottom:1px solid var(--line)}.inspect .note{margin-top:8px}.slides-section{padding:24px}.section-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-mini-head h3{margin-top:6px}.badge{border:1px solid var(--line);border-radius:99px;padding:3px 9px;font-size:10px;font-weight:750;white-space:nowrap}.slide-list{display:grid;gap:8px;margin:18px 0}.slide-row{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fffdf5}.slide-row[data-selected=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.slide-row.drag-over{background:#def1ca}.slide-pick{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding:0;border:0;background:none;text-align:left}.slide-pick img{width:76px;height:50px;object-fit:cover;border-radius:5px;flex:none}.slide-pick>span{display:grid;gap:3px;min-width:0}.slide-pick strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slide-pick small{font-size:10px;color:var(--muted)}.slide-actions{display:flex;gap:5px;flex:none}.slide-actions button{width:30px;height:32px;display:grid;place-items:center;padding:5px;border:1px solid var(--line);border-radius:6px;background:#f4f5ec}.slide-actions svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none}.upload{display:grid;justify-items:center;gap:5px;padding:20px;margin:16px 0 11px;border:1px dashed #9cb3a0;border-radius:10px;cursor:pointer;background:var(--paper);font-size:12px;font-weight:750;text-align:center}.upload svg{width:24px;height:24px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.upload small{font-size:10px;color:var(--muted);font-weight:500}.upload input{position:absolute;width:1px;height:1px;opacity:0}.upload:focus-within{outline:3px solid var(--purple);outline-offset:3px}.upload.drag{background:#e5f1d8;border-color:var(--green)}.source-status{font-size:11px;line-height:1.9;margin-top:12px;color:var(--green)}.source-status[data-error=true]{color:#a34235}.slide-editor{margin-top:20px;border-top:1px solid var(--line);padding-top:19px}.slide-editor summary{font-size:14px;font-weight:750;cursor:pointer}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:19px}.editor-grid .wide{grid-column:1/-1}.editor-grid .range+.range{margin-top:0}.slide-editor>.note{margin-top:15px}.effect-library,.export-section{margin-top:48px}.library-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.library-heading h2{margin-top:8px}.library-heading>p{font-size:12px;color:var(--muted)}.effect-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.effect-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--paper);padding:0;text-align:left;min-width:0}.effect-card canvas{width:100%;height:auto;aspect-ratio:5/3;background:#102722}.effect-card strong{display:block;font-size:13px;padding:13px 15px 3px}.effect-card small{display:block;font-size:10px;line-height:1.8;padding:0 15px 14px;color:var(--muted)}.effect-card[aria-pressed=true]{box-shadow:0 0 0 1px var(--green);border-color:var(--green)}.export-section{padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}.export-section h2{margin:8px 0 18px}.export-section>p:not(.kicker):not(.note){font-size:13px;color:var(--muted);max-width:1000px}.export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.install-field{max-width:500px;margin:20px 0 12px}.export-notes{display:grid;gap:11px;margin:20px 0 0;padding-left:20px;font-size:12px;color:var(--muted);line-height:1.9}.page-footer{display:flex;justify-content:space-between;gap:20px;margin-top:48px;padding:24px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.page-footer a{color:var(--green);text-underline-offset:3px}.toast{position:fixed;z-index:5000;left:50%;bottom:24px;max-width:calc(100% - 30px);padding:12px 20px;background:#234938f5;color:#fff5dd;border-radius:10px;box-shadow:0 8px 25px #16332430;font-size:12px;text-align:center;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog::backdrop{background:#10271ee0;backdrop-filter:blur(9px)}dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}dialog h2{font-size:17px}.icon-close{position:relative;flex:none;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.icon-close::before,.icon-close::after{content:"";position:absolute;left:9px;top:16px;width:16px;height:2px;border-radius:1px;background:currentColor;transform:rotate(45deg)}.icon-close::after{transform:rotate(-45deg)}.preview-dialog{width:1400px}.copy-dialog{width:720px}.copy-dialog textarea{width:100%;height:220px;resize:vertical;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:11px/1.7 monospace}
}
@layer responsive{
@container studio (max-width:1100px){.studio-grid{grid-template-columns:240px minmax(0,1fr)}.control-section{padding:21px 16px}.section-heading{padding:22px}.section-heading h2{font-size:25px}}
@container studio (max-width:790px){.studio-grid{display:flex;flex-direction:column}.workspace{order:-1}.controls{border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section{border-right:1px solid var(--line)}.jump{display:none}}
@container workspace (max-width:530px){.workspace-bar{padding:12px;gap:8px}.window-dots{display:none}.workspace-bar small{display:none}.device{width:110px}.preview-toolbar{padding:13px;gap:8px}.preview-toolbar>.primary{flex-basis:100%}.render-badge{font-size:10px}.slides-section{padding:19px 15px}.slide-pick img{width:55px;height:44px}.slide-pick strong{font-size:11px}.slide-actions{gap:3px}.slide-actions button{width:26px}.editor-grid{grid-template-columns:1fr}.editor-grid .wide{grid-column:auto}.preview-surround.mobile{padding:12px}}
@media(max-width:800px){.page{width:calc(100% - 36px)}.hero{padding-top:28px}.hero-bottom{flex-direction:column;align-items:start;gap:14px}.hero h1{font-size:clamp(32px,5.8vw,48px)}.lead{font-size:14px}.effect-grid{grid-template-columns:1fr 1fr;gap:13px}.library-heading{flex-direction:column;align-items:start;gap:12px}.page-footer{flex-direction:column;gap:8px}}
@media(max-width:440px){.page{width:calc(100% - 24px)}.hero h1{font-size:34px}.eyebrow{letter-spacing:.03em}.section-heading{padding:18px 14px;gap:12px}.section-symbol{width:40px;height:40px;border-radius:11px}.section-heading h2{font-size:19px}.controls{grid-template-columns:1fr}.control-section{border-right:0}.export-section{padding:22px 18px}.export-actions>*{flex:1;flex-basis:100%}.effect-card strong{font-size:12px;padding:12px 12px 3px}.effect-card small{padding:0 12px 12px}.preview-dialog{padding:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
}
