/* SajioTS Panel — RTL Persian admin UI. No external resources. */
@font-face {
  font-family: "Vazir";
  src: url("fonts/Vazir.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0d1220;
  --bg-2: #111829;
  --surface: #151d30;
  --surface-2: #1b2540;
  --surface-3: #222e4d;
  --border: #26324f;
  --border-2: #31406a;
  --text: #e7ecf7;
  --text-2: #b9c3da;
  --muted: #8592b0;
  --accent: #3fa9f5;
  --accent-2: #7c8cff;
  --accent-ink: #06121f;
  --accent-soft: rgba(63, 169, 245, .14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 248px;
  --font: "Vazir", "Segoe UI", Tahoma, "Segoe UI Symbol", "Cambria Math", "Noto Sans Math", "Noto Sans Symbols 2",
          "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-2: #eaeef6;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #eceff7;
  --border: #dfe4ef;
  --border-2: #cbd3e4;
  --text: #182033;
  --text-2: #3a4560;
  --muted: #6b7690;
  --accent: #1a8fe3;
  --accent-2: #5566f0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(26, 143, 227, .1);
  --ok: #0f9d6b;
  --ok-soft: rgba(15, 157, 107, .1);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, .12);
  --danger: #d64545;
  --danger-soft: rgba(214, 69, 69, .1);
  --shadow: 0 10px 30px rgba(24, 32, 51, .12);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5fa; --bg-2: #eaeef6; --surface: #ffffff; --surface-2: #f5f7fc; --surface-3: #eceff7;
    --border: #dfe4ef; --border-2: #cbd3e4; --text: #182033; --text-2: #3a4560; --muted: #6b7690;
    --accent: #1a8fe3; --accent-2: #5566f0; --accent-ink: #ffffff; --accent-soft: rgba(26, 143, 227, .1);
    --ok: #0f9d6b; --ok-soft: rgba(15, 157, 107, .1); --warn: #b7791f; --warn-soft: rgba(183, 121, 31, .12);
    --danger: #d64545; --danger-soft: rgba(214, 69, 69, .1); --shadow: 0 10px 30px rgba(24, 32, 51, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
bdi { unicode-bidi: isolate; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ltr, .mono { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9;
        stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- layout */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-inline-end: 1px solid var(--border);
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 19px;
  box-shadow: 0 6px 18px rgba(63, 169, 245, .35);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .3px; }
.brand-sub { font-size: 11.5px; color: var(--muted); margin-top: -3px; }
.nav-title { font-size: 11px; color: var(--muted); padding: 12px 10px 4px; letter-spacing: .5px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a .count { margin-inline-start: auto; font-size: 11.5px; background: var(--surface-3); color: var(--text-2);
                padding: 0 8px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
          background: var(--surface-3); color: var(--text); flex: none; }
.me-name { font-weight: 600; line-height: 1.3; }
.me-role { 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: 12px;
  padding: 12px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.server-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.menu-btn { display: none; }
.content { padding: 22px 24px 60px; max-width: 1280px; width: 100%; }

/* ---------- cards / stats */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 15.5px; margin: 0; font-weight: 700; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cols-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-side { display: grid; gap: 16px; grid-template-columns: 320px minmax(0, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
        position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 4px; line-height: 1.3; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 110px; height: 110px;
                      border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px;
                background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
          border: 1px solid var(--border); background: var(--surface-2); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.banner.danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); }
.banner.info { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.banner svg { margin-top: 3px; }

/* ---------- buttons / inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  cursor: pointer; font-weight: 600; font-size: 13.5px; transition: filter .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent;
            background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.loading, .icon-btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor;
                      border-inline-start-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.field .hint { font-size: 11.5px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.ltr { text-align: left; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-inline-start: 36px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--accent); font-weight: 700;
                 box-shadow: 0 1px 3px rgba(0, 0, 0, .18), inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- chips / badges */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 99px; font-size: 12px;
        background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip.owner { background: rgba(251, 191, 36, .13); color: #f5c451; border-color: rgba(251, 191, 36, .3); }
.chip.admin { background: rgba(124, 140, 255, .14); color: #a6b1ff; border-color: rgba(124, 140, 255, .3); }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
:root[data-theme="light"] .chip.owner { color: #a46b00; }
:root[data-theme="light"] .chip.admin { color: #4553d8; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px;
          border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl td.actions { text-align: end; white-space: nowrap; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell .avatar { width: 32px; height: 32px; font-size: 13px; }
.user-cell .name { font-weight: 600; }
.status-icons { display: inline-flex; gap: 4px; color: var(--muted); }
.status-icons .on { color: var(--danger); }
.status-icons .talk { color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.empty svg { width: 36px; height: 36px; opacity: .5; display: block; margin: 0 auto 8px; }

/* ---------- channel tree */
.tree { display: flex; flex-direction: column; }
.ch { --depth: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px; padding-inline-start: calc(10px + var(--depth) * 22px);
      border-radius: 9px; min-height: 38px; }
.ch:hover { background: var(--surface-2); }
.ch .ch-name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .ch-meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.ch .ch-actions { margin-inline-start: auto; display: flex; gap: 2px; opacity: .0; transition: opacity .15s; }
.ch:hover .ch-actions, .ch:focus-within .ch-actions { opacity: 1; }
.ch.header { margin-top: 6px; background: linear-gradient(90deg, transparent, var(--surface-2), transparent);
             justify-content: center; }
.ch.header .ch-name { font-weight: 700; color: var(--text); text-align: center; flex: 1; }
.ch.header .ch-actions { position: absolute; inset-inline-end: 8px; }
.ch.header { position: relative; }
.ch.gap { min-height: 16px; padding-top: 0; padding-bottom: 0; }
.ch.gap .gap-line { flex: 1; border-top: 1px dashed var(--border); opacity: .7; }
.ch.gap .ch-actions { opacity: 0; }
.ch.gap:hover .ch-actions { opacity: 1; }
.ch-client { --depth: 1; display: flex; align-items: center; gap: 7px; padding: 2px 10px;
             padding-inline-start: calc(34px + var(--depth) * 22px); color: var(--text-2); font-size: 13px; }
.ch-client .mini { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ch-client .mini.away { background: var(--warn); }
.ch-client .mini.talk { box-shadow: 0 0 0 3px var(--ok-soft); }
.ch-icon { color: var(--muted); display: inline-flex; }
.ch.default .ch-icon { color: var(--accent); }

/* ---------- roles page */
.list { display: flex; flex-direction: column; gap: 2px; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; cursor: pointer;
             border: 1px solid transparent; }
.list-item:hover { background: var(--surface-2); }
.list-item.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.list-item .count { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.role-toggle { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px;
               border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; }
.role-toggle.on { border-color: var(--accent); background: var(--accent-soft); }
.role-toggle.locked { opacity: .55; cursor: not-allowed; }
.token { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2);
         border: 1px dashed var(--border-2); }

/* ---------- logs */
.log { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; direction: ltr; text-align: left;
       background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; max-height: 520px; overflow: auto; }
.log-line { display: grid; grid-template-columns: 150px 70px 110px 1fr; gap: 8px; padding: 3px 6px; border-radius: 6px; }
.log-line:hover { background: var(--surface-2); }
.log-line .lv-ERROR, .log-line .lv-CRITICAL { color: var(--danger); font-weight: 700; }
.log-line .lv-WARNING { color: var(--warn); font-weight: 700; }
.log-line .lv-INFO { color: var(--accent); }
.log-line .msg { white-space: pre-wrap; word-break: break-word; }

/* ---------- dialog / toast */
dialog.modal { border: 1px solid var(--border-2); border-radius: 16px; padding: 0; background: var(--surface); color: var(--text);
               width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
dialog.modal.wide { width: min(820px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(5, 9, 18, .62); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .icon-btn { margin-inline-start: auto; }
.modal-body { padding: 18px; overflow-y: auto; max-height: calc(100vh - 190px); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 12px; background: var(--surface-3);
         border: 1px solid var(--border-2); box-shadow: var(--shadow); max-width: 420px; animation: pop .2s ease-out; }
.toast.ok svg { color: var(--ok); }
.toast.err { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.toast.err svg { color: var(--danger); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.menu { position: fixed; z-index: 60; min-width: 210px; background: var(--surface); border: 1px solid var(--border-2);
        border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent;
               border-radius: 8px; cursor: pointer; text-align: start; color: var(--text-2); }
.menu button:hover { background: var(--surface-2); color: var(--text); }
.menu button.danger { color: var(--danger); }
.menu button:disabled { opacity: .4; cursor: not-allowed; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 4px; }

/* ---------- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
              background: radial-gradient(1200px 600px at 80% -10%, rgba(63, 169, 245, .16), transparent 60%),
                          radial-gradient(900px 500px at 0% 110%, rgba(124, 140, 255, .14), transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
              padding: 30px 28px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; flex-direction: column; text-align: center; padding-bottom: 22px; }
.login-card .brand-mark { width: 54px; height: 54px; font-size: 26px; border-radius: 16px; }
.login-card .brand-name { font-size: 21px; }
.err-text { color: var(--danger); font-size: 13px; min-height: 20px; }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%;
            animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- responsive */
@media (max-width: 1000px) {
  .cols-2, .cols-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 50; transform: translateX(100%);
             transition: transform .2s; box-shadow: var(--shadow); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .server-pill #srv-name { display: none; }
  .content { padding: 16px 14px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .ch .ch-actions { opacity: 1; }
  .tbl.responsive thead { display: none; }
  .tbl.responsive tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
  .tbl.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 10px; }
  .tbl.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex: none; }
  .tbl.responsive td.actions { justify-content: flex-end; }
  .tbl.responsive td.actions::before, .tbl.responsive td.primary::before { content: none; }
  .log-line { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
