/* ===========================================================
   晴天邮箱 · 设计系统（方案 A 极简浅色）
   =========================================================== */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --line: #e6ebf1;
  --line-2: #eef2f6;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --brand: #0ea5e9;
  --brand-d: #0284c7;
  --brand-soft: #e0f2fe;
  --ok: #059669;
  --ok-soft: #d1fae5;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
  --shadow-up: 0 8px 28px rgba(15, 23, 42, .12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand-d); text-decoration: none; }
svg { display: block; }
::selection { background: #0284c7; color: #ffffff; }
::-moz-selection { background: #0284c7; color: #ffffff; }

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(14, 165, 233, .3), 0 4px 12px rgba(14, 165, 233, .22);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: #cbd5e1; color: var(--text); }
.btn-danger { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.btn-danger:hover:not(:disabled) { background: #fef2f2; border-color: #fca5a5; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }

.input, .select, .textarea {
  height: 34px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; font-size: 13px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 70px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}
.input::placeholder, .textarea::placeholder { color: #b6c2d1; }
.select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: #047857; }
.tag-warn { background: var(--warn-soft); color: #b45309; }
.tag-bad { background: var(--bad-soft); color: #b91c1c; }
.tag-info { background: #dbeafe; color: #1d4ed8; }
.tag-dark { background: #1f2937; color: #f9fafb; }
.tag-grp { background: #f1f5f9; color: var(--text-2); font-weight: 500; }
.tag-line { background: transparent; border: 1px solid var(--line); color: var(--text-3); font-weight: 500; }

/* ---------- 接口文档 ---------- */
.code-block {
  margin: 10px 16px 16px;
  padding: 14px 16px;
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 10px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.code-block code { color: inherit; }
.doc-method {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: 1px;
}
.doc-method.post { background: #dcfce7; color: #15803d; }
.doc-method.get { background: #dbeafe; color: #1d4ed8; }

/* ---------- 接收验证码 ---------- */
.fc-code-wrap {
  padding: 22px 16px 16px;
  text-align: center;
}
.fc-code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 8px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: var(--pri, #0ea5e9);
  line-height: 1.2;
  word-break: break-all;
}
.fc-code.none { font-size: 16px; letter-spacing: 0; color: var(--text-3); font-weight: 500; }
.fc-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- 提示 ---------- */
.alert { padding: 10px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.55; }
.alert-info { background: var(--brand-soft); color: #075985; border: 1px solid #bae6fd; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.hidden { display: none !important; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; max-width: 90vw;
  padding: 10px 16px; border-radius: 10px; background: #0f172a; color: #fff;
  font-size: 13px; box-shadow: var(--shadow-up); animation: toastIn .22s ease;
}
.toast.err { background: #b91c1c; }
.toast.ok { background: #047857; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(15, 23, 42, .38);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .24); overflow: hidden;
  animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
.modal-h { padding: 18px 20px 0; font-size: 16px; font-weight: 650; }
.modal-b { padding: 14px 20px 4px; display: flex; flex-direction: column; gap: 13px; }
.modal-f { padding: 16px 20px 18px; display: flex; justify-content: flex-end; gap: 9px; }
.modal .field label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 6px; }

/* ---------- 骨架加载 ---------- */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 37%, #f1f5f9 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================= 会员端（手机） ================= */
.m-body {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  max-width: 460px; margin: 0 auto;
  background: #fff;
  padding: 0 22px calc(20px + env(safe-area-inset-bottom));
}
.m-body.grey { background: var(--bg); }

.m-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; }
.m-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; }
.m-logo {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff;
  font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(14, 165, 233, .35);
}
.m-exit { font-size: 12.5px; color: var(--text-3); padding: 5px 9px; border-radius: 7px; }
.m-exit:hover { background: #f1f5f9; color: var(--text-2); }

/* 登录 */
.login-wrap {
  flex: 1; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%);
  margin: 0 -22px; padding: 0 22px calc(20px + env(safe-area-inset-bottom));
}
.login-logo {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin: 46px auto 0; font-size: 23px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 8px 24px rgba(14, 165, 233, .32);
}
.login-title { text-align: center; margin-top: 20px; }
.login-title h1 { font-size: 20px; font-weight: 650; letter-spacing: -.2px; }
.login-title p { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

.m-field { margin-top: 17px; }
.m-field label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 7px; }
.m-input {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 15px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.m-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
.m-input::placeholder { color: #b6c2d1; font-size: 14px; }
.m-input:disabled { background: #f8fafc; color: var(--text-3); }

.m-btn {
  width: 100%; height: 50px; border-radius: 13px; background: var(--brand); color: #fff;
  font-size: 16px; font-weight: 600; margin-top: 24px;
  box-shadow: 0 6px 18px rgba(14, 165, 233, .3);
  transition: background .16s, transform .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.m-btn:active:not(:disabled) { transform: scale(.985); }
.m-btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }

.err-box { margin-top: 14px; }
.m-foot { margin-top: auto; padding-top: 20px; text-align: center; font-size: 11.5px; color: var(--text-3); }

/* 会员主页 */
.m-user h2 { font-size: 17px; font-weight: 650; }
.m-user small { font-size: 11.5px; color: var(--text-3); }
.m-chip {
  margin-top: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px; display: flex; align-items: center; gap: 10px;
}
.m-chip svg { color: var(--brand); flex: none; }
.m-chip span { flex: 1; font-family: var(--mono); font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-copy { font-size: 11.5px; color: var(--text-2); font-weight: 600; padding: 4px 8px; border-radius: 6px; background: #f1f5f9; border: 1px solid var(--line-2); flex: none; }
.m-copy:active { background: #f1f5f9; }

.code-card {
  margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 16px 20px; text-align: center; box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.code-card .lab { font-size: 11.5px; color: var(--text-3); letter-spacing: .4px; }
.code-val {
  font-family: var(--mono); font-size: 44px; font-weight: 750; letter-spacing: 9px;
  color: var(--text); margin: 10px 0 4px; font-variant-numeric: tabular-nums;
  word-break: break-all; line-height: 1.15;
  transition: color .2s;
}
.code-val.set { color: var(--brand-d); }
.code-val.empty { color: #cbd5e1; letter-spacing: 6px; font-size: 30px; font-weight: 600; }
.code-meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; min-height: 18px; word-break: break-all; }
.code-card.loading .code-val { color: #cbd5e1; }

.get-btn {
  width: 100%; height: 58px; border-radius: 15px; margin-top: 16px;
  background: linear-gradient(180deg, #0ea5e9, #0284c7); color: #fff;
  font-size: 16.5px; font-weight: 650;
  box-shadow: 0 8px 22px rgba(2, 132, 199, .3);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .12s, background .2s, box-shadow .2s;
}
.get-btn:active:not(:disabled) { transform: scale(.985); }
.get-btn:disabled { background: #e2e8f0; color: #64748b; box-shadow: none; cursor: not-allowed; }
.get-btn .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hint { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 9px; }

.recent { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.recent-h { padding: 10px 13px; font-size: 12px; color: var(--text-3); font-weight: 550; border-bottom: 1px solid var(--line-2); }
.recent-item { padding: 11px 13px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-2); }
.recent-item:last-child { border-bottom: none; }
.recent-item .sub { flex: 1; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .cv { font-family: var(--mono); font-size: 12px; font-weight: 650; color: var(--brand-d); background: var(--brand-soft); padding: 2px 6px; border-radius: 5px; flex: none; }
.recent-item .tm { font-size: 11px; color: var(--text-3); flex: none; }
.recent-empty { padding: 18px 13px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ================= 管理端 ================= */
.a-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 22px; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.a-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: .2px; }
.a-brand .m-logo { width: 28px; height: 28px; }
.a-brand small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.a-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.a-user .name { font-weight: 550; color: var(--text); }
.a-logout { font-size: 12.5px; color: var(--text-3); padding: 5px 10px; border-radius: 7px; }
.a-logout:hover { background: #f1f5f9; color: var(--text-2); }

.a-wrap { display: grid; grid-template-columns: 212px 1fr; min-height: calc(100dvh - 56px); }
.a-side { border-right: 1px solid var(--line); padding: 18px 12px; background: rgba(255, 255, 255, .5); }
.a-side .grp { font-size: 11px; color: var(--text-3); padding: 0 10px; margin: 16px 0 6px; letter-spacing: .6px; font-weight: 600; }
.a-side .grp:first-child { margin-top: 0; }
.nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; margin-bottom: 2px; width: 100%; text-align: left; transition: background .15s, color .15s; }
.nav:hover { background: #f1f5f9; color: var(--text); }
.nav.on { background: var(--brand-soft); color: var(--brand-d); font-weight: 600; }
.nav .cnt { margin-left: auto; font-size: 11px; color: var(--text-3); font-weight: 500; }
.nav.on .cnt { color: var(--brand-d); }

.a-main { padding: 24px 28px 70px; max-width: 1320px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.ph h1 { font-size: 21px; font-weight: 650; letter-spacing: -.2px; }
.ph p { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.toolbar .grow { flex: 1; min-width: 0; }
.search { position: relative; flex: none; }
.search svg { position: absolute; left: 10px; top: 9px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 32px; width: 230px; }
.seg { display: flex; background: #f1f5f9; border-radius: 8px; padding: 3px; }
.seg button { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; color: var(--text-2); transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); font-weight: 550; }
.w-auto { width: auto; }

.bulkbar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #f0f9ff; border-bottom: 1px solid #bae6fd; font-size: 13px; color: var(--brand-d); flex-wrap: wrap; }
.bulkbar b { font-weight: 650; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--text-2); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fafcff; }
tbody tr.sel { background: #f0f9ff; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.1px; }
.pwd { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); background: #f8fafc; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); }
.pwd.mask { letter-spacing: 1px; color: var(--text-3); }
.rowact { display: flex; gap: 3px; opacity: .4; transition: opacity .15s; }
tr:hover .rowact { opacity: 1; }
.iact { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); }
.iact:hover { background: #f1f5f9; color: var(--text); }
.empty-state { padding: 56px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty-state svg { margin: 0 auto 12px; color: #cbd5e1; }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 12.5px; color: var(--text-3); gap: 12px; flex-wrap: wrap; }
.pages { display: flex; gap: 4px; }
.pages button { min-width: 28px; height: 28px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); }
.pages button:hover:not(:disabled) { background: #f1f5f9; }
.pages button:disabled { opacity: .4; cursor: not-allowed; }
.pages button.on { background: var(--brand-soft); color: var(--brand-d); font-weight: 600; }

/* 生成表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; padding: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 6px; }
.fld .tip { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.preview-line { font-family: var(--mono); font-size: 13px; color: var(--brand-d); background: var(--brand-soft); padding: 9px 12px; border-radius: 8px; word-break: break-all; }

/* 分组卡 */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 18px; }
.group-card { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.group-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.group-card h3 { font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.group-card .rm { font-size: 11.5px; color: var(--text-3); min-height: 16px; }
.group-card .nums { display: flex; gap: 12px; margin-top: 12px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.group-card .nums b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.group-card .acts { display: flex; gap: 6px; margin-top: 12px; }

/* 设置 */
.rows { padding: 4px 0; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.row-item:last-child { border-bottom: none; }
.row-item .lb { font-size: 13px; font-weight: 550; }
.row-item .ds { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.row-item .val { font-size: 12.5px; color: var(--text-2); font-family: var(--mono); }

/* 表格内小进度/条形 */
.mini-bars { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #f1f5f9; width: 120px; }
.mini-bars i { display: block; height: 100%; }

/* 响应式 */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search .input { width: 180px; }
}
@media (max-width: 900px) {
  .a-wrap { grid-template-columns: 1fr; }
  .a-side { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--line); }
  .a-side .grp { display: none; }
  .nav { width: auto; white-space: nowrap; margin-bottom: 0; }
  .nav .cnt { display: none; }
  .a-main { padding: 18px 14px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .rowact { opacity: 1; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 21px; }
  .ph h1 { font-size: 18px; }
  .a-top { padding: 0 14px; }
  .code-val { font-size: 38px; letter-spacing: 7px; }
}
