:root {
  --bg: #07101f;
  --panel: #0d192b;
  --panel-2: #111f35;
  --line: rgba(126, 158, 211, .18);
  --text: #e8f0ff;
  --muted: #8ea0bd;
  --blue: #5b8cff;
  --cyan: #36d9da;
  --green: #54dda2;
  --danger: #ff7585;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.grid-bg { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(circle at 76% 10%, rgba(83, 95, 255, .15), transparent 32%),
  radial-gradient(circle at 12% 58%, rgba(54, 217, 218, .08), transparent 28%),
  linear-gradient(rgba(47, 75, 115, .07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(47, 75, 115, .07) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}
.topbar { min-height: 72px; padding: 0 max(24px, calc((100vw - 1260px) / 2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 40px; background: rgba(7, 16, 31, .88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { color: white; font: 800 16px Orbitron, sans-serif; text-decoration: none; white-space: nowrap; }
.brand span, .eyebrow { color: var(--cyan); }
.topbar nav { flex: 1; display: flex; justify-content: center; gap: 7px; }
.topbar nav a { border-radius: 8px; padding: 9px 12px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.topbar nav a:hover, .topbar nav a.active { color: white; background: rgba(91, 140, 255, .12); }
.mobile-nav { display: none; }
.status { display: flex; align-items: center; gap: 8px; color: #9fb1ca; font: 700 9px Fira Code, monospace; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
main { width: min(1260px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font: 700 10px Fira Code, monospace; letter-spacing: .13em; }
.hub-hero { min-height: 470px; padding: 92px 0 68px; text-align: center; }
.hub-hero h1, .tool-hero h1, .not-found h1 { margin: 0; font: 800 clamp(40px, 5.8vw, 72px)/1.06 Orbitron, sans-serif; letter-spacing: -.055em; }
.hub-hero h1 span { color: transparent; background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.hub-hero > p:not(.eyebrow), .tool-hero > p:not(.eyebrow), .not-found p { max-width: 730px; margin: 22px auto; color: var(--muted); font-size: 16px; line-height: 1.7; }
.search { width: min(620px, 100%); margin: 34px auto 0; border: 1px solid rgba(91, 140, 255, .35); border-radius: 13px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: var(--cyan); background: rgba(13, 25, 43, .9); box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.search input { width: 100%; min-height: 54px; border: 0; outline: 0; color: white; background: transparent; }
.catalogue { padding: 18px 0 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2 { margin: 0; font: 700 clamp(25px, 3vw, 38px) Orbitron, sans-serif; letter-spacing: -.04em; }
.section-heading > span { color: var(--muted); font: 700 10px Fira Code, monospace; }
.filters { margin: 27px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; color: var(--muted); background: rgba(13,25,43,.74); font-size: 10px; font-weight: 700; }
.filters button.active, .filters button:hover { border-color: rgba(54,217,218,.5); color: white; background: rgba(54,217,218,.1); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { min-height: 290px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; color: inherit; background: linear-gradient(150deg, rgba(17,31,53,.96), rgba(9,19,34,.96)); text-decoration: none; }
.tool-card:hover { border-color: rgba(91,140,255,.5); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(0,0,0,.22); }
.tool-card[hidden] { display: none; }
.tool-icon { width: 44px; height: 44px; margin-bottom: 18px; border: 1px solid rgba(54,217,218,.25); border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(54,217,218,.07); }
.tool-card small, .related-grid small { color: #7588a8; font: 700 8px Fira Code, monospace; letter-spacing: .08em; text-transform: uppercase; }
.tool-card h2 { margin: 8px 0 10px; font: 700 17px Orbitron, sans-serif; line-height: 1.25; }
.tool-card p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tool-card strong { margin-top: auto; color: #86dfe1; font-size: 10px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px; color: var(--muted); text-align: center; }
.method-strip { margin-bottom: 72px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; background: rgba(13,25,43,.72); }
.method-strip strong, .method-strip span { display: block; }
.method-strip strong { font: 700 13px Orbitron, sans-serif; }
.method-strip span { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.breadcrumbs { padding-top: 32px; display: flex; flex-wrap: wrap; gap: 9px; color: #7486a3; font-size: 10px; }
.breadcrumbs a { color: #9cb1d0; text-decoration: none; }
.tool-hero { padding: 54px 0 42px; }
.tool-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.tool-hero > p:not(.eyebrow) { margin-left: 0; }
.tool-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; align-items: start; }
.calculator-panel, .result-panel { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: linear-gradient(150deg, rgba(17,31,53,.98), rgba(9,19,34,.98)); }
.result-panel { position: sticky; top: 90px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-head small { color: var(--cyan); font: 700 8px Fira Code, monospace; letter-spacing: .12em; }
.panel-head h2 { margin: 5px 0 0; font: 700 18px Orbitron, sans-serif; }
.panel-head > span { color: #6f82a0; font: 700 8px Fira Code, monospace; }
.local-badge { border-radius: 99px; padding: 6px 9px; color: var(--green) !important; background: rgba(84,221,162,.08); }
.fields { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.fields label { min-width: 0; color: #899bb8; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fields input, .fields select, .fields textarea { width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; outline: 0; color: white; background: rgba(3,10,20,.48); text-transform: none; resize: vertical; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,140,255,.1); }
.wide { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error { min-height: 16px; color: var(--danger); font-size: 10px; }
.calculate { min-height: 47px; border: 0; border-radius: 10px; color: #05111d; background: linear-gradient(135deg, #6e96ff, #43d4db); font-weight: 800; }
.primary-result { margin-top: 22px; border: 1px solid rgba(84,221,162,.2); border-radius: 13px; padding: 18px; background: rgba(84,221,162,.06); }
.primary-result span, .primary-result strong { display: block; }
.primary-result span { color: #7fa28f; font-size: 9px; text-transform: uppercase; }
.primary-result strong { margin-top: 7px; color: #b9f7d7; font: 700 clamp(24px,3vw,36px) Fira Code, monospace; overflow-wrap: anywhere; }
#resultDetails { margin: 12px 0 0; display: grid; gap: 1px; }
#resultDetails div { padding: 10px 3px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; }
#resultDetails dt { color: var(--muted); font-size: 10px; }
#resultDetails dd { margin: 0; color: #d9e6f7; font: 600 10px Fira Code, monospace; text-align: right; }
.result-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.result-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 9px 6px; color: #aebed5; background: rgba(255,255,255,.03); font-size: 9px; font-weight: 700; }
.result-actions button:hover { border-color: var(--blue); color: white; }
.ad-slot { height: 110px; margin: 22px 0; border: 1px dashed rgba(126,158,211,.16); border-radius: 12px; display: grid; place-items: center; color: #53647f; font: 700 8px Fira Code, monospace; background: rgba(13,25,43,.36); }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.content-grid article { border: 1px solid var(--line); border-radius: 15px; padding: 22px; background: rgba(13,25,43,.82); }
.content-grid h2 { margin: 0 0 13px; font: 700 18px Orbitron, sans-serif; }
.content-grid p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.formula { border-left: 3px solid var(--cyan); padding: 13px; color: #cceff3; background: rgba(54,217,218,.06); font: 600 11px Fira Code, monospace; line-height: 1.6; }
.review { color: #627590 !important; font: 9px Fira Code, monospace; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; color: #cdd9eb; font-size: 11px; font-weight: 700; }
.related { padding: 58px 0 72px; }
.related-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-grid a { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 7px; text-decoration: none; background: rgba(13,25,43,.75); }
.related-grid a:hover { border-color: rgba(54,217,218,.4); }
.related-grid strong { font: 700 13px Orbitron, sans-serif; }
.related-grid span { color: var(--cyan); font-size: 9px; }
.not-found { min-height: 70vh; padding-top: 120px; text-align: center; }
.primary-link { display: inline-block; border-radius: 9px; padding: 12px 16px; color: #06111d; background: var(--cyan); text-decoration: none; font-weight: 800; }
footer { min-height: 130px; padding: 30px max(24px, calc((100vw - 1260px) / 2)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 28px; color: #6f819c; background: #050c18; font-size: 10px; }
footer p { flex: 1; }
@media (max-width: 1050px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
}
@media (max-width: 760px) {
  .topbar { min-height: 62px; padding-inline: 14px; }
  .topbar nav, .status { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  main { width: min(100% - 28px, 1260px); }
  .hub-hero { padding-top: 65px; }
  .hub-hero h1, .tool-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .tool-grid, .method-strip, .content-grid, .related-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 230px; }
  .section-heading { align-items: start; flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
  .fields input, .fields select, .fields textarea { min-height: 48px; font-size: 16px; }
  .wide { grid-column: auto; }
  .result-actions { grid-template-columns: repeat(2, 1fr); }
  .result-actions button, .calculate { min-height: 48px; }
  .filters { margin-inline: -14px; padding-inline: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; min-height: 42px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 30; min-height: calc(62px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid rgba(126,158,211,.25); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(5,12,24,.96); backdrop-filter: blur(18px); }
  .mobile-nav a { min-height: 48px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7f91ad; text-decoration: none; font-size: 9px; font-weight: 700; }
  .mobile-nav a i { font-size: 15px; }
  .mobile-nav a.active { color: var(--cyan); background: rgba(54,217,218,.08); }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media print {
  .topbar, .result-actions, .ad-slot, footer, .related { display: none !important; }
  body { color: #111; background: white; }
  .grid-bg { display: none; }
  .calculator-panel, .result-panel, .content-grid article { border-color: #bbb; color: #111; background: white; }
  .tool-layout { grid-template-columns: 1fr 1fr; }
}

/* IT & Supply calculator directory - original light utility theme */
:root {
  --bg: #f4f6f2;
  --panel: #ffffff;
  --panel-2: #f8faf7;
  --line: #d9e1d9;
  --text: #1f2a24;
  --muted: #607067;
  --blue: #176b3a;
  --cyan: #23834b;
  --green: #176b3a;
  --danger: #b4232f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { color: var(--text); background: var(--bg); }
.grid-bg { display: none; }
.topbar {
  min-height: 66px;
  border-bottom: 4px solid #d8b341;
  background: #176b3a;
  box-shadow: 0 2px 10px rgba(22, 61, 39, .18);
  backdrop-filter: none;
}
.brand { font: 800 16px Inter, sans-serif; letter-spacing: -.02em; }
.brand span { color: #f3ce54; }
.topbar nav a { color: #dbeade; font-size: 13px; }
.topbar nav a:hover, .topbar nav a.active { color: #173b27; background: #fff; }
.status { color: #e3f0e6; font: 700 10px Inter, sans-serif; }
.status i { background: #f3ce54; box-shadow: none; }
main { width: min(1120px, calc(100% - 36px)); }
.eyebrow { color: #176b3a; font: 800 11px Inter, sans-serif; letter-spacing: .1em; }
.hub-hero {
  min-height: auto;
  padding: 54px 0 38px;
  text-align: left;
}
.hub-hero h1, .tool-hero h1, .not-found h1 {
  color: #173b27;
  font: 800 clamp(36px, 5vw, 58px)/1.05 "Source Serif 4", Georgia, serif;
  letter-spacing: -.035em;
}
.hub-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 22px;
  color: #56655c;
  font-size: 16px;
}
.search {
  width: min(720px, 100%);
  margin: 0;
  border: 2px solid #176b3a;
  border-radius: 7px;
  color: #176b3a;
  background: #fff;
  box-shadow: 0 5px 18px rgba(29, 74, 47, .1);
}
.search input { min-height: 52px; color: #1f2a24; font-size: 16px; }
.search kbd {
  min-width: 27px;
  border: 1px solid #ccd7ce;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 8px;
  color: #718078;
  background: #f3f6f3;
  font-size: 12px;
  text-align: center;
}
.popular-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px 14px; color: #67756c; font-size: 12px; }
.popular-links a { color: #176b3a; font-weight: 700; }
.catalogue { padding: 24px 0 64px; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.section-heading h2 { color: #223c2b; font: 800 clamp(25px, 3vw, 35px) "Source Serif 4", Georgia, serif; letter-spacing: -.02em; }
.section-heading > span { color: #627369; font: 700 11px Inter, sans-serif; }
.filters { margin: 17px 0 20px; gap: 7px; }
.filters button {
  border-color: #cfd9d1;
  border-radius: 6px;
  padding: 9px 13px;
  color: #435149;
  background: #fff;
  font-size: 11px;
}
.filters button.active, .filters button:hover { border-color: #176b3a; color: #fff; background: #176b3a; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.category-panel {
  overflow: hidden;
  border: 1px solid #d4ded6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 62, 39, .05);
}
.category-panel[hidden] { display: none; }
.category-panel h2 {
  margin: 0;
  border-bottom: 1px solid #d9e2da;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #173b27;
  background: #edf5ef;
  font: 800 17px "Source Serif 4", Georgia, serif;
}
.category-panel h2 span {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #176b3a;
  font-size: 12px;
}
.category-links { padding: 5px 0; }
.tool-card {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 9px 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #28513a;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}
.tool-card + .tool-card { border-top: 1px solid #edf1ed; }
.tool-card:hover { border-color: transparent; color: #0e5d30; background: #f3f8f4; transform: none; box-shadow: none; }
.tool-card i { color: #91a398; font-size: 9px; }
.method-strip {
  border-color: #d5dfd6;
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 62, 39, .04);
}
.method-strip strong { color: #23482f; font: 800 14px Inter, sans-serif; }
.method-strip span { color: #637168; font-size: 11px; }
.breadcrumbs { color: #738078; }
.breadcrumbs a { color: #176b3a; }
.tool-hero { padding: 42px 0 30px; }
.tool-hero > p:not(.eyebrow) { color: #5d6b62; }
.calculator-panel, .result-panel {
  border-color: #d3ded5;
  border-radius: 9px;
  color: #263329;
  background: #fff;
  box-shadow: 0 4px 15px rgba(28, 66, 42, .06);
}
.panel-head { border-bottom: 1px solid #e1e8e2; padding-bottom: 13px; }
.panel-head small { color: #176b3a; }
.panel-head h2 { color: #1d3827; font: 800 19px "Source Serif 4", Georgia, serif; }
.local-badge { color: #176b3a !important; background: #e9f4ec; }
.fields label { color: #46564b; font-size: 10px; }
.fields input, .fields select, .fields textarea {
  border-color: #cbd7ce;
  color: #18231c;
  background: #fbfcfb;
}
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: #176b3a; box-shadow: 0 0 0 3px rgba(23, 107, 58, .1); }
.calculate { color: #fff; background: #176b3a; }
.calculate:hover { background: #0f592d; }
.primary-result { border-color: #cce1d1; background: #edf7ef; }
.primary-result span { color: #50705b; }
.primary-result strong { color: #176b3a; font-family: Inter, sans-serif; }
#resultDetails div { border-color: #e5ebe6; }
#resultDetails dt { color: #68766d; }
#resultDetails dd { color: #263329; font-family: Inter, sans-serif; }
.result-actions button { border-color: #d2dbd4; color: #3e4e43; background: #f8faf8; }
.result-actions button:hover { border-color: #176b3a; color: #176b3a; }
.ad-slot { border-color: #d9dfda; color: #89948c; background: #f8faf8; }
.content-grid article { border-color: #d7e0d9; border-radius: 9px; background: #fff; }
.content-grid h2 { color: #213c2b; font: 800 20px "Source Serif 4", Georgia, serif; }
.content-grid p { color: #5f6d64; }
.formula { border-color: #176b3a; color: #244e32; background: #edf6ef; font-family: Inter, sans-serif; }
summary { color: #244430; }
.related-grid a { border-color: #d4ded6; background: #fff; }
.related-grid a:hover { border-color: #176b3a; }
.related-grid strong { color: #244430; font-family: Inter, sans-serif; }
.related-grid span { color: #176b3a; }
footer { border-color: #315f42; color: #ceddd2; background: #173b27; }
.empty { border-color: #bdc9bf; color: #68766d; background: #fff; }

@media (max-width: 760px) {
  .topbar { min-height: 60px; border-bottom-width: 3px; }
  .hub-hero { padding-top: 38px; }
  .hub-hero h1, .tool-hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .directory-grid { grid-template-columns: 1fr; }
  .mobile-nav { border-color: #d1dcd3; background: rgba(255, 255, 255, .97); }
  .mobile-nav a { color: #65736a; }
  .mobile-nav a.active { color: #176b3a; background: #eaf4ec; }
  .search kbd { display: none; }
  .tool-layout { gap: 12px; }
}

@media print {
  body { color: #111; background: #fff; }
}
