/* PROJECT X — წითელი/შავი თემა (ლოგოს ფერები), კომპაქტური. ღია თემა: [data-theme="light"]. */
:root, [data-theme="dark"] {
    --bg: #0a0a0b;
    --bg-2: #0f0f11;
    --panel: #141416;
    --panel-2: #1b1b1e;
    --line: #26262a;
    --line-soft: #1e1e22;
    --text: #ececee;
    --muted: #9a9aa2;
    --faint: #6a6a72;
    --accent: #e3262e;
    --accent-2: #ff434a;
    --accent-ink: #ffffff;
    --accent-soft: rgba(227, 38, 46, .14);
    --danger: #ff5a5f;
    --ok: #3ccf7d;
    --warn: #f2b33d;
    --info: #5aa8ff;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
    --c1: #e3262e; --c2: #f2b33d; --c3: #3ccf7d; --c4: #5aa8ff; --c5: #a78bfa; --c6: #f472b6; --c7: #9ca3af;
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #f4f4f6;
    --bg-2: #ececef;
    --panel: #ffffff;
    --panel-2: #f6f6f8;
    --line: #dedee3;
    --line-soft: #ebebef;
    --text: #17171a;
    --muted: #5f5f68;
    --faint: #8d8d96;
    --accent: #d11f27;
    --accent-2: #e8333b;
    --accent-soft: rgba(209, 31, 39, .09);
    --danger: #d63339;
    --ok: #179b52;
    --warn: #b97a00;
    --info: #1f6fd1;
    --shadow: 0 12px 32px rgba(0, 0, 0, .12);
    color-scheme: light;
}
:root {
    --radius: 8px;
    --font: "Noto Sans Georgian", "BPG Arial", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
    --side: 224px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

button, input, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input, select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; min-width: 0; outline: none; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: var(--accent); }
input[type="checkbox"] { width: 15px; height: 15px; padding: 0; accent-color: var(--accent); flex: none; }
label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; margin: 5px 0; cursor: pointer; }

.btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 6px; padding: 6px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.on { background: rgba(60, 207, 125, .12); color: var(--ok); border-color: rgba(60, 207, 125, .5); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 3px 6px; border-radius: 5px; }
.link:hover { color: var(--text); }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
svg.ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.err { color: var(--danger); min-height: 1.2em; margin-top: 8px; font-size: 12.5px; }
.spacer { flex: 1; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--danger); }

