:root {
  color-scheme: light;
  --ink: #122539;
  --navy: #112133;
  --paper: #f4f6f7;
  --line: #d5dfe1;
  --soft: #566876;
  --teal: #006e66;
  --mint: #64e1bc;
  --code: #142637;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--teal);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #e89328;
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.3rem, 3vw, 1.76rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
h3 {
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.mast {
  background: var(--navy);
  color: white;
}
.mast-inner,
.nav-inner,
.panel {
  width: min(1180px, 100%);
  margin: auto;
}
.mast-inner {
  padding: 0 32px;
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand,
.account,
.meta,
.actions,
.switches,
.toolbar,
.code-head,
.links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-size: 0.94rem;
  white-space: nowrap;
}
.brand b {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.brand-line {
  background: #496073;
  width: 1px;
  height: 18px;
}
.mark {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 25px;
  width: 33px;
  transform: skewX(-18deg);
  margin-right: 2px;
}
.mark i {
  background: var(--mint);
  width: 7px;
  height: 14px;
}
.mark i:nth-child(2) {
  height: 24px;
}
.mark i:nth-child(3) {
  height: 17px;
}
.account {
  font-size: 0.82rem;
  color: #cedbdf;
}
.quiet-light {
  color: #ecf4f2;
  border: 1px solid #576c76;
  border-radius: 6px;
  background: none;
  padding: 5px 13px;
  min-height: 36px;
}
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  padding: 0 32px;
  gap: 28px;
  align-items: stretch;
}
.nav a {
  text-decoration: none;
  color: var(--soft);
  font-weight: 620;
  font-size: 0.88rem;
  padding: 15px 0 13px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav a[aria-current='page'] {
  border-color: var(--teal);
  color: var(--teal);
}
.panel {
  padding: 36px 32px 76px;
}
.lead {
  margin: 0 0 25px;
}
.lead .meta {
  margin-bottom: 10px;
}
.eyebrow,
.small-label {
  font: 650 0.7rem/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.eyebrow {
  color: var(--teal);
}
.meta {
  color: var(--soft);
  font: 0.77rem/1.4 var(--mono);
  flex-wrap: wrap;
}
.meta > span + span:before {
  content: '/';
  color: #92a3a7;
  margin-right: 11px;
}
.lead p,
.intro,
.sub,
.form-help {
  color: var(--soft);
}
.lead p {
  max-width: 76ch;
  font-size: 1rem;
  margin-top: 10px;
}
.sub,
.form-help {
  font-size: 0.9rem;
}
.small-label {
  color: var(--soft);
}
.primary,
.secondary,
.danger,
.copy,
.chip,
.minor {
  font-weight: 620;
  border-radius: 7px;
  line-height: 1.2;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 17px;
}
.primary {
  background: var(--teal);
  color: #fff;
}
.primary:hover {
  background: #005c56;
}
.secondary,
.danger,
.minor,
.chip {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover,
.minor:hover,
.chip:hover {
  border-color: #80a6a4;
}
.danger {
  color: #a0302f;
}
.minor,
.chip {
  padding: 8px 12px;
  min-height: 38px;
}
.actions,
.links,
.switches,
.toolbar {
  flex-wrap: wrap;
}
.actions {
  gap: 8px;
}
.section,
.card,
.editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.section,
.editor-panel {
  padding: 24px;
  margin-top: 22px;
}
.section > p,
.editor-panel > p {
  margin-top: 7px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card {
  padding: 20px;
}
.map {
  --flow: #64e1bc;
  background: var(--navy);
  color: #f2fbfa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 15px #1426370c;
}
.map[data-path='internet'] {
  --flow: #a9b7ff;
}
.map[data-path='gestion'] {
  --flow: #ffc388;
}
.map-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 23px 26px 18px;
}
.map-title h2 {
  font-size: 1.36rem;
}
.map .switches {
  gap: 4px;
  background: #091828;
  border: 1px solid #384d5a;
  border-radius: 8px;
  padding: 3px;
}
.map .switches button {
  border-radius: 5px;
  background: transparent;
  color: #c8d4db;
  padding: 8px 12px;
  min-height: 33px;
  font-size: 0.85rem;
  font-weight: 640;
}
.map .switches button[aria-pressed='true'] {
  background: var(--flow);
  color: #102937;
}
.diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 21px 18px 25px;
  background-color: #12283b;
  background-image: radial-gradient(#49677b75 0.8px, transparent 0.9px);
  background-size: 16px 16px;
  border-block: 1px solid #344c5d;
}
.station {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
}
.station + .station:before {
  content: '';
  position: absolute;
  left: -50%;
  width: 100%;
  top: 28px;
  border-top: 2px dashed var(--flow);
  opacity: 0.55;
}
.station button {
  background: transparent;
  color: inherit;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 2px 8px;
  max-width: 100%;
  border-radius: 8px;
}
.station b {
  font-size: 1rem;
  line-height: 1.3;
}
.station .node-caption {
  font: 0.72rem/1.35 var(--mono);
  color: #c7d8e0;
  overflow-wrap: anywhere;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 59px;
  height: 53px;
  background: var(--equipment-surface);
  border: 1px solid var(--equipment-line);
  border-radius: 10px;
  color: var(--equipment-ink);
  position: relative;
}
.equipment-cpe { --equipment-surface: #203951; --equipment-line: #709bbd; --equipment-ink: #b8ddff; }
.equipment-ufinet { --equipment-surface: #244349; --equipment-line: #649d9d; --equipment-ink: #acf2e6; }
.equipment-hub { --equipment-surface: #3e3549; --equipment-line: #947fa4; --equipment-ink: #e6caff; }
.equipment-pe { --equipment-surface: #493c2f; --equipment-line: #a88a69; --equipment-ink: #ffdaa2; }
.station button[aria-pressed='true'] .node-icon {
  border: 2px solid var(--flow);
  box-shadow: 0 0 0 4px #0b1e30;
}
.station button[aria-pressed='true'] b {
  color: var(--flow);
}
.node-icon svg {
  width: 37px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node-icon svg .body { fill: currentColor; fill-opacity: .16; }
.map-foot {
  padding: 13px 26px;
  color: #cbd9df;
  font-size: 0.85rem;
}
.route-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 23px;
  background: #fff;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
}
.route-detail h3 {
  font-size: 1.25rem;
  margin: 4px 0 6px;
}
.route-detail p {
  font-size: 0.93rem;
  color: var(--soft);
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 15px;
  margin: 0;
  align-content: center;
  font-size: 0.85rem;
}
.kv dt {
  color: var(--soft);
}
.kv dd {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 580;
  margin: 0;
  overflow-wrap: anywhere;
}
.callout {
  border-left: 3px solid var(--teal);
  padding: 10px 13px;
  background: #edf6f4;
  margin: 14px 0;
  color: #28555a;
  font-size: 0.92rem;
}
.commands details,
.info-details {
  border-top: 1px solid var(--line);
}
details > summary {
  padding: 15px 0;
  font-weight: 620;
  overflow-wrap: anywhere;
}
summary::marker {
  color: var(--teal);
}
.commands .sub,
.info-details p {
  margin: 0 0 12px;
}
.codebox {
  background: var(--code);
  color: #d9eee8;
  border-radius: 8px;
  margin: 10px 0 15px;
  overflow: hidden;
  min-width: 0;
}
.code-head {
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #35505c;
  padding: 7px 12px;
  color: #adcccf;
  font: 600 0.72rem/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.copy {
  background: transparent;
  color: #e9f6f0;
  border: 1px solid #526d76;
  padding: 5px 9px;
  font-size: 0.76rem;
  min-height: 31px;
}
.codebox pre {
  margin: 0;
  padding: 15px;
  overflow: auto;
  font: 0.8rem/1.65 var(--mono);
  tab-size: 2;
  max-height: 410px;
  overscroll-behavior-x: contain;
}
.sources {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 0.9rem;
}
.sources li {
  margin: 6px 0;
}
.sources code {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--teal);
}
.chip[aria-pressed='true'] {
  background: #e4f3ef;
  border-color: #79aaa3;
  color: #005950;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.47fr);
  gap: 19px;
  align-items: start;
}
.editor-grid .editor-panel {
  margin-top: 0;
}
.editor-panel .actions {
  margin-top: 16px;
}
.editor-panel .aside-help {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field-grid label,
.login-form label,
.template-name {
  display: grid;
  gap: 5px;
  align-content: start;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 625;
  min-width: 0;
}
.field-grid small {
  font-size: 0.78rem;
  color: var(--soft);
  font-weight: 400;
}
.field-grid input,
.login-form input,
.template-name input,
.select {
  border: 1px solid #aebfc4;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
}
.field-grid input {
  font-family: var(--mono);
  font-size: 0.9rem;
}
.editor-panel fieldset {
  padding: 0 0 22px;
  min-width: 0;
  border: 0;
  margin: 0;
}
.editor-panel legend {
  font-size: 1.05rem;
  font-weight: 650;
  padding: 3px 0 12px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.editor-panel fieldset:first-child legend {
  border-top: 0;
  padding-top: 0;
}
.template-name {
  margin-top: 15px;
}
.form-error {
  color: #962a27;
  font-size: 0.88rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-error:not(:empty) {
  padding: 9px 0;
}
.form-success {
  color: var(--teal);
  font-size: 0.88rem;
}
.template-list {
  display: grid;
  gap: 10px;
}
.template-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.template-row h3 {
  overflow-wrap: anywhere;
}
.template-row time {
  font-size: 0.84rem;
  color: var(--soft);
}
.empty {
  text-align: center;
  padding: 36px 20px;
}
.empty p {
  margin: 8px auto 17px;
  max-width: 50ch;
}
.saved-as {
  font-weight: 600;
  color: var(--teal);
  font-size: 0.9rem;
}
.output {
  scroll-margin-block-start: 15px;
}
.output .select {
  margin: 15px 0 8px;
  width: auto;
  max-width: 100%;
}
.entry {
  width: min(870px, calc(100% - 48px));
  margin: clamp(32px, 10vh, 108px) auto 30px;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  border-radius: 18px;
  box-shadow: 0 15px 60px #11233416;
  border: 1px solid var(--line);
  overflow: hidden;
  background: white;
}
.login-art {
  position: relative;
  overflow: hidden;
  background-color: #12293d;
  background-image: radial-gradient(#67949277 0.9px, transparent 1px);
  background-size: 16px 16px;
  color: #f3f9f6;
  padding: 33px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.login-caption {
  font: 0.78rem var(--mono);
  letter-spacing: 0.2em;
  color: #a9d5c9;
}
.login-caption span {
  color: #67d5b6;
}
.login-title {
  font-size: clamp(2.5rem, 5.8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 580;
}
.login-title span {
  color: var(--mint);
}
.link-drawing {
  display: flex;
  align-items: center;
  margin-top: 28px;
  max-width: 250px;
}
.link-drawing i {
  height: 28px;
  width: 30px;
  flex: none;
  border: 2px solid var(--mint);
  border-radius: 7px;
  background: #22463f;
  transform: rotate(-12deg);
  box-shadow: 4px 4px 0 #3b6262;
}
.link-drawing b {
  flex: 1;
  border-top: 2px dashed var(--mint);
}
.login-form {
  padding: clamp(24px, 5vw, 45px);
  display: grid;
  gap: 16px;
  align-content: center;
}
.login-form h1 {
  font-size: 2rem;
}
.login-form > p:not(.form-error) {
  font-size: 0.93rem;
  color: var(--soft);
}
.notice {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 18px;
  background: #162e36;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px #0002;
  z-index: 3;
  font-size: 0.9rem;
  max-width: 90vw;
}
.notice:empty,
.form-error:empty {
  display: none;
}
.boot {
  text-align: center;
  color: var(--soft);
  margin-top: 20vh;
}
.skip {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #fff;
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 5px;
}
.reload {
  display: block;
  margin: 15px auto;
}
dialog {
  width: min(390px, 94vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 16px 55px #12253825;
}
dialog::backdrop {
  background: #10233378;
}
dialog p {
  margin: 8px 0 18px;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .mast-inner,
  .nav-inner {
    padding-inline: 19px;
  }
  .panel {
    padding: 25px 19px 55px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .route-detail {
    gap: 12px;
  }
  .map-title {
    padding: 17px;
  }
  .diagram {
    padding-inline: 8px;
  }
  .map-foot {
    padding: 11px 17px;
  }
}
@media (max-width: 600px) {
  .brand {
    gap: 6px;
    font-size: 0.78rem;
  }
  .brand b {
    font-size: 1rem;
  }
  .brand-line {
    margin: 0 2px;
  }
  .mast-inner {
    min-height: 54px;
    padding-inline: 13px;
  }
  .account {
    gap: 5px;
  }
  .account > span {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .quiet-light {
    font-size: 0.76rem;
    min-height: 33px;
    padding: 4px 8px;
  }
  .nav-inner {
    padding: 0 9px;
    gap: 0;
    justify-content: space-between;
  }
  .nav a {
    font-size: 0.78rem;
    padding: 13px 5px 11px;
  }
  .panel {
    padding: 25px 12px 45px;
  }
  .section,
  .editor-panel,
  .card {
    padding: 16px;
  }
  .lead {
    margin-bottom: 17px;
  }
  .lead p {
    font-size: 0.9rem;
  }
  .map-title {
    gap: 10px;
    padding: 14px;
  }
  .map-title h2 {
    font-size: 1.18rem;
  }
  .map .switches {
    gap: 0;
  }
  .map .switches button {
    padding: 8px 10px;
  }
  .diagram {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
  .station {
    display: block;
    text-align: left;
  }
  .station button {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 12px;
    justify-items: start;
    text-align: left;
    align-items: center;
    padding: 5px 6px;
    min-height: 56px;
  }
  .station .node-icon {
    width: 45px;
    height: 42px;
    grid-row: span 2;
  }
  .node-icon svg {
    width: 33px;
    height: 30px;
  }
  .station b {
    align-self: end;
    font-size: 0.94rem;
  }
  .station .node-caption {
    align-self: start;
    font-size: 0.73rem;
  }
  .station + .station:before {
    top: -16px;
    left: 26px;
    width: 0;
    height: 30px;
    border-top: 0;
    border-left: 2px dashed var(--flow);
  }
  .map-foot {
    font-size: 0.77rem;
    padding: 10px 15px;
  }
  .route-detail {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .route-detail .kv {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid input {
    font-size: 16px;
  }
  .template-row {
    align-items: start;
    flex-direction: column;
  }
  .entry {
    grid-template-columns: 1fr;
    width: min(420px, calc(100% - 24px));
    margin: 25px auto;
  }
  .login-art {
    padding: 18px 24px;
    min-height: 105px;
    gap: 7px;
  }
  .login-title {
    font-size: 1.9rem;
    letter-spacing: -0.045em;
  }
  .login-title br {
    display: none;
  }
  .login-title br:after {
    content: ' ';
  }
  .login-title {
    display: none;
  }
  .login-caption {
    font-size: 0.8rem;
  }
  .link-drawing {
    margin: 5px 0;
    max-width: 180px;
    width: 100%;
  }
  .link-drawing i {
    height: 19px;
    width: 22px;
  }
  .login-form {
    padding: 24px;
  }
  .section {
    margin-top: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      border-color 0.12s,
      color 0.12s;
  }
}
.field-group summary {
  font-size: 1.03rem;
}
.field-group:first-child {
  border-top: 0;
}
.field-group:first-child summary {
  padding-top: 0;
}
.field-group[open] .field-grid {
  padding: 0 0 20px;
}
.shared-profile {
  margin: 0 0 16px;
  padding: 16px;
  background: #eef6f4;
  border: 1px solid #c3ded8;
  border-radius: 8px;
}
.shared-profile .sub {
  margin: 5px 0 12px;
}

.catalog-filter { margin-top: 14px; }
.catalog-controls, .compare-controls, .coverage-grid { display:grid; gap:14px; }
.catalog-controls { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; }
.catalog-label { display:grid; min-width:0; gap:5px; font-weight:600; font-size:.84rem; color:var(--ink); }
.catalog-label input, .catalog-label select, .lab-panel select { width:100%; min-width:0; max-width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--ink); }
.catalog-result {margin:22px 0; overflow-wrap:anywhere;}
.catalog-result h2 {margin:6px 0 14px;}
.coverage-grid, .compare-controls {grid-template-columns: repeat(2,minmax(0,1fr)); }
.coverage-card, .catalog-pane, .catalog-map { background:white; border:1px solid var(--line); border-radius:10px; padding:18px; }
.coverage-card {display:grid;justify-items:start; gap:7px;}
.coverage-num {font-size:2rem;font-variant-numeric:tabular-nums;}
.catalog-tabs,.catalog-map .actions,.lab-panel .actions {flex-wrap:wrap; margin:12px 0;}
.catalog-map {margin:14px 0; background:#f3f8f7;}
.catalog-map .route-detail {display:block; margin-top:8px;}
.catalog-map dt,.catalog-map dd {overflow-wrap:anywhere;}
.history-rows { max-height:22rem; overflow:auto; }
.capture-line {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line);font-size:.86rem;}
.diff-result {margin:12px 0;}
.diff-result .added {border-left:5px solid #109467;} .diff-result .removed {border-left:5px solid #bf5b49;}
.lab-panel .select {width:auto;}
.lab-panel > p,.evidence-ids {margin:8px 0;}
@media(max-width:650px){
  .catalog-controls,.coverage-grid,.compare-controls {grid-template-columns:1fr;}
  .catalog-pane,.coverage-card {padding:13px;}
  .nav-inner {overflow-x:auto; justify-content:flex-start; gap:13px;}
  .nav a {flex:none; white-space:nowrap;}
  .catalog-controls input,.catalog-controls select,.compare-controls select {font-size:16px;}
}
.catalog-pane > .map {margin-top:16px;}
.catalog-pane .map-title {flex-wrap:wrap;}
.catalog-pane .switches {flex-wrap:wrap;max-width:100%;}
.catalog-pane .station {min-width:0;}
.catalog-pane .station button {min-width:0;overflow-wrap:anywhere;}
.catalog-pane .kv dd {min-width:0;word-break:break-word;}
.equipment-rr { --equipment-surface:#293757; --equipment-line:#879acc; --equipment-ink:#d2deff; }
.equipment-switch { --equipment-surface:#214448; --equipment-line:#6a9e9c; --equipment-ink:#b7f6ec; }
.lab-layout { display:grid; position:relative; isolation:isolate; grid-template:repeat(5,76px) / repeat(2,minmax(0,1fr)); align-items:center; justify-items:center; border-radius:12px; background-color:#12283b; background-image:radial-gradient(#294052 1px,transparent 1px); background-size:14px 14px; }
.lab-layout > svg { position:absolute; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; fill:none; stroke:#82aaa9; stroke-width:1.5; }
.lab-row-1 {grid-row:1;} .lab-row-2 {grid-row:2;} .lab-row-3 {grid-row:3;} .lab-row-4 {grid-row:4;} .lab-row-5 {grid-row:5;}
.lab-left {grid-column:1;} .lab-right {grid-column:2;} .lab-center {grid-column:1 / -1;}
.lab-node { display:flex; align-items:center; gap:8px; width:max-content; max-width:95%; padding:5px 8px; border:1px solid #4d6272; border-radius:8px; background:#142b3e; color:#f6fbff; text-align:left; cursor:pointer;}
.lab-node[aria-pressed="true"] {border-color:#75dfc9;box-shadow:0 0 0 1px #75dfc9;}
.lab-node:focus-visible {outline:3px solid white;outline-offset:3px;}
.lab-node .node-icon {width:40px;height:36px;border-radius:6px;}
.lab-node .node-icon svg {width:29px;height:27px;}
.lab-node-label {display:grid;gap:2px;}
.lab-node-label small {color:#cbdae2;font:500 12px/1.2 system-ui,sans-serif;}
.lab-node-detail {min-height:3em;line-height:1.5;overflow-wrap:anywhere;}
@media(max-width:580px){
  .lab-layout {grid-template-rows:repeat(5,88px);}
  .lab-node {flex-direction:column;gap:2px; min-width:90px; padding:4px; text-align:center;}
  .lab-node-label {gap:0;font-size:12px;}
  .lab-node-label small {font-size:10px;}
  .lab-node .node-icon {width:30px;height:25px;}
  .lab-node .node-icon svg {width:24px;height:21px;}
}
