/* Rubik (SIL OFL 1.1) — TechFix сайтын фонт */
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/rubik-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/rubik-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/rubik-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/rubik-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* TechFix UB — Админ самбар */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9ecf1;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #475467;
  --muted: #8a93a3;
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-soft: #FFF1E6;
  --accent-text: #9A3412;
  --chart-bar: #FDBA8C;
  --grid: #eef0f3;
  --ok: #12a150;      --ok-soft: #e7f7ee;      --ok-text: #0b7a3b;
  --warn: #d97706;    --warn-soft: #fff4e0;    --warn-text: #a15c05;
  --crit: #e5383b;    --crit-soft: #fdecec;    --crit-text: #b4191c;
  --info: #2f6fed;    --info-soft: #e9f0fe;    --info-text: #1d4fbf;
  --purple: #7c3aed;  --purple-soft: #f2ebff;  --purple-text: #5b21b6;
  --grey-soft: #eef0f3; --grey-text: #5b6474;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .25), 0 4px 10px rgba(16, 24, 40, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 248px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0e; --surface: #121419; --surface-2: #181b21; --surface-3: #20242c;
    --border: #23272f; --border-strong: #323843;
    --text: #eceef2; --text-2: #a3abb8; --muted: #6c7484;
    --accent: #FB7A2E; --accent-hover: #FF9450; --accent-soft: #2E1A0C; --accent-text: #FFB27A;
    --chart-bar: #9A4512; --grid: #1d2027;
    --ok: #2fc46d; --ok-soft: #0f2a1b; --ok-text: #5ddc93;
    --warn: #f0a33a; --warn-soft: #2e2110; --warn-text: #f5b961;
    --crit: #f2585b; --crit-soft: #331416; --crit-text: #ff8a8c;
    --info: #5b8ff5; --info-soft: #14213b; --info-text: #8fb2fa;
    --purple: #a479f7; --purple-soft: #241a3c; --purple-text: #c5a8fb;
    --grey-soft: #1d2027; --grey-text: #9aa2b0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0e; --surface: #121419; --surface-2: #181b21; --surface-3: #20242c;
  --border: #23272f; --border-strong: #323843;
  --text: #eceef2; --text-2: #a3abb8; --muted: #6c7484;
  --accent: #FB7A2E; --accent-hover: #FF9450; --accent-soft: #2E1A0C; --accent-text: #FFB27A;
  --chart-bar: #9A4512; --grid: #1d2027;
  --ok: #2fc46d; --ok-soft: #0f2a1b; --ok-text: #5ddc93;
  --warn: #f0a33a; --warn-soft: #2e2110; --warn-text: #f5b961;
  --crit: #f2585b; --crit-soft: #331416; --crit-text: #ff8a8c;
  --info: #5b8ff5; --info-soft: #14213b; --info-text: #8fb2fa;
  --purple: #a479f7; --purple-soft: #241a3c; --purple-text: #c5a8fb;
  --grey-soft: #1d2027; --grey-text: #9aa2b0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .2s ease, color .2s ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.xs { width: 13px; height: 13px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(1000px 500px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(800px 400px at 110% 110%, color-mix(in srgb, #18181B 10%, transparent), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px 28px; box-shadow: var(--shadow-lg); animation: rise .35s ease;
}
.login-card .brand { margin-bottom: 24px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.01em; }
.login-card p { margin: 0 0 22px; color: var(--text-2); }
.login-card .btn { width: 100%; justify-content: center; height: 42px; margin-top: 6px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #F97316, var(--accent-hover)); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 2; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.input, .select {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none;
}
.select { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input::placeholder { color: var(--muted); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { background: var(--crit-soft); color: var(--crit-text); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 550; font-size: 13.5px;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
:root[data-theme="dark"] .btn.primary { color: #0b0c10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0b0c10; } }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.danger:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.btn.sm.icon-only { width: 30px; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px;
  border-right: 1px solid var(--border); background: var(--surface);
}
.sidebar .brand { padding: 4px 8px 20px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--text-2);
  font-weight: 520; transition: background-color .15s, color .15s; text-decoration: none; position: relative;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.nav a.active .icon { color: var(--accent); }
.nav .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 13px;
  background: var(--surface-3); color: var(--text-2); flex: none;
}
.me { min-width: 0; flex: 1; }
.me b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { font-size: 11.5px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 0 28px; height: 58px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); font-size: 13.5px; }
.crumbs b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--text-2); }
.topbar .spacer { flex: 1; }
.stamp { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.stamp.bad .dot { background: var(--crit); }
.content { padding: 26px 28px 60px; width: 100%; max-width: 1440px; margin: 0 auto; }

.conn-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: var(--crit-soft); color: var(--crit-text);
  position: sticky; top: 58px; z-index: 19;
  border-bottom: 1px solid color-mix(in srgb, var(--crit) 30%, transparent); font-size: 13px; font-weight: 520;
}
.conn-banner .btn { margin-left: auto; }

