:root {
    --net-bg: #f3f6fb;
    --net-panel: #fff;
    --net-ink: #14243d;
    --net-muted: #52647d;
    --net-line: #dbe3ef;
    --net-accent: #245bd6;
    --net-soft: #edf3ff;
}
[data-bs-theme="dark"] {
    --net-bg: #0c1423;
    --net-panel: #141f32;
    --net-ink: #eef3fc;
    --net-muted: #afbed4;
    --net-line: #31405a;
    --net-accent: #8fb3ff;
    --net-soft: #1d304f;
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { background: var(--net-bg); color: var(--net-ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: var(--net-accent); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--net-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { max-width: 1180px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem; background: var(--net-panel); }
.skip-link:focus { top: .5rem; }
.net-header { background: var(--net-panel); border-bottom: 1px solid var(--net-line); }
.net-header-inner, .net-controls, .net-brand { display: flex; align-items: center; }
.net-header-inner { justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; }
.net-brand { gap: .65rem; color: var(--net-ink); font-size: 1.125rem; font-weight: 800; text-decoration: none; line-height: 1.3; }
.net-brand small { display: block; font-size: .875rem; color: var(--net-muted); font-weight: 500; }
.net-controls { gap: .75rem; flex-wrap: wrap; }
.net-controls .btn { font-size: .875rem; }
.standard-toggle { display: flex; gap: .25rem; padding: .25rem; margin: 0; border-radius: .75rem; border: 1px solid var(--net-line); background: var(--net-bg); }
.standard-toggle button { border: 0; background: transparent; color: var(--net-muted); padding: .4rem .65rem; border-radius: .5rem; font-size: .875rem; font-weight: 650; }
.standard-toggle button[aria-pressed="true"] { background: var(--net-panel); color: var(--net-accent); box-shadow: 0 1px 4px #0001; }
.net-main { padding-top: 1.5rem; padding-bottom: 1rem; }
.net-breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--net-muted); font-size: .875rem; }
.net-intro { max-width: 880px; padding: 2rem 0 1.75rem; }
.net-eyebrow { margin-bottom: .5rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: var(--net-accent); }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.net-intro > p:not(.net-eyebrow) { color: var(--net-muted); font-size: 1.0625rem; max-width: 760px; margin-top: 1rem; }
.guide-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; }
.net-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: .35rem; border: 1px solid var(--net-line); border-radius: 1rem; background: var(--net-panel); gap: .35rem; }
.net-tabs button { border: 0; padding: .9rem .5rem; border-radius: .7rem; background: transparent; color: var(--net-muted); font-weight: 700; }
.net-tabs button[aria-selected="true"] { background: var(--net-accent); color: var(--net-panel); }
[data-bs-theme="dark"] .net-tabs button[aria-selected="true"] { color: #10213c; }
.standard-note { font-size: .875rem; margin: .85rem .2rem 1.5rem; color: var(--net-muted); }
.net-panel { background: var(--net-panel); border: 1px solid var(--net-line); border-radius: 1.15rem; padding: 1.5rem; }
.net-panel h2 { font-size: 1.05rem; font-weight: 750; line-height: 1.4; margin-bottom: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.form-label { font-size: .9375rem; font-weight: 650; }
.input-group .form-select { flex: 0 0 6rem; }
.form-control, .form-select { font-size: 1rem; padding-top: .75rem; padding-bottom: .75rem; border-color: var(--net-line); background-color: var(--net-bg); color: var(--net-ink); }
.form-control { font-variant-numeric: tabular-nums; }
.form-control:focus, .form-select:focus { background-color: var(--net-panel); color: var(--net-ink); }
.form-control[aria-invalid="true"] { border-color: #bd3549; }
.duration-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.duration-inputs label { display: block; font-size: .875rem; color: var(--net-muted); margin-bottom: .4rem; }
.input-error { margin: 1rem 0 0; color: #b2243a; font-size: .9375rem; }
[data-bs-theme="dark"] .input-error { color: #ffacb8; }
.preset-panel { margin-top: 1.5rem; }
.net-muted { color: var(--net-muted); font-size: .875rem; }
.preset-panel .net-muted { margin: .4rem 0 1rem; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.preset-grid button { text-align: left; border: 1px solid var(--net-line); border-radius: .7rem; background: var(--net-bg); color: var(--net-ink); padding: .8rem; font-size: .875rem; line-height: 1.5; }
.preset-grid button:hover { border-color: var(--net-accent); background: var(--net-soft); }
.preset-grid strong, .preset-grid span { display: block; }
.preset-grid span { color: var(--net-muted); margin-top: .25rem; }
.result-panel { border: 1px solid #263c60; border-radius: 1.15rem; padding: 1.75rem; color: #fff; background: radial-gradient(ellipse at top right, #264b81 0, #13233d 65%); }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.result-heading > p { text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; font-weight: 650; color: #b1cdff; }
.result-heading .btn { flex-shrink: 0; font-size: .875rem; }
.result-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-top: .3rem; line-height: 1.25; }
#hero-value { font-size: clamp(2rem, 4.3vw, 3.15rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#hero-unit { font-size: 1.25rem; color: #b1cdff; font-weight: 650; }
#hero-subtext { color: #cad7e9; font-size: .9375rem; margin: 1rem 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid #ffffff26; }
.metric { background: #ffffff0a; border: 1px solid #ffffff1f; border-radius: .7rem; padding: .8rem; }
.metric-label { display: block; font-size: .875rem; color: #cad7e9; }
.metric-value { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-unit { font-size: .875rem; color: #b1cdff; margin-left: .3rem; }
.gauge-panel { margin-top: 1.5rem; }
.tier-badge { font-size: .875rem; border-radius: 2rem; padding: .35rem .65rem; color: var(--net-accent); background: var(--net-soft); text-align: center; }
.gauge { position: relative; margin: 1.7rem 0 .6rem; }
.gauge-track { display: flex; height: .75rem; gap: .2rem; border-radius: 1rem; overflow: hidden; }
.gauge-track span { flex: 1; background: #d4a133; }
.gauge-track span:nth-child(2) { background: #13a285; }
.gauge-track span:nth-child(3) { background: #3978e8; }
.gauge-track span:nth-child(4) { background: #7361e9; }
#gauge-marker { position: absolute; top: -.3rem; left: 2%; width: 1.3rem; height: 1.3rem; border: .25rem solid var(--net-ink); background: var(--net-panel); border-radius: 100%; transform: translateX(-50%); transition: left .25s; }
.gauge-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem; font-size: .875rem; color: var(--net-muted); }
#gauge-description { margin: .9rem 0 1rem; }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.context-card { padding: .9rem; background: var(--net-bg); border-radius: .75rem; font-size: .875rem; }
.context-card strong { display: block; margin-bottom: .3rem; }
.context-card p { margin: 0; color: var(--net-muted); }
.estimate-note { font-size: .875rem; color: var(--net-muted); margin: 1rem .3rem 0; }
.internet-guide { margin-top: 3rem; }
.guide-section { margin: 1.5rem 0; padding: 2rem; }
.guide-section h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); letter-spacing: -.025em; margin-bottom: 1rem; }
.guide-section h3 { font-size: 1.125rem; font-weight: 700; margin-top: .75rem; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section li { padding-left: .25rem; margin-bottom: .85rem; }
.guide-section .table { --bs-table-bg: var(--net-panel); --bs-table-color: var(--net-ink); --bs-table-border-color: var(--net-line); min-width: 580px; }
.guide-section caption { color: var(--net-muted); font-size: .875rem; }
details { padding: 1rem 0; border-bottom: 1px solid var(--net-line); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 650; }
details p { margin-top: .75rem; color: var(--net-muted); }
.net-footer { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 2rem; font-size: .875rem; color: var(--net-muted); }
.net-footer a:first-child { font-weight: 750; }
.copy-status { position: fixed; right: 1rem; bottom: 1rem; left: auto; max-width: calc(100% - 2rem); padding: 1rem 1.25rem; background: var(--net-ink); color: var(--net-panel); border-radius: .75rem; box-shadow: 0 6px 24px #0002; z-index: 10; }
@media (min-width: 1200px) { .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .net-header-inner { flex-wrap: wrap; }
    .net-controls { width: 100%; justify-content: space-between; }
    .net-tabs button { font-size: .875rem; }
    .net-panel, .result-panel { padding: 1.2rem; }
    .net-intro { padding-top: 1.5rem; }
    .guide-section { padding: 1.25rem; }
    .context-grid { grid-template-columns: 1fr; }
    .result-heading { flex-wrap: wrap; }
    .duration-inputs { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #gauge-marker { transition: none; } }
