/* =========================================================
   MandarinMiles · 账户/认证/仪表盘 设计系统 (scope: .mm-auth)
   ---------------------------------------------------------
   2026-11-13 全站配色审核（v2 · 蓝主导 / 绿紫辅助）：
     · 左品牌区改为「深蓝 → 靛 → 紫」渐变，与全站 Hero 渐变同族；
       原暖橙 #F5B86C 是登录页最大面积色块，与「蓝色系主导」正面冲突。
     · 品牌红 #D32F2F 退出「身份层」（Logo / Tab 激活 / 焦点环 / 复选框 /
       仪表盘竖条 / 2FA 面板边框）→ 改由品牌蓝承担身份与交互反馈。
     · 红色只保留真正的危险语义（删除账户、错误提示）—— 这才是红色的正确用法。
     · Logo 字标改与站点 SVG 一致：Mandarin = 深墨蓝，Miles = 品牌蓝。
     · 紫色作为装饰层：品牌区渐变尾段 + 仪表盘小节竖条。
   铁律（勿回退）：
     · Auth 区按钮/链接规则一律带 ".mm-auth " 前缀 —— 主题后加载的
       main.min.css 对 [type="submit"]、reader.css 对 ".mm a" 有通用样式，
       同特异性下会覆盖我们（按钮变主题蓝、链接变全局蓝）。
     · 配色只在 .mm-auth 内隔离，绝不动站点全局 --primary/--action。
     · 暗色双保险：[data-theme="dark"] + prefers-color-scheme。
     · 类名 mm-auth-* 与其它模块隔离（.mm-consent-text 属 Cookie 条）。
   ========================================================= */
