/* Generated from ios/WearAI/Theme/AppTheme.swift ThemeSeed + OKLCH.toSRGBHex.
   Do not hand-tune these hex values. Radii are Roundness.steps.
   App 首次安装 ThemeManager 默认 ThemePreset.monochrome，不跟系统深浅走。
   暗色阶梯只在 ThemePreset.darkLuxury（isDark）里。
   prefers-color-scheme 只在还没写上 data-theme 时兜底（脚本被挡），
   不覆盖用户选过的主题。 */

:root {
  --font-hero: 46px; /* AppFont.hero */
  --font-title: 30px; /* AppFont.title */
  --font-section: 22px; /* AppFont.section */
  --font-body: 17px; /* AppFont.body */
  --font-callout: 15px; /* AppFont.callout */
  --font-caption: 13px; /* AppFont.caption */
  --font-micro: 11px; /* AppFont.micro */
  --font-page: 34px; /* MacPageHeader display 34 */
  --font-index: 16px; /* IndexLabel numeral */
  --font-invite: 26px; /* garment empty display 26 */
  --space-xs: 4px; /* Space.xs */
  --space-sm: 8px; /* Space.sm */
  --space-md: 12px; /* Space.md */
  --space-lg: 16px; /* Space.lg */
  --space-xl: 24px; /* Space.xl */
  --space-xxl: 32px; /* Space.xxl */
  --space-gutter: 20px; /* Space.gutter */
  --button-height: 52px; /* AppTheme.buttonHeight */
  --sidebar: 218px; /* 上架图分隔线在 x=218（理想宽 210 再加窗口内缩） */
  --sidebar-collapsed: 64px;
  --titlebar: 60px; /* 与官网 .nav-inner 高度一致 */
  --content-max: 1222px; /* Mac 1440 窗口减去侧栏 218 */
  --foot: 44px;
  --card-h: 440px; /* MacMirrorView.cardHeight */
  --poster-slot: 480px; /* MacPosterView.slotHeight */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* Motion.snappy-ish */
}

