/* Единая система оформления: тёмный графит с циановым акцентом, светлая тема через те же токены. */
:root {
  --bg: #0b1114; --bg2: #101a1f; --card: #142126; --card2: #1a2b31; --ink: #eaf3f5; --mute: #86a0a8; --line: #23383f;
  --acc: #5ee0e6; --acc-ink: #04181a; --acc2: #2aa9b3; --sand: #f0c987; --bad: #ff8c7a; --ok: #7be0a6;
  --bad-soft: #3d1c19; --warn-soft: #3a2f16; --ok-soft: #123324; --acc-soft: #12303a;
  --glow: rgba(94,224,230,.16); --shadow: 0 20px 50px rgba(0,0,0,.35);
  --d1: #5ee0e6; --d2: #7aa7ff; --d3: #f0c987; --d4: #ff9db0; --d5: #9be39b; --dh: #6f8791;
  --f: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace; color-scheme: dark; font-size: 15px;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #eef4f5; --bg2: #e4edef; --card: #ffffff; --card2: #f1f6f7; --ink: #0d1c20; --mute: #566f77; --line: #d5e2e5;
  --acc: #0b7f87; --acc-ink: #ffffff; --acc2: #0b7f87; --sand: #9a6a10; --bad: #c0392b; --ok: #1e7d4d;
  --bad-soft: #fde8e5; --warn-soft: #fff1d6; --ok-soft: #e1f4ea; --acc-soft: #dff1f2;
  --glow: rgba(11,127,135,.12); --shadow: 0 16px 40px rgba(20,50,60,.12);
  --d1: #0b9aa3; --d2: #3a6fe0; --d3: #c28a1c; --d4: #d9546f; --d5: #3f9a4a; --dh: #7b929b; color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #eef4f5; --bg2: #e4edef; --card: #ffffff; --card2: #f1f6f7; --ink: #0d1c20; --mute: #566f77; --line: #d5e2e5;
  --acc: #0b7f87; --acc-ink: #ffffff; --acc2: #0b7f87; --sand: #9a6a10; --bad: #c0392b; --ok: #1e7d4d;
  --bad-soft: #fde8e5; --warn-soft: #fff1d6; --ok-soft: #e1f4ea; --acc-soft: #dff1f2;
  --glow: rgba(11,127,135,.12); --shadow: 0 16px 40px rgba(20,50,60,.12);
  --d1: #0b9aa3; --d2: #3a6fe0; --d3: #c28a1c; --d4: #d9546f; --d5: #3f9a4a; --dh: #7b929b; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1200px 500px at 70% -10%, var(--glow), transparent 60%), var(--bg); background-attachment: fixed; color: var(--ink); font: 15px/1.5 var(--f); min-height: 100vh; padding-bottom: 120px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 20px; }
.sp, .grow { flex: 1; } .muted { color: var(--mute); } .small { font-size: 13px; } .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 18px; color: var(--ink); } .logo b { color: var(--acc); } .logo:hover { text-decoration: none; }
nav { display: flex; gap: 2px; } nav a { padding: 7px 13px; border-radius: 10px; color: var(--mute); font-weight: 600; font-size: 14px; } nav a:hover { background: var(--card); text-decoration: none; } nav a.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
#who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 17px; }
.narrow, .sync { text-align: center; padding: 8px 16px; font-size: 13px; background: var(--warn-soft); color: var(--sand); } .sync { background: var(--acc-soft); color: var(--acc); } [hidden] { display: none !important; }
main { padding-block: 22px; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 800; text-wrap: balance; }
h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; } h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 16px 0 8px; }
.lead { color: var(--mute); margin: 8px 0 18px; max-width: 62ch; }
.card, .panel { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel { padding: 22px; } .pad { padding: 16px 18px; } .gap { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); border-radius: 12px; padding: 9px 16px; cursor: pointer; font-weight: 600; min-height: 40px; }
.btn:hover { border-color: var(--acc2); text-decoration: none; } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); } .btn.pri:hover { filter: brightness(1.08); }
.btn.sm { padding: 5px 11px; min-height: 32px; font-size: 13px; border-radius: 10px; } .btn.danger { color: var(--bad); }
input[type=text], input[type=password], input[type=number], select, textarea { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 9px 12px; min-height: 40px; width: 100%; }
input[type=checkbox] { accent-color: var(--acc); width: 16px; height: 16px; }
label.f { display: block; font-size: 13px; color: var(--mute); } label.f > input, label.f > select { margin-top: 4px; color: var(--ink); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--mute); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg button.on { background: var(--acc); color: var(--acc-ink); } .seg em { font: 500 11px var(--mono); font-style: normal; background: var(--acc-soft); color: var(--acc); border-radius: 9px; padding: 1px 6px; margin-left: 6px; } .seg button.on em { background: rgba(0,0,0,.18); color: var(--acc-ink); }
.chip, .tag { display: inline-block; font: 12px var(--mono); padding: 2px 8px; border-radius: 7px; background: var(--card2); color: var(--mute); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: var(--ok); } .chip.bad { color: var(--bad); border-color: var(--bad); } .chip.warn { color: var(--sand); border-color: var(--sand); } .chip.pri { color: var(--acc); border-color: var(--acc2); }
.msg, .hint { border-radius: 14px; padding: 10px 13px; font-size: 14px; margin-top: 8px; background: var(--card2); border: 1px solid var(--line); }
.msg.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); } .msg.warn, .hint.warn { background: var(--warn-soft); border-color: transparent; color: var(--sand); } .msg.ok, .hint.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); } .msg.info { background: var(--acc-soft); border-color: transparent; color: var(--acc); }
.banner { padding: 12px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--warn-soft); color: var(--sand); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .banner.info { background: var(--acc-soft); color: var(--acc); }
table.t { width: 100%; border-collapse: collapse; } table.t th { text-align: left; font: 600 12px var(--f); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding: 9px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } table.t tr:last-child td { border-bottom: 0; } table.t .r { text-align: right; }
.scroll { overflow: auto; max-height: 64vh; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; } .tabs button { border: 0; background: none; padding: 10px 16px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; color: var(--mute); } .tabs button.on { color: var(--acc); border-color: var(--acc); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pi { width: 100px !important; min-height: 34px !important; padding: 4px 8px !important; text-align: right; }
.toast { position: fixed; right: 16px; bottom: 100px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; z-index: 70; max-width: 420px; box-shadow: var(--shadow); } .toast.bad { background: var(--bad); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; width: min(500px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); } .modal .box.wide { width: min(980px, 100%); }

/* главная */
.hero { padding: 18px 0 8px; }
.group { margin-top: 22px; }
.group > .head { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 2px; border: 0; background: none; width: 100%; text-align: left; }
.group > .head h2 { margin: 0; } .group .caret { transition: transform .15s; color: var(--mute); } .group.closed .caret { transform: rotate(-90deg); } .group.closed .plist { display: none; }
.plist { margin-top: 10px; max-height: 3 * 96px; overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.prow { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; min-height: 86px; transition: border-color .15s; color: var(--ink); } .prow:hover { border-color: var(--acc2); text-decoration: none; }
.prow .code { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .prow .nm { font-size: 14px; color: var(--mute); } .prow .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pfind { max-width: 340px; margin: 14px 0 0; }

/* сборка */
.crumbs { color: var(--mute); font-size: 13px; margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.presets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.preset { text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; min-width: 150px; flex: 1; } .preset:hover, .preset.on { border-color: var(--acc); } .preset b { display: block; } .preset span { color: var(--mute); font-size: 12px; }
.rack { background: linear-gradient(180deg, var(--card2), var(--bg2)); border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: relative; }
.rack .u { position: absolute; right: 14px; top: -10px; font: 500 11px var(--mono); background: var(--bg); color: var(--mute); border: 1px solid var(--line); padding: 1px 8px; border-radius: 6px; }
.bays { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .bays.row8 { grid-template-columns: repeat(8, 1fr); }
.bay { aspect-ratio: 2.4 / 1; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bay.f { border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 18px -6px currentColor; animation: pop .25s ease-out; }
.bay.f::after { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,.9); }
.bay.f::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,.14) 10px 11px); }
.bay.hs { outline: 2px dashed var(--sand); outline-offset: 2px; } .bays.row8 .bay { aspect-ratio: 1 / 2.2; }
@keyframes pop { from { transform: scale(.85); opacity: .3; } } @media (prefers-reduced-motion: reduce) { .bay.f { animation: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font: 12px var(--mono); color: var(--mute); } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; } .slots small { font: 11px var(--mono); color: var(--mute); width: 74px; }
.slot { width: 38px; height: 20px; border-radius: 5px; border: 1px dashed var(--line); background: var(--bg); } .slot.f { border: 1px solid transparent; background: var(--acc2); } .slot.o.f { background: var(--d2); } .slot.m.f { background: var(--d3); }
.dimms { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; flex: 1; min-width: 200px; } .dimm { height: 18px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line); } .dimm.f { background: var(--d5); border-color: transparent; }
.shelves { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .shelf { font: 12px var(--mono); border: 1px solid var(--d2); color: var(--d2); border-radius: 8px; padding: 4px 10px; }
.finder { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 18px; align-items: center; }
.finder input[type=range] { width: 100%; accent-color: var(--acc); padding: 0; min-height: 28px; border: 0; background: none; } .finder .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .finder small { color: var(--mute); display: block; }
.ring { position: relative; width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto; } .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ring .mid b { font-size: 32px; letter-spacing: -.03em; line-height: 1; } .ring .mid span { font-size: 12px; color: var(--mute); margin-top: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .tile { background: var(--card2); border-radius: 14px; padding: 12px 14px; } .tile small { color: var(--mute); display: block; font-size: 12px; } .tile b { font-size: 24px; letter-spacing: -.02em; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kv b { font-variant-numeric: tabular-nums; }
.meter { margin: 8px 0; } .meter .t { display: flex; justify-content: space-between; font-size: 13px; } .bar2 { height: 6px; background: var(--line); border-radius: 3px; margin-top: 4px; overflow: hidden; } .bar2 i { display: block; height: 100%; background: var(--acc); transition: width .2s; } .meter.full .bar2 i { background: var(--sand); } .meter.over .bar2 i { background: var(--bad); }
.shelfh { margin-top: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .shelfh h2 { margin: 0; font-size: 22px; } .hintline { color: var(--mute); font-size: 13px; margin: -6px 0 14px; max-width: 80ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.pc:hover { border-color: var(--acc2); transform: translateY(-2px); } .pc.sel { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset, 0 10px 30px -14px var(--acc); } .pc.off { opacity: .5; } .pc.off:hover { transform: none; border-color: var(--line); }
.pc .cap { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; } .pc .cap small { font-size: 14px; color: var(--mute); font-weight: 600; } .pc .cap.t2 { font-size: 18px; letter-spacing: -.01em; }
.pc .nm { color: var(--mute); font-size: 13px; } .pc .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc .rowb { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; flex-wrap: wrap; }
.pr { font-weight: 700; font-variant-numeric: tabular-nums; } .pr small { display: block; color: var(--mute); font-weight: 500; font-size: 11px; }
.why { color: var(--bad); font-size: 12px; }
.qty { display: inline-flex; align-items: center; background: var(--card2); border-radius: 12px; border: 1px solid var(--line); }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: 12px; } .qty button:hover:not(:disabled) { background: var(--line); } .qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 54px; min-height: 36px; border: 0; background: none; text-align: center; padding: 0; font: 600 14px var(--mono); -moz-appearance: textfield; } .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addb { background: var(--acc); color: var(--acc-ink); border: 0; border-radius: 12px; height: 38px; padding: 0 16px; font-weight: 700; cursor: pointer; } .addb:disabled { background: var(--card2); color: var(--mute); cursor: not-allowed; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.dock .in { pointer-events: auto; max-width: 1280px; margin: 0 auto; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 12px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dock .tot { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; } .dock small { color: var(--mute); display: block; font-size: 12px; }
.status { font: 600 12px var(--mono); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); } .status.ok { color: var(--ok); border-color: var(--ok); } .status.warn { color: var(--sand); border-color: var(--sand); } .status.bad { color: var(--bad); border-color: var(--bad); }
.drawer { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); display: flex; justify-content: flex-end; }
.drawer .sheet { width: min(480px, 100%); background: var(--bg2); border-left: 1px solid var(--line); padding: 20px; overflow: auto; }
.li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .li .c { font: 12px var(--mono); color: var(--mute); } .li .q { font: 13px var(--mono); color: var(--mute); white-space: nowrap; text-align: right; }
.diff-add { color: var(--ok); } .diff-del { color: var(--bad); } .diff-chg { color: var(--sand); }
@media (max-width: 960px) { .stage { grid-template-columns: minmax(0, 1fr); } .finder { grid-template-columns: minmax(0, 1fr); } .prow { grid-template-columns: minmax(0, 1fr) auto; } .prow .nm { grid-column: 1 / -1; } }
@media (max-width: 560px) { .wrap { padding-inline: 14px; } .pgrid { grid-template-columns: 1fr; } .bays { gap: 5px; } .panel { padding: 16px; } .dock .tot { font-size: 21px; } }
.cu-in { width: 240px; } .nm-in { width: 240px; } .qty-in { width: 80px; }
@media (max-width: 560px) { .cu-in { flex: 1 1 100%; width: auto; } .nm-in { flex: 1 1 100%; width: auto; } .qty-in { flex: 1 1 100%; width: auto; } }

/* сервер 1U */
:root { --pcb: #16352f; --pcb2: #1d453d; --metal1: #b9c6cb; --metal2: #7d8d94; } 
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --pcb: #bcd9cc; --pcb2: #a7cbb9; --metal1: #dfe7ea; --metal2: #9aabb2; } }
:root[data-theme="light"] { --pcb: #bcd9cc; --pcb2: #a7cbb9; --metal1: #dfe7ea; --metal2: #9aabb2; }
.stage.srvstage { grid-template-columns: minmax(0, 1fr) 320px; }
.srv .front { display: flex; gap: 5px; align-items: stretch; padding: 5px 0; background: linear-gradient(180deg, #394c54, #1d2a2f); border-radius: 5px; border: 1px solid #0c1417; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); height: 52px; }
.srv .ear { width: 26px; background: linear-gradient(90deg, #56686f, #2b3a40); border-radius: 4px 0 0 4px; display: grid; place-items: center; } .srv .ear.r { border-radius: 0 4px 4px 0; } .srv .ear i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.sbay { flex: 1; background: #070c0e; border: 1px solid #000; border-radius: 2px; position: relative; overflow: hidden; background-image: repeating-linear-gradient(0deg, #0c1417 0 2px, #05090b 2px 4px); }
.sbay.f { background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); border-color: color-mix(in srgb, var(--c) 40%, #000); }
.sbay.f::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.35); } .sbay i { position: absolute; right: 4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: transparent; } .sbay.f i { background: #fff; box-shadow: 0 0 5px #fff; }
.srv .cap-l { font: 11px var(--mono); color: var(--mute); margin: 4px 2px 10px; }
.board { display: flex; gap: 8px; align-items: stretch; background: linear-gradient(180deg, var(--pcb2), var(--pcb)); border: 1px solid var(--line); border-radius: 6px; padding: 8px; height: 112px; }
.fans { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; width: 14px; } .fans span { flex: 1; background: var(--metal2); border-radius: 2px; opacity: .6; }
.cgs { flex: 1; display: flex; gap: 14px; min-width: 0; } .cg { flex: 1; display: flex; gap: 5px; align-items: stretch; min-width: 0; }
.dcol { display: flex; gap: 2px; flex: 0 0 auto; } .dm { width: 5px; background: rgba(0,0,0,.35); border-radius: 1px; } .dm.f { background: linear-gradient(180deg, var(--d5), color-mix(in srgb, var(--d5) 60%, #000)); }
.cpu { flex: 1; min-width: 34px; border: 1px dashed var(--mute); border-radius: 4px; display: grid; place-items: center; color: var(--mute); font: 10px var(--mono); } .cpu.f { border: 1px solid #000; background: linear-gradient(135deg, var(--metal1), var(--metal2)); color: #0d1c20; }
.psus { display: flex; flex-direction: column; gap: 4px; width: 38px; } .psus span { flex: 1; background: linear-gradient(180deg, var(--metal2), #4a5a61); border-radius: 3px; display: grid; place-items: center; font: 9px var(--mono); color: #fff; }
.slotrow { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sl { font: 10px var(--mono); padding: 3px 9px; border-radius: 3px; border: 1px dashed var(--line); color: var(--mute); background: var(--bg); } .sl.f { border: 1px solid transparent; background: var(--acc2); color: #fff; } .sl.o.f { background: var(--d2); } .sl.m.f { background: var(--d3); color: #111; }
@media (max-width: 960px) { .stage.srvstage { grid-template-columns: minmax(0, 1fr); } }
.stage.srvstage { align-items: start; } .srv .front, .board { max-width: 100%; }
.lcol { display: grid; gap: 20px; min-width: 0; } .lcol .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.srvstage #b-right { position: sticky; top: 76px; max-height: calc(100vh - 190px); overflow: auto; }
.lcol .seg { flex-wrap: wrap; overflow: visible; } .lcol .hintline { margin-top: 10px; }

/* сетевые устройства */
.net { display: grid; gap: 14px; } .pgroup small { font: 11px var(--mono); color: var(--mute); display: block; margin-bottom: 6px; }
.ports { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: linear-gradient(180deg, #2c3b42, #1b272c); border-radius: 5px; border: 1px solid #0c1417; }
.port { width: 18px; height: 14px; border-radius: 2px; background: #05090b; border: 1px solid #000; } .port.f { background: var(--acc2); box-shadow: 0 0 6px -1px var(--acc); }
.chassis { display: flex; gap: 6px; padding: 8px; background: linear-gradient(180deg, #2c3b42, #1b272c); border-radius: 5px; border: 1px solid #0c1417; flex-wrap: wrap; }
.cslot { flex: 1 1 56px; min-width: 56px; height: 64px; border: 1px dashed #55666d; border-radius: 3px; display: grid; place-items: center; font: 11px var(--mono); color: #7f9299; background: #0b1215; } .cslot.f { border: 1px solid #000; background: linear-gradient(180deg, var(--acc2), color-mix(in srgb, var(--acc2) 50%, #000)); color: #fff; }

.dpath { display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.dpath em { align-self: center; color: var(--mute, #7f9299); font-style: normal; }
.dstep { padding: 6px 10px; border: 1px dashed #55666d; border-radius: 4px; display: grid; gap: 2px; min-width: 84px; text-align: center; } .dstep i { font-style: normal; font: 11px var(--mono); opacity: .8; }
.dstep.f { border: 1px solid var(--acc2); background: color-mix(in srgb, var(--acc2) 18%, transparent); }


