/* Header-first layout: navy, cobalt, ice and white. */
.theme-selected{--bg:#f5f8fc;--soft:#edf3fa;--accent:#2458aa}
.theme-selected .workspace-shell{margin-left:0}
.simple-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:30}
.header-inner{max-width:1120px;min-height:88px;margin:auto;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.header-brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:21px;font-weight:800;letter-spacing:-.7px;text-decoration:none;white-space:nowrap}
.brand-light{font-weight:450}.header-mark{display:grid;place-items:center;width:38px;height:42px;border-radius:11px;background:var(--accent);color:#fff;font-size:29px}
.header-navigation{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650}
.header-navigation>a,.header-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;color:var(--ink);text-decoration:none;border-radius:8px;min-height:44px;cursor:pointer;list-style:none}
.header-tools>summary::-webkit-details-marker{display:none}
.header-navigation a:hover,.header-tools>summary:hover,.header-tools[open]>summary{background:var(--soft);color:var(--accent)}
.header-navigation a[aria-current=page]{color:var(--accent);background:var(--soft)}
.header-tools{position:relative}.header-tool-list{position:absolute;top:calc(100% + 12px);right:0;width:560px;max-height:min(65vh,560px);overflow:auto;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px #172c441c;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.header-tool-list a{display:flex;align-items:center;min-height:44px;padding:9px 12px;border-radius:7px;text-decoration:none;color:var(--ink);font-size:14px;line-height:1.4}
.header-tool-list .all-tools-link{grid-column:1/-1;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:6px;font-weight:750;color:var(--accent)}
.header-toggle{display:none;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px 16px;font-weight:650}
.theme-selected .main-wrap{max-width:1080px;padding-top:48px}.theme-selected .page-intro{max-width:930px;margin-bottom:32px}
.theme-selected.is-home .page-intro{background:transparent;border:0;border-radius:0;padding:0;text-align:center;max-width:860px;margin-bottom:36px}
.theme-selected.is-home .page-intro .lead{margin:auto;max-width:750px}.theme-selected h1{font-size:clamp(34px,4vw,48px)}
.theme-selected .tool-stage{max-width:930px}.theme-selected .tool-stage .legacy-tool,.theme-selected .precision-tool{border-radius:20px;box-shadow:0 8px 30px #172c4408}
.theme-selected .related-tools{box-shadow:none;border:1px solid var(--line);margin-top:24px;max-width:800px}.theme-selected .related-tools a::after{content:none}
.theme-selected .site-footer{border-top:0}.theme-selected .footer-grid,.theme-selected .footer-bottom{max-width:1060px;margin-left:auto;margin-right:auto}
@media(max-width:700px){.header-inner{min-height:76px;padding:16px 20px;flex-wrap:wrap;gap:0}.header-brand{font-size:19px}.header-mark{width:34px;height:38px}.has-js .header-toggle{display:block}.header-navigation{width:100%;flex-direction:column;align-items:stretch;gap:4px;padding-top:16px}.has-js .header-toggle[aria-expanded=false]+.header-navigation{display:none}.header-tools>summary,.header-navigation>a{padding:10px 12px}.header-tool-list{position:static;width:100%;max-height:50vh;grid-template-columns:1fr;box-shadow:none;margin-top:8px;padding:8px}.header-tool-list .all-tools-link{grid-column:auto}.theme-selected .main-wrap{padding-top:30px}.theme-selected.is-home .page-intro{padding:0 4px;text-align:left}.theme-selected .related-tools{padding:14px 18px}}

/* Owner-selected dark masthead; preserve the selected site's accent and identity. */
.theme-selected .simple-header{background:#111;border-bottom:1px solid #343039;color:#fff}
.theme-selected .simple-header .header-brand{color:#fff;font-size:25px;letter-spacing:-.7px;gap:12px;line-height:1.2}
.theme-selected .simple-header .header-brand .brand-light{color:#ddd;font-weight:550}
.theme-selected .simple-header .header-mark{width:46px;height:46px;flex-shrink:0;border-radius:13px;background:#fff;color:var(--accent);border:1px solid #fff}
.header-mark svg{display:block;width:36px;height:36px}
.theme-selected .simple-header .header-navigation{font-size:16px;gap:10px}
.theme-selected .simple-header .header-navigation>a,.theme-selected .simple-header .header-tools>summary{color:#fff;padding:11px 16px;min-height:46px}
.theme-selected .simple-header .header-navigation>a:hover,.theme-selected .simple-header .header-tools>summary:hover,.theme-selected .simple-header .header-tools[open]>summary,.theme-selected .simple-header .header-navigation>a[aria-current=page]{background:#303030;color:#fff}
.theme-selected .simple-header .header-tool-list a{font-size:15px}
.theme-selected .simple-header .header-toggle{background:#242424;color:#fff;border-color:#777;font-size:16px}
.theme-selected .simple-header a:focus-visible,.theme-selected .simple-header button:focus-visible,.theme-selected .simple-header summary:focus-visible{outline:3px solid #ddd;outline-offset:3px}
@media(max-width:700px){.theme-selected .simple-header .header-brand{font-size:22px;gap:9px}.theme-selected .simple-header .header-mark{width:40px;height:40px}.theme-selected .simple-header .header-navigation>a,.theme-selected .simple-header .header-tools>summary{padding:12px}.header-inner{column-gap:10px;row-gap:0}}
@media(max-width:360px){.header-inner{padding-left:15px;padding-right:15px}.theme-selected .simple-header .header-brand{font-size:16px;gap:7px}.theme-selected .simple-header .header-mark{width:36px;height:38px}.theme-selected .simple-header .header-toggle{padding:8px 12px}}
