.nnx {
  --nnx-bg: #080d19;
  --nnx-panel: #0d1526;
  --nnx-cyan: #72edf4;
  --nnx-violet: #aba2ff;
  --nnx-text: #ecf1fa;
  --nnx-muted: #a2adc2;
  --nnx-line: #263147;
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 42px);
  background: var(--nnx-bg);
  color: var(--nnx-text);
  border: 1px solid var(--nnx-line);
  border-radius: 20px;
  text-align: left;
  font-family: inherit;
}
.nnx *, .nnx *::before, .nnx *::after { box-sizing: border-box; }
.nnx h3, .nnx h4, .nnx p { margin: 0; }
.nnx button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nnx button:focus-visible { outline: 2px solid var(--nnx-cyan); outline-offset: 5px; }
.nnx [hidden] { display: none !important; }
.nnx-topline { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.nnx-kicker { color: var(--nnx-cyan); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.nnx-model-note { color: var(--nnx-muted); font-size: 10px; line-height: 1.6; }
.nnx-intro { margin: 23px 0 28px; }
.nnx-intro h3 { font-size: clamp(23px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.04em; line-height: 1.18; margin-bottom: 10px; }
.nnx-intro p { color: var(--nnx-muted); font-size: 13px; line-height: 1.7; max-width: 610px; }
.nnx-controls { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--nnx-line); }
.nnx-control-label { display: block; font-size: 10px; letter-spacing: .05em; color: var(--nnx-muted); margin-bottom: 8px; }
.nnx-scales { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--nnx-line); border-radius: 9px; background: #101a2c; }
.nnx-scales button { display: inline-flex; align-items: baseline; gap: 5px; background: transparent; color: #bfcbdf; border: 0; border-radius: 5px; padding: 8px 15px; min-height: 42px; font-size: 16px; font-weight: 600; line-height: 1.3; transition: background .18s ease, color .18s ease; }
.nnx-scales button span { font-size: 10px; font-weight: 400; }
.nnx-scales button[aria-pressed="true"] { background: var(--nnx-cyan); color: #08151d; }
.nnx-scales button:hover:not([aria-pressed="true"]) { background: #1d2b41; color: #fff; }
.nnx-server-toggle { display: flex; align-items: center; gap: 11px; padding: 10px 0; border: 0; background: none; color: var(--nnx-text); font-size: 12px; line-height: 1.5; text-align: left; }
.nnx-toggle-hint { display: block; color: var(--nnx-muted); font-size: 10px; margin-top: 2px; }
.nnx-switch { width: 37px; height: 22px; border-radius: 22px; border: 1px solid #54617a; background: #172236; padding: 3px; flex: 0 0 auto; transition: background .18s; }
.nnx-switch > span { display: block; height: 14px; width: 14px; border-radius: 50%; background: #b5bfd0; transition: transform .18s, background .18s; }
.nnx-server-toggle[aria-checked="true"] .nnx-switch { background: #344362; border-color: var(--nnx-violet); }
.nnx-server-toggle[aria-checked="true"] .nnx-switch > span { transform: translateX(14px); background: var(--nnx-violet); }
.nnx-diagram { padding: 29px 0 25px; }
.nnx-human { text-align: center; color: var(--nnx-muted); font-size: 10px; letter-spacing: .04em; margin-bottom: 10px; }
.nnx-coordinator { width: fit-content; max-width: 100%; min-width: 260px; display: flex; align-items: center; justify-content: center; gap: 13px; margin: auto; padding: 17px 22px; border: 1px solid #465177; border-radius: 12px; background: linear-gradient(125deg, #172139, #10182c); }
.nnx-coordinator h4 { font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.nnx-coordinator p { color: var(--nnx-muted); font-size: 10px; margin-top: 4px; line-height: 1.4; }
.nnx-coordinator-icon { display: block; width: 34px; height: 34px; flex: 0 0 auto; }
.nnx-coordinator-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--nnx-violet); stroke-width: 1.2; }
.nnx-coordinator-icon circle { fill: #aaa1ff; stroke: #aaa1ff; }
.nnx-connection { width: 1px; height: 24px; background: linear-gradient(var(--nnx-violet), #416b7e); margin: auto; }
.nnx-network { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; margin-bottom: 24px; position: relative; }
.nnx-network::before, .nnx-network::after { content: ''; flex: 1 1 15px; height: 1px; background: #324458; }
.nnx-network > span:first-of-type { color: var(--nnx-cyan); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.nnx-network > span:last-of-type { color: var(--nnx-muted); font-size: 10px; }
.nnx-racks { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nnx-racks[data-groups="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.nnx-racks[data-groups="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 850px; margin: auto; }
.nnx-rack { position: relative; padding: 15px 14px 12px; background: var(--nnx-panel); border: 1px solid #2c394f; border-radius: 11px; min-width: 0; }
.nnx-rack::before { content: ''; position: absolute; left: 50%; top: -25px; height: 24px; width: 1px; background: #324458; }
.nnx-rack-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.nnx-rack-heading h4 { font-size: 10px; font-weight: 600; line-height: 1.4; color: #d1d9e8; letter-spacing: .03em; }
.nnx-rack-heading > span { font-size: 9px; color: var(--nnx-muted); line-height: 1.4; }
.nnx-phone-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px 6px; }
.nnx-phone { display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 4px 0; min-width: 0; color: #a5b3ca; border: 1px solid transparent; background: none; border-radius: 6px; }
.nnx-phone-device { position: relative; width: min(32px, 100%); height: 49px; border-radius: 6px; border: 1px solid #53627c; padding: 6px 3px 4px; background: #142139; transition: border-color .18s, background .18s; }
.nnx-phone-device::before { content: ''; position: absolute; width: 7px; height: 2px; top: 2px; left: calc(50% - 3.5px); border-radius: 1px; background: #7887a4; }
.nnx-phone-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; gap: 4px; background: #0a1323; border-radius: 2px; }
.nnx-phone-screen > span { width: 11px; height: 2px; border-radius: 2px; background: #53627c; }
.nnx-phone-screen > span:nth-child(2) { width: 15px; }
.nnx-phone-number { font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: .04em; line-height: 1.2; }
.nnx-phone:hover { background: #1b293f; color: var(--nnx-text); }
.nnx-phone[aria-pressed="true"] { color: var(--nnx-cyan); background: #14303b; border-color: #396674; }
.nnx-phone[aria-pressed="true"] .nnx-phone-device { border-color: var(--nnx-cyan); background: #193e49; }
.nnx-phone[aria-pressed="true"] .nnx-phone-screen > span { background: #72b7c2; }
.nnx-rack-caption { padding-top: 12px; color: #8f9bb1; font-size: 9px; line-height: 1.4; text-align: center; }
.nnx-servers { position: relative; display: flex; align-items: center; gap: 13px; margin-top: 23px; border: 1px solid #44416a; border-radius: 10px; padding: 16px 20px; background: #15182c; }
.nnx-servers::before { content: ''; position: absolute; top: -24px; left: 50%; width: 1px; height: 23px; background: #5f5887; }
.nnx-server-icon { display: block; width: 30px; flex: 0 0 30px; }
.nnx-server-icon svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--nnx-violet); stroke-width: 1.3; stroke-linecap: round; }
.nnx-servers h4 { font-size: 12px; font-weight: 600; line-height: 1.4; }
.nnx-servers p { color: var(--nnx-muted); font-size: 11px; margin-top: 4px; line-height: 1.6; }
.nnx-server-tag { margin-left: auto; color: var(--nnx-violet); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.nnx-selection { display: grid; grid-template-columns: .55fr 1.45fr; gap: 27px; padding: 23px 0; border-top: 1px solid var(--nnx-line); border-bottom: 1px solid var(--nnx-line); }
.nnx-selection-label { color: var(--nnx-muted); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; line-height: 1.6; display: block; margin-bottom: 7px; }
.nnx-cell-identity strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: .02em; line-height: 1.4; color: var(--nnx-cyan); font-variant-numeric: tabular-nums; }
.nnx-cell-identity > span:last-child { color: var(--nnx-muted); font-size: 10px; line-height: 1.6; display: block; margin-top: 7px; }
.nnx-role-detail h4 { font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4; margin-bottom: 7px; }
.nnx-role-detail p { color: #b6c1d4; font-size: 12px; line-height: 1.7; }
.nnx-role-detail .nnx-handoff { color: #8fa2ba; font-size: 11px; margin-top: 8px; }
.nnx-bottom { display: flex; gap: 25px; align-items: flex-start; justify-content: space-between; margin-top: 18px; }
.nnx-bottom p { color: var(--nnx-muted); font-size: 11px; line-height: 1.7; max-width: 600px; }
.nnx-bottom > span { color: #8f9bb1; font-size: 9px; line-height: 1.7; max-width: 165px; flex: 0 0 auto; }
.nnx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .nnx-racks[data-groups="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nnx-racks[data-groups="3"] .nnx-rack:last-child { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }
  .nnx-racks[data-groups="3"] .nnx-rack:last-child::before { display: none; }
}
@media (max-width: 650px) {
  .nnx { border-radius: 14px; }
  .nnx-racks, .nnx-racks[data-groups="2"], .nnx-racks[data-groups="3"] { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 16px; }
  .nnx-racks .nnx-rack:not(:first-child)::before { display: none; }
  .nnx-racks[data-groups="3"] .nnx-rack:last-child { width: 100%; }
  .nnx-selection { grid-template-columns: 1fr; gap: 19px; }
  .nnx-cell-identity { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: center; }
  .nnx-cell-identity .nnx-selection-label { grid-column: 1 / -1; }
  .nnx-cell-identity > span:last-child { margin-top: 0; max-width: 160px; }
  .nnx-bottom { flex-direction: column; gap: 10px; }
  .nnx-bottom > span { max-width: none; }
  .nnx-server-tag { display: none; }
  .nnx-network { gap: 7px; }
  .nnx-network > span:last-of-type { font-size: 9px; }
}
@media (max-width: 400px) {
  .nnx { padding: 18px; }
  .nnx-controls { gap: 14px; }
  .nnx-coordinator { min-width: 0; width: 100%; padding: 15px 13px; }
  .nnx-scales button { padding: 8px 13px; }
  .nnx-phone-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nnx-network > span:last-of-type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nnx *, .nnx *::before, .nnx *::after { transition: none !important; }
}
