: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.wide-unit{grid-template-columns:minmax(0,1fr) 96px}.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(22px,2.6vw,40px);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  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:clamp(22px,6vw,32px);white-space:nowrap}.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)}.input-wrap.wide-unit{grid-template-columns:minmax(0,1fr) minmax(72px,96px)}
}.compare-table{width:100%;border-collapse:collapse;font-size:14px}.compare-table th,.compare-table td{border-bottom:1px solid var(--line);text-align:left;padding:8px 6px;vertical-align:top}.compare-table th{font-size:12px;letter-spacing:.04em;color:var(--muted)}.hint{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}/* 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){}

/* === 20261105-bw1: align VLAN calculator chrome to accepted Bandwidth standard === */
body.nel-tool-v3 #calculator > .tool-head,
body.nel-tool-v3 #calculator > .workspace,
body.nel-tool-v3 #calculator > .below{
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
body.nel-tool-v3 #calculator > .workspace{
  display: grid !important;
  grid-template-columns: minmax(0, 1.509fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel,
body.nel-tool-v3 #calculator > .workspace > .result-panel{
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 22px 22px 20px !important;
  box-sizing: border-box !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03) !important;
  overflow: hidden;
}
/* Kill legacy shell two-col so workspace owns the twin panels */
@media (min-width: 1101px){
  body.nel-tool-v3 #calculator.shell,
  body.nel-tool-v3 #calculator{
    display: grid !important;
  }
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .section-title,
body.nel-tool-v3 #calculator > .workspace > .result-panel > .section-title{
  margin: 0 0 14px !important;
  align-items: flex-start !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .section-title h2,
body.nel-tool-v3 #calculator > .workspace > .result-panel > .section-title h2,
body.nel-tool-v3 #calculator > .workspace h2.panel-h,
body.nel-tool-v3 #calculator > .workspace h2.ro-h{
  margin: 0 !important;
  padding: 0 !important;
  font: 600 15px/1.45 var(--sans, system-ui, sans-serif) !important;
  color: #0f172a !important;
}
/* Hide duplicate bare titles if any remain */
body.nel-tool-v3 #calculator > .workspace > .input-panel > h2.panel-h,
body.nel-tool-v3 #calculator > .workspace > .result-panel > h2.ro-h{
  display: none !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .form-grid.fields,
body.nel-tool-v3 #calculator > .workspace > .input-panel .form-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .form-grid > .field:last-child:nth-child(odd){
  grid-column: 1 / -1;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions{
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid #E8EEF7 !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions .btn,
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions button{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 12px !important;
  font-weight: 750 !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions .btn-primary,
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions button.primary,
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions #calculateBtn{
  background: #176ff2 !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions .btn-ghost,
body.nel-tool-v3 #calculator > .workspace > .input-panel .input-actions #resetBtn{
  background: #edf3f8 !important;
  color: #2b506f !important;
  border: 0 !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .formula-block{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 14px !important;
  min-height: 0;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7e2ec;
  background: #edf5fd;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card h3{
  margin: 0 0 8px;
  font: 700 13px/1.3 var(--sans, system-ui, sans-serif);
  color: #0f172a;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card code{
  display: block;
  white-space: pre-wrap;
  font: 500 12.5px/1.45 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color: #173f65;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-note{
  flex: 1 1 auto;
  margin-top: 10px !important;
  color: #475569;
  font: 500 12.5px/1.5 var(--sans, system-ui, sans-serif);
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-note p{ margin: 0 0 8px; }
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-note p:last-child{ margin-bottom: 0; }

/* Summary + metrics */
body.nel-tool-v3 #calculator .summary-card,
body.nel-tool-v3 #calculator .summary{
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 18px 20px !important;
  border-radius: 14px !important;
  background: #eff7ff !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
body.nel-tool-v3 #calculator .summary-card small.lbl,
body.nel-tool-v3 #calculator .summary-card small,
body.nel-tool-v3 #calculator .summary small{
  display: block !important;
  font-size: 13px !important;
  margin-bottom: 6px !important;
  color: #667d92 !important;
  font-weight: 500 !important;
}
body.nel-tool-v3 #calculator .summary-card strong.big,
body.nel-tool-v3 #calculator .summary-card strong,
body.nel-tool-v3 #calculator .summary strong,
body.nel-tool-v3 #calculator #headline{
  display: block !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  color: #E8590C !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}
body.nel-tool-v3 #calculator .readout .metrics,
body.nel-tool-v3 #calculator .metric-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border: 1px solid #d7e2ec !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.55) !important;
}
body.nel-tool-v3 #calculator .readout .metric,
body.nel-tool-v3 #calculator .metric{
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid #dde7ef !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
body.nel-tool-v3 #calculator .metric small{
  display: block !important;
  color: #667d92 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
body.nel-tool-v3 #calculator .metric strong,
body.nel-tool-v3 #calculator .metric strong span{
  display: block !important;
  margin-top: auto !important;
  color: #E8590C !important;
  font-weight: 500 !important;
  font: 500 18px/1.2 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: none !important;
}

