/* Stable design layer: geometry is independent of the color mode. */
html { --gtl-page:#f5f7fb;--gtl-card:#fff;--gtl-foreground:#14213c;--gtl-secondary:#50617c;--gtl-outline:#dce5f2;--gtl-field:#f8faff;--gtl-accent:#0754e9;--gtl-shadow:0 5px 18px rgba(20,40,75,.07); }
html[data-theme="dark"] {color-scheme:dark;--gtl-page:#0c1425;--gtl-card:#16223a;--gtl-foreground:#f2f6ff;--gtl-secondary:#c0cce0;--gtl-outline:#344663;--gtl-field:#101b30;--gtl-accent:#4a85ff;--gtl-shadow:0 5px 18px rgba(0,0,0,.18);}
html body.tool-view,html body.tool-view .tool-page{background:var(--gtl-page)!important;color:var(--gtl-foreground)!important;background-image:none!important}
html body.tool-view .tool-page{padding:20px 0 64px!important}
html body.tool-view .tool-container{width:min(1370px,calc(100% - 40px))!important;max-width:1370px!important}
html body.tool-view .breadcrumbs{font-size:14px!important;color:var(--gtl-secondary)!important;margin:0 0 16px!important}
html body.tool-view .qc-tool-statebar{display:none!important}
html body.tool-view .gtl-unified-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;gap:24px!important;align-items:start!important}
html body.tool-view .gtl-unified-grid.gtl-unified-special{display:block!important}
html body.tool-view .gtl-unified-workspace{min-width:0!important}
html body.tool-view .gtl-merge-layout{display:grid!important;grid-template-columns:minmax(0,2.05fr) minmax(285px,1fr)!important;align-items:start!important;gap:26px!important;margin:0 0 28px!important;width:100%!important;max-width:none!important}
html body.tool-view .gtl-merge-panel,html body.tool-view .gtl-side-card,html body.tool-view .gtl-unified-sidecard,html body.tool-view .gtl-unified-workspace>.tool-panel,html body.tool-view .tool-page .content-section,html body.tool-view .tool-page .related-section{background:var(--gtl-card)!important;color:var(--gtl-foreground)!important;border:1px solid var(--gtl-outline)!important;border-radius:18px!important;box-shadow:var(--gtl-shadow)!important}
html body.tool-view .gtl-merge-panel{padding:27px!important}
html body.tool-view .gtl-merge-heading{display:flex!important;align-items:center!important;gap:22px!important;margin-bottom:25px!important}
html body.tool-view .gtl-merge-heading h1{font-size:clamp(28px,3vw,40px)!important;line-height:1.15!important;margin:0 0 5px!important;color:var(--gtl-foreground)!important}
html body.tool-view .gtl-merge-heading p,html body.tool-view .gtl-merge-drop p,html body.tool-view .gtl-side-card li span{color:var(--gtl-secondary)!important}
html body.tool-view .gtl-pdf-icon{display:grid!important;place-items:center!important;flex:none!important;width:63px!important;height:72px!important;border-radius:10px!important;background:#dc2636!important;color:white!important;font-size:18px!important;font-weight:850!important}
html body.tool-view .gtl-merge-drop{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:245px!important;padding:26px!important;background:var(--gtl-field)!important;border:2px dashed #4385ff!important;border-radius:16px!important;text-align:center!important;color:var(--gtl-foreground)!important}
html body.tool-view .gtl-merge-drop h2{color:var(--gtl-foreground)!important;font-size:23px!important;margin:8px 0 0!important}
html body.tool-view .gtl-upload-icon{font-size:60px!important;line-height:1!important;color:var(--gtl-accent)!important}
html body.tool-view .gtl-file-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:185px!important;padding:12px 24px!important;margin:8px 0 0!important;background:#0754e9!important;color:white!important;border-radius:10px!important;font-size:16px!important;font-weight:750!important;cursor:pointer!important}
/* Preserve native input and keyboard access, but do not display a duplicate chooser. */
html body.tool-view .gtl-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
html body.tool-view .gtl-file-input:focus-visible~.gtl-file-help{outline:2px solid var(--gtl-accent)!important}
html body.tool-view .gtl-selected-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin:20px 0!important;padding:15px 18px!important;background:var(--gtl-field)!important;border:1px solid var(--gtl-outline)!important;border-radius:12px!important;color:var(--gtl-foreground)!important}
html body.tool-view .gtl-format-chip{background:color-mix(in srgb,var(--gtl-accent) 14%,var(--gtl-card))!important;color:var(--gtl-foreground)!important;padding:5px 10px!important;border-radius:8px!important}
html body.tool-view .gtl-merge-controls #run{width:100%!important;min-height:52px!important;background:#0754e9!important;color:#fff!important;border-radius:11px!important;font-size:18px!important;font-weight:750!important}
html body.tool-view .gtl-benefits{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-top:22px!important;padding:16px 0!important;background:color-mix(in srgb,#12a88b 10%,var(--gtl-card))!important;color:#0d9f84!important;border-radius:12px!important;text-align:center!important}
html body.tool-view .gtl-benefits span{display:flex!important;flex-direction:column!important;border-right:1px solid var(--gtl-outline)!important;font-size:22px!important}
html body.tool-view .gtl-benefits span:last-child{border:0!important}
html body.tool-view .gtl-benefits small{color:var(--gtl-foreground)!important;font-size:12px!important}
html body.tool-view .gtl-merge-sidebar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;min-width:0!important}
html body.tool-view .gtl-side-card{padding:23px!important}
html body.tool-view .gtl-side-card h2,html body.tool-view .gtl-unified-sidecard h2{color:var(--gtl-foreground)!important;font-size:22px!important;margin:0 0 20px!important}
html body.tool-view .gtl-side-card ol{list-style:none!important;counter-reset:steps!important;display:grid!important;gap:18px!important;padding:0!important;margin:0!important}
html body.tool-view .gtl-side-card li{counter-increment:steps!important;position:relative!important;padding-left:52px!important;min-height:44px!important}
html body.tool-view .gtl-side-card li:before{content:counter(steps)!important;position:absolute!important;left:0!important;top:0!important;width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#167bfb!important;color:white!important;font-weight:800!important}
html body.tool-view .gtl-side-card li strong{display:block!important;color:var(--gtl-foreground)!important;font-size:16px!important}
html body.tool-view .gtl-side-card>a,html body.tool-view .gtl-unified-sidecard a{color:var(--gtl-foreground)!important;border-bottom-color:var(--gtl-outline)!important}
html body.tool-view .tool-page h1,html body.tool-view .tool-page h2,html body.tool-view .tool-page h3{color:var(--gtl-foreground)!important}
html body.tool-view .tool-page p,html body.tool-view .tool-page label{color:var(--gtl-secondary)}
/* Navigation structure and positioning are the same in both themes. */
html .site-header{display:block!important;visibility:visible!important;opacity:1!important;position:sticky!important;top:0!important;z-index:1000!important;background:var(--gtl-card)!important;border-bottom:1px solid var(--gtl-outline)!important;color:var(--gtl-foreground)!important}
html .site-header .nav-wrap{display:flex!important;align-items:center!important;max-width:1430px!important;min-height:78px!important;height:auto!important;gap:20px!important}
html .site-header .brand{display:flex!important;align-items:center!important;gap:10px!important;flex-shrink:0!important}
html .site-header .brand-name{font-size:clamp(18px,1.8vw,26px)!important;color:var(--gtl-foreground)!important;font-weight:850!important;white-space:nowrap!important}
html .site-header .brand-mark{background:transparent!important;box-shadow:none!important;width:45px!important;height:45px!important}
html .site-header .brand-logo-mark{width:45px!important;height:45px!important;object-fit:contain!important}
html .site-header .main-nav{display:flex;align-items:center;gap:24px;margin:auto;order:2}
html .site-header .main-nav>a,html .site-header .mega-toggle{color:var(--gtl-foreground)!important;font-size:15px!important;font-weight:700!important}
html .site-header .gtl-nav-api,html .site-header .gtl-nav-pricing,html .site-header .gtl-get-started,html .site-header .main-nav>a[href*="login"],html .site-header .main-nav>a[href*="account/"]{display:none!important}
html .site-header .enterprise-search{order:3;max-width:28vw;width:300px;min-width:150px;background:var(--gtl-field)!important;border:1px solid var(--gtl-outline)!important;border-radius:50px!important}
html .site-header .enterprise-search input{color:var(--gtl-foreground)!important;background:transparent!important}
html .site-header .language-switcher{order:5}
html .site-header #themeToggle{order:4}
html .site-header #themeToggle,html .site-header .language-button{background:var(--gtl-card)!important;color:var(--gtl-foreground)!important;border-color:var(--gtl-outline)!important}
@media(max-width:1050px){html .site-header .nav-toggle{display:inline-grid!important}html .site-header .main-nav{display:none;position:absolute;top:100%;left:14px;right:14px;flex-direction:column;align-items:stretch;background:var(--gtl-card)!important;border:1px solid var(--gtl-outline)!important;padding:16px;border-radius:12px}html .site-header .main-nav.open{display:flex!important}html .site-header .enterprise-search{max-width:none;width:min(340px,28vw)}}
@media(max-width:900px){html body.tool-view .gtl-unified-grid{grid-template-columns:minmax(0,1fr)!important}html body.tool-view .gtl-merge-layout{grid-template-columns:minmax(0,1fr)!important}html body.tool-view .gtl-merge-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){html body.tool-view .tool-container{width:calc(100% - 26px)!important}html body.tool-view .gtl-merge-panel{padding:17px!important}html body.tool-view .gtl-merge-sidebar{grid-template-columns:1fr!important}html body.tool-view .gtl-merge-heading h1{font-size:29px!important}html body.tool-view .gtl-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:14px!important}html .site-header .enterprise-search{display:none!important}html .site-header .brand-name{font-size:18px!important}}
