/* RackPilot — SEG dark theme (orange #FF972B / purple #602C8D) */
:root {
  --bg: #0d0d11; --panel: #15151b; --panel2: #1b1b23; --panel3: #22222c;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #ecebf2; --text2: #b3b1c2; --muted: #7c7a8e;
  --orange: #FF972B; --orange-d: #d9701a; --purple: #602C8D; --purple-l: #9B7BEA;
  --up: #22c55e; --warn: #f5a524; --down: #ef4444; --info: #3D8FE6; --unknown: #6b6a7a;
  --c1: #D9701A; --c2: #9B7BEA; --c3: #1FA99C; --c4: #3D8FE6;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 13px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2c38; border-radius: 6px; border: 2px solid var(--bg); }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .t2 { color: var(--text2); }
.small { font-size: 11.5px; } .tiny { font-size: 10.5px; letter-spacing: .02em; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; } .gap16 { gap: 16px; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- shell ---------- */
#app { display: grid; grid-template-columns: 220px 1fr; height: 100vh; }
#side { background: #0a0a0e; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--orange), var(--purple));
  display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 14px; letter-spacing: -.5px; }
.brand b { font-size: 15px; letter-spacing: .2px; } .brand small { display: block; color: var(--muted); font-size: 10.5px; }
.nav { padding: 10px 8px; flex: 1; }
.nav .sec { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 12px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text2); font-weight: 500; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.active { background: linear-gradient(90deg, rgba(255,151,43,.16), rgba(255,151,43,.02)); color: var(--text); box-shadow: inset 2px 0 0 var(--orange); }
.nav a svg { width: 16px; height: 16px; opacity: .85; flex: none; }
.nav a .cnt { margin-left: auto; font-size: 10.5px; background: var(--panel3); color: var(--text2); padding: 0 6px; border-radius: 9px; }
.nav a .cnt.bad { background: rgba(239,68,68,.18); color: #ff8a8a; }
.side-foot { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
#main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
#top { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(13,13,17,.85); backdrop-filter: blur(8px); flex: none; }
#top h1 { font-size: 16px; margin: 0; font-weight: 650; }
#top .crumb { color: var(--muted); }
#content { flex: 1; overflow: auto; padding: 18px 20px 40px; }
.clock { font-family: var(--mono); color: var(--text2); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(34,197,94,.15); display: inline-block; }
.live-dot.off { background: var(--down); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.search { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 260px; outline: none; }
.search:focus { border-color: rgba(255,151,43,.5); }
.demo-banner { background: linear-gradient(90deg, var(--purple), #3b1b57); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.card h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--text2); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card h3 .act { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
@media (max-width: 1400px) { .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1000px) { .g3, .g2 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; } #app { grid-template-columns: 64px 1fr; } .nav a span, .nav .sec, .brand div, .side-foot { display: none; } }
.kpi { padding: 14px 16px; }
.kpi .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.kpi .val { font-size: 28px; font-weight: 750; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--text2); font-size: 11.5px; margin-top: 2px; }
.kpi.accent { background: linear-gradient(135deg, rgba(255,151,43,.14), rgba(96,44,141,.14)); border-color: rgba(255,151,43,.25); }

/* ---------- status ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--unknown); }
.dot.up { background: var(--up); } .dot.down { background: var(--down); box-shadow: 0 0 0 3px rgba(239,68,68,.18); animation: pulse 1.6s infinite; }
.dot.warning { background: var(--warn); } .dot.pending, .dot.unknown { background: var(--unknown); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--panel3); color: var(--text2); white-space: nowrap; }
.badge.up { background: rgba(34,197,94,.13); color: #5ee38f; } .badge.down, .badge.critical { background: rgba(239,68,68,.15); color: #ff8080; }
.badge.warning { background: rgba(245,165,36,.14); color: #fbbf4d; } .badge.info { background: rgba(61,143,230,.15); color: #7fb5f2; }
.badge.or { background: rgba(255,151,43,.15); color: var(--orange); } .badge.pu { background: rgba(155,123,234,.16); color: #bba4f5; }

/* status tiles grid (the green/red blocks) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { border-radius: 8px; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; position: relative; overflow: hidden; transition: transform .08s, border-color .1s; }
.tile:hover { transform: translateY(-1px); border-color: var(--line2); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--unknown); }
.tile.up::before { background: var(--up); } .tile.warning::before { background: var(--warn); }
.tile.down { background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(239,68,68,.08)); border-color: rgba(239,68,68,.4); }
.tile.down::before { background: var(--down); }
.tile .n { font-weight: 650; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .m { color: var(--muted); font-size: 10.5px; display: flex; justify-content: space-between; margin-top: 3px; gap: 4px; }
.tile .bars { display: flex; gap: 3px; margin-top: 6px; }
.tile .bars i { flex: 1; height: 3px; border-radius: 2px; background: var(--panel3); position: relative; overflow: hidden; }
.tile .bars i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.grp-title { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--text2); font-weight: 650; font-size: 12px; }
.grp-title:first-child { margin-top: 0; }

/* meters */
.meter { height: 6px; border-radius: 4px; background: var(--panel3); overflow: hidden; min-width: 60px; }
.meter > b { display: block; height: 100%; border-radius: 4px; background: var(--c4); }
.meter.ok > b { background: var(--up); } .meter.hi > b { background: var(--warn); } .meter.crit > b { background: var(--down); }
.mcell { display: flex; align-items: center; gap: 8px; } .mcell .meter { flex: 1; } .mcell span { width: 38px; text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--text2); }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; cursor: default; white-space: nowrap; }
table.t th.sort { cursor: pointer; } table.t th.sort:hover { color: var(--text); }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: rgba(255,255,255,.025); }
table.t tr.sel td { background: rgba(255,151,43,.07); }
.tbl-wrap { overflow: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.tbl-wrap.max { max-height: 520px; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--panel3); }
.btn.pri { background: var(--orange); border-color: var(--orange); color: #1a0f00; } .btn.pri:hover { background: #ffab52; }
.btn.danger { border-color: rgba(239,68,68,.4); color: #ff8a8a; } .btn.danger:hover { background: rgba(239,68,68,.12); }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); } .btn.ghost:hover { background: var(--panel2); color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
input.in, select.in, textarea.in { background: #0f0f14; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; outline: none; width: 100%; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: rgba(255,151,43,.55); }
textarea.in { font-family: var(--mono); font-size: 12px; min-height: 90px; resize: vertical; }
label.f { display: block; margin-bottom: 10px; } label.f > span { display: block; font-size: 11px; color: var(--text2); margin-bottom: 4px; font-weight: 550; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text2); font-size: 12px; font-weight: 550; }
.seg button.on { background: var(--panel3); color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); }
.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--text2); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--orange); }

