/* Scoped under .fit by tools/internet-tools/import.py - edit the 4Internet source, then re-import. */
.fit {
    color-scheme: light dark;
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-alt: #f5f7fa;
    --text: #17202b;
    --muted: #596779;
    --line: #ccd5df;
    --brand: #1165d8;
    --brand-strong: #074da9;
    --success: #087443;
    --warning: #a34f00;
    --danger: #ad2430;
    --focus: #ffb000;
    --shadow: 0 14px 34px rgba(17, 30, 50, 0.09);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-fs-theme="dark"] .fit {
    --bg: #0b1119;
    --surface: #121b26;
    --surface-alt: #172332;
    --text: #f0f5fb;
    --muted: #a8b7c8;
    --line: #314155;
    --brand: #65a6ff;
    --brand-strong: #9ac5ff;
    --success: #5dd69d;
    --warning: #ffb763;
    --danger: #ff8790;
    --focus: #ffd15c;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}



.fit, .fit * { box-sizing: border-box; }
.fit [hidden] { display: none !important; }
.fit .metric-bars { display: grid; gap: 1rem; }
.fit .metric-bars dt { font-weight: 700; }
.fit .metric-bars dd { margin: .3rem 0 0; display: grid; grid-template-columns: minmax(80px, 1fr) minmax(100px, auto); gap: 1rem; align-items: center; }
.fit .metric-bars meter { width: 100%; height: 1.4rem; accent-color: var(--brand); }
.fit .metric-bars span { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fit .workbench-visual { border-left: 4px solid var(--brand); }
.fit .workflow-steps { padding-left: 1.75rem; }
.fit .workflow-steps > li { margin-block: 1.2rem; }
.fit .workflow-steps > li::marker { font-weight: 750; color: var(--brand); }
.fit { background: var(--bg); scroll-behavior: smooth; }
.fit { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); line-height: 1.55; }
.fit a { color: var(--brand); text-underline-offset: 0.18em; }
.fit a:hover { color: var(--brand-strong); }
.fit button, .fit input, .fit textarea, .fit select { font: inherit; }
.fit button, .fit a, .fit input, .fit textarea, .fit select, .fit summary { outline-offset: 3px; }
.fit :focus-visible { outline: 3px solid var(--focus); }

.fit .skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--surface); color: var(--text); border: 2px solid var(--focus); }
.fit .skip-link:focus { top: 1rem; }
.fit .site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3rem); background: linear-gradient(115deg, #07111d, #102e54); border-bottom: 1px solid #264b76; }
.fit .brand { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-weight: 760; letter-spacing: .02em; }
.fit .brand img { display: block; width: min(250px, 54vw); height: auto; }
.fit .brand span { border-left: 1px solid #6685a7; padding-left: .8rem; }
.fit .theme-toggle { display: inline-flex; gap: .45rem; align-items: center; border: 1px solid #6685a7; border-radius: .45rem; padding: .55rem .7rem; background: #10243c; color: #fff; cursor: pointer; }
.fit .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }
.fit .account-control { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .25rem .6rem; border: 1px solid #6685a7; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; }
.fit .account-control:hover { background: #25466b; color: #fff; }
.fit .account-avatar { display: block; flex-shrink: 0; color: #9ddfcc; }
.fit .category-nav { display: flex; gap: .35rem; overflow-x: auto; padding: .55rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.fit .har-table-scroll { overflow-x: auto; max-width: 100%; }
.fit .har-table-scroll table { width: 100%; min-width: 620px; border-collapse: collapse; }
.fit .har-table-scroll th, .fit .har-table-scroll td { padding: .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.fit .har-table-scroll caption { text-align: left; padding: .5rem 0; }
.fit .har-timeline { display: block; max-width: none; }
.fit .category-nav a { flex: 0 0 auto; padding: .48rem .7rem; border-radius: .35rem; color: var(--muted); text-decoration: none; font-weight: 650; }
.fit .category-nav a[aria-current="page"] { background: var(--surface-alt); color: var(--text); box-shadow: inset 0 -2px var(--brand); }

.fit .page-grid { display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); width: min(1380px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.fit .page-grid:not(:has(.sidebar)) { grid-template-columns: minmax(0, 1fr); }
.fit .sidebar { position: sticky; top: 1rem; align-self: start; display: grid; gap: 1rem; }
.fit .sidebar-card, .fit .tool-panel, .fit .result, .fit .catalog-intro, .fit .tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; box-shadow: var(--shadow); }
.fit .sidebar-card { padding: 1rem; }
.fit .sidebar-card h2 { margin: 0 0 .75rem; font-size: 1rem; }
.fit .sidebar-card dl, .fit .tool-facts { margin: 0; }
.fit .sidebar-card dl div, .fit .tool-facts div { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding: .45rem 0; }
.fit .sidebar-card dt, .fit .tool-facts dt { color: var(--muted); }
.fit .sidebar-card dd, .fit .tool-facts dd { margin: 0; font-weight: 700; text-align: right; }
.fit .main-content { min-width: 0; }
.fit .page-heading { margin: 0 0 1.2rem; }
.fit .page-heading h1 { margin: .18rem 0 .25rem; font-size: clamp(1.8rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; }
.fit .page-heading > p:last-child { max-width: 70ch; margin: 0; color: var(--muted); font-size: 1.05rem; }
.fit .eyebrow, .fit .kicker { margin: 0; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.fit .catalog-intro { display: flex; justify-content: space-between; gap: 2rem; padding: clamp(1.2rem, 3vw, 2rem); }
.fit .catalog-intro h2 { margin: .3rem 0; }
.fit .catalog-stats { display: flex; gap: .6rem; margin: 0; }
.fit .catalog-stats div { min-width: 84px; padding: .7rem; border-left: 3px solid var(--brand); background: var(--surface-alt); }
.fit .catalog-stats dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.fit .catalog-stats dd { margin: 0; font-size: 1.5rem; font-weight: 800; }
.fit .catalog-section { margin-top: 1.6rem; scroll-margin-top: 1rem; }
.fit .catalog-section > h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.fit .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fit .tool-card { padding: 1.05rem; }
.fit .tool-card__topline { display: flex; justify-content: space-between; align-items: center; }
.fit .tool-card h3 { margin: .8rem 0 .35rem; }
.fit .tool-card p { color: var(--muted); }
.fit .tool-icon { font-size: 1.4rem; color: var(--brand); }
.fit .badge, .fit .limit-chip { display: inline-flex; align-items: center; min-height: 1.7rem; padding: .18rem .55rem; border-radius: 999px; background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line); font-size: .72rem; font-weight: 780; text-transform: uppercase; }
.fit .badge--complete { color: var(--success); }
.fit .badge--blocked, .fit .badge--disabled { color: var(--warning); }

.fit .tool-panel, .fit .result { padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 1rem; }
.fit .tool-panel--disabled { border-left: 5px solid var(--warning); }
.fit .panel-heading, .fit .field__label-row, .fit .form-actions, .fit .result__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fit .panel-heading h2, .fit .result__heading h2 { margin: .15rem 0 .75rem; }
.fit .field { display: grid; gap: .45rem; margin: 1rem 0; }
.fit .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fit .field label { font-weight: 750; }
.fit .field__hint { margin: 0; color: var(--muted); font-size: .85rem; }
.fit textarea, .fit input, .fit select { width: 100%; border: 1px solid var(--line); border-radius: .4rem; padding: .75rem; background: var(--surface-alt); color: var(--text); }
.fit textarea { resize: vertical; min-height: 12rem; font: .9rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.fit input:disabled { opacity: .65; }
.fit input[type="checkbox"], .fit input[type="radio"] { width: 1.2rem; height: 1.2rem; padding: 0; margin: 0 .5rem 0 0; vertical-align: middle; accent-color: var(--brand); }
.fit .field label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: .65rem; }
.fit .field label > input[type="checkbox"] { flex: 0 0 1.2rem; margin: .2rem 0 0; }
.fit .check-field { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0; }
.fit .check-field input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .2rem; }
.fit .check-field label { font-weight: 700; }
.fit .button { min-height: 2.65rem; border: 1px solid var(--line); border-radius: .4rem; padding: .58rem 1rem; cursor: pointer; font-weight: 750; }
.fit .button--primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.fit .button--secondary { background: var(--surface-alt); color: var(--text); }
.fit .button:disabled { cursor: not-allowed; opacity: .55; }
.fit .result { border-left: 5px solid var(--muted); }
.fit .result--success { border-left-color: var(--success); }
.fit .result--failed, .fit .result--unauthorized { border-left-color: var(--danger); }
.fit .result--partial, .fit .result--unsupported, .fit .result--dependency_unavailable, .fit .result--indeterminate { border-left-color: var(--warning); }
.fit .status-dot { width: .75rem; height: .75rem; border-radius: 50%; background: currentColor; }
.fit .result-grid, .fit .result-meta dl { display: grid; gap: .75rem; margin: 1rem 0 0; }
.fit .result-grid > div, .fit .result-meta dl > div { border-top: 1px solid var(--line); padding-top: .7rem; }
.fit .result-grid dt, .fit .result-meta dt { color: var(--muted); font-weight: 700; }
.fit .result-grid dd, .fit .result-meta dd { margin: .3rem 0 0; }
.fit pre { max-width: 100%; margin: 0; padding: .8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-alt); border: 1px solid var(--line); border-radius: .35rem; font: .86rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.fit .copy-button { margin-top: .45rem; }
.fit .result-meta { margin-top: 1rem; }
.fit .result-meta summary { cursor: pointer; font-weight: 750; }
.fit .site-footer { border-top: 1px solid var(--line); padding: 1.25rem clamp(1rem, 4vw, 3rem); color: var(--muted); background: var(--surface); }
.fit .site-footer p { max-width: 90ch; margin: 0; }

.fit /* Discovery and learning: progressively enhanced, .fit with readable text equivalents. */
.text-link { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; }
.fit .section-heading { margin: 2.4rem 0 1rem; }
.fit .section-heading h2 { margin: .25rem 0; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.025em; }
.fit .section-heading > p:last-child { color: var(--muted); margin: .3rem 0; }
.fit .journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fit .journey-card { padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: .6rem; background: var(--surface); }
.fit .journey-card h3 { margin: 0 0 .55rem; font-size: 1.08rem; }
.fit .journey-card p { color: var(--muted); font-size: .92rem; }
.fit .journey-card ol { padding-left: 1.3rem; margin-bottom: 0; }
.fit .journey-card li { padding: .3rem 0; }
.fit .catalog-search { margin-top: 2rem; scroll-margin-top: 1rem; }
.fit .catalog-search h2 { margin: 0; }
.fit .catalog-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.fit .catalog-filters .field { margin-bottom: .65rem; }
.fit .filter-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.fit .filter-actions p { margin: 0 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.fit .tool-card { display: flex; flex-direction: column; }
.fit .tool-card .tool-facts { margin-top: auto; }
.fit .tool-availability { font-size: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; margin-bottom: 0; }
.fit .guide-link { display: inline-block; font-weight: 700; font-size: .88rem; margin-top: .8rem; }
.fit .learning-note { margin-top: 2rem; max-width: 90ch; }
.fit .tool-jump-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin: -.25rem 0 1.25rem; font-size: .9rem; font-weight: 650; }
.fit .tool-jump-links a { padding: .3rem 0; }
.fit .tool-guide { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.fit .tool-guide h2 { margin: .25rem 0 .8rem; }
.fit .tool-guide h3 { margin-top: 1.7rem; }
.fit .tool-guide p, .fit .guide-steps, .fit .tool-guide > ul { max-width: 85ch; }
.fit .guide-steps { padding-left: 1.5rem; }
.fit .guide-steps li, .fit .tool-guide > ul li { padding: .3rem 0; }
.fit .guide-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.fit .guide-example h4 { margin: .4rem 0; }
.fit .guide-example pre { height: calc(100% - 2.2rem); }
.fit .guide-privacy { background: var(--surface-alt); border-left: 3px solid var(--brand); padding: .85rem 1rem; margin-top: 1.5rem; font-size: .88rem; }
.fit .guide-sources { padding-left: 1.3rem; }
.fit .related-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.fit .related-tools li { border: 1px solid var(--line); border-radius: .4rem; padding: 1rem; }
.fit .related-tools a { font-weight: 750; }
.fit .related-tools span, .fit .related-tools small { display: block; color: var(--muted); margin-top: .45rem; }
.fit .related-tools span { font-size: .9rem; }
.fit .example-buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.fit .cidr-visual__summary { max-width: 80ch; }
.fit .cidr-visual__bits { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: .2rem; max-width: 48rem; margin: 1rem 0; }
.fit .cidr-visual__bit { display: grid; place-items: center; padding: .35rem 0; border: 1px solid var(--line); border-radius: .2rem; font: 700 .8rem ui-monospace, monospace; }
.fit .cidr-visual__bit--network, .fit .cidr-visual__legend-network { background: var(--brand-strong); color: var(--surface); }
.fit .cidr-visual__bit--host, .fit .cidr-visual__legend-host { background: var(--surface-alt); color: var(--text); border-style: dashed; }
.fit .cidr-visual__legend { display: flex; gap: .7rem; flex-wrap: wrap; padding: 0; list-style: none; }
.fit .cidr-visual__legend-network, .fit .cidr-visual__legend-host { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: .2rem; }
.fit .cidr-visual__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fit .cidr-visual__facts > div { background: var(--surface-alt); border: 1px solid var(--line); padding: .8rem; border-radius: .4rem; overflow-wrap: anywhere; }
.fit .cidr-visual__facts dt { color: var(--muted); }
.fit .cidr-visual__facts dd { margin: .3rem 0 0; font-weight: 750; }
.fit .cidr-visual__range { overflow-wrap: anywhere; }
.fit .cidr-visual__note { color: var(--muted); }
@media (max-width: 1100px) {
    .fit .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fit .catalog-intro { flex-direction: column; gap: 1rem; }
}
@media (max-width: 650px) {
    .fit .journey-grid, .fit .catalog-filters, .fit .guide-example, .fit .related-tools, .fit .cidr-visual__facts { grid-template-columns: minmax(0, 1fr); }
    .fit .catalog-filters { gap: 0; }
    .fit .catalog-filters .field { margin-top: .5rem; }
    .fit .catalog-stats { flex-wrap: wrap; }
    .fit .catalog-stats div { min-width: 88px; flex: 1; }
    .fit .filter-actions p { flex-basis: 100%; margin-top: .4rem; }
    .fit .cidr-visual__bit { font-size: .7rem; }
}

@media (max-width: 880px) {
    .fit .page-grid { grid-template-columns: 1fr; }
    .fit .sidebar { position: static; order: 2; }
    .fit .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .fit .site-header { align-items: flex-start; }
    .fit .brand span { display: none; }
    .fit .page-grid { width: min(100% - 1rem, 1380px); margin-top: .8rem; }
    .fit .catalog-intro, .fit .panel-heading, .fit .field__label-row { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .fit .catalog-stats { width: 100%; overflow-x: auto; }
    .fit .tool-grid { grid-template-columns: 1fr; }
    .fit .field-row { grid-template-columns: 1fr; gap: 0; }
    .fit .form-actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .fit, .fit *, .fit *::before, .fit *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

.fit .native-diagram { max-width: 100%; height: auto; background: #fff; border-radius: .5rem; }

.fit /* Bounded engine results remain usable on narrow viewports. */
.table-scroll { max-width:100%; overflow-x:auto; }
.fit .native-bars progress { width:7rem; max-width:100%; accent-color:var(--accent,#2563eb); }
.fit .native-bars th { overflow-wrap:anywhere; }

.fit .native-bars table { min-width:34rem; }

.fit .native-files { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.fit .native-file { min-width:0; padding:1rem; border:1px solid var(--border,#ccd4df); border-radius:.5rem; }
.fit .native-file .button { margin-top:.75rem; }

.fit .table-scroll table { width:100%; border-collapse:collapse; }
.fit .table-scroll th, .fit .table-scroll td { padding:.6rem; text-align:left; border-bottom:1px solid var(--line); }

.fit .browser-captures { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1.25rem; align-items:start; }
.fit .browser-captures > div { min-width:0; display:grid; grid-template-rows:subgrid; grid-row:span 4; }
.fit .browser-captures figure { margin:1rem 0; }
.fit .browser-finding { border:1px solid var(--line); border-radius:.5rem; padding:1rem; margin:1rem 0; }
.fit .browser-finding summary { cursor:pointer; font-weight:600; overflow-wrap:anywhere; }
.fit .browser-finding pre { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; }
.fit .break-anywhere { overflow-wrap:anywhere; }
.fit #tool-answer { scroll-margin-top: 1rem; margin-bottom: 1.5rem; }
.fit #tool-answer .result { border-top: 4px solid var(--brand); }
.fit .result-details, .fit .developer-diagnostics { margin-top: 1.25rem; }
.fit .result-details > summary, .fit .developer-diagnostics > summary { cursor: pointer; font-weight: 600; }
.fit .answer-list { padding-left: 1.25rem; }
.fit .answer-list > li + li { margin-top: .75rem; }
.fit .answer-fields { display: grid; gap: .75rem; }
.fit .answer-fields dd { margin: .25rem 0 0; }
.fit .result-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.fit .delegation-diagram { display:block; width:100%; height:auto; max-width:420px; margin:1rem auto; }
