/* 会话池 · 授权管理后台 —— 运营控制塔：克制的蓝灰控制面 + 3px 状态轨道。
   全部颜色、间距与动效走 :root 变量；深色由 prefers-color-scheme 自动覆盖；无外部资源、无渐变。 */

:root {
  --bg: #f3f6fa; --surface: #ffffff; --surface-alt: #f8fafc; --border: #d9e2ec; --text: #0f172a; --muted: #64748b;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-soft: #dbeafe;
  --ok: #15803d; --ok-bg: #dcfce7; --danger: #b91c1c; --danger-bg: #fee2e2; --warn: #b45309; --warn-bg: #fef3c7;
  --radius: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --font: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif; --mono: ui-monospace, Consolas, "Cascadia Mono", monospace;
  --row-hover: #f1f5f9; --code-bg: #eef2f7; --input-bg: #ffffff; --backdrop: rgba(15, 23, 42, .48);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .18);
  --topbar-h: 64px; --motion: 180ms;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111827; --surface-alt: #172033; --border: #29364a; --text: #f8fafc; --muted: #a6b3c4;
    --accent: #60a5fa; --accent-hover: #93c5fd; --accent-soft: #172f55;
    --ok: #4ade80; --ok-bg: #12351f; --danger: #f87171; --danger-bg: #3f1d25; --warn: #fbbf24; --warn-bg: #3a2c0e;
    --shadow: none;
    --row-hover: #182235; --code-bg: #1b2639; --input-bg: #0d1524; --backdrop: rgba(0, 0, 0, .64);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  font: 14px/1.55 var(--font); color: var(--text); background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, pre, .num { font-variant-numeric: tabular-nums; }
code, pre { font-family: var(--mono); font-size: 13px; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.spacer { flex: 1; }
.loading { opacity: .6; pointer-events: none; }
.clip-helper { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 品牌 ---------- */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-title { font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand-mark { position: relative; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 6px; height: 2px; border-radius: 1px; background: #fff; }
.brand-mark::before { top: 7px; width: 10px; }
.brand-mark::after { top: 12px; width: 6px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--s4);
}
.table-card { padding: 0; overflow-x: auto; }
.table-card > h3 { padding: 14px var(--s4) 0; }
.notice { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.status-track { border-top-width: 3px; border-top-style: solid; }
.status-track.signal { border-top-color: var(--accent); }
.status-track.ok { border-top-color: var(--ok); }
.status-track.warn { border-top-color: var(--warn); }
.status-track.danger { border-top-color: var(--danger); }
.status-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dot.signal { color: var(--accent); }
.status-dot.ok { color: var(--ok); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--motion), border-color var(--motion), color var(--motion), opacity var(--motion);
}
.btn:hover { background: var(--row-hover); text-decoration: none; color: var(--text); }
.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); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--row-hover); color: var(--text); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { color: #fff; filter: brightness(.94); }
.btn.danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-bg); color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; min-height: 42px; }
.btn.icon { width: 36px; padding: 0; font-size: 18px; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: var(--s3); }
.field-label { display: block; margin-bottom: var(--s1); font-size: 12px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], textarea {
  width: 100%; min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--input-bg); color: var(--text); font: inherit; line-height: 1.4;
  transition: border-color var(--motion), box-shadow var(--motion);
}
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
input[type="file"] { display: block; width: 100%; min-height: 36px; font: inherit; color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; }
.input-row { display: flex; gap: var(--s2); }
.input-row input { flex: 1; min-width: 0; }
.check { min-height: 36px; display: flex; align-items: center; gap: var(--s2); margin: var(--s1) 0 var(--s4); color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.form-error { margin: var(--s2) 0; font-size: 12px; color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; margin-top: var(--s3); }
.form > h3 { margin-bottom: var(--s3); }

/* ---------- 登录页 ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 32px var(--s4); }
.login-card {
  width: 100%; max-width: 820px; min-width: 0; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  border-top: 3px solid var(--accent); box-shadow: var(--shadow-lg);
}
.login-brief {
  min-width: 0; padding: 36px 32px; display: flex; flex-direction: column;
  background: var(--surface-alt); border-right: 1px solid var(--border);
}
.login-brief .brand { margin-bottom: 32px; }
.login-card .brand-title { font-size: 18px; font-weight: 700; }
.login-kicker { margin-bottom: var(--s2); color: var(--accent); font: 650 11px/1.4 var(--mono); letter-spacing: .12em; }
.login-summary { max-width: 31ch; font-size: 20px; font-weight: 650; line-height: 1.45; letter-spacing: -.02em; }
.login-capabilities { display: grid; gap: 9px; margin-top: var(--s5); color: var(--muted); font-size: 13px; }
.login-capabilities span { display: flex; align-items: center; gap: var(--s2); }
.login-capabilities span::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }
.login-node { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin-top: auto; padding-top: 32px; color: var(--muted); font-size: 12px; }
.login-node code { color: var(--text); overflow-wrap: anywhere; }
.login-fields { min-width: 0; padding: 36px; align-self: center; }
.login-fields h2 { margin-bottom: var(--s1); font-size: 24px; }
.login-help { margin-bottom: var(--s5); max-width: 39ch; font-size: 12px; }
.login-card .field { margin: var(--s3) 0 0; }
.login-card .input-row { min-width: 0; }
.login-card input[type="text"], .login-card input[type="password"] { min-height: 42px; }
.login-card .password-toggle { min-height: 42px; min-width: 56px; }
.login-card .check { align-items: flex-start; margin: var(--s3) 0; line-height: 1.45; }
.login-card .check input { flex: none; margin-top: 3px; }
.login-card .check span { min-width: 0; }
.http-warning {
  margin-top: var(--s4); padding: 10px 12px; border: 1px solid var(--warn); border-left-width: 3px; border-radius: 7px;
  color: var(--warn); background: var(--warn-bg); font-size: 12px; line-height: 1.55;
}
.login-card .form-error { margin-top: var(--s3); }
.login-card .block { margin-top: var(--s3); }
@media (max-width: 720px) {
  .login { align-items: start; padding: var(--s3); }
  .login-card { max-width: 460px; grid-template-columns: minmax(0, 1fr); }
  .login-brief { padding: var(--s5) var(--s4); border-right: 0; border-bottom: 1px solid var(--border); }
  .login-brief .brand { margin-bottom: var(--s4); }
  .login-summary { font-size: 17px; }
  .login-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); font-size: 12px; }
  .login-capabilities span { gap: 6px; }
  .login-capabilities span::before { width: 8px; }
  .login-node { margin-top: var(--s4); padding-top: 0; }
  .http-warning { margin-top: var(--s3); }
  .login-fields { padding: var(--s5) var(--s4); }
}
@media (max-width: 400px) {
  .login { padding: var(--s3); }
  .login-capabilities { grid-template-columns: 1fr; }
  .login-fields h2 { font-size: 22px; }
}

/* ---------- 应用壳 ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s4); height: var(--topbar-h); padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar > .brand { flex: 0 0 196px; }
.connection-strip { min-width: 0; display: flex; align-items: center; gap: var(--s2); flex: 1; }
.connection-item {
  min-width: 0; min-height: 36px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-alt);
  color: var(--muted); font-size: 12px;
}
.connection-item .origin { min-width: 0; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.connection-label { font-weight: 600; color: var(--muted); }
.connection-item.transport.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.connection-item.transport.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.topbar-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; flex: none; }
.topbar-actions .btn { flex: none; }
@media (max-width: 959px) {
  .topbar { height: auto; min-height: var(--topbar-h); padding: var(--s2) var(--s3); flex-wrap: wrap; }
  .topbar > .brand { flex: 1 1 auto; }
  .connection-strip { order: 3; flex: 1 0 100%; }
}
@media (max-width: 600px) {
  .topbar .brand { flex: 1; }
  .connection-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .connection-item { min-height: 44px; }
  .connection-label { display: none; }
  .connection-item .origin { max-width: none; }
  .topbar-actions { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .topbar-actions .btn { min-height: 44px; }
}
.nav { display: flex; gap: var(--s1); padding: var(--s2) var(--s3); overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-label, .nav-foot { display: none; }
.nav a {
  min-height: 36px; display: flex; align-items: center; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 550; white-space: nowrap;
  transition: background-color var(--motion), color var(--motion), box-shadow var(--motion);
}
.nav a:hover { background: var(--row-hover); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--s5); }
.page { display: flex; flex-direction: column; gap: var(--s4); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); min-height: 44px; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: var(--topbar-h) 1fr; }
  .topbar { grid-column: 1 / -1; }
  .nav {
    position: sticky; top: var(--topbar-h); align-self: start; flex-direction: column; gap: var(--s1);
    height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
    padding: 20px var(--s3); overflow: visible;
    border-bottom: 0; border-right: 1px solid var(--border);
  }
  .nav-label {
    display: block; margin: 0 10px var(--s2); color: var(--muted);
    font: 650 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  }
  .nav a { min-height: 40px; padding: 8px 13px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .nav-foot {
    display: flex; align-items: center; gap: var(--s2); margin-top: auto; padding: var(--s3) 10px 0;
    border-top: 1px solid var(--border); color: var(--muted); font-size: 11px;
  }
  .main { padding: var(--s5); }
}
@media (max-width: 720px) {
  .nav a { min-height: 44px; }
  .main { padding: var(--s4) var(--s3); }
  .page-head { align-items: center; }
}

/* ---------- 概览 ---------- */
.stat-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px var(--s4) var(--s4); }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 680; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-value.ok { color: var(--ok); }
.stat-value.danger { color: var(--danger); }
.stat-value.warn { color: var(--warn); }
.release-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.release-line + .kv { margin-top: var(--s3); }
.release-version { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
#stat-release { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: 14px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-value { font-size: 24px; } }

/* ---------- 卡密页 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.toolbar input[type="search"] { flex: 0 1 260px; min-width: 180px; }
@media (max-width: 720px) { .toolbar input[type="search"] { flex: 1 1 100%; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color var(--motion), color var(--motion), border-color var(--motion);
}
.chip:hover { color: var(--text); background: var(--row-hover); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { height: 50px; padding: 0 var(--s4); text-align: left; vertical-align: middle; white-space: nowrap; }
.table th { font-size: 11px; font-weight: 650; letter-spacing: .03em; color: var(--muted); background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.table td { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--row-hover); }
.table td.note { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.table .actions { text-align: right; }
.table td.actions .btn + .btn { margin-left: var(--s1); }
.table td.empty { text-align: center; }
.empty { padding: 40px var(--s4); text-align: center; color: var(--muted); }
.pager { display: flex; align-items: center; gap: var(--s2); padding: 10px var(--s4); border-top: 1px solid var(--border); font-size: 12px; }
@media (min-width: 1200px) {
  .table-card { overflow: visible; }
  .table th { position: sticky; top: var(--topbar-h); z-index: 5; }
}

/* 短码 / 指纹 / 摘要：等宽芯片，可复制的带 copy 光标 */
.code {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: var(--code-bg); border: 1px solid transparent; letter-spacing: .02em; line-height: 1.4;
}
.code.copyable { min-height: 36px; display: inline-flex; align-items: center; cursor: copy; transition: border-color var(--motion), background-color var(--motion); }
.code.copyable:hover { border-color: var(--accent); background: var(--accent-soft); }
.code.wrap { white-space: normal; word-break: break-all; }
.codes {
  margin: 0 0 var(--s2); padding: var(--s3) var(--s4); max-height: 260px; overflow: auto;
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 6px;
  line-height: 1.9; letter-spacing: .02em; user-select: all;
}

/* 状态徽标：前置圆点 + 文字，不只靠颜色 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px 0 7px;
  border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge:empty { display: none; }
.badge.active { color: var(--ok); background: var(--ok-bg); }
.badge.revoked { color: var(--danger); background: var(--danger-bg); }
.badge.expired { color: var(--warn); background: var(--warn-bg); }

/* ---------- 抽屉 ---------- */
.backdrop { position: fixed; inset: 0; z-index: 30; background: var(--backdrop); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: 440px; max-width: 100vw;
  display: flex; flex-direction: column;
  background: var(--surface); border-top: 3px solid var(--accent); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: drawer-in var(--motion) ease-out;
}
.drawer:focus { outline: none; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: var(--topbar-h); padding: var(--s3) var(--s4) var(--s3) var(--s5); border-bottom: 1px solid var(--border);
}
.drawer-head h2 { font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5) var(--s5); }
.drawer-body > h3 { margin: var(--s5) 0 var(--s2); }
.drawer-body .form { padding-top: var(--s2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s4); align-items: center; margin-bottom: var(--s4); }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.device-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hash action" "meta action";
  align-items: center; column-gap: var(--s3); row-gap: var(--s1); padding: 10px 0; border-top: 1px solid var(--border);
}
.device-list li:last-child { border-bottom: 1px solid var(--border); }
.device-list .code { grid-area: hash; justify-self: start; }
.device-list .btn { grid-area: action; }
.device-meta { grid-area: meta; font-size: 12px; }
.drawer .empty { padding: var(--s4); border: 1px dashed var(--border); border-radius: 6px; }
.danger-zone {
  margin-top: var(--s5); padding: var(--s4); border: 1px solid var(--border); border-left: 3px solid var(--danger);
  border-radius: 8px; background: var(--danger-bg);
}
.danger-zone h3 { color: var(--danger); margin-bottom: var(--s1); }
.danger-zone .btn { margin-top: var(--s3); }
@media (max-width: 720px) {
  .drawer { width: 100vw; border-left: 0; }
  body.drawer-open { overflow: hidden; }
}

