/* Hiliand 统一身份认证平台 — 政企风设计系统
   深蓝官方配色 / 方正排版 / 克制阴影 / 全量组件覆盖 */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #dfe6f0;
  --border-strong: #c9d5e6;
  --text: #16233a;
  --text-2: #43536b;
  --muted: #7a8aa0;
  --primary: #14418c;
  --primary-2: #1d5bbf;
  --primary-deep: #0b2e63;
  --primary-soft: #edf3fb;
  --gold: #c9a227;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -8px rgba(16, 24, 40, .10);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .05), 0 12px 24px -12px rgba(16, 24, 40, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.65 -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px; background: #f0f3f9; padding: 2px 6px;
  border-radius: 4px; color: #24344d;
}
pre {
  background: #0f1f38; color: #dde6f3; padding: 18px 20px; border-radius: var(--radius-sm);
  overflow-x: auto; font: 13px/1.7 ui-monospace, "SF Mono", Consolas, monospace;
}
pre code { background: none; color: inherit; padding: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-ok { color: var(--ok); font-weight: 600; }

/* ---------- 官方顶条 ---------- */
.gov-strip {
  background: linear-gradient(90deg, #0b2e63 0%, #123a7c 55%, #14418c 100%);
  color: #dbe6f7; font-size: 12px; letter-spacing: .3px;
}
.gov-strip-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px; gap: 12px;
}
.gov-brand { font-weight: 600; }
.gov-meta { color: #a9c0e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-meta .dot-ok {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #35c48e; margin-right: 6px; vertical-align: 1px;
}

/* ---------- 主顶栏 ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .03);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--primary-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; border: 1px solid #0a2754;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.brand-mark.lg { width: 48px; height: 48px; font-size: 23px; border-radius: 8px; }
.brand-text { font-weight: 700; font-size: 17px; letter-spacing: .6px; }
.brand-text b { color: var(--primary); }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .4px; margin-top: -2px; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a {
  color: var(--text-2); font-weight: 500; font-size: 14px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.topnav a:hover, .topnav a.active { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.inline-form { display: inline; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #103672; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: #b9cbe6; }
.btn-outline:hover { background: var(--primary-soft); text-decoration: none; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f5cdc8; }
.btn-danger:hover { background: #fde8e6; text-decoration: none; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 4px; }
.btn-lg { padding: 12px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; pointer-events: none; }

/* ---------- 提示 ---------- */
.alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: 13.5px; border: 1px solid;
}
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f5cdc8; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #abefc6; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #fedf89; }
.alert-error::before { content: "!"; font-weight: 800; }
.alert-ok::before { content: "✓"; font-weight: 800; }
.alert-warn::before { content: "!"; font-weight: 800; }
.notice-info {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: #23426f; font-size: 13px;
  border-left: 3px solid var(--primary); line-height: 1.7;
}

