/* vendoray-tokens.css (verbatim copy of frontend/shared-ui/src/vendoray-tokens.css, the single token source).
   Embedded so login/register/reset keep one self-hosted stylesheet; frontend/shared-ui/test/token-source.test.mjs
   fails if this block drifts from the source file. */
/* ============================================================
   VendoRay 设计令牌（三端共用：报告 / 会员端 / 管理端）
   来源：scaffold-master 珍珠玻璃 tokens.css，唯一替换——主操作 / 选择色由蓝换成 VendoRay 橙。
   规则：页面与组件只引用令牌，不手写颜色、圆角、阴影、字体；防走样检查（vr-style-lint）会拦下手写值。
   兼容别名（文件末尾）让旧页面先能用，迁移完成后删除。
   ============================================================ */
:root {
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: light;

  /* ── 字色：五档 ─────────────────────────────────────────────── */
  --ink: #101418;          /* 正文 / 标题 */
  --ink-muted: #596368;    /* 次级正文 */
  --ink-soft: #656e72;     /* 次级标签（WCAG AA：在所有浅底上 ≥4.5:1） */
  --ink-faint: #656f73;    /* 元信息（WCAG AA：在所有浅底上 ≥4.5:1） */
  --leaf-text: #437919;    /* 承载文字的青柠（正常状态；WCAG AA ≥4.5:1） */

  /* ── 语义色：橙 = 选择 / 主操作，青柠 = 正常状态，琥珀 = 提醒，红 = 警示 ── */
  --accent: #ff9900;
  --accent-hover: #f08f00;
  --accent-ink: #9d4f06;   /* 橙色上的文字、选中项文字（对比度达标） */
  --accent-soft: rgba(255, 153, 0, .13);
  --on-accent: #1e2429;    /* 橙底按钮上的文字 */
  --warn-text: #9a6408;
  --warn-soft: rgba(255, 176, 32, .16);
  --info-text: #275a96;
  --info-soft: rgba(58, 122, 206, .1);
  --lime: #82dd2d;
  --lime-soft: rgba(130, 221, 45, .14);
  --red: #ff5a50;
  --red-text: #cf2a21;     /* 错误文字（WCAG AA ≥4.5:1） */
  --red-soft: rgba(255, 90, 80, .11);
  --focus: rgba(157, 79, 6, .75);

  /* ── 圆角：4px 一档的 5 级（例外：胶囊 999px） ─────────────── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  /* ── 描边 ────────────────────────────────────────────────────── */
  --shade: 46, 58, 62;
  --line: rgba(var(--shade), .085);
  --line-strong: rgba(var(--shade), .11);
  --glass-line: rgba(255, 255, 255, .88);
  --glass-line-soft: rgba(255, 255, 255, .7);

  /* ── 材质高度：接触阴影 + 环境阴影 ─────────────────────────── */
  --e1: 0 1px 2px rgba(var(--shade), .05), 0 5px 14px rgba(var(--shade), .04);
  --e2: 0 1px 3px rgba(var(--shade), .06), 0 12px 30px rgba(var(--shade), .055);
  --e3: 0 2px 6px rgba(var(--shade), .07), 0 22px 50px rgba(var(--shade), .08);
  --e-accent: 0 1px 2px rgba(157, 79, 6, .24), 0 8px 18px rgba(255, 153, 0, .26);
  --e-accent-hover: 0 1px 2px rgba(157, 79, 6, .28), 0 12px 24px rgba(255, 153, 0, .32);
  --e-danger: 0 1px 2px rgba(150, 40, 34, .26), 0 8px 18px rgba(255, 90, 80, .24);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .92);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .98);

  /* ── 场景面：舞台、外框、画布与四种玻璃配方的底色 ─────────── */
  --stage: #dfe3e2;
  --frame: #17191d;
  --canvas: #f6f8f7;
  --rail-bg: rgba(250, 251, 250, .92);
  --topbar-bg: rgba(246, 248, 247, .82);
  --pill-bg: linear-gradient(145deg, rgba(255, 255, 255, .93), rgba(246, 251, 249, .62));
  --pill-inset: inset 0 -1px 0 rgba(105, 122, 128, .08);
  --float-bg: rgba(246, 248, 247, .86);
  --float-inset: inset 0 0 0 1px rgba(120, 132, 135, .13), inset 0 1px 0 rgba(255, 255, 255, .72);
  --surface: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(249, 252, 251, .93));
  --surface-solid: #fbfcfc;
  --paper: #fff;           /* 纯白底：工作台卡片、输入框、表格（工作台只用浅色外观） */
  --warm-soft: #fffaf3;    /* 暖底：工作台的悬停、选中、提醒底色 */
  --groove-bg: rgba(225, 231, 229, .5);
  --groove-inset: inset 0 1px 0 rgba(255, 255, 255, .46);
  --input-bg: rgba(255, 255, 255, .78);
  --hover-bg: rgba(var(--shade), .045);
  --press-bg: rgba(var(--shade), .075);
  --overlay: rgba(16, 20, 24, .26);
  --dark-surface: #131619;

  /* ── 仪器化排版：等宽眉标与显示级数字 ─────────────────────────── */
  --font-ui: "SF Pro Text", "SF Pro Display", "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-display-xl: 56px;   /* 主卡读数 */
  --fs-display-l: 40px;    /* 侧块读数 */
  --fs-display-m: 28px;    /* 概览读数 */
  --track-eyebrow: .14em;  /* 眉标字距 */

  /* 斜线填充：表示区间、目标、当前柱（只承载「范围」语义） */
  --hatch-ink: rgba(var(--shade), .16);
  --hatch: repeating-linear-gradient(135deg, var(--hatch-ink) 0 1.5px, transparent 1.5px 6px);

  /* 刻度、读数板（深色铭牌在浅 / 深两态都是深色面） */
  --tick: rgba(var(--shade), .22);
  --tick-strong: rgba(var(--shade), .5);
  --plate-bg: rgba(21, 24, 26, .9);
  --plate-line: rgba(255, 255, 255, .1);
  --plate-ink: #f2f5f4;
  --plate-soft: rgba(255, 255, 255, .56);

  /* ── 分类色：只区分类别（看板列、图例），不承载状态含义 ──────── */
  --cat-1-bg: #f6e7c4; --cat-1-ink: #7a5a16;   /* 沙 */
  --cat-2-bg: #d7e7fb; --cat-2-ink: #275a96;   /* 天 */
  --cat-3-bg: #e4dcf7; --cat-3-ink: #5b4597;   /* 丁香 */
  --cat-4-bg: #f7dce1; --cat-4-ink: #94384c;   /* 玫瑰 */
  --cat-5-bg: #d8f0dc; --cat-5-ink: #2d7140;   /* 薄荷 */

  /* ── 图表系列色：报告里的条形 / 点位，只用这几种 ── */
  --series-main: var(--accent);              /* 主系列、加价、需求 */
  --series-neg: #e5806f;                     /* 负向：降价、否定、下降、差评 */
  --series-neg-ink: #a8461b;                 /* 负向文字（P0、差评标签） */
  --series-pos: #7fb446;                     /* 正向：好评、改善 */
  --series-mid: #c9a33a;                     /* 中性偏弱：中评 */
  --star: #ffa41c;                           /* 星级（与 Amazon 星标一致） */
  --series-base: rgba(var(--shade), .26);    /* 对照系列、维持、供给 */
  --series-track: rgba(var(--shade), .06);   /* 条形底槽 */

  /* 环境光：画布上两团极淡的静态漫射光 */
  --ambient-a: rgba(255, 153, 0, .06);
  --ambient-b: rgba(35, 109, 233, .035);

  /* ── 关系图（神经语汇）：连线、脉冲光环、节点底 ──────────────── */
  --thread: rgba(var(--shade), .2);
  --thread-active: rgba(240, 143, 0, .62);
  --pulse-halo: rgba(255, 153, 0, .18);
  --node-bg: rgba(255, 255, 255, .94);
  /* 图谱 Canvas 用的 RGB 三元组：分类色的中明度版本 + 中性墨、主色、警示 */
  --graph-1: 186, 140, 52;
  --graph-2: 58, 122, 206;
  --graph-3: 122, 96, 204;
  --graph-4: 200, 90, 118;
  --graph-5: 58, 150, 92;
  --graph-ink: 46, 58, 62;
  --graph-accent: 255, 153, 0;
  --graph-lime: 110, 190, 36;
  --graph-danger: 224, 68, 59;
  --graph-paper: 255, 255, 255;

  /* ── 缓动 ────────────────────────────────────────────────────── */
  --ease-premium: cubic-bezier(.16, 1, .3, 1);

  /* ── 布局尺寸 ────────────────────────────────────────────────── */
  --rail-w: 232px;
  --topbar-h: 64px;
  --layer-overlay: 200;
  --layer-toast: 400;
  --control-h: 36px;
  --control-h-sm: 30px;

  /* ── 表格密度（由外观设置切换） ─────────────────────────────── */
  --row-h: 48px;
  --cell-px: 16px;
}

