:root{
  --primary:#176ff2;
  --primary-dark:#0e54c7;
  --cyan:#13b9d8;
  --navy:#0b254e;
  --text:#12233f;
  --muted:#61718b;
  --line:#d9e4f3;
  --soft:#f4f8fd;
  --panel:#ffffff;
  --green:#139847;
  --green-bg:#e9f8ee;
  --amber:#c77900;
  --amber-bg:#fff4dd;
  --red:#d73b3e;
  --red-bg:#ffeded;
  --shadow:0 18px 45px rgba(18,57,105,.10);
}*{box-sizing:border-box}button, input, select{font:inherit}button, a{transition:.2s ease}button{cursor:pointer}.action-icon{
  width:18px!important;height:18px!important;max-width:18px!important;
  flex:0 0 18px;
  display:inline-block;vertical-align:middle;
  stroke:currentColor!important;fill:none!important;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}.header-actions{display:flex;align-items:center;gap:14px}.calculator-shell{
  display:grid;
  grid-template-columns:minmax(400px,.82fr) minmax(620px,1.45fr);
  align-items:start;
  gap:22px;
  padding:24px 4vw 34px;
  max-width:var(--nel-content-max, 1400px);
  margin:auto;
}.section-title{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:22px;
}.section-icon{
  width:48px;height:48px;border-radius:15px;
  display:grid;place-items:center;
  background:#eaf3ff;color:var(--primary);
  font-size:22px;font-weight:900;
  flex:0 0 auto;
}.section-title h2{margin:1px 0 3px;font-size:26px}.section-title p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.preset-row{
  display:grid;
  grid-template-columns:170px 1fr;
  align-items:center;
  gap:16px;
  padding:15px 16px;
  background:#f5f9ff;
  border:1px solid #dce9f8;
  border-radius:14px;
  margin-bottom:18px;
}.preset-row label{font-weight:800}.preset-row select{
  min-width:0;
  border:1px solid #c9d9ec;
  border-radius:10px;
  padding:11px;
  background:#fff;
}.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 18px;
}.field label{
  display:block;
  margin-bottom:7px;
  font-weight:760;
  font-size:14px;
}.input-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px;
  align-items:center;
  border:1px solid #cbd9eb;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}.input-wrap.no-unit{grid-template-columns:1fr}.input-wrap input, .input-wrap select{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  padding:13px 14px;
  background:#fff;
  color:var(--text);
  font-weight:700;
}.input-wrap span{
  height:100%;
  display:flex;align-items:center;justify-content:center;
  background:#f6f9fd;
  color:#5f718b;
  border-left:1px solid #d7e2f0;
  font-size:13px;
  font-weight:700;
}.input-wrap:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(23,111,242,.10);
}.input-actions{
  display:grid;
  grid-template-columns:1.25fr .9fr;
  gap:14px;
  padding-top:22px;
  margin-top:22px;
  border-top:1px solid var(--line);
}.input-actions button{
  min-height:54px;
  border-radius:13px;
  font-weight:850;
  font-size:16px;
  display:flex;align-items:center;justify-content:center;gap:9px;
}.primary-action{border:0;background:var(--primary);color:#fff}.primary-action:hover{background:var(--primary-dark)}.secondary-action{background:#fff;border:1px solid #cbd9eb;color:#344862}.secondary-action:hover{background:#f5f8fc}.validation-message{margin:12px 0 0;color:var(--red);font-size:14px;min-height:20px}.summary-card{
  min-height:164px;
  padding:27px 30px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px solid #bdd8ff;
  background:linear-gradient(135deg,#edf6ff,#f8fbff);
}.summary-card p{margin:0 0 6px;font-weight:850}.summary-card strong{
  color:var(--primary);
  font-size:clamp(54px,6vw,84px);
  line-height:1;
  letter-spacing:-.05em;
}.summary-card strong small{font-size:25px;margin-left:8px;letter-spacing:0}.health-badge{
  min-width:150px;
  text-align:center;
  border-radius:999px;
  padding:14px 20px;
  font-weight:900;
}.summary-card.healthy .health-badge{color:var(--green);background:var(--green-bg);border:1px solid #83d8a1}.summary-card.warning{background:linear-gradient(135deg,#fff8ea,#fffdf8);border-color:#f0c779}.summary-card.warning .health-badge{color:var(--amber);background:var(--amber-bg);border:1px solid #f1c977}.summary-card.failed{background:linear-gradient(135deg,#fff0f0,#fffafa);border-color:#f1abab}.summary-card.failed .health-badge{color:var(--red);background:var(--red-bg);border:1px solid #f1aaaa}.metric-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:15px 0 10px;
}.metric-card{
  border:1px solid var(--line);
  border-radius:15px;
  padding:16px;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}.metric-card small{display:block;color:var(--muted);margin-bottom:5px}.metric-card strong{font-size:20px;white-space:nowrap}.metric-icon{
  width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;
  flex:0 0 auto;font-size:20px;font-weight:900;
}.metric-icon.blue{background:#eef5ff;color:#176ff2;border:1px solid #96bfff}.metric-icon.cyan{background:#ecfbfd;color:#04a5bc;border:1px solid #83dae6}.metric-icon.violet{background:#f4f0ff;color:#7b61ff;border:1px solid #c3b5ff}.metric-icon.gray{background:#f5f7fa;color:#708098;border:1px solid #d7e0ec}.link-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:19px 8px 12px;
  overflow-x:auto;
}.endpoint, .event-node{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  color:#53657e;
  font-size:12px;
}.endpoint span{
  width:62px;height:62px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff;
  font-size:25px;
  background:linear-gradient(145deg,#16c2dd,#1473ef);
  box-shadow:0 9px 22px rgba(20,115,239,.25);
}.event-node span{
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  color:#5276a8;background:#f2f7fd;
  border:1px solid #acc8ed;font-size:19px;
}.line-segment{
  width:min(8vw,120px);min-width:42px;height:3px;
  background:linear-gradient(90deg,#14b9d8,#1975ef);
  position:relative;
}.line-segment::after{
  content:"";
  position:absolute;inset:-3px 0 auto;height:1px;
  border-top:1px dashed rgba(255,255,255,.9);
}.budget-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  margin-top:5px;
}.budget-row div{
  padding:18px 22px;
  display:flex;justify-content:space-between;gap:15px;
}.budget-row div+div{border-left:1px solid var(--line)}.budget-row span{color:#52657f}.budget-row strong{font-size:22px}#budgetRemainingText.positive{color:var(--green)}#budgetRemainingText.caution{color:var(--amber)}#budgetRemainingText.negative{color:var(--red)}.power-row{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0;
}.power-row article{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 19px;
  background:#fbfdff;
}.power-row span{display:block;color:var(--muted);margin-bottom:6px}.power-row strong{font-size:22px;color:#0b4f9c}.diagnosis-box{
  padding:15px 18px;border-radius:12px;margin-top:12px;
  border:1px solid transparent;
}.diagnosis-box strong{display:block;margin-bottom:5px}.diagnosis-box p{margin:0;line-height:1.65}.diagnosis-box.healthy{background:var(--green-bg);border-color:#bee8cc;color:#126f36}.diagnosis-box.warning{background:var(--amber-bg);border-color:#f2d89e;color:#8b5700}.diagnosis-box.failed{background:var(--red-bg);border-color:#f2bbbb;color:#aa292c}.result-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}.result-actions button{
  min-height:48px;border-radius:11px;
  border:1px solid #c9daee;background:#fff;color:#1760cc;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;gap:8px;
}.result-actions button:hover{background:#f2f7ff;border-color:#8db8ef}.section-heading{
  display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px;
}.section-heading h2{margin:0;font-size:30px}.text-button{border:0;background:transparent;color:var(--primary);font-weight:800}.history-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}.history-empty{
  grid-column:1/-1;
  padding:25px;
  border:1px dashed #b8cae1;
  border-radius:14px;
  text-align:center;
  color:var(--muted);
}.history-item{
  background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;
  box-shadow:0 8px 24px rgba(35,76,127,.06);
}.history-item h3{margin:0 0 7px;font-size:17px}.history-item p{margin:4px 0;color:var(--muted);font-size:14px}.history-item strong{color:var(--primary)}.methodology{
  background:#fff;
  max-width:none;
  margin-bottom:0;
  padding:45px 5vw;
}.method-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
}.method-grid article{
  padding:20px;border-radius:15px;background:#f7faff;border:1px solid #deebf8;
}.method-grid h3{margin:0 0 9px;font-size:17px}.method-grid p{margin:0;color:var(--muted);line-height:1.65}.engineering-note{
  margin-top:18px;padding:18px;border-radius:13px;background:#fff9e7;border:1px solid #f0dda1;
}.engineering-note strong{display:block;margin-bottom:5px}.engineering-note p{margin:0;color:#735b12;line-height:1.6}


@media (max-width:1250px){.calculator-shell{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.history-list{grid-template-columns:1fr 1fr}.method-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:760px){.header-actions{gap:5px}.calculator-shell{padding:15px}.form-grid{grid-template-columns:1fr}.preset-row{grid-template-columns:1fr}.input-actions{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}.summary-card{display:block;padding:22px}.summary-card strong{font-size:54px}.health-badge{margin-top:18px;display:inline-block}.budget-row, .power-row{grid-template-columns:1fr}.budget-row div+div{border-left:0;border-top:1px solid var(--line)}.result-actions{grid-template-columns:1fr}.history-list, .method-grid{grid-template-columns:1fr}.link-visual{justify-content:flex-start}
  
}

@media print{.calculator-shell{display:block;padding:0}
}/* SEO / accessibility / monetization enhancements */
.skip-link{
  position:fixed;left:16px;top:-80px;z-index:9999;
  padding:11px 16px;border-radius:10px;background:#fff;color:#0b55c5;
  box-shadow:0 8px 22px rgba(0,0,0,.2);font-weight:800;
}.skip-link:focus{top:14px}.noscript{padding:12px 5vw;background:#fff3cd;color:#664d03;text-align:center}a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible{
  outline:3px solid #ffbf47;outline-offset:3px;
}.ad-slot{
  max-width: var(--nel-ad-max, 1200px);min-height:120px;margin:10px auto 34px;padding:10px 14px;
  border:1px solid #e0e8f2;border-radius:13px;background:#fff;
}.ad-slot[hidden]{display:none!important}.ad-label{text-align:center;color:#7b8798;font-size:11px;letter-spacing:.08em;margin-bottom:7px}.ad-body{min-height:90px;display:grid;place-items:center;overflow:hidden}.faq-section{content-visibility:auto;contain-intrinsic-size:800px}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.faq-grid details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 19px}.faq-grid summary{cursor:pointer;font-weight:800;line-height:1.5}.faq-grid p{color:var(--muted);line-height:1.7;margin:13px 0 0}.methodology{content-visibility:auto;contain-intrinsic-size:650px}
@media (max-width:760px){.faq-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*, *::before, *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}/* V1.8.0 Hotfix 04: keep long localized form content inside narrow viewports. */
.calculator-shell, .form-grid, .field, .preset-row, .input-wrap, .section-title, .section-title>div{min-width:0;max-width:100%}.field input, .field select, .preset-row select{width:100%;max-width:100%}
@media (max-width:760px){.calculator-shell{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)}.section-title>div{flex:1 1 auto}.section-title h2, .section-title p, .field label{overflow-wrap:anywhere}.input-wrap, .input-wrap.no-unit{width:100%;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) minmax(0,78px)}.input-wrap.no-unit{grid-template-columns:minmax(0,1fr)}
}/* V1.9.5-01: render content sections immediately to prevent blank placeholders. */
.faq-section, .methodology{content-visibility:visible;contain-intrinsic-size:none}

/* V1.9.5-02: keep the desktop calculator columns visually balanced. */
@media (min-width:761px){.calculator-shell{align-items:stretch}
}
/* V1.9.5-05: unified vertical calculator layout */

/* V1.9.9-01: keep the full site navigation visible on desktop. */
@media (min-width: 1101px){}