/* ---------- 首页 ---------- */
.page { flex: 1; padding: 34px 0 60px; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 56px 48px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
    linear-gradient(25deg, rgba(255,255,255,.03) 0 1px, transparent 1px 44px),
    linear-gradient(120deg, #0b2e63 0%, #123a7c 58%, #17478f 100%);
  color: #fff; border: 1px solid #0a2754;
  box-shadow: 0 18px 32px -20px rgba(11, 46, 99, .55);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  color: #dbe7fa; font-size: 12px; font-weight: 600; letter-spacing: .8px; margin-bottom: 18px;
}
.hero h1 { font-size: 38px; margin: 0 0 14px; letter-spacing: 1px; line-height: 1.3; font-weight: 700; }
.hero .grad { color: #a9c8f5; }
.hero-sub { color: #c6d6ee; font-size: 15px; margin: 0 0 28px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--primary-deep); border-color: #fff; }
.hero-actions .btn-primary:hover { background: #eaf1fb; }
.hero-actions .btn-outline, .hero-actions .btn-ghost {
  background: transparent; color: #dbe7fa; border-color: rgba(255,255,255,.35);
}
.hero-actions .btn-outline:hover, .hero-actions .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-meta { margin-top: 30px; display: flex; gap: 20px; flex-wrap: wrap; color: #a9c0e4; font-size: 12.5px; }
.hero-trust { border-left: 1px solid rgba(255,255,255,.16); padding-left: 32px; }
.hero-trust h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: 1.5px; color: #a9c0e4; font-weight: 600; }
.hero-trust ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-trust li { font-size: 13.5px; color: #dbe7fa; display: flex; gap: 10px; align-items: baseline; }
.hero-trust li b { color: #fff; font-weight: 600; }
.hero-trust .tick { color: #6fd7a8; font-weight: 700; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 22px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  border-top: 3px solid var(--primary);
}
.feature-card h3 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: .4px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.feature-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); background: var(--primary-soft);
  border-radius: 3px; padding: 2px 8px; margin-bottom: 12px;
}

/* ---------- 认证卡片 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 34px 0; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
}
.auth-card.wide-card { max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 21px; margin: 14px 0 4px; letter-spacing: .8px; }
.auth-head p { margin: 0; font-size: 13.5px; }
.tabs { display: flex; background: #eef2f8; border-radius: var(--radius-sm); padding: 3px; margin-bottom: 22px; }
.tab {
  flex: 1; border: none; background: transparent; padding: 8px 0;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-radius: 4px; cursor: pointer; font-family: inherit;
}
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.10); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: .2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(29, 91, 191, .12);
}
.field input:disabled { background: #f1f4f9; color: var(--muted); }
.field textarea { resize: vertical; }
.input-sm { padding: 6px 9px !important; font-size: 13px !important; width: 130px; border: 1px solid var(--border-strong); border-radius: 4px; }
.code-inputs { display: flex; gap: 10px; }
.code-inputs input { flex: 1; letter-spacing: 4px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }

/* ---------- 布局 / 侧栏 ---------- */
.layout { display: grid; grid-template-columns: 236px 1fr; gap: 20px; align-items: start; }
.sidenav {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  position: sticky; top: 78px;
}
.side-user { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.avatar {
  width: 42px; height: 42px; border-radius: 6px;
  background: var(--primary-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.avatar.admin { background: #1b3f79; }
.side-name { font-weight: 600; font-size: 14px; }
.side-mail { font-size: 11.5px; word-break: break-all; }
.side-link {
  display: block; padding: 9px 12px; border-radius: 4px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
  border-left: 3px solid transparent;
}
.side-link:hover { background: var(--surface-2); text-decoration: none; }
.side-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------- 卡片 / 表格 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: 16px; letter-spacing: .5px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.search-row { display: flex; gap: 8px; }
.search-row input { padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 13px; width: 220px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; color: #5a6b85; font-weight: 600;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap; font-size: 12.5px; letter-spacing: .3px;
}
.table td { padding: 10px 12px; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fafd; }
.ua-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.op-cell .inline-form { margin-right: 6px; }
.op-cell form { display: inline-flex; gap: 4px; align-items: center; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11.5px; font-weight: 600; background: #eef2f8; color: #44566f;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
.stat-num { font-size: 27px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- 授权页 ---------- */
.consent-card { max-width: 480px; }
.consent-app { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.consent-app h1 { font-size: 19px; margin: 0; letter-spacing: .4px; }
.consent-app p { margin: 2px 0 0; font-size: 12.5px; }
.app-avatar {
  width: 46px; height: 46px; border-radius: 8px; flex-shrink: 0;
  background: #2c4a76; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px;
}
.app-link { font-weight: 500; }
.consent-desc { color: var(--text-2); font-size: 13.5px; background: var(--surface-2); padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.scope-list { margin: 18px 0; }
.scope-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.scope-item { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.scope-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.scope-name { font-weight: 600; font-size: 13.5px; }
.scope-slug { font-size: 11px; color: var(--muted); margin-left: 6px; }
.scope-desc { color: var(--muted); font-size: 12px; }
.remember-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.consent-actions { display: flex; flex-direction: column; gap: 10px; }
.consent-foot { text-align: center; font-size: 12px; margin-top: 14px; }

/* ---------- 授权应用列表 ---------- */
.authz-list { display: flex; flex-direction: column; gap: 12px; }
.authz-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.authz-name { font-weight: 600; margin-bottom: 3px; }
.empty-state {
  color: var(--muted); padding: 40px 0; text-align: center; font-size: 13.5px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin-top: 6px;
}

/* ---------- 安全中心 ---------- */
.security-status { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.security-status.ok { background: var(--ok-soft); color: var(--ok); }
.security-status.warn { background: var(--warn-soft); color: var(--warn); }
.totp-grid { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 180px; }
.qr-box svg { width: 100%; height: auto; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; word-break: break-all; }

/* ---------- KEY / 密钥 ---------- */
.key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.key-label { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.key-val { font-size: 12.5px; word-break: break-all; }
.rotate-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.secret-box code { font-size: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.dns-host { font-size: 12px; }
.dns-val { max-width: 380px; }
.dns-val code { font-size: 11px; word-break: break-all; white-space: normal; display: inline-block; }

/* ---------- 表单布局 ---------- */
.form-row { max-width: 460px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.check-row { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.check-row label, .check-inline { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check-inline { margin: 10px 0; }

/* ---------- 文档页 ---------- */
.docs-page { max-width: 880px; margin: 0 auto; }
.docs-page h1 { font-size: 27px; margin: 10px 0 6px; letter-spacing: 1px; }
.doc-card { margin-bottom: 18px; }
.doc-card ul, .doc-card ol { padding-left: 22px; color: var(--text-2); }
.doc-card li { margin-bottom: 6px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 18px 0; }
.footer-inner { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; gap: 8px; }

/* ---------- 错误卡 ---------- */
.error-card { text-align: center; }
.error-icon { font-size: 34px; margin-bottom: 8px; color: var(--warn); }
.error-card h1 { font-size: 21px; margin: 8px 0; letter-spacing: .5px; }
.error-card .btn { margin-top: 16px; }

/* ---------- 海联邮箱 ---------- */
.mail-layout { display: grid; grid-template-columns: 236px 1fr; gap: 20px; align-items: start; }
.mail-side {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px;
}
.mail-me { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mail-addr { font-weight: 700; font-size: 13.5px; word-break: break-all; margin-bottom: 8px; }
.quota-bar { height: 6px; background: #e9eef6; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.quota-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.quota-fill.quota-hot { background: linear-gradient(90deg, #b42318, #d97706); }
.mail-folders { display: flex; flex-direction: column; gap: 2px; }
.mail-folder {
  padding: 9px 12px; border-radius: 4px; color: var(--text-2);
  font-size: 13.5px; font-weight: 500; display: flex; justify-content: space-between; align-items: center;
  border-left: 3px solid transparent;
}
.mail-folder:hover { background: var(--surface-2); text-decoration: none; }
.mail-folder.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.unread-badge {
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 99px; padding: 1px 7px;
}
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 5px; margin-left: 5px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 99px; vertical-align: 1px;
}
.mail-tip { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); line-height: 1.6; }
.mail-main { min-width: 0; }
.msg-list { display: flex; flex-direction: column; }
.msg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px solid #eef2f8;
  transition: background .12s ease; border-radius: 4px;
}
.msg-row:hover { background: #f8fafd; }
.msg-row.unread { background: #f2f7ff; }
.msg-row.unread:hover { background: #eaf2ff; }
.msg-star { flex-shrink: 0; }
.msg-star .star-btn { font-size: 16px; }
.msg-avatar {
  width: 38px; height: 38px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.av-0 { background: #1d4e89; }
.av-1 { background: #4c5f8a; }
.av-2 { background: #2e6f63; }
.av-3 { background: #8a6d3b; }
.av-4 { background: #7a3b3b; }
.av-5 { background: #46525f; }
.msg-main { flex: 1; min-width: 0; color: var(--text); }
.msg-main:hover { text-decoration: none; }
.msg-line1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-from {
  font-weight: 600; font-size: 13.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
}
.msg-row.unread .msg-from { color: var(--text); font-weight: 700; }
.msg-meta { color: var(--muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.msg-line2 { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.msg-subject { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.unread .msg-subject { color: var(--text); font-weight: 600; }
.msg-flag { color: #b07d12; font-size: 12px; }
.msg-actions { flex-shrink: 0; }
.msg-actions .btn { padding: 4px 10px; font-size: 12px; }
.star-cell { width: 30px; text-align: center; }
.star-btn {
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: #c3ccda; padding: 2px 4px; line-height: 1;
}
.star-btn:hover { color: #b07d12; }
.star-btn.starred { color: #b07d12; }

/* 退信 */
.badge-bounce { background: var(--danger-soft); color: var(--danger); border: 1px solid #f5cdc8; }
.bounce-alert {
  background: #fffaeb; border: 1px solid #fedf89; border-left: 3px solid #b54708;
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.8; color: #7a3b08;
}

/* 正文容器 */
.mail-body {
  contain: layout paint; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; max-height: 62vh; overflow: auto; font-size: 14px;
}
.mail-body img { max-width: 100%; }
.mail-view-subject { margin-bottom: 14px; }
.mail-headers { font-size: 13px; margin-bottom: 14px; }
.mail-headers td { padding: 4px 0; vertical-align: top; }
.mail-headers td:first-child { width: 70px; white-space: nowrap; padding-right: 12px; }
.mail-view-actions { margin-top: 22px; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.att-chip {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px;
  padding: 5px 14px; font-size: 12.5px; color: var(--text-2);
}
.att-chip:hover { border-color: var(--primary-2); color: var(--primary); text-decoration: none; }
.mailname-row { display: flex; gap: 0; align-items: stretch; }
.mailname-row input { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; flex: 1; }
.mailname-domain {
  display: inline-flex; align-items: center; padding: 0 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: 13px; white-space: nowrap;
}
.compose-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

/* IP 归属地 / 纯净度 */
.ip-region { color: var(--muted); font-size: 11.5px; }
.purity-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 3px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; border: 1px solid transparent; cursor: help;
}
.purity-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.purity-good { background: var(--ok-soft); color: var(--ok); border-color: #abefc6; }
.purity-mid { background: var(--warn-soft); color: var(--warn); border-color: #fedf89; }
.purity-bad { background: var(--danger-soft); color: var(--danger); border-color: #f5cdc8; }
.purity-na { background: #eef2f8; color: var(--muted); border-color: var(--border); }

/* 公告 */
.announce-banner {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--primary-soft); border: 1px solid #d5e2f5;
  border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
  padding: 10px 16px; margin-bottom: 20px; font-size: 13px;
}
.announce-tag { font-weight: 700; color: var(--primary); white-space: nowrap; letter-spacing: .5px; }
.announce-body { color: var(--text-2); }

/* 健康卡 */
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.health-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12.5px; color: var(--text-2);
}
.health-item b { color: var(--text); margin-left: auto; font-variant-numeric: tabular-nums; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.health-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.health-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

/* 密码强度 */
.pw-meter { height: 5px; background: #e9eef6; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.pw-bar { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }
.pw-bar.weak { background: var(--danger); }
.pw-bar.mid { background: #d97706; }
.pw-bar.strong { background: var(--ok); }
.pw-hint { margin-top: 4px; }

/* 恢复码 */
.recovery-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 12px 0;
}
.recovery-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.recovery-code {
  text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  background: #eef3fb; border: 1px dashed #c3d3ea; border-radius: var(--radius-sm); padding: 12px 6px;
}

/* 动效 */
.page .container > *, .mail-layout, .layout { animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 滚动条 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #cdd8e6; border-radius: 8px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: #b4c3d7; }

/* ---------- 深色模式 ---------- */
[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #16202e;
  --surface-2: #1c2836;
  --border: #263447;
  --border-strong: #33465e;
  --text: #e4eaf2;
  --text-2: #a8b6c8;
  --muted: #6b7d94;
  --primary: #4d8fe8;
  --primary-2: #6ba3f0;
  --primary-deep: #2a5da8;
  --primary-soft: #1a2c44;
  --gold: #d4af37;
  --danger: #f0655a;
  --danger-soft: #3a1f1e;
  --ok: #3ecf8e;
  --ok-soft: #123326;
  --warn: #f0a848;
  --warn-soft: #3a2e14;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px -8px rgba(0,0,0,.5);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 12px 24px -12px rgba(0,0,0,.6);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .gov-strip { background: linear-gradient(90deg, #0a1626, #12233c); }
[data-theme="dark"] .topbar { background: var(--surface); border-bottom-color: var(--border); }
[data-theme="dark"] .brand-mark { background: var(--primary-deep); border-color: #1e4a8a; }
[data-theme="dark"] .hero { background: linear-gradient(120deg, #0a1626, #12233c, #1a3050); border-color: #1e3a5f; }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
[data-theme="dark"] .field input:disabled { background: #1a2634; }
[data-theme="dark"] code { background: #1e2c3e; color: #b8c8dc; }
[data-theme="dark"] pre { background: #0a1220; }
[data-theme="dark"] .table th { background: var(--surface-2); color: var(--muted); }
[data-theme="dark"] .table td { border-bottom-color: #1e2c3e; }
[data-theme="dark"] .table tbody tr:hover td { background: #1a2836; }
[data-theme="dark"] .tabs { background: #1a2634; }
[data-theme="dark"] .tab.active { background: var(--surface); }
[data-theme="dark"] .btn-outline { background: var(--surface); border-color: var(--border-strong); }
[data-theme="dark"] .btn-ghost { border-color: var(--border-strong); }
[data-theme="dark"] .msg-row.unread { background: #1a2c44; }
[data-theme="dark"] .msg-row:hover { background: #1a2836; }
[data-theme="dark"] .mail-body { background: var(--surface-2); }
[data-theme="dark"] .quota-bar { background: #1e2c3e; }
[data-theme="dark"] .pw-meter { background: #1e2c3e; }
[data-theme="dark"] .search-row input { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
[data-theme="dark"] .input-sm { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
[data-theme="dark"] .empty-state { border-color: var(--border-strong); }
[data-theme="dark"] .recovery-code { background: #1a2c44; border-color: #2a4a6f; }
[data-theme="dark"] .att-chip { background: var(--surface-2); }
[data-theme="dark"] .health-item { background: var(--surface-2); }
[data-theme="dark"] .recovery-panel { background: var(--surface-2); }
[data-theme="dark"] .consent-desc { background: var(--surface-2); }
[data-theme="dark"] .mailname-domain { background: var(--surface-2); border-color: var(--border-strong); }
[data-theme="dark"] .announce-banner { background: var(--primary-soft); border-color: #2a4a6f; }
[data-theme="dark"] .notice-info { background: var(--primary-soft); }
[data-theme="dark"] .bounce-alert { background: #3a2e14; border-color: #5a4a20; }
[data-theme="dark"] .qr-box { background: #fff; }
[data-theme="dark"] .footer { background: var(--surface); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #33465e; border-color: var(--bg); }

/* 主题切换按钮 */
.theme-toggle {
  background: none; border: 1px solid var(--border-strong); border-radius: 6px;
  width: 34px; height: 34px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px;
  color: var(--text-2); transition: background .15s, color .15s;
}
.theme-toggle:hover { background: var(--primary-soft); color: var(--primary); }

/* 通知铃铛 */
.notif-bell { position: relative; display: inline-flex; align-items: center; }
.notif-bell .nav-badge { position: absolute; top: -4px; right: -6px; margin: 0; }

/* 图表 */
.chart-card { padding: 20px 24px; }
.chart-card h2 { margin-bottom: 16px; }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-bar { fill: var(--primary); opacity: .85; }
.chart-bar:hover { opacity: 1; }
.chart-label { fill: var(--muted); font-size: 10px; }
.chart-value { fill: var(--text-2); font-size: 10px; font-weight: 600; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.chart-legend .l-primary::before { background: var(--primary); }
.chart-legend .l-ok::before { background: var(--ok); }
.chart-legend .l-warn::before { background: var(--warn); }

/* 通讯录 */
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px;
}
.contact-avatar {
  width: 34px; height: 34px; border-radius: 6px; background: var(--primary-deep);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 13.5px; }
.contact-email { font-size: 12.5px; color: var(--muted); }

/* 通知列表 */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
}
.notif-item.unread { background: var(--primary-soft); border-color: #c9d6ea; }
[data-theme="dark"] .notif-item.unread { border-color: #2a4a6f; }
.notif-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.notif-icon.security { background: var(--danger-soft); color: var(--danger); }
.notif-icon.mail { background: var(--primary-soft); color: var(--primary); }
.notif-icon.system { background: var(--ok-soft); color: var(--ok); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 13.5px; }
.notif-text { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- 邮件富文本编辑器 ---------- */
.editor-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.editor-tab {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer;
}
.editor-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); }
.editor-toolbar button {
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  padding: 4px 9px; border-radius: 4px; font-size: 13px; cursor: pointer; min-width: 30px;
}
.editor-toolbar button:hover { background: var(--primary-soft); color: var(--primary); }
.editor-area {
  min-height: 240px; max-height: 480px; overflow-y: auto; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--surface); font-size: 14px; line-height: 1.7; outline: none;
}
.editor-area:focus { border-color: var(--primary-2); }
#editor-source { border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* ---------- AI 套餐卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--primary);
}
.plan-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.plan-price { font-size: 24px; font-weight: 700; color: var(--primary); }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.plan-feats li::before { content: "·"; color: var(--primary); font-weight: 700; margin-right: 6px; }
.plan-card form { margin-top: auto; }

/* ---------- 充值金额选择 ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.amount-opt { position: relative; cursor: pointer; }
.amount-opt input { position: absolute; opacity: 0; }
.amount-opt span {
  display: block; text-align: center; padding: 12px 8px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--text-2);
  transition: all .15s;
}
.amount-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.amount-opt:hover span { border-color: var(--primary-2); }

/* 邮件 HTML 渲染 iframe / 纯文本 */
.mail-frame { width: 100%; min-height: 320px; height: 640px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.mail-plain { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.8; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 0; }

/* ---------- 安全监控实时指示 ---------- */
.sec-live-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); margin-bottom: 12px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: livepulse 1.6s infinite; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 118, 71, .5); }
  70% { box-shadow: 0 0 0 7px rgba(6, 118, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 118, 71, 0); }
}

/* ---------- 126 风格邮箱 ---------- */
.m126 { display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); min-height: 72vh; }
.m126-side { background: #f7f9fa; border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; }
.m126-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.m126-btn { flex: 1; text-align: center; padding: 9px 0; border-radius: 4px; color: #fff; font-weight: 600; font-size: 14px; background: #28a745; }
.m126-btn:hover { background: #23923d; text-decoration: none; color: #fff; }
.m126-account { padding: 0 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.m126-addr { font-size: 12.5px; font-weight: 600; word-break: break-all; margin-bottom: 6px; }
.m126-folders { display: flex; flex-direction: column; gap: 2px; }
.m126-folder { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 4px; color: var(--text-2); font-size: 13.5px; }
.m126-folder:hover { background: #eef2f5; text-decoration: none; }
.m126-folder.active { background: #e6f4ea; color: #28a745; font-weight: 600; }
.m126-folder .f-ico { font-size: 14px; }
.f-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.f-unread { color: #28a745; font-weight: 700; }
.m126-side-foot { margin-top: auto; padding-top: 12px; }
.m126-main { display: flex; flex-direction: column; min-width: 0; }
.m126-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.m126-bulk { display: flex; gap: 6px; }
.m126-tool { border: 1px solid var(--border-strong); background: var(--surface); padding: 5px 13px; border-radius: 4px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.m126-tool:hover { border-color: #28a745; color: #28a745; text-decoration: none; }
.m126-checkall { display: flex; align-items: center; padding: 0 4px; }
.m126-search { margin-left: auto; display: flex; border: 1px solid var(--border-strong); border-radius: 4px; overflow: hidden; }
.m126-search input { border: none; padding: 6px 10px; font-size: 13px; width: 180px; background: var(--surface); color: var(--text); outline: none; }
.m126-search-btn { border: none; background: var(--surface-2); padding: 0 10px; cursor: pointer; }
.m126-unreadline { padding: 8px 14px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border); background: #fafbfc; display: flex; gap: 8px; align-items: center; }
.m126-linkbtn { background: none; border: none; color: #28a745; cursor: pointer; font-size: 13px; padding: 0; }
.m126-linkbtn:hover { text-decoration: underline; }
.m126-list { flex: 1; }
.m126-daysep { padding: 6px 14px; font-size: 12px; color: var(--muted); background: #f7f9fa; border-bottom: 1px solid var(--border); }
.m126-row { display: grid; grid-template-columns: 26px 24px 24px 150px 1fr 22px 64px 26px; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; }
.m126-row:hover { background: #f5f9f7; }
.m126-row.unread .m126-sender, .m126-row.unread .m126-subject { font-weight: 700; color: var(--text); }
.m126-rowcheck { display: flex; align-items: center; }
.m126-env { display: flex; align-items: center; }
.env-unread { color: #f5a623; }
.env-read { color: #c0c4cc; }
.m126-flag { background: none; border: none; cursor: pointer; color: #c0c4cc; font-size: 15px; padding: 0; line-height: 1; }
.m126-flag.flagged { color: #f5a623; }
.m126-flag:hover { color: #f5a623; }
.m126-sender { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m126-subject { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.m126-sender:hover, .m126-subject:hover { color: #28a745; text-decoration: none; }
.m126-att { font-size: 13px; text-align: center; }
.m126-time { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.m126-rowdel { background: none; border: none; color: #c0c4cc; cursor: pointer; opacity: 0; font-size: 13px; }
.m126-row:hover .m126-rowdel { opacity: 1; }
.m126-rowdel:hover { color: var(--danger); }
[data-theme="dark"] .m126-side { background: #131c28; }
[data-theme="dark"] .m126-folder.active { background: #14301f; color: #4cd07d; }
[data-theme="dark"] .m126-folder:hover { background: #1a2634; }
[data-theme="dark"] .m126-daysep { background: #131c28; }
[data-theme="dark"] .m126-row { border-bottom-color: #1e2c3e; }
[data-theme="dark"] .m126-row:hover { background: #16222e; }
[data-theme="dark"] .m126-unreadline { background: #131c28; }
@media (max-width: 760px) {
  .m126 { grid-template-columns: 1fr; }
  .m126-side { border-right: none; border-bottom: 1px solid var(--border); }
  .m126-row { grid-template-columns: 24px 22px 22px 1fr 60px; }
  .m126-att, .m126-rowdel { display: none; }
  .m126-sender { display: none; }
}

/* 响应式 */
@media (max-width: 900px) {
  .layout, .mail-layout { grid-template-columns: 1fr; }
  .sidenav, .mail-side { position: static; }
  .hero { grid-template-columns: 1fr; padding: 36px 26px; }
  .hero-trust { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; }
  .hero h1 { font-size: 27px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gov-meta { display: none; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 6px; }
  .topnav { flex-wrap: wrap; gap: 12px; }
  .topnav a.active { border-bottom-color: transparent; }
  .card { padding: 18px; }
  .msg-from { max-width: 45%; }
  .msg-meta { display: none; }
  .msg-avatar { width: 32px; height: 32px; font-size: 13px; border-radius: 4px; }
  .msg-actions .btn { padding: 3px 8px; }
}