/* ---------- 对话框 ---------- */
.dialog {
  width: min(480px, calc(100vw - 32px)); padding: 20px 24px 24px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  animation: dialog-in var(--motion) ease-out;
}
.dialog.small { width: min(400px, calc(100vw - 32px)); }
.dialog::backdrop { background: var(--backdrop); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px var(--s4) 0; }
.dialog-head h2 { font-size: 16px; }
.dialog .small { margin-bottom: var(--s2); }
#password-dialog .field:first-of-type { margin-top: var(--s4); }
#password-dialog input[type="password"] { min-height: 38px; }
#confirm-text { margin-bottom: var(--s2); line-height: 1.6; }
@keyframes dialog-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 50; display: flex; flex-direction: column; gap: var(--s2); max-width: min(360px, calc(100vw - 32px)); }
.toast {
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); cursor: pointer; font-size: 13px;
  animation: toast-in var(--motion) ease-out;
}
.toast.error { border-left-color: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .btn, .btn.small, .btn.icon, .chip,
  input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="date"] { min-height: 44px; }
  #password-dialog input[type="password"] { min-height: 44px; }
  input[type="file"], .check, .code.copyable { min-height: 44px; }
  .btn.icon { width: 44px; }
  .table th, .table td { height: 52px; }
  .dialog { padding: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