.mm-auth {
  /* —— 品牌区渐变（蓝主导，紫收尾） —— */
  --mm-brand-grad-a: #0D4FC7;   /* 渐变起：深品牌蓝 */
  --mm-brand-grad-b: #3A46C8;   /* 渐变中：靛 */
  --mm-brand-grad-c: #6E00F8;   /* 渐变止：紫（装饰层） */
  --mm-brand: #1166F0;          /* 品牌蓝：Logo 强调 / Tab 激活 / 焦点环 */
  --mm-brand-dark: #0D4FC7;     /* hover / 渐变收尾 */
  --mm-brand-ink: #ffffff;      /* 蓝底上的字 */
  --mm-brand-tint: #EAF2FE;     /* 蓝浅底（选中/面板） */
  --mm-brand-tint-2: #DCE9FD;   /* 更浅蓝底 */
  --mm-violet: #6E00F8;         /* 装饰紫：仪表盘竖条等点缀 */
  --mm-link: #1976D2;            /* 交互蓝：次要链接、忘记密码、ghost */
  /* CTA：跟随站点主题蓝 --primary（#1166F0） */
  --mm-action: var(--primary, #1166F0);
  --mm-action-light: #4A8BFA;    /* 渐变起始（提亮蓝） */
  --mm-action-hover: #0D4FC7;    /* 渐变收尾（深蓝） */
  --mm-action-ink: #ffffff;
  --mm-ok-bg: #E7F6F0;
  --mm-ok-ink: #0E7C5A;
  --mm-err-bg: #FDECEA;
  --mm-err-ink: #B3261E;
  --mm-warn-bg: #FCF3E2;
  --mm-warn-ink: #A66A00;

  /* —— 结构令牌：继承全局，深浅自动跟随（全局 --text 即深蓝 #1B2A4A） —— */
  --mm-text: var(--text);
  --mm-muted: var(--muted);
  --mm-border: var(--border);
  --mm-card: var(--card);
  --mm-bg: var(--bg);
  --mm-field: #F5F7FA;           /* 输入框浅灰底 */
  --mm-shadow: 0 10px 40px rgba(26,43,72,.08), 0 2px 10px rgba(26,43,72,.04);
  --mm-shadow-sm: 0 2px 8px rgba(26,43,72,.10), 0 1px 2px rgba(26,43,72,.06);
  --mm-radius: 20px;
  --mm-radius-sm: 12px;
  --mm-radius-pill: 999px;

  /* —— 品牌区专属（暗色只覆盖这几个变量即可，无需重复写规则） —— */
  --mm-hero-ink: #FFFFFF;
  --mm-hero-sub: rgba(255,255,255,.88);
  --mm-perk-bg: rgba(255,255,255,.16);
  --mm-perk-border: rgba(255,255,255,.30);
  --mm-perk-dot: rgba(255,255,255,.94);
  --mm-eyebrow-bg: rgba(255,255,255,.18);
  --mm-eyebrow-border: rgba(255,255,255,.36);
  --mm-orb: rgba(255,255,255,.14);
  --mm-orb-2: rgba(255,255,255,.09);
  --mm-stage: radial-gradient(46% 38% at 12% 8%, rgba(17,102,240,.14), transparent 72%),
              radial-gradient(40% 34% at 92% 78%, rgba(110,0,248,.12), transparent 72%);

  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  background: var(--mm-stage);
  background-repeat: no-repeat;
}

/* 深色：品牌区压暗为墨蓝→靛→紫，紫青提亮 */
[data-theme="dark"] .mm-auth {
  --mm-brand-grad-a: #0A2E6B;
  --mm-brand-grad-b: #1E3A8A;
  --mm-brand-grad-c: #4C1D95;
  --mm-brand: #6BA0F8;
  --mm-brand-dark: #4A8BFA;
  --mm-brand-tint: #1C2A45;
  --mm-brand-tint-2: #16203A;
  --mm-violet: #A78BFA;
  --mm-link: #6BA0F8;
  --mm-action: #2F6FE4;          /* 暗色 CTA：提亮主题蓝，白字仍清晰 */
  --mm-action-light: #4B8CF7;
  --mm-action-hover: #1D55C0;
  --mm-action-ink: #ffffff;
  --mm-field: #1B2637;
  --mm-shadow: 0 10px 40px rgba(0,0,0,.42), 0 2px 10px rgba(0,0,0,.30);
  --mm-shadow-sm: 0 2px 8px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
  --mm-ok-bg: #173B36;
  --mm-ok-ink: #2FB7A8;
  --mm-err-bg: #3A1620;
  --mm-err-ink: #FF9E9A;
  --mm-warn-bg: #3A2C12;
  --mm-warn-ink: #E8B558;
  --mm-hero-ink: #FFFFFF;
  --mm-hero-sub: rgba(255,255,255,.86);
  --mm-perk-bg: rgba(255,255,255,.07);
  --mm-perk-border: rgba(255,255,255,.15);
  --mm-perk-dot: rgba(255,255,255,.92);
  --mm-eyebrow-bg: rgba(255,255,255,.08);
  --mm-eyebrow-border: rgba(255,255,255,.16);
  --mm-orb: rgba(255,255,255,.06);
  --mm-orb-2: rgba(255,255,255,.04);
  --mm-stage: radial-gradient(46% 38% at 12% 8%, rgba(42,111,228,.20), transparent 72%),
              radial-gradient(40% 34% at 92% 78%, rgba(110,0,248,.18), transparent 72%);
}

/* 系统跟随（未手动设定 data-theme 时，跟随 prefers-color-scheme） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .mm-auth {
    --mm-brand-grad-a: #0A2E6B;
    --mm-brand-grad-b: #1E3A8A;
    --mm-brand-grad-c: #4C1D95;
    --mm-brand: #6BA0F8;
    --mm-brand-dark: #4A8BFA;
    --mm-brand-tint: #1C2A45;
    --mm-brand-tint-2: #16203A;
    --mm-violet: #A78BFA;
    --mm-link: #6BA0F8;
    --mm-action: #2F6FE4;
    --mm-action-light: #4B8CF7;
    --mm-action-hover: #1D55C0;
    --mm-action-ink: #ffffff;
    --mm-field: #1B2637;
    --mm-shadow: 0 10px 40px rgba(0,0,0,.42), 0 2px 10px rgba(0,0,0,.30);
    --mm-shadow-sm: 0 2px 8px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
    --mm-ok-bg: #173B36;
    --mm-ok-ink: #2FB7A8;
    --mm-err-bg: #3A1620;
    --mm-err-ink: #FF9E9A;
    --mm-warn-bg: #3A2C12;
    --mm-warn-ink: #E8B558;
    --mm-hero-ink: #FFFFFF;
    --mm-hero-sub: rgba(255,255,255,.86);
    --mm-perk-bg: rgba(255,255,255,.07);
    --mm-perk-border: rgba(255,255,255,.15);
    --mm-perk-dot: rgba(255,255,255,.92);
    --mm-eyebrow-bg: rgba(255,255,255,.08);
    --mm-eyebrow-border: rgba(255,255,255,.16);
    --mm-orb: rgba(255,255,255,.06);
    --mm-orb-2: rgba(255,255,255,.04);
    --mm-stage: radial-gradient(46% 38% at 12% 8%, rgba(42,111,228,.20), transparent 72%),
                radial-gradient(40% 34% at 92% 78%, rgba(110,0,248,.18), transparent 72%);
  }
}

/* ---------- 品牌头（Logo / 站点名） ---------- */
.mm-auth-brand { text-align: center; margin: 0 0 22px; }
.mm-auth-brand img { height: 40px; width: auto; display: inline-block; }
.mm-auth-brand .mm-auth-word {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1;
}
/* 字标配色与站点 SVG logo 一致：Mandarin = 深墨蓝 #1B2A4A，Miles = 品牌蓝 #1166F0。
   ⚠️ .mm-auth-brand 是 .mm-auth 的兄弟节点（不在 .mm-auth 作用域内），
   拿不到上面 .mm-auth 里定义的 --mm-* 变量 → 这里直接写死色值。 */
.mm-auth-brand .mm-auth-word .mm-a { color: #1B2A4A; }
.mm-auth-brand .mm-auth-word .mm-b { color: #1166F0; }
:root[data-theme="dark"] .mm-auth-brand .mm-auth-word .mm-a { color: #D6DEE9; }
:root[data-theme="dark"] .mm-auth-brand .mm-auth-word .mm-b { color: #5B97F9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .mm-auth-brand .mm-auth-word .mm-a { color: #D6DEE9; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .mm-auth-brand .mm-auth-word .mm-b { color: #5B97F9; }
}
.mm-auth-brand p { margin: 8px 0 0; font-size: 13.5px; color: var(--mm-muted); }

/* 品牌头与卡片同宽、同一条中轴线 */
.mm-out .mm-auth-brand { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- 标题 ---------- */
.mm-auth h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--mm-text); margin: 0 0 22px; }
.mm-auth-head { text-align: center; margin: 0 0 22px; }
.mm-auth-head h1 { margin: 0 0 6px; }
.mm-auth-head p { margin: 0; font-size: 14px; color: var(--mm-muted); }

/* =========================================================
   左右分栏舞台：左蓝紫品牌区 + 右表单（移动端堆叠）
   ========================================================= */
.mm-auth.mm-auth-split { max-width: 1000px; padding: 32px 20px 64px; }
.mm-out .mm-auth.mm-auth-split { max-width: 1000px; }

.mm-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 560px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: 24px;
  box-shadow: var(--mm-shadow);
  overflow: hidden;
}

/* —— 左侧品牌区 —— */
.mm-auth-brand-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 36px;
  background: linear-gradient(140deg, var(--mm-brand-grad-a) 0%, var(--mm-brand-grad-b) 52%, var(--mm-brand-grad-c) 100%);
  color: var(--mm-hero-ink);
}
.mm-auth-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.mm-auth-orb-1 { top: -70px; right: -70px; width: 230px; height: 230px; background: var(--mm-orb); }
.mm-auth-orb-2 { bottom: -100px; left: -50px; width: 280px; height: 280px; background: var(--mm-orb-2); }
.mm-auth-brand-side-inner { position: relative; z-index: 1; }

.mm-auth .mm-auth-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; margin: 0 0 20px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-eyebrow-bg);
  border: 1px solid var(--mm-eyebrow-border);
  color: var(--mm-hero-ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.mm-auth-hero h2 {
  font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -.025em;
  color: var(--mm-hero-ink); margin: 0 0 16px;
}
/* 说明段：2026-11-13 起从 .mm-auth-hero 移入 .mm-auth-brand-collapse 内（窄屏折叠）。 */
.mm-auth-brand-collapse > .mm-collapse-body > p {
  font-size: 14px; line-height: 1.65; color: var(--mm-hero-sub);
  margin: 0 0 26px; max-width: 330px;
}
.mm-auth-hero p {
  font-size: 14px; line-height: 1.65; color: var(--mm-hero-sub);
  margin: 0 0 26px; max-width: 330px;
}

/* 毛玻璃卖点卡 */
.mm-auth-perks {
  list-style: none; margin: 0; padding: 18px 20px;
  border-radius: 16px;
  background: var(--mm-perk-bg);
  border: 1px solid var(--mm-perk-border);
  box-shadow: 0 8px 24px rgba(26,43,72,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.mm-auth-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--mm-hero-ink); margin-bottom: 12px;
}
.mm-auth-perks li:last-child { margin-bottom: 0; }
.mm-auth-perks li::before {
  content: "✓"; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-perk-dot); color: var(--mm-brand);
  font-size: 12px; font-weight: 900; line-height: 1;
}
.mm-auth-brand-foot {
  position: relative; z-index: 1;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--mm-hero-sub);
}