:root[data-density="comfy"]   { --row-h: 56px; --cell-px: 18px; }
:root[data-density="compact"] { --row-h: 40px; --cell-px: 14px; }

/* ── 深色外观：同一套语义，换成深色材质 ───────────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;

  --ink: #eef2f1;
  --ink-muted: #b0babd;
  --ink-soft: #8d979a;
  --ink-faint: #6c7679;
  --leaf-text: #9be35a;

  --accent: #ffab2e;
  --accent-hover: #ffb84d;
  --accent-ink: #ffc36b;
  --accent-soft: rgba(255, 171, 46, .14);
  --on-accent: #1b1f23;
  --warn-text: #f0c060;
  --warn-soft: rgba(240, 190, 90, .13);
  --info-text: #93bdf3;
  --info-soft: rgba(110, 160, 240, .14);
  --lime-soft: rgba(130, 221, 45, .16);
  --red-text: #ff7a71;
  --red-soft: rgba(255, 90, 80, .16);
  --focus: rgba(255, 184, 77, .85);

  --shade: 0, 0, 0;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .1);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-line-soft: rgba(255, 255, 255, .07);

  --e1: 0 1px 2px rgba(0, 0, 0, .3), 0 5px 14px rgba(0, 0, 0, .2);
  --e2: 0 1px 3px rgba(0, 0, 0, .32), 0 12px 30px rgba(0, 0, 0, .28);
  --e3: 0 2px 6px rgba(0, 0, 0, .36), 0 22px 50px rgba(0, 0, 0, .42);
  --e-accent: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 18px rgba(255, 171, 46, .24);
  --e-accent-hover: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 24px rgba(255, 171, 46, .32);
  --e-danger: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 18px rgba(255, 90, 80, .26);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .06);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .09);

  --stage: #090b0c;
  --frame: #000;
  --canvas: #121517;
  --rail-bg: rgba(22, 26, 28, .94);
  --topbar-bg: rgba(18, 21, 23, .82);
  --pill-bg: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  --pill-inset: inset 0 -1px 0 rgba(0, 0, 0, .2);
  --float-bg: rgba(30, 34, 37, .9);
  --float-inset: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 1px 0 rgba(255, 255, 255, .06);
  --surface: linear-gradient(145deg, rgba(29, 33, 36, .98), rgba(25, 29, 31, .96));
  --surface-solid: #1b1f21;
  --groove-bg: rgba(0, 0, 0, .22);
  --groove-inset: inset 0 1px 2px rgba(0, 0, 0, .28);
  --input-bg: rgba(255, 255, 255, .04);
  --hover-bg: rgba(255, 255, 255, .05);
  --press-bg: rgba(255, 255, 255, .08);
  --overlay: rgba(0, 0, 0, .5);

  --hatch-ink: rgba(255, 255, 255, .12);
  --tick: rgba(255, 255, 255, .16);
  --tick-strong: rgba(255, 255, 255, .42);
  --plate-bg: rgba(8, 10, 11, .78);

  --cat-1-bg: rgba(232, 190, 96, .16);  --cat-1-ink: #ecc779;
  --cat-2-bg: rgba(100, 160, 240, .16); --cat-2-ink: #92bdf5;
  --cat-3-bg: rgba(160, 132, 236, .17); --cat-3-ink: #bfaaf4;
  --cat-4-bg: rgba(236, 120, 140, .16); --cat-4-ink: #f2a3b1;
  --cat-5-bg: rgba(110, 200, 130, .15); --cat-5-ink: #94dca6;

  --series-neg: #f0948a;
  --series-neg-ink: #ffb199;
  --series-pos: #a6d673;
  --ambient-a: rgba(255, 171, 46, .05);
  --ambient-b: rgba(76, 141, 255, .05);

  --thread: rgba(255, 255, 255, .16);
  --thread-active: rgba(255, 184, 77, .72);
  --pulse-halo: rgba(255, 171, 46, .26);
  --node-bg: rgba(32, 37, 40, .94);
  --graph-1: 236, 199, 121;
  --graph-2: 146, 189, 245;
  --graph-3: 191, 170, 244;
  --graph-4: 242, 163, 177;
  --graph-5: 148, 220, 166;
  --graph-ink: 214, 222, 220;
  --graph-accent: 255, 171, 46;
  --graph-lime: 155, 227, 90;
  --graph-danger: 255, 122, 113;
  --graph-paper: 36, 41, 44;
}

/* ── 兼容别名：会员端 / 管理端旧名（vr-design.css）与报告旧名 → 统一令牌 ──
   新代码不要再用左边的名字；全部页面迁移后整段删除。 */
