:root {
  --primary: #0f766e;
  --primary-strong: #115e59;
  --primary-light: #14b8a6;
  --primary-bg: #ecfdf5;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
  --info: #0284c7;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 13px; }
a { color: var(--primary); }

/* ============ 登录（沿用诊所端风格） ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5a4 0%, #6366f1 100%);
  padding: 20px;
}
.login-container {
  display: flex;
  width: 100%;
  max-width: 980px;
  min-height: 580px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.login-left {
  flex: 1.1;
  background: linear-gradient(135deg, #0f766e 0%, #4338ca 100%);
  color: #fff;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.login-left::after {
  content: '';
  position: absolute; bottom: -30%; left: -20%;
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.brand { position: relative; z-index: 1; }
.brand-icon {
  width: 70px; height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.brand h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.brand p { font-size: 15px; opacity: 0.85; }
.login-features {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 14px; border-radius: 10px;
  backdrop-filter: blur(10px);
}
.feature-item i { color: #5eead4; font-size: 16px; }
.login-right { flex: 1; padding: 50px 45px; display: flex; align-items: center; justify-content: center; }
.login-form-wrapper { width: 100%; max-width: 340px; }
.login-form-wrapper h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.login-form-wrapper > p { color: var(--text-secondary); margin-bottom: 30px; }
.btn-login {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover { opacity: .92; }
.form-remember { margin-bottom: 20px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: var(--text-secondary);
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--text-muted); text-align: center; }
@media (max-width: 860px) {
  .login-container { flex-direction: column; min-height: auto; }
  .login-left { padding: 32px 28px; gap: 24px; }
  .login-features { grid-template-columns: 1fr; }
  .login-right { padding: 32px 24px; }
}

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; background: #0b1220; color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-head { display: flex; gap: 12px; align-items: center; padding: 22px 20px; border-bottom: 1px solid #1e293b; }
.sidebar-head .logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
}
.sidebar-head strong { display: block; font-size: 15px; color: #f1f5f9; }
.sidebar-head span { font-size: 12px; color: #64748b; }
.nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-title { font-size: 11px; color: #475569; padding: 14px 12px 6px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px; cursor: pointer; color: #94a3b8;
  transition: all .18s; font-size: 14px;
}
.nav-item i { width: 18px; text-align: center; }
.nav-item:hover { background: #111c2e; color: #e2e8f0; }
.nav-item.active { background: linear-gradient(90deg, #0f766e, #115e59); color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .35); }
.sidebar-foot { padding: 16px; border-top: 1px solid #1e293b; }
.admin-info { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600;
}
.admin-info strong { display: block; color: #e2e8f0; font-size: 13px; }
.admin-info span { font-size: 11px; color: #64748b; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff; padding: 18px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h2 { font-size: 20px; }
.topbar p { margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.notif-wrap { position: relative; }
.topbar-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text-secondary); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.topbar-icon-btn:hover { background: #f1f5f9; color: var(--primary); }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.notif-dropdown {
  position: absolute; top: 48px; right: 0; width: 360px; max-height: 460px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .16); z-index: 60; display: flex; flex-direction: column;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.notif-list { overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #f0f9ff; }
.notif-icon {
  width: 34px; height: 34px; border-radius: 9px; background: #e0f2f1; color: #0d9488;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.notif-body { min-width: 0; flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-content { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.notif-empty { padding: 34px 14px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notif-empty i { font-size: 26px; color: #cbd5e1; display: block; margin-bottom: 8px; }
.notif-foot {
  padding: 11px 14px; text-align: center; font-size: 13px; color: var(--primary);
  border-top: 1px solid var(--border); cursor: pointer;
}
.notif-foot:hover { background: #f1f5f9; }
.btn-text { background: none; border: none; color: var(--primary); font-size: 12.5px; cursor: pointer; padding: 0; }
.tag-gray { background: #f1f5f9; color: #64748b; }
.content { padding: 24px 28px 40px; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13.5px; cursor: pointer; transition: all .18s; white-space: nowrap;
  background: #fff; color: var(--text-secondary);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: #fff; border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary); }
.btn-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: #334155; color: #94a3b8; }
.btn-ghost:hover { color: #fff; border-color: #475569; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; color: var(--text-secondary); display: inline-flex;
  align-items: center; justify-content: center; transition: all .15s;
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary-light); background: var(--primary-bg); }
.btn-icon.danger:hover { color: var(--danger); border-color: #fecaca; background: #fef2f2; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #eef2f7; }
.card + .card { margin-top: 18px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.toolbar .spacer { flex: 1; }
.filter-input, .filter-select {
  height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px;
  font-size: 13px; outline: none; background: #fff; color: var(--text);
}
.filter-input:focus, .filter-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px #14b8a61f; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600;
  padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafcfd; }
.table tbody tr.clickable { cursor: pointer; }
.table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.empty { padding: 46px 16px; text-align: center; color: var(--text-muted); }
.empty i { font-size: 30px; opacity: .45; display: block; margin-bottom: 10px; }
.actions { display: flex; gap: 6px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-gray { background: #f1f5f9; color: #64748b; }
.tag-teal { background: #ccfbf1; color: #0f766e; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid #eef2f7; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; }
.stat-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.teal { background: #ccfbf1; color: #0f766e; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.violet { background: #ede9fe; color: #7c3aed; }
.stat-icon.amber { background: #fef3c7; color: #b45309; }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1.15; }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #f1f5f9; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--text-secondary); }
.chip b { color: var(--primary); font-size: 14px; margin-left: 4px; }

.modules-cell { display: flex; gap: 4px; flex-wrap: wrap; max-width: 280px; }
.modules-cell .tag { font-size: 11px; padding: 2px 7px; }

/* ============ 模态框 ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 14px; width: 560px; max-width: 100%;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(2,6,23,.35);
}
.modal.lg { width: 780px; }
.modal.xl { width: 980px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 16px; }
.modal-close { border: none; background: transparent; font-size: 17px; color: var(--text-muted); cursor: pointer; width: 30px; height: 30px; border-radius: 7px; }
.modal-close:hover { background: #f1f5f9; color: var(--text); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12.5px; color: var(--text-secondary); }
/* 备案管理字段标签：带图标徽章，与卡片标题风格统一 */
.filing-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.filing-label i { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex-shrink: 0; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.filing-label.ico-icp i { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.filing-label.ico-psb i { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.form-group input, .form-group select, .form-group textarea {
  height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px;
  font-size: 13.5px; outline: none; width: 100%; background: #fff; color: var(--text); font-family: inherit;
}
.form-group textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px #14b8a61f; }
.form-hint { font-size: 11.5px; color: var(--text-muted); }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cb-item { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 13px; cursor: pointer; }
.cb-item:hover { border-color: var(--primary-light); background: #f8fdfc; }
.cb-item input { width: 15px; height: 15px; accent-color: var(--primary); }
.mod-group { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: 10px; padding: 8px; background: #fbfdfd; }
.mod-group > .cb-item { border-color: transparent; background: transparent; padding: 5px 6px; }
.mod-children { margin: 2px 0 0 10px; }
.mod-children summary { cursor: pointer; font-size: 12px; color: var(--primary); padding: 4px 2px; user-select: none; }
.mod-child-grid { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--border); }
.cb-child { font-size: 12.5px; padding: 7px 9px; }
.core-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* 审计详情 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 16px; }
.detail-grid .item { font-size: 13px; }
.detail-grid .item label { display: block; color: var(--text-muted); font-size: 11.5px; margin-bottom: 3px; }
.hash-box { background: #0b1220; color: #94a3b8; border-radius: 9px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; line-height: 1.9; }
.hash-box b { color: #5eead4; font-weight: 600; }
.change-list { display: flex; flex-direction: column; gap: 10px; }
.change-item { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.change-field { background: #f8fafc; padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.change-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.change-side { background: #fff; padding: 10px 12px; font-size: 12.5px; }
.change-side .label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.change-side.before { border-left: 3px solid #fca5a5; }
.change-side.after { border-left: 3px solid #86efac; }
.change-side pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; color: var(--text-secondary); }

.version-table code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

/* Toast */
.toast-root { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border-left: 4px solid var(--success); border-radius: 9px;
  box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: 12px 16px; min-width: 240px;
  display: flex; gap: 10px; align-items: center; font-size: 13.5px; animation: slide .2s ease;
}
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.info { border-color: var(--info); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* 通知公告 */
.nav-badge {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 11px;
  padding: 1px 7px; border-radius: 10px; font-weight: 600; min-width: 18px; text-align: center;
}
.tabs-bar { display: flex; gap: 4px; }
.tab-item {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
  color: var(--text-secondary); transition: all .15s; white-space: nowrap;
}
.tab-item:hover { background: #f1f5f9; }
.tab-item.active { background: var(--primary); color: #fff; }
.chk-group {
  border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  background: #fafbfc;
}
.chk-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;
  padding: 5px 6px; border-radius: 6px;
}
.chk-item:hover { background: #eef6f5; }
.chk-item input { width: 15px; height: 15px; accent-color: var(--primary); }
.unread-row { background: #fffbeb; }
.unread-row:hover { background: #fef3c7 !important; }
.dot-red {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); margin-right: 4px; vertical-align: middle;
}

/* 备案相关 */
.platform-footer {
  text-align: center; padding: 16px 12px 22px; font-size: 12px; color: var(--text-muted);
}
.platform-footer a { color: var(--text-muted); text-decoration: none; }
.platform-footer a:hover { color: var(--primary); }
.filing-warning {
  font-size: 13px; line-height: 1.9; color: var(--text-secondary);
  background: #fff8f0; border: 1px solid #f5d9b8; border-left: 4px solid var(--warning);
  border-radius: 8px; padding: 14px 16px;
}
.filing-warning p { margin: 0 0 10px; }
.filing-warning p:last-child { margin-bottom: 0; }
.filing-warning .fa-triangle-exclamation { color: var(--warning); margin-right: 4px; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .sidebar { width: 76px; }
  .sidebar-head > div:last-child, .nav-item span, .sidebar-foot .admin-info div:last-child, .sidebar-foot .btn-ghost span { display: none; }
  .sidebar-head { justify-content: center; padding: 18px 8px; }
  .nav-item { justify-content: center; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .form-grid, .detail-grid, .change-body { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 版权与备案页脚 / 登录协议 ===== */
.platform-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}
.platform-footer a { color: var(--text-muted); text-decoration: none; }
.platform-footer a:hover { color: var(--primary); text-decoration: underline; }
.platform-footer .footer-sep { color: var(--border); }

.login-page { position: relative; padding-bottom: 48px; }
.login-footer {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 4px 10px;
    padding: 0 16px;
    font-size: 12px; line-height: 1.7;
    color: var(--text-muted); text-align: center;
}
.login-footer a { color: var(--text-muted); text-decoration: none; }
.login-footer a:hover { color: var(--primary); text-decoration: underline; }
.login-footer .footer-sep { color: var(--border); }

.login-agreement { margin: 2px 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--text-secondary); }
.login-agreement .agree-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.login-agreement input[type="checkbox"] { margin-top: 3px; flex: none; }
.login-agreement a { color: var(--primary); text-decoration: none; }
.login-agreement a:hover { text-decoration: underline; }

.legal-content {
    max-height: 60vh; overflow-y: auto;
    line-height: 1.9; font-size: 13.5px;
    color: var(--text-secondary); padding-right: 6px;
}
.legal-content h3 { margin: 4px 0 10px; font-size: 16px; color: var(--text-primary); }
.legal-content h4 { margin: 14px 0 6px; font-size: 14px; color: var(--text-primary); }
.legal-content p { margin: 0 0 8px; }
.legal-content h2 { margin: 10px 0 8px; font-size: 18px; color: var(--text-primary); }
.legal-content ul, .legal-content ol { margin: 0 0 10px 20px; padding: 0; }
.legal-content li { margin: 0 0 4px; }
.legal-content blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--border); background: rgba(0,0,0,.03); color: var(--text-muted); }
.legal-content strong { color: var(--text-primary); }
.legal-content code { background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 3px; font-size: 12px; }

.legal-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.legal-field-head label { margin: 0; }
.legal-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-hint { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.legal-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.7; font-size: 12.5px; }