/* 右栏表单卡：外框由 shell 提供，卡自身去边框去阴影 */
.mm-auth-shell .mm-auth-card {
  border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column;
  background: var(--mm-card);
}
.mm-auth-shell .mm-auth-card > .mm-auth-view,
.mm-auth-shell .mm-auth-card > .mm-auth-pane { padding: 24px 32px 32px; }
.mm-auth-shell .mm-auth-card > .mm-auth-view { flex: 1; }

/* ---------- 统一卡面：Tab 条与内容同属一张卡，避免内容割裂 ---------- */
.mm-auth-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  overflow: hidden;
}
.mm-auth-card > .mm-auth-view,
.mm-auth-card > .mm-auth-pane { padding: 28px 28px 32px; }
.mm-auth-card .mm-auth-form {
  background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0;
}
.mm-auth-card .mm-auth-view > .mm-auth-lead { margin: 0 0 16px; }

/* ---------- 胶囊滑动 Tab（Login / Register） ---------- */
.mm-auth .mm-auth-tabs {
  position: relative;
  display: flex; gap: 0;
  margin: 24px 28px 0; padding: 5px;
  background: var(--mm-field);
  border: 0; border-radius: var(--mm-radius-pill);
}
.mm-auth .mm-auth-tabs::before {
  content: ""; position: absolute;
  top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: var(--mm-radius-pill);
  background: var(--mm-card);
  box-shadow: var(--mm-shadow-sm);
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.mm-auth .mm-auth-tabs:has(button[data-view="register"].is-active)::before { transform: translateX(100%); }
/* forgot 是独立子页，两侧 Tab 均不高亮 → 滑块隐藏，避免误导 */
.mm-auth .mm-auth-tabs:not(:has(.is-active))::before { opacity: 0; }
.mm-auth .mm-auth-tabs button {
  position: relative; z-index: 1; flex: 1;
  appearance: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 11px 12px; margin: 0; min-height: 0; border-radius: var(--mm-radius-pill);
  font-size: 14px; font-weight: 800; color: var(--mm-muted); background: transparent;
  transition: color .2s ease;
}
.mm-auth .mm-auth-tabs button:hover { color: var(--mm-brand); background: transparent; }
.mm-auth .mm-auth-tabs button.is-active { color: var(--mm-brand); background: transparent; margin-bottom: 0; }
.mm-auth .mm-auth-tabs button:focus-visible { outline: 2px solid var(--mm-brand); outline-offset: 2px; }

/* 卡内二次表单（重发验证邮件）保留虚线分隔 */
.mm-auth-card .mm-auth-form.mm-auth-resend {
  border-top: 1px dashed var(--mm-border); padding-top: 18px;
}

/* ---------- 视图切换容器（Login / Register / Forgot） ---------- */
.mm-auth-view { display: block; }
.mm-auth-view[hidden] { display: none; }

/* ---------- 卡片表单 ---------- */
.mm-auth-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--mm-card); border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius); padding: 28px; box-shadow: var(--mm-shadow);
}
.mm-auth-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mm-text); }

/* 输入框：浅灰底无边框 → 聚焦变白 + 柔和光环 */
.mm-auth .mm-auth-form input[type="email"],
.mm-auth .mm-auth-form input[type="password"],
.mm-auth .mm-auth-form input[type="text"],
.mm-auth .mm-auth-form select {
  height: 48px; border: 1.5px solid transparent; border-radius: var(--mm-radius-sm);
  padding: 0 16px; font-size: 14.5px; font-family: inherit;
  background-color: var(--mm-field); color: var(--mm-text);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.mm-auth .mm-auth-form input::placeholder { color: var(--mm-muted); opacity: .7; }
.mm-auth .mm-auth-form input:focus,
.mm-auth .mm-auth-form select:focus {
  outline: none;
  background-color: var(--mm-card);
  border-color: color-mix(in srgb, var(--mm-brand) 32%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mm-brand) 9%, transparent), 0 6px 18px rgba(26,43,72,.06);
}

/* 勾选行（年龄门 / 同意 / 背景） */
.mm-auth-check { flex-direction: row !important; align-items: flex-start; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--mm-muted); line-height: 1.5; }
.mm-auth-check input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--mm-brand); flex: 0 0 auto; cursor: pointer; }
.mm-auth .mm-auth-check a { color: var(--mm-link); text-decoration: none; font-weight: 700; }
.mm-auth .mm-auth-check a:hover { text-decoration: underline; }