:root,
[data-theme="monochrome"] {
  --bg: #fcfaf6; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #f5f0e2; /* AppTheme.band / bandHex */
  --field: #14141d; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #e7e5df; /* AppTheme.line / lineHex */
  --line-strong: #c9c7c2; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #101016; /* AppTheme.terracotta / accentHex */
  --accent-press: #030307; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #eeeef1; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #d8d9dd; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #f1eee4; /* AppTheme.slotBg / slotBgHex */
  --shadow: #100d07; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #e7e5df; /* AppTheme.skeleton */
  --radius-tight: 0px; /* Radius.tight */
  --radius-small: 0px; /* Radius.small */
  --radius-card: 0px; /* Radius.card */
  --radius-stage: 0px; /* Radius.stage */
  --radius-pill: 0px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(16, 13, 7, 0.055), 0 3px 6px rgba(16, 13, 7, 0.055), 0 8px 16px rgba(16, 13, 7, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(16, 13, 7, 0.07), 0 5px 10px rgba(16, 13, 7, 0.07), 0 14px 28px rgba(16, 13, 7, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(16, 13, 7, 0.09), 0 9px 18px rgba(16, 13, 7, 0.09), 0 24px 48px rgba(16, 13, 7, 0.09); /* Elevation.stage */
  --wash-0: #a1a2a1; /* ThemeSeed.washRamp[0] */
  --wash-1: #b9babb;
  --wash-2: #cfcfd1;
  --wash-3: #dadadc;
  --wash-4: #e3e3e5;
  color-scheme: light;
}

[data-theme="dark_luxury"] {
  --bg: #0d0a05; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #1b160f; /* AppTheme.surface / surfaceHex */
  --raised: #29231a; /* AppTheme.raised / raisedHex */
  --band: #241d10; /* AppTheme.band / bandHex */
  --field: #725b00; /* AppTheme.field / fieldHex */
  --on-field: #fafafa; /* AppTheme.onField / onFieldHex */
  --ink: #f7f7f7; /* AppTheme.ink / inkHex */
  --muted: #989898; /* AppTheme.muted / mutedHex */
  --line: #362f24; /* AppTheme.line / lineHex */
  --line-strong: #534c40; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #d5b247; /* AppTheme.terracotta / accentHex */
  --accent-press: #be9c2c; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #2d2407; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #5c4b18; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #0d0a05; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #63ca84; /* AppTheme.forest / successHex */
  --danger: #ed756e; /* AppTheme.danger / dangerHex */
  --slot: #14100a; /* AppTheme.slotBg / slotBgHex */
  --shadow: #010100; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #14100a; /* AppTheme.skeleton */
  --radius-tight: 2px; /* Radius.tight */
  --radius-small: 3px; /* Radius.small */
  --radius-card: 4px; /* Radius.card */
  --radius-stage: 6px; /* Radius.stage */
  --radius-pill: 6px; /* Radius.pill */
  --shadow-card: none; /* Elevation.card */
  --shadow-raised: none; /* Elevation.raised */
  --shadow-stage: none; /* Elevation.stage */
  --wash-0: #110c1a; /* ThemeSeed.washRamp[0] */
  --wash-1: #231a18;
  --wash-2: #302612;
  --wash-3: #372c0b;
  --wash-4: #363413;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0d0a05; /* AppTheme.bg / ThemePreset.bgHex */
    --surface: #1b160f; /* AppTheme.surface / surfaceHex */
    --raised: #29231a; /* AppTheme.raised / raisedHex */
    --band: #241d10; /* AppTheme.band / bandHex */
    --field: #725b00; /* AppTheme.field / fieldHex */
    --on-field: #fafafa; /* AppTheme.onField / onFieldHex */
    --ink: #f7f7f7; /* AppTheme.ink / inkHex */
    --muted: #989898; /* AppTheme.muted / mutedHex */
    --line: #362f24; /* AppTheme.line / lineHex */
    --line-strong: #534c40; /* AppTheme.lineStrong / lineStrongHex */
    --accent: #d5b247; /* AppTheme.terracotta / accentHex */
    --accent-press: #be9c2c; /* AppTheme.terracottaPress / accentPressHex */
    --accent-soft: #2d2407; /* AppTheme.accentWash / accentSoftHex */
    --accent-edge: #5c4b18; /* AppTheme.accentEdge / accentEdgeHex */
    --on-accent: #0d0a05; /* AppTheme.buttonForeground / buttonForegroundHex */
    --success: #63ca84; /* AppTheme.forest / successHex */
    --danger: #ed756e; /* AppTheme.danger / dangerHex */
    --slot: #14100a; /* AppTheme.slotBg / slotBgHex */
    --shadow: #010100; /* AppTheme.shadowTint / shadowHex */
    --skeleton: #14100a;
    --radius-tight: 2px;
    --radius-small: 3px;
    --radius-card: 4px;
    --radius-stage: 6px;
    --radius-pill: 6px;
    --shadow-card: none;
    --shadow-raised: none;
    --shadow-stage: none;
    --wash-0: #110c1a;
    --wash-1: #231a18;
    --wash-2: #302612;
    --wash-3: #372c0b;
    --wash-4: #363413;
    color-scheme: dark;
  }
}

[data-theme="sage_luxe"] {
  --bg: #f8fbf5; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #eaf4e0; /* AppTheme.band / bandHex */
  --field: #008c5f; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #e3e7df; /* AppTheme.line / lineHex */
  --line-strong: #c5c9c1; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #25835d; /* AppTheme.terracotta / accentHex */
  --accent-press: #006c49; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #e0f4e9; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #c2e2d1; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #e9f1e2; /* AppTheme.slotBg / slotBgHex */
  --shadow: #0a0f06; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #e3e7df; /* AppTheme.skeleton */
  --radius-tight: 12px; /* Radius.tight */
  --radius-small: 18px; /* Radius.small */
  --radius-card: 26px; /* Radius.card */
  --radius-stage: 36px; /* Radius.stage */
  --radius-pill: 999px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(10, 15, 6, 0.055), 0 3px 6px rgba(10, 15, 6, 0.055), 0 8px 16px rgba(10, 15, 6, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(10, 15, 6, 0.07), 0 5px 10px rgba(10, 15, 6, 0.07), 0 14px 28px rgba(10, 15, 6, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(10, 15, 6, 0.09), 0 9px 18px rgba(10, 15, 6, 0.09), 0 24px 48px rgba(10, 15, 6, 0.09); /* Elevation.stage */
  --wash-0: #aa9e9f; /* ThemeSeed.washRamp[0] */
  --wash-1: #bbbab5;
  --wash-2: #c7d3cb;
  --wash-3: #cde0d5;
  --wash-4: #d4e9e3;
  color-scheme: light;
}

[data-theme="blush_rose"] {
  --bg: #fff8f8; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #ffebe9; /* AppTheme.band / bandHex */
  --field: #bd4957; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #ece3e2; /* AppTheme.line / lineHex */
  --line-strong: #cec5c4; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #a85159; /* AppTheme.terracotta / accentHex */
  --accent-press: #903b44; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #ffe8e9; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #f6cecf; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #fae9e8; /* AppTheme.slotBg / slotBgHex */
  --shadow: #150a09; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #ece3e2; /* AppTheme.skeleton */
  --radius-tight: 12px; /* Radius.tight */
  --radius-small: 18px; /* Radius.small */
  --radius-card: 26px; /* Radius.card */
  --radius-stage: 36px; /* Radius.stage */
  --radius-pill: 999px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(21, 10, 9, 0.055), 0 3px 6px rgba(21, 10, 9, 0.055), 0 8px 16px rgba(21, 10, 9, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(21, 10, 9, 0.07), 0 5px 10px rgba(21, 10, 9, 0.07), 0 14px 28px rgba(21, 10, 9, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(21, 10, 9, 0.09), 0 9px 18px rgba(21, 10, 9, 0.09), 0 24px 48px rgba(21, 10, 9, 0.09); /* Elevation.stage */
  --wash-0: #98a4a8; /* ThemeSeed.washRamp[0] */
  --wash-1: #bcb9bd;
  --wash-2: #dbcbcd;
  --wash-3: #ecd4d4;
  --wash-4: #f4ddd9;
  color-scheme: light;
}

[data-theme="nordic_sky"] {
  --bg: #f8fafd; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #e8f1fb; /* AppTheme.band / bandHex */
  --field: #3a6ce3; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #e2e6e9; /* AppTheme.line / lineHex */
  --line-strong: #c4c8cb; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #436bc4; /* AppTheme.terracotta / accentHex */
  --accent-press: #2f55ab; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #e6efff; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #c7daff; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #e8eff5; /* AppTheme.slotBg / slotBgHex */
  --shadow: #090e12; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #e2e6e9; /* AppTheme.skeleton */
  --radius-tight: 2px; /* Radius.tight */
  --radius-small: 3px; /* Radius.small */
  --radius-card: 4px; /* Radius.card */
  --radius-stage: 6px; /* Radius.stage */
  --radius-pill: 6px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(9, 14, 18, 0.055), 0 3px 6px rgba(9, 14, 18, 0.055), 0 8px 16px rgba(9, 14, 18, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(9, 14, 18, 0.07), 0 5px 10px rgba(9, 14, 18, 0.07), 0 14px 28px rgba(9, 14, 18, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(9, 14, 18, 0.09), 0 9px 18px rgba(9, 14, 18, 0.09), 0 24px 48px rgba(9, 14, 18, 0.09); /* Elevation.stage */
  --wash-0: #a1a396; /* ThemeSeed.washRamp[0] */
  --wash-1: #b3bcbd;
  --wash-2: #c7d1df;
  --wash-3: #cfdbf1;
  --wash-4: #dee2fa;
  color-scheme: light;
}

[data-theme="hype_coral"] {
  --bg: #fff9f5; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #ffece0; /* AppTheme.band / bandHex */
  --field: #cc3c00; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #ece3de; /* AppTheme.line / lineHex */
  --line-strong: #cec5c0; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #b84624; /* AppTheme.terracotta / accentHex */
  --accent-press: #9f2e03; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #ffe9e3; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #ffccbd; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #f9ebe1; /* AppTheme.slotBg / slotBgHex */
  --shadow: #140b05; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #ece3de; /* AppTheme.skeleton */
  --radius-tight: 12px; /* Radius.tight */
  --radius-small: 18px; /* Radius.small */
  --radius-card: 26px; /* Radius.card */
  --radius-stage: 36px; /* Radius.stage */
  --radius-pill: 999px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(20, 11, 5, 0.055), 0 3px 6px rgba(20, 11, 5, 0.055), 0 8px 16px rgba(20, 11, 5, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(20, 11, 5, 0.07), 0 5px 10px rgba(20, 11, 5, 0.07), 0 14px 28px rgba(20, 11, 5, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(20, 11, 5, 0.09), 0 9px 18px rgba(20, 11, 5, 0.09), 0 24px 48px rgba(20, 11, 5, 0.09); /* Elevation.stage */
  --wash-0: #98a3ad; /* ThemeSeed.washRamp[0] */
  --wash-1: #bfb8bc;
  --wash-2: #e0cac6;
  --wash-3: #f1d3ca;
  --wash-4: #f7ddce;
  color-scheme: light;
}

[data-theme="modern_ai"] {
  --bg: #f9fafe; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #edf0fb; /* AppTheme.band / bandHex */
  --field: #5e63e1; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #e4e5ea; /* AppTheme.line / lineHex */
  --line-strong: #c6c7cc; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #5d64c3; /* AppTheme.terracotta / accentHex */
  --accent-press: #494eaa; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #eaedff; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #cfd7ff; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #ebedf6; /* AppTheme.slotBg / slotBgHex */
  --shadow: #0c0d12; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #e4e5ea; /* AppTheme.skeleton */
  --radius-tight: 2px; /* Radius.tight */
  --radius-small: 3px; /* Radius.small */
  --radius-card: 4px; /* Radius.card */
  --radius-stage: 6px; /* Radius.stage */
  --radius-pill: 6px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(12, 13, 18, 0.055), 0 3px 6px rgba(12, 13, 18, 0.055), 0 8px 16px rgba(12, 13, 18, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(12, 13, 18, 0.07), 0 5px 10px rgba(12, 13, 18, 0.07), 0 14px 28px rgba(12, 13, 18, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(12, 13, 18, 0.09), 0 9px 18px rgba(12, 13, 18, 0.09), 0 24px 48px rgba(12, 13, 18, 0.09); /* Elevation.stage */
  --wash-0: #9ea498; /* ThemeSeed.washRamp[0] */
  --wash-1: #b4bcbe;
  --wash-2: #cacfdf;
  --wash-3: #d4d9f1;
  --wash-4: #e3e0f8;
  color-scheme: light;
}

[data-theme="bordeaux"] {
  --bg: #fff8f7; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #ffebe7; /* AppTheme.band / bandHex */
  --field: #be4a4b; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #ece3e1; /* AppTheme.line / lineHex */
  --line-strong: #cec5c3; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #a95250; /* AppTheme.terracotta / accentHex */
  --accent-press: #903c3b; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #ffe8e7; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #f6cecb; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #faeae7; /* AppTheme.slotBg / slotBgHex */
  --shadow: #150a08; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #ece3e1; /* AppTheme.skeleton */
  --radius-tight: 0px; /* Radius.tight */
  --radius-small: 0px; /* Radius.small */
  --radius-card: 0px; /* Radius.card */
  --radius-stage: 0px; /* Radius.stage */
  --radius-pill: 0px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(21, 10, 8, 0.055), 0 3px 6px rgba(21, 10, 8, 0.055), 0 8px 16px rgba(21, 10, 8, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(21, 10, 8, 0.07), 0 5px 10px rgba(21, 10, 8, 0.07), 0 14px 28px rgba(21, 10, 8, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(21, 10, 8, 0.09), 0 9px 18px rgba(21, 10, 8, 0.09), 0 24px 48px rgba(21, 10, 8, 0.09); /* Elevation.stage */
  --wash-0: #99a3a9; /* ThemeSeed.washRamp[0] */
  --wash-1: #bdb9bd;
  --wash-2: #dccbcb;
  --wash-3: #ecd4d2;
  --wash-4: #f4ded7;
  color-scheme: light;
}

[data-theme="terracotta"] {
  --bg: #fff9f4; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #ffecde; /* AppTheme.band / bandHex */
  --field: #bf4e00; /* AppTheme.field / fieldHex */
  --on-field: #fdfdfd; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #ece3dd; /* AppTheme.line / lineHex */
  --line-strong: #cec5bf; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #aa552a; /* AppTheme.terracotta / accentHex */
  --accent-press: #913e10; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #ffe9e0; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #f7d0be; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #fefefe; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #faebdf; /* AppTheme.slotBg / slotBgHex */
  --shadow: #150b04; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #ece3dd; /* AppTheme.skeleton */
  --radius-tight: 2px; /* Radius.tight */
  --radius-small: 3px; /* Radius.small */
  --radius-card: 4px; /* Radius.card */
  --radius-stage: 6px; /* Radius.stage */
  --radius-pill: 6px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(21, 11, 4, 0.055), 0 3px 6px rgba(21, 11, 4, 0.055), 0 8px 16px rgba(21, 11, 4, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(21, 11, 4, 0.07), 0 5px 10px rgba(21, 11, 4, 0.07), 0 14px 28px rgba(21, 11, 4, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(21, 11, 4, 0.09), 0 9px 18px rgba(21, 11, 4, 0.09), 0 24px 48px rgba(21, 11, 4, 0.09); /* Elevation.stage */
  --wash-0: #9ba2ab; /* ThemeSeed.washRamp[0] */
  --wash-1: #bfb8bb;
  --wash-2: #dcccc6;
  --wash-3: #ecd5cb;
  --wash-4: #f2dfd1;
  color-scheme: light;
}

[data-theme="cream_azure"] {
  --bg: #fcfaf5; /* AppTheme.bg / ThemePreset.bgHex */
  --surface: #ffffff; /* AppTheme.surface / surfaceHex */
  --raised: #ffffff; /* AppTheme.raised / raisedHex */
  --band: #f7efe0; /* AppTheme.band / bandHex */
  --field: #00b9d2; /* AppTheme.field / fieldHex */
  --on-field: #070707; /* AppTheme.onField / onFieldHex */
  --ink: #070707; /* AppTheme.ink / inkHex */
  --muted: #696969; /* AppTheme.muted / mutedHex */
  --line: #e8e5df; /* AppTheme.line / lineHex */
  --line-strong: #cac7c1; /* AppTheme.lineStrong / lineStrongHex */
  --accent: #10b1ca; /* AppTheme.terracotta / accentHex */
  --accent-press: #0098ae; /* AppTheme.terracottaPress / accentPressHex */
  --accent-soft: #d9f4fa; /* AppTheme.accentWash / accentSoftHex */
  --accent-edge: #b6e2ec; /* AppTheme.accentEdge / accentEdgeHex */
  --on-accent: #0d0b06; /* AppTheme.buttonForeground / buttonForegroundHex */
  --success: #287b46; /* AppTheme.forest / successHex */
  --danger: #c43f3e; /* AppTheme.danger / dangerHex */
  --slot: #f3ede2; /* AppTheme.slotBg / slotBgHex */
  --shadow: #110d06; /* AppTheme.shadowTint / shadowHex */
  --skeleton: #e8e5df; /* AppTheme.skeleton */
  --radius-tight: 0px; /* Radius.tight */
  --radius-small: 0px; /* Radius.small */
  --radius-card: 0px; /* Radius.card */
  --radius-stage: 0px; /* Radius.stage */
  --radius-pill: 0px; /* Radius.pill */
  --shadow-card: 0 1px 2px rgba(17, 13, 6, 0.055), 0 3px 6px rgba(17, 13, 6, 0.055), 0 8px 16px rgba(17, 13, 6, 0.055); /* Elevation.card */
  --shadow-raised: 0 1.5px 3px rgba(17, 13, 6, 0.07), 0 5px 10px rgba(17, 13, 6, 0.07), 0 14px 28px rgba(17, 13, 6, 0.07); /* Elevation.raised */
  --shadow-stage: 0 2.5px 5px rgba(17, 13, 6, 0.09), 0 9px 18px rgba(17, 13, 6, 0.09), 0 24px 48px rgba(17, 13, 6, 0.09); /* Elevation.stage */
  --wash-0: #a9a098; /* ThemeSeed.washRamp[0] */
  --wash-1: #b6bcb8;
  --wash-2: #c2d4d6;
  --wash-3: #c7e0e5;
  --wash-4: #d1e7f2;
  color-scheme: light;
}

.app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.app-body *, .app-body *::before, .app-body *::after { box-sizing: border-box; }
.app-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-body a { color: var(--accent); }
.app-body h1, .app-body h2, .app-body h3, .app-body p { margin: 0; }
/* 不要用 font 简写。它会把字号、字重重置成继承，盖过后面的 .pill / .slot-chip / .setting。 */
.app-body button { font-family: inherit; color: inherit; }
.app-body input, .app-body textarea, .app-body select {
  font-family: inherit;
  font-size: var(--font-callout);
  color: inherit;
}
.app-body a,
.app-body button,
.app-body select,
.app-body summary,
.app-body [role="button"],
.app-body label {
  cursor: pointer;
}
.app-body button:disabled,
.app-body a[aria-disabled="true"] {
  cursor: default;
}
.app-body img { max-width: 100%; }
.icon { display: block; flex: none; }
.press:active { transform: scale(0.97); opacity: 0.9; }
.nav-btn:hover:not([aria-current="page"]),
.tab-btn:hover:not([aria-current="page"]),
.setting:hover,
.menu button:hover,
.filter-tag:hover:not([aria-pressed="true"]),
.ghost:hover,
.pill:hover,
.slot-chip:hover,
.theme-row:hover,
.pack-row:hover,
.job-card:hover,
.back-link:hover,
.circle-btn:hover,
.credit-foot:hover {
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
}
.add-tile:hover,
.persona-tile:hover:not([aria-pressed="true"]),
.ex-tile:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.filter-tag[aria-pressed="true"]:hover,
.nav-btn[aria-current="page"]:hover,
.tab-btn[aria-current="page"]:hover {
  background: var(--slot);
}
.ghost:hover { background: var(--slot); }
.primary:hover:not(:disabled) { background: var(--accent-press); }
.setting:hover, .journey:hover, .signout:hover, .pack-row:hover, .theme-row:hover {
  background: color-mix(in srgb, var(--ink) 4%, var(--surface));
}
.menu button:hover { background: var(--slot); }
.muted { color: var(--muted); }
.err { color: var(--danger); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.shell {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: var(--titlebar) minmax(0, 1fr);
  overflow: hidden;
}
.site-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--titlebar);
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--line);
}
.site-bar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: none;
}
.site-bar .brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.site-bar .brand:hover { color: var(--accent); }
.site-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.lang-switch button {
  height: 26px;
  min-width: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--slot);
  color: var(--ink);
  font-weight: 600;
}
.lang-switch button:hover:not([aria-pressed="true"]) {
  color: var(--ink);
}
.site-login {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.site-login:hover { background: var(--slot); }
.site-avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.site-avatar:hover { background: var(--slot); }
.site-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side {
  position: sticky;
  top: var(--titlebar);
  height: calc(100vh - var(--titlebar));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) 10px 12px 18px;
  background: var(--bg);
  border-right: 0.5px solid var(--line);
}
.nav-btn, .tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  font-size: var(--font-callout);
  text-align: left;
  text-decoration: none;
}
/* 侧栏图标框 22，对应 Mac frame 22 / SF 15。指南针圆 r=8，墨迹约 16px。 */
.nav-btn .icon { width: 22px; height: 22px; stroke-width: 1.35; }
.nav-btn[aria-current="page"] .icon { stroke-width: 1.6; }
.tab-btn .icon { width: 22px; height: 22px; stroke-width: 1.7; }
.nav-btn[aria-current="page"], .tab-btn[aria-current="page"] {
  background: var(--slot);
  color: var(--accent);
  font-weight: 600;
}
.nav-btn .badge, .count-pill {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font-size: var(--font-micro);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.side-spacer { flex: 1; }
.credit-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  margin-bottom: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-callout);
  font-weight: 600;
  line-height: 1;
  text-align: left;
}
.credit-foot .buy {
  margin-left: auto;
  color: var(--accent);
  font-size: var(--font-caption);
}
.credit-foot .icon, .pill .icon { color: var(--accent); }

.main {
  min-width: 0;
  min-height: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
}
.main-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
@media (min-width: 768px) {
  .main, .main-inner { height: 100%; }
}
.page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.app-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-height: var(--foot);
  padding: 10px 20px 14px;
  color: var(--muted);
  font-size: var(--font-micro);
}
.app-foot a {
  color: var(--muted);
  text-decoration: none;
}
.app-foot a:hover { color: var(--ink); }
.page-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.page-head {
  display: flex;
  align-items: last baseline;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl) var(--space-md);
}
.page-head h1 {
  font-size: var(--font-page);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.page-head .tools { margin-left: auto; display: flex; gap: var(--space-sm); align-items: center; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-callout);
  font-weight: 600;
}

.pill, .slot-chip, .filter-tag, .ghost, .primary, .danger, .text-btn {
  border: 0;
  background: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  font-size: var(--font-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-caption);
  font-weight: 600;
  white-space: nowrap;
}
.slot-chip .icon { width: 16px; height: 16px; stroke-width: 1.7; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--slot);
  color: var(--muted);
  font-size: var(--font-caption);
  font-weight: 600;
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.filter-tag[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
  box-shadow: none;
}
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--slot);
}
.seg button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--font-caption);
  font-weight: 500;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  /* Mac 标题用系统行高，筛选条比 line-height:1.1 的标题再低约 12px。 */
  padding: 16px var(--space-xl) var(--space-xs);
  border-bottom: 0.5px solid var(--line);
}
.primary, .ghost, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: var(--font-body);
  font-weight: 600;
  text-decoration: none;
}
.primary {
  height: var(--button-height);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
}
.primary .icon { width: 16px; height: 16px; stroke-width: 1.75; }
/* 盖过 .app-body button { color: inherit }，否则黑底上是黑字。 */
.app-body button.primary,
.app-body a.primary,
.app-body button.danger,
.app-body a.danger { color: var(--on-accent); }
.danger:disabled, .ghost:disabled { opacity: 0.72; cursor: default; box-shadow: none; }
/* 未满足条件仍保持白字黑底，只略降不透明度。整钮叠在纸底上，白字对比仍高于 4.5:1。 */
.app-body button.primary:disabled,
.app-body a.primary:disabled {
  opacity: 0.72;
  cursor: default;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.ghost {
  min-height: 48px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-callout);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.ghost .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.danger { background: var(--danger); color: var(--on-accent); }
.text-btn { color: var(--accent); font-size: var(--font-caption); font-weight: 600; padding: 0; }
.dock {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl) var(--space-md);
  background: var(--bg);
  border-top: 0.5px solid var(--line);
}
.dock .primary { width: min(420px, 100%); }
.dock-bar { width: 1px; height: 18px; background: color-mix(in srgb, var(--on-accent) 35%, transparent); }

.index-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  color: var(--muted);
  font-size: var(--font-index);
  font-weight: 600;
}
.index-label .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  opacity: 0.8;
}
.index-label .acc { font-size: var(--font-micro); font-weight: 500; opacity: 0.7; }
.index-label .rule { flex: 1; height: 0.5px; background: color-mix(in srgb, var(--muted) 30%, transparent); }

