:root{--bg:#06101c;--panel:#0c1828;--panel2:#101f32;--line:#1d3047;--text:#f2f7ff;--muted:#8ea2b9;--blue:#2786ff;--blue2:#62b7ff;--green:#42d5a4;--purple:#a06cff;--red:#ff7169;--gold:#f5bb4b;--shadow:0 20px 60px #0005}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 72% -5%,#15355d 0,transparent 30%),var(--bg);color:var(--text);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}body.light{--bg:#f4f7fb;--panel:#fff;--panel2:#f8fbff;--line:#d9e2ec;--text:#142033;--muted:#607187;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:25px;padding:0 18px;position:sticky;top:0;z-index:30;background:#06101ced;backdrop-filter:blur(18px)}body.light .topbar{background:#ffffffeb}.brand{display:flex;align-items:center;gap:10px;min-width:275px}.logo{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#2e9cff,#1752d1);font-size:25px;box-shadow:0 0 28px #1d73ff55}.brand strong{display:block;font-size:15px}.brand small{display:block;color:var(--muted);font-size:10px}.global-search{height:41px;max-width:590px;flex:1;display:flex;align-items:center;gap:10px;background:#0b1727;border:1px solid #2b4059;border-radius:10px;padding:0 12px}.light .global-search{background:#f5f8fc}.global-search span{font-size:22px;color:#a7b9ce}.global-search input{flex:1;border:0;outline:0;background:none;color:#fff;min-width:80px}.light .global-search input{color:#142033}.global-search kbd{border:1px solid #30435b;border-radius:5px;padding:2px 6px;color:#7f93aa;font-size:10px}.topnav{display:flex;align-items:center;gap:16px;color:#c2cfde}.topnav button{border:1px solid var(--line);background:#0c1726;color:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer}.menu-btn{display:none}.support{background:var(--blue);padding:8px 14px;border-radius:8px;color:#fff;font-weight:750}.layout{display:grid;grid-template-columns:198px 1fr}.sidebar{border-right:1px solid var(--line);min-height:calc(100vh - 64px);padding:14px 10px;position:sticky;top:64px;height:calc(100vh - 64px);background:#06101c55}.side-link{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:8px;color:#b4c4d7;margin:2px 0;cursor:pointer}.side-link span{width:18px;text-align:center}.side-link:hover,.side-link.active{background:#0f315f;color:#fff}.side-link em{margin-left:auto;font-size:8px;color:#6dafff;font-style:normal}.side-divider{border-top:1px solid var(--line);margin:15px 5px}.hero{max-width:1180px;margin:14px auto 0;min-height:250px;padding:31px 28px;border:1px solid #2455a0;border-radius:14px;background:linear-gradient(110deg,#102b54,#101e42 55%,#24225d);display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:18%;top:-190px;background:#2c8cff33;filter:blur(10px)}.pill{display:inline-block;background:#0c4f91;border:1px solid #1878d6;border-radius:18px;padding:4px 11px;color:#9ed3ff;font-size:10px;font-weight:800;letter-spacing:.05em}.eyebrow{font-size:10px;letter-spacing:.14em;color:#5aaeff;font-weight:850}.hero h1{font-size:51px;line-height:1;margin:12px 0 10px;letter-spacing:-.055em}.hero h1 span{color:#2d92ff}.hero p{font-size:16px;color:#c1cee0;margin:0;max-width:650px}.hero-actions{display:flex;gap:9px;margin-top:20px}.hero-btn,.ghost-btn,.primary-btn,.copy-btn{border-radius:8px;padding:9px 14px;font-weight:750;cursor:pointer}.hero-btn,.primary-btn{background:var(--blue);color:#fff;border:1px solid var(--blue)}.ghost-btn,.copy-btn{background:transparent;color:#dce8f5;border:1px solid #49627e}.stats{display:flex;gap:30px;margin-top:22px}.stats div{display:flex;align-items:center;gap:7px}.stats b{font-size:17px}.stats span{color:#b2c2d5;font-size:10px}.hero-panel{width:280px;padding:20px;border-radius:15px;background:#101b3dea;border:1px solid #ffffff1c;position:relative;z-index:1}.pulse{width:8px;height:8px;background:#45d7a4;border-radius:50%;box-shadow:0 0 15px #45d7a4;float:right}.hero-panel h3{font-size:20px;margin:12px 0}.hero-panel h3 strong{color:#68b5ff}.hero-terminal{background:#07111f;border:1px solid #263a53;border-radius:8px;padding:12px;color:#bcd0e6;font:11px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace}.hero-terminal span{color:#63b4ff}.hero-terminal i{color:#5fe1b2;font-style:normal}.section{max-width:1180px;margin:auto;padding:42px 0}.section.compact{padding-top:15px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}.section-title h2{margin:4px 0 0;font-size:22px;letter-spacing:-.03em}.section-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.view-controls{display:flex;gap:5px}.view-controls button{background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:6px 9px;cursor:pointer}.view-controls button.active{color:#fff;background:#16457d}.active-filters{min-height:0;margin-bottom:10px}.filter-chip{display:inline-flex;gap:7px;align-items:center;background:#12386b;color:#b9ddff;border:1px solid #245c9e;border-radius:14px;padding:4px 9px;font-size:10px}.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.tool-grid.list{grid-template-columns:1fr}.tool-grid.list .tool{min-height:92px;display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:14px}.tool-grid.list .tool-icon{margin:0}.tool-grid.list .tool p{margin:0}.tool{background:linear-gradient(145deg,#0c1929,#0b1624);border:1px solid var(--line);border-radius:11px;padding:17px;min-height:165px;transition:.18s transform,.18s border-color,.18s box-shadow;position:relative}.light .tool,.light .quick-card,.light .ai-card,.light .support-card,.light .cat{background:#fff}.tool:hover{transform:translateY(-3px);border-color:#315277;box-shadow:0 12px 30px #0003}.tool-icon{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;background:#12386b;color:#6ab7ff;font-weight:850;margin-bottom:14px}.tool-icon.green{background:#0c4a3b;color:#9de8cc}.tool-icon.purple{background:#38235e;color:#d5bdff}.tool-icon.red{background:#632d32;color:#ffc0bb}.tool h3{font-size:14px;margin:0 0 5px;padding-right:22px}.tool p{font-size:11px;color:#91a4b9;margin:0 0 13px;min-height:34px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:9px;border-radius:12px;padding:3px 7px;background:#16273b;color:#a9bdd2}.tag.green{background:#0c4a3b;color:#9de8cc}.tag.purple{background:#38235e;color:#d5bdff}.tag.red{background:#632d32;color:#ffc0bb}.fav-btn{position:absolute;right:11px;top:11px;border:0;background:none;color:#71869d;font-size:17px;cursor:pointer}.fav-btn.on{color:#ffc34d}.split-section{max-width:1180px;margin:auto;display:grid;grid-template-columns:1.15fr .85fr;gap:13px}.ai-card,.quick-card,.support-card{background:#0b1727;border:1px solid var(--line);border-radius:12px}.ai-card{padding:20px;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start}.ai-icon{width:44px;height:44px;border-radius:12px;background:#254f91;display:grid;place-items:center;color:#78bfff;font-size:22px}.ai-card h2,.quick-card h2{margin:0;font-size:17px}.ai-card p{color:var(--muted);margin:4px 0 12px;font-size:12px}.beta{float:right;color:#7abaff;border:1px solid #2460a3;border-radius:10px;padding:2px 7px;font-size:8px}.ai-card button{grid-column:1/-1;background:var(--blue);color:#fff;border:0;border-radius:8px;padding:10px;font-weight:750;cursor:pointer}.ai-card small{grid-column:1/-1;text-align:center;color:#71869d;font-size:9px}.quick-card{padding:18px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}.quick-grid a{background:#122238;border:1px solid #263a53;padding:9px;border-radius:7px;font-size:11px;color:#d6e1ed}.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cat{background:#0c1929;border:1px solid var(--line);border-radius:9px;padding:15px;text-align:center;cursor:pointer;color:#fff}.cat strong{display:block;font-size:11px}.cat span{display:block;color:#7e92a8;font-size:10px}.support-card{max-width:1180px;margin:0 auto 30px;padding:17px 20px;display:flex;align-items:center;gap:10px}.support-card>div{margin-right:auto}.support-card h2{margin:2px 0;font-size:15px}.support-card p{margin:2px 0;color:var(--muted);font-size:11px}.support-btn,.github-btn{padding:9px 13px;border-radius:8px;font-size:11px;font-weight:750}.support-btn{background:#1681f8}.github-btn{border:1px solid #40546c}.mini-section{max-width:1180px;margin:0 auto;padding:28px 0}.mini-section h2{margin:5px 0;font-size:25px}.mini-section p{max-width:760px;color:var(--muted)}.inline-link{color:#56adff}.empty{text-align:center;border:1px dashed #2b425d;border-radius:12px;padding:45px;color:var(--muted)}.empty div{font-size:30px}.empty h3{color:var(--text);margin:5px}.empty.small{padding:25px}.modal{display:none;position:fixed;inset:0;background:#0009;z-index:50;place-items:center;padding:20px}.modal.open{display:grid}.modal-box{max-width:680px;width:100%;background:#0c1929;border:1px solid #315174;border-radius:15px;padding:24px;position:relative;box-shadow:var(--shadow)}.modal-box label{display:block;color:#b9c9da;font-size:12px;margin-top:15px}.close{position:absolute;right:15px;top:10px;background:none;border:0;color:#fff;font-size:25px;cursor:pointer}.modal textarea,.modal select{width:100%;margin:7px 0;background:#07111f;border:1px solid var(--line);border-radius:8px;padding:11px;color:#fff}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal pre{white-space:pre-wrap;color:#bcd0e6;background:#07111f;padding:15px;border-radius:8px;min-height:50px;max-height:330px;overflow:auto}.modal small{color:#6f859c}footer{max-width:1180px;margin:auto;border-top:1px solid var(--line);padding:26px 0;display:flex;justify-content:space-between;color:#71869d;font-size:11px}footer strong{display:block;color:#dce7f3}footer small{display:block}footer div:nth-child(2){display:flex;gap:20px}@media(max-width:1050px){.tool-grid{grid-template-columns:repeat(3,1fr)}.brand{min-width:220px}.topnav a:not(.support){display:none}.cat-grid{grid-template-columns:repeat(3,1fr)}.hero,.section,.split-section,.support-card,.mini-section{margin-left:18px;margin-right:18px}}@media(max-width:760px){.topbar{gap:10px}.brand{min-width:auto}.brand small,.topnav>a{display:none}.menu-btn{display:block}.global-search{max-width:none}.sidebar{position:fixed;left:-230px;top:64px;width:220px;height:calc(100vh - 64px);z-index:25;background:#071321;transition:.2s left}.sidebar.open{left:0}.layout{display:block}.hero{margin-top:10px}.tool-grid{grid-template-columns:repeat(2,1fr)}.split-section{grid-template-columns:1fr}.cat-grid{grid-template-columns:repeat(2,1fr)}.stats{gap:14px;flex-wrap:wrap}.hero-panel{display:none}.support-card{flex-wrap:wrap}.support-card>div{width:100%}footer{margin:0 18px;display:block}footer div:nth-child(2){margin:15px 0;flex-wrap:wrap}}@media(max-width:470px){.tool-grid{grid-template-columns:1fr}.hero h1{font-size:40px}.hero{padding:22px 18px}.stats{display:grid;grid-template-columns:1fr 1fr}.cat-grid{grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr}}
/* Shared styles for individual tool pages and the original MVP tools */
main h1{font-size:42px;line-height:1.05;letter-spacing:-.04em;margin:14px 0 10px}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px}.btn{display:inline-block;border-radius:8px;padding:9px 14px;border:1px solid var(--line);font-weight:750;cursor:pointer;background:transparent;color:var(--text)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}textarea,input,select{outline:none}textarea:focus,input:focus,select:focus{border-color:#3f8fe8!important;box-shadow:0 0 0 3px #2385ff18}.card pre,main pre{white-space:pre-wrap;overflow:auto;background:#07111f;border:1px solid #1c3047;border-radius:8px;padding:15px;color:#c8d8e9}.card input,.card textarea,.card select{max-width:100%}

/* Account + admin UI */
.auth-wrap{min-height:calc(100vh - 80px);display:grid;place-items:center;padding:60px 20px}.auth-card{width:min(520px,100%);background:var(--panel,#0d1828);border:1px solid var(--border,#203047);border-radius:20px;padding:34px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.auth-card h1{margin:14px 0 8px;font-size:34px}.auth-card>p{color:var(--muted,#8ea0b7);line-height:1.6}.auth-card form{display:grid;gap:16px;margin:24px 0}.auth-card label,.admin-form label{display:grid;gap:7px;font-weight:600}.auth-card input,.admin-form input,.admin-form select,.admin-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--border,#203047);background:var(--input,#081321);color:inherit;border-radius:10px;padding:12px;font:inherit}.auth-card small{color:var(--muted,#8ea0b7);font-weight:400}.auth-divider{text-align:center;color:var(--muted,#8ea0b7);margin:18px 0}.form-msg{color:var(--muted,#8ea0b7);min-height:20px}.account-actions{display:flex;gap:12px;align-items:center;margin-top:25px}.admin-wrap{max-width:1250px;margin:auto;padding:50px 24px}.admin-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.admin-head h1{margin:6px 0;font-size:42px}.admin-head p{color:var(--muted,#8ea0b7)}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.admin-stat,.admin-panel{background:var(--panel,#0d1828);border:1px solid var(--border,#203047);border-radius:18px}.admin-stat{padding:22px}.admin-stat strong{display:block;font-size:30px}.admin-stat span{color:var(--muted,#8ea0b7)}.admin-panel{padding:26px;margin-bottom:24px}.panel-title{margin-bottom:20px}.panel-title h2{margin:5px 0}.admin-form{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.admin-form .wide{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:12px}.admin-table-wrap{overflow:auto}.admin-table-wrap table{width:100%;border-collapse:collapse}.admin-table-wrap th,.admin-table-wrap td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--border,#203047)}.admin-table-wrap td small{display:block;color:var(--muted,#8ea0b7);margin-top:3px}.table-btn{border:1px solid var(--border,#203047);background:transparent;color:inherit;border-radius:8px;padding:7px 10px;cursor:pointer}.table-btn.danger{color:#ff8e8e}.light .auth-card,.light .admin-stat,.light .admin-panel{background:#fff}.light .auth-card input,.light .admin-form input,.light .admin-form select,.light .admin-form textarea{background:#f6f8fb;color:#152033}.light .admin-table-wrap th,.light .admin-table-wrap td{border-color:#dce3ec}@media(max-width:800px){.admin-form{grid-template-columns:1fr}.admin-stats{grid-template-columns:1fr}.admin-head{align-items:start;flex-direction:column}.admin-head h1{font-size:34px}}

.brand small{display:block}.port-row{display:grid;grid-template-columns:80px 100px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--border,#203047)}.port-row span{color:var(--muted,#8ea0b7)}.tool-page{max-width:900px;margin:auto;padding:45px 22px}.tool-page .back{display:inline-block;margin-bottom:40px;color:inherit}.tool-head{margin-bottom:25px}.tool-head h1{font-size:clamp(34px,6vw,58px);margin:12px 0}.tool-head p{color:var(--muted,#8ea0b7);font-size:18px;line-height:1.6}.tool-card{background:var(--panel,#0d1828);border:1px solid var(--border,#203047);border-radius:20px;padding:28px}.tool-card label{display:grid;gap:7px;margin-bottom:16px;font-weight:600}.tool-card input,.tool-card textarea,.tool-card select{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--border,#203047);border-radius:10px;background:var(--input,#081321);color:inherit;font:inherit}.tool-card pre{margin-top:22px;white-space:pre-wrap;background:#07101c;border:1px solid var(--border,#203047);border-radius:12px;padding:18px;overflow:auto}.tool-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tool-form .primary-btn{align-self:end}@media(max-width:650px){.tool-form{grid-template-columns:1fr}.port-row{grid-template-columns:60px 80px 1fr}}

/* Plus membership */
.account-card-wide { max-width: 620px; }
.membership-panel { display:flex; justify-content:space-between; gap:24px; align-items:center; margin:28px 0 12px; padding:20px; border:1px solid var(--line); background:var(--surface-2); border-radius:8px; }
.membership-panel h2 { margin:5px 0 7px; font-size:1.25rem; }
.membership-panel p { margin:0; max-width:360px; }
.pricing-page { min-height:100vh; }
.pricing-wrap { max-width:1060px; margin:0 auto; padding:78px 28px 64px; }
.pricing-intro { max-width:690px; margin-bottom:40px; }
.pricing-intro h1 { margin:16px 0; font-size:clamp(2.4rem, 5vw, 4.5rem); line-height:1.02; }
.pricing-intro h1 span { color:var(--blue); }
.pricing-intro p { max-width:620px; font-size:1.05rem; line-height:1.7; }
.price-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.price-card { position:relative; display:flex; min-height:330px; flex-direction:column; padding:28px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.price-card h2 { margin:14px 0 4px; font-size:2.35rem; }
.price-card h2 small { color:var(--muted); font-size:0.9rem; font-weight:500; }
.price-card > p { margin:0; color:var(--muted); }
.price-card ul { flex:1; margin:24px 0; padding:0; list-style:none; }
.price-card li { margin:12px 0; padding-left:22px; position:relative; }
.price-card li::before { content:"✓"; position:absolute; left:0; color:var(--green); font-weight:700; }
.featured-price { border-color:var(--blue); box-shadow:0 0 0 1px rgba(45,136,255,.16); }
.price-tag { position:absolute; top:-12px; right:20px; padding:4px 9px; background:var(--blue); border-radius:4px; color:#fff; font-size:.68rem; font-weight:800; letter-spacing:.05em; }
.pricing-message { min-height:24px; margin:18px 0; }
.plus-notes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:42px; margin-top:56px; padding-top:26px; border-top:1px solid var(--line); }
.plus-notes p { margin-top:7px; line-height:1.65; color:var(--muted); }
@media (max-width:650px) { .pricing-wrap { padding:46px 18px; } .price-grid,.plus-notes { grid-template-columns:1fr; } .membership-panel { align-items:flex-start; flex-direction:column; } }


/* Theme tokens and light mode contrast corrections */
:root {
  --surface: var(--panel);
  --surface-2: var(--panel2);
  --border: var(--line);
  --input: #081321;
}

body.light {
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --border: #d9e2ec;
  --input: #f6f8fb;
  --shadow: 0 16px 42px rgba(17, 35, 58, .12);
}

.light .topnav { color: #43546a; }
.light .topnav a:hover { color: #0b67d1; }
.light .topnav button { background: #ffffff; color: #142033; border-color: #cbd7e5; }
.light .topnav button:hover { background: #eef5ff; border-color: #8ab9f0; }
.light .sidebar { background: #f7faff; }
.light .side-link { color: #4a5d72; }
.light .side-link:hover,
.light .side-link.active { background: #e7f1ff; color: #0d5db8; }
.light .side-link em { color: #176aca; }
.light .hero { border-color: #2455a0; }
.light .hero h1,
.light .hero h3,
.light .hero p,
.light .hero .stats b { color: #f4f8ff; }
.light .hero h1 span,
.light .hero-panel h3 strong { color: #6eb9ff; }
.light .hero .stats span { color: #cbd8eb; }
.light .hero .ghost-btn { border-color: #6e8eb5; color: #f4f8ff; }
.light .tool { background: #ffffff; }
.light .tool p { color: #64778c; }
.light .tool:hover { border-color: #7fabd9; box-shadow: 0 12px 30px rgba(21, 48, 82, .12); }
.light .tag { background: #eaf1f8; color: #405368; }
.light .quick-grid a { background: #f3f7fb; border-color: #d8e3ef; color: #34495f; }
.light .cat { color: #17283b; }
.light .cat span { color: #64778c; }
.light .modal-box { background: #ffffff; border-color: #cbd9e7; }
.light .modal-box label,
.light .close { color: #142033; }
.light .modal textarea,
.light .modal select,
.light .modal pre,
.light .card pre,
.light main pre,
.light .tool-card pre { background: #f4f7fb; border-color: #d7e2ee; color: #24384f; }
.light .ghost-btn,
.light .copy-btn { color: #24384f; border-color: #9dafc2; }
.light .github-btn { border-color: #a8b8c9; }
.light footer strong { color: #24384f; }

#themeBtn { display:grid; place-items:center; transition: background .18s, border-color .18s, transform .18s; }
#themeBtn:hover { transform: translateY(-1px); }
#themeBtn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline:3px solid rgba(45, 136, 255, .35); outline-offset:2px; }

.tool-link { display:block; color:inherit; }
.new-tag { background:#e3b341; color:#17120a; font-weight:800; }
.feedback-section { padding-bottom:44px; }
.feedback-form { display:grid; max-width:680px; gap:14px; margin-top:20px; }
.feedback-form label { display:grid; gap:7px; font-weight:700; }
.feedback-form textarea,.feedback-form select { width:100%; border:1px solid var(--line); border-radius:8px; padding:11px; background:var(--input); color:var(--text); }
.feedback-form .primary-btn { justify-self:start; }
.light .feedback-form textarea,.light .feedback-form select { background:#fff; }

.licence-head,.licence-row{display:grid;grid-template-columns:2fr .7fr 1fr auto;gap:8px;align-items:center;margin-bottom:8px}.licence-head{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.calc-total{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.calc-total strong{font-size:1.8rem}.calc-total p{margin:5px 0 0;color:var(--muted)}.dns-results{margin-top:14px}.dns-results .port-row{grid-template-columns:60px 90px 1fr;word-break:break-word}@media(max-width:680px){.licence-head{display:none}.licence-row{grid-template-columns:1fr 1fr}.licence-row input:first-child{grid-column:1/-1}.licence-row button{grid-column:1/-1}.dns-results .port-row{grid-template-columns:50px 1fr}.dns-results .port-row b{grid-column:1/-1}}

/* Shared tool-shell repairs */
.nav{height:64px;display:flex;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);background:rgba(6,16,28,.92);backdrop-filter:blur(16px)}.nav .brand{min-width:0;color:var(--text);font-weight:800}.nav .brand-mark{color:var(--blue2);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.section{max-width:1100px;margin:0 auto;padding:54px 28px 72px}.section>h1{font-size:clamp(2rem,4vw,3.25rem);margin:9px 0;letter-spacing:0}.section>p{max-width:740px;font-size:1rem}.section .card{width:min(100%,960px);margin-top:28px;padding:24px;border-radius:10px;background:var(--panel);box-shadow:var(--shadow)}.section .card label{display:grid;gap:7px;color:var(--text);font-weight:700}.section .card input,.section .card textarea,.section .card select,.section input[style],.section textarea[style],.section select[style]{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--input)!important;color:var(--text)!important}.section textarea{resize:vertical}.section pre,.section pre[style],.tool-card pre{width:100%;margin:20px 0 0;padding:17px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#07111f!important;color:#d9e6f5!important;overflow:auto}.section .btn,.section .primary-btn{min-height:42px}.tool-card>#form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tool-card>#form label{display:grid;gap:7px;font-weight:700}.tool-card>#form button{width:max-content}.tool-card>#form label:has(textarea),.tool-card>#form button,.tool-card>#form>*:only-child{grid-column:1/-1}.tool-card>#form input,.tool-card>#form select,.tool-card>#form textarea{background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px 12px}.light .nav{background:rgba(255,255,255,.94)}.light .section pre,.light .section pre[style],.light .tool-card pre{background:#eef3f8!important;border-color:#d7e2ed!important;color:#1d3147!important}.light .section .card{background:#fff}.light .section .card input,.light .section .card textarea,.light .section .card select,.light .section input[style],.light .section textarea[style],.light .section select[style]{background:#f7faff!important;color:#17283b!important}.output-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}@media(max-width:680px){.nav{padding:0 18px}.section{padding:36px 18px 54px}.section .card{padding:17px}.tool-card>#form{grid-template-columns:1fr}.section .card>#rows>div{grid-template-columns:1fr 1fr!important}.section .card>#rows>div input:first-child{grid-column:1/-1}}


/* Contextual tool enhancements */
.preset-panel{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:18px;align-items:end;margin:-4px 0 22px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.preset-panel label{display:grid;gap:7px;font-weight:800}
.preset-panel select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--input,var(--panel));color:var(--text)}
.preset-panel p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.enhancement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.enhancement-actions .btn{font-size:11px;padding:7px 10px}
body.light .preset-panel{background:#f5f8fc}
@media(max-width:680px){.preset-panel{grid-template-columns:1fr;align-items:start}}


/* Unified tool page shell */
body.tool-shell-page{min-height:100vh;display:flex;flex-direction:column}
body.tool-shell-page>main{flex:1}
.tool-topbar{box-shadow:0 1px 0 rgba(255,255,255,.02)}
.tool-topbar .brand{min-width:255px}
.tool-search-link{height:41px;max-width:520px;flex:1;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #2b4059;border-radius:10px;background:#0b1727;color:var(--muted)}
.tool-search-link:hover{border-color:#3b6290;color:var(--text)}
.tool-search-link>span:first-child{font-size:22px;color:#a7b9ce}
.tool-search-link kbd{margin-left:auto;border:1px solid #30435b;border-radius:5px;padding:2px 6px;color:#7f93aa;font-size:10px}
.tool-nav{margin-left:auto}
.tool-nav button{display:grid;place-items:center}
.tool-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:22px;color:var(--muted);font-size:11px}
.tool-breadcrumb a:hover{color:var(--blue2)}
.tool-breadcrumb [aria-current="page"]{max-width:48ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.tool-shell-page .section{width:min(1100px,100%);padding-top:38px}
.tool-shell-page .section>.tool-kicker{display:inline-block;margin:0 0 4px;padding:0;border:0;background:transparent;color:#5aaeff;font-size:10px;font-weight:850;letter-spacing:.14em}
.tool-shell-page .section>h1{max-width:900px;margin:8px 0 10px;font-size:clamp(2.15rem,4vw,3.25rem);line-height:1.08}
.tool-shell-page .section>p{margin:0;color:var(--muted);line-height:1.65}
.tool-shell-page .section>.card,.tool-shell-page .section>.tool-card{width:min(100%,960px);margin-top:28px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow)}
.tool-shell-page .section label{color:var(--text)}
.tool-shell-page .section input[type="checkbox"]{width:18px!important;min-height:18px!important;height:18px;padding:0!important;margin:0;accent-color:var(--blue);box-shadow:none!important}
.tool-shell-page .section label:has(>input[type="checkbox"]){display:flex!important;align-items:center;gap:9px;min-height:42px}
.tool-shell-page .section small,.tool-shell-page .form-msg{color:var(--muted)}
.tool-footer{width:min(1100px,calc(100% - 56px));max-width:none;margin-top:auto}
.tool-footer>span{align-self:center}
.light .tool-search-link{border-color:#d1dce8;background:#f5f8fc;color:#607187}
.light .tool-search-link:hover{border-color:#8ab9f0;color:#142033}
.light .tool-search-link kbd{border-color:#cbd7e5;color:#607187}
.light .tool-shell-page .section>.card,.light .tool-shell-page .section>.tool-card{background:#fff}
@media(max-width:760px){
  .tool-topbar .brand{min-width:auto}
  .tool-search-link{min-width:0}
  .tool-search-link kbd{display:none}
  .tool-nav-link{display:none!important}
  .tool-topbar .tool-nav>a.tool-all-link{display:inline-flex}
  .tool-footer{width:calc(100% - 36px)}
}
@media(max-width:520px){
  .tool-search-link>span:nth-child(2){display:none}
  .tool-search-link{flex:0 0 42px;justify-content:center;padding:0}
  .tool-topbar .tool-all-link{font-size:0;padding:8px 10px}
  .tool-topbar .tool-all-link::after{content:"←";font-size:16px}
  .tool-shell-page .section{padding-top:28px}
  .tool-breadcrumb [aria-current="page"]{max-width:22ch}
}

/* Deeper tool guidance and workflow UI */
.tool-guide{width:min(100%,960px);margin:22px 0 0;border:1px solid #27486c;border-radius:10px;background:linear-gradient(135deg,rgba(24,73,126,.28),rgba(13,27,45,.72));overflow:hidden}
.guide-summary{display:flex;gap:13px;align-items:flex-start;padding:17px 19px}
.guide-summary p{margin:3px 0 0!important;max-width:none!important;color:var(--muted);font-size:12px!important;line-height:1.6}
.guide-icon{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#1e69ba;color:#fff;font-weight:900;font-family:Georgia,serif}
.tool-guide details{border-top:1px solid var(--line)}
.tool-guide summary{padding:13px 19px;color:var(--blue2);font-weight:800;cursor:pointer;list-style-position:inside}
.guide-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;padding:2px 19px 19px}
.guide-columns h2{margin:8px 0;font-size:13px}
.guide-columns ol,.guide-columns ul{margin:0;padding-left:20px;color:var(--muted);font-size:12px;line-height:1.7}
.guide-columns li+li{margin-top:4px}
.field-help{display:block;margin-top:-2px;color:var(--muted)!important;font-size:10px;font-weight:500;line-height:1.45}
.tool-workspace-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.readiness{display:flex;align-items:center;gap:9px;min-width:0}
.readiness-dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#f5bb4b;box-shadow:0 0 0 4px rgba(245,187,75,.1)}
.readiness.ready .readiness-dot{background:var(--green);box-shadow:0 0 0 4px rgba(66,213,164,.1)}
.readiness strong,.readiness small{display:block}
.readiness strong{font-size:11px}
.readiness small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.workspace-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.workspace-actions .btn{padding:6px 9px;font-size:10px;white-space:nowrap}
.output-status{display:flex;justify-content:space-between;gap:12px;margin:19px 0 -12px;padding:8px 10px;border:1px solid rgba(66,213,164,.25);border-radius:7px;background:rgba(66,213,164,.07);color:var(--green);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.output-status small{font-weight:600;text-transform:none;letter-spacing:0}
.output-status.warning{border-color:rgba(245,187,75,.35);background:rgba(245,187,75,.08);color:var(--gold)}
.related-tools{width:min(100%,960px);display:grid;grid-template-columns:.8fr 1.2fr;gap:22px;margin:24px 0 0;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.related-tools h2{margin:5px 0;font-size:18px}
.related-tools p{margin:0;color:var(--muted);font-size:11px}
.related-links{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.related-links a{display:flex;flex-direction:column;justify-content:space-between;min-height:82px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);transition:.16s transform,.16s border-color}
.related-links a:hover{transform:translateY(-2px);border-color:#3a6b9e}
.related-links strong{font-size:11px}
.related-links span{color:var(--blue2);font-size:10px}
.light .tool-guide{background:linear-gradient(135deg,#eef6ff,#fff)}
.light .tool-workspace-bar,.light .related-tools,.light .related-links a{background:#f7faff}
@media(max-width:760px){.guide-columns,.related-tools{grid-template-columns:1fr}.related-links{grid-template-columns:1fr 1fr}.tool-workspace-bar{align-items:flex-start;flex-direction:column}.workspace-actions{justify-content:flex-start}}
@media(max-width:480px){.related-links{grid-template-columns:1fr}}

/* Subnet calculator — plain-English input and result guidance */
.subnet-input-intro{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}
.subnet-input-intro>div{display:flex;gap:11px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.subnet-input-intro strong{display:block;font-size:12px}
.subnet-input-intro p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.subnet-input-intro code{color:var(--blue2);font-weight:800}
.step-number{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#1b6fc4;color:#fff;font-weight:900}
.prefix-shortcuts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:3px 0 17px}
.prefix-shortcuts>span{margin-right:3px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.prefix-shortcuts button{padding:6px 9px;border:1px solid var(--line);border-radius:16px;background:var(--panel2);color:var(--text);font-size:10px;cursor:pointer}
.prefix-shortcuts button:hover{border-color:var(--blue);color:var(--blue2)}
.input-meaning{margin:0 0 18px;padding:15px;border:1px solid var(--line);border-radius:8px;background:rgba(39,134,255,.07)}
.input-meaning>strong{display:block;margin-bottom:9px;color:var(--blue2);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.input-meaning>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.input-meaning span{padding:8px 10px;border-radius:6px;background:rgba(255,255,255,.035);color:var(--muted);font-size:11px}
.input-meaning b{color:var(--text)}
.input-meaning.invalid{border-color:rgba(255,113,105,.5);background:rgba(255,113,105,.08);color:#ff9a94}
.subnet-split-panel{margin:0 0 18px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.subnet-split-panel summary{padding:12px 14px;color:var(--blue2);font-size:11px;font-weight:800;cursor:pointer}
.subnet-split-panel label{padding:2px 14px 14px}
.subnet-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.subnet-result-grid article{padding:15px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.subnet-result-grid span{display:block;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.subnet-result-grid strong{display:block;margin:4px 0;color:var(--text);font:700 16px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.subnet-result-grid p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}
.address-bar{display:flex;min-height:42px;margin-top:12px;border:1px solid var(--line);border-radius:8px;overflow:hidden;font-size:9px;font-weight:800}
.address-bar>div{display:grid;place-items:center;min-width:0;padding:8px;text-align:center}
.address-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.network-part{background:#1d6cba;color:#fff}
.host-part{background:#164535;color:#baf2de}
.light .subnet-input-intro>div,.light .prefix-shortcuts button,.light .subnet-split-panel,.light .subnet-result-grid article{background:#f7faff}
.light .input-meaning span{background:#fff}
@media(max-width:680px){.subnet-input-intro,.input-meaning>div,.subnet-result-grid{grid-template-columns:1fr}.address-bar span{font-size:0}.address-bar span::after{content:"bits";font-size:9px}}

/* PowerShell example library and generator */
.ps-library-stats{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}
.ps-library-stats>div{min-width:125px;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.ps-library-stats strong,.ps-library-stats span{display:block}.ps-library-stats strong{font-size:20px;color:var(--blue2)}.ps-library-stats span{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em}
.ps-browser{width:min(100%,1100px);margin:0 0 24px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.ps-browser-head{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.ps-browser-head label{display:grid;gap:6px;font-size:10px;font-weight:800}.ps-browser-head input,.ps-browser-head select{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--input);color:var(--text)}
.ps-filter-summary{display:flex;align-items:center;justify-content:space-between;margin:13px 0 9px;color:var(--muted);font-size:10px}.ps-filter-summary button{border:0;background:none;color:var(--muted);cursor:pointer}.ps-filter-summary button.active{color:var(--gold)}
.ps-example-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:535px;overflow:auto;padding-right:4px}
.ps-example{position:relative;min-height:142px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);transition:.15s border-color,.15s transform}
.ps-example:hover,.ps-example.selected{border-color:#3478bb;transform:translateY(-1px)}
.ps-example-main{width:100%;height:100%;display:flex;flex-direction:column;align-items:flex-start;padding:12px 34px 12px 12px;border:0;background:none;color:var(--text);text-align:left;cursor:pointer}
.ps-example-category{color:var(--blue2);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.ps-example strong{margin:4px 0;font-size:12px}.ps-example p{margin:0 0 9px!important;color:var(--muted)!important;font-size:10px!important;line-height:1.45!important}.ps-risk-badge{display:inline-block;margin-top:auto;padding:2px 6px;border-radius:10px;background:rgba(66,213,164,.12);color:var(--green);font-size:8px;font-weight:800}.ps-risk-badge.change{background:rgba(245,187,75,.12);color:var(--gold)}.ps-risk-badge.authentication{background:rgba(160,108,255,.13);color:#c7a8ff}
.ps-favourite{position:absolute;right:8px;top:8px;border:0;background:none;color:#73869b;font-size:17px;cursor:pointer}.ps-favourite.on{color:var(--gold)}
.ps-builder-card{max-width:960px!important}.ps-selected-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:13px}.ps-selected-head h2{margin:5px 0;font-size:25px}.ps-selected-head p{margin:0!important;color:var(--muted)!important}.ps-risk{flex:0 0 auto;padding:5px 9px;border-radius:14px;background:rgba(66,213,164,.12);color:var(--green);font-size:9px;font-weight:850;text-transform:uppercase}.ps-risk.change{background:rgba(245,187,75,.12);color:var(--gold)}.ps-risk.authentication{background:rgba(160,108,255,.13);color:#c7a8ff}
.ps-requirements{display:flex;gap:9px;margin:0 0 18px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--panel2);font-size:10px}.ps-requirements strong{color:var(--blue2)}.ps-requirements span{color:var(--muted)}
.ps-parameter-grid{margin-bottom:14px}.ps-no-parameters{grid-column:1/-1;padding:13px;border:1px dashed var(--line);border-radius:7px;color:var(--muted);font-size:11px}
.ps-safety-note{display:flex;gap:10px;margin:6px 0 15px;padding:11px 13px;border-left:3px solid var(--green);border-radius:4px;background:rgba(66,213,164,.06);font-size:10px}.ps-safety-note strong{white-space:nowrap}.ps-safety-note span{color:var(--muted)}
.ps-safety-note:has(+ .output-actions){}.light .ps-browser,.light .ps-library-stats>div,.light .ps-example,.light .ps-requirements{background:#fff}.light .ps-example{background:#f7faff}
@media(max-width:850px){.ps-example-grid{grid-template-columns:1fr 1fr}.ps-browser-head{grid-template-columns:1fr 1fr}.ps-browser-head label:first-child{grid-column:1/-1}}
@media(max-width:580px){.ps-example-grid,.ps-browser-head{grid-template-columns:1fr}.ps-browser-head label:first-child{grid-column:auto}.ps-selected-head{flex-direction:column}.ps-example-grid{max-height:620px}}

/* CSV automation workbench */
.automation-browser{width:min(100%,960px);margin:0 0 24px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.workflow-shortcuts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:14px}.workflow-shortcuts>span{margin-right:3px;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.workflow-shortcuts button{padding:6px 9px;border:1px solid var(--line);border-radius:16px;background:var(--panel2);color:var(--text);font-size:9px;cursor:pointer}.workflow-shortcuts button:hover{border-color:var(--blue);color:var(--blue2)}
.automation-filters{display:grid;grid-template-columns:2fr 1fr;gap:10px}.automation-filters label{display:grid;gap:6px;font-size:10px;font-weight:800}.automation-filters input,.automation-filters select{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--input);color:var(--text)}
.automation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:490px;overflow:auto}.automation-card{min-height:130px;display:flex;flex-direction:column;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);text-align:left;cursor:pointer}.automation-card:hover,.automation-card.selected{border-color:var(--blue);transform:translateY(-1px)}.automation-card span{color:var(--blue2);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.automation-card strong{margin:4px 0;font-size:12px}.automation-card p{margin:0!important;color:var(--muted)!important;font-size:10px!important;line-height:1.45!important}
.automation-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.automation-title-row h2{margin:4px 0;font-size:26px}.automation-title-row p{margin:0 0 14px;color:var(--muted)}
.automation-meta{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px;margin:12px 0 18px}.automation-meta>div{padding:11px;border:1px solid var(--line);border-radius:7px;background:var(--panel2)}.automation-meta strong,.automation-meta span{display:block}.automation-meta strong{margin-bottom:4px;color:var(--blue2);font-size:9px;text-transform:uppercase}.automation-meta span{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.automation-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.automation-steps>div{display:flex;gap:9px;padding:10px;border-left:2px solid var(--blue);background:rgba(39,134,255,.06)}.automation-steps span{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-size:10px;font-weight:900}.automation-steps p{margin:0!important;color:var(--muted)!important;font-size:9px!important}.automation-steps strong{display:block;color:var(--text);font-size:10px}
.automation-upload{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.preview-toggle{display:flex!important;align-items:center;gap:7px;margin:0 0 0 auto!important;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel2);font-size:10px!important}.automation-validation{display:grid;gap:4px;margin:10px 0 18px;padding:12px;border:1px solid var(--line);border-radius:7px;font-size:10px}.automation-validation strong,.automation-validation span{display:block}.automation-validation.valid{border-color:rgba(66,213,164,.4);background:rgba(66,213,164,.06)}.automation-validation.invalid{border-color:rgba(255,113,105,.45);background:rgba(255,113,105,.06)}
.light .automation-browser,.light .automation-card,.light .automation-meta>div,.light .preview-toggle{background:#fff}.light .automation-card{background:#f7faff}
@media(max-width:760px){.automation-grid,.automation-steps{grid-template-columns:1fr 1fr}.automation-meta{grid-template-columns:1fr}.preview-toggle{margin-left:0!important}}
@media(max-width:520px){.automation-filters,.automation-grid,.automation-steps{grid-template-columns:1fr}.automation-title-row{flex-direction:column}}

/* Compact catalogue controls */
.catalogue-controls{display:flex;align-items:center;gap:8px}
.utility-toggle{min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}
.utility-toggle:hover,.utility-toggle.active{border-color:#376b9f;color:var(--blue2);background:rgba(39,134,255,.08)}
.load-more-wrap{display:flex;justify-content:center;margin-top:20px}
.load-more-wrap [hidden]{display:none}
.load-more-wrap .ghost-btn{min-width:190px}
.light .utility-toggle{background:#fff}
@media(max-width:560px){.section-title{align-items:flex-start}.catalogue-controls{align-items:flex-end;flex-direction:column}.utility-toggle{white-space:nowrap}}

/* Task-first discovery, maturity and local history */
.nav-status{display:inline-block;margin-left:3px;padding:2px 4px;border:1px solid rgba(245,187,75,.4);border-radius:8px;color:var(--gold);font-size:7px;line-height:1;letter-spacing:.05em;vertical-align:middle}
.task-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.task-grid a{min-height:142px;display:flex;flex-direction:column;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--panel);transition:.16s transform,.16s border-color}
.task-grid a:hover{transform:translateY(-2px);border-color:#3b73ac}
.task-grid span{color:var(--blue2);font-size:8px;font-weight:850;letter-spacing:.08em}
.task-grid strong{margin:8px 0 5px;font-size:13px}
.task-grid small{color:var(--muted);font-size:10px;line-height:1.55}
.outcome-label{display:block;margin-bottom:3px;color:var(--blue2);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.ready-tag{color:var(--green)!important;border-color:rgba(66,213,164,.3)!important;background:rgba(66,213,164,.07)!important}
.local-processing-note{display:flex;gap:9px;align-items:center;width:fit-content;max-width:720px;margin-top:13px!important;padding:8px 11px;border:1px solid rgba(66,213,164,.28);border-radius:7px;background:rgba(66,213,164,.06);font-size:10px!important}
.local-processing-note strong{color:var(--green);white-space:nowrap}.local-processing-note span{color:var(--muted)}
.light .task-grid a{background:#fff}
@media(max-width:980px){.task-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.task-grid{grid-template-columns:1fr 1fr}.nav-status{display:none}}
@media(max-width:430px){.task-grid{grid-template-columns:1fr}.local-processing-note{align-items:flex-start;flex-direction:column}}

/* Workflow and grouped utility hubs */
.workflow-hub,.utility-groups{width:min(100%,1080px);display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:28px}.workflow-hub article,.utility-groups article{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.workflow-hub article>span,.utility-groups article>span{color:var(--blue2);font-size:8px;font-weight:900;letter-spacing:.08em}.workflow-hub h2,.utility-groups h2{margin:7px 0;font-size:18px}.workflow-hub p{min-height:48px;margin:0 0 14px!important;color:var(--muted)!important;font-size:11px!important;line-height:1.55!important}.workflow-hub article>div,.utility-groups article>div{display:flex;gap:7px;flex-wrap:wrap}.workflow-hub a,.utility-groups a{padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel2);color:var(--text);font-size:10px}.workflow-hub a:hover,.utility-groups a:hover{border-color:var(--blue);color:var(--blue2)}.mapping-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0}.mapping-grid label{display:grid;gap:5px;font-size:10px;font-weight:800}.mapping-grid select{min-height:40px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--input);color:var(--text)}.diagnostic-steps{display:grid;gap:9px;margin:18px 0}.diagnostic-steps article{display:grid;grid-template-columns:32px 1fr;gap:11px;padding:13px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.diagnostic-steps article>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-weight:900}.diagnostic-steps strong{font-size:12px}.diagnostic-steps p{margin:3px 0 9px!important;color:var(--muted)!important;font-size:10px!important}.diagnostic-steps textarea{width:100%;margin-top:4px}.light .workflow-hub article,.light .utility-groups article{background:#fff}@media(max-width:700px){.workflow-hub,.utility-groups,.mapping-grid{grid-template-columns:1fr}}

/* Ergonomic refinement pass */
html{scroll-behavior:smooth;scroll-padding-top:82px}body{font-size:14px;line-height:1.55}.skip-link{position:fixed;z-index:10000;left:14px;top:10px;transform:translateY(-160%);padding:9px 13px;border:2px solid var(--blue2);border-radius:7px;background:var(--panel);color:var(--text);font-weight:800;transition:transform .15s}.skip-link:focus{transform:translateY(0)}:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(75,160,255,.8);outline-offset:3px}button,a,summary{-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.7)}
.topbar{min-height:64px;padding-block:8px;box-shadow:0 10px 28px rgba(0,0,0,.16)}.global-search{min-height:42px}.global-search input{font-size:12px}.search-clear{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:18px;cursor:pointer}.search-clear:hover{background:rgba(255,255,255,.07);color:var(--text)}.search-clear[hidden]{display:none}.sidebar{top:64px;height:calc(100vh - 64px);padding-top:14px}.side-link{min-height:41px;padding-block:9px;font-size:12px}.side-link span{font-size:13px}.section{scroll-margin-top:76px}.section-title{margin-bottom:20px}.section-title h2{line-height:1.2}.section-title p{font-size:11px;line-height:1.6}.hero{padding:32px 28px}.hero-copy>p{max-width:720px;font-size:14px;line-height:1.65}.hero-actions a,.hero-actions button{min-height:44px}.stats{row-gap:14px}
.common-tasks{padding-top:42px;padding-bottom:42px}.task-grid{gap:12px}.task-grid a{min-height:132px;padding:17px}.task-grid strong{font-size:14px;line-height:1.35}.task-grid small{font-size:11px;line-height:1.5}.tool-grid{gap:12px}.tool{min-height:205px;border-radius:10px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.tool:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.16)}.tool-link{padding:17px}.tool h3{font-size:14px;line-height:1.35}.tool p{font-size:11px;line-height:1.6}.fav-btn{width:38px;height:38px}.tag{min-height:22px;display:inline-flex;align-items:center}.view-controls button,.utility-toggle{min-width:38px;min-height:38px}.load-more-wrap .ghost-btn{min-height:42px}#favorites.compact{padding-top:42px;padding-bottom:42px}#noFav{margin:8px 0 0;padding:26px}.empty.small{min-height:0}
input,select,textarea{font-size:13px!important;line-height:1.45}input,select{min-height:43px}textarea{padding:12px!important;resize:vertical}.btn,.primary-btn,.copy-btn,.ghost-btn{min-height:42px}.tool-page{padding-bottom:56px}.tool-head>p{max-width:760px;font-size:13px!important;line-height:1.65!important}.workflow-hub,.utility-groups{gap:14px}.workflow-hub article,.utility-groups article{padding:22px}.workflow-hub a,.utility-groups a{min-height:38px;display:inline-flex;align-items:center;font-size:11px}.back-to-top{position:fixed;z-index:90;right:20px;bottom:20px;width:44px;height:44px;border:1px solid #356797;border-radius:50%;background:rgba(10,31,53,.94);color:#fff;font-size:19px;opacity:0;pointer-events:none;transform:translateY(8px);transition:.18s}.back-to-top.visible{opacity:1;pointer-events:auto;transform:none}.back-to-top:hover{background:var(--blue)}
@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-panel{display:none}.task-grid{grid-template-columns:repeat(2,1fr)}.topnav>a:not(.support){display:none}}@media(max-width:760px){html{scroll-padding-top:66px}.topbar{min-height:58px;padding-inline:12px}.brand small{display:none}.sidebar{top:58px;height:calc(100vh - 58px);width:min(86vw,310px);box-shadow:18px 0 40px rgba(0,0,0,.35)}body.menu-open{overflow:hidden}.layout main{width:100%}.hero{margin:12px;padding:24px 19px}.section,.split-section,.mini-section{padding-left:18px!important;padding-right:18px!important}.catalogue-controls{width:100%;align-items:stretch!important;flex-direction:row!important;justify-content:space-between}.tool-grid{grid-template-columns:1fr 1fr}.tool{min-height:190px}.back-to-top{right:14px;bottom:14px}}@media(max-width:520px){.global-search{order:3;flex-basis:100%;max-width:none}.topbar{flex-wrap:wrap}.layout{padding-top:108px}.sidebar{top:108px;height:calc(100vh - 108px)}.task-grid,.tool-grid{grid-template-columns:1fr}.task-grid a,.tool{min-height:0}.hero h1{font-size:38px}.stats{grid-template-columns:1fr 1fr}.output-actions{align-items:stretch;flex-direction:column}.output-actions button{width:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Downloadable deployment packs */
.download-main{max-width:1280px;margin:0 auto;padding:94px 28px 70px}.download-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:30px;align-items:center;padding:42px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,var(--panel),rgba(21,61,98,.72))}.download-hero h1{max-width:760px;margin:12px 0;font-size:44px;line-height:1.08}.download-hero h1 span{color:var(--blue2)}.download-hero p{max-width:760px;color:var(--muted);font-size:14px;line-height:1.7}.download-hero-actions{display:flex;gap:10px;margin-top:22px}.download-hero-actions a{display:inline-flex;align-items:center}.download-hero aside{display:flex;flex-direction:column;padding:25px;border:1px solid var(--line);border-radius:11px;background:rgba(4,15,27,.42)}.download-hero aside strong{color:var(--green);font-size:48px;line-height:1}.download-hero aside span{margin:5px 0 14px;font-weight:850}.download-hero aside small{color:var(--muted);line-height:1.55}.download-notice{display:grid;grid-template-columns:180px 1fr;gap:18px;margin:18px 0 30px;padding:16px 20px;border:1px solid rgba(245,187,75,.34);border-radius:9px;background:rgba(245,187,75,.06)}.download-notice strong{color:var(--gold)}.download-notice span{color:var(--muted);font-size:11px;line-height:1.6}.download-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:22px 0}.download-chips{display:flex;gap:7px;flex-wrap:wrap}.download-chips button,.download-controls select{min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font-weight:750;cursor:pointer}.download-chips button.active,.download-chips button:hover{border-color:var(--blue);background:rgba(39,134,255,.1);color:var(--blue2)}.download-controls label{display:grid;gap:5px;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}.download-result{color:var(--muted);font-size:11px}.download-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.download-card{display:flex;flex-direction:column;min-height:370px;padding:21px;border:1px solid var(--line);border-radius:11px;background:var(--panel);transition:.16s}.download-card:hover{transform:translateY(-3px);border-color:#3a72a9;box-shadow:0 14px 30px rgba(0,0,0,.16)}.download-card-top{display:flex;align-items:center;justify-content:space-between}.download-icon{display:grid;place-items:center;min-width:52px;height:36px;padding:0 8px;border-radius:6px;background:rgba(39,134,255,.12);color:var(--blue2);font-size:9px;font-weight:900}.download-risk{display:inline-flex;width:fit-content;padding:4px 7px;border:1px solid var(--line);border-radius:20px;font-size:8px;font-weight:850}.download-risk.safe{border-color:rgba(66,213,164,.35);color:var(--green)}.download-risk.change{border-color:rgba(245,187,75,.4);color:var(--gold)}.download-risk.danger{border-color:rgba(255,113,105,.4);color:#ff8b84}.download-card>small{margin-top:18px;color:var(--blue2);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.download-card h2{margin:7px 0;font-size:17px;line-height:1.3}.download-card p{min-height:66px;color:var(--muted);font-size:11px;line-height:1.55}.download-card dl{display:grid;gap:7px;margin:9px 0 18px}.download-card dl div{display:grid;grid-template-columns:62px 1fr;gap:5px}.download-card dt{color:var(--muted);font-size:9px}.download-card dd{margin:0;font-size:9px;line-height:1.45}.download-card .primary-btn{margin-top:auto;width:100%}.download-guide{margin-top:54px;padding:30px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.download-guide>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.download-guide article{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.download-guide b{display:grid;place-items:center;width:28px;height:28px;margin-bottom:12px;border-radius:50%;background:var(--blue);color:white}.download-guide strong{display:block;font-size:12px}.download-guide p{color:var(--muted);font-size:10px;line-height:1.55}.download-modal .modal-box{width:min(960px,94vw);max-height:90vh;overflow:auto}.pack-meta{display:flex;gap:10px;align-items:center;margin:14px 0 20px;color:var(--muted);font-size:10px}.pack-file-list{display:grid;gap:10px}.pack-file-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.pack-file-list article>div:first-child{display:grid;gap:3px}.pack-file-list small{color:var(--muted)}.pack-file-list article>div:nth-child(2){display:flex;gap:6px}.pack-file-list button{padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);font-size:9px;cursor:pointer}.pack-file-list button:hover{border-color:var(--blue);color:var(--blue2)}.pack-file-list pre{grid-column:1/-1;max-height:360px;width:100%;overflow:auto;margin:5px 0 0;padding:14px;border-radius:7px;background:#020a12;color:#c8e4ff;font-size:10px;white-space:pre}.pack-footer{display:grid;gap:5px;margin-top:18px;padding:13px;border:1px solid rgba(66,213,164,.25);border-radius:7px;background:rgba(66,213,164,.05)}.pack-footer strong{color:var(--green)}.pack-footer span{color:var(--muted);font-size:10px;line-height:1.55}.light .download-hero,.light .download-card,.light .download-guide,.light .download-controls select,.light .download-chips button{background:#fff}.light .download-hero aside{background:#f2f6fa}.light .pack-file-list pre{background:#07111f}
@media(max-width:950px){.download-grid{grid-template-columns:1fr 1fr}.download-guide>div{grid-template-columns:1fr 1fr}}@media(max-width:700px){.download-main{padding:120px 15px 50px}.download-hero{grid-template-columns:1fr;padding:25px 20px}.download-hero h1{font-size:34px}.download-hero aside{display:none}.download-controls{align-items:stretch;flex-direction:column}.download-grid{grid-template-columns:1fr}.download-notice{grid-template-columns:1fr}.pack-file-list article{align-items:stretch;flex-direction:column}.pack-file-list article>div:nth-child(2){flex-wrap:wrap}.download-guide>div{grid-template-columns:1fr}}

/* Shared navigation and maintenance dashboard */
.topnav a[aria-current="page"]{color:var(--blue2)}.admin-stats.content-stats{grid-template-columns:repeat(5,1fr)}.maintenance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.maintenance-card{display:flex;flex-direction:column;min-height:128px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--panel2)}.maintenance-card span{color:var(--blue2);font-size:9px;font-weight:900;letter-spacing:.07em}.maintenance-card strong{margin:7px 0;font-size:18px}.maintenance-card small{color:var(--muted);line-height:1.5}.maintenance-card a{margin-top:auto;color:var(--blue2);font-size:10px;font-weight:800}.maintenance-status{display:flex;gap:8px;align-items:center;margin-top:15px;color:var(--muted);font-size:10px}.maintenance-status.ready::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green)}@media(max-width:950px){.admin-stats.content-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.maintenance-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.admin-stats.content-stats,.maintenance-grid{grid-template-columns:1fr}}