/* Right fill + actions */
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-fill{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  min-height: 120px;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-fill > .result-fill-card{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7e2ec;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  box-sizing: border-box;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .result-fill-card h3{
  margin: 0;
  font: 700 14px/1.3 var(--sans, system-ui, sans-serif);
  color: #0F172A;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .result-fill-lead{
  margin: 0;
  font: 500 12.5px/1.45 var(--sans, system-ui, sans-serif);
  color: #5b6b7c;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-breakdown{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  min-width: 0;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg span{
  font: 500 11.5px/1.3 var(--sans, system-ui, sans-serif);
  color: #667d92;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg strong{
  color: #E8590C !important;
  font-weight: 500 !important;
  font: 500 15px/1.2 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-variant-numeric: tabular-nums;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg.payload{ border-top: 3px solid #176ff2; }
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg.overhead{ border-top: 3px solid #e8590c; }
body.nel-tool-v3 #calculator > .workspace > .result-panel .util-seg.headroom{ border-top: 3px solid #0d9488; }
body.nel-tool-v3 #calculator > .workspace > .result-panel .fill-tips{
  margin: auto 0 0;
  padding: 0 0 0 18px;
  color: #475569;
  font: 500 12.5px/1.5 var(--sans, system-ui, sans-serif);
}
body.nel-tool-v3 #calculator > .workspace > .result-panel .fill-tips li{ margin: 0 0 4px; }
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-actions,
body.nel-tool-v3 #calculator > .workspace > .result-panel > .ro-acts{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-actions button{
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #edf3f8;
  color: #2b506f;
  font-weight: 700;
  cursor: pointer;
}
body.nel-tool-v3 #calculator #engineeringDetails{
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 960px){
  body.nel-tool-v3 #calculator > .workspace{
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  body.nel-tool-v3 #calculator .metric strong{
    white-space: normal !important;
  }
}
@media (max-width: 720px){
  body.nel-tool-v3 #calculator > .workspace > .result-panel .util-breakdown{
    grid-template-columns: 1fr;
  }
  body.nel-tool-v3 #calculator > .workspace > .input-panel .form-grid.fields,
  body.nel-tool-v3 #calculator > .workspace > .input-panel .form-grid{
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* === 20261105-bw1b: stronger orange non-bold metrics + pin actions after details === */
body.nel-tool-v3 #calculator .readout .metric strong,
body.nel-tool-v3 #calculator .readout .metric strong span,
body.nel-tool-v3 #calculator .metrics .metric strong,
body.nel-tool-v3 #calculator .metrics .metric strong span,
body.nel-tool-v3 #calculator .metric-grid .metric strong,
body.nel-tool-v3 #calculator .metric-grid .metric strong span,
body.nel-tool-v3 #calculator .summary-card strong.big,
body.nel-tool-v3 #calculator .summary-card strong,
body.nel-tool-v3 #calculator .summary strong,
body.nel-tool-v3 #calculator #headline,
body.nel-tool-v3 #calculator .util-seg strong{
  color: #E8590C !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}
body.nel-tool-v3 #calculator .readout .metric strong,
body.nel-tool-v3 #calculator .metrics .metric strong,
body.nel-tool-v3 #calculator .metric-grid .metric strong{
  font: 500 18px/1.2 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  font-weight: 500 !important;
  color: #E8590C !important;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > #engineeringDetails{
  margin-top: 10px;
  width: 100%;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-actions{
  margin-top: auto !important;
  order: 99;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > #engineeringDetails{
  order: 50;
}
body.nel-tool-v3 #calculator > .workspace > .result-panel > .result-fill{
  order: 40;
  flex: 1 1 auto !important;
}

/* === 20261105-bw1c: VLAN below L|R from accepted Bandwidth (opb2 + opb3-toc); scoped tool-local === */
/* === 20261105-opb2: OPB below left-right (toc | prose) === */
/* Mirrors production OPB / local optical-power-budget fb-v3 below grid.
   Shared assets/css/fb-v3.css had a corrupted content:"-" string that
   poisoned CSSOM nesting so .below never became display:grid for nel-tool-v3. */