:root {
  --blue: var(--accent);              /* scaffold 组件里的主色名 */
  --blue-hover: var(--accent-hover);
  --blue-soft: var(--accent-soft);
  --ok: var(--leaf-text);    --ok-soft: var(--lime-soft);
  --warn: var(--warn-text);
  --risk: var(--red-text);   --risk-soft: var(--red-soft);
  --info: var(--info-text);
  --surface-2: var(--surface-solid);
  --groove: var(--groove-bg);
  --hover: var(--hover-bg);
  --plate: var(--plate-bg);
  --cat-1: var(--cat-1-ink); --cat-2: var(--cat-2-ink); --cat-3: var(--cat-3-ink); --cat-4: var(--cat-4-ink); --cat-5: var(--cat-5-ink);
}

/* 需要被连续补间的自定义属性必须注册，inherits: false 避免打脏后代 */
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
/* end vendoray-tokens.css */

:root {
  /* Page aliases of vendoray-tokens.css (embedded above). --vr-paper stays the
     neutral page tone pinned by the release gate (lint-neutral, ~= --canvas). */
  --vr-paper: #f7f8fa;
  --vr-surface: var(--surface-solid);
  --vr-ink: var(--ink);
  --vr-muted: var(--ink-soft);
  --vr-line: var(--line-strong);
  --vr-orange: var(--accent);
  --vr-orange-ink: var(--accent-ink);
  --vr-warm: var(--accent-soft);
  --vr-success: var(--leaf-text);
  --vr-danger: var(--red-text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--vr-paper);
  color: var(--vr-ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.auth-skip-link {
  position: fixed; z-index: 100; top: 10px; left: 14px; padding: 10px 14px;
  min-height: 44px; border-radius: 6px; background: var(--vr-ink); color: white; transform: translateY(-180%);
}
.auth-skip-link:focus { transform: none; }
.auth-container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.auth-site-header { border-bottom: 1px solid var(--vr-line); background: rgba(255, 255, 255, .96); }
.auth-header-inner { min-height: 66px; display: flex; align-items: center; gap: 18px; }
.auth-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; flex-shrink: 0; }
.auth-brand img { display: block; width: 138px; height: auto; }
.auth-version { padding: 2px 5px; border: 1px solid var(--vr-line); border-radius: 4px; color: var(--vr-muted); font-size: 10px; font-weight: 700; line-height: 1.35; }
.auth-header-context { margin: 0 auto 0 8px; padding-left: 18px; border-left: 1px solid var(--vr-line); color: var(--vr-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.auth-header-actions { display: flex; align-items: center; gap: 20px; }
.auth-header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; color: var(--vr-muted); font-size: 13px; font-weight: 600; }
.auth-header-login:hover { color: var(--vr-ink); }
.auth-header-cta, .auth-primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 7px; background: var(--vr-orange); color: var(--vr-ink); font-weight: 700; cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}
.auth-header-cta { min-height: 44px; padding: 9px 14px; font-size: 12px; }
.auth-header-cta svg, .auth-primary-button svg { width: 16px; height: 16px; }
.auth-header-cta:hover, .auth-primary-button:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(41, 45, 50, .12); }