.mirror-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-xl) 0;
}
.stage-wrap { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.stage-card {
  height: var(--card-h);
  padding: var(--space-md);
  border-radius: var(--radius-stage);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.stage-card.is-drop,
.poster-slot.is-drop,
.add-tile.is-drop {
  box-shadow: var(--shadow-card), inset 0 0 0 2px var(--accent);
  background: var(--accent-soft);
}
.stage-inner {
  height: 100%;
  overflow: auto;
  border-radius: var(--radius-small);
  background: var(--surface);
}
.stage-inner.is-slot { background: var(--slot); }
.invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  height: 100%;
  padding: 0 var(--space-xl);
  text-align: center;
}
.invite h2 {
  font-size: var(--font-invite);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.05;
}
.invite p { font-size: var(--font-caption); color: var(--muted); line-height: 1.05; }
.invite .chip-row { margin-top: 4px; }
@media (min-width: 768px) {
  .invite p { white-space: nowrap; }
}
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
.marquee { width: calc(100% + 48px); margin: 0 -24px; overflow: hidden; }
.marquee-track { display: flex; gap: 8px; width: max-content; animation: strip 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }
.ex-tile {
  width: 62px;
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--surface);
}
.ex-tile img { width: 100%; height: 100%; object-fit: cover; }
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-xs);
}
.persona-hall {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px 20px 28px;
}
.persona-tile, .add-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 132px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.persona-grid { align-content: start; }
.persona-tile img, .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--slot);
}
.persona-tile { box-shadow: inset 0 0 0 1px var(--line); }
.persona-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--accent); }
.add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background:
    repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px) top / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px) bottom / 100% 1.5px no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 6px, transparent 6px 11px) left / 1.5px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 6px, transparent 6px 11px) right / 1.5px 100% no-repeat;
}
.staged {
  position: relative;
  height: 100%;
  background: var(--slot);
  overflow: hidden;
}
.staged .blur {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(26px);
  opacity: 0.55;
}
.staged .fit { position: relative; width: 100%; height: 100%; object-fit: contain; }
.glass-tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: var(--font-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
}
.glass-btn {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.45);
  color: #fff;
}
.menu {
  position: absolute;
  right: 8px;
  bottom: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}