body.nel-tool-v3.v3 .below{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
  margin-top:28px;
  min-width:0;
  grid-column:1 / -1;
}
body.nel-tool-v3.v3 .below > .toc{
  display:none;
}
body.nel-tool-v3.v3 .below > .prose{
  min-width:0;
  max-width:none;
  position:relative;
  z-index:1;
  grid-column:1 / -1;
}
body.nel-tool-v3.v3 .below > .prose > *{min-width:0}
@media (min-width:961px){
  body.nel-tool-v3.v3 .below{
    grid-template-columns:minmax(180px,228px) minmax(0,1fr);
    gap:36px;
    margin-top:48px;
  }
  body.nel-tool-v3.v3 .below > .toc{
    display:block;
    position:sticky;
    top:90px;
    align-self:start;
    z-index:2;
    background:rgba(255,255,255,.72);
    border:1px solid var(--v3-border-soft, #E2E8F0);
    border-radius:14px;
    padding:14px 12px 16px;
    box-shadow:0 1px 0 rgba(15,23,42,.04);
  }
  body.nel-tool-v3.v3 .below > .toc h4{
    margin:0 0 12px;
    padding:0 8px;
    font:600 12px var(--sans) !important;
    letter-spacing:.08em !important;
    text-transform:uppercase;
    color:var(--v3-ink, #0F172A) !important;
    opacity:1;
  }
  body.nel-tool-v3.v3 .below > .toc a{
    display:block;
    margin:0;
    padding:8px 10px 8px 12px;
    border-left:3px solid transparent;
    border-radius:0 8px 8px 0;
    color:var(--v3-ink, #0F172A);
    font:700 15.5px/1.4 var(--sans);
    text-decoration:none;
  }
  body.nel-tool-v3.v3 .below > .toc a:hover{
    background:rgba(238,242,255,.7);
    color:var(--v3-ink, #0F172A);
  }
  body.nel-tool-v3.v3 .below > .toc a.on{
    border-left-color:var(--amber, #E8590C);
    background:rgba(255,247,237,.95);
    color:var(--v3-ink, #0F172A);
    font-weight:700;
  }
  body.nel-tool-v3.v3 .below > .prose{
    grid-column:auto;
  }
}
@media (min-width:1180px){
  body.nel-tool-v3.v3 .below{
    grid-template-columns:minmax(200px,240px) minmax(0,1fr);
    gap:40px;
  }
}
@media (min-width:961px){
  body.nel-tool-v3.v3 > main > .below{
    gap:18px;
    margin-top:16px;
  }
  body.nel-tool-v3.v3 .below > .toc{
    padding:10px 8px 12px;
  }
  body.nel-tool-v3.v3 .below > .toc h4{
    margin:0 0 6px;
    padding:0 8px;
    font:700 12px var(--sans) !important;
    letter-spacing:.08em !important;
    color:var(--v3-muted, #64748B) !important;
  }
  body.nel-tool-v3.v3 .below > .toc a{
    padding:7px 10px 7px 12px;
    color:var(--v3-ink, #0F172A);
    font:700 15.5px/1.4 var(--sans);
  }
  body.nel-tool-v3.v3 .below > .toc a:hover{
    color:var(--v3-ink, #0F172A);
    background:rgba(238,242,255,.7);
  }
  body.nel-tool-v3.v3 .below > .toc a.on{
    border-left-color:var(--amber, #E8590C);
    background:rgba(255,247,237,.95);
    color:var(--v3-ink, #0F172A);
    font-weight:700;
  }
}
@media (min-width:1180px){
  body.nel-tool-v3.v3 > main > .below{ gap:18px; }
}
@media (max-width:768px){
  body.nel-tool-v3.v3 .below{
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px;
    margin-top:20px;
  }
  body.nel-tool-v3.v3 .below > .toc{
    display:none !important;
  }
  body.nel-tool-v3.v3 .below > .prose{
    grid-column:1 / -1;
    width:100%;
    max-width:none;
  }
}

/* === 20261105-opb3: OPB light .eq formula surface (methodology + left Core calculation) === */
/* === 20261105-opb3-toc: left ON THIS PAGE links larger + bold; orange active rail kept === */
@media (min-width:961px){
  body.nel-tool-v3.v3 .below > .toc a{
    font:700 15.5px/1.4 var(--sans) !important;
    color:var(--v3-ink, #0F172A) !important;
  }
  body.nel-tool-v3.v3 .below > .toc a.on{
    border-left-color:var(--amber, #E8590C) !important;
    background:rgba(255,247,237,.95) !important;
    font-weight:700 !important;
  }
}


/* === 20261105-bw1d: light formula surface (Bandwidth/OPB); never black/graphite formula bottoms === */
body.nel-tool-v3 #calculator .formula,
body.nel-tool-v3 .prose .formula,
body.nel-tool-v3 .below .formula,
body.nel-tool-v3 .formula{
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%) !important;
  background-color: #F8FAFF !important;
  border: 1px solid #D6E4FF !important;
  border-left: 4px solid #176ff2 !important;
  border-radius: 12px !important;
  color: #0F172A !important;
  padding: 14px 16px !important;
  font: 500 13px/1.7 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  box-shadow: none !important;
}
body.nel-tool-v3 #calculator .formula .c,
body.nel-tool-v3 .prose .formula .c,
body.nel-tool-v3 .formula .c{
  color: #64748B !important;
}
body.nel-tool-v3 #calculator .formula .k,
body.nel-tool-v3 .prose .formula .k,
body.nel-tool-v3 .formula .k{
  color: #176ff2 !important;
}
body.nel-tool-v3 #calculator .formula .g,
body.nel-tool-v3 .prose .formula .g,
body.nel-tool-v3 .formula .g{
  color: #0d9488 !important;
}
/* Left Core calculation card: same light Bandwidth surface */
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card,
body.nel-tool-v3 #calculator .formula-card{
  margin-top: 0 !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  border: 1px solid #D6E4FF !important;
  border-left: 4px solid #176ff2 !important;
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%) !important;
  background-color: #F8FAFF !important;
  color: #0F172A !important;
  box-shadow: none !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card h3,
body.nel-tool-v3 #calculator .formula-card h3{
  margin: 0 0 10px !important;
  color: #13233e !important;
  font: 800 14px/1.3 var(--sans, system-ui, sans-serif) !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel .formula-card code,
body.nel-tool-v3 #calculator .formula-card code{
  display: block !important;
  white-space: normal !important;
  background: transparent !important;
  color: #0f172a !important;
  font: 500 13px/1.7 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
}


/* === 20261105-bw1e: ensure Calculate/Reset receive clicks (z-index + pointer-events) === */
body.nel-tool-v3 #calculator > .workspace > .input-panel{
  position: relative !important;
  isolation: isolate;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .input-actions{
  position: relative !important;
  z-index: 6 !important;
  pointer-events: auto !important;
  flex: 0 0 auto !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .input-actions .btn,
body.nel-tool-v3 #calculator > .workspace > .input-panel > .input-actions button,
body.nel-tool-v3 #calculator #calculateBtn,
body.nel-tool-v3 #calculator #resetBtn{
  position: relative !important;
  z-index: 7 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .formula-block{
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  /* do not paint over the action bar */
  margin-top: 14px !important;
  transform: none !important;
}
body.nel-tool-v3 #calculator > .workspace > .input-panel > .form-grid,
body.nel-tool-v3 #calculator > .workspace > .input-panel > .error{
  position: relative !important;
  z-index: 2 !important;
}



/* === 20261106-bw1: Bandwidth fix9 metrics + orange non-bold === */
b3d: fix9 metrics clarity (2-col stacked label/value) === */
/* Adapted from switch-uplink-oversubscription-calculator fix9.
   Bandwidth uses .metric-grid/.metric (not .readout .metrics). */
body.nel-tool-v3 #calculator .metric-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  column-gap:10px !important;
  row-gap:10px !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  margin:12px 0 0 !important;
  padding:12px !important;
  min-width:0 !important;
  align-items:stretch !important;
  justify-items:stretch !important;
  box-sizing:border-box !important;
  border:1px solid #d7e2ec !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.55) !important;
}
body.nel-tool-v3 #calculator .metric{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:space-between !important;
  gap:8px !important;
  min-width:0 !important;
  width:100% !important;
  min-height:76px !important;
  height:100% !important;
  margin:0 !important;
  padding:12px 14px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  background:#fff !important;
  border:1px solid #dde7ef !important;
  border-radius:12px !important;
}
body.nel-tool-v3 #calculator .metric small{
  display:block !important;
  flex:0 0 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--muted,#667d92) !important;
  font-size:13px !important;
  font-weight:500 !important;
  letter-spacing:0 !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:keep-all !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
}
body.nel-tool-v3 #calculator .metric strong{
  display:block !important;
  flex:0 0 auto !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  margin-top:auto !important;
  padding:0 !important;
  color:#173f65 !important;
  font:700 18px/1.25 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  text-align:left !important;
  white-space:normal !important;
  word-break:keep-all !important;
  overflow-wrap:break-word !important;
  font-variant-numeric:tabular-nums !important;
  font-feature-settings:"tnum" 1 !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body.nel-tool-v3 #calculator .metric strong span{
  white-space:normal !important;
}
@media (max-width:520px){
  body.nel-tool-v3 #calculator .metric-grid{
    grid-template-columns:minmax(0,1fr) !important;
    padding:10px !important;
  }
  body.nel-tool-v3 #calculator .metric{
    min-height:72px !important;
  }
}


body.nel-tool-v3 #calculator .metric strong,
body.nel-tool-v3 #calculator .metric strong span,
body.nel-tool-v3 #calculator .metric-card strong,
body.nel-tool-v3 #calculator .summary-card strong.big,
body.nel-tool-v3 #calculator .summary-card .big,
body.nel-tool-v3 #calculator .ro-main .big,
body.nel-tool-v3 #calculator .summary-card strong,
body.nel-tool-v3 #calculator #perHop,
body.nel-tool-v3 #calculator #totalDelay,
body.nel-tool-v3 #calculator .util-seg strong{
  color: #E8590C !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}
body.nel-tool-v3 #calculator .metric small,
body.nel-tool-v3 #calculator .metric-card small{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
body.nel-tool-v3 .eq,
body.nel-tool-v3 .formula,
body.nel-tool-v3 .formula-card{
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%) !important;
  background-color: #F8FAFF !important;
  color: #0F172A !important;
}

/* === 20261106-esd1: methodology stacked wide horizontal bars (NOT 3/4-col cards) === */
/* Real DOM: details#methodology .method-grid > article > h3 + (ol|p) inside prose */
body.nel-tool-v3 #methodology .method-grid,
body.nel-tool-v3 details#methodology .method-grid,
body.nel-tool-v3 .prose #methodology .method-grid,
body.nel-tool-v3 .prose .methodology .method-grid,
body.nel-tool-v3 .prose .method-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 12px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.nel-tool-v3 #methodology .method-grid > article,
body.nel-tool-v3 details#methodology .method-grid > article,
body.nel-tool-v3 .prose #methodology .method-grid > article,
body.nel-tool-v3 .prose .methodology .method-grid > article,
body.nel-tool-v3 .prose .method-grid > article{
  display: grid !important;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) !important;
  gap: 10px 18px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.nel-tool-v3 #methodology .method-grid > article > h3,
body.nel-tool-v3 details#methodology .method-grid > article > h3,
body.nel-tool-v3 .prose .method-grid > article > h3{
  margin: 0 !important;
  padding: 0 !important;
  color: #13233e !important;
  font: 700 15px/1.35 var(--sans, system-ui, sans-serif) !important;
  white-space: normal !important;
}
body.nel-tool-v3 #methodology .method-grid > article > p,
body.nel-tool-v3 #methodology .method-grid > article > ol,
body.nel-tool-v3 #methodology .method-grid > article > ul,
body.nel-tool-v3 details#methodology .method-grid > article > p,
body.nel-tool-v3 details#methodology .method-grid > article > ol,
body.nel-tool-v3 details#methodology .method-grid > article > ul,
body.nel-tool-v3 .prose .method-grid > article > p,
body.nel-tool-v3 .prose .method-grid > article > ol,
body.nel-tool-v3 .prose .method-grid > article > ul{
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  color: #49627e !important;
  font: 400 14px/1.65 var(--sans, system-ui, sans-serif) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
body.nel-tool-v3 #methodology .method-grid > article > ol,
body.nel-tool-v3 details#methodology .method-grid > article > ol,
body.nel-tool-v3 .prose .method-grid > article > ol{
  padding-left: 1.25em !important;
}
body.nel-tool-v3 #methodology .method-grid > article > ol > li,
body.nel-tool-v3 details#methodology .method-grid > article > ol > li,
body.nel-tool-v3 .prose .method-grid > article > ol > li{
  margin: 0 0 0.35em !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal !important;
}
body.nel-tool-v3 #methodology .method-grid > article > ol > li:last-child,
body.nel-tool-v3 .prose .method-grid > article > ol > li:last-child{
  margin-bottom: 0 !important;
}
/* keep example box full-width under the bars */
body.nel-tool-v3 #methodology .example-box,
body.nel-tool-v3 details#methodology .example-box,
body.nel-tool-v3 .prose .methodology .example-box{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 0 !important;
}
@media (max-width: 720px){
  body.nel-tool-v3 #methodology .method-grid > article,
  body.nel-tool-v3 details#methodology .method-grid > article,
  body.nel-tool-v3 .prose .method-grid > article{
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