.auth-mobile-nav { display: none; position: relative; margin-left: auto; }
.auth-mobile-nav summary { list-style: none; cursor: pointer; }
.auth-mobile-nav summary::-webkit-details-marker { display: none; }
.auth-mobile-trigger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--vr-line); border-radius: 7px; background: var(--vr-surface); }
.auth-mobile-trigger svg { width: 20px; height: 20px; }
.auth-mobile-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; padding: 8px; border: 1px solid var(--vr-line); border-radius: 10px; background: var(--vr-surface); box-shadow: 0 12px 30px rgba(41, 45, 50, .12); }
.auth-mobile-panel a { display: block; padding: 12px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.auth-mobile-panel a:hover { background: var(--vr-warm); }

.auth-main { flex: 1; display: grid; place-items: center; padding: 52px 24px 58px; }
.auth-shell { width: min(100%, 490px); }
.auth-breadcrumb { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: var(--vr-muted); font-size: 12px; }
.auth-breadcrumb b { color: var(--ink-faint); font-size: 17px; font-weight: 400; line-height: 1; }
.auth-breadcrumb strong { color: var(--ink-muted); font-weight: 650; }
.auth-card { padding: 32px; border: 1px solid var(--vr-line); border-radius: 12px; background: var(--vr-surface); box-shadow: 0 8px 22px rgba(41, 45, 50, .045); }
.auth-kicker { margin: 0 0 11px; color: var(--vr-orange-ink); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.auth-card h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.auth-card-intro { margin: 10px 0 26px; color: var(--vr-muted); font-size: 14px; line-height: 1.65; }
.auth-message { margin-bottom: 18px; padding: 11px 13px; border: 1px solid; border-radius: 7px; font-size: 13px; line-height: 1.55; }
.auth-message-error { border-color: color-mix(in srgb, var(--red-text) 33%, transparent); background: #fff5f3; color: var(--vr-danger); }
.auth-message-success { border-color: color-mix(in srgb, var(--leaf-text) 23%, transparent); background: #f1faf5; color: var(--vr-success); }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 13px; font-weight: 700; }
.auth-input-wrap { position: relative; }
.auth-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(var(--shade), .18); border-radius: 7px; background: var(--vr-surface); color: var(--vr-ink); font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.auth-field input::placeholder { color: var(--ink-faint); }
.auth-field input:hover { border-color: rgba(var(--shade), .3); }
.auth-field input:focus { outline: 0; border-color: var(--vr-orange); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-input-wrap input { padding-right: 52px; }
.auth-password-toggle { position: absolute; top: 50%; right: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--vr-muted); cursor: pointer; transform: translateY(-50%); }
.auth-password-toggle:hover { background: var(--vr-warm); color: var(--vr-ink); }
.auth-password-toggle svg { width: 18px; height: 18px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.auth-check { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--vr-muted); font-size: 13px; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--vr-orange); }
.auth-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--vr-orange-ink); font-size: 13px; font-weight: 700; }
.auth-text-link:hover, .auth-card-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-primary-button { width: 100%; min-height: 48px; padding: 12px 18px; font-size: 14px; }
.auth-primary-button:disabled { opacity: .58; cursor: wait; }
.auth-card-foot { margin: 23px 0 0; padding-top: 21px; border-top: 1px solid var(--vr-line); color: var(--vr-muted); font-size: 13px; text-align: center; }
.auth-card-foot a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 5px; color: var(--vr-ink); font-weight: 700; }
.auth-fineprint { margin: 15px 0 0; color: var(--ink-faint); font-size: 11px; line-height: 1.6; text-align: center; }
.auth-info-card { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px; background: #fffaf3; color: var(--accent-ink); font-size: 12px; line-height: 1.55; }
.auth-info-card p { margin: 0; }
html.auth-account-page .auth-info-card + .auth-primary-button { margin-top: 18px; }
.auth-info-card b { margin-right: 6px; color: var(--accent-ink); }
.auth-info-mark { width: 17px; height: 17px; display: inline-grid; flex: 0 0 auto; place-items: center; margin-top: 1px; border: 1px solid var(--accent); border-radius: 50%; color: var(--vr-orange-ink); font-size: 11px; font-family: var(--font-ui); font-weight: 700; }

.auth-footer { padding: 18px 24px 22px; border-top: 1px solid var(--vr-line); color: var(--ink-faint); font-size: 11px; letter-spacing: .02em; text-align: center; }

@media (max-width: 640px) {
  .auth-container { width: calc(100% - 36px); }
  .auth-header-inner { min-height: 62px; }
  .auth-brand img { width: 126px; }
  .auth-header-context, .auth-header-actions { display: none; }
  .auth-mobile-nav { display: block; }
  .auth-main { padding: 34px 18px 42px; place-items: start center; }
  .auth-breadcrumb { margin-bottom: 14px; }
  .auth-card { padding: 26px 20px; }
  .auth-card h1 { font-size: 28px; }
  .auth-card-intro { margin-bottom: 23px; }
  .auth-form-row { align-items: flex-start; }
  .auth-info-card { align-items: flex-start; }
  .auth-footer { padding-inline: 18px; line-height: 1.55; }
}

/* Preserve existing registration and password recovery layouts. */

html.auth-account-page {
  --vr-paper: #faf9f6;
  --vr-surface: var(--surface-solid);
  --vr-ink: var(--ink);
  --vr-muted: var(--ink-muted);
  --vr-line: var(--line-strong);
  --vr-orange: var(--accent);
  --vr-orange-ink: var(--accent-ink);
  --vr-warm: var(--accent-soft);
  --vr-good: var(--leaf-text);
  --vr-danger: var(--red-text);
  --vr-ease: cubic-bezier(.22, 1, .36, 1);
}
html.auth-account-page * { box-sizing: border-box; }
html.auth-account-page { scroll-behavior: smooth; }
html.auth-account-page body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, var(--accent-soft), transparent 24rem),
    var(--vr-paper);
  color: var(--vr-ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
html.auth-account-page a { color: inherit; text-decoration: none; }
html.auth-account-page button, html.auth-account-page input { font: inherit; }
html.auth-account-page button { color: inherit; }
html.auth-account-page [hidden], html.auth-account-page .hidden { display: none !important; }
html.auth-account-page :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
html.auth-account-page .auth-skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 14px;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 6px;
  background: var(--vr-ink);
  color: white;
  transform: translateY(-160%);
}
html.auth-account-page .auth-skip-link:focus { transform: none; }
html.auth-account-page .auth-container { width: min(1248px, calc(100% - 112px)); margin-inline: auto; }
html.auth-account-page .auth-site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(41, 45, 50, .08);
  background: rgba(250, 249, 246, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html.auth-account-page .auth-header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 38px;
}
html.auth-account-page .auth-brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
html.auth-account-page .auth-brand img { display: block; width: 144px; height: auto; }
html.auth-account-page .auth-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
html.auth-account-page .auth-nav a, html.auth-account-page .auth-header-login {
  position: relative;
  padding-block: 14px;
  color: var(--vr-ink);
  font-size: 13px;
  font-weight: 600;
}
html.auth-account-page .auth-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--vr-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
html.auth-account-page .auth-nav a:hover::after, html.auth-account-page .auth-nav a:focus-visible::after { transform: scaleX(1); }
html.auth-account-page .auth-header-actions { display: flex; align-items: center; gap: 22px; }
html.auth-account-page .auth-header-cta, html.auth-account-page .auth-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--vr-orange);
  color: var(--vr-ink);
  font-weight: 700;
  transition: transform .24s var(--vr-ease), box-shadow .24s ease, background .18s ease;
}
html.auth-account-page .auth-header-cta { min-height: 42px; padding: 10px 16px; font-size: 12px; }
html.auth-account-page .auth-header-cta svg, html.auth-account-page .auth-primary-button svg { width: 18px; height: 18px; transition: transform .24s var(--vr-ease); }
html.auth-account-page .auth-header-cta:hover, html.auth-account-page .auth-primary-button:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px -19px rgba(41, 45, 50, .65);
  transform: translateY(-2px);
}
html.auth-account-page .auth-header-cta:hover svg, html.auth-account-page .auth-primary-button:hover:not(:disabled) svg { transform: translate(3px, -2px); }
html.auth-account-page .auth-mobile-nav { display: none; position: relative; margin-left: auto; }
html.auth-account-page .auth-mobile-nav summary { list-style: none; cursor: pointer; }
html.auth-account-page .auth-mobile-nav summary::-webkit-details-marker { display: none; }
html.auth-account-page .auth-mobile-trigger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vr-line);
  border-radius: 7px;
  background: var(--vr-surface);
}
html.auth-account-page .auth-mobile-trigger svg { width: 21px; height: 21px; }
html.auth-account-page .auth-mobile-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--vr-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px -32px rgba(41, 45, 50, .55);
}
html.auth-account-page .auth-mobile-panel a { display: block; padding: 13px 12px; border-radius: 7px; font-size: 14px; font-weight: 600; }
html.auth-account-page .auth-mobile-panel a:hover { background: var(--vr-warm); }
html.auth-account-page .auth-main { flex: 1; display: flex; align-items: stretch; }
html.auth-account-page .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .84fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  padding-block: clamp(62px, 8vw, 110px);
}
html.auth-account-page .auth-story { position: relative; grid-column: 1; grid-row: 1; padding: 20px 0 24px; }
html.auth-account-page .auth-kicker { margin: 0 0 28px; color: var(--vr-orange-ink); font-size: 11px; font-weight: 750; letter-spacing: .14em; }
html.auth-account-page .auth-story h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(44px, 4.7vw, 66px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.06em;
}
html.auth-account-page .auth-story h2 span { position: relative; color: var(--vr-orange-ink); white-space: nowrap; }
html.auth-account-page .auth-story h2 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 4px;
  background: var(--vr-orange);
}
html.auth-account-page .auth-story-copy { max-width: 570px; margin: 31px 0 0; color: var(--vr-muted); font-size: 16px; line-height: 1.9; }
html.auth-account-page .auth-signal-card {
  position: relative;
  max-width: 610px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid rgba(var(--shade), .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 25px 70px -48px rgba(41, 45, 50, .52);
}
html.auth-account-page .auth-signal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: var(--vr-orange);
}
html.auth-account-page .auth-signal-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-strong); }
html.auth-account-page .auth-signal-head span { color: var(--vr-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
html.auth-account-page .auth-signal-head strong { color: var(--vr-good); font-size: 11px; }
html.auth-account-page .auth-signal-list { display: grid; grid-template-columns: repeat(3, 1fr); }
html.auth-account-page .auth-signal-item { padding: 20px 22px 22px; border-right: 1px solid var(--line-strong); }
html.auth-account-page .auth-signal-item:last-child { border-right: 0; }
html.auth-account-page .auth-signal-item span { display: block; margin-bottom: 14px; color: var(--vr-orange-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
html.auth-account-page .auth-signal-item b { display: block; font-size: 14px; font-weight: 650; }
html.auth-account-page .auth-signal-item small { display: block; margin-top: 7px; color: var(--vr-muted); font-size: 11px; line-height: 1.55; }
html.auth-account-page .auth-card-wrap { position: relative; grid-column: 2; grid-row: 1; }
html.auth-account-page .auth-card-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14px 22px 18px -18px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 12%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: rotate(-1.3deg);
}
html.auth-account-page .auth-card {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--vr-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px -52px rgba(41, 45, 50, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html.auth-account-page .auth-card-brow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--vr-orange-ink); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
html.auth-account-page .auth-card-brow::before { content: ""; width: 24px; height: 2px; background: var(--vr-orange); }
html.auth-account-page .auth-card h1 { margin: 0; font-size: clamp(30px, 3vw, 39px); font-weight: 650; letter-spacing: -.045em; }
html.auth-account-page .auth-card-intro { margin: 12px 0 34px; color: var(--vr-muted); font-size: 14px; line-height: 1.7; }
html.auth-account-page .auth-message { margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 8px; font-size: 13px; line-height: 1.55; }
html.auth-account-page .auth-message-error { border-color: color-mix(in srgb, var(--red-text) 33%, transparent); background: var(--red-soft); color: var(--vr-danger); }
html.auth-account-page .auth-message-success { border-color: color-mix(in srgb, var(--leaf-text) 29%, transparent); background: var(--lime-soft); color: var(--vr-good); }
html.auth-account-page .auth-form { display: grid; gap: 21px; }
html.auth-account-page .auth-field { display: grid; gap: 8px; }
html.auth-account-page .auth-field label { font-size: 13px; font-weight: 700; }
html.auth-account-page .auth-optional { color: var(--vr-muted); font-size: 11px; font-weight: 500; }
html.auth-account-page .auth-input-wrap { position: relative; }
html.auth-account-page .auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(var(--shade), .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: var(--vr-ink);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
html.auth-account-page .auth-field input::placeholder { color: var(--ink-faint); }
html.auth-account-page .auth-field input:hover { border-color: rgba(var(--shade), .39); }
html.auth-account-page .auth-field input:focus { outline: 0; border-color: var(--vr-orange-ink); background: white; box-shadow: 0 0 0 4px var(--accent-soft); }
html.auth-account-page .auth-input-wrap input { padding-right: 54px; }
html.auth-account-page .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vr-muted);
  cursor: pointer;
}
html.auth-account-page .auth-password-toggle:hover { background: var(--vr-warm); color: var(--vr-ink); }
html.auth-account-page .auth-password-toggle svg { width: 19px; height: 19px; }
html.auth-account-page .auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
html.auth-account-page .auth-check { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: var(--vr-muted); font-size: 13px; cursor: pointer; }
html.auth-account-page .auth-check input { width: 17px; height: 17px; accent-color: var(--vr-orange-ink); }
html.auth-account-page .auth-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--vr-orange-ink); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
html.auth-account-page .auth-text-link:hover { text-decoration: underline; }
html.auth-account-page .auth-primary-button {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
}
html.auth-account-page .auth-primary-button:disabled { opacity: .58; cursor: wait; }
html.auth-account-page .auth-card-foot { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); text-align: center; color: var(--vr-muted); font-size: 13px; }
html.auth-account-page .auth-card-foot a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 5px; color: var(--vr-ink); font-weight: 750; }
html.auth-account-page .auth-card-foot a:hover { color: var(--vr-orange-ink); }
html.auth-account-page .auth-fineprint { margin: 20px 0 0; color: var(--vr-muted); font-size: 11px; line-height: 1.7; text-align: center; }
html.auth-account-page .auth-footer { padding-top: 20px; border-top: 1px solid var(--vr-line); }
html.auth-account-page .auth-footer-main { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 48px; padding-block: 50px 38px; }
html.auth-account-page .auth-footer-brand p { margin: 18px 0 0; color: var(--vr-muted); font-size: 13px; }
html.auth-account-page .auth-footer h3 { margin: 3px 0 15px; font-size: 11px; font-weight: 750; letter-spacing: .06em; }
html.auth-account-page .auth-footer-main > div:not(.auth-footer-brand) a { display: flex; align-items: center; min-height: 44px; color: var(--vr-muted); font-size: 12px; }
html.auth-account-page .auth-footer-main > div:not(.auth-footer-brand) a:hover { color: var(--vr-orange-ink); }
html.auth-account-page .auth-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 19px 30px; border-top: 1px solid var(--vr-line); color: var(--vr-muted); font-size: 10px; letter-spacing: .09em; }
html.auth-account-page .auth-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
html.auth-account-page .auth-footer-bottom a { font-size: 11px; font-weight: 650; letter-spacing: 0; }

