:root{color-scheme:light;--ink:#213c32;--muted:#78857e;--line:#e2e8e1;--soft:#f5f7f3;--paper:#fff;--green:#2c654c;--mint:#e9f2e4;--accent:#cbe4b6;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:var(--sans);font-size:14px;background:#fafbf8}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38}button{color:inherit}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.skip-link{position:fixed;top:-100px;left:12px;z-index:100;padding:12px;background:white}.skip-link:focus{top:12px}.app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}.sidebar{background:#f0f3ed;border-right:1px solid var(--line);padding:30px 22px 20px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;letter-spacing:1px}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;margin-top:6px;color:#809083}.brand-mark{background:var(--ink);height:40px;width:40px;border-radius:11px;color:#f3f6ef;display:flex;align-items:center;justify-content:center;font:25px var(--mono);letter-spacing:1px}.brand-mark i{color:var(--accent);font-style:normal}.search-box{margin:34px 0 22px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce3d9;border-radius:8px;padding:10px 9px}.search-box svg{width:17px;fill:none;stroke:#7c8c80;stroke-width:1.6;flex-shrink:0}.search-box input{border:0;outline:none;width:100%;background:transparent;font-size:12px;min-width:0;color:var(--ink)}.search-box kbd{font:9px var(--sans);white-space:nowrap;color:#9aa397;border:1px solid #e1e7dc;padding:1px 3px;border-radius:3px}.filter-row{display:flex;gap:8px;margin-bottom:22px}.filter{font-size:11px;border:0;background:none;color:#788878;padding:6px 5px}.filter.active{color:var(--ink);font-weight:650}.filter span{font-size:10px;background:#e3e9dd;padding:2px 4px;border-radius:4px;margin-left:3px}.nav-category{margin:0 0 8px 10px;color:#81917f;font-size:10px;font-weight:500;letter-spacing:1.2px}.nav-group{margin-bottom:25px}.tool-link{display:flex;align-items:center;gap:11px;margin:4px 0;padding:12px 11px;border-radius:8px;font-size:12px;color:#5f7264}.tool-link:hover{background:#e7ede2}.tool-link.active{background:#dfead5;color:#244d33;font-weight:600}.tool-link .tool-icon{font:12px var(--mono);width:25px;text-align:center;color:#7c927c}.tool-link.active .tool-icon{color:#527446}.tool-link .nav-arrow{margin-left:auto;font-size:12px}.sidebar-bottom{margin-top:auto;padding:40px 9px 4px}.privacy-icon{font-size:26px;color:#69845c;margin-bottom:8px}.sidebar-bottom strong{font-size:11px;font-weight:600}.sidebar-bottom p{font-size:10px;line-height:1.9;color:#8a9585;margin:9px 0 30px}.version{font:8px var(--mono);letter-spacing:1.3px;color:#a1aa9b}.topbar{height:72px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#fdfefa}.breadcrumb{font-size:11px;color:#8a9489}.breadcrumb span{margin:0 15px;color:#b5beb0}.breadcrumb b{font-weight:500;color:#5f7261}.local-badge{font-size:10px;display:flex;align-items:center;gap:7px;color:#758970}.local-badge i{width:5px;height:5px;background:#7fa465;border-radius:50%}main{max-width:1560px;margin:auto;padding:38px 42px 24px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8f9c89;display:block;margin-bottom:12px}h1{font-size:28px;letter-spacing:-.8px;font-weight:650;margin:0 0 12px}.workspace-heading p{color:#87917f;font-size:12px;line-height:1.8;margin:0}.favorite-button{height:36px;width:36px;border:1px solid var(--line);border-radius:50%;background:white;font-size:20px;color:#9baa91}.favorite-button[aria-pressed=true]{background:var(--mint);color:var(--green)}#standard-tool{border:1px solid #dce4d8;border-radius:12px;background:white;overflow:hidden;box-shadow:0 5px 18px #23412104}.workbench-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:12px 18px;background:#fcfdf9;border-bottom:1px solid var(--line);gap:18px}.options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;max-width:100%}.option{display:flex;align-items:center;gap:9px;font-size:11px;color:#74826d}.option select,.option input:not([type=checkbox]),.option textarea{border:1px solid #dce4d6;background:white;border-radius:5px;padding:6px 8px;color:#49603f;max-width:100%;min-width:0}.option select{font-size:11px;max-width:330px}.option textarea{min-height:72px}.option input[type=checkbox]{accent-color:var(--green)}.option-hint{color:var(--muted);font-size:10px}.shortcut{font-size:9px;color:#a0a796;white-space:nowrap}.shortcut kbd{font:9px var(--sans);padding:2px 4px;border:1px solid #e3e7dc;border-radius:4px;background:white}.editors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.editors.no-input{grid-template-columns:minmax(0,1fr)}.editor-panel{min-width:0;display:flex;flex-direction:column}.input-panel{border-right:1px solid var(--line);background:#fdfefa}.output-panel{background:#fff}.editor-heading{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:10px}.editor-heading label{font-size:11px;font-weight:600;white-space:nowrap}.editor-heading>div{display:flex;align-items:center;gap:10px}.text-button{border:0;padding:5px 0;font-size:10px;color:#8b987f;background:none}.text-button:hover{color:var(--green)}.separator{display:block;height:10px;width:1px;background:#e5e9df}.icon-button{background:none;border:0;padding:4px;color:#8b987f;display:flex}.icon-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5}#tool-input,#tool-output{border:0;resize:vertical;width:100%;height:330px;min-height:220px;padding:6px 20px 18px;background:transparent;font:12px/1.9 var(--mono);color:#3f5d4d;tab-size:2;white-space:pre;overflow-wrap:normal}#tool-input::placeholder,#tool-output::placeholder{font-family:var(--sans);color:#bcc4b5;font-size:11px}#tool-input:focus,#tool-output:focus{outline:0;box-shadow:inset 0 0 0 2px #7fa46555}.output-content{display:flex;flex:1;min-height:330px}#html-preview{border:0;width:100%;min-height:330px;background:#fff}.editor-footer{margin-top:auto;padding:10px 18px 14px;display:flex;justify-content:space-between;color:#a1ac98;font:9px var(--mono);letter-spacing:.2px}.editor-footer>span:last-child{font-size:8px;letter-spacing:1.5px;color:#c0c9b8}.action-bar{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-top:1px solid var(--line);gap:15px;background:#fcfdf9}#tool-actions{display:flex;gap:8px;flex-wrap:wrap}.action-button{border:1px solid #dce5d5;background:#fff;padding:10px 22px;border-radius:6px;color:#6d7d5f;font-size:11px;font-weight:550}.action-button.primary{background:#2f5d46;color:#fff;border-color:#2f5d46}.action-button:hover:not(:disabled){filter:brightness(.95)}#result-status{margin:0;color:#97a189;font-size:10px;line-height:1.6;text-align:right}#result-status.success{color:#6e8f5c}.error-box{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff5f1;border-top:1px solid #edd8d0;color:#a4523e;padding:15px 18px;font-size:11px;line-height:1.8}.tool-note{display:flex;align-items:flex-start;gap:10px;margin:18px 0 34px;padding:0 2px;color:#939f88;font-size:10px;line-height:1.8}.tool-note>span{flex-shrink:0;width:13px;height:13px;border:1px solid #a5b297;border-radius:50%;font:9px/12px Georgia;text-align:center;margin-top:2px}.tool-note p{margin:0}.how-it-works{border-top:1px solid #e7ecdf;display:grid;grid-template-columns:repeat(3,1fr);padding-top:25px;gap:20px}.how-it-works>div{display:flex;gap:13px;align-items:center}.how-it-works>div>span{font:11px var(--mono);color:#a6b699;background:#eff4e9;border-radius:6px;width:30px;height:30px;display:grid;place-items:center}.how-it-works p{margin:0}.how-it-works b{display:block;font-size:10px;color:#798c6b;font-weight:550}.how-it-works small{display:block;font-size:9px;color:#a8b29c;margin-top:5px}.workspace-footer{display:flex;justify-content:space-between;gap:16px;font-size:9px;color:#b1baa7;margin-top:42px}.custom-tool{padding:24px;border:1px solid var(--line);border-radius:12px;background:white;overflow-wrap:anywhere}.custom-tool input,.custom-tool textarea,.custom-tool select{max-width:100%;padding:9px;border:1px solid var(--line);border-radius:6px}.custom-tool button{padding:9px 16px;border-radius:6px;border:1px solid var(--line);background:var(--mint);margin:4px}.custom-tool pre{white-space:pre-wrap;overflow-wrap:anywhere}.noscript{position:fixed;inset:10px;background:white;border:2px solid var(--green);padding:30px}#no-results{font-size:12px;color:#788878;line-height:1.8}@media(min-width:1500px){#tool-input,#tool-output{height:420px}#html-preview,.output-content{min-height:420px}}@media(max-width:1150px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:28px 16px}.topbar{padding:0 26px}main{padding:30px 26px}.shortcut{display:none}.editor-heading>div{gap:7px}.text-button{font-size:9px}.editor-heading{padding:0 12px}#tool-input,#tool-output{padding:6px 14px 18px}.action-button{padding:9px 16px}}@media(max-width:850px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:24px 12px}.brand{font-size:15px;gap:8px}.brand small{font-size:7px;letter-spacing:1px}.brand-mark{height:34px;width:34px}.search-box{margin-top:26px}.search-box kbd{display:none}.filter-row{gap:2px}.filter{font-size:10px}.tool-link{font-size:11px;padding:11px 7px;gap:7px}.topbar{padding:0 20px}main{padding:28px 20px}.editors{grid-template-columns:1fr}.input-panel{border-right:0;border-bottom:1px solid var(--line)}#tool-input,#tool-output{height:240px;min-height:180px}.output-content,#html-preview{min-height:240px}.how-it-works{gap:12px}.how-it-works>div{gap:6px}.how-it-works small{font-size:8px}.local-badge{font-size:9px}}@media(max-width:560px){.app-shell{display:block}.sidebar{min-height:0;border-right:0;border-bottom:1px solid var(--line);padding:20px 18px 14px}.brand{font-size:17px}.brand small{font-size:7px}.search-box{margin:20px 0 10px;padding:9px}.search-box kbd{display:block}.filter-row{margin-bottom:8px}.filter{font-size:11px}#tool-nav{display:flex;overflow-x:auto;gap:8px;padding-bottom:3px}.nav-group{display:contents}.nav-category{display:none}.tool-link{flex-shrink:0;white-space:nowrap;background:#e8eee2;font-size:11px;padding:9px 12px;margin:0}.tool-link .nav-arrow{display:none}.sidebar-bottom{display:none}.topbar{height:48px;padding:0 18px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 8px}.local-badge{font-size:8px}main{padding:26px 18px 20px}.workspace-heading{margin-bottom:23px}.eyebrow{font-size:9px;margin-bottom:10px}h1{font-size:25px}.workspace-heading p{font-size:10px;padding-right:12px}.favorite-button{flex-shrink:0;width:32px;height:32px}.workbench-toolbar{padding:12px;min-height:52px}.option{font-size:10px;flex-wrap:wrap}.option select{font-size:10px;max-width:270px}#tool-input,#tool-output{font-size:11px;height:220px}.output-content,#html-preview{min-height:220px}.action-bar{align-items:flex-start;flex-direction:column;padding:13px}.action-button{padding:9px 18px}.tool-note{margin-bottom:26px;font-size:9px}.how-it-works{gap:10px}.how-it-works>div>span{display:none}.how-it-works b{font-size:9px}.how-it-works small{font-size:8px;line-height:1.7}.workspace-footer{font-size:8px;margin-top:28px;line-height:1.7}.editor-heading label{font-size:10px}.custom-tool{padding:16px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s}}
.language-button{font-size:10px;border:1px solid var(--line);background:#fff;border-radius:5px;padding:6px 9px;white-space:nowrap}.topbar .local-badge{margin-left:auto;margin-right:18px}.sidebar-bottom p{white-space:pre-line}.options:has(.option textarea){align-items:flex-start}.option:has(textarea){align-items:flex-start;flex-direction:column}.custom-tool label{display:block;margin:12px 0 5px}.custom-tool .field,.custom-tool .control{margin:10px 0}.custom-tool h2{font-size:20px}.custom-tool table{border-collapse:collapse;max-width:100%;font-size:12px}.custom-tool th,.custom-tool td{padding:9px;border-bottom:1px solid var(--line);text-align:left}.custom-tool video,.custom-tool img,.custom-tool canvas,.custom-tool svg{max-width:100%}.custom-tool [role=alert]{color:#a4523e}html[lang=en] .brand{font-size:15px;letter-spacing:-.4px}html[lang=en] .brand small{letter-spacing:1.4px}html[lang=en] .tool-link{font-size:11px}html[lang=en] .editor-heading label{font-size:10px}
.options.many-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));width:100%;gap:12px 18px}.many-options .option{align-items:stretch;flex-direction:column;gap:6px}.many-options .option:has(input[type=checkbox]){flex-direction:row;align-items:center}.many-options input,.many-options select,.many-options textarea{width:100%}.many-options input[type=checkbox]{width:auto}.workbench-toolbar:has(.many-options){align-items:flex-start}.workbench-toolbar:has(.many-options) .shortcut{display:none}.tool-view{min-width:0}
.static-tool-guide{margin-top:35px;padding:24px 0;border-top:1px solid var(--line);font-size:11px;color:#8a9880;line-height:1.9}.static-tool-guide h2{font-size:14px;font-weight:550;color:#6d8260}.static-tool-guide ol{padding-left:18px}.app-ready .static-tool-guide{display:none}
@media(min-width:561px){.sidebar{position:sticky;top:0;height:100vh;min-height:0}.brand,.search-box,.filter-row,.sidebar-bottom{flex-shrink:0}#tool-nav{flex:1;overflow-y:auto;min-height:0;margin:0 -6px;padding:0 6px;scrollbar-width:thin;scrollbar-color:#ced9c5 transparent}.sidebar-bottom{padding-top:18px}.sidebar-bottom p{margin-bottom:18px}}@media(max-width:560px){.sidebar{height:auto;position:static}#tool-nav{flex:initial}}
.noscript{position:static;inset:auto;margin:20px;padding:16px;border:1px solid var(--line);border-radius:8px;font-size:13px}
/* Shared-shell contrast pass: small labels target >= 4.5:1 on light surfaces. */
:root{--muted:#5e7059}.brand small,.nav-category,.sidebar-bottom p,.version,.breadcrumb,.workspace-heading p,.eyebrow,.tool-note,.option,.option-hint,.shortcut,.editor-footer,.editor-footer>span:last-child,#result-status,.workspace-footer,.how-it-works small,.local-badge{color:#5c7054}.text-button,.icon-button,.favorite-button,.action-button:not(.primary){color:#4e6847}.tool-link{color:#4d654a}.tool-link .tool-icon{color:#5d7256}.nav-category{font-size:11px}.editor-heading label,.text-button{font-size:11px}.editor-footer{font-size:10px}.tool-note{font-size:11px}.workspace-heading p{font-size:13px}.how-it-works b{color:#49663f;font-size:11px}.how-it-works small{font-size:10px}.how-it-works>div>span{color:#526e46}.workspace-footer{font-size:10px}.search-box input::placeholder,#tool-input::placeholder,#tool-output::placeholder{color:#5e7255}.search-box svg{stroke:#63745e}.search-box kbd{color:#66775c}#result-status.success{color:#466d3d}.option input,.option select,.option textarea{color:#3f5838}.filter{color:#5b6e53}.filter.active{color:#243e28}.sidebar-bottom strong{color:#415a3a}.privacy-icon{color:#557446}.language-button{color:#405b38}.error-box{color:#934431}.static-tool-guide{color:#617454}.static-tool-guide h2{color:#4e6846}
@media(max-width:560px){.workspace-heading p{font-size:12px}.editor-heading label,.text-button{font-size:10px}.tool-note{font-size:10px}.how-it-works small{font-size:9px}.workspace-footer{font-size:9px}}
#no-results{color:#5c7054}
.common-tools{flex-shrink:0;margin:0 0 17px}.quick-heading{margin:0 0 8px;font-size:10px;font-weight:600;letter-spacing:.6px;color:#5c7054}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.quick-link{display:block;min-width:0;padding:8px 9px;border:1px solid #dce5d6;border-radius:6px;background:#f9fbf6;color:#3e5b36;font-size:11px;line-height:1.25;white-space:nowrap}.quick-link:hover{background:#e7efdf}.quick-link.active{background:#dfead5;border-color:#cadbbd;color:#244d33;font-weight:600}.sidebar .search-box{margin-bottom:17px}
@media(min-width:561px) and (max-height:780px){.sidebar{padding-top:22px}.sidebar .search-box{margin-top:24px}.sidebar-bottom p{margin-bottom:12px}.sidebar-bottom{padding-top:12px}.sidebar-bottom .privacy-icon{display:none}}
@media(max-width:560px){.common-tools{display:none}.sidebar .search-box{margin-bottom:10px}#tool-nav .tool-link{order:var(--quick-order,8)}}
/* Readability pass: retain the calm hierarchy without relying on tiny text. */
.how-it-works b{font-size:16px;font-weight:600;line-height:1.45}.how-it-works small{font-size:14px;line-height:1.65;margin-top:6px}.how-it-works>div{align-items:flex-start}.how-it-works>div>span{font-size:13px;flex-shrink:0;width:34px;height:34px}.workspace-heading p{font-size:14px}.eyebrow,.breadcrumb,.local-badge,.nav-category,.quick-heading{font-size:12px}.search-box input{font-size:14px}.filter{font-size:12px;min-height:34px}.filter span{font-size:12px}.tool-link,html[lang=en] .tool-link{font-size:13px;line-height:1.45}.quick-link{font-size:13px;min-height:35px;padding:8px 6px;white-space:normal;line-height:1.35}.sidebar-bottom strong,.sidebar-bottom p{font-size:12px}.version{font-size:10px}.workspace-footer{font-size:12px;line-height:1.6}.language-button{font-size:13px;min-height:36px}.favorite-button{width:40px;height:40px;flex-shrink:0}
.option,.option select{font-size:13px}.option-hint{font-size:12px}.option select,.option input:not([type=checkbox]){min-height:36px}.shortcut,.shortcut kbd{font-size:12px}.editor-heading{height:auto;min-height:62px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap}.editor-heading label,html[lang=en] .editor-heading label{font-size:13px;flex-shrink:0}.editor-heading>div{gap:6px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.text-button{font-size:13px;min-height:34px;padding:6px 4px}.icon-button{min-height:34px;min-width:30px;align-items:center;justify-content:center}.icon-button svg{width:16px;height:16px}#copy-output{min-width:6.2em;border:1px solid transparent;border-radius:6px}.text-button.is-copied{background:#e3f2e6;border-color:#91b79a;color:#21523e;font-weight:650}.editor-footer,.editor-footer>span:last-child{font-size:12px;letter-spacing:0}#tool-input,#tool-output{font-size:14px;line-height:1.8}#tool-input::placeholder,#tool-output::placeholder{font-size:13px}
.action-button{font-size:14px;min-height:42px}.action-bar{flex-wrap:wrap}#result-status{font-size:14px;line-height:1.6}#result-status.copy-confirmation{padding:8px 12px;border:1px solid #91b79a;border-radius:6px;background:#e3f2e6;color:#21523e;font-weight:600;text-align:left}#result-status.copy-failure{padding:8px 12px;border:1px solid #d7b49d;border-radius:6px;background:#fff5ed;color:#7c4027;text-align:left}.error-box{font-size:14px}.tool-note{font-size:13px;line-height:1.8}.tool-note>span{margin-top:5px}.custom-tool button{min-height:40px}.custom-tool th,.custom-tool td{font-size:13px}
@media(min-width:561px) and (max-height:700px){.sidebar-bottom{display:none}}
@media(max-width:560px){.workspace-heading p{font-size:14px}.how-it-works{gap:16px}.how-it-works b{font-size:16px}.how-it-works small{font-size:14px}.editor-heading label,html[lang=en] .editor-heading label,.text-button{font-size:13px}.text-button,.icon-button{min-height:40px}.icon-button{min-width:36px}.tool-note{font-size:13px}.workspace-footer{font-size:12px}.tool-link{min-height:40px}.language-button{min-height:40px}.local-badge{font-size:11px}.breadcrumb{font-size:12px}.topbar .local-badge{margin-right:10px}}
/* Run actions precede large editors in DOM order, so keyboard and visual order agree. */
#standard-tool>.action-bar{border-top:0;border-bottom:1px solid var(--line);padding:12px 18px}
#standard-tool>.error-box{border-top:0;border-bottom:1px solid #edd8d0}
.custom-action-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0 14px}
.regex-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.35fr) minmax(110px,.4fr);gap:12px}
.regex-options label,.regex-test-input{min-width:0}
.regex-options input,.regex-test-input textarea{width:100%;min-width:0}
.regex-test-input{display:grid;gap:6px;margin:12px 0}
@media(max-width:560px){#standard-tool>.action-bar{padding:12px}.regex-options{grid-template-columns:repeat(2,minmax(0,1fr))}.regex-options label:first-child{grid-column:1/-1}.custom-action-bar{gap:4px}}
/* One toolbar: parameters → actions → shortcut, wrapping in the same DOM order. */
.workbench-toolbar{flex-wrap:wrap;gap:12px 18px}
.workbench-toolbar>.options{flex:1 1 auto;min-width:0}
.workbench-toolbar>.options:empty{display:none}
.toolbar-run{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;max-width:100%;min-width:0;margin-left:auto}
.toolbar-run #tool-actions{min-width:0;max-width:100%}
.toolbar-run .action-button{max-width:100%;overflow-wrap:anywhere}
#standard-tool>#result-status{padding:8px 18px;border-bottom:1px solid var(--line);background:#fcfdf9;text-align:left;overflow-wrap:anywhere}
#standard-tool>#result-status.copy-confirmation,#standard-tool>#result-status.copy-failure{margin:8px 18px;border-radius:6px}
#standard-tool>#result-status.copy-confirmation{background:#e3f2e6;border:1px solid #91b79a}
#standard-tool>#result-status.copy-failure{background:#fff5ed;border:1px solid #d7b49d}
/* Keep the idle live region accessible without reserving an empty status row. */
#standard-tool>#result-status.is-idle{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:1151px){.workbench-toolbar:has(.many-options) .shortcut{display:inline}}
@media(max-width:560px){.toolbar-run{margin-left:0}.workbench-toolbar{gap:12px}.toolbar-run{gap:10px}#standard-tool>#result-status{padding:8px 12px}#standard-tool>#result-status.copy-confirmation,#standard-tool>#result-status.copy-failure{margin:8px 12px}}
/* Text comparison is a pair of primary inputs, never a hidden parameter field. */
.text-diff-tool .diff-intro{margin:0 0 16px;color:#5c7054;line-height:1.7}
.text-diff-tool .diff-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:18px}
.text-diff-tool .diff-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:#5c7054}
.text-diff-tool .diff-controls .diff-ignore{font-size:12px}
.text-diff-tool button{margin:0;font-size:14px;min-height:42px;background:#fff}
.text-diff-tool button.diff-primary{background:#2f5d46;color:white;border-color:#2f5d46;font-weight:600}
.text-diff-tool button.is-copied{background:#e3f2e6;border-color:#91b79a;color:#21523e;font-weight:600}
.diff-inputs,.diff-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.diff-input-panel,.diff-results>section{min-width:0}
.text-diff-tool .diff-input-panel>label{display:block;font-size:15px;font-weight:600;margin:0 0 9px}
.text-diff-tool .diff-input-panel textarea{width:100%;display:block;resize:vertical;min-height:160px;height:210px;font:14px/1.8 var(--mono);color:var(--ink);background:#fcfdf9}
.text-diff-tool .diff-input-panel textarea::placeholder{font:13px/1.8 var(--sans);color:#5e7255}
.text-diff-tool .diff-help{font-size:12px;color:#5c7054;line-height:1.7;margin:10px 0 22px}
.diff-result{padding-top:18px;border-top:1px solid var(--line)}
.diff-result-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.text-diff-tool .diff-result-header h2{margin:0;font-size:18px}
.diff-export-actions{display:flex;gap:8px;flex-wrap:wrap}
.text-diff-tool .diff-legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;color:#5c7054;margin:12px 0}
.diff-legend .diff-removed,.diff-legend .diff-added{padding:3px 8px;border-radius:4px}
.diff-removed,.diff-results del{background:#ffe0e0;color:#862828}
.diff-added,.diff-results ins{background:#d6f9df;color:#176a35}
.text-diff-tool .diff-status{font-size:14px;line-height:1.7;color:#36664a;margin:10px 0}
.text-diff-tool .diff-status:empty{height:0;margin:0;overflow:hidden}
.text-diff-tool .diff-empty{padding:22px;border:1px dashed #cdd9c8;border-radius:8px;font-size:14px;line-height:1.8;color:#5c7054;background:#fcfdf9}
.text-diff-tool .diff-error{padding:12px;background:#fff5f1;border:1px solid #edd8d0;border-radius:6px;font-size:14px;color:#934431;line-height:1.8}
.text-diff-tool .diff-results h3{font-size:13px;margin:0;padding:10px 12px;background:#f3f6ef;border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0}
.text-diff-tool .diff-results pre{min-height:160px;max-height:460px;margin:0;padding:14px;border:1px solid var(--line);border-radius:0 0 6px 6px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;font:14px/1.85 var(--mono);color:var(--ink)}
.text-diff-tool [data-diff=export-fallback]{width:100%;min-height:180px;margin-top:16px;font:13px/1.7 var(--mono)}
@media(max-width:680px){.diff-inputs,.diff-results{grid-template-columns:minmax(0,1fr)}.text-diff-tool .diff-input-panel textarea{height:180px}.text-diff-tool .diff-controls{gap:10px 12px}.diff-result-header{align-items:flex-start}.text-diff-tool .diff-empty{padding:16px}}
/* A comparison replaces its editors in place; fullscreen is a permission-free page view. */
.text-diff-tool[data-view=result] .diff-result{padding-top:0;border-top:0}
.text-diff-tool [data-diff=fullscreen]{margin-left:auto;font-weight:600;border-color:#b9cbb2}
.text-diff-tool.diff-fullscreen{position:fixed;inset:0;z-index:1000;height:100vh;height:100dvh;width:auto;max-width:none;overflow:auto;overscroll-behavior:contain;padding:24px clamp(16px,3vw,44px);background:#fff;isolation:isolate}
.text-diff-tool.diff-fullscreen .diff-controls{position:sticky;top:0;z-index:2;padding:12px 0;margin-top:-12px;background:#fff;border-bottom:1px solid var(--line)}
.text-diff-tool.diff-fullscreen .diff-results pre{height:calc(100vh - 280px);height:calc(100dvh - 280px);min-height:180px;max-height:none}
.text-diff-tool.diff-fullscreen .diff-input-panel textarea{height:calc(100vh - 230px);height:calc(100dvh - 230px);min-height:180px;max-height:none}
@media(max-width:680px){.text-diff-tool [data-diff=fullscreen]{margin-left:0}.text-diff-tool.diff-fullscreen{padding:16px}.text-diff-tool.diff-fullscreen .diff-results pre,.text-diff-tool.diff-fullscreen .diff-input-panel textarea{height:240px;max-height:60vh}}
/* Compact workspace polish: spacing only; preserve readable type and interaction states. */
#standard-tool,.custom-tool{border-color:#dce4d8;border-radius:12px;background:var(--paper)}
.workbench-toolbar{padding:12px 16px;gap:12px 16px;background:var(--soft)}
.toolbar-run{gap:12px 16px}
.editor-heading,#tool-input,#tool-output,.editor-footer{padding-left:16px;padding-right:16px}
.option select,.option input:not([type=checkbox]),.option textarea{border-radius:6px}
.how-it-works{padding-top:24px;gap:24px}
.how-it-works>div{gap:12px}
@media(min-width:561px){
 .topbar{height:60px}
 main{padding-top:28px}
 .workspace-heading{margin-bottom:24px}
 .eyebrow,h1{margin-bottom:8px}
 .sidebar .search-box{margin-top:24px;margin-bottom:16px}
 .nav-group{margin-bottom:20px}
 .nav-category{font-weight:600;letter-spacing:.6px}
}
@media(max-width:560px){
 .topbar{height:48px}
 main{padding-top:20px}
 .workspace-heading{margin-bottom:20px}
 .eyebrow,h1{margin-bottom:8px}
 .workbench-toolbar{padding:12px;gap:12px}
 .toolbar-run{gap:10px}
 .editor-heading,#tool-input,#tool-output,.editor-footer{padding-left:12px;padding-right:12px}
 .action-button,.custom-tool button{min-height:44px}
 .how-it-works{grid-template-columns:minmax(0,1fr);gap:12px}
}
/* Local, lazy JSON preview. Pages replace children; long values never expand without a cap. */
.json-view-tabs{display:flex;gap:4px;padding:0 16px 10px;border-bottom:1px solid var(--line)}
.json-view-tabs button{border:1px solid transparent;background:transparent;border-radius:6px;padding:8px 16px;min-height:40px;font-size:14px;color:#52665a}
.json-view-tabs button[aria-selected=true]{background:#e9f2e4;border-color:#cbdcc4;color:#244f37;font-weight:650}
#json-preview{width:100%;min-width:0;height:330px;min-height:220px;overflow:auto;padding:10px 14px 18px;resize:vertical;contain:layout style;overscroll-behavior:contain}
.json-tree-help,.json-tree-status{font:12px/1.65 var(--sans);color:#52665a;margin:0 0 10px;overflow-wrap:anywhere}.json-tree-status:empty{display:none}
.json-tree-list{list-style:none;margin:0;padding:0}.json-branch{padding-left:16px;border-left:1px solid #e3e9df;margin-left:13px}
.json-row{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;min-height:30px;font:14px/1.7 var(--mono);overflow-wrap:anywhere}
.json-key{color:#284e73}.json-value{white-space:pre-wrap;overflow-wrap:anywhere}.json-string{color:#28613d}.json-number{color:#7045a0}.json-boolean{color:#875216}.json-null{color:#68726d}.json-object,.json-array{color:#344d41}
.json-type{font:12px/1.7 var(--sans);color:#667267}.json-tree-button{border:1px solid #dce5d5;border-radius:5px;padding:4px 8px;min-height:30px;background:#f8faf5;font:12px/1.5 var(--sans);color:#35563d;max-width:100%;white-space:normal}
.json-disclosure{flex:0 0 28px;min-height:28px;padding:1px;border-color:transparent;background:transparent;font-size:16px}.json-leaf-dot{width:28px;flex:0 0 28px;text-align:center;color:#8c998c}
.json-pager{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;font:12px var(--sans);color:#52665a}.json-pager button{min-height:36px}.json-value-detail{padding:6px 0 12px 28px;max-width:100%}.json-value-expanded{font:13px/1.7 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;margin:0 0 8px}.json-value-detail button{margin:0 6px 6px 0}
@media(min-width:1500px){#json-preview{height:420px}}@media(max-width:850px){#json-preview{height:280px}.json-disclosure{min-height:36px;flex-basis:32px}.json-tree-button{min-height:36px}}@media(max-width:560px){.json-view-tabs{padding-left:12px}.json-view-tabs button{min-height:44px}#json-preview{padding:10px 10px 16px}.json-branch{padding-left:12px}.json-row{font-size:13px}.json-pager button{min-height:42px}}
.json-text-pager{padding:10px 16px;border-bottom:1px solid var(--line);background:#f8faf5;font:12px/1.7 var(--sans);color:#52665a;overflow-wrap:anywhere}.json-text-pager>div{display:flex;gap:8px;margin-top:7px}.json-text-pager button{min-height:36px;padding:5px 12px;border:1px solid #d7e2d1;background:white;border-radius:5px;font-size:13px}@media(max-width:560px){.json-text-pager button{min-height:42px}}

.json-size-warning{margin:0 0 14px;padding:12px 16px;border:1px solid #d6b55b;border-radius:10px;background:#fff9e8;color:#715416;font-size:14px;line-height:1.6}.json-size-warning[hidden]{display:none}
