/* Networking systems page: campus network lab widget. Uses the theme's custom properties so light and dark both work. */
.net-lab { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 1rem; margin: 1.25rem 0; }
.net-lab-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: .75rem; }
.net-lab-controls label { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--text-primary); font-weight: 600; }
.net-lab-controls select { font: inherit; font-weight: 500; padding: .35rem .5rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text-primary); }
.net-lab-check { font-weight: 500 !important; }
.net-lab-reset { padding: .35rem .9rem; font-size: .85rem; }
.net-lab-cables { border: 1px solid var(--border); border-radius: 10px; padding: .5rem .75rem .65rem; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.net-lab-cables legend { font-size: .82rem; color: var(--text-secondary); padding: 0 .35rem; }
.net-lab-cable { font-size: .9rem; color: var(--text-primary); display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.net-lab-cable span { color: var(--text-muted); }
.net-lab-stage { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 10px; padding: .5rem; }
.net-lab-stage svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.net-lab-status { margin: .75rem 0; font-size: .95rem; line-height: 1.6; color: var(--text-primary); }
.net-lab h5 { margin: 1rem 0 .4rem; font: 600 .95rem/1.3 var(--font-display); color: var(--text-primary); }

.net-edge { stroke: var(--text-secondary); stroke-width: 2.5; stroke-linecap: round; }
.net-edge.is-path { stroke: var(--primary); stroke-width: 6; }
.net-edge.is-off { stroke: var(--text-muted); stroke-width: 2; stroke-dasharray: 3 8; opacity: .55; }
.net-edge-hit { stroke: transparent; stroke-width: 22; cursor: pointer; }
.net-w-bg { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.net-w-bg.is-off { opacity: .5; }
.net-w { font: 600 14px var(--font-body); fill: var(--text-primary); text-anchor: middle; pointer-events: none; }
.net-w.is-off { fill: var(--text-muted); text-decoration: line-through; }
.net-node { cursor: pointer; }
.net-node circle { fill: var(--surface); stroke: var(--text-primary); stroke-width: 2.5; transition: r .2s; }
.net-node.comp-0 circle { fill: rgba(10, 124, 134, .22); }
.net-node.comp-1 circle { fill: rgba(232, 163, 23, .32); }
.net-node.comp-2 circle { fill: rgba(109, 63, 217, .24); }
.net-node.comp-3 circle { fill: rgba(22, 163, 74, .26); }
.net-node.is-path circle { stroke: var(--primary); stroke-width: 4.5; }
.net-node.is-from circle, .net-node.is-to circle { stroke: var(--accent); stroke-width: 6; }
.net-n { font: 700 16px var(--font-display); fill: var(--text-primary); text-anchor: middle; pointer-events: none; }
.net-nn { font: 500 13px var(--font-body); fill: var(--text-secondary); text-anchor: middle; pointer-events: none; }

.net-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.net-table th, .net-table td { padding: .35rem .5rem; text-align: center; border-bottom: 1px solid var(--border); }
.net-table td:first-child { text-align: left; }
.net-table td.is-done { background: var(--primary-light); font-weight: 600; }
:root[data-theme="dark"] .net-table td.is-done { background: rgba(54, 194, 204, .16); color: var(--text-primary); }
.net-max { color: var(--primary); }
:root[data-theme="dark"] .net-max { color: #36C2CC; }
.net-dim { color: var(--text-muted); font-size: .8rem; }
.net-note { font-size: .82rem; color: var(--text-secondary); margin: .4rem 0 0; line-height: 1.5; }
.net-lab-matrix summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin: 1rem 0 .4rem; color: var(--text-primary); }
.net-matrix th, .net-matrix td { text-align: center !important; min-width: 2rem; }
@media (prefers-reduced-motion: reduce) { .net-node circle { transition: none; } }
@media (max-width: 520px) { .net-lab { padding: .75rem; } }

/* Labs built on the shared kit (css/labs.css) */
.net-wifi-stage canvas { cursor: crosshair; touch-action: pan-y; }
.net-wifi .lab-chips { display: inline-flex; }
.net-wifi .lab-label { font-weight: 600; font-size: .84rem; }
.net-wifi-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .5rem 0 .9rem; font-size: .8rem; color: var(--text-secondary); }
.net-wifi-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.net-wifi-legend i { width: .9rem; height: .9rem; border-radius: 3px; display: inline-block; opacity: .85; border: 1px solid var(--border-strong); }
.net-wifi .lab-table-wrap { margin: 0 0 .8rem; }
.net-bars { display: grid; gap: .3rem; margin: .5rem 0 .9rem; }
.net-bar { display: grid; grid-template-columns: minmax(7.5rem, 15rem) minmax(0, 1fr) minmax(5.5rem, 8rem); gap: .6rem; align-items: center; font-size: .85rem; }
.net-bar-name { color: var(--text-secondary); }
.net-bar-time { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.net-bar-track { height: .7rem; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; }
.net-bar-fill { display: block; height: 100%; background: var(--border-strong); border-radius: 999px; }
.net-bar.is-sel .net-bar-name { color: var(--text-primary); font-weight: 700; }
.net-bar.is-sel .net-bar-fill { background: var(--primary); }
.net-transfer h5.lab-sub, .net-transfer .lab-sub { margin: 1rem 0 .3rem; font: 700 .78rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); }
.net-hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .6rem .9rem; margin: 0 0 1rem; }
.net-hs-score { align-items: center; }
.net-hs-score .lab-meter { flex: 1 1 12rem; }
.net-homesec .lab-table td:nth-child(3) { min-width: 14rem; }
@media (max-width: 560px) {
  .net-bar { grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 6rem); }
  .net-bar-track { grid-column: 1 / -1; grid-row: 2; }
}