@media (prefers-reduced-motion: no-preference) {
html.auth-account-page .auth-story > *, html.auth-account-page .auth-card-wrap { animation: auth-rise .62s var(--vr-ease) both; }
html.auth-account-page .auth-story > :nth-child(2) { animation-delay: .05s; }
html.auth-account-page .auth-story > :nth-child(3) { animation-delay: .1s; }
html.auth-account-page .auth-story > :nth-child(4) { animation-delay: .15s; }
html.auth-account-page .auth-card-wrap { animation-delay: .12s; }
  @keyframes auth-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 1040px) {
html.auth-account-page .auth-container { width: calc(100% - 64px); }
html.auth-account-page .auth-layout { grid-template-columns: .9fr 1fr; gap: 46px; }
html.auth-account-page .auth-story h2 { font-size: 43px; }
html.auth-account-page .auth-signal-list { grid-template-columns: 1fr; }
html.auth-account-page .auth-signal-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; border-right: 0; border-bottom: 1px solid var(--line-strong); padding-block: 16px; }
html.auth-account-page .auth-signal-item:last-child { border-bottom: 0; }
html.auth-account-page .auth-signal-item span { grid-row: 1 / 3; margin: 2px 0 0; }
html.auth-account-page .auth-signal-item small { margin-top: 4px; }
html.auth-account-page .auth-footer-main { gap: 30px; }
}

