/* Workbench. Adapted shadcn Sidebar/Field/Item/Input/NativeSelect anatomy.
   Exact sources, licenses and adaptation boundaries live in research/design-restart-2026-09-30. */
.wb-sidebar,.wb-mark,.wb-header-note,.wb-find,.wb-start,.wb-category-detail,.wb-result-heading{display:none}
html[data-template="20"]{--bg:#fff;--page:#fff;--panel:#fff;--fg:#172033;--muted:#5f6c80;--line:#e3e8ef;--strong-line:#b8c2d1;--subtle:#f6f8fb;--tint:#edf3ff;--accent:#245cdb;--accent-text:#fff;--curve:8px;--twidth:1184px;--tool-title:28px;--tool-heading:18px;--tool-body:15px;--tool-control:14px;--tool-helper:13px;color-scheme:light}
html.dark[data-template="20"]{--bg:#121823;--page:#121823;--panel:#18202d;--fg:#edf2fa;--muted:#abb8cc;--line:#303c4d;--strong-line:#65738b;--subtle:#192230;--tint:#203451;--accent:#a9c8ff;--accent-text:#102039;color-scheme:dark}
html[data-template="20"] body{font-family:Geist,Arial,sans-serif;color:var(--fg);background:var(--bg);line-height:1.55}
html[data-template="20"] :is(button,input,select,textarea){font-family:inherit}
html[data-template="20"] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:3px}
html[data-template="20"] :is(input,select,textarea)[aria-invalid="true"]{border-color:#ba3444;outline-color:#ba3444}
html[data-template="20"] .header{border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:30}
html[data-template="20"][data-template] .header-inner{max-width:none;height:72px;padding:0 32px;gap:32px;border:0}
html[data-template="20"] .brand{font:600 21px/1 Geist,Arial,sans-serif;letter-spacing:-.6px;gap:10px;white-space:nowrap}
html[data-template="20"] .brand-symbol{display:none}
html[data-template="20"] .wb-mark{display:block;width:26px;height:26px;color:var(--accent);flex-shrink:0}
html[data-template="20"] .wb-header-note{display:block;font-size:13px;color:var(--muted);margin-left:48px}
html[data-template="20"] .header-end{margin-left:auto;display:flex;align-items:center;gap:20px}
html[data-template="20"] .wb-find{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px;color:var(--muted)}
html[data-template="20"] .wb-find svg{width:18px;height:18px}
html[data-template="20"] .theme{width:40px;height:40px;border:1px solid var(--line);border-radius:8px}
html[data-template="20"] .wb-sidebar{display:flex;position:absolute;top:72px;bottom:0;left:0;width:224px;min-height:calc(100vh - 72px);flex-direction:column;background:var(--subtle);border-right:1px solid var(--line);padding:24px 16px;z-index:10}
html[data-template="20"] body{position:relative;min-height:100vh}
html[data-template="20"] .wb-sidebar nav{position:sticky;top:20px;max-height:calc(100vh - 130px);overflow:auto;scrollbar-width:thin;padding:3px}
html[data-template="20"] .wb-sidebar ul{list-style:none;margin:0;padding:0}
html[data-template="20"] .wb-sidebar a{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 10px;border-radius:6px;font-size:13px;color:var(--muted);line-height:1.4;text-decoration:none}
html[data-template="20"] .wb-sidebar :is(a:hover,summary:hover){background:var(--line);color:var(--fg)}
html[data-template="20"] .wb-sidebar a[aria-current]{background:var(--tint);color:var(--accent);font-weight:600}
html[data-template="20"] .wb-sidebar .card-icon{display:flex;width:18px;height:18px;flex-shrink:0;padding:0;background:none;color:inherit}
html[data-template="20"] .wb-sidebar svg{width:18px;height:18px}
html[data-template="20"] .wb-nav-label{font-size:11px;font-weight:500;letter-spacing:.04em;color:var(--muted);margin:22px 10px 8px}
html[data-template="20"] .wb-nav-more{margin-top:8px;font-size:13px}
html[data-template="20"] .wb-nav-more summary{padding:10px;border-radius:6px;cursor:pointer;color:var(--muted);min-height:42px}
html[data-template="20"] .wb-sidebar .wb-all{margin-top:16px;border-top:1px solid var(--line);border-radius:0;padding-top:18px}
html[data-template="20"] .wb-all>span{margin-left:auto}
html[data-template="20"] .wb-side-bottom{margin-top:auto;padding:40px 10px 4px;font-size:12px;color:var(--muted)}
html[data-template="20"] .wb-side-bottom a{padding:0;min-height:32px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
html[data-template="20"][data-template] main.container{max-width:1184px;margin:0 auto 0 224px;padding:0 48px;width:calc(100% - 224px)}
html[data-template="20"] .nav{display:none}
html[data-template="20"] .template-rail{display:none!important}
html[data-template="20"][data-template] .hero{display:block;text-align:left;max-width:none;padding:48px 0 28px;margin:0;background:none;border:0}
html[data-template="20"][data-template] .hero h1{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font:600 42px/1.15 Geist,Arial,sans-serif;letter-spacing:-1.4px;margin:0 0 14px}
html[data-template="20"][data-template] .hero>p:not(.template-free-note){font-size:17px;line-height:1.6;color:var(--muted);margin:0 0 28px;max-width:700px}
html[data-template="20"] .template-free-note{display:none}
html[data-template="20"] .hero .search-wrap{max-width:720px;margin:0;width:100%}
html[data-template="20"] .search{height:52px;border:1px solid var(--strong-line);border-radius:8px;background:var(--panel);box-shadow:none;font-size:16px;padding-left:46px}
html[data-template="20"] .search-icon{top:15px}
html[data-template="20"] .search-wrap>.key{top:15px;border:0;color:var(--muted)}
html[data-template="20"] .wb-start{display:block;margin:12px 0 36px}
html[data-template="20"] .wb-start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-template="20"] .wb-start-grid .tool-card{display:flex;flex-direction:column;gap:6px;padding:18px 16px;min-height:168px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
html[data-template="20"] .wb-start-grid .card-icon{margin:0 0 10px;color:var(--accent)}
html[data-template="20"] .wb-start-grid .tool-card h3{font-size:14px;font-weight:600}
html[data-template="20"] .wb-start-grid .tool-card p{font-size:13px;line-height:1.55}
html[data-template="20"] .section-top{margin:0 0 16px;align-items:center}
html[data-template="20"] :is(.section-top h2,.directory-categories>h2){font:600 17px/1.4 Geist,Arial,sans-serif;letter-spacing:-.2px;margin:0 0 16px}
html[data-template="20"] .section-top h2{margin:0}
html[data-template="20"] .directory-categories{padding:0 0 40px}
html[data-template="20"][data-template] .home-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
html[data-template="20"][data-template] .home-category-card{min-height:82px;padding:16px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;gap:12px}
html[data-template="20"] .home-category-card h3{font-size:14px;font-weight:600}
html[data-template="20"] .wb-category-detail{display:block;margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
html[data-template="20"] .card-icon{background:none;border:0;padding:0;width:22px;height:22px;color:var(--muted);flex-shrink:0}
html[data-template="20"] .card-icon svg{width:22px;height:22px}
html[data-template="20"] #home-sections>.home-category{display:none}
html[data-template="20"] :is(.tool-card,.home-category-card):hover{background:var(--subtle);border-color:var(--strong-line)}
html[data-template="20"] .tool-card:focus-visible{outline-offset:2px}
html[data-template="20"] .breadcrumbs{font-size:12px;line-height:1.6;padding-top:26px;margin-bottom:22px;flex-wrap:wrap}
html[data-template="20"] .page-title{font:600 30px/1.25 Geist,Arial,sans-serif;letter-spacing:-.8px;margin:0 0 10px}
html[data-template="20"] .page-desc{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:28px;max-width:760px}
html[data-template="20"] .category-directory-heading{margin-bottom:28px}
html[data-template="20"] .category-directory-heading .search-wrap{max-width:640px}
html[data-template="20"][data-template] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
html[data-template="20"][data-template] .tool-card{border:0;border-top:1px solid var(--line);border-radius:0;min-height:118px;padding:20px 0;background:none;box-shadow:none}
html[data-template="20"] .tool-card :is(h3,p){margin:0}
html[data-template="20"] .tool-card h3{font-size:15px;font-weight:550;line-height:1.5;margin-top:12px}
html[data-template="20"] .tool-card p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:6px}
html[data-template="20"] .tool-card>.arrow{display:none}
html[data-template="20"][data-template] .wb-start-grid .tool-card{border:1px solid var(--line);border-radius:8px;padding:18px 16px;min-height:166px}
html[data-template="20"] :is(.workspace,.runtime-workspace){border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:none;overflow:hidden}
html[data-template="20"] .runtime-workspace .rt-body{padding:24px}
html[data-template="20"] :is(.rt-field>span,.toolbar label,.output-label label){font-size:14px;font-weight:550;color:var(--fg)}
html[data-template="20"] :is(.rt-field input:not([type=checkbox]):not([type=range]):not([type=color]),.rt-field select){min-height:44px;border:1px solid var(--strong-line);border-radius:6px;background:var(--bg);color:var(--fg);padding:10px 12px;font-size:15px;box-shadow:none;width:100%;min-width:0}
html[data-template="20"] .rt-field small{font-size:12px;color:var(--muted);line-height:1.55;margin-top:6px;display:block}
html[data-template="20"] .rt-options{gap:20px;margin:18px 0}
html[data-template="20"] :is(.primary,.upload-pick){background:var(--accent);color:var(--accent-text);border:1px solid var(--accent);border-radius:6px;min-height:42px;padding:10px 18px;font-weight:550;font-size:14px;box-shadow:none}
html[data-template="20"] :is(button,.button-link){min-height:40px;border-radius:6px}
html[data-template="20"] button:disabled{opacity:.5;cursor:not-allowed}
html[data-template="20"] .rt-result{background:var(--subtle);border-top:1px solid var(--line)!important;padding:22px 24px!important}
html[data-template="20"] :is(.rt-result textarea,.output-text){background:var(--subtle);color:var(--fg)}
html[data-template="20"] .editor-pane+.editor-pane{background:var(--subtle)}
html[data-template="20"] .editor-panes{min-height:270px}
html[data-template="20"] .rt-quick-actions{margin-bottom:16px}
html[data-template="20"] .mode-badge{font-size:12px;color:var(--muted);background:none;border:0;padding:0}
html[data-template="20"] .upload-zone{background:var(--subtle);border:1px dashed var(--strong-line);border-radius:8px;min-height:220px;padding:28px 20px}
html[data-template="20"] .upload-symbol{color:var(--accent);background:var(--tint);width:40px;height:40px;border-radius:8px;font-size:22px}
html[data-template="20"] .upload-title{font-size:16px;font-weight:550}
html[data-template="20"] .upload-help{font-size:12px;line-height:1.6}
html[data-template="20"] .upload-privacy{font-size:12px;color:var(--muted)}
html[data-template="20"] .upload-file{border:1px solid var(--line);border-radius:7px;background:var(--bg);padding:12px;gap:12px}
html[data-template="20"] .upload-thumbnail{width:72px;height:64px;border-radius:4px}
html[data-template="20"] .upload-filename{font-size:14px;line-height:1.5}
html[data-template="20"] .upload-details{font-size:12px;color:var(--muted)}
html[data-template="20"] .upload-remove{font-size:12px;min-height:36px}
html[data-template="20"] .has-files .upload-zone.is-compact{min-height:0;padding:12px;display:flex;gap:10px;border-style:solid;background:var(--subtle)}
html[data-template="20"] .has-files .upload-zone.is-compact .upload-symbol{width:24px;height:24px;border-radius:0;background:none;font-size:18px}
html[data-template="20"] .has-files .upload-zone.is-compact .upload-pick{font-size:12px;min-height:36px;padding:6px 10px;background:var(--bg);border-color:var(--strong-line);color:var(--fg)}
html[data-template="20"] .has-files .upload-zone.is-compact .upload-title{font-size:13px}
html[data-template="20"] .has-files:has(.rt-options>.rt-field, #rt-text-pane:not([hidden])) .rt-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0 28px;align-items:start}
html[data-template="20"] .has-files .rt-quick-actions{grid-column:1/-1}
html[data-template="20"] .has-files #rt-task:empty{display:none}
html[data-template="20"] .has-files #rt-file-pane{grid-column:1;grid-row:2/span 3}
html[data-template="20"] .has-files #rt-text-pane{grid-column:2}
html[data-template="20"] .has-files .rt-options{grid-column:2;grid-template-columns:minmax(0,1fr);margin-top:0;padding-top:0}
html[data-template="20"] .has-files #rt-note{grid-column:2;margin:0;font-size:12px;line-height:1.6}
html[data-template="20"] .has-uploader .workbench-actions:has(#rt-run){padding:0 24px 20px}
html[data-template="20"] .has-uploader .wb-result-heading{display:block;font-size:16px;font-weight:600;margin:0 0 16px}
html[data-template="20"] .upload-result-summary{font-size:16px;font-weight:550;color:var(--fg)}
html[data-template="20"] .upload-result-advice{font-size:13px;color:var(--fg);background:var(--tint);padding:12px;border-radius:6px}
html[data-template="20"] .upload-comparison{gap:16px}
html[data-template="20"] .upload-comparison figure{padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
html[data-template="20"] .upload-comparison img{height:180px}
html[data-template="20"][data-template] #rt-downloads .button-link{background:var(--accent);color:var(--accent-text);border-radius:6px;padding:10px 16px;min-height:44px;max-width:100%;overflow-wrap:anywhere}
html[data-template="20"] :is(.error,.rt-error){color:#a52939;background:#fff1f3;padding:12px 14px;border-radius:6px;font-size:13px;line-height:1.6}
html.dark[data-template="20"] :is(.error,.rt-error){color:#ffbac3;background:#391f29}
html[data-template="20"] .result-metrics dd{font-size:30px;font-weight:550;line-height:1.3;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
html[data-template="20"] :is(.usage-guide,.seo-content,.details){border-top:1px solid var(--line);margin-top:32px;padding-top:24px;font-size:14px;line-height:1.75;max-width:none}
html[data-template="20"] :is(.usage-guide h2,.seo-content h2,.details h2,.related-tools h2){font:600 17px/1.5 Geist,Arial,sans-serif;letter-spacing:-.2px}
html[data-template="20"] .usage-guide ol{padding-left:22px;display:grid;gap:8px;color:var(--muted)}
html[data-template="20"] .related-tools{margin-top:32px}
html[data-template="20"] .trust-page{max-width:780px;padding-bottom:40px;font-size:15px;line-height:1.8}
html[data-template="20"] .trust-page h1{font-size:32px;letter-spacing:-.8px}
html[data-template="20"] .trust-page h2{font-size:19px;font-weight:600;margin-top:32px}
html[data-template="20"] .footer{margin-left:224px;border-top:1px solid var(--line);padding-top:0;margin-top:40px;background:var(--bg)}
html[data-template="20"] .footer>.container{padding:24px 48px;display:flex;flex-wrap:wrap;gap:16px;font-size:12px;max-width:1184px}
html[data-template="20"] .footer-links{gap:16px;flex-wrap:wrap}
html[data-template="20"] .template-switcher{background:var(--subtle);font-size:12px;border-top:1px solid var(--line)}
@media(min-width:1440px){html[data-template="20"][data-template] main.container{margin-left:calc(224px + (100% - 224px - 1184px)/2)}}
@media(max-width:1100px){html[data-template="20"][data-template] main.container{padding:0 28px}html[data-template="20"] .wb-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-template="20"][data-template] .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-template="20"] .wb-header-note{margin-left:0}html[data-template="20"][data-template] .home-category-grid{grid-template-columns:1fr}}
@media(max-width:800px){html[data-template="20"] .wb-sidebar{display:none}html[data-template="20"][data-template] main.container{width:100%;margin:0;padding:0 24px}html[data-template="20"] .footer{margin-left:0}html[data-template="20"] .nav{display:flex;margin-left:auto}html[data-template="20"] .header-end{margin:0;gap:12px}html[data-template="20"] .wb-header-note{display:none}html[data-template="20"][data-template] .header-inner{height:64px;padding:0 24px;gap:18px}html[data-template="20"] .wb-find span{display:none}html[data-template="20"] .wb-find{width:32px;justify-content:center}html[data-template="20"] .footer>.container{padding:24px}html[data-template="20"] .has-files .rt-body{grid-template-columns:1fr}html[data-template="20"] .has-files :is(#rt-file-pane,#rt-text-pane,.rt-options,#rt-note){grid-column:1;grid-row:auto}html[data-template="20"] .has-files .rt-options{margin-top:22px}html[data-template="20"] .has-files #rt-file-pane{padding-bottom:4px}}
@media(max-width:520px){html[data-template="20"][data-template] main.container{padding:0 20px}html[data-template="20"][data-template] .header-inner{padding:0 20px;gap:10px}html[data-template="20"] .brand{font-size:19px;gap:7px}html[data-template="20"] .wb-mark{width:22px;height:22px}html[data-template="20"] .header-end{gap:4px}html[data-template="20"] #menu-toggle{font-size:12px;padding:8px 4px;min-height:44px}html[data-template="20"] .theme{width:36px;height:36px}html[data-template="20"][data-template] .hero{padding:30px 0 22px}html[data-template="20"][data-template] .hero h1{font-size:34px;letter-spacing:-1px}html[data-template="20"][data-template] .hero>p:not(.template-free-note){font-size:16px;line-height:1.6;margin-bottom:22px}html[data-template="20"] .wb-start-grid{gap:10px}html[data-template="20"][data-template] .wb-start-grid .tool-card{padding:16px 12px;min-height:164px}html[data-template="20"][data-template] .tool-grid{grid-template-columns:1fr;gap:0}html[data-template="20"] .page-title{font-size:28px}html[data-template="20"] .breadcrumbs{padding-top:20px;margin-bottom:20px}html[data-template="20"] .runtime-workspace .rt-body{padding:18px 16px}html[data-template="20"] .rt-result{padding:18px 16px!important}html[data-template="20"] .has-uploader .workbench-actions:has(#rt-run){padding:0 16px 18px}html[data-template="20"] .upload-zone{min-height:210px;padding:22px 12px}html[data-template="20"] .upload-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}html[data-template="20"] .upload-comparison img{height:110px}html[data-template="20"] .upload-comparison figure{padding:8px}html[data-template="20"] :is(input,select,textarea){font-size:16px!important}html[data-template="20"] .workbench-actions{gap:8px}html[data-template="20"] .footer>.container{padding:24px 20px}.wb-find{min-width:32px}}
@media(prefers-reduced-motion:reduce){html[data-template="20"] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep both sides of a text transformation in view without moving input nodes. */
@media(min-width:1000px){
 html[data-template="20"] .runtime-workspace:not(.has-uploader):not(.is-metrics):not(.is-interactive):has(#rt-text-pane:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html[data-template="20"] .runtime-workspace:not(.has-uploader):not(.is-metrics):not(.is-interactive):has(#rt-text-pane:not([hidden]))>.rt-body{grid-column:1;grid-row:1;padding:22px}
 html[data-template="20"] .runtime-workspace:not(.has-uploader):not(.is-metrics):not(.is-interactive):has(#rt-text-pane:not([hidden]))>.workbench-actions{grid-column:1;grid-row:2;align-self:end;padding:16px 22px}
 html[data-template="20"] .runtime-workspace:not(.has-uploader):not(.is-metrics):not(.is-interactive):has(#rt-text-pane:not([hidden]))>.rt-result{grid-column:2;grid-row:1/span 2;border-top:0!important;border-left:1px solid var(--line);padding:22px!important}
 html[data-template="20"] .runtime-workspace:not(.has-uploader):not(.is-metrics):not(.is-interactive):has(#rt-text-pane:not([hidden])) #rt-output{min-height:260px}
}
/* Developer and agent documentation keep their document-specific navigation. */
@media(max-width:520px){html[data-template="20"] .wb-find{display:none}html[data-template="20"] .brand{font-size:18px;letter-spacing:-.5px}html[data-template="20"] .nav{min-width:0}html[data-template="20"] .header-end{flex-shrink:0}}
html[data-template="20"] .docs-header{height:72px;gap:22px}
html[data-template="20"] .docs-brand{font-size:18px;letter-spacing:-.35px}
html[data-template="20"] .docs-brand .wb-mark{display:block}
html[data-template="20"] .docs-brand strong{font-size:14px}
html[data-template="20"] .docs-sidebar{top:72px;background:var(--subtle)}
html[data-template="20"] .docs-layout{margin-top:72px}
html[data-template="20"] .docs-sidebar [aria-current=page]{color:var(--accent)!important;background:var(--tint)!important}
html[data-template="20"] :is(.doc-article a,.doc-eyebrow,.nav-method){color:var(--accent)}
html[data-template="20"] .notice{border-left-color:var(--accent);background:var(--subtle)}
html[data-template="20"] .agent-page{font-size:15px;line-height:1.75;padding:36px 0;max-width:none}
html[data-template="20"] .agent-page h1{font-size:30px;line-height:1.3;letter-spacing:-.8px}
html[data-template="20"] .agent-page h2{font-size:19px;font-weight:600;margin-top:32px}
html[data-template="20"] .agent-page h3{font-size:16px}
html[data-template="20"] .agent-links{display:flex;flex-wrap:wrap;gap:10px 20px;border-block:1px solid var(--line);padding:16px 0;margin:24px 0;font-size:13px}
html[data-template="20"] .agent-links a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
html[data-template="20"] .agent-page pre{background:var(--subtle);border:1px solid var(--line);border-radius:8px;padding:20px;font:13px/1.7 GeistMono,monospace;overflow:auto}
@media(max-width:760px){html[data-template="20"] .docs-header{height:64px}html[data-template="20"] .docs-sidebar{top:64px}html[data-template="20"] .docs-layout{margin-top:64px}html[data-template="20"] .docs-brand{font-size:17px}html[data-template="20"] .agent-page h1{font-size:26px}}

@media(max-width:520px){html[data-template="20"] .has-files .upload-file{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px 12px}html[data-template="20"] .upload-thumbnail{width:56px;height:56px;grid-row:1/span 2}html[data-template="20"] .upload-file-actions{grid-column:2;justify-content:flex-start}html[data-template="20"] .upload-meta{min-width:0}}