/* device header */
.dhead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dhead .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); }
.dhead .icon svg { width: 24px; height: 24px; color: var(--orange); }
.dhead h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.dhead .meta { color: var(--text2); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }

/* charts */
.chart { position: relative; height: 180px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .tip { position: absolute; pointer-events: none; background: rgba(10,10,14,.95); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; font-size: 11.5px; white-space: nowrap; z-index: 5; display: none; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.chart .tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.spark { height: 34px; position: relative; } .spark canvas { width: 100%; height: 100%; }

/* uptime strip */
.ustrip { display: flex; gap: 2px; height: 26px; }
.ustrip i { flex: 1; border-radius: 2px; background: var(--up); opacity: .9; }
.ustrip i.p { background: var(--warn); } .ustrip i.d { background: var(--down); } .ustrip i.n { background: var(--panel3); }

/* rack */
.racks { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.rack { width: 300px; background: #0b0b0f; border: 2px solid #2a2a35; border-radius: 8px; padding: 8px 8px 8px 30px; position: relative; }
.rack .rname { position: absolute; top: -22px; left: 0; font-weight: 650; font-size: 12px; color: var(--text2); }
.rack .u { height: 17px; border-bottom: 1px dashed rgba(255,255,255,.035); position: relative; }
.rack .u::before { content: attr(data-u); position: absolute; left: -24px; top: 2px; font-size: 9px; color: #4b4a5a; font-family: var(--mono); width: 18px; text-align: right; }
.rack .dev { position: absolute; left: 30px; right: 8px; border-radius: 4px; background: linear-gradient(180deg, #2a2a36, #1d1d26); border: 1px solid #3a3a48; display: flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 11px; cursor: pointer; overflow: hidden; }
.rack .dev:hover { border-color: var(--orange); }
.rack .dev .leds { display: flex; gap: 3px; margin-left: auto; }
.rack .dev .leds i { width: 5px; height: 5px; border-radius: 50%; background: #3a3a48; }
.rack .dev.up .leds i:first-child { background: var(--up); box-shadow: 0 0 6px var(--up); }
.rack .dev.down { border-color: var(--down); background: linear-gradient(180deg, #3d1a1e, #261316); }
.rack .dev.down .leds i:first-child { background: var(--down); box-shadow: 0 0 6px var(--down); animation: blink 1s infinite; }
.rack .dev.warning .leds i:first-child { background: var(--warn); }
.rack .dev .leds i.act { background: var(--info); animation: blink .4s infinite alternate; }
@keyframes blink { 50% { opacity: .3; } }
.rack .dev .bar { width: 34px; height: 4px; background: #111; border-radius: 2px; overflow: hidden; } .rack .dev .bar b { display: block; height: 100%; background: var(--c1); }

/* switch faceplate */
.faceplate { background: linear-gradient(180deg, #23232d, #17171e); border: 1px solid #34343f; border-radius: 8px; padding: 12px 14px; display: flex; gap: 16px; align-items: center; overflow-x: auto; }
.ports { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 26px); gap: 4px; }
.port { width: 28px; height: 26px; border-radius: 3px; background: #0b0b0e; border: 1px solid #2f2f3a; position: relative; cursor: pointer; display: grid; place-items: center; font-size: 8.5px; color: #5d5c6c; font-family: var(--mono); }
.port.up { border-color: rgba(34,197,94,.7); color: #b8f5cf; background: #0e1a12; }
.port.up::after { content: ""; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--up); }
.port.poe::before { content: ""; position: absolute; top: 2px; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.port.hot { background: #2a1a08; border-color: var(--orange); }
.port.sfp { width: 34px; }

/* terminal & logs */
.term-wrap { background: #0a0a0d; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; height: calc(100vh - 290px); min-height: 360px; }
.term-wrap.full { position: fixed; inset: 10px; z-index: 100; height: auto; }
.logbox { background: #0a0a0d; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; height: calc(100vh - 320px); min-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: #cfcde0; }
.logbox .err { color: #ff8a8a; } .logbox .wrn { color: #fbbf4d; } .logbox .ok2 { color: #6ee7a0; } .logbox .hl { background: rgba(255,151,43,.25); color: #fff; }
.logbox .s2 { color: #7fb5f2; } .logbox .s4 { color: #fbbf4d; } .logbox .s5 { color: #ff8a8a; }
pre.out { background: #0a0a0d; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-family: var(--mono); font-size: 11.5px; max-height: 420px; overflow: auto; white-space: pre-wrap; margin: 0; color: #cfcde0; }
.sql { font-family: var(--mono); font-size: 11.5px; color: #e2d9ff; max-width: 680px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sql.wrap { white-space: pre-wrap; word-break: break-word; }

/* feed */
.feed { display: flex; flex-direction: column; }
.feed .it { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; align-items: flex-start; }
.feed .it:last-child { border-bottom: 0; }
.feed .it time { color: var(--muted); font-family: var(--mono); font-size: 11px; flex: none; width: 54px; }
.scroll { max-height: 360px; overflow: auto; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 200; backdrop-filter: blur(3px); }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; width: min(620px, 94vw); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal.wide { width: min(980px, 96vw); }
.modal header { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14px; display: flex; align-items: center; }
.modal header .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 18px; }
.modal .body { padding: 16px 18px; } .modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--orange); border-radius: 8px; padding: 9px 14px; min-width: 260px; max-width: 420px; box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 12.5px; animation: tin .2s; }
.toast.err { border-left-color: var(--down); } .toast.ok { border-left-color: var(--up); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy code { flex: 1; background: #0a0a0d; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-family: var(--mono); font-size: 11.5px; overflow-x: auto; white-space: nowrap; color: #ffd2a3; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text2); font-size: 14px; margin-bottom: 6px; }
.note { background: rgba(155,123,234,.08); border: 1px solid rgba(155,123,234,.25); border-radius: 8px; padding: 10px 12px; color: var(--text2); font-size: 12px; }
.note.warn { background: rgba(245,165,36,.07); border-color: rgba(245,165,36,.3); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(96,44,141,.35), transparent 50%), radial-gradient(circle at 80% 90%, rgba(255,151,43,.18), transparent 45%), var(--bg); }
.login .box { width: 360px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.login .brand { border: 0; padding: 0 0 20px; }
.login .err { color: #ff8a8a; font-size: 12px; min-height: 18px; margin-bottom: 8px; }
td > .row > svg, .ic svg, td svg { width: 18px; height: 18px; flex: none; color: var(--text2); }
.card h3 svg { width: 14px; height: 14px; color: var(--orange); }
.btn.icon { padding: 5px 7px; } .btn.icon svg { width: 15px; height: 15px; }
.vcard { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.vcard .t { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.hbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--panel3); }
.hbar b { display: block; height: 100%; }
.toplist .r { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; }
.toplist .r .nm { width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist .r .meter { flex: 1; }
.toplist .r .v { width: 70px; text-align: right; color: var(--text2); font-variant-numeric: tabular-nums; }

/* ================= display boards (signage) ================= */
body.ds-body { overflow: hidden; background: #000; }
#ds-stage { position: fixed; inset: 0; background: #000; }
#ds { position: absolute; transform-origin: 0 0; background: radial-gradient(ellipse at 15% 0%, rgba(96,44,141,.35), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(255,151,43,.12), transparent 50%), #0b0b10;
  padding: 34px 40px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; color: var(--text); }
.ds-err { margin: auto; text-align: center; font-size: 28px; color: #ff8a8a; } .ds-err small { color: var(--muted); font-size: 18px; }
.ds-head { display: flex; align-items: center; gap: 22px; flex: none; }
.ds-mark { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--acc), var(--purple)); display: grid; place-items: center; font-weight: 900; font-size: 26px; color: #fff; }
.ds-logo { height: 70px; max-width: 320px; object-fit: contain; }
.ds-title { flex: 1; min-width: 0; } .ds-title .n { font-size: 38px; font-weight: 800; letter-spacing: -.5px; } .ds-title .s { color: var(--text2); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-state { padding: 12px 22px; border-radius: 14px; font-weight: 800; font-size: 20px; letter-spacing: .08em; white-space: nowrap; }
.ds-state.ok { background: rgba(34,197,94,.14); color: #5ee38f; border: 1px solid rgba(34,197,94,.35); }
.ds-state.warn { background: rgba(245,165,36,.14); color: #fbbf4d; border: 1px solid rgba(245,165,36,.4); }
.ds-state.bad { background: rgba(239,68,68,.2); color: #ff8080; border: 1px solid rgba(239,68,68,.5); animation: dsPulse 2s infinite; }
@keyframes dsPulse { 50% { box-shadow: 0 0 0 10px rgba(239,68,68,0), 0 0 30px rgba(239,68,68,.35); } }
.ds-clock { text-align: right; } .ds-clock .t { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1; } .ds-clock .d { color: var(--text2); font-size: 16px; margin-top: 4px; }
.ds-conn { position: absolute; right: 18px; bottom: 10px; font-size: 13px; color: #5ee38f; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.ds-conn.bad { color: #ff8080; opacity: 1; }
.ds-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 18px; flex: none; }
.ds-kpi { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 22px; }
.ds-kpi .l { color: var(--muted); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ds-kpi .v { font-size: 54px; font-weight: 850; letter-spacing: -1.5px; line-height: 1.1; font-variant-numeric: tabular-nums; } .ds-kpi .v span { font-size: 26px; color: var(--muted); } .ds-kpi .v .sm { font-size: 38px; color: inherit; }
.ds-kpi .s { color: var(--text2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-kpi.acc { background: linear-gradient(135deg, rgba(255,151,43,.18), rgba(96,44,141,.18)); border-color: rgba(255,151,43,.3); }
.ds-kpi.bad .v { color: var(--down); } .ds-kpi.good .v { color: #5ee38f; } .ds-kpi.warn .v { color: var(--warn); }
.ds-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 600px; gap: 22px; }
.ds-main3 { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.5fr 1fr 760px; gap: 22px; }
.ds-col { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow: hidden; }
.ds-portrait .ds-col { flex: 1; } .ds-portrait .ds-tiles-wrap { flex: 1.6; min-height: 0; }
.ds-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .ds-two:empty { display: none; }
.ds-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 22px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ds-col > .ds-card, .ds-two > .ds-card { flex: none; } .ds-card.ds-grow { flex: 1 1 0; min-height: 120px; }
.ds-card h4 { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--text2); display: flex; gap: 10px; align-items: center; }
.ds-card h4 em { font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 10px; letter-spacing: .06em; } .ds-card h4 em.ok { background: rgba(34,197,94,.15); color: #5ee38f; } .ds-card h4 em.bad { background: rgba(239,68,68,.2); color: #ff8080; }
.ds-tiles-wrap { min-height: 0; }
.ds-tiles { --tw: 240px; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tw), 1fr)); gap: 12px; align-content: start; }
.ds-tile { border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.05); border-left: 6px solid var(--up); }
.ds-tile.warning { border-left-color: var(--warn); } .ds-tile.pending, .ds-tile.unknown { border-left-color: var(--unknown); }
.ds-tile.down { background: linear-gradient(135deg, rgba(239,68,68,.35), rgba(239,68,68,.12)); border-left-color: var(--down); animation: dsPulse 2s infinite; }
.ds-tile .n { font-size: 20px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ds-tile .m { color: var(--text2); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tile.down .m { color: #ffb4b4; font-weight: 700; }
.ds-tile .b { display: flex; gap: 6px; margin-top: 8px; } .ds-tile .b i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; } .ds-tile .b b { display: block; height: 100%; border-radius: 3px; }
.ds-tiles.xs .ds-tile { padding: 8px 10px; } .ds-tiles.xs .ds-tile .n { font-size: 15px; } .ds-tiles.xs .ds-tile .m { font-size: 12px; } .ds-tiles.xs { gap: 8px; }
.ds-allgood { color: #5ee38f; font-size: 26px; font-weight: 750; padding: 14px 0; }
.ds-alert { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 17px; line-height: 1.3; }
.ds-alert > span { color: var(--warn); } .ds-alert.critical > span { color: var(--down); } .ds-alert small { display: block; color: var(--muted); font-size: 13px; }
.ds-ev { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 15px; color: var(--text2); white-space: nowrap; overflow: hidden; }
.ds-ev time { color: var(--muted); font-family: var(--mono); font-size: 13px; flex: none; } .ds-ev span { overflow: hidden; text-overflow: ellipsis; }
.ds-ev i, .ds-node i, .ds-net i { width: 10px; height: 10px; border-radius: 50%; background: var(--up); flex: none; display: inline-block; }
.ds-ev i.critical, .ds-node i.down, .ds-net i.down { background: var(--down); } .ds-ev i.warning, .ds-net i.warning { background: var(--warn); }
.ds-node { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 17px; } .ds-node span { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-bar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; } .ds-bar b { display: block; height: 100%; border-radius: 6px; }
.ds-sub { color: var(--text2); font-size: 14px; margin-top: 8px; } .ds-sub .lg { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin: 0 5px 2px 12px; vertical-align: middle; }
.ds-net { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; } .ds-net .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ds-net .pt { color: var(--muted); font-size: 14px; }
.ds-net .r { width: 120px; text-align: right; font-family: var(--mono); font-size: 14px; }
.ds-dns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .ds-dns div { color: var(--muted); font-size: 13px; } .ds-dns b { display: block; color: var(--text); font-size: 30px; font-weight: 800; }
.ds-ultrawide .ds-kpi .v { font-size: 64px; } .ds-ultrawide .ds-title .n { font-size: 46px; }

.faceplate.compact .port { width: 20px; height: 20px; font-size: 7.5px; } .faceplate.compact .ports { grid-template-rows: repeat(2, 20px); gap: 3px; } .faceplate.compact .port.sfp { width: 26px; } .faceplate.compact { padding: 10px; }
.ds-portrait .ds-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } .ds-portrait .ds-kpi .v { font-size: 46px; }

.dt-ico{display:inline-flex;flex:none;width:18px;height:18px;color:var(--t2)}.dt-ico svg{width:18px;height:18px}

/* ---------- compact (7" Pi screen) board ---------- */
.ds-compact { grid-template-columns: 1fr 440px; gap: 16px; }
#ds.ds-compact, .ds-compact .ds-card { padding: 14px 16px; }
#ds.ds-compact { gap: 14px; }
.ds-compact .ds-alert { font-size: 15px; } .ds-compact .ds-net { font-size: 14px; padding: 5px 0; }

/* ---------- phone board / home-screen app ---------- */
body.pm-body { background: #0b0b10; overflow-y: auto; -webkit-text-size-adjust: 100%; }
#pm { max-width: 640px; margin: 0 auto; padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom)); font-size: 15px; }
.pm-head { padding: 14px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 2; background: #0b0b10; }
.pm-head.ok { background: linear-gradient(180deg, rgba(34,197,94,.16), #0b0b10 85%); }
.pm-head.warn { background: linear-gradient(180deg, rgba(245,165,36,.18), #0b0b10 85%); }
.pm-head.bad { background: linear-gradient(180deg, rgba(239,68,68,.28), #0b0b10 85%); }
.pm-top { display: flex; align-items: center; gap: 12px; }
.pm-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #FF972B, #602C8D); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 14px; flex: none; }
.pm-title { font-weight: 800; font-size: 17px; } .pm-sub { color: var(--muted); font-size: 12px; }
.pm-ref { background: rgba(255,255,255,.08); color: var(--text); border: 0; border-radius: 10px; width: 40px; height: 40px; font-size: 20px; }
.pm-state { font-size: 24px; font-weight: 850; letter-spacing: -.3px; margin: 14px 0 12px; }
.pm-head.ok .pm-state { color: #5ee38f; } .pm-head.warn .pm-state { color: #fbbf4d; } .pm-head.bad .pm-state { color: #ff8080; }
.pm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.pm-kpis > div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 10px; } .pm-kpis b { font-size: 22px; font-weight: 800; } .pm-kpis span { color: var(--muted); font-size: 12px; margin-left: 3px; }
.pm-kpis .bad b { color: var(--down); } .pm-kpis .warn b { color: var(--warn); }
.pm-sites { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.pm-sites button { flex: none; background: rgba(255,255,255,.06); color: var(--text2); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 7px 14px; font-size: 13px; }
.pm-sites button.on { background: rgba(255,151,43,.18); color: #ffb366; border-color: rgba(255,151,43,.4); }
.pm-sec { margin: 12px 12px 0; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; }
.pm-sec h3 { margin: 0; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.pm-gh { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pm-gh em { font-style: normal; font-size: 11px; padding: 2px 9px; border-radius: 10px; letter-spacing: .04em; text-transform: none; }
.pm-gh em.ok { background: rgba(34,197,94,.15); color: #5ee38f; } .pm-gh em.warn { background: rgba(245,165,36,.18); color: #fbbf4d; } .pm-gh em.bad { background: rgba(239,68,68,.22); color: #ff8080; }
.pm-gh .chev { font-style: normal; font-size: 20px; color: var(--muted); transition: transform .15s; line-height: 1; }
.pm-grp.open .chev { transform: rotate(90deg); } .pm-grp .pm-gb { display: none; } .pm-grp.open .pm-gb { display: block; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.05); }
.pm-row .n { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pm-row .m { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-row .grow { min-width: 0; } .pm-row.prob .m { color: #ffb4b4; }
.pm-row i, .pm-ev i { width: 10px; height: 10px; border-radius: 50%; background: var(--unknown, #666); flex: none; display: inline-block; }
.pm-row i.up, .pm-ev i.up { background: var(--up); } .pm-row i.down, .pm-ev i.down { background: var(--down); box-shadow: 0 0 0 3px rgba(239,68,68,.25); } .pm-row i.warning, .pm-ev i.warning { background: var(--warn); }
.pm-alert { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.05); font-size: 14px; line-height: 1.35; }
.pm-alert > span { color: var(--warn); } .pm-alert.critical > span { color: var(--down); } .pm-alert small { display: block; color: var(--muted); font-size: 12px; }
.pm-ev { display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; border-top: 1px solid rgba(255,255,255,.05); font-size: 13px; color: var(--text2); }
.pm-ev time { color: var(--muted); font-family: var(--mono); font-size: 11.5px; flex: none; }
.pm-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px 16px 0; line-height: 1.7; } .pm-foot a { color: #ffb366; font-weight: 600; }

#ds.ds-compact .ds-kpi .v { font-size: 40px; } #ds.ds-compact .ds-kpi .v .sm { font-size: 26px; } #ds.ds-compact .ds-kpi { padding: 12px 16px; } #ds.ds-compact .ds-kpi .l { font-size: 12px; }
#ds.ds-compact .ds-title .n { font-size: 30px; } #ds.ds-compact .ds-clock .t { font-size: 34px; } #ds.ds-compact .ds-state { font-size: 16px; padding: 8px 14px; }
#ds.ds-compact .ds-card h4 { font-size: 12px; margin-bottom: 8px; } #ds.ds-compact .ds-col { gap: 12px; }

/* service chips: checks attached to a server (DNS API, SMTP, ping…) */
.svc-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tile .svc-chips { display: flex; margin: 6px 0 0; }
.svc-chip { font-size: 10.5px; font-weight: 650; padding: 1px 7px; border-radius: 9px; background: rgba(34,197,94,.13); color: #5ee38f; border: 1px solid rgba(34,197,94,.28); text-decoration: none; line-height: 16px; white-space: nowrap; }
.svc-chip.down { background: rgba(239,68,68,.18); color: #ff8a8a; border-color: rgba(239,68,68,.45); } .svc-chip.warning { background: rgba(245,165,36,.16); color: #fbbf4d; border-color: rgba(245,165,36,.4); }
.svc-chip.unknown, .svc-chip.pending { background: rgba(255,255,255,.06); color: var(--muted); border-color: rgba(255,255,255,.12); }
.checks-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 8px 10px; border: 1px dashed rgba(255,255,255,.1); border-radius: 10px; }
.checks-row .muted { margin-right: 6px; letter-spacing: .08em; }
.ds-chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.ds-chip { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 9px; background: rgba(34,197,94,.15); color: #5ee38f; }
.ds-chip.down { background: rgba(239,68,68,.25); color: #ffb4b4; } .ds-chip.warning { background: rgba(245,165,36,.2); color: #fbbf4d; }
.ds-tiles-wrap { display: flex; flex-direction: column; }
.ds-checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.12); flex: none; }
.ds-checks > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-right: 4px; }
.ds-checks b { font-size: 15px; font-weight: 650; padding: 4px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border-left: 4px solid var(--up); }
.ds-checks b.down { border-left-color: var(--down); background: rgba(239,68,68,.2); } .ds-checks b.warning { border-left-color: var(--warn); }
.ds-checks small { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------- phones & small tablets ---------- */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#menubtn { display: none; }
@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; height: 100dvh; }
  #side { position: fixed; top: 0; bottom: 0; left: 0; width: 264px; z-index: 300; transform: translateX(-105%); transition: transform .18s ease; }
  #app.menu-open #side { transform: none; box-shadow: 0 0 50px rgba(0,0,0,.7); }
  #app.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 299; }
  .nav a span, .nav .sec, .brand div, .side-foot { display: revert; }
  .nav a { padding: 10px 10px; }
  #menubtn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: none; }
  #top { padding: 0 8px; gap: 6px; height: 52px; }
  #top h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #top .crumb, .clock, #sitesel, .demo-banner { display: none; }
  #gsearch { width: 104px; }
  #addbtn { font-size: 0; padding: 0; width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; }
  #addbtn svg { margin: 0; }
  #content { padding: 12px 10px 70px; }
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .grid { gap: 10px; }
  .card { padding: 12px; }
  .card h3 { flex-wrap: wrap; }
  table.t { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.t td, table.t th { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .in, .search, select.in, textarea.in { font-size: 16px; } /* stops iOS zooming into fields */
  .btn { min-height: 36px; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { white-space: nowrap; }
  .modal-bg { place-items: end center; }
  .modal, .modal.wide { width: 100vw; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .modal footer { flex-wrap: wrap; }
  .modal footer .btn { flex: 1 1 auto; }
  .dhead { flex-wrap: wrap; gap: 10px; }
  .dhead > .row { width: 100%; flex-wrap: wrap; }
  .dhead > .row .btn { flex: 1 1 auto; }
  .dhead h2 { font-size: 17px; flex-wrap: wrap; }
  .tabs a { padding: 9px 11px; }
  .term-wrap { height: calc(100dvh - 250px); min-height: 280px; padding: 4px; }
  .row.wrap > .grow { min-width: 140px; }
  .kpi .val { font-size: 20px !important; }
  #dkc { touch-action: none; }
}

.ico18 { display: inline-flex; } .ico18 svg { width: 18px; height: 18px; }

/* Sessions workspace */
#sessdock { display: none; flex: 1; flex-direction: column; min-height: 0; padding: 12px 16px 14px; gap: 8px; background: var(--bg); }
#sessdock.isfull { padding: 8px; }
#sessdock .sbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#sessdock .stabs { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
#sessdock .stab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; font-size: 12.5px; color: var(--text2); white-space: nowrap; }
#sessdock .stab svg { width: 14px; height: 14px; }
#sessdock .stab .dot { width: 7px; height: 7px; animation: none; box-shadow: none; }
#sessdock .stab.on { border-color: var(--orange); color: var(--text); background: rgba(255,151,43,.08); }
#sessdock .stab .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 12px; border-radius: 4px; }
#sessdock .stab .x:hover { color: var(--text); background: var(--panel2); }
#sessdock .stool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
#sessdock .sarea { flex: 1; min-height: 0; position: relative; }
#sessdock .sarea.tabs .sess { display: none; }
#sessdock .sarea.tabs .sess.shown { display: flex; position: absolute; inset: 0; }
#sessdock .sarea.tabs .sess .shead { display: none; }
#sessdock .sarea.grid { display: grid; gap: 8px; overflow: auto; }
#sessdock .sarea.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(260px, calc((100% - 8px) / 2)); }
#sessdock .sarea.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(200px, calc((100% - 16px) / 3)); }
#sessdock .sess { flex-direction: column; min-height: 0; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 6px; display: flex; }
#sessdock .sarea.grid .sess.on { border: 2px solid var(--orange); padding: 5px; }
#sessdock .shead { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; font-size: 12.5px; }
#sessdock .shead .dot { width: 7px; height: 7px; animation: none; box-shadow: none; }
#sessdock .shead .btn { padding: 2px 6px; }
#sessdock .shead .btn svg { width: 13px; height: 13px; }
#sessdock .sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#sessdock .sbody > #dkwrap, #sessdock .sbody > .term-wrap { flex: 1; }
#sessdock .sshield { position: absolute; inset: 30px 6px 6px; cursor: pointer; border-radius: 6px; }
#sessdock .sshield:hover { background: rgba(255,151,43,.06); outline: 1px dashed rgba(255,151,43,.5); }
#sessdock .sempty { margin: auto; }
@media (max-width: 760px) {
  #sessdock { padding: 8px 6px 60px; }
  #sessdock .sarea.grid.c2, #sessdock .sarea.grid.c3 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 280px; }
  #sessdock #scols { display: none !important; }
}
