/* Tatfy CDN Console · Light */
:root {
  --bg: #f5f7fb;
  --bg-2: #eef2f9;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-3: #f1f4fa;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .14);
  --text: #0f172a;
  --muted: #5b6b85;
  --muted-2: #8494ab;
  --accent: #4f5ee8;
  --accent-2: #0d9488;
  --accent-soft: rgba(79, 94, 232, .09);
  --ok: #0f9d6b;
  --ok-soft: rgba(15, 157, 107, .10);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, .10);
  --bad: #dc3f57;
  --bad-soft: rgba(220, 63, 87, .09);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 520px at 6% -8%, rgba(79, 94, 232, .08), transparent 60%),
    radial-gradient(760px 460px at 96% -4%, rgba(13, 148, 136, .07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(79, 94, 232, .18); }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 20px 14px 16px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(135deg, #4f5ee8, #0ea5a0);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 8px 20px rgba(79, 94, 232, .25);
}
.brand-name { font-weight: 700; letter-spacing: .2px; font-size: 15px; line-height: 1.2; color: #111c33; }
.brand-sub { font-size: 11px; color: var(--muted-2); letter-spacing: .4px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-label { font-size: 11px; color: #9aa8bd; letter-spacing: .12em; padding: 14px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  color: #52627d; font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: .16s ease;
}
.nav-item svg { width: 17px; height: 17px; opacity: .9; flex: 0 0 17px; color: #6b7a94; }
.nav-item:hover { background: #f5f7fb; color: #0f172a; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(79, 94, 232, .11), rgba(13, 148, 136, .05));
  border-color: rgba(79, 94, 232, .18); color: #1b2450;
}
.nav-item.active svg { color: var(--accent); opacity: 1; }
.nav-badge { margin-left: auto; font-size: 10.5px; background: var(--bad); color: #fff; border-radius: 20px; padding: 1px 6px; font-weight: 700; }

.side-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; }
.node-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.node-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #52627d; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 157, 107, .12); }
.node-ip { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 4px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 16px 26px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 251, .82); backdrop-filter: blur(16px);
}
.page-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: #101a30; }
.page-sub { font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 100px;
  border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #4f5ee8, #14b8a6); color: #fff; }
.user-name { font-size: 12.5px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view { padding: 24px 26px 60px; width: 100%; max-width: 1280px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split { grid-template-columns: 1.6fr 1fr; align-items: start; }
.grid.split-wide { grid-template-columns: 1.2fr 1fr; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(15, 23, 42, .04);
}
.card.pad0 { padding: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 650; letter-spacing: .01em; color: #16203a; }
.card-sub { font-size: 11.5px; color: var(--muted-2); }
.card .card.metric { background: #fbfcff; box-shadow: none; border-color: #edf1f8; }
.metric { padding: 16px 18px; }
.metric-label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.metric-value { font-size: 26px; font-weight: 720; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; color: #0d1730; }
.metric-foot { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.metric-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.metric-icon.ok { background: var(--ok-soft); color: var(--ok); }
.metric-icon.warn { background: var(--warn-soft); color: var(--warn); }
.metric-icon.bad { background: var(--bad-soft); color: var(--bad); }

.hint {
  border: 1px dashed var(--border-strong); border-radius: 12px; padding: 14px;
  color: var(--muted); background: #fafbfe; font-size: 12.5px;
}
.callout { border-radius: 12px; padding: 12px 14px; font-size: 12.5px; border: 1px solid transparent; display: flex; gap: 9px; align-items: flex-start; }
.callout.info { background: #eef2ff; border-color: #d5ddff; color: #3730a3; }
.callout.warn { background: #fffaeb; border-color: #fde7b0; color: #92580a; }
.callout.bad { background: #fef2f4; border-color: #f8c9d2; color: #a11d33; }
.callout.ok { background: #ecfdf5; border-color: #b6ecd4; color: #066a4a; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: #fff; color: #21304d;
  cursor: pointer; transition: .16s ease; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.btn:hover { background: #f5f8fc; border-color: rgba(15, 23, 42, .22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, #4f5ee8, #7c5cf0); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(79, 94, 232, .25);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: transparent; color: #5b6b85; box-shadow: none; }
.btn.ghost:hover { color: #141f38; background: #f1f5fb; }
.btn.danger { color: #c02a42; border-color: #f3c4cd; background: #fff5f7; box-shadow: none; }
.btn.danger:hover { background: #ffecef; }
.btn.sm { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(79, 94, 232, .25); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
.btn.primary.loading::after { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: #46566f; font-weight: 550; }
.field .help { font-size: 11px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text); padding: 9px 12px; font-size: 13px; outline: none;
  transition: .15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(79, 94, 232, .55); box-shadow: 0 0 0 3px rgba(79, 94, 232, .1); }
.input::placeholder, .textarea::placeholder { color: #aab6c8; }
.input:disabled { background: #f6f8fc; color: var(--muted); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7b8aa2 50%), linear-gradient(135deg, #7b8aa2 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.textarea { min-height: 84px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #46566f; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #f1f4fa; border: 1px solid var(--border); border-radius: 10px; }
.seg button {
  border: 0; background: transparent; color: #5b6b85; padding: 5px 12px; border-radius: 7px;
  font-size: 12px; cursor: pointer; font-weight: 600;
}
.seg button.active { background: #fff; color: #17223c; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* ---------- 徽标/状态 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 650; border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; box-shadow: none; background: currentColor; }
.badge.ok { color: #067a54; background: #e9f9f1; border-color: #b9ebd5; }
.badge.warn { color: #8a5608; background: #fff6e2; border-color: #f6e0ae; }
.badge.bad { color: #b4233a; background: #feeef1; border-color: #f8c8d2; }
.badge.info { color: #3a46c6; background: #eef1ff; border-color: #d3d9ff; }
.badge.muted { color: #5b6b85; background: #f2f5fa; border-color: #e3e9f2; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.table th {
  text-align: left; font-weight: 600; color: #7c8aa0; font-size: 11px; letter-spacing: .05em;
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- 列表/条目 ---------- */
.site-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #f0f3f8;
  cursor: pointer; transition: .14s ease;
}
.site-item:last-child { border-bottom: 0; }
.site-item:hover { background: #fafcff; }
.site-fav {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79, 94, 232, .14), rgba(13, 148, 136, .1));
  color: #3f4bc4; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.site-domain { font-weight: 600; font-size: 13.5px; color: #111c33; }
.site-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.site-stats { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.stat-mini { text-align: right; }
.stat-mini b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; color: #16203a; }
.stat-mini span { font-size: 10.5px; color: var(--muted-2); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }

/* ---------- 图表 ---------- */
.chart { width: 100%; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.donut { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 108px; }
.donut::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--panel); }
.donut-val { position: relative; z-index: 1; text-align: center; }
.donut-val b { display: block; font-size: 21px; font-weight: 720; line-height: 1.1; color: #111c33; }
.donut-val span { font-size: 10px; color: var(--muted-2); }
.progress { height: 8px; border-radius: 20px; background: #edf1f8; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #4f5ee8, #14b8a6); transition: width .4s ease; }
.progress.warn > i { background: linear-gradient(90deg, #f0b429, #f59e0b); }
.progress.bad > i { background: linear-gradient(90deg, #ef5b72, #dc3f57); }

/* ---------- 时间线 ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eaeef5; }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 8px; background: #b6c1d2; }
.tl-dot.success { background: var(--ok); }
.tl-dot.warn { background: #e8a428; }
.tl-dot.error { background: var(--bad); }
.tl-dot.info { background: var(--accent); }
.tl-title { font-size: 12.5px; font-weight: 550; color: #1b2740; }
.tl-sub { font-size: 11.5px; color: var(--muted-2); }

/* ---------- 代码/键值 ---------- */
.code {
  font-family: var(--mono); font-size: 12px; background: #f7f9fd; border: 1px solid #e6ebf4;
  border-radius: 10px; padding: 9px 12px; color: #27354f; overflow-x: auto; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.code .val { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.copy {
  border: 0; background: #eaeff8; color: #52627d; border-radius: 7px;
  padding: 3px 8px; font-size: 11px; cursor: pointer; flex: 0 0 auto;
}
.copy:hover { color: #16203a; background: #dfe6f2; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: #1b2740; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual {
  position: relative; padding: 52px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border); overflow: hidden;
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(79, 94, 232, .16), transparent 62%),
    radial-gradient(620px 420px at 88% 92%, rgba(13, 148, 136, .12), transparent 60%),
    #f2f5fd;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-h1 { font-size: 36px; line-height: 1.2; font-weight: 760; letter-spacing: -.03em; margin: 0 0 14px; color: #101a30; }
.auth-h1 em { font-style: normal; background: linear-gradient(110deg, #4338ca, #0d9488); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-p { color: #52627d; max-width: 420px; font-size: 13.5px; }
.auth-feats { display: grid; gap: 12px; margin-top: 30px; max-width: 420px; }
.auth-feat { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: #52627d; }
.auth-feat b { color: #16203a; font-weight: 600; display: block; font-size: 12.5px; }
.auth-feat .fi { width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 1px solid rgba(79, 94, 232, .16); color: var(--accent); display: grid; place-items: center; flex: 0 0 26px; margin-top: 1px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: #f1f4fa; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; color: #5b6b85; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: #16203a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.7; }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .38); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; background: #fff;
  border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow);
  max-height: 88vh; display: flex; flex-direction: column; animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: .6; } }
.modal-h { padding: 18px 20px 12px; display: flex; align-items: flex-start; gap: 10px; }
.modal-h h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: #111c33; }
.modal-b { padding: 4px 20px 16px; overflow-y: auto; }
.modal-f { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); }
.modal-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-size: 12.5px; max-width: 340px; animation: slide .2s ease; color: #1b2740;
}
@keyframes slide { from { transform: translateX(14px); opacity: 0; } }
.toast.ok { border-color: #b9ebd5; }
.toast.bad { border-color: #f8c8d2; }
.toast .ti { flex: 0 0 auto; margin-top: 1px; }

/* ---------- 骨架 ---------- */
.skel { background: linear-gradient(90deg, #eef2f8, #f8fafc, #eef2f8);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(79, 94, 232, .2); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* ---------- 响应式 ---------- */
.mobile-only { display: none; }
@media (max-width: 1100px) {
  .grid.split, .grid.split-wide { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .mobile-only { display: flex; }
  .main { min-height: 100vh; }
  .topbar { padding: 12px 16px; background: rgba(245, 247, 251, .92); }
  .page-title { font-size: 16px; }
  .view { padding: 16px 14px 96px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.split, .grid.split-wide { grid-template-columns: 1fr; }
  #cta-site { padding: 9px 10px; }
  #cta-site .cta-label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 32px 20px; }
  .metric-value { font-size: 22px; }
  .site-stats { gap: 14px; }
  .user-name { display: none; }
  .btn { padding: 8px 12px; }
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--border); backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .05);
  }
  .bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #8494ab;
    padding: 4px 10px; border-radius: 9px; }
  .bn-item svg { width: 19px; height: 19px; }
  .bn-item.active { color: var(--accent); }
  .table { min-width: 520px; }
}
@media (max-width: 520px) {
  .modal { max-width: 100%; }
  .modal-b { padding-bottom: 10px; }
  .card { padding: 14px; }
  .metric { padding: 14px; }
  .site-item { padding: 12px; }
  .site-stats .stat-mini:nth-child(2) { display: none; }
  .toast-wrap { left: 12px; right: 12px; }
  .toast { max-width: none; }
}