@media (max-width: 820px) {
html.auth-account-page .auth-header-inner { min-height: 76px; }
html.auth-account-page .auth-nav, html.auth-account-page .auth-header-actions { display: none; }
html.auth-account-page .auth-mobile-nav { display: block; }
html.auth-account-page .auth-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 58px 72px; }
html.auth-account-page .auth-story, html.auth-account-page .auth-card-wrap { grid-column: 1; grid-row: auto; }
html.auth-account-page .auth-story { text-align: center; padding: 0; }
html.auth-account-page .auth-story h2, html.auth-account-page .auth-story-copy, html.auth-account-page .auth-signal-card { margin-inline: auto; }
html.auth-account-page .auth-story h2 { max-width: 620px; }
html.auth-account-page .auth-story-copy { max-width: 600px; }
html.auth-account-page .auth-signal-card { text-align: left; }
html.auth-account-page .auth-card-wrap { width: min(100%, 560px); margin-inline: auto; }
html.auth-account-page .auth-footer-main { grid-template-columns: 1fr 1fr; }
html.auth-account-page .auth-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
html.auth-account-page .auth-container { width: calc(100% - 36px); }
html.auth-account-page .auth-header-inner { min-height: 70px; }
html.auth-account-page .auth-brand img { width: 126px; }
html.auth-account-page .auth-layout { gap: 38px; padding-block: 42px 58px; }
html.auth-account-page .auth-kicker { margin-bottom: 20px; font-size: 9px; }
html.auth-account-page .auth-story h2 { font-size: clamp(35px, 10vw, 46px); }
html.auth-account-page .auth-story-copy { margin-top: 25px; font-size: 14px; }
html.auth-account-page .auth-signal-card { margin-top: 34px; }
html.auth-account-page .auth-signal-head { padding-inline: 17px; }
html.auth-account-page .auth-signal-item { padding-inline: 17px; }
html.auth-account-page .auth-card-wrap::before { inset: -9px 10px 14px -9px; }
html.auth-account-page .auth-card { padding: 28px 22px; }
html.auth-account-page .auth-card-intro { margin-bottom: 28px; }
html.auth-account-page .auth-form-row { align-items: flex-start; }
html.auth-account-page .auth-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 40px 30px; }
html.auth-account-page .auth-footer-main > div:last-child { grid-column: 1 / -1; }
html.auth-account-page .auth-footer-bottom { flex-wrap: wrap; gap: 12px; }
/* On narrow screens the account action comes first; the marketing steps are repeated content. */
html.auth-account-page .auth-layout { display: flex; flex-direction: column; gap: 24px; padding-block: 28px 44px; }
html.auth-account-page .auth-story { padding: 0; }
html.auth-account-page .auth-story h2 { font-size: 30px; }
html.auth-account-page .auth-story-copy { margin-top: 12px; }
html.auth-account-page .auth-signal-card { display: none; }
html.auth-account-page .auth-footer-main { display: none; }
html.auth-account-page .auth-footer-bottom { padding-block: 24px; }
}

/* Login outcome unknown: the way forward must be easy to see and tap. */
#authRecovery { font-size: 13px; line-height: 2; }
#authRecovery #authContinue { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--vr-line); border-radius: 7px; color: var(--vr-ink); font-weight: 700; }