/* ----- auth ----- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 380px; padding: 24px 28px; border-top: 3px solid var(--accent); }
.auth-logo { display: block; width: 160px; height: 160px; margin: 0 auto 12px; }
.auth-card h2 { font-size: 19px; margin: 0 0 6px; }
.auth-card input { width: 100%; }
.auth-card .btn { width: 100%; margin-top: 14px; padding: 9px 14px; }
.auth-card .btn.ghost { margin-top: 8px; }
.auth-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); text-align: center; }
.qr { display: block; width: 200px; height: 200px; margin: 12px auto; border-radius: 8px; background: #fff; padding: 6px; }
.secret { word-break: break-all; text-align: center; background: var(--bg-2); border: 1px dashed var(--line); padding: 8px; border-radius: 6px; letter-spacing: .05em; }

/* ----- layout ----- */
.app { display: flex; height: 100%; }
.sidebar { width: var(--side); flex: none; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); transition: width .15s; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line-soft); min-height: 62px; }
.side-brand img { width: 34px; height: 34px; flex: none; }
.side-title { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.side-title b { font-size: 15px; letter-spacing: .04em; }
.side-title b span { color: var(--accent); }
.side-title small { color: var(--faint); font-size: 11px; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px; }
.nav-group { margin: 10px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--muted); padding: 7px 10px; border-radius: 6px; cursor: pointer; text-align: left; white-space: nowrap; }
.nav-item:hover { color: var(--text); background: var(--panel); }
.nav-item.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.nav-item.active svg { color: var(--accent); }
.nav-item .badge { margin-left: auto; }
.side-foot { padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); white-space: nowrap; }
.side-foot .row { display: flex; justify-content: space-between; gap: 8px; }
.collapsed .sidebar { width: 58px; }
.collapsed .side-title, .collapsed .nav-group, .collapsed .nav-item span, .collapsed .nav-item .badge, .collapsed .side-foot { display: none; }
.collapsed .nav-item { justify-content: center; padding: 8px 0; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 52px; flex: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.search-btn { display: flex; align-items: center; gap: 8px; width: min(360px, 40vw); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; color: var(--faint); cursor: pointer; text-align: left; }
.search-btn kbd { margin-left: auto; font: 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.server-pill { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(60, 207, 125, .15); }
.dot.off { background: var(--danger); }
.notify { position: relative; }
.count-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; line-height: 15px; text-align: center; padding: 0 3px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; box-shadow: var(--shadow); }
.dropdown button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 5px; cursor: pointer; }
.dropdown button:hover { background: var(--panel-2); }
.dropdown button.danger-item { color: var(--danger); }
.notify-panel { width: 340px; max-height: 420px; overflow-y: auto; padding: 0; }
.notify-head { display: flex; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.notify-item { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.notify-item.new { box-shadow: inset 2px 0 0 var(--accent); }
.notify-item .muted { font-size: 11.5px; }

.main { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 18px 32px; }
.page-title { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; color: var(--accent); }
.section { padding: 12px 14px; margin-bottom: 12px; }
.section h3, .section-title { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section h3 .link { margin-left: auto; font-size: 12px; font-weight: 400; }
.section.warn { border-color: rgba(242, 179, 61, .45); }

/* ----- dashboard ----- */
.grid { display: grid; gap: 12px; }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 12px; }
.grid.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.halves { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat { padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.stat .stat-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.stat .v { font-size: 19px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12px; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meter { text-align: center; }
.meter svg { width: 78px; height: 78px; }
.meter .ring-bg { stroke: var(--line); }
.meter .ring { stroke: var(--accent); }
.meter text { fill: var(--text); font-size: 15px; font-weight: 700; }
.list-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- charts ----- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line-soft); }
.chart .axis { fill: var(--faint); font-size: 10px; }
.chart .area { fill: var(--accent-soft); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .peak-line { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .bar.b2 { fill: var(--info); }
.chart .pt { fill: var(--accent); }
.s1 { fill: var(--c1); } .s2 { fill: var(--c2); } .s3 { fill: var(--c3); } .s4 { fill: var(--c4); } .s5 { fill: var(--c5); } .s6 { fill: var(--c6); } .s7 { fill: var(--c7); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .b1 { background: var(--c1); } .legend .b2 { background: var(--c2); } .legend .b3 { background: var(--c3); } .legend .b4 { background: var(--c4); } .legend .b5 { background: var(--c5); } .legend .b6 { background: var(--c6); } .legend .b7 { background: var(--c7); }
.pie-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pie-wrap svg { width: 170px; height: 170px; }

/* ----- category bar (logs) ----- */
.catbar { margin: 0 0 12px; }
.gtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.gtab { display: flex; align-items: center; gap: 7px; flex: none; cursor: pointer; white-space: nowrap; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.gtab:hover { color: var(--text); }
.gtab.active { color: var(--text); background: var(--panel); border-color: var(--accent); }
.g-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.g-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gtab.active .g-ico { background: var(--accent); color: #fff; }
.ctabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ctab { background: none; border: 0; border-radius: 6px; padding: 5px 11px; cursor: pointer; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.ctab:hover { color: var(--text); background: var(--panel-2); }
.ctab.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.toolbar .search { flex: 1 1 240px; }
.chips { display: flex; padding: 2px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.chip { background: none; border: 0; color: var(--muted); border-radius: 5px; padding: 4px 10px; cursor: pointer; font-size: 12.5px; }
.chip:hover { color: var(--text); }
.chip.on { color: #fff; background: var(--accent); font-weight: 600; }
.clear { color: var(--danger); }
.more-filters { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.more-filters label { margin: 0; }
.more-filters input, .more-filters select { width: 100%; margin-top: 4px; }
.result-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; min-height: 28px; }
.status { font-size: 12.5px; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ----- tables ----- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--faint); font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; background: var(--panel); white-space: nowrap; }
tr.row { cursor: pointer; }
tr.row:hover { background: var(--panel-2); }
tr.row.open { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }
tr.row.new { animation: flash 2s; }
@keyframes flash { from { background: var(--accent-soft); } }
td.time { white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
td.msg { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
table.compact td { padding: 6px 10px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 500; background: var(--panel-2); color: var(--text); white-space: nowrap; border: 1px solid var(--line-soft); }
.tag.client, .tag.warn { background: rgba(242, 179, 61, .12); color: var(--warn); border-color: transparent; }
.tag.bad { background: rgba(255, 90, 95, .12); color: var(--danger); border-color: transparent; }
.tag.good { background: rgba(60, 207, 125, .12); color: var(--ok); border-color: transparent; }
.tag.red { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
.person { cursor: pointer; white-space: nowrap; }
.person:hover { color: var(--accent); }
.person small { color: var(--faint); }
tr.detail td { background: var(--bg-2); padding: 12px 16px; }
.detail-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; word-break: break-all; }
pre.json { margin: 10px 0 0; padding: 10px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 6px; overflow-x: auto; font: 12px/1.5 var(--mono); }
.more { display: flex; justify-content: center; padding: 10px; }
.empty { text-align: center; padding: 36px 0; color: var(--muted); }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ----- profile ----- */
.back { margin: -4px 0 8px -6px; }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.profile-head h2 { margin: 0; font-size: 19px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; }
.kv { display: flex; flex-direction: column; gap: 1px; min-width: 0; word-break: break-all; }
.kv .muted { font-size: 11.5px; }
.links { display: flex; flex-wrap: wrap; gap: 4px; }
.links .link { color: var(--accent); }
.subtabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0 12px; border-bottom: 1px solid var(--line); }
.subtabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 7px 12px; cursor: pointer; font-weight: 500; margin-bottom: -1px; }
.subtabs button:hover { color: var(--text); }
.subtabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.tile .muted { font-size: 11.5px; }
.tile-value { font-size: 17px; font-weight: 700; margin: 2px 0; word-break: break-word; font-variant-numeric: tabular-nums; }
details.section summary { cursor: pointer; font-weight: 600; }
.inv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.inv-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-size: 12.5px; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.chat-msg { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 7px 10px; }
.chat-msg .muted { font-size: 11.5px; }

/* ----- admin ----- */
.perms { margin-top: 6px; }
.perms .all { padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.perm-group { margin: 10px 0; }
.group-head { margin: 3px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; padding-left: 23px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row input, .form-row select { width: 100%; }
.perms > input, #modal-card select { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.actions.secondary { padding-top: 12px; border-top: 1px solid var(--line); }
.ret-grid { display: grid; grid-template-columns: minmax(150px, 1fr) 90px auto; gap: 6px 12px; align-items: center; max-width: 560px; padding-left: 10px; }
.ret-grid input { width: 100%; }

/* ----- search palette / modal / toast ----- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: start center; padding: 10vh 16px 16px; z-index: 40; }
.modal-card { width: 100%; max-width: 620px; max-height: 80vh; overflow-y: auto; padding: 20px; box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 8px; font-size: 18px; }
.palette input { width: 100%; font-size: 15px; padding: 9px 12px; }
.palette .result { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; text-align: left; }
.palette .result:hover, .palette .result.sel { background: var(--panel-2); }
.toasts { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--ok); padding: 9px 13px; border-radius: 6px; max-width: 340px; box-shadow: var(--shadow); }
.toast.error { border-left-color: var(--danger); }
.temp-pass { font: 600 17px var(--mono); background: var(--bg-2); border: 1px dashed var(--line); padding: 10px; border-radius: 6px; text-align: center; letter-spacing: 1px; user-select: all; }

@media (max-width: 1000px) {
    .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: fixed; z-index: 35; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
    .side-open .sidebar { transform: none; }
    .collapsed .sidebar { width: var(--side); }
    .collapsed .side-title, .collapsed .nav-group, .collapsed .nav-item span, .collapsed .side-foot { display: revert; }
    .server-pill span.lbl { display: none; }
    .search-btn { width: auto; flex: 1; }
    .search-btn kbd { display: none; }
    .main { padding: 12px; }
    .form-row { grid-template-columns: 1fr; }
    td.msg { max-width: 200px; }
    .notify-panel { width: min(340px, 92vw); right: -40px; }
}
