@charset "UTF-8";
@font-face{font-family:"Space Grotesk";src:url('/portal-assets/space-grotesk-latin.woff2') format('woff2');font-weight:300 700;font-display:swap}
:root{color-scheme:dark;--bg:#090909;--surface:#111;--line:#ffffff17;--text:#f1f1f1;--muted:#a0a0a0;--linked:#9bbcff;font-family:"Space Grotesk","Segoe UI",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,summary{cursor:pointer}button,a,summary{-webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:wait;opacity:.55}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}:focus-visible{outline:2px solid #b2caff;outline-offset:4px}button{border:0;background:none}button,a,summary{touch-action:manipulation}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;padding:12px 20px;background:white;color:black}.skip-link:focus{top:16px}
.tool-header{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:32px;padding:0 36px}.tool-brand{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:500;letter-spacing:-.4px}.tool-brand img{display:block;width:36px;height:36px}.domain{color:#757575}.tool-breadcrumb{display:flex;align-items:center;gap:15px;color:#939393;font-size:14px}.tool-breadcrumb>span{color:#444}.tool-breadcrumb strong{color:#d4d4d4;font-weight:400}.tool-breadcrumb a:hover{color:white}.language-switch{display:inline-flex;gap:3px;border:1px solid #ffffff26;border-radius:9px;padding:3px;background:#111;margin-left:auto}.language-switch button{font-size:13px;min-height:33px;min-width:41px;border-radius:6px;color:#8b8b8b}.language-switch [aria-pressed=true]{background:#e8e8e8;color:#111;box-shadow:0 1px 4px #0004}
.describer-main{padding:35px 32px 20px;max-width:1900px;margin:auto}.tool-intro{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:27px}.tool-eyebrow{font-size:11px;letter-spacing:1.6px;color:#858585;margin:0 0 12px}.tool-eyebrow span{margin:0 9px;color:#444}.tool-intro h1{font-size:clamp(26px,2.3vw,38px);font-weight:500;letter-spacing:-1.4px;line-height:1.2;margin:0 0 11px}.tool-intro p:not(.tool-eyebrow){font-size:16px;color:#999;margin:0}.local-badge{display:flex;gap:9px;align-items:center;border:1px solid #ffffff1d;background:#ffffff03;border-radius:8px;padding:11px 14px;color:#b5b5b5;font-size:13px;flex-shrink:0}.local-badge svg{width:17px;height:17px}.workspace-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding:16px 0;color:#8d8d8d;font-size:12px}#scriptStats{display:flex;gap:22px;flex-wrap:wrap}#scriptStats b{font-weight:500;color:#d0d0d0;margin-right:3px}.live-label{display:flex;align-items:center;gap:8px;font-size:12px;flex-shrink:0}.live-label i{display:block;width:5px;height:5px;border-radius:50%;background:#b4c0a0}
.describer-workspace{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:16px;align-items:stretch}.source-panel,.explanation-panel{min-width:0;background:#111;border:1px solid #ffffff21;border-radius:13px;overflow:hidden;display:flex;flex-direction:column;box-shadow:inset 0 1px #ffffff05,0 7px 20px #0002}.panel-header{height:60px;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;border-bottom:1px solid var(--line);background:linear-gradient(#191919,#141414);position:relative;z-index:5}.panel-title{display:flex;align-items:center;gap:10px;min-width:0}.panel-title h2{font-size:14px;letter-spacing:-.1px;font-weight:500;margin:0;white-space:nowrap}.code-symbol{font:15px/1 Consolas,monospace;letter-spacing:-2px;color:#8c8c8c;margin-right:3px}.file-name{font:11px/1.2 Consolas,monospace;color:#777;padding-left:12px;margin-left:2px;border-left:1px solid #383838}.editor-actions{display:flex;gap:7px;align-items:center}.editor-actions summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:34px;font-size:12px;color:#bbb;padding:8px 10px;border:1px solid #ffffff1d;border-radius:6px;background:#ffffff04;white-space:nowrap}.editor-actions summary::-webkit-details-marker{display:none}.editor-actions details{position:relative}.editor-actions details[open]>summary{background:#ffffff12;color:white}.editor-actions details>div{position:absolute;z-index:20;right:0;top:calc(100% + 9px);background:#232323;border:1px solid #ffffff2b;border-radius:9px;box-shadow:0 10px 40px #0009;min-width:215px;padding:6px}.editor-actions details>div button{display:block;width:100%;min-height:40px;text-align:left;padding:9px 12px;font-size:13px;white-space:nowrap;border-radius:5px}.editor-actions details>div button:hover{background:#ffffff0e}.copy-menu summary{width:35px;padding:8px}.editor-actions svg{width:16px;height:16px}.icon-button{display:grid;place-items:center;width:34px;height:34px;color:#999;border-radius:6px}.icon-button:hover{background:#ffffff0c;color:#ddd}.explain-symbol{display:flex;flex-direction:column;gap:3px;width:17px}.explain-symbol i{height:2px;width:15px;background:#999;border-radius:2px}.explain-symbol i:nth-child(2){width:10px}.linked-label{font-size:10px;color:#6f829b;letter-spacing:1.5px}
.editor-surface{position:relative;display:flex;background:#1e1e1e;flex:1;min-height:540px;height:clamp(540px,68svh,880px);overflow:hidden}.line-gutter{width:49px;min-width:49px;background:#1e1e1e;overflow:hidden;border-right:1px solid #ffffff05;user-select:none}.line-gutter pre{margin:0;padding:18px 10px 18px 0;text-align:right;color:#6e7681;will-change:transform}.code-viewport{flex:1;position:relative;min-width:0;overflow:hidden}.code-mirror,.code-input,.line-gutter pre{font-family:"Cascadia Code",Consolas,"Liberation Mono",monospace;font-size:14px;font-weight:400;line-height:25px;letter-spacing:0;font-variant-ligatures:none;font-synthesis:none;tab-size:4}.code-mirror,.code-input{position:absolute;inset:0;margin:0;border:0;padding:18px;white-space:pre;word-wrap:normal;overflow-wrap:normal;text-align:left}.code-mirror{height:max-content;min-height:100%;width:max-content;min-width:100%;pointer-events:none;color:#d4d4d4;will-change:transform}.code-input{width:100%;height:100%;resize:none;outline:none;background:transparent;color:transparent;caret-color:#f5f5f5;-webkit-text-fill-color:transparent;overflow:auto;z-index:2;border-radius:0}.code-input::selection{background:#4581d654;color:transparent;-webkit-text-fill-color:transparent}.code-input:focus{outline:none}.code-viewport:focus-within{box-shadow:inset 0 0 0 1px #ffffff09}.code-token{border-radius:3px;transition:background-color .1s,opacity .1s}.tok-variable{color:#9cdcfe}.tok-keyword{color:#c586c0}.tok-command{color:#dcdcaa}.tok-parameter{color:#9cdcfe}.tok-string{color:#ce9178}.tok-number{color:#b5cea8}.tok-constant{color:#569cd6}.tok-comment{color:#6a9955}.tok-punctuation{color:#ffd700}.tok-operator,.tok-word,.tok-continuation{color:#d4d4d4}.has-linked-range .code-token{opacity:.38}.has-linked-range .code-token.is-range{opacity:1;background:#6b9ce91b}.has-linked-range .code-token.is-related{opacity:.85;background:#c586c014}.code-token.is-token-hover{opacity:1;background:#a7c6ff36!important;box-shadow:0 0 0 1px #a7c6ff55}.code-token.is-variable-active{opacity:1!important;background:#4b8fce44!important;box-shadow:0 0 0 1px #99ccff66}.variable-selection{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#233140;border-top:1px solid #6f9dc52b;color:#c3ddff;font-size:12px;padding:9px 15px}.variable-selection button{font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:4px}.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:49px;padding:11px 15px;color:#828282;font-size:11px;line-height:1.6;border-top:1px solid #ffffff12;background:#141414}#cursorPosition{flex-shrink:0;font-family:Consolas,monospace;color:#8a8a8a;font-size:11px}
.explanation-hint{font-size:12px;line-height:1.6;color:#929292;border-bottom:1px solid #ffffff0a;margin:0;padding:13px 19px;background:#121416}.explanation-scroll{height:clamp(540px,68svh,880px);min-height:490px;flex:1;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth}.explanation-tree{padding:17px 18px 22px}.flow-node{position:relative;border:1px solid #ffffff12;border-radius:10px;margin:0 0 13px;padding:16px;background:#181818;transition:border-color .12s,background .12s;outline-offset:3px}.flow-node:last-child{margin-bottom:0}.flow-node-heading{display:flex;align-items:center;gap:9px;margin-bottom:11px;min-height:23px}.flow-kind{display:inline-flex;align-items:center;padding:3px 7px;min-height:21px;border:1px solid #ffffff15;border-radius:4px;color:#bdbdbd;background:#ffffff03;font-size:10px;line-height:1.2;letter-spacing:.6px;font-weight:500}.flow-category{color:#737373;font-size:11px}.line-link{font-family:Consolas,monospace;font-size:11px;color:#8a8a8a;margin-left:auto;padding:5px 0 5px 9px;white-space:nowrap}.line-link:hover{color:#c6d9ff}.flow-node h3{font-size:16px;line-height:1.4;font-weight:500;letter-spacing:-.3px;margin:0 0 7px;color:#e0e0e0}.flow-description{font-size:14px;line-height:1.7;color:#a2a2a2;margin:0}.source-preview{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 Consolas,monospace;color:#a6b6c6;background:#111419;border:1px solid #ffffff09;border-radius:5px;padding:8px 10px;margin-top:12px;max-height:120px;overflow:auto}.flow-children{border-left:1px solid #788ba947;padding-left:12px;margin:0 0 0 4px}.flow-children .flow-node{padding:13px;background:#14171b}.flow-children .flow-children{padding-left:9px}.flow-children .flow-children .flow-node{padding:11px}.branch-label{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#8b9bb3;display:flex;align-items:center;gap:8px;margin:19px 0 13px}.branch-label:before{content:"";width:15px;height:1px;background:#788ba96b}.condition-box{margin-top:12px;padding:12px;background:#1b1b24;border:1px solid #c586c026;border-radius:6px}.condition-box>span{display:block;font-size:11px;color:#ac94b8;margin-bottom:6px}.condition-box strong{display:block;font-size:14px;line-height:1.6;font-weight:400;color:#d3c1df;overflow-wrap:anywhere}.condition-box code{display:block;font:11px/1.6 Consolas,monospace;color:#9885a7;overflow-wrap:anywhere;white-space:pre-wrap;margin-top:8px}.flow-chain{position:relative;border-left:2px solid #b18bc840;padding-left:10px;margin-bottom:16px}.flow-chain>.flow-node{margin-bottom:9px}.decision-node>.flow-node-heading>.flow-kind{color:#d7ade6;border-color:#c586c037;background:#c586c00c}.loop-node>.flow-node-heading>.flow-kind{color:#a9c7eb;border-color:#87afe03b;background:#87afe00b}.error-node>.flow-node-heading>.flow-kind{color:#d6bf9f;border-color:#e3bb7e33;background:#e3bb7e09}.ffmpeg-node>.flow-node-heading>.flow-kind{color:#bfceaa;border-color:#b5cea836;background:#b5cea80b}.flow-node.is-active,.ff-row.is-active{border-color:#9bbcff78;background:#1c2634;box-shadow:0 0 0 1px #9bbcff09}.flow-node.is-related{border-color:#c586c050}.condition-box.is-active{background:#30253a;border-color:#c586c080}.ff-steps{display:grid;gap:8px;margin-top:14px}.ff-row{position:relative;border:1px solid #ffffff0d;background:#121515;border-radius:6px;padding:10px 12px;transition:background .12s,border-color .12s}.ff-row-label{display:block;font-size:10px;letter-spacing:.4px;color:#858e87;margin-bottom:4px}.ff-row code{display:block;color:#c5d6b8;font:12px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.ff-row p{font-size:13px;line-height:1.65;color:#a1a6a0;margin:7px 0 0}.output-row{border-color:#b5cea826}.unknown-row{border-style:dashed}.empty-block{padding:12px 0 2px;font-size:12px;color:#888}.empty-explanation{padding:95px 25px;text-align:center;max-width:380px;margin:auto}.empty-explanation>span{font:38px/1.4 Consolas,monospace;color:#536174}.empty-explanation h3{font-size:21px;font-weight:500;letter-spacing:-.7px;margin:20px 0 12px}.empty-explanation p{font-size:15px;line-height:1.8;color:#999}.explanation-panel>.panel-footer{min-height:49px}
.reading-notes{margin-top:18px;border:1px solid #ffffff12;border-radius:8px;background:#111;padding:0 15px;color:#888;font-size:12px}.reading-notes>summary{min-height:42px;display:flex;align-items:center;gap:9px;list-style:none}.reading-notes>summary::-webkit-details-marker{display:none}.reading-notes>summary:after{content:"+";margin-left:auto;font-size:17px;color:#777}.reading-notes[open]>summary:after{content:"−"}.reading-notes.has-notes{border-color:#bba48038}.reading-notes.has-notes>summary{color:#c8bda9}.reading-notes p{font-size:13px;line-height:1.7;color:#a2a2a2}.reading-notes b{color:#bbb;margin-right:7px}.tool-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 1px 6px;color:#777;font-size:12px}.tool-footer nav{display:flex;gap:20px;flex-shrink:0}.tool-footer a{color:#aaa}.tool-footer a:hover{color:#eee}.token-tooltip{position:fixed;z-index:100;max-width:min(370px,calc(100vw - 24px));width:max-content;background:linear-gradient(145deg,#2b2d33,#202227);border:1px solid #777b896b;border-radius:10px;box-shadow:0 10px 35px #0009,0 0 0 1px #0005;padding:14px 16px;pointer-events:none;backdrop-filter:blur(12px)}.tooltip-heading{display:flex;flex-direction:column;gap:7px}.tooltip-heading>span{font-size:10px;color:#99a4b9;letter-spacing:.7px;text-transform:uppercase}.tooltip-heading code{font:13px/1.5 Consolas,monospace;color:#d9e6ff;overflow-wrap:anywhere;white-space:pre-wrap;max-width:335px}.token-tooltip>p{font-size:13px;line-height:1.7;color:#c1c3ca;margin:9px 0 0;overflow-wrap:anywhere}.tooltip-parts{border-top:1px solid #ffffff10;margin-top:11px;padding-top:9px;display:grid;gap:6px}.tooltip-parts>div{display:flex;gap:10px;align-items:baseline;font-size:11px;color:#a4adbd}.tooltip-parts code{color:#b6d5f1;background:#b6d5f10e;padding:1px 5px;border-radius:3px;white-space:nowrap}.tool-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:120;background:#eaeaea;color:#161616;padding:12px 19px;border:1px solid white;border-radius:8px;box-shadow:0 8px 30px #0007;font-size:14px;max-width:calc(100% - 32px);text-align:center}
/* The toolbox directory and the home-page dialog share one tool card. */
.toolbox-directory{max-width:760px;padding:65px 25px;margin:auto}.toolbox-directory h1{font-size:clamp(40px,7vw,64px);letter-spacing:-3px;font-weight:500;margin:24px 0 14px}.toolbox-directory>p{color:#aaa;font-size:16px;line-height:1.7}.toolbox-directory>.tool-entry{margin-top:36px}.tool-entry{display:flex;align-items:center;gap:19px;padding:23px;border:1px solid #ffffff28;border-radius:13px;background:linear-gradient(135deg,#222,#151515);box-shadow:inset 0 1px #ffffff0a;text-decoration:none;color:#eee}.tool-entry:hover{border-color:#ffffff65;background:#252525}.tool-entry-icon{width:54px;height:54px;min-width:54px;display:grid;place-items:center;background:linear-gradient(145deg,#3c3c3c,#1a1a1a);border:1px solid #ffffff30;border-radius:12px;box-shadow:inset 1px 1px #ffffff17,0 5px 10px #0004;color:#ddd}.tool-entry-icon svg{width:28px;height:28px}.tool-entry strong{display:block;font-weight:500;font-size:17px;letter-spacing:-.4px}.tool-entry p{font-size:14px;color:#aaa;line-height:1.7;margin:7px 0 0}.tool-entry .tool-entry-kind{display:inline-block;font-size:10px;letter-spacing:1px;color:#919191;margin-bottom:6px}.toolbox-directory .directory-home{font-size:14px;color:#aaa;display:inline-block;padding:10px 0}
@media(min-width:1900px){.editor-surface,.explanation-scroll{height:75svh}}
@media(max-width:1200px){.file-name{display:none}.panel-header{padding-left:14px;padding-right:14px}.editor-actions{gap:3px}.tool-breadcrumb{font-size:12px}.tool-intro h1{font-size:30px}.local-badge{font-size:12px}.flow-category{display:none}.flow-children{padding-left:8px}.flow-children .flow-children{padding-left:6px}.flow-children .flow-node{padding:11px}.flow-children .flow-children .flow-node{padding:9px}.line-link{font-size:10px}.describer-main{padding-left:22px;padding-right:22px}.tool-header{padding-left:25px;padding-right:25px}.explanation-tree{padding:13px}.panel-footer{font-size:10px}}
@media(max-width:850px){.tool-breadcrumb{display:none}.local-badge{display:none}.tool-intro h1{font-size:28px}.tool-header{height:74px}.describer-main{padding-top:28px}.describer-workspace{grid-template-columns:1fr}.editor-surface{height:55svh;min-height:360px}.explanation-scroll{height:70svh;min-height:400px}.explanation-tree{padding:16px}.flow-category{display:inline}.tool-footer{align-items:flex-start;flex-direction:column;gap:13px}.workspace-summary{align-items:flex-start}.live-label{font-size:11px}#scriptStats{gap:15px}.panel-footer{font-size:11px}.panel-title h2{font-size:14px}.flow-children{padding-left:13px}.flow-children .flow-node{padding:14px}}
@media(max-width:500px){.tool-header{padding:0 19px;gap:20px}.tool-brand{font-size:14px;gap:9px}.tool-brand img{width:31px;height:31px}.language-switch button{min-width:35px;min-height:31px}.describer-main{padding:25px 14px 20px}.tool-intro{margin-bottom:23px}.tool-intro h1{font-size:25px;line-height:1.25;letter-spacing:-1px;max-width:330px}.tool-intro p:not(.tool-eyebrow){font-size:14px}.tool-eyebrow{font-size:9px;letter-spacing:1.2px}.live-label{display:none}.workspace-summary{padding:13px 0}.panel-header{height:56px;min-height:56px;padding:0 11px}.panel-title{gap:8px}.editor-actions summary{font-size:11px;padding:7px 8px}.code-symbol{font-size:13px}.editor-actions .icon-button{width:29px}.copy-menu summary{width:31px}.editor-actions{gap:2px}.panel-title h2{font-size:13px}.line-gutter{width:38px;min-width:38px}.line-gutter pre{padding-right:8px}.code-mirror,.code-input{padding-left:13px;padding-right:13px}.code-mirror,.code-input,.line-gutter pre{font-size:13px;line-height:24px}.editor-surface{height:450px;min-height:350px}.panel-footer{font-size:10px;padding:10px 11px;gap:10px}.panel-footer #cursorPosition{display:none}.flow-node{padding:13px}.explanation-tree{padding:13px 11px}.flow-node h3{font-size:15px}.flow-description{font-size:14px}.flow-children .flow-node{padding:11px}.flow-children{padding-left:9px}.flow-children .flow-children{padding-left:6px}.flow-category{display:none}.condition-box{padding:10px}.ff-row{padding:9px}.tooltip-heading code{max-width:285px}.token-tooltip{max-width:calc(100vw - 24px)}.toolbox-directory{padding-top:40px}.tool-entry{padding:18px;gap:15px}.tool-entry-icon{width:45px;height:45px;min-width:45px}.tool-entry strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.tok-type{color:#4ec9b0}.editor-surface,.explanation-scroll{flex:1 1 auto}.token-tooltip{max-height:calc(100svh - 24px);overflow:hidden}
