:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f9f7;--surface:#fff;--sidebar:#edf2ef;--text:#17221e;--muted:#5e6e65;--line:#d5dfd8;--accent:#08603c;--soft:#e0eee5;--shadow:0 3px 12px #173d2610;font-synthesis:none;color:var(--text);background:var(--bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0c1512;--surface:#14211c;--sidebar:#101e18;--text:#eef6f0;--muted:#a2b8a9;--line:#31463a;--accent:#a0e6b5;--soft:#263f30;--shadow:0 3px 12px #0003}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit}button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;min-height:44px;padding:10px 16px}button:hover:not(:disabled){background:var(--soft)}:is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{flex-shrink:0;width:22px;height:22px}.icon-button{background:0 0;border:0;place-items:center;min-width:44px;padding:10px;display:inline-grid}.primary{color:#fff;background:#075c39;border-color:#075c39;box-shadow:0 2px 4px #002b1818}.primary:hover:not(:disabled){background:#08764a}.app{--sidebar-width:224px;min-height:100dvh;padding-top:82px;padding-left:var(--sidebar-width)}.app.rail{--sidebar-width:76px}.global-header{z-index:20;background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:18px;height:82px;padding:16px 28px;display:flex;position:fixed;inset:0 0 auto}.brand{letter-spacing:-1px;align-items:center;gap:10px;font-size:26px;font-weight:750;text-decoration:none;display:flex}.brand-icon{color:#fff;background:#075c39;border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.brand-icon svg{width:24px}.badge{background:var(--soft);color:var(--accent);white-space:nowrap;border-radius:30px;padding:6px 10px;font-size:11px}.tagline{color:var(--muted);border-left:1px solid var(--line);padding-left:18px;font-size:13px}.search-trigger{color:var(--muted);min-width:245px;box-shadow:var(--shadow);align-items:center;gap:10px;margin-left:auto;font-size:13px;display:flex}kbd{opacity:.7;margin-left:auto;font-size:11px}.new-button{align-items:center;gap:8px;display:flex}.sidebar{width:var(--sidebar-width);background:var(--sidebar);border-right:1px solid var(--line);z-index:15;flex-direction:column;gap:12px;padding:16px 14px 24px;display:flex;position:fixed;top:82px;bottom:0;left:0}.collapse-button{align-self:flex-end}.sidebar nav,.sidebar-bottom{flex-direction:column;gap:8px;display:flex}.sidebar a,.drawer a{border-radius:10px;align-items:center;gap:14px;min-height:48px;padding:10px 14px;font-weight:550;text-decoration:none;display:flex}.sidebar a:hover,.drawer a:hover{background:var(--soft)}a[aria-current=page]{background:var(--soft);color:var(--accent);font-weight:700}.sidebar-bottom{border-top:1px solid var(--line);margin-top:auto;padding-top:22px}.sidebar small{color:var(--muted);margin-left:auto;font-size:10px}.rail .sidebar a{justify-content:center;padding:10px}.rail .sidebar a span,.rail .sidebar small{display:none}.main-column{max-width:1600px;margin:auto}main{padding:38px 32px max(36px,env(safe-area-inset-bottom));outline:none}.page-heading{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}h1{letter-spacing:-1.3px;margin:0 0 8px;font-size:36px;line-height:1.2}h2{letter-spacing:-.3px;line-height:1.3}p{line-height:1.6}.page-heading p{color:var(--muted);margin:0;font-size:15px}.library-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.category-pill{background:var(--accent);color:var(--surface);border-radius:8px;align-items:center;gap:10px;padding:9px 15px;font-size:13px;display:flex}.category-pill span{opacity:.8}.library-controls{align-items:center;gap:8px;display:flex}.sort-label{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}select{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text);border-radius:8px;padding:8px}.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none;display:grid}.tool-card{border:1px solid var(--line);background:var(--surface);min-width:0;box-shadow:var(--shadow);border-radius:16px;transition:transform .15s,box-shadow .15s;position:relative}.tool-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #173d261c}.card-open{text-align:left;background:0 0;border:0;border-radius:16px;width:100%;height:100%;padding:0;display:block;overflow:hidden}.card-open:hover:not(:disabled){background:0 0}.card-art{color:#1e6047;background:linear-gradient(145deg,#ddf1dd,#9ac9ad);place-items:center;height:158px;display:grid;position:relative;overflow:hidden}.accent-1 .card-art{color:#5b397b;background:linear-gradient(145deg,#ede2fa,#bba0d7)}.accent-2 .card-art{color:#705a24;background:linear-gradient(145deg,#fff0cf,#dfc98d)}.accent-3 .card-art{color:#31597a;background:linear-gradient(145deg,#dceffc,#9ebfdc)}.card-art:before,.card-art:after{content:"";border:1px solid #ffffff70;border-radius:50%;width:180px;height:180px;position:absolute;transform:translate(55%,35%)}.card-art:after{transform:translate(-60%,-35%)}.tool-monogram{z-index:1;background:#ffffffab;border-radius:22px;place-items:center;width:76px;height:76px;font-size:38px;font-weight:650;display:grid;position:relative;box-shadow:0 10px 20px #163a2920}.card-caption{padding:16px 18px}.card-caption h2{overflow-wrap:anywhere;margin:0 0 6px;font-size:19px}.card-caption p{color:var(--muted);margin:0 0 12px;font-size:13px}.tool-category{color:var(--accent);background:var(--soft);border-radius:20px;padding:4px 9px;font-size:11px}.card-more{background:var(--surface);box-shadow:var(--shadow);border-radius:50%;width:44px;position:absolute;top:6px;right:6px}.list-view{grid-template-columns:1fr}.list-view .card-open{align-items:center;display:flex}.list-view .card-art{flex-shrink:0;width:120px;height:110px}.list-view .card-caption{padding:12px 20px}.list-view .card-more{top:32px}.list-view .tool-monogram{border-radius:16px;width:52px;height:52px;font-size:28px}.empty-state{text-align:center;border:1px dashed var(--line);color:var(--muted);background:var(--surface);border-radius:20px;padding:64px 24px}.empty-state h2{color:var(--text);font-size:24px}.empty-state p{max-width:400px;margin:12px auto 24px}.empty-symbol{background:var(--soft);color:var(--accent);border-radius:20px;place-items:center;width:68px;height:68px;margin:auto;display:grid}.empty-symbol svg{width:30px;height:30px}.skip-link{z-index:100;position:fixed;top:-100px;left:12px}.skip-link:focus{background:var(--surface);padding:12px;top:12px}.mobile-menu{display:none}dialog{border:1px solid var(--line);color:var(--text);background:var(--surface);border-radius:20px;width:min(520px,100% - 32px);max-height:calc(100dvh - 40px);padding:0;box-shadow:0 20px 100px #0004}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#001c1480}.overlay-content{padding:24px}.overlay-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.overlay-heading h2{margin:0;font-size:20px}.action-list{flex-direction:column;gap:8px;display:flex}.action-list button{text-align:left;border:0;align-items:center;gap:16px;padding:16px;display:flex}.action-list small{color:var(--muted);margin-top:5px;font-size:12px;display:block}.danger{color:#af3434}.drawer{border-radius:0 24px 24px 0;width:min(320px,85vw);height:100dvh;max-height:100dvh;margin:0 auto 0 0}.drawer .overlay-content{height:100%;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));flex-direction:column;display:flex}.drawer nav{flex-direction:column;gap:6px;display:flex}.drawer .sidebar-bottom{flex-direction:column;gap:8px;display:flex}.drawer small{color:var(--muted);margin-left:auto}label{font-size:14px;font-weight:550;display:block}input,textarea{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);border-radius:8px;margin:8px 0 18px;padding:12px;display:block}textarea{resize:vertical;min-height:150px;font-family:ui-monospace,monospace}fieldset{border:0;min-width:0;margin:0;padding:0}legend{margin:16px 0;font-size:20px;font-weight:600}form>p,fieldset>p{color:var(--muted);font-size:13px}form button,fieldset button{margin-right:8px}.workspace>section[aria-label=Tool\ editor],.settings-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px}.settings-panel{max-width:640px}.settings-panel select{min-width:180px;margin-top:12px;display:block}.workspace [role=alert],.runtime-error{background:var(--soft);overflow-wrap:anywhere;border-radius:8px;padding:12px}.runtime-error{white-space:pre-wrap;max-height:8em;font-size:12px;overflow:auto}.main-column>aside{background:var(--soft);padding:16px 32px}input[type=checkbox]{width:auto;margin:0 8px 0 0;display:inline}.main-column>aside p{font-size:13px}.clear-search{margin-top:20px}.tool-runner{z-index:50;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.runtime-bar{padding:max(8px,env(safe-area-inset-top)) 16px 8px;border-bottom:1px solid var(--line);background:var(--surface);align-items:center;gap:8px;display:flex}.runtime-bar h2{text-overflow:ellipsis;white-space:nowrap;margin:0 auto 0 8px;font-size:18px;overflow:hidden}.runtime-host{flex:1;min-height:0}.runtime-host iframe{background:#fff;border:0;width:100%;height:100%;display:block}.tool-runner>p{padding:8px 16px max(8px,env(safe-area-inset-bottom));color:var(--muted);margin:0;font-size:11px}.app[data-running=true]>.global-header,.app[data-running=true]>.sidebar,.app[data-running=true] .page-heading,.app[data-running=true] .main-column>aside,.app[data-running=true] .clear-search,.workspace[data-running=true]>section:not(.tool-runner){display:none}[hidden]{display:none!important}@media (width>=1600px){.tool-grid{gap:24px}.card-art{height:195px}}@media (width<=1199px){.tagline{display:none}.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app{--sidebar-width:200px}.global-header{gap:12px}}@media (width<=899px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app{--sidebar-width:76px}.sidebar a{justify-content:center;padding:10px}.sidebar a span,.sidebar small{display:none}.global-header{padding:14px 20px}.search-trigger{min-width:44px;padding:10px}.search-trigger span,.search-trigger kbd{display:none}main{padding:28px 22px}.brand{font-size:23px}}@media (width<=639px){.app,.app.rail{padding-left:0;padding-top:calc(72px + env(safe-area-inset-top))}.global-header{height:calc(72px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;gap:4px}.mobile-menu{display:inline-grid}.sidebar{display:none}.brand{gap:6px;font-size:21px}.brand-icon{border-radius:8px;width:28px;height:30px}.brand-icon svg{width:20px}.badge{margin-left:4px;padding:4px 6px;font-size:9px}.search-trigger{box-shadow:none;background:0 0;border:0;min-width:44px;margin-left:auto}.new-button{border-radius:13px;min-width:44px;padding:10px}.new-button span{display:none}main{padding:24px 16px max(32px,env(safe-area-inset-bottom))}h1{font-size:29px}.page-heading{margin-bottom:22px}.page-heading p{max-width:300px;font-size:13px}.library-toolbar{gap:8px;margin-bottom:18px}.category-pill{padding:8px 10px;font-size:12px}.sort-label{font-size:0}.sort-label select{max-width:130px;font-size:12px}.tool-grid{gap:12px}.card-art{height:115px}.tool-monogram{border-radius:17px;width:58px;height:58px;font-size:30px}.card-caption{padding:12px}.card-caption h2{font-size:16px}.card-caption p{font-size:12px}.tool-category{font-size:10px}.card-more{box-shadow:none;background:0 0;top:2px;right:2px}.card-more svg{background:var(--surface);border-radius:20px}.runtime-bar{gap:4px;padding-left:8px;padding-right:8px}.runtime-bar button{padding:8px;font-size:11px}.runtime-bar h2{font-size:14px}.main-column>aside{padding:12px 16px}.workspace>section[aria-label=Tool\ editor]{padding:16px}.overlay-content{padding:20px}.empty-state{padding:40px 20px}}@media (width>=480px) and (width<=639px){.tool-grid:not(.list-view){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}@media (width<=359px){.brand-icon{display:none}.global-header{gap:0}.brand{font-size:20px}.tool-grid{gap:8px}.card-caption{padding:10px}}.files-workspace{grid-template-columns:180px minmax(0,1fr);align-items:start;gap:16px;display:grid}.files-feedback{grid-column:1/-1}.files-feedback:empty{display:none}.file-collections,.file-list-pane,.source-preview{background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0;padding:16px}.file-collections{position:sticky;top:100px}.file-collections>button,.collection-tree button{text-align:left;overflow-wrap:anywhere;border:0;align-items:center;gap:10px;width:100%;margin-bottom:8px;display:flex}.file-collections button[aria-current]{background:var(--soft);color:var(--accent)}.file-collections small{margin-left:auto}.collection-tree{margin:6px 0 24px;padding-left:12px}.collection-tree button{padding:8px;font-size:12px}.secondary,.project-state{color:var(--muted);font-size:12px;line-height:1.6}.breadcrumbs{border-bottom:1px solid var(--line);overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:4px;padding-bottom:12px;font-size:12px;display:flex}.breadcrumbs button{background:0 0;border:0;padding:8px;font-size:12px}.breadcrumbs button:after{content:" ›";color:var(--muted)}.file-context-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;display:flex}.file-context-toolbar h2{overflow-wrap:anywhere;margin:0;font-size:18px}.file-context-toolbar>div{flex-wrap:wrap;gap:6px;display:flex}.file-context-toolbar button{padding:8px;font-size:12px}.file-list{margin:0;padding:0;list-style:none}.file-list>li{border-bottom:1px solid var(--line);align-items:center;gap:4px;display:flex;position:relative}.file-list>li[data-selected=true]{background:var(--soft);border-radius:8px}.file-open{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;padding:14px 8px;display:flex}.file-open>span:not(.file-extension){min-width:0}.file-open small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.file-extension{background:var(--soft);color:var(--accent);text-align:center;border-radius:5px;min-width:36px;padding:7px 4px;font-size:10px}.file-actions{position:relative}.file-actions summary{cursor:pointer;border-radius:8px;place-items:center;min-width:44px;min-height:44px;list-style:none;display:grid}.file-actions summary::-webkit-details-marker{display:none}.file-actions summary:focus-visible{outline:3px solid var(--accent)}.file-actions>div{z-index:10;background:var(--surface);width:190px;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:10px;padding:6px;position:absolute;top:42px;right:0}.file-actions button{text-align:left;overflow-wrap:anywhere;border:0;width:100%;font-size:12px;display:block}.file-empty,.files-welcome{color:var(--muted);padding:24px 8px;font-size:14px}.source-preview h2,.overlay-heading h2{overflow-wrap:anywhere;min-width:0}.source-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border:1px solid var(--line);border-radius:8px;max-height:55vh;padding:16px;font-size:12px;overflow:auto}.source-preview select{width:100%;margin-top:8px}.source-preview h3{font-size:15px}.source-preview>p{font-size:13px}.mobile-back{display:none}.file-dialog fieldset{max-width:100%}.file-dialog p{overflow-wrap:anywhere;font-size:13px}.file-dialog input[type=file]{max-width:100%;font-size:12px}.file-dialog [role=alert],.files-feedback [role=alert]{background:var(--soft);overflow-wrap:anywhere;border-radius:8px;padding:12px}.file-dialog button{margin-top:12px}.file-dialog textarea{max-height:240px}@media (width<=1199px){.files-workspace.has-selection{grid-template-columns:170px minmax(0,1fr)}.files-workspace.has-selection .file-list-pane{display:none}.mobile-back{margin-bottom:16px;display:block}}@media (width<=639px){.files-workspace,.files-workspace.has-selection{display:block}.file-collections{flex-direction:column;gap:10px;display:flex;position:static}.files-workspace:not(.has-location) .file-list-pane,.files-workspace.has-location .file-collections,.files-workspace.has-selection .file-list-pane{display:none}.files-workspace .source-preview{margin-top:0}.collection-tree{display:none}.file-list-pane,.source-preview{padding:14px}.files-feedback{margin-bottom:12px}.file-dialog input[type=file]{padding:8px}.file-context-toolbar h2{font-size:20px}.source-preview pre{max-height:55dvh}}.files-workspace{grid-template-columns:200px minmax(0,1fr)}.files-workspace.has-selection{grid-template-columns:200px minmax(200px,1fr) minmax(240px,1fr)}.file-collections>button{gap:8px;padding:10px 8px;font-size:14px}.file-collections>button>span{white-space:nowrap}.tree-children{border-left:1px solid var(--line);margin-left:8px;padding-left:10px}.collection-tree{padding-left:0}.collection-tree button{overflow-wrap:anywhere;font-weight:500}.collection-tree button svg{width:18px;height:18px}@media (width<=1199px){.files-workspace.has-selection{grid-template-columns:200px minmax(0,1fr)}}.workshop-paths{gap:8px;margin-bottom:16px;display:flex}.workshop-paths button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.source-workbench{min-width:0}.source-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}.source-toolbar strong{overflow-wrap:anywhere;margin-right:auto}.source-toolbar [role=status]{color:var(--muted);font-size:12px}.source-workspace{grid-template-columns:180px minmax(0,1fr);gap:16px;display:grid}.source-workspace.explorer-collapsed{grid-template-columns:minmax(0,1fr)}.project-explorer{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0;padding:14px}.project-explorer h2{overflow-wrap:anywhere;font-size:15px}.project-explorer h3{color:var(--muted);margin-top:24px;font-size:12px}.project-explorer button{text-align:left;overflow-wrap:anywhere;border:0;width:100%;padding:10px;font-size:13px;display:block}.project-explorer button[aria-current]{background:var(--soft);color:var(--accent)}.source-editing-area{min-width:0}.source-split{min-width:0;min-height:500px;display:grid}.source-code-pane,.source-result-pane{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0;padding:14px}.source-code-pane textarea{tab-size:2;background:var(--bg);resize:vertical;min-height:440px;margin-bottom:8px;line-height:1.6}.source-code-pane label{color:var(--muted);font-size:12px}.source-divider{cursor:col-resize;touch-action:none;background:var(--soft);border:3px solid var(--bg);border-radius:8px}.source-divider:focus-visible{outline:3px solid var(--accent)}.source-result-pane{overflow-wrap:anywhere;max-height:650px;overflow:auto}.source-result-pane pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.source-result-pane ul{padding-left:18px}.source-result-pane details{padding:4px}.source-result-pane summary{cursor:pointer;font-weight:600}.source-result-pane iframe{border:1px solid var(--line);background:#fff;width:100%;height:450px}.table-preview{overflow:auto}.table-preview table{border-collapse:collapse;font-size:13px}.table-preview td{border:1px solid var(--line);white-space:pre-wrap;min-width:60px;max-width:300px;padding:8px}.markdown-preview{line-height:1.7}.markdown-preview pre{background:var(--bg);border-radius:8px;padding:12px}.format-warning,.source-workbench>[role=alert]{background:var(--soft);overflow-wrap:anywhere;border-radius:8px;padding:12px;font-size:13px}.phone-source-switch,.app[data-running=true] .workshop-paths{display:none}@media (width>=1200px){.source-split.preview-enabled{grid-template-columns:minmax(260px,1fr) 12px minmax(260px,1fr)}}@media (width<=1199px){.source-split{grid-template-columns:minmax(0,1fr)!important}.source-divider,.source-split.preview-enabled .source-result-pane,.source-split.phone-result .source-code-pane{display:none}.source-split.phone-result .source-result-pane{display:block}.phone-source-switch{margin-bottom:12px;display:block}}@media (width<=639px){.source-workspace{grid-template-columns:minmax(0,1fr)}.project-explorer{max-height:220px;overflow:auto}.source-toolbar{gap:6px}.source-toolbar button{padding:8px;font-size:12px}.source-toolbar strong{width:100%}.source-split{min-height:420px}.source-code-pane textarea{min-height:380px}.source-result-pane{max-height:none}.source-result-pane iframe{height:420px}.workshop-paths button{font-size:12px}}