.mobile-nav { display: none; }
.mobile-only-logout { display: none !important; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 23px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head .sub { margin: 4px 0 0; color: var(--text-2); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 640; margin: 30px 0 14px; letter-spacing: -.01em; }
.section-title .muted { font-weight: 500; font-size: 13px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px 0; min-height: 30px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 630; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; }
.card-head .extra { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.card-body { padding: 14px 18px 18px; }
.card-body.flush { padding: 10px 0 4px; }
.grid { display: grid; gap: 16px; }
.grid-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); margin-top: 16px; }
.grid-half { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; }
.mt { margin-top: 16px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px 14px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
  min-width: 0;
}
.kpi-top { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.kpi-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.kpi-ico .icon { width: 15px; height: 15px; }
.kpi-val { font-size: 25px; font-weight: 680; letter-spacing: -.025em; margin-top: 10px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-val small { font-size: 15px; color: var(--muted); font-weight: 560; margin-left: 2px; }
.kpi-foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 19px; }
.kpi .meter { margin-top: 10px; }
.kpi.t-ok .kpi-ico { background: var(--ok-soft); color: var(--ok); }
.kpi.t-accent .kpi-ico { background: var(--accent-soft); color: var(--accent); }
.kpi.t-info .kpi-ico { background: var(--info-soft); color: var(--info); }
.kpi.t-purple .kpi-ico { background: var(--purple-soft); color: var(--purple); }
.kpi.t-warn .kpi-ico { background: var(--warn-soft); color: var(--warn); }
.kpi.t-crit .kpi-ico { background: var(--crit-soft); color: var(--crit); }
.kpi.alarm { border-color: color-mix(in srgb, var(--crit) 45%, var(--border)); }
.kpi.alarm::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--crit); }
.kpi.alarm-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.kpi.alarm-warn::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--warn); }
.delta { font-weight: 600; }
.delta.up { color: var(--ok-text); }
.delta.down { color: var(--crit-text); }

