/* The network layer (network/panel.js): a capture attached to the session. Same tokens as trace.css. */
.side-actions { display: flex; gap: 14px; align-items: center; }
.net-status {
  margin: 0 0 4px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  color: var(--ink-2); font-size: 12.5px; flex: none;
}
.net-status[data-kind=ok] { border-color: #3d6b4a; }
.net-status[data-kind=error] { border-color: #8a4b3a; color: #ffc49b; }
.net-status[data-kind=busy] { border-color: #3a4f6b; }
/* The capture button: a bordered chip (a bare link was easy to miss), blue while a capture is attached. */
.net-button {
  border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--link); font: inherit; font-size: 12px;
  padding: 3px 10px; cursor: pointer;
}
.net-button:hover { border-color: var(--link); }
.net-button[data-state=on] { border-color: #3d6796; background: #16283d; }
.net-button[aria-expanded=true] { border-color: var(--link); }
.net-button:disabled { cursor: progress; opacity: .7; }
.net-help {
  margin: 0 0 6px; padding: 10px 12px; border: 1px solid #3a4f6b; border-radius: 10px; background: var(--panel);
  color: var(--ink-2); font-size: 12.5px; flex: none;
}
.net-help p { margin: 0 0 8px; }
.net-help .net-help-head { color: var(--ink); font-weight: 600; }
.net-help .net-help-note { color: var(--ink-3); }
.net-help code { overflow-wrap: anywhere; }
.net-help .path { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.net-help .path code { flex: 1; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #0b0f15; color: var(--ink); }
.net-help-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.net-sec h4, .net-card h4 { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 6px; font-weight: 650; letter-spacing: .01em; }
.net-source { margin: 4px 0 8px; }
.net-notes { margin: 4px 0 0; padding-left: 18px; }
.net-fold { margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; background: #0b0f15; }
.net-fold > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; padding: 3px 0; }
.net-fold[open] > summary { margin-bottom: 4px; }
.net-entries { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 3px; font-size: 12.5px; }
.net-entries code { color: var(--ink-2); overflow-wrap: anywhere; }
.net-bodies { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.net-bodies .linkbtn { font-size: 12px; }
.net-actions { margin: 6px 0; }
.net-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); background: #121821; }
.net-chip.warn, .net-chip.third { border-color: #8a5a3a; color: #ffc49b; }
.net-chip.first { border-color: #33506e; color: #b9d6f5; }
.net-rule { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 9px; background: #4a2a1c; color: #ffd2b5; font-size: 11.5px; font-weight: 700; padding: 0 5px; cursor: help; }
.net-rules { margin: 6px 0 10px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.net-rules li { font-size: 13px; }
.panel .net-rules .note { display: inline; }
.net-transit-list { gap: 6px; }
.net-transit { border-left: 3px solid var(--line-2); padding: 3px 0 3px 9px; }
.net-transit.flagged { border-left-color: var(--warn); }
.net-transit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.net-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-right: 4px; }
.net-cat.credential { color: #ffb38a; }
.net-cat.identity { color: #b9d6f5; }
.net-focus { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.net-betas { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 13px; }
.net-doc { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.net-counts { list-style: none; padding: 0; margin: 4px 0; columns: 2; column-gap: 18px; font-size: 12.5px; }
.net-counts li { break-inside: avoid; overflow-wrap: anywhere; }
.net-timeline { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 5px; font-size: 13px; }
.net-timeline b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.net-meta { overflow-wrap: anywhere; }
.net-scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.net-flags td code { overflow-wrap: anywhere; }
.net-flags td:first-child { max-width: 220px; overflow-wrap: anywhere; }
.net-json { max-height: 240px; overflow: auto; background: #080a0e; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 12.5px/1.45 var(--mono); white-space: pre-wrap; }
.net-gauges { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.net-gauge { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto 120px; align-items: center; gap: 8px; font-size: 13px; }
.net-gauge-name { color: var(--ink-2); overflow-wrap: anywhere; }
.net-bar { height: 8px; background: #1a212c; border-radius: 4px; overflow: hidden; }
.net-bar i { display: block; height: 100%; background: #5f9be6; }
.net-spark { width: 120px; height: 24px; }
.net-spark polyline { fill: none; stroke: #93c7ff; stroke-width: 1.5; }
.net-card { border: 1px solid #33506e; border-radius: 10px; padding: 10px 12px; background: #0b111a; }
.net-card > h3 { color: #b9d6f5; }
.net-sub { margin-top: 8px; }
.net-kv { grid-template-columns: minmax(80px, auto) minmax(0, 1fr); }
.net-kv dd { min-width: 0; overflow-wrap: anywhere; }
.net-kv dd code { overflow-wrap: anywhere; }
.net-blocks { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; }
.net-blocks li.billing b { color: #ffc49b; }
.panel .net-blocks .meta { display: block; overflow-wrap: anywhere; }
.net-tools, .net-betas-inline { margin: 0; line-height: 1.9; font-size: 12.5px; }
.net-tool { display: inline-block; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--mono); margin: 0 2px 2px 0; }
.net-tool.deferred { border-style: dashed; color: var(--ink-3); }
.net-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.net-list li { overflow-wrap: anywhere; }
.net-list li.flagged::marker { color: var(--warn); }
.net-attr tr.net-miss td { color: #ffc49b; }
.lenses.with-network button[data-lens=network] .lens-icon { color: #93c7ff; }
@media (max-width: 980px) {
  .net-gauge { grid-template-columns: 1fr 1fr auto; }
  .net-spark { display: none; }
  .net-counts { columns: 1; }
}
/* A credential's sends (panel.js credentialCard): time, host, request, header, answer. */
.net-sends { margin: 4px 0 2px; padding-left: 6ch; font: 12px/1.55 var(--mono); color: var(--ink-2); max-height: 40vh; overflow: auto; }
.net-sends li { overflow-wrap: anywhere; }
/* The lens's layout (panel.js networkLens): findings first, then sections closed with their counts in the summary.
   Lists are tables, dropdowns and search boxes; a marker is one word of text, not a badge. */
.net-top { padding: 6px 12px; }
.net-top > summary { font-size: 14px; padding: 4px 0; }
.net-top > summary .t, .net-fold > summary .t { color: var(--ink); font-weight: 650; }
.net-top > summary .meta, .net-fold > summary .meta { font-weight: 400; }
.net-top[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 7px; }
.net-fold .net-fold { background: #0d1219; }
.net-findings > h3 { margin-bottom: 6px; }
/* Findings: one row each, its name and first fact; the whole finding is the row's tooltip; the row opens its section. */
.net-finding-list { list-style: none; padding: 0; display: grid; gap: 2px; margin: 8px 0 0; }
.net-finding { border-left: 3px solid var(--line-2); }
.net-finding.warn { border-left-color: var(--warn); }
.net-finding-row { display: flex; align-items: baseline; gap: 8px; width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); text-align: left; padding: 4px 6px 4px 9px; cursor: pointer; font: inherit; border-radius: 0 6px 6px 0; }
.net-finding-row:hover { background: #121a24; }
.net-finding-row b { flex: none; font-size: 13px; }
.net-finding-row .meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.net-table { font-size: 12.5px; }
.net-table th.num, .net-table td.num, .tokens-table th.num, .tokens-table td.num { text-align: right; white-space: nowrap; }
.net-table td.mono { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.net-models { table-layout: fixed; }
.net-models caption { text-align: left; color: var(--ink-3); font-size: 12px; padding-bottom: 4px; }
.net-models th:first-child { width: 29%; }
.net-models th:nth-child(2), .net-models th:nth-child(3), .net-models th:nth-child(4) { width: 8.5%; }
.net-models th, .net-models td { padding-left: 6px; padding-right: 0; }
.net-models th:first-child, .net-models td:first-child { padding-left: 0; }
.net-models td.model .name { display: block; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.net-models th { white-space: normal !important; line-height: 1.2; vertical-align: bottom; font-size: 11.5px; }
.net-models td.num { font-size: 12px; }
.net-models tr.net-main td.model .meta { color: #b9d6f5; }
.net-models tr.net-side td { color: #ffc49b; }
.net-models tr.net-side td.model { box-shadow: inset 3px 0 0 var(--warn); padding-left: 7px; }
.net-models-box .note { margin-top: 4px; }
.net-hosts { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; }
.net-hosts li { border-left: 3px solid var(--line-2); padding: 1px 0 1px 9px; }
.net-hosts li.warn { border-left-color: var(--warn); }
.net-hosts .host { font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.net-tools-table tr.deferred td { color: var(--ink-2); font-style: italic; }
.net-choose { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.net-select, .net-search {
  font: 13px var(--sans); color: var(--ink); background: #0b0f15; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 8px; max-width: 100%;
}
.net-select { min-width: 0; flex: 1 1 200px; }
.net-filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.net-filterbar .net-search { flex: 1 1 180px; }
.net-rules-inline { color: #ffc49b; cursor: help; }
.net-delta { padding-left: 2px; margin: -2px 0 4px; }
.net-run > summary { cursor: pointer; list-style-position: outside; }
.net-occ { margin: 4px 0 6px; padding-left: 22px; display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.net-occ li { overflow-wrap: anywhere; }
.net-route { overflow-wrap: anywhere; color: var(--ink-2); }
.net-names { columns: 2; column-gap: 18px; }
.net-names li { break-inside: avoid; }
.net-entries .reader { margin: 6px 0 10px; }
/* A body opened under a send or a row: its buttons keep their words whole. */
.net-bodies .linkbtn, .net-reader .rhead .linkbtn, .net-reader .pager .btn { white-space: nowrap; }
.net-reader-slot:empty { display: none; }
@media (max-width: 980px) {
  .net-names { columns: 1; }
  /* nested folds and a reader opened deep inside them keep the width for the text */
  .net-fold { padding: 4px 7px; }
  .net-fold .net-fold { padding: 3px 5px; margin: 5px 0; }
  .net-sends { padding-left: 0; list-style-position: inside; }
  .net-sends .reader, .net-entries .reader, .net-occ .reader { margin: 6px 0; padding: 7px; border-radius: 8px; }
  .net-transit-list { padding-left: 0; }
}
.net-party.third { color: #ffc49b; }
.net-party.first { color: #b9d6f5; }
.net-timeline .linkbtn, .net-occ .linkbtn { margin-left: 6px; font-size: 12.5px; }
.net-mark.warn { color: #ffc49b; font-weight: 600; }
.net-id { overflow-wrap: anywhere; font-size: 11.5px; }
/* Endpoints (panel.js hostsSection): one flat list; each endpoint names its destination once; its requests are
   aligned rows of method · path · status · size, the whole row opening the tabbed reader under it. */
.net-count { margin: 2px 0 6px; }
.net-eps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 2px; }
.net-ep { border-top: 1px solid var(--line); padding: 5px 0 3px; min-width: 0; }
.net-ep:first-child { border-top: 0; }
.net-ep-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; font-size: 13px; }
summary.net-ep-head { cursor: pointer; list-style-position: outside; padding: 2px 0; }
summary.net-ep-head::-webkit-details-marker { color: var(--ink-3); }
.net-ep-name { color: var(--ink); font-weight: 650; }
.net-ep-host { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.net-ep-n { color: var(--ink-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.net-role-tag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.net-party { font-size: 11.5px; }
.net-party.third { color: #ffc49b; }
.net-party.local { color: #b9d6f5; }
.net-grp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 8px 0 2px 2px; font-size: 12.5px; color: var(--ink-2); }
.net-reqs { list-style: none; padding: 0; margin: 2px 0 4px; display: grid; gap: 1px; }
.net-req { min-width: 0; }
.net-req-row {
  display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto auto; align-items: baseline; gap: 8px; width: 100%;
  border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; padding: 3px 6px; cursor: pointer;
}
.net-req-row:hover { background: #121a24; }
.net-req.open > .net-req-row { background: #142131; box-shadow: inset 3px 0 0 var(--link); }
.net-method { font: 600 11.5px var(--mono); color: #b9d6f5; letter-spacing: .02em; }
.net-path { font: 12.5px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.net-size { font-size: 12px; color: var(--ink-3); white-space: nowrap; text-align: right; }
.net-req-flags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 2px calc(4.6em + 14px); }
/* A status or finding badge: a few characters of text, coloured by what it means. */
.net-st { display: inline-block; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); font: 11.5px/1.5 var(--sans); color: var(--ink-2); white-space: nowrap; }
.net-st.ok { border-color: #2f5a44; color: #9fe0b8; }
.net-st.redirect { border-color: #4b4f6e; color: #c9cdf5; }
.net-st.warn { border-color: #8a5a3a; color: #ffc49b; }
.net-st.none { border-style: dashed; color: var(--ink-3); }
.net-hosts-table td { vertical-align: top; }
.net-hosts-table td .net-st { margin: 0 4px 2px 0; }
.net-hosts-table tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); padding-left: 7px; }
/* The reader's head: the request's parts as tabs, then its tools; under it the exact address and the facts. */
.net-reader { margin: 4px 0 8px; }
.net-reader .rhead { align-items: center; justify-content: space-between; }
.net-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #0b0f15; }
.net-tab { border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: 12.5px var(--sans); padding: 3px 9px; cursor: pointer; }
.net-tab:hover { color: var(--ink); background: #151d28; }
.net-tab[aria-selected=true] { color: var(--ink); background: #1d3047; box-shadow: inset 0 0 0 1px #3d6796; }
.net-tab-size { color: var(--ink-3); font-size: 11.5px; }
.net-reader-tools { display: inline-flex; gap: 12px; align-items: baseline; }
.net-reader-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 2px 0 4px; min-width: 0; }
.net-reader-facts .meta { font-size: 12px; }
.net-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 2px 0 6px; min-width: 0; }
.net-actions .net-tabs { margin: 2px 0; }
@media (max-width: 640px) {
  .net-req-row { grid-template-columns: 4em minmax(0, 1fr) auto; }
  .net-req-row .net-size { grid-column: 2 / -1; text-align: left; }
  .net-req-flags { padding-left: 6px; }
  .net-ep-n { margin-left: 0; }
}
/* Filter rows: a dropdown and a search box on one line, the same height. */
.net-filterbar { align-items: center; }
.net-filterbar .net-choose { margin: 0; flex: 0 1 auto; flex-wrap: nowrap; gap: 6px; }
.net-filterbar .net-choose .net-select { flex: 0 1 auto; }
.net-filterbar .agent-search, .net-filterbar .net-search { width: auto; flex: 1 1 160px; min-width: 0; padding: 4px 8px; font-size: 13px; border-radius: 7px; height: auto; line-height: 1.4; }
.filter-scope .net-st { vertical-align: baseline; }