.menu button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-tight);
  background: transparent;
  color: var(--ink);
  font-size: var(--font-caption);
  text-align: left;
}
.menu button.bad { color: var(--danger); }
.demo-strip {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-md);
  min-width: 0;
}
.demo-strip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.demo-strip-head h2 {
  flex: 1;
  font-size: var(--font-callout);
  font-weight: 600;
}
.demo-groups {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  /* 留出卡片阴影的位置，否则 overflow 会把阴影裁掉 */
  padding: 4px 4px 10px;
  margin: -4px -4px 0;
}
/* 每组示例一张卡片，三组之间分得清 */
.demo-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px;
  background: var(--surface);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
}
.demo-pane {
  position: relative;
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--slot);
}
.demo-pane.is-result { width: 92px; }
.demo-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-pane .tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
/* A + B → C 的运算符：圆底徽章，箭头用主色实心、加号用浅底，一眼看出「合成 → 结果」 */
.demo-op {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.demo-op svg { stroke-width: 2.6; }
.demo-op.is-arrow {
  width: 30px;
  height: 30px;
  margin: 0 4px;
  background: var(--accent);
  color: var(--on-accent);
}
.prompt-block { max-width: 1100px; margin: 0 auto; padding: var(--space-xl); }
.prompt-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.prompt-box {
  margin-top: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--slot);
}
.prompt-box textarea {
  width: 100%;
  min-height: 88px;
  padding: var(--space-md);
  border: 0;
  resize: vertical;
  background: transparent;
  outline: none;
}
.count { padding: 0 var(--space-md) var(--space-sm); text-align: right; font-size: var(--font-micro); color: var(--muted); }

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl) var(--space-md);
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
}
.look-card { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.look-photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--slot);
}
.look-photo .shot-hit {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.look-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-on {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.badge-on.tl { top: 8px; left: 8px; }
.badge-on.tr { top: 8px; right: 8px; }
.try-on-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: var(--font-micro);
  font-weight: 700;
}
.look-card h2 { font-size: var(--font-callout); font-weight: 600; line-height: 1.3; }
.meta { display: flex; align-items: center; gap: var(--space-sm); color: var(--muted); font-size: var(--font-micro); }
.meta .style { font-weight: 600; letter-spacing: 1px; }
.meta .dot { width: 2.5px; height: 2.5px; border-radius: 99px; background: var(--line); }
.idrow { padding: var(--space-lg) var(--space-xl) 0; }
.idrow h2 { font-size: var(--font-callout); font-weight: 600; margin-bottom: var(--space-sm); }
.id-shots { display: flex; gap: var(--space-md); overflow: auto; }
.id-shots button { padding: 0; border: 0; height: 150px; border-radius: var(--radius-small); overflow: hidden; background: var(--slot); }
.id-shots img { height: 150px; width: auto; display: block; object-fit: cover; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl) var(--space-md);
  padding: var(--space-xs) var(--space-xl) var(--space-xl);
}
.job-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.job-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--slot);
}
.job-photo > img:not(.thumb) { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-photo.failed > img:not(.thumb) { opacity: 0.35; }
.job-photo .warn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.job-photo > img.thumb {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 48px;
  object-fit: cover;
  background: var(--slot);
  border-radius: var(--radius-tight);
  box-shadow: 0 1px 2px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.16), 0 0 0 1.5px rgba(255,255,255,.9);
}
.job-card h2 { font-size: var(--font-callout); font-weight: 600; }
.job-card .sub { font-size: var(--font-micro); color: var(--muted); }
.job-card .sub.bad { color: var(--danger); }
.circle-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  flex: 1;
  min-height: 0;
}
.result-stage { position: relative; background: #111; min-height: 0; height: 100%; }
.result-stage img.full { width: 100%; height: 100%; object-fit: contain; background: #1a1a1a; }
.compare { position: relative; height: 100%; overflow: hidden; background: #111; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare img.blur {
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(34px);
  opacity: 0.75;
}
.compare .person { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.compare .wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 1.5px;
  background: #fff;
  transform: translateX(-0.75px);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.compare .handle {
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.float-btn {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.float-btn.back { top: 16px; left: 16px; }
.float-btn.del { top: 16px; right: 16px; }
.garment-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 46%;
  color: #fff;
  font-size: var(--font-caption);
}
.garment-chip img { width: 36px; height: 48px; object-fit: cover; border-radius: var(--radius-tight); box-shadow: 0 0 0 1.5px #fff; }
.result-panel {
  overflow: auto;
  padding: var(--space-xl) var(--space-gutter);
  background: var(--band);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.result-panel .primary, .result-panel .ghost { width: 100%; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.poster-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.poster-mini button { padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.poster-mini img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-small); background: var(--slot); }
.poster-mini span { display: block; margin-top: 4px; font-size: var(--font-micro); }

.poster-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--space-xl);
  padding: 0 var(--space-xl);
  min-height: 0;
}
.poster-slot {
  position: relative;
  height: var(--poster-slot);
  border-radius: var(--radius-small);
  background: var(--slot);
  overflow: hidden;
}
.poster-slot.empty {
  background:
    repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px) top / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px) bottom / 100% 1.5px no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 6px, transparent 6px 11px) left / 1.5px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 6px, transparent 6px 11px) right / 1.5px 100% no-repeat,
    var(--slot);
}
.poster-slot img { width: 100%; height: 100%; object-fit: contain; }
.slot-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  text-align: center;
}
.slot-empty .row { flex-wrap: nowrap; }
.slot-empty .slot-chip { flex: none; white-space: nowrap; }
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md) var(--space-sm);
}
.style-cell { display: flex; flex-direction: column; gap: 6px; }
.style-cell button.shot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--slot);
  box-shadow: inset 0 0 0 0 var(--accent);
}
.style-cell button.shot[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent); }
.style-cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.style-cell .name { font-size: var(--font-caption); color: var(--muted); }
.style-cell .name.on { color: var(--ink); font-weight: 600; }
.section-title { font-size: var(--font-callout); font-weight: 600; margin-bottom: var(--space-md); }

