/* Five approved GetToolsLab tool-page visual systems. Scoped to the five existing functional pages. */
html:has(.gtl-five-workspace){--five-page:#f5f8ff;--five-card:#fff;--five-raised:#f5f8ff;--five-text:#101a33;--five-muted:#60718f;--five-border:#dce5f4;--five-input:#fff;--five-accent:#1455f5;--five-shadow:0 8px 26px rgba(26,49,101,.07)}
html[data-theme="dark"]:has(.gtl-five-workspace){--five-page:#0b1228;--five-card:#17243f;--five-raised:#1b2a48;--five-text:#f5f8ff;--five-muted:#c9d6ec;--five-border:#354766;--five-input:#1b2a48;--five-accent:#4388ff;--five-shadow:0 8px 26px rgba(0,0,0,.18)}
html:has(.gtl-five-workspace) .tool-page{background:var(--five-page);color:var(--five-text)}
html:has(.gtl-five-workspace) .tool-container{max-width:1320px}
html:has(.gtl-five-workspace) .gtl-five-workspace,html:has(.gtl-five-workspace) .gtl-five-workspace .gtl-side-card{background:var(--five-card);border:1px solid var(--five-border);border-radius:14px;box-shadow:var(--five-shadow);color:var(--five-text)}
html:has(.gtl-five-workspace) .gtl-five-workspace h1,html:has(.gtl-five-workspace) .gtl-five-workspace h2,html:has(.gtl-five-workspace) .gtl-five-workspace label{color:var(--five-text)}
html:has(.gtl-five-workspace) .gtl-five-workspace p,html:has(.gtl-five-workspace) .gtl-five-workspace .notice{color:var(--five-muted)}
html:has(.gtl-five-workspace) .gtl-five-workspace textarea,html:has(.gtl-five-workspace) .gtl-five-workspace input:not([type=checkbox]):not([type=range]):not([type=file]),html:has(.gtl-five-workspace) .gtl-five-workspace select{background:var(--five-input);color:var(--five-text);border:1px solid var(--five-border);border-radius:9px}
html:has(.gtl-five-workspace) .gtl-five-workspace textarea::placeholder,html:has(.gtl-five-workspace) .gtl-five-workspace input::placeholder{color:var(--five-muted);opacity:1}
html:has(.gtl-five-workspace) .gtl-five-workspace button.button:not(.secondary),html:has(.gtl-five-workspace) .gtl-five-workspace #generate,html:has(.gtl-five-workspace) .gtl-five-workspace #startBatch,html:has(.gtl-five-workspace) .gtl-five-workspace #run{background:linear-gradient(100deg,#1455f5,#8b45f7);color:#fff;border:0;border-radius:9px}
html:has(.gtl-five-workspace) .gtl-five-workspace button:focus-visible,html:has(.gtl-five-workspace) .gtl-five-workspace input:focus-visible,html:has(.gtl-five-workspace) .gtl-five-workspace textarea:focus-visible{outline:3px solid #80adff;outline-offset:2px}
.gtl-five-text-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:20px;align-items:stretch}.gtl-five-text-grid>.gtl-five-editor,.gtl-five-text-grid>.gtl-five-stats{min-width:0}.gtl-five-text-grid #textInput{min-height:300px;width:100%}.gtl-five-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}.gtl-five-stats .stat{min-width:0;background:var(--five-raised);border:1px solid var(--five-border);border-radius:10px;padding:16px}
.gtl-five-json-grid,.gtl-five-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.gtl-five-json-pane,.gtl-five-meta-input,.gtl-five-meta-result{min-width:0}.gtl-five-json-grid textarea{min-height:330px;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.gtl-five-json-grid .tool-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.gtl-five-json-grid #jsonStatus,.gtl-five-json-grid #jsonMeta{grid-column:1/-1}.gtl-five-meta-grid textarea#output{min-height:225px;width:100%;font-family:ui-monospace,Consolas,monospace}.gtl-five-meta-grid .control-grid{display:grid;grid-template-columns:1fr;gap:12px}.gtl-five-meta-grid .control-grid label{display:grid;gap:5px}.gtl-five-serp{border:1px solid var(--five-border);border-radius:10px;padding:16px;margin-bottom:15px;background:var(--five-raised);display:grid;gap:7px}.gtl-five-serp small{color:var(--five-muted);overflow-wrap:anywhere}.gtl-five-serp strong{color:#4388ff}.gtl-five-serp p{margin:0}
.gtl-five-selected{border:1px solid var(--five-border);background:var(--five-raised);border-radius:10px;padding:12px;margin:12px 0}.gtl-five-selected h2{font-size:16px;margin:0 0 8px}.gtl-five-selected ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}.gtl-five-selected li{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--five-border);border-radius:8px;padding:8px;font-size:13px;overflow-wrap:anywhere}.gtl-five-selected li button{background:transparent;border:1px solid var(--five-border);border-radius:6px;color:var(--five-text);padding:5px 9px;cursor:pointer}
.gtl-five-image .batch-drop,.gtl-five-pdf .gtl-merge-drop{background:var(--five-raised);border:2px dashed #4388ff;border-radius:12px}.gtl-five-image .batch-settings,.gtl-five-image .batch-workspace{background:var(--five-card);color:var(--five-text);border-color:var(--five-border)}
@media(max-width:800px){.gtl-five-text-grid,.gtl-five-json-grid,.gtl-five-meta-grid{grid-template-columns:1fr}.gtl-five-json-grid .tool-actions,.gtl-five-json-grid #jsonStatus,.gtl-five-json-grid #jsonMeta{grid-column:1}.gtl-five-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:375px){.gtl-five-workspace{padding:12px}.gtl-five-stats .stat{padding:10px}.gtl-five-selected li{flex-wrap:wrap}}

/* Verified source-specific corrections: preserve light/dark geometry and working controls. */
html:has(.gtl-five-workspace) .gtl-five-selected-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
html:has(.gtl-five-workspace) .gtl-five-selected-heading button{background:transparent;border:1px solid var(--five-border);border-radius:7px;color:var(--five-text);padding:5px 9px}
html:has(.gtl-five-workspace) .gtl-five-selected li{justify-content:flex-start}
html:has(.gtl-five-workspace) .gtl-five-selected li .gtl-pdf-filename{flex:1;min-width:0;overflow-wrap:anywhere}
html:has(.gtl-five-workspace) .gtl-five-selected li button{flex:none}
html:has(.gtl-five-workspace) .gtl-five-selected button:disabled{opacity:.35;cursor:not-allowed}
html:has(.gtl-five-workspace) .gtl-five-json-grid>.tool-actions{grid-column:1/-1}
html:has(.gtl-five-workspace) .gtl-five-json-grid>.status,html:has(.gtl-five-workspace) .gtl-five-json-grid>.qc-json-meta{grid-column:1/-1}
html:has(.gtl-five-workspace) .gtl-five-meta-grid .row{display:flex;flex-wrap:wrap;gap:8px}
html:has(.gtl-five-workspace) .gtl-five-meta-grid .row button{flex:1 1 135px}
html:has(.gtl-five-workspace) .gtl-meta-counters{display:flex;justify-content:space-between;gap:10px;color:var(--five-muted);font-size:12px}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(button,a,input,textarea,select):focus-visible{outline:3px solid #80adff;outline-offset:2px}
html:has(.gtl-five-workspace) .gtl-five-workspace{min-width:0}
@media(max-width:800px){html:has(.gtl-five-workspace) .gtl-five-json-grid>.tool-actions{grid-column:1}}

/* Screenshot reconstruction pass: tool-page shell and component geometry.
   Applies only to the five approved templates. Production processing scripts unchanged. */
html:has(.gtl-five-workspace) .tool-page{background:var(--five-page);padding-block:18px 38px}
html:has(.gtl-five-workspace) .tool-container{max-width:1360px;margin-inline:auto;padding-inline:clamp(12px,2.2vw,32px)}
html:has(.gtl-five-workspace) .breadcrumbs{font-size:12px;margin-block:0 18px;color:var(--five-muted)}
html:has(.gtl-five-workspace) .gtl-unified-grid{display:block;min-width:0}
html:has(.gtl-five-workspace) .gtl-unified-workspace{min-width:0;width:100%}
html:has(.gtl-five-workspace) .gtl-unified-aside{display:none}
html:has(.gtl-five-workspace) .gtl-five-workspace{padding:clamp(15px,2vw,26px);border-radius:13px;box-shadow:var(--five-shadow);margin-bottom:18px}
html:has(.gtl-five-workspace) .gtl-five-workspace h1{font-size:clamp(23px,2.5vw,31px);font-weight:800;line-height:1.18;letter-spacing:-.035em;margin-block:3px 7px}
html:has(.gtl-five-workspace) .gtl-five-workspace .notice{font-size:14px;line-height:1.5;margin-block:4px 17px}
html:has(.gtl-five-workspace) .gtl-five-workspace .eyebrow{color:var(--five-accent);font-size:12px;font-weight:700;letter-spacing:.035em}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(button,.button,.gtl-file-button){min-height:38px;border-radius:8px;font-weight:650;transition:filter .16s ease,transform .16s ease}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(button,.button,.gtl-file-button):hover:not(:disabled){filter:brightness(1.06)}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(.button:not(.secondary),#run,#startBatch,#generate,.gtl-file-button){background:linear-gradient(100deg,#1455f5,#8b45f7);color:white;border-color:transparent}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(.button.secondary,.button-secondary){background:var(--five-raised);color:var(--five-text);border:1px solid var(--five-border)}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(.gtl-five-text-grid,.gtl-five-json-grid,.gtl-five-meta-grid){gap:16px}
html:has(.gtl-five-workspace) .gtl-five-workspace :is(.gtl-five-editor,.gtl-five-json-pane,.gtl-five-meta-input,.gtl-five-meta-result){background:var(--five-raised);border:1px solid var(--five-border);border-radius:11px;padding:15px}
html:has(.gtl-five-workspace) .gtl-five-text-grid{grid-template-columns:minmax(0,1.8fr) minmax(255px,1fr)}
html:has(.gtl-five-workspace) .gtl-five-text-grid #textInput{min-height:280px;resize:vertical}
html:has(.gtl-five-workspace) .gtl-five-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html:has(.gtl-five-workspace) .gtl-five-stats .stat{display:flex;flex-direction:column-reverse;justify-content:center;gap:6px;text-align:center;min-height:92px}
html:has(.gtl-five-workspace) .gtl-five-stats .stat strong{font-size:25px;color:var(--five-text)}
html:has(.gtl-five-workspace) .gtl-five-stats .stat span{font-size:12px;color:var(--five-muted)}
html:has(.gtl-five-workspace) .gtl-five-json-grid textarea{min-height:340px;line-height:1.55;font-size:13px;tab-size:2}
html:has(.gtl-five-workspace) .gtl-five-meta-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html:has(.gtl-five-workspace) .gtl-five-serp{background:var(--five-card)}
html:has(.gtl-five-workspace) .gtl-five-serp strong{color:#1455f5;font-size:17px}
html[data-theme=dark]:has(.gtl-five-workspace) .gtl-five-serp strong{color:#8eb4ff}
html:has(.gtl-five-workspace) .gtl-merge-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
html:has(.gtl-five-workspace) .gtl-merge-panel{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr);gap:14px 18px;align-items:start}
html:has(.gtl-five-workspace) .gtl-merge-heading{grid-column:1/-1}
html:has(.gtl-five-workspace) .gtl-merge-drop{grid-column:1;grid-row:2/5;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
html:has(.gtl-five-workspace) .gtl-five-selected{grid-column:2;grid-row:2;margin:0;min-height:180px}
html:has(.gtl-five-workspace) .gtl-selected-row{grid-column:2;grid-row:3}
html:has(.gtl-five-workspace) .gtl-merge-controls{grid-column:2;grid-row:4;margin:0}
html:has(.gtl-five-workspace) .gtl-merge-controls #run{width:100%}
html:has(.gtl-five-workspace) .gtl-merge-panel>.status{grid-column:1/-1}
html:has(.gtl-five-workspace) .gtl-benefits{grid-column:1/-1}
html:has(.gtl-five-workspace) .gtl-merge-sidebar{display:none}
html:has(.gtl-five-workspace) .batch-layout{display:grid;grid-template-columns:minmax(235px,.9fr) minmax(0,1.7fr);gap:16px}
html:has(.gtl-five-workspace) .batch-settings,html:has(.gtl-five-workspace) .batch-workspace{min-width:0;background:var(--five-raised);border:1px solid var(--five-border);border-radius:11px;padding:14px}
html:has(.gtl-five-workspace) .batch-drop{min-height:170px}
html:has(.gtl-five-workspace) .batch-toolbar{display:flex;flex-wrap:wrap;gap:8px}
html:has(.gtl-five-workspace) .batch-queue{min-width:0}
html:has(.gtl-five-workspace) .content-section,html:has(.gtl-five-workspace) .related-section{border-radius:12px}
html[data-theme=dark]:has(.gtl-five-workspace) .tool-page :is(.content-section,.related-section,.prose-card,.steps-grid,.faq-list details){background:var(--five-card);color:var(--five-text);border-color:var(--five-border)}
@media(max-width:800px){html:has(.gtl-five-workspace) .gtl-five-text-grid,html:has(.gtl-five-workspace) .gtl-five-json-grid,html:has(.gtl-five-workspace) .gtl-five-meta-grid,html:has(.gtl-five-workspace) .batch-layout{grid-template-columns:1fr}html:has(.gtl-five-workspace) .gtl-merge-panel{grid-template-columns:1fr}html:has(.gtl-five-workspace) .gtl-merge-heading,html:has(.gtl-five-workspace) .gtl-merge-drop,html:has(.gtl-five-workspace) .gtl-five-selected,html:has(.gtl-five-workspace) .gtl-selected-row,html:has(.gtl-five-workspace) .gtl-merge-controls{grid-column:1;grid-row:auto}html:has(.gtl-five-workspace) .gtl-merge-drop{min-height:220px}html:has(.gtl-five-workspace) .gtl-five-json-grid>.tool-actions{grid-column:1}}
@media(max-width:375px){html:has(.gtl-five-workspace) .gtl-five-workspace{padding:12px}html:has(.gtl-five-workspace) .gtl-five-stats .stat{padding:9px;min-height:75px}html:has(.gtl-five-workspace) .gtl-five-workspace h1{font-size:23px}}