.meter { height: 6px; border-radius: 99px; background: var(--surface-3); display: flex; overflow: hidden; gap: 2px; }
.meter > i { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
.m-ok { background: var(--ok); } .m-accent { background: var(--accent); } .m-purple { background: var(--purple); }
.m-grey { background: var(--border-strong); } .m-crit { background: var(--crit); } .m-warn { background: var(--warn); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  font-size: 11.5px; font-weight: 650; background: var(--crit); color: #fff; font-variant-numeric: tabular-nums;
}
.badge.warn { background: var(--warn); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px;
  font-weight: 580; white-space: nowrap; background: var(--grey-soft); color: var(--grey-text); line-height: 1;
}
.pill .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.pill.ok { background: var(--ok-soft); color: var(--ok-text); }
.pill.warn { background: var(--warn-soft); color: var(--warn-text); }
.pill.crit { background: var(--crit-soft); color: var(--crit-text); }
.pill.info { background: var(--info-soft); color: var(--info-text); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill.purple { background: var(--purple-soft); color: var(--purple-text); }
.pill.lg { height: 26px; padding: 0 11px; font-size: 12.5px; }

.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.pulse.on { background: var(--ok); }
.pulse.on::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite;
}
.pulse.off { background: var(--crit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 22%, transparent); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; min-height: 220px; }
.chart svg { width: 100%; overflow: visible; }
.chart .bar { fill: var(--chart-bar); transition: fill .15s; }
.chart .bar.today { fill: var(--accent); }
.chart .bar.hover { fill: var(--accent-hover); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; }
.chart-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 18px 0; }
.chart-sum b { font-size: 22px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart-sum span { color: var(--muted); font-size: 12.5px; }
.tip {
  position: fixed; z-index: 100; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; line-height: 1.45; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; white-space: nowrap;
}
.tip.show { opacity: 1; transform: none; }
.tip b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tip .t-sub { opacity: .7; }

/* ---------- Alerts ---------- */
.alert-list { display: flex; flex-direction: column; }
.alert-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 18px;
  border-top: 1px solid var(--border); position: relative; transition: background-color .15s;
}
.alert-item:first-child { border-top: 0; }
.alert-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sev); }
.alert-item.sev-critical { --sev: var(--crit); --sev-soft: var(--crit-soft); --sev-text: var(--crit-text); }
.alert-item.sev-warning { --sev: var(--warn); --sev-soft: var(--warn-soft); --sev-text: var(--warn-text); }
.alert-item.sev-info { --sev: var(--info); --sev-soft: var(--info-soft); --sev-text: var(--info-text); }
.alert-item.sev-critical:not(.acked) { background: color-mix(in srgb, var(--crit-soft) 55%, transparent); }
.alert-item.acked { opacity: .62; }
.alert-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--sev-soft); color: var(--sev); }
.alert-ico .icon { width: 16px; height: 16px; }
.alert-msg { font-weight: 560; overflow-wrap: anywhere; }
.alert-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.alert-meta a { color: var(--text-2); font-weight: 550; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sev-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sev-text); }
.alert-side { display: flex; align-items: center; gap: 8px; }
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 34px 18px; color: var(--muted);
}
.empty .e-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.empty .e-ico.grey { background: var(--surface-2); color: var(--muted); }
.empty b { color: var(--text); font-weight: 600; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 12.5px; font-weight: 560; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .c-dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Devices ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.dev-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; position: relative; min-width: 0; text-align: left; color: inherit; text-decoration: none;
}
.dev-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.dev-card.w-critical { border-color: color-mix(in srgb, var(--crit) 50%, var(--border)); }
.dev-card.w-warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.dev-card.is-off { background: linear-gradient(var(--crit-soft), var(--surface) 70px); }
.dc-head { display: flex; align-items: flex-start; gap: 10px; }
.dc-title { min-width: 0; flex: 1; }
.dc-title b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 640; letter-spacing: -.01em; }
.dc-title b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-title small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-stat { background: var(--surface-2); border-radius: 9px; padding: 8px 10px; min-width: 0; }
.dc-stat span { display: block; font-size: 11.5px; color: var(--muted); }
.dc-stat b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-lockers .meter { height: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.legend b { font-weight: 640; color: var(--text); font-variant-numeric: tabular-nums; }
.svc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.svc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.svc i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.svc.ok i { background: var(--ok); } .svc.test i { background: var(--warn); } .svc.bad i { background: var(--crit); }
.svc.bad { background: var(--crit-soft); color: var(--crit-text); }
.svc b { font-weight: 600; color: var(--text); }
.svc.bad b { color: var(--crit-text); }
.health-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 12px; }
.health-row span { display: inline-flex; align-items: center; gap: 5px; }
.health-row .icon { width: 14px; height: 14px; color: var(--muted); }
.health-row .bad { color: var(--crit-text); font-weight: 600; }
.health-row .bad .icon { color: var(--crit); }
.health-row .wrn { color: var(--warn-text); font-weight: 600; }
.health-row .wrn .icon { color: var(--warn); }