/* ---------- 按钮 ----------
   注意：主题（Blocksy）在 main.min.css 里对 [type="submit"] 设了通用按钮样式，
   且加载顺序晚于本文件 → 同特异性下主题胜出（按钮会变成主题自带蓝 #2872FA + 3px 圆角，
   并非我们要的 --primary #1166F0 渐变）。因此统一用 ".mm-auth " 前缀把特异性提到 (0,2,0)，
   并显式重置 padding / min-height / border-radius。 */
.mm-auth .mm-auth-btn {
  height: 50px; min-height: 0; padding: 0 20px; border: none; border-radius: var(--mm-radius-sm);
  background: linear-gradient(135deg, var(--mm-action-light) 0%, var(--mm-action) 48%, var(--mm-action-hover) 100%);
  color: var(--mm-action-ink);
  font-size: 15px; font-weight: 800; font-family: inherit; font-style: normal; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--mm-action) 26%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.mm-auth .mm-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--mm-action) 36%, transparent);
  filter: brightness(1.04);
}
.mm-auth .mm-auth-btn:active { transform: translateY(0); }
.mm-auth .mm-auth-btn:focus-visible { outline: 2px solid var(--mm-action-hover); outline-offset: 2px; }
.mm-auth .mm-auth-btn.ghost {
  background: transparent; color: var(--mm-link);
  border: 1.5px solid var(--mm-link); box-shadow: none;
}
.mm-auth .mm-auth-btn.ghost:hover {
  background: color-mix(in srgb, var(--mm-link) 10%, transparent);
  box-shadow: none; transform: none; filter: none;
}
.mm-auth .mm-auth-btn.block { width: 100%; }

/* 减少动态效果偏好：关闭位移动画 */
@media (prefers-reduced-motion: reduce) {
  .mm-auth .mm-auth-btn,
  .mm-auth .mm-auth-tabs::before,
  .mm-auth .mm-auth-form input,
  .mm-btn-google, .mm-pop-card { transition: none !important; }
  .mm-auth .mm-auth-btn:hover { transform: none; }
}

/* 蜜罐 */
.mm-auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Turnstile：轻量内联容器（不伪造验证状态，widget 保持原生） ---------- */
.mm-auth-cf {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--mm-field);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
}
.mm-auth-cf .cf-turnstile { display: flex; justify-content: center; }
.mm-auth-cf-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--mm-muted); line-height: 1.3;
}
.mm-auth-cf-note svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--mm-muted); }

/* ---------- 提示文字 ---------- */
.mm-auth-alt { font-size: 12.5px; color: var(--mm-muted); margin: 4px 0 0; text-align: center; }
.mm-auth .mm-auth-alt a { color: var(--mm-link); font-weight: 700; text-decoration: none; }
.mm-auth .mm-auth-alt a:hover { text-decoration: underline; }
.mm-auth-lead { font-size: 13.5px; color: var(--mm-muted); margin: 0; line-height: 1.55; }
/* 忘记密码页首句（参考稿：普通段落，非大标题） */
.mm-auth .mm-auth-lead-title {
  font-size: 14px; font-weight: 500; line-height: 1.55; letter-spacing: 0;
  color: var(--mm-text); margin: 0 0 18px; text-align: left;
}

/* ---------- 同意条款：手机上按短行折行，避免长句挤成一团 ----------
   类名用 .mm-auth-consent（不用 .mm-consent-text）——后者是 extras.css 里 Cookie 同意条的同名类，会互相污染。 */
.mm-auth-consent { display: inline; }
.mm-auth-consent > span { display: inline; }
@media ( max-width: 640px ) {
  .mm-auth-consent { display: block; }
  .mm-auth-consent > span { display: block; }
}

/* ---------- 状态条（成功 / 错误 / 警告） ---------- */
.mm-auth-note {
  font-size: 13.5px; font-weight: 700; border-radius: var(--mm-radius-sm);
  padding: 12px 15px; margin: 0 0 16px; line-height: 1.45;
  display: flex; gap: 9px; align-items: flex-start;
}
.mm-auth-note::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background-size: 11px; background-position: center; background-repeat: no-repeat; }
.mm-auth-note.ok { background: var(--mm-ok-bg); color: var(--mm-ok-ink); }
.mm-auth-note.ok::before { background-color: var(--mm-ok-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/11px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/11px no-repeat; }
.mm-auth-note.err { background: var(--mm-err-bg); color: var(--mm-err-ink); }
.mm-auth-note.err::before { background-color: var(--mm-err-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2 1 21h22zm-1 14h2v2h-2zm0-6h2v4h-2z'/></svg>") center/11px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2 1 21h22zm-1 14h2v2h-2zm0-6h2v4h-2z'/></svg>") center/11px no-repeat; }
.mm-auth-note.warn { background: var(--mm-warn-bg); color: var(--mm-warn-ink); }

/* ---------- 重发验证邮件 ---------- */
.mm-auth-resend { margin-top: 16px; border-top: 1px dashed var(--mm-border); padding-top: 18px; }

/* ---------- “忘记密码？” 链接 + 返回登录 ----------
   .mm-auth 前缀：reader.css 的 ".mm a" 特异性同为 (0,1,1) 但加载更晚 → 不加前缀会被全局蓝覆盖。 */
.mm-auth .mm-auth-switch { margin-top: 16px; text-align: center; }
.mm-auth .mm-auth-switch button,
.mm-auth .mm-auth-switch a {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--mm-link); font-size: 13px; font-weight: 700; text-decoration: none; padding: 6px 8px;
}
.mm-auth .mm-auth-switch button:hover,
.mm-auth .mm-auth-switch a:hover { text-decoration: underline; }
.mm-auth .mm-auth-switch .mm-forgot-sep { color: var(--mm-muted); }

/* ---------- “还没有账号？去注册” / “已有账号？去登录” 跨视图链接 ---------- */
.mm-auth .mm-auth-xswitch { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--mm-muted); }
.mm-auth .mm-auth-xswitch a { color: var(--mm-brand); font-weight: 800; text-decoration: none; }
.mm-auth .mm-auth-xswitch a:hover { text-decoration: underline; }

/* ---------- 密码显隐切换（登录 + 注册共用） ---------- */
.mm-pw-wrap { position: relative; display: block; }
.mm-auth-form .mm-pw-wrap input { width: 100%; box-sizing: border-box; padding-right: 48px; }
.mm-pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--mm-muted); cursor: pointer; font-family: inherit;
}
.mm-pw-toggle:hover { background: var(--mm-brand-tint); color: var(--mm-brand); }
.mm-pw-toggle:focus-visible { outline: 2px solid var(--mm-brand); outline-offset: 1px; }
.mm-pw-ico { width: 19px; height: 19px; }
.mm-pw-ico-closed { display: none; }
.mm-pw-wrap.is-visible .mm-pw-ico-open { display: none; }
.mm-pw-wrap.is-visible .mm-pw-ico-closed { display: block; }