.me {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xxl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.wash {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 340px;
  background: linear-gradient(154.3deg, var(--wash-0), var(--wash-1) 25%, var(--wash-2) 50%, var(--wash-3) 75%, var(--wash-4));
  -webkit-mask-image: linear-gradient(#000 0 55%, rgba(0,0,0,.45) 80%, transparent);
  mask-image: linear-gradient(#000 0 55%, rgba(0,0,0,.45) 80%, transparent);
  pointer-events: none;
}
.identity, .wallet, .group, .entry-card, .rows, .journey, .signout {
  position: relative;
  margin: 0 var(--space-gutter);
}
.identity { display: flex; align-items: center; gap: var(--space-md); padding-top: var(--space-lg); }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow) 40%, transparent);
  color: var(--muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity h2 { font-size: var(--font-section); font-weight: 700; letter-spacing: -0.4px; }
.edit-pill {
  margin-left: auto;
  padding: 6px 11px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: var(--font-micro);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.wallet {
  /* Mac 卡高约 214。顶上多 6px、标题和数字之间多 15px，对齐实测留白。 */
  padding: 24px 18px 19px;
  border-radius: var(--radius-stage);
  background: linear-gradient(135deg, var(--accent), var(--accent-press));
  color: var(--on-accent);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.wallet::before {
  content: "";
  position: absolute;
  width: 172px;
  height: 172px;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 106px), calc(-50% - 76px));
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--on-accent) 26%, transparent) 0%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.wallet-top, .wallet-num { display: flex; align-items: baseline; justify-content: space-between; }
.wallet-num strong { font-size: 52px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; }
.wallet-num span, .wallet .hint, .wallet-top button { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.wallet-top button { border: 0; background: transparent; font-size: var(--font-caption); }
.wallet .hint { display: block; margin-top: 5px; font-size: var(--font-micro); }
.wallet .buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--accent);
  font-size: var(--font-body);
  font-weight: 600;
}
.wallet .buy-btn .credit-icon { width: 14px; height: 16px; }
.entry-card, .rows {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.setting {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--space-lg) 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-size: var(--font-callout);
}
.setting .ic { width: 56px; display: grid; place-items: center; color: var(--ink); }
.setting .copy { flex: 1; min-width: 0; }
.setting .ic .icon { width: 28px; height: 28px; stroke-width: 1.45; }
.setting .val { margin-left: auto; color: var(--muted); font-size: var(--font-caption); }
.setting .chev { margin-left: 6px; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.setting small { display: block; color: var(--muted); font-size: var(--font-micro); }
.hairline { height: 0.5px; margin-left: 56px; background: var(--line); }
.app-body p.group-label {
  /* 必须压过 .app-body p { margin: 0 }，否则标题和卡片贴在一起，下面各组上移。 */
  margin: 0 var(--space-gutter) var(--space-sm);
  padding-left: var(--space-lg);
  color: var(--muted);
  font-size: var(--font-caption);
  font-weight: 600;
}
.journey {
  display: flex;
  gap: var(--space-md);
  width: calc(100% - 40px);
  padding: var(--space-lg);
  border: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, var(--accent-soft), var(--band));
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-card);
}
.journey .go {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
}
.signout {
  height: 56px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--danger);
  font-size: var(--font-callout);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.theme-list { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 40px; }