/* ---------- Device detail ---------- */
.offline-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); margin-bottom: 18px;
  background: var(--crit-soft); color: var(--crit-text); border: 1px solid color-mix(in srgb, var(--crit) 30%, transparent);
}
.offline-banner b { display: block; }
.offline-banner .icon { margin-top: 2px; }
.mini-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; min-width: 0; box-shadow: var(--shadow-sm); }
.mini span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b { display: block; font-size: 17px; font-weight: 660; letter-spacing: -.015em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mini b.crit { color: var(--crit-text); } .mini b.ok { color: var(--ok-text); } .mini b.warn { color: var(--warn-text); }

.locker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.locker {
  --c: var(--ok); --c-soft: var(--ok-soft); --c-text: var(--ok-text);
  position: relative; text-align: left; border: 1px solid color-mix(in srgb, var(--c) 32%, var(--border)); background: var(--surface);
  border-radius: 12px; padding: 10px 11px 10px 13px; min-height: 104px; display: flex; flex-direction: column; gap: 3px;
  transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; min-width: 0;
}
.locker::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.locker::after { content: ""; position: absolute; inset: 0; background: var(--c-soft); opacity: .55; pointer-events: none; z-index: 0; }
.locker > * { position: relative; z-index: 1; }
.locker:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c); }
.locker.st-occupied { --c: var(--accent); --c-soft: var(--accent-soft); --c-text: var(--accent-text); }
.locker.st-reserved { --c: var(--purple); --c-soft: var(--purple-soft); --c-text: var(--purple-text); }
.locker.st-disabled { --c: var(--muted); --c-soft: var(--grey-soft); --c-text: var(--grey-text); }
.locker.st-disabled::after {
  opacity: 1; background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--muted) 14%, transparent) 7px 8px), var(--grey-soft);
}
.locker.st-overdue { --c: var(--crit); --c-soft: var(--crit-soft); --c-text: var(--crit-text); }
.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lk-id { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.lk-size { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.lk-status { font-size: 12.5px; font-weight: 620; color: var(--c-text); display: flex; align-items: center; gap: 5px; }
.lk-meta { font-size: 12px; color: var(--text-2); margin-top: auto; display: flex; gap: 4px 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.lk-meta .fee { color: var(--crit-text); font-weight: 650; }
.lk-cmd { position: absolute; right: 8px; bottom: 8px; color: var(--info); }
.locker-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.locker-legend span { display: inline-flex; align-items: center; gap: 6px; }
.locker-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 600; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl .t-time { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tbl .t-time small { display: block; color: var(--muted); font-size: 11.5px; }
.tbl .detail { color: var(--text-2); overflow-wrap: anywhere; min-width: 140px; }
.tbl tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
.amount { font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.neg { color: var(--warn-text); }
.amount.void { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.lk-chip { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); font-weight: 650; font-size: 12px; border: 1px solid var(--border); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input-icon { flex: 1 1 240px; }
.filters .select { width: auto; min-width: 160px; flex: 0 1 200px; }
.result-count { color: var(--muted); font-size: 12.5px; margin-left: auto; }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 15, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .18s ease; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.wide { max-width: 560px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 6px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 660; letter-spacing: -.01em; }
.modal-head p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.modal-head .btn { margin-left: auto; margin-top: -4px; margin-right: -8px; }
.modal-body { padding: 14px 22px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; flex-wrap: wrap; }
.m-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.m-ico.danger { background: var(--crit-soft); color: var(--crit); }
.m-ico.ok { background: var(--ok-soft); color: var(--ok); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 560; text-align: right; overflow-wrap: anywhere; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.action-grid .btn { justify-content: center; height: 40px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-top: 14px; }
.note .icon { margin-top: 1px; }
.note.warn { background: var(--warn-soft); color: var(--warn-text); }
.note.crit { background: var(--crit-soft); color: var(--crit-text); }
.note.info { background: var(--info-soft); color: var(--info-text); }
.secret {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 8px 8px 12px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; word-break: break-all;
}
.secret code { flex: 1; min-width: 0; }
pre.code {
  margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  padding-right: 96px;
}
.code-wrap { position: relative; }
.code-wrap .btn { position: absolute; top: 8px; right: 8px; }
ol.steps { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13px; }
ol.steps li { margin: 4px 0; }
ol.steps code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--text); }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px 12px 12px 14px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: toastIn .25s cubic-bezier(.2, .9, .3, 1.1); position: relative; overflow: hidden;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--info)); }
.toast.ok { --tc: var(--ok); } .toast.err { --tc: var(--crit); } .toast.warn { --tc: var(--warn); } .toast.info { --tc: var(--info); }
.toast .t-ico { color: var(--tc, var(--info)); margin-top: 1px; }
.toast b { display: block; font-size: 13.5px; font-weight: 620; }
.toast span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 1px; overflow-wrap: anywhere; }
.toast .x { background: none; border: 0; color: var(--muted); padding: 2px; border-radius: 6px; }
.toast .x:hover { color: var(--text); background: var(--surface-2); }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.steps-mini { display: flex; gap: 4px; margin-top: 8px; }
.steps-mini i { height: 3px; flex: 1; border-radius: 3px; background: var(--surface-3); }
.steps-mini i.on { background: var(--tc, var(--info)); }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .mini-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-half { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; height: 54px; }
  .topbar .brand { display: flex; }
  .topbar .crumbs { display: none; }
  .content { padding: 18px 16px 100px; }
  .conn-banner { padding: 10px 16px; top: 54px; font-size: 12.5px; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; color: var(--muted); font-size: 10.5px;
    font-weight: 560; text-decoration: none; position: relative; border-radius: 10px; min-width: 0;
  }
  .mobile-nav a span.l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav a.active .icon { stroke-width: 2.2; }
  .mobile-nav .badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; }
  .toasts { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 20px; }
  .hide-sm { display: none; }
  .mobile-only-logout { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .kpis { gap: 10px; }
  .kpi { padding: 13px 13px 12px; }
  .kpi-val { font-size: 20px; }
  .kpi-top { font-size: 12px; }
  .kpi-ico { width: 24px; height: 24px; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .locker-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .locker { padding: 9px 9px 9px 12px; }
  .lk-id { font-size: 16px; }
  .locker { min-height: 96px; }
  .stamp .lbl { display: none; }
  .filters .select { flex: 1 1 140px; min-width: 0; }
  .result-count { margin-left: 0; width: 100%; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .modal-root { place-items: end center; padding: 0; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; animation: sheet .25s cubic-bezier(.2, .9, .3, 1); }
  .modal-foot .btn { flex: 1; justify-content: center; }
  .alert-item { grid-template-columns: auto minmax(0, 1fr); }
  .alert-side { grid-column: 2; }
  .hide-xs { display: none; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 14px; }
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
  .card-head { padding: 14px 14px 0; }
  .card-body { padding: 12px 14px 14px; }
  .alert-item { padding: 12px 14px; }
  .chart-sum { padding: 4px 14px 0; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.secret code, pre.code { user-select: all; -webkit-user-select: all; }

/* ---------- Нэвтрэх: passkey, сэргээх, нууц үгийн хүч ---------- */
.login-card .btn.passkey { margin-top: 0; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; }
.login-card .btn.passkey:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.login-card .btn.passkey .icon { color: var(--accent); }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none;
  color: var(--muted); border-radius: 7px; cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
.caps { display: none !important; color: var(--warn-text) !important; }
.caps.on { display: flex !important; align-items: center; gap: 4px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 13px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.login-alt { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }
.login-card .help { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.55; padding: 10px 12px; background: var(--surface-2); border-radius: 9px; }
.login-card .help code, .sec-section code, .note code { font-family: var(--mono); font-size: 11.5px; }
.dev-code { background: var(--warn-soft); color: var(--warn-text); padding: 9px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.code-in { font-size: 20px; letter-spacing: .4em; text-align: center; height: 46px; }
.meter-pw { display: flex; gap: 4px; margin-top: 8px; }
.meter-pw i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.meter-pw.s1 i:nth-child(-n+1) { background: var(--crit); }
.meter-pw.s2 i:nth-child(-n+2) { background: var(--warn); }
.meter-pw.s3 i:nth-child(-n+3) { background: var(--ok); }
.meter-pw.s4 i { background: var(--ok); }
.pw-hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.pw-hint .link { font-size: 12px; }

/* ---------- Аюулгүй байдлын цонх ---------- */
.sec-section { padding: 16px 0; border-top: 1px solid var(--border); }
.sec-section:first-of-type { border-top: 0; padding-top: 0; }
.sec-section h3 { font-size: 14px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.sec-section > p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.sec-list { display: flex; flex-direction: column; gap: 8px; }
.sec-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.sec-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.sec-item .grow { flex: 1; min-width: 0; }
.sec-item b { display: block; font-size: 13.5px; }
.sec-item span { color: var(--muted); font-size: 12px; }
.sec-empty { color: var(--muted); font-size: 13px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; }
.mt-s { margin-top: 10px; }
.audit { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow: auto; }
.audit li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; align-items: baseline; }
.audit li .grow { flex: 1; min-width: 0; }
.audit time { color: var(--muted); white-space: nowrap; min-width: 96px; font-variant-numeric: tabular-nums; }
.audit li.bad .grow { color: var(--crit-text); }
.audit .muted { color: var(--muted); }
.pin-big { font-family: var(--mono); font-size: 28px; letter-spacing: .3em; text-align: center; font-weight: 700; height: 56px; }
@media (max-width: 560px) { .audit li { flex-wrap: wrap; } .audit li > .muted:last-child { width: 100%; padding-left: 106px; } }

/* ---------- TechFix UB лого ---------- */
.logo-d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: block; }
}
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
.login-brand { text-align: center; margin: -4px 0 22px; }
.login-brand img { height: 74px; width: auto; margin: 0 auto; }
.login-brand small, .side-brand small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.side-brand { padding: 2px 6px 14px; }
.side-brand img { height: 46px; width: auto; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