/* ---------- 密码强度计 ---------- */
.mm-pw-strength { margin-top: 4px; }
.mm-pw-bars { display: flex; gap: 5px; }
.mm-pw-bars span { flex: 1; height: 5px; border-radius: 999px; background: var(--mm-border); transition: background .2s ease; }
.mm-pw-bars[data-score="1"] span:nth-child(-n+1) { background: #E5484D; }
.mm-pw-bars[data-score="2"] span:nth-child(-n+2) { background: #F2A23C; }
.mm-pw-bars[data-score="3"] span:nth-child(-n+3) { background: #E6C84B; }
.mm-pw-bars[data-score="4"] span:nth-child(-n+4) { background: #4CAF50; }
.mm-pw-bars[data-score="5"] span:nth-child(-n+5) { background: #2E9E5B; }
.mm-pw-label { font-size: 12px; font-weight: 700; margin-top: 6px; min-height: 16px; color: var(--mm-muted); }
.mm-pw-label[data-score="1"] { color: #E5484D; }
.mm-pw-label[data-score="2"] { color: #C9821F; }
.mm-pw-label[data-score="3"] { color: #A98A1C; }
.mm-pw-label[data-score="4"],
.mm-pw-label[data-score="5"] { color: #2E9E5B; }

/* ---------- 两次密码匹配提示 ---------- */
.mm-match-hint { font-size: 12px; font-weight: 700; margin-top: 2px; min-height: 15px; display: flex; align-items: center; gap: 5px; }
.mm-match-hint.ok { color: #2E9E5B; }
.mm-match-hint.err { color: var(--mm-err-ink); }
.mm-match-hint::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background-size: 9px; background-position: center; background-repeat: no-repeat; }
.mm-match-hint.ok::before { background-color: #2E9E5B; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/9px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/9px no-repeat; }
.mm-match-hint.err::before { background-color: var(--mm-err-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2 1 21h22zm-1 14h2v2h-2zm0-6h2v4h-2z'/></svg>") center/9px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2 1 21h22zm-1 14h2v2h-2zm0-6h2v4h-2z'/></svg>") center/9px no-repeat; }

/* ---------- 第三方登录（Google） ---------- */
.mm-quick { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--mm-muted); font-size: 12px; }
.mm-quick::before, .mm-quick::after { content: ""; flex: 1; height: 1px; background: var(--mm-border); }
.mm-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 14px; border-radius: var(--mm-radius-sm);
  border: 1.5px solid var(--mm-border); background: var(--mm-card);
  font-size: 14px; font-weight: 700; color: var(--mm-text); text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.mm-btn-google:hover { border-color: #4285F4; box-shadow: 0 8px 20px rgba(66,133,244,.18); transform: translateY(-1px); }
.mm-btn-google svg { flex: 0 0 auto; }

/* =========================================================
   结果 / 验证 / 登出确认 卡片（居中）
   ========================================================= */
.mm-result {
  background: var(--mm-card); border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius); padding: 40px 28px; box-shadow: var(--mm-shadow);
  text-align: center;
}
.mm-result .mm-result-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.mm-result-ico.ok { background: var(--mm-ok-bg); color: var(--mm-ok-ink); }
.mm-result-ico.err { background: var(--mm-err-bg); color: var(--mm-err-ink); }
.mm-result-ico.brand { background: var(--mm-brand-tint); color: var(--mm-brand); }
.mm-result-ico svg { width: 30px; height: 30px; }
.mm-result h1 { font-size: 24px; margin: 0 0 10px; }
.mm-result p { font-size: 14px; color: var(--mm-muted); line-height: 1.6; margin: 0 0 22px; max-width: 380px; margin-left: auto; margin-right: auto; }
.mm-result .mm-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mm-result .mm-auth-btn.ghost { padding: 0 22px; }

/* =========================================================
   登出态：品牌头 + 表单 + 大家在读
   ========================================================= */
.mm-out { max-width: 1000px; margin: 0 auto; }
.mm-out .mm-auth { max-width: 560px; }
.mm-out .mm-auth.mm-auth-split { max-width: 1000px; }
.mm-out-head { text-align: center; margin: 8px 0 22px; }
.mm-out-head h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--mm-text); }
.mm-out-head p { margin: 0 auto; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--mm-muted); }

/* 「大家在读」书轨（2026-11-14 跑马灯版）：区块比登录卡更宽（1000px 卡 → 1120px 轨），
   自动无缝跑马灯（精选 16 本、双份镜像循环、hover/focus 暂停、
   prefers-reduced-motion 时静态横向滚动）。令牌沿用 --mm-* 设计系统。 */
.mm-pop-books { width: min(1120px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--mm-border); }
.mm-pop-books h2 { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 14px; }
.mm-pop-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mm-pop-track { display: flex; width: max-content; animation: mm-pop-marquee 60s linear infinite; }
.mm-pop-half { display: flex; gap: 18px; padding-right: 18px; }
@keyframes mm-pop-marquee { to { transform: translateX(-50%); } }
.mm-pop-marquee:hover .mm-pop-track, .mm-pop-marquee:focus-within .mm-pop-track { animation-play-state: paused; }
@media ( prefers-reduced-motion: reduce ) { .mm-pop-track { animation: none; } .mm-pop-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
.mm-pop-card { display: block; flex: none; width: 176px; text-decoration: none; color: var(--mm-text); border-radius: 14px; overflow: hidden; background: var(--mm-card); border: 1px solid var(--mm-border); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mm-pop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,32,64,.12); border-color: var(--mm-brand); }
.mm-pop-cover { position: relative; display: block; width: 100%; aspect-ratio: var(--thumb-ratio); overflow: hidden; }
/* 封面内容由 assets/css/thumb.css 提供（全图 contain + 同图模糊留边）；
   无图时首字占位透明，压在级别渐变上，保留级别配色。 */
.mm-pop-cover .mm-thumb-ph { background: transparent; color: #fff; text-shadow: 0 2px 10px rgba(16,26,46,.34); }
.mm-pop-body { display: block; padding: 10px 12px 14px; }
.mm-pop-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--mm-muted); margin-bottom: 4px; }
.mm-pop-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mm-pop-body b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   仪表盘（My Account）
   ---------------------------------------------------------
   布局：桌面两栏网格（Students 通栏；Security | Account 并排；
   GDPR 与退出通栏），移动端回落单列。
   配色：小节竖条 = 品牌蓝→紫渐变；卡片白底 + 细边 + 柔和阴影。
   ========================================================= */
.mm-dash { max-width: 1060px; }

/* 仪表盘栅格：仅在宽屏启用 */
@media ( min-width: 1000px ) {
  .mm-dash {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }
  /* 页头、提示条、通栏小节与退出链接占满整行 */
  .mm-dash > h1,
  .mm-dash > .mm-dash-miles,
  .mm-dash > .mm-auth-note,
  .mm-dash > .mm-logout { grid-column: 1 / -1; }
  /* 小节顺序固定：1 Students（通栏） 2 Security 3 Account 4 GDPR（通栏） */
  .mm-dash > .mm-dash-sec:nth-of-type(1) { grid-column: 1 / -1; }
  .mm-dash > .mm-dash-sec:nth-of-type(2) { grid-column: 1; }
  .mm-dash > .mm-dash-sec:nth-of-type(3) { grid-column: 2; }
  /* Security | Account 并排等高：父级 align-items:start 会按内容高度渲染，
     两卡内容长短不一导致底部错位；这里只拉伸这两块，不影响通栏小节。 */
  .mm-dash > .mm-dash-sec:nth-of-type(2),
  .mm-dash > .mm-dash-sec:nth-of-type(3) { align-self: stretch; }
  .mm-dash > .mm-dash-sec:nth-of-type(4) { grid-column: 1 / -1; }
}

.mm-dash-sec {
  background: var(--mm-card); border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--mm-shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.mm-dash-sec:hover { box-shadow: 0 14px 34px rgba(26,43,72,.10); border-color: color-mix(in srgb, var(--mm-brand) 22%, var(--mm-border)); }
.mm-dash-sec h2 { font-size: 17px; font-weight: 800; margin: 0 0 14px; color: var(--mm-text); display: flex; align-items: center; gap: 8px; }
.mm-dash-sec h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 999px; display: inline-block;
  background: linear-gradient(180deg, var(--mm-brand) 0%, var(--mm-violet) 100%);
}
.mm-dash-sec p { font-size: 13.5px; color: var(--mm-text); margin: 0 0 12px; line-height: 1.55; }
.mm-dash .muted { color: var(--mm-muted); font-size: 13px; }

/* 仪表盘页头：标题 + 「我的里程」入口合并成一条，
   让用户一进页面就看到「我的学习进度」这个主入口，而不是孤立的一行链接。 */
.mm-dash > h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  color: var(--mm-text); margin: 0 0 16px;
}
/* ⚠️ 特异性：这个链接同时带 .mm-link-btn，而 .mm-auth .mm-link-btn（0,2,0）
   里有 background:none / border:none / padding:4px 6px，会盖掉下面的胶囊样式。
   → 这里必须带 ".mm-auth " 前缀提到 (0,3,0) 才能赢。 */
.mm-dash-miles { margin: 0 0 22px; }
.mm-auth .mm-dash-miles a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--mm-brand-tint); border: 1px solid color-mix(in srgb, var(--mm-brand) 22%, transparent);
  color: var(--mm-brand-dark); font-weight: 800; text-decoration: none; font-size: 13.5px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mm-auth .mm-dash-miles a:hover {
  background: color-mix(in srgb, var(--mm-brand) 14%, var(--mm-card));
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--mm-brand) 18%, transparent);
}

/* ---------- 购买概览（2026-11-21 集中化第一期，只读） ----------
   放在 h1 与 Miles 入口之间；div 而非 section，避免打乱下方 4 个
   .mm-dash-sec 的 nth-of-type 网格规则。四卡颜色用 color-mix 跟随明暗主题。 */
.mm-dash > .mm-dash-purchases { grid-column: 1 / -1; }
.mm-auth .mm-dash-purchases {
  background: var(--mm-card); border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius); padding: 20px 24px 22px;
  margin: 0 0 22px; box-shadow: var(--mm-shadow);
}
.mm-auth .mm-dp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
}
.mm-auth .mm-dp-head h2 {
  font-size: 17px; font-weight: 800; color: var(--mm-text);
  margin: 0; display: flex; align-items: center; gap: 8px;
}
.mm-auth .mm-dp-head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 999px; display: inline-block;
  background: linear-gradient(180deg, var(--mm-brand) 0%, var(--mm-violet) 100%);
}
.mm-auth .mm-dp-head a {
  font-size: 13px; font-weight: 800; color: var(--mm-brand);
  text-decoration: none; white-space: nowrap;
}
.mm-auth .mm-dp-head a:hover { text-decoration: underline; }
.mm-auth .mm-dp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm-auth .mm-dp-card {
  display: flex; flex-direction: column; gap: 5px; min-height: 108px;
  padding: 14px 15px 12px; border-radius: var(--mm-radius-sm);
  background: color-mix(in srgb, var(--mm-brand) 8%, var(--mm-card));
  border: 1px solid color-mix(in srgb, var(--mm-brand) 16%, var(--mm-border));
  color: var(--mm-text); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mm-auth .mm-dp-card:hover {
  transform: translateY(-2px); box-shadow: var(--mm-shadow-sm);
  border-color: var(--mm-brand); text-decoration: none;
}
.mm-auth .mm-dp-card--readings {
  background: color-mix(in srgb, var(--mm-ok-ink) 8%, var(--mm-card));
  border-color: color-mix(in srgb, var(--mm-ok-ink) 16%, var(--mm-border));
}
.mm-auth .mm-dp-card--packs {
  background: color-mix(in srgb, var(--mm-violet) 8%, var(--mm-card));
  border-color: color-mix(in srgb, var(--mm-violet) 16%, var(--mm-border));
}
.mm-auth .mm-dp-card--ai {
  background: color-mix(in srgb, var(--mm-brand) 14%, var(--mm-card));
}
.mm-auth .mm-dp-label {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mm-muted);
}
.mm-auth .mm-dp-value {
  font-size: 24px; font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; color: var(--mm-brand-dark);
}
.mm-auth .mm-dp-card--readings .mm-dp-value,
.mm-auth .mm-dp-card--packs .mm-dp-value { color: var(--mm-text); }
.mm-auth .mm-dp-note { font-size: 12px; color: var(--mm-muted); line-height: 1.4; }
@media ( max-width: 900px ) {
  .mm-auth .mm-dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media ( max-width: 480px ) {
  .mm-auth .mm-dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mm-auth .mm-dp-card { min-height: 96px; padding: 12px; }
  .mm-auth .mm-dp-value { font-size: 20px; }
  .mm-auth .mm-dp-head { flex-wrap: wrap; }
}

.mm-verified { font-size: 11px; font-weight: 800; background: var(--mm-ok-bg); color: var(--mm-ok-ink); border-radius: 999px; padding: 2px 9px; margin-left: 8px; }
.mm-unverified { font-size: 11px; font-weight: 800; background: var(--mm-warn-bg); color: var(--mm-warn-ink); border-radius: 999px; padding: 2px 9px; margin-left: 8px; }

/* 学生座位表 */
.mm-seat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 14px; }
.mm-seat-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mm-muted); padding: 6px 8px; border-bottom: 1px solid var(--mm-border); }
.mm-seat-table th:first-child { padding-left: 12px; }
.mm-seat-table td { padding: 11px 8px; border-bottom: 1px solid color-mix(in srgb, var(--mm-border) 70%, transparent); color: var(--mm-text); }
.mm-seat-table td:first-child { padding-left: 12px; color: var(--mm-brand); font-size: 15px; }
.mm-seat-table tbody tr:last-child td { border-bottom: 0; }
.mm-seat-table tbody tr { transition: background .15s ease; }
.mm-seat-table tbody tr:hover { background: color-mix(in srgb, var(--mm-brand) 4%, transparent); }
.mm-seat-add { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
/* 主题对全局 label 有 margin-bottom:6.5px；flex-end 按 margin box 对齐时
   会让按钮再低 6.5px。归零后按钮底边才与 input 底边真正齐平。 */
.mm-auth .mm-seat-add label { flex: 1; min-width: 140px; margin: 0; }
/* 仪表盘的 .mm-dash .mm-auth-btn 会设 align-self:flex-start，把按钮按顶部对齐，
   比同行输入框高约 29px（2026-11-12 用户报障）。这里用更高特异性锁回底边对齐，
   并统一 48px 高度与 .mm-auth-form input/select 完全齐平。 */
.mm-auth .mm-seat-add .mm-auth-btn {
  width: auto; padding: 0 20px; height: 48px; align-self: flex-end;
}
.mm-inline { display: inline; }

/* ---------- 文字链式按钮（Switch / Remove / Download my data / 删除账户）----------
   同样需要 .mm-auth 前缀：这几个是 type="submit"，主题的 [type="submit"] 规则（后加载、
   特异性相同）会给它们套上主题蓝底 —— danger 的红字压在蓝底上几乎看不清。 */
.mm-auth .mm-link-btn {
  display: inline-block; background: none; border: none; box-shadow: none;
  min-height: 0; padding: 4px 6px; border-radius: 7px;
  color: var(--mm-link); font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  line-height: 1.5; text-align: left;
}
.mm-auth .mm-link-btn.danger { color: var(--mm-err-ink); }
.mm-auth .mm-link-btn:hover { text-decoration: underline; }
.mm-auth .mm-link-btn.danger:hover { background: var(--mm-err-bg); text-decoration: none; }
.mm-auth .mm-link-btn:focus-visible { outline: 2px solid var(--mm-brand); outline-offset: 2px; }

.mm-logout { margin-top: 4px; }
.mm-logout .mm-link-btn { font-size: 13.5px; }

/* 2FA 设置面板：蓝虚线 + 蓝浅底（安全设置是常规操作，红色会误读为「危险」）。 */
.mm-2fa-setup { margin-top: 16px; border: 1.5px dashed var(--mm-brand); border-radius: 16px; padding: 18px 20px; background: var(--mm-brand-tint); }
.mm-2fa-setup h3 { font-size: 14.5px; font-weight: 800; margin: 0 0 10px; color: var(--mm-text); }
.mm-2fa-setup ol { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--mm-text); }
.mm-secret-box { display: flex; align-items: center; gap: 12px; background: var(--mm-card); border: 1px solid var(--mm-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.mm-secret-box code { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--mm-text); word-break: break-all; }
.mm-2fa-uri { font-size: 12px; color: var(--mm-muted); margin: 0 0 12px; }
.mm-2fa-uri a { color: var(--mm-link); }
.mm-recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mm-recovery-codes li code { font-size: 13px; font-weight: 700; background: var(--mm-card); border: 1px solid var(--mm-border); border-radius: 8px; padding: 7px 11px; display: block; text-align: center; color: var(--mm-text); }

/* 仪表盘内的表单：去卡中卡，按钮统一紧凑 */
.mm-dash .mm-auth-form { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 10px; }
.mm-dash .mm-auth-form label { width: 100%; }
.mm-dash .mm-auth-btn { width: auto; align-self: flex-start; padding: 0 22px; }
.mm-dash .mm-auth-btn.ghost { align-self: flex-start; }
.mm-dash .mm-2fa-setup { margin-top: 12px; }

/* 2FA QR（白底，深浅色都扫得动） */
.mm-2fa-qr-wrap { padding: 14px; background: var(--mm-card); border-radius: 10px; display: inline-block; margin: 12px 0; }
.mm-2fa-qr-wrap img, .mm-2fa-qr-wrap canvas { display: block; }

/* 数据与隐私：行内按钮组 */
.mm-dash-sec .mm-gdpr-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================================================
   响应式
   ========================================================= */
@media ( max-width: 900px ) {
  .mm-auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .mm-auth-brand-side { padding: 30px 28px; gap: 20px; }
  .mm-auth-hero h2 { font-size: 27px; }
  .mm-auth-hero p { max-width: none; margin-bottom: 18px; }
  .mm-auth-orb-1 { width: 170px; height: 170px; top: -60px; right: -50px; }
  .mm-auth-orb-2 { width: 190px; height: 190px; bottom: -90px; }
  .mm-auth-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .mm-auth-perks li { margin-bottom: 0; }
  .mm-auth-brand-foot { display: none; }
  .mm-auth-shell .mm-auth-card > .mm-auth-view,
  .mm-auth-shell .mm-auth-card > .mm-auth-pane { padding: 24px 28px 30px; }
  .mm-auth .mm-auth-tabs { margin: 22px 24px 0; }
}
@media ( max-width: 860px ) { /* 跑马灯自适应，无 grid 断点 */ }
/* =========================================================
   移动端登录页瘦身（2026-11-13）
   ---------------------------------------------------------
   实测 390×844 视口下：
     左品牌区 403px（其中说明段+卖点 250px 是纯宣传）
     「READERS OTHERS ARE ENJOYING」书轨 1281px（纯交叉推广）
     → 登录表单要滚过 1684px 宣传内容才出现，回访用户极不友好。

   窄屏处理：
     ① 说明段 + 4 条卖点收进「What's included」折叠块（点击展开）
     ② 「大家在读」书轨整块隐藏（与登录任务无关，桌面端保留）
     ③ 品牌区留白与标题字号收紧
   ========================================================= */
@media ( max-width: 700px ) {
  .mm-auth-brand-side { padding: 22px 20px; gap: 14px; }
  .mm-auth-hero h2 { font-size: 24px; margin-bottom: 0; }
  .mm-auth-eyebrow { margin-bottom: 12px; }
  /* 折叠按钮在深蓝紫面板上 → 白字半透明底 */
  .mm-auth-brand-collapse .mm-collapse-toggle {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.34);
    margin-bottom: 0;
  }
  .mm-auth-brand-collapse .mm-collapse-toggle:hover { background: rgba(255,255,255,.22); }
  .mm-auth-brand-collapse > .mm-collapse-body > p { margin-bottom: 16px; }
  .mm-auth-brand-collapse .mm-auth-perks { padding: 12px 14px; }
  /* 「大家在读」交叉推广：窄屏隐藏 */
  .mm-pop-books { display: none; }
}
@media ( max-width: 640px ) {
  .mm-seat-add { flex-direction: column !important; align-items: stretch !important; }
  .mm-auth .mm-seat-add .mm-auth-btn { align-self: stretch; width: 100%; }
  .mm-recovery-codes { grid-template-columns: 1fr; }
  .mm-auth { padding: 32px 16px 56px; }
  .mm-auth.mm-auth-split { padding: 20px 16px 48px; }
  .mm-auth-shell { border-radius: 20px; }
  .mm-auth-brand-side { padding: 26px 22px; }
  .mm-auth-hero h2 { font-size: 24px; }
  .mm-auth-perks { grid-template-columns: 1fr; padding: 14px 16px; }
  .mm-auth-shell .mm-auth-card > .mm-auth-view,
  .mm-auth-shell .mm-auth-card > .mm-auth-pane { padding: 20px 20px 26px; }
  .mm-auth .mm-auth-tabs { margin: 18px 16px 0; }
}
@media ( max-width: 480px ) {
  .mm-out-head h1 { font-size: 22px; }
}

/* ---------- 购买明细嵌入（2026-11-21 集中化第二期） ----------
   purchases.css 管卡片外观，这里只管它在仪表盘网格里的定位与外层留白。 */
.mm-dash > #purchases { grid-column: 1 / -1; scroll-margin-top: 88px; }
.mm-auth .mm-pur-embed { max-width: none; margin: 0 0 22px; padding: 0; }
.mm-auth .mm-pur-embed .mm-pur-block { box-shadow: var(--mm-shadow); }
@media ( max-width: 880px ) {
  .mm-auth .mm-pur-embed { margin-bottom: 18px; }
  .mm-auth .mm-pur-embed .mm-pur-block { padding: 18px; }
}