.theme-row {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.theme-row[aria-pressed="true"] { border: 2px solid var(--accent); }
.theme-row h2 { font-size: var(--font-body); font-weight: 600; }
.theme-row p { margin-top: 6px; padding-left: 26px; color: var(--muted); font-size: var(--font-caption); }
.swatches { display: flex; gap: 8px; margin-top: 8px; padding-left: 26px; }
.swatches span { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.12); }
.badge-mini {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--line);
  color: var(--muted);
  font-size: var(--font-micro);
  font-weight: 700;
}
.theme-row[aria-pressed="true"] .badge-mini { background: var(--accent); color: #fff; }
.preview-box {
  margin: 4px 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.field, .choice {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--slot);
  outline: none;
}
textarea.field { min-height: 88px; resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card {
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--space-xl) var(--space-xxl); }
.ledger-item, .price-row, .pack {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--line);
}
.delta.plus { color: var(--success); font-weight: 600; }
.delta.minus { color: var(--ink); font-weight: 600; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; letter-spacing: 0.18em; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: 380px;
  padding: var(--space-xxl);
  text-align: center;
  color: var(--muted);
}
.empty .orb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty h2 { color: var(--ink); font-size: var(--font-section); letter-spacing: -0.6px; }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
}
.modal, .login-sheet {
  width: min(440px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 16px 18px 20px;
  background: var(--bg);
  border-radius: var(--radius-stage);
  box-shadow: var(--shadow-stage);
}
.modal.wide { width: min(860px, 100%); }
.login-sheet {
  width: min(420px, 100%);
  height: min(560px, 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.login-top { display: flex; align-items: center; padding: 12px 20px 0; }
.login-top .spacer { flex: 1; }
.login-home, .login-pass {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}
.login-home { justify-content: flex-end; }
.login-copy { margin: auto 0; text-align: center; }
.login-copy h2 { font-size: var(--font-title); font-weight: 700; }
.login-copy p { margin-top: 8px; color: var(--muted); font-size: var(--font-callout); }
.login-actions { display: flex; flex-direction: column; gap: 12px; }
/* 与 Google 官方按钮同尺寸：GSI 的 large 按钮固定 40px 高、4px 圆角、14px 字，改不了它就改我们的 */
.login-actions .ghost, .login-actions .primary { width: 100%; height: 40px; min-height: 40px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.google-btn { display: flex; justify-content: center; min-height: 40px; }
.circle-x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--slot);
  color: var(--ink);
}
.notice { min-height: 32px; margin-top: 4px; color: var(--danger); font-size: var(--font-caption); text-align: center; }
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100% - 32px));
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.picker { width: min(720px, 100%); height: min(600px, 100%); }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.grid-cards .tile, .tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--slot);
  color: inherit;
  text-align: left;
}
.tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.tile .cap { display: block; padding: 8px 2px 0; font-size: var(--font-caption); }
.mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.tabs { display: none; }
.badge-link { display: inline-flex; line-height: 0; }
.badge-link img { height: 40px; width: auto; }
.pay {
  max-width: 520px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-gutter) 34px;
}
.staged img:not(.blur) { position: relative; width: 100%; height: 100%; object-fit: contain; }
.result-stage > img { width: 100%; height: 100%; object-fit: contain; background: #1a1a1a; }
.pill.ink { color: var(--ink); }
.poster-slot { overflow: visible; }
.replace-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  font-size: var(--font-caption);
  font-weight: 600;
}
.shot-wrap { position: relative; }
.style-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.style-zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
}
.me-page { position: relative; background: var(--bg); }
.who {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.wallet { position: relative; }
.wallet > .credit-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 173px;
  height: 200px;
  color: var(--on-accent);
  opacity: 0.07;
  transform: translate(calc(-50% + 116px), calc(-50% + 46px)) rotate(-12deg);
  pointer-events: none;
}
.wallet-top > span:first-child { font-size: var(--font-callout); font-weight: 600; color: color-mix(in srgb, var(--on-accent) 88%, transparent); }
.wallet-num { justify-content: flex-start; gap: 4px; margin-top: 15px; }
.wallet-num > span { font-size: var(--font-callout); font-weight: 500; }
.wallet-top button { display: inline-flex; align-items: center; gap: 3px; }
.journey > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.journey > .icon { margin-left: auto; color: color-mix(in srgb, var(--ink) 12%, transparent); }
.journey strong { font-size: var(--font-body); }
.setting > .icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.setting .val + .icon { margin-left: 6px; }
.journey .muted { font-size: var(--font-caption); }
.credit-foot .credit-icon { width: 15px; height: 17px; }
.pill .credit-icon { width: 11px; height: 13px; }
.setting.danger-row, .setting.danger-row .ic { color: var(--danger); }
.page-head.sub h1 { font-size: var(--font-section); letter-spacing: -0.4px; }
.theme-name { display: flex; align-items: center; gap: 8px; }
.theme-row .swatches span { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; background: none; box-shadow: none; }
.swatches i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.swatches em { margin-top: 3px; font-style: normal; font-size: 11px; color: var(--muted); }
.circle-x { background: var(--surface); color: var(--muted); }
.agree-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; color: var(--muted); font-size: var(--font-caption); }
.agree-check { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--font-caption); }
.agree-check.on { color: var(--accent); }
.agree-check.on span { color: var(--muted); }
.login-pass h2 { font-size: var(--font-title); font-weight: 700; margin-bottom: 4px; }
.login-pass .seg { display: flex; }
.login-pass .seg button { flex: 1; height: 32px; }
.login-pass .field { height: 50px; background: var(--surface); }
.login-pass .primary { width: 100%; height: 50px; border-radius: var(--radius-small); }
.pay { position: relative; }
.pay-close { position: absolute; top: 16px; right: 16px; min-height: 32px; }
.pay-title { display: flex; align-items: flex-start; justify-content: space-between; padding-right: 72px; }
.pay-title .credit-icon { color: var(--accent); margin-top: 6px; }
.pay-num span { color: var(--muted); font-size: 20px; padding-bottom: 8px; }
.pay-band .primary { width: 100%; margin-top: 8px; }
.pay-band .badge-link { display: flex; justify-content: center; margin-top: 12px; }
.pay-note { text-align: center; margin-top: var(--space-lg); }
.pay-links { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--muted); font-size: var(--font-caption); }
.pay-links button { border: 0; background: transparent; color: var(--muted); font-size: var(--font-caption); }
.pay-links span { width: 3px; height: 3px; border-radius: 999px; background: var(--line); }
.pack-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.pack-price { margin-left: auto; font-size: 21px; font-variant-numeric: tabular-nums; }
.badge-mini.on { background: var(--accent); color: #fff; }
.pay-hero h1 { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.pay-num { display: flex; align-items: flex-end; gap: var(--space-sm); color: var(--accent); }
.pay-num strong { font-size: 88px; line-height: 0.9; font-variant-numeric: tabular-nums; font-weight: 600; }
.pay-band { margin-top: var(--space-xl); padding: var(--space-xxl) 0; background: var(--band); }
.pack-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-md);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: left;
}
.pack-row[aria-pressed="true"] { border: 2px solid var(--accent); box-shadow: var(--shadow-raised); }
.more { margin-top: auto; padding-top: var(--space-lg); text-align: center; }

@media (min-width: 1601px) {
  .main-inner { max-width: var(--content-max); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .shell { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
  .side {
    padding-left: 8px;
    padding-right: 8px;
    overflow: visible;
  }
  .nav-btn {
    position: relative;
    justify-content: center;
    padding: 0;
  }
  .nav-btn > span:not(.badge) { display: none; }
  .nav-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
  }
  .nav-btn[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 4px 8px;
    border-radius: var(--radius-small);
    background: var(--raised);
    color: var(--ink);
    font-size: var(--font-caption);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    pointer-events: none;
  }
  .credit-foot {
    justify-content: center;
    padding: 0;
  }
  .credit-foot > span { display: none; }
}
@media (max-width: 767px) {
  .shell { display: block; height: auto; min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; }
  .site-bar { position: sticky; top: 0; z-index: 15; }
  .side { display: none; }
  .main, .main-inner, .page { min-height: 0; }
  .mirror-cols, .poster-layout, .result { grid-template-columns: 1fr; }
  .stage-card { height: auto; min-height: 360px; }
  .stage-inner { min-height: 320px; }
  .poster-slot { height: 360px; }
  .result-stage, .compare, .result-stage img.full { height: 70vw; min-height: 320px; }
  .page-head, .filters, .masonry, .job-grid { padding-left: 16px; padding-right: 16px; }
  .page-head h1 { font-size: 28px; }
  .tabs {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 0.5px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
  }
  .tab-btn {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: auto;
    min-height: 48px;
    padding: 2px;
    font-size: 10px;
  }
  .tab-btn .badge, .count-pill { margin: 0; position: absolute; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .login-sheet { height: auto; max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .press:active { transform: none; }
}

/* 登录首页的 Google 按钮：没勾协议时由透明层接住点击 */
.google-gate { position: relative; width: 100%; }
.google-gate-cover { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: pointer; }
