/* 星伴 · D1-Refined 轻骨瓷 30% 旗舰样式系统
 * 色票: 暖玉杏白 #F6F2EB | 细骨瓷 #FDFCFA | 哑光深炭 #1D1F22 | 香槟细圈 #E3DCD0
 *      桉树鼠尾草 #578D7A | 柔陶红 #C96054 | 柔雾灰蓝 #6D7B87 | 暖琥珀 #D6984C
 */

:root {
  --bg-desk: #ECE6DC;
  --bg-canvas: #F6F2EB;
  --bg-porcelain: #FDFCFA;
  --bg-recess: #F3EEE6;
  --bg-blush-soft: #F7ECE7;
  --bg-sage-soft: #EBF2EE;

  --ink-primary: #1D1E1C;
  --ink-secondary: #5D5A54;
  --ink-muted: #868077;

  --sage: #578D7A;
  --sage-deep: #497A69;
  --coral: #C96054;
  --coral-bright: #D67162;
  --amber: #D49348;
  --mist: #6D7B87;

  --charcoal: #1D1F22;
  --charcoal-soft: #25282C;
  --champagne: #E3DCD0;

  --border-porcelain: rgba(180, 168, 152, 0.24);
  --border-recess: rgba(162, 150, 134, 0.28);
  --shadow-porcelain: 0 4px 16px rgba(42, 34, 24, 0.042), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --shadow-porcelain-sm: 0 2px 8px rgba(42, 34, 24, 0.038), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-recess: inset 0 1px 2px rgba(42, 34, 24, 0.055);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);

  --scrollbar-thumb: rgba(134, 128, 119, 0.35);
  --scrollbar-track: transparent;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 22% 16%, #F4EFE6 0%, var(--bg-desk) 65%, #E3DDD2 100%);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea {
  font-family: inherit;
}

/* =========================================================================
 * 1. 独立 Web App 画布壳（移动端 100% 真全屏，桌面端居中 430px 轻骨瓷画布）
 * ========================================================================= */
.desk-util-bar {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.desk-util-bar:hover {
  opacity: 1;
}

.desk-util-pill {
  appearance: none;
  border: 1px solid rgba(180, 168, 152, 0.3);
  background: rgba(253, 252, 250, 0.78);
  color: var(--ink-secondary);
  font-size: 11.4px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(34, 28, 20, 0.05);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 140ms var(--ease-calm), color 140ms ease, background 140ms ease;
}

.desk-util-pill:hover {
  color: var(--ink-primary);
  background: rgba(253, 252, 250, 0.96);
  transform: translateY(-1px);
}

.app-shell {
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  overflow: hidden;
}

.app-frame {
  width: min(426px, 100%);
  height: min(868px, 100%);
  border-radius: 42px;
  background: var(--bg-canvas);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 72px rgba(34, 28, 20, 0.16),
    0 6px 20px rgba(34, 28, 20, 0.08),
    0 0 0 1px rgba(180, 168, 152, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* 可滚动主内容视口（底部预留空间让卡片优雅滑入悬浮磨砂玻璃底栏之下） */
.app-viewport {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 96px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@supports not (scrollbar-color: auto) {
  .app-viewport {
    scrollbar-width: auto;
  }
  .app-viewport::-webkit-scrollbar {
    width: 4px;
  }
  .app-viewport::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }
  .app-viewport::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

.app-viewport.is-chat-mode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px 86px;
}

/* =========================================================================
 * 2. 底部悬浮磨砂瓷玻璃胶囊导航 (iOS 26 Liquid Glass Pill Dock)
 * ========================================================================= */
.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(11px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px;
  background: rgba(253, 252, 250, 0.80);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 34px rgba(34, 28, 20, 0.12),
    0 2px 8px rgba(34, 28, 20, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  padding: 5px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  z-index: 20;
}

.dock-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(32px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(246, 242, 235, 0.98) 38%, rgba(246, 242, 235, 0) 100%);
  pointer-events: none;
  z-index: 18;
}

.bottom-nav.is-hidden {
  display: none;
}

.nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--ink-secondary);
  display: flex;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease-calm);
}

.nav-item:active {
  transform: scale(0.93);
}

.nav-pill-bg {
  width: 100%;
  max-width: 86px;
  padding: 6px 0 5px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background 200ms var(--ease-calm), color 200ms var(--ease-calm), box-shadow 200ms ease;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item span {
  font-size: 10.6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-item[aria-current="page"] {
  color: var(--coral);
}

.nav-item[aria-current="page"] .nav-pill-bg {
  background: rgba(201, 96, 84, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1px 4px rgba(201, 96, 84, 0.08);
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 126px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(29, 30, 28, 0.22);
}

/* =========================================================================
 * 3. 核心 D1-Refined 30% 轻骨瓷卡片、iOS 吸顶磨砂顶栏、印章与立体微触感
 * ========================================================================= */
.porcelain-card {
  background: linear-gradient(180deg, #FEFEFD 0%, var(--bg-porcelain) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 14px 15px;
  box-shadow:
    0 6px 20px rgba(34, 28, 20, 0.048),
    0 1.5px 4px rgba(34, 28, 20, 0.03),
    0 0 0 1px rgba(180, 168, 152, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  margin-bottom: 11px;
}

.porcelain-card.is-compact {
  padding: 11px 13px;
  border-radius: 20px;
}

/* 顶部 iOS 吸顶毛玻璃导航栏（滚动自动柔和折叠 + 细分隔线） */
.ios-sticky-header {
  position: sticky;
  top: 0;
  z-index: 16;
  margin: 0 -16px 8px;
  padding: 14px 16px 8px;
  background: rgba(246, 242, 235, 0.86);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border-bottom: 0.5px solid transparent;
  transition: padding 220ms var(--ease-calm), border-color 220ms ease, background 220ms ease;
}

.ios-sticky-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 8px;
  background: rgba(246, 242, 235, 0.92);
  border-bottom-color: rgba(180, 168, 152, 0.24);
}

.ios-sticky-header.is-scrolled .home-title {
  font-size: 20px;
}

.ios-sticky-header.is-scrolled .home-subtitle {
  display: none;
}

.ios-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ios-bell-btn {
  position: relative;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #FEFEFD 0%, #F7F3EC 100%);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(34, 28, 20, 0.06),
    0 0 0 1px rgba(180, 168, 152, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 140ms var(--ease-calm), color 140ms ease;
}

.ios-bell-btn:active {
  transform: scale(0.92);
}

.ios-bell-btn:hover {
  color: var(--ink-primary);
}

.ios-bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--coral);
  border: 1.5px solid #FDFCFA;
}

/* iOS Segmented Control 五档时间轴 (今日 / 明日 / 本月 / 下月 / 2027) */
.horizon-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(226, 219, 207, 0.62);
  box-shadow: inset 0 1px 2px rgba(34, 28, 20, 0.06);
  margin-top: 8px;
}

.horizon-btn {
  appearance: none;
  border: 0;
  height: 28px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms var(--ease-calm), color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.horizon-btn:active {
  transform: scale(0.95);
}

.horizon-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFBF8 100%);
  color: var(--ink-primary);
  box-shadow:
    0 2px 6px rgba(34, 28, 20, 0.09),
    0 0 0 0.5px rgba(180, 168, 152, 0.16);
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.14;
  color: var(--ink-primary);
  transition: font-size 200ms var(--ease-calm);
}

.home-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* 双环陶红釉面用户印章 */
.zz-seal-btn {
  appearance: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, #D97767 0%, #C35D4F 100%);
  color: #FDFCFA;
  font-size: 12.6px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 2.5px rgba(253, 252, 250, 0.34),
    0 3px 10px rgba(195, 93, 79, 0.22);
  transition: transform 160ms var(--ease-calm);
  flex: none;
}

.zz-seal-btn:hover {
  transform: scale(1.04);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.card-h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.card-body {
  margin: 0 0 10px;
  font-size: 12.8px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.solar-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.solar-link-btn:hover {
  color: var(--ink-primary);
}

/* =========================================================================
 * 4. 哑光深炭星盘 + 香槟金细表圈 + 双向齿轮微旋与机关走线动效
 * ========================================================================= */
.astrolabe-wrap {
  position: relative;
  width: 100%;
  max-width: 264px;
  aspect-ratio: 1;
  margin: 2px auto 12px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(145deg, #F0E8DA 0%, #D9CFC0 48%, #B8AC9A 100%);
  box-shadow:
    0 12px 28px rgba(29, 31, 34, 0.16),
    0 3px 8px rgba(29, 31, 34, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition: border-radius 360ms var(--ease-calm), max-width 360ms var(--ease-calm);
}

.astrolabe-wrap.is-zoomed {
  max-width: 100%;
  aspect-ratio: 1.28;
  border-radius: 20px;
  background: var(--charcoal);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(227, 220, 208, 0.28);
}

.astrolabe-wrap.is-compact {
  max-width: 236px;
  margin-bottom: 8px;
}

.astrolabe-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  user-select: none;
}

.planet-node {
  cursor: pointer;
  outline: none;
}

.planet-hit {
  fill: transparent;
}

.planet-node:hover .planet-ring,
.planet-node:focus-visible .planet-ring {
  stroke: rgba(227, 220, 208, 0.72);
  stroke-width: 1.1;
}

/* 常态微光巡航弧 */
.rim-sweep-arc {
  transform-origin: 180px 180px;
  animation: rimCruise 22s linear infinite;
}

@keyframes rimCruise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 机关校准序列: 双向齿轮微旋 → 连杆顺次画线 → 800ms 盘心微闪 */
.astrolabe-svg .gear-zodiac,
.astrolabe-svg .gear-dial,
.astrolabe-svg .astrolabe-synth {
  transform-origin: 180px 180px;
}

.astrolabe-svg.is-calibrating .gear-zodiac {
  animation: gearZodiacSpin 860ms var(--ease-calm) both;
}

.astrolabe-svg.is-calibrating .gear-dial {
  animation: gearDialSpin 860ms var(--ease-calm) both;
}

.astrolabe-svg.is-calibrating .mech-line {
  stroke-dasharray: var(--line-len, 160);
  stroke-dashoffset: var(--line-len, 160);
  animation: mechDraw 460ms var(--ease-calm) var(--draw-delay, 220ms) forwards;
}

.astrolabe-svg.is-calibrating .trine-surface {
  opacity: 0;
  animation: trineFadeIn 420ms ease 540ms forwards;
}

.astrolabe-svg.is-calibrating .synth-ripple {
  opacity: 0;
  transform-origin: 180px 180px;
  animation: synthRipple 760ms var(--ease-calm) 680ms both;
}

.astrolabe-svg.is-calibrating .synth-ripple-2 {
  animation-delay: 750ms;
}

.astrolabe-svg.is-calibrating .synth-star {
  opacity: 0;
  transform-origin: 180px 180px;
  animation: synthStarGlint 720ms var(--ease-calm) 710ms both;
}

.astrolabe-svg:not(.is-calibrating) .synth-ripple,
.astrolabe-svg:not(.is-calibrating) .synth-star {
  opacity: 0;
}

@keyframes gearZodiacSpin {
  0% { transform: rotate(-11deg); }
  100% { transform: rotate(0deg); }
}

@keyframes gearDialSpin {
  0% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes mechDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes trineFadeIn {
  to { opacity: 1; }
}

@keyframes synthRipple {
  0% { opacity: 0; transform: scale(0.76); }
  35% { opacity: 0.72; }
  100% { opacity: 0; transform: scale(1.24); }
}

@keyframes synthStarGlint {
  0% { opacity: 0; transform: scale(0.45) rotate(-18deg); }
  40% { opacity: 0.92; transform: scale(1.12) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.85) rotate(12deg); }
}

.result-reveal-card {
  transition: opacity 280ms var(--ease-calm), transform 280ms var(--ease-calm);
}

.result-reveal-card.is-synthesizing {
  opacity: 0.72;
  transform: translateY(2px);
}

/* =========================================================================
 * 5. 主页按钮组、关系洞察、84 顺遂柱、圆形色珠、1秒情绪戳与浅槽快问
 * ========================================================================= */
.dial-action-row {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 8px;
}

.sage-pill-btn {
  appearance: none;
  border: 0;
  height: 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #629986 0%, #528674 100%);
  color: #FDFCFA;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 3px 10px rgba(82, 134, 116, 0.2);
  transition: transform 150ms var(--ease-calm), filter 150ms ease;
}

.sage-pill-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.porcelain-pill-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
  transition: transform 150ms var(--ease-calm), border-color 150ms ease;
}

.porcelain-pill-btn:hover {
  border-color: rgba(180, 168, 152, 0.45);
  transform: translateY(-1px);
}

.insight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 5px;
}

.heart-emblem {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.insight-headline {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.26;
  color: var(--ink-primary);
}

.insight-sub {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.44;
}

.mini-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 9px;
}

.mini-subcard {
  background: #FAF8F4;
  border: 1px solid rgba(180, 168, 152, 0.2);
  border-radius: var(--radius-md);
  padding: 9px 10px;
}

.mini-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-sub-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
}

.score-big {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.03em;
}

/* Apple Health 精密竖向顺遂度柱 + 3D 釉面立体感 */
.rhythm-bars {
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 7px;
  padding: 2px 2px 5px;
  border-bottom: 1px solid rgba(180, 168, 152, 0.32);
}

.rhythm-bar {
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  min-height: 12px;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px rgba(120, 44, 34, 0.12),
    0 2px 5px rgba(190, 84, 71, 0.14);
  transition: height 340ms var(--ease-calm);
}

.rhythm-bar:nth-child(1) { background: linear-gradient(180deg, #F3DFD2 0%, #E7C3B0 100%); }
.rhythm-bar:nth-child(2) { background: linear-gradient(180deg, #ECBEA9 0%, #DF9E88 100%); }
.rhythm-bar:nth-child(3) { background: linear-gradient(180deg, #E5A28F 0%, #D68470 100%); }
.rhythm-bar:nth-child(4) { background: linear-gradient(180deg, #DD8675 0%, #CE6D5C 100%); }
.rhythm-bar:nth-child(5) { background: linear-gradient(180deg, #D56D5E 0%, #BC5244 100%); }

/* 3 枚正圆 3D 釉面玉瓷色珠 + 柔雾灰蓝胶囊 */
.swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}

.bead-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ceramic-bead {
  position: relative;
  appearance: none;
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background-color: var(--bead-col, #578D7A);
  background-image:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.18) 32%, transparent 58%),
    radial-gradient(circle at 68% 76%, rgba(28, 22, 16, 0.24) 0%, transparent 55%);
  box-shadow:
    0 4px 10px rgba(42, 34, 24, 0.16),
    0 1px 2px rgba(42, 34, 24, 0.1),
    0 0 0 0.75px rgba(164, 152, 136, 0.28),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.52);
  transition: transform 160ms var(--ease-calm), box-shadow 160ms ease;
}

.ceramic-bead:active {
  transform: scale(0.92);
}

.ceramic-bead.is-active {
  transform: scale(1.1);
  box-shadow:
    0 0 0 2px #FAF8F4,
    0 0 0 3.5px rgba(87, 141, 122, 0.58),
    0 5px 12px rgba(42, 34, 24, 0.18),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.58);
}

.mist-pill {
  appearance: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--mist);
  color: #FDFCFA;
  font-size: 11.2px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 3px 8px rgba(34, 28, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 140ms var(--ease-calm);
}

.mist-pill:active {
  transform: scale(0.95);
}

/* 蔡格尼克拐点倒计时 + 1 秒情绪天象戳微条 */
.habit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  box-shadow: var(--shadow-porcelain-sm);
  margin-bottom: 7px;
}

.countdown-chip {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  text-align: left;
}

.countdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

.mood-stamps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.mood-stamp-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: #FAF8F4;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 150ms var(--ease-calm);
}

.mood-stamp-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.mood-stamp-btn[aria-pressed="true"] {
  background: var(--bg-sage-soft);
  border-color: rgba(87, 141, 122, 0.42);
  color: var(--sage-deep);
}

/* 主页底部 1px 浅凹槽快问条 */
.quick-ask-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 6px;
  box-shadow: var(--shadow-porcelain-sm);
}

.recess-slot {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-recess);
  border: 1px solid var(--border-recess);
  box-shadow: var(--shadow-recess);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}

.recess-slot input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 12.2px;
  color: var(--ink-primary);
  outline: none;
}

.recess-slot input::placeholder {
  color: var(--ink-muted);
}

.circle-send-btn {
  appearance: none;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #629986, #528674);
  color: #FDFCFA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 2px 8px rgba(82, 134, 116, 0.24);
  transition: transform 140ms var(--ease-calm);
}

.circle-send-btn.is-coral {
  background: linear-gradient(180deg, #D97767, #C35D4F);
  box-shadow: 0 2px 8px rgba(195, 93, 79, 0.24);
}

.circle-send-btn:hover {
  transform: scale(1.05);
}

/* =========================================================================
 * 6. 导演分镜剧场模式 (保留 33s 真人配音 + 4 幕镜头推拉)
 * ========================================================================= */
.director-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.back-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.story-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.story-bar {
  appearance: none;
  border: 0;
  height: 3.5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(134, 128, 119, 0.24);
  overflow: hidden;
  cursor: pointer;
}

.story-bar-fill {
  display: block;
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width 120ms linear;
}

.stage-nav-zone {
  position: absolute;
  top: 0;
  bottom: 42px;
  width: 36%;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 4;
}

.stage-nav-zone.prev { left: 0; }
.stage-nav-zone.next { right: 0; }

.stage-float-bar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 6;
}

.stage-mini-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(253, 252, 250, 0.92);
  color: var(--ink-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* 无声播放 · 实时文字逐字跟随 (Karaoke Subtitle Follower) */
.karaoke-box {
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 13px;
  background: #FAF8F4;
  border: 1px solid rgba(180, 168, 152, 0.22);
}

.karaoke-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.6px;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 5px;
}

.karaoke-line {
  margin: 0;
  font-size: 13.6px;
  line-height: 1.62;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.karaoke-ch {
  color: rgba(93, 90, 84, 0.34);
  transition: color 120ms ease;
}

.karaoke-ch.is-lit {
  color: var(--ink-primary);
}

.karaoke-ch.is-head {
  color: var(--coral);
}

.director-done-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--bg-sage-soft);
  color: var(--sage-deep);
  font-size: 11.6px;
  font-weight: 600;
}

/* 问盘顶部清晰返回胶囊 + 底部引导问题横栏 */
.back-pill-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: 11.8px;
  font-weight: 600;
  padding: 5px 10px 5px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
}

.clear-input-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  padding: 0 2px;
  cursor: pointer;
  flex: none;
  line-height: 1;
}

.chat-guided-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 14px 2px 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}

.chat-guided-bar::-webkit-scrollbar {
  display: none;
}

.guided-mini-pill {
  flex: none;
  appearance: none;
  border: 1px solid rgba(201, 96, 84, 0.24);
  background: #FAF5F2;
  color: var(--ink-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* =========================================================================
 * 7. 玉石磨砂封笺 · 免费启封商业组件 (Jade-Porcelain Sealed Veil)
 * ========================================================================= */
.jade-veil-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  margin-top: 8px;
}

.jade-veil-content {
  padding: 13px 14px;
  transition: filter 420ms var(--ease-calm), opacity 420ms var(--ease-calm);
}

.jade-veil-box.is-locked .jade-veil-content {
  filter: blur(5.5px);
  opacity: 0.68;
  user-select: none;
  pointer-events: none;
  max-height: 188px;
  overflow: hidden;
}

.jade-veil-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(253, 252, 250, 0.42) 0%,
    rgba(246, 242, 235, 0.76) 48%,
    rgba(246, 242, 235, 0.88) 100%
  );
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  gap: 7px;
  z-index: 4;
  transition: opacity 320ms var(--ease-calm), visibility 320ms ease;
}

.jade-veil-box:not(.is-locked) .jade-veil-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.veil-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-blush-soft);
  border: 1px solid rgba(201, 96, 84, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
}

.veil-price-strike {
  text-decoration: line-through;
  color: var(--ink-muted);
  font-weight: 500;
}

.veil-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.veil-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
  max-width: 28ch;
  line-height: 1.45;
}

.veil-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.wax-seal-btn {
  appearance: none;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(155deg, #D97767 0%, #C35D4F 100%);
  color: #FDFCFA;
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px rgba(195, 93, 79, 0.24);
  transition: transform 150ms var(--ease-calm);
}

.wax-seal-btn:hover {
  transform: translateY(-1px);
}

.veil-share-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.unlocked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-sage-soft);
  color: var(--sage-deep);
  font-size: 10.8px;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 9px;
}

/* =========================================================================
 * 8. Tab 2 星盘页: 2027 双轴潮汐、180天择日、M4 考据与情绪账本
 * ========================================================================= */
.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 9px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.chip-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 22px 4px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.pill-chip {
  flex: none;
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
  transition: all 150ms var(--ease-calm);
}

.pill-chip[aria-pressed="true"],
.pill-chip.is-active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FDFCFA;
}

.pill-chip.is-sage[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #FDFCFA;
}

/* 2027 双轴潮汐图表 */
.tide-chart-box {
  background: #FAF8F4;
  border: 1px solid rgba(180, 168, 152, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 8px 6px;
  margin-bottom: 9px;
}

.tide-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  padding: 0 4px;
}

.legend-dots {
  display: inline-flex;
  gap: 10px;
}

.legend-dots span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.month-pills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.month-btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 9px;
  cursor: pointer;
}

.month-btn.is-milestone {
  color: var(--coral);
}

.month-btn[aria-pressed="true"] {
  background: var(--sage);
  color: #FDFCFA;
  border-color: var(--sage);
}

.light-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.8px;
}

.light-table th {
  text-align: left;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 6px 6px 6px 0;
  border-bottom: 1px solid var(--border-porcelain);
  white-space: nowrap;
}

.light-table td {
  padding: 7px 6px 7px 0;
  border-bottom: 1px solid rgba(180, 168, 152, 0.16);
  color: var(--ink-primary);
  vertical-align: top;
}

.light-table tr:last-child td {
  border-bottom: 0;
}

.grade-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-sage-soft);
  color: var(--sage-deep);
  white-space: nowrap;
}

.grade-tag.is-warn {
  background: var(--bg-blush-soft);
  color: var(--coral);
}

/* =========================================================================
 * 9. Tab 3 合盘页: 多角色坞、4 维雷达、马盘左右温差卡、半块星图邀约
 * ========================================================================= */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.radar-tile {
  background: #FAF8F4;
  border: 1px solid rgba(180, 168, 152, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
}

.radar-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.radar-tile-head strong {
  font-size: 14px;
  color: var(--ink-primary);
}

.thin-meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(134, 128, 119, 0.18);
  overflow: hidden;
}

.thin-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sage);
}

.thin-meter-fill.is-coral { background: var(--coral); }
.thin-meter-fill.is-amber { background: var(--amber); }

/* 你在想什么 vs 他在怕什么 双向温差对比卡 */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.contrast-col {
  background: #FAF8F4;
  border: 1px solid rgba(180, 168, 152, 0.22);
  border-radius: 13px;
  padding: 10px;
}

.contrast-col.is-him {
  background: #F9F2EE;
  border-color: rgba(201, 96, 84, 0.22);
}

.contrast-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--sage-deep);
  background: var(--bg-sage-soft);
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.contrast-col.is-him .contrast-badge {
  color: var(--coral);
  background: var(--bg-blush-soft);
}

.contrast-col h4 {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.contrast-col p {
  margin: 0 0 4px;
  font-size: 11.4px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.contrast-col p:last-child {
  margin-bottom: 0;
}

.viral-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

/* =========================================================================
 * 10. Tab 4 问盘页 (1:1 复刻 depth-D1-refined-chat.png)
 * ========================================================================= */
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
  flex: none;
}

.chat-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.context-switch-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: 11.8px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
}

.chat-context-strip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  box-shadow: var(--shadow-porcelain-sm);
  margin-bottom: 7px;
  font-size: 11.6px;
  font-weight: 500;
  color: var(--ink-primary);
}

.tone-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.tone-seg {
  display: inline-flex;
  background: rgba(232, 226, 216, 0.72);
  padding: 2.5px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.tone-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.tone-btn[aria-pressed="true"] {
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  box-shadow: 0 1px 4px rgba(34, 28, 20, 0.08);
}

.memory-badge-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--sage-deep);
  font-size: 10.8px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.chat-stream {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 2px 2px 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.msg-user-row {
  display: flex;
  justify-content: flex-end;
}

.msg-user-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 5px 18px;
  background: linear-gradient(180deg, #629986 0%, #528674 100%);
  color: #FCFBFA;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 3px 10px rgba(82, 134, 116, 0.18);
}

.msg-ai-row {
  position: relative;
  display: block;
  padding-left: 12px;
  padding-top: 6px;
}

.ai-avatar-seal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  box-shadow: var(--shadow-porcelain-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F8EFEA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.msg-ai-card {
  flex: 1;
  min-width: 0;
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-porcelain);
}

/* 嵌入式哑光深炭马盘/星历精密证据卡 */
.dark-evidence-card {
  background: var(--charcoal);
  border: 1px solid rgba(227, 220, 208, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  margin-bottom: 10px;
  color: #F4EFE7;
}

.dark-ev-head {
  font-size: 11.4px;
  font-weight: 600;
  color: rgba(244, 239, 231, 0.9);
  margin-bottom: 8px;
}

.dark-ev-grid {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dark-ev-dial {
  width: 52px;
  height: 52px;
  flex: none;
}

.dark-ev-right {
  flex: 1;
  min-width: 0;
}

.dark-ev-aspect {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(227, 220, 208, 0.14);
}

.aspect-sq {
  color: #E08274;
  font-weight: 700;
}

.dark-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-meter-label {
  font-size: 11px;
  font-weight: 600;
  color: #E39284;
  white-space: nowrap;
}

.graduated-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.graduated-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E29788 0%, #CA6154 100%);
  position: relative;
}

.graduated-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 11px,
    rgba(29, 31, 34, 0.36) 11px,
    rgba(29, 31, 34, 0.36) 12px
  );
  pointer-events: none;
}

.ai-reply-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.ai-reply-headline {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.share-voice-mini {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: #FAF8F4;
  color: var(--ink-secondary);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.ai-reply-body {
  margin: 0 0 9px;
  font-size: 12.8px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* 三态准度共创校准栏 */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(180, 168, 152, 0.16);
}

.fb-pill {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: #FAF8F4;
  color: var(--ink-muted);
  font-size: 10.6px;
  font-weight: 600;
  padding: 3.5px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.fb-pill.is-picked {
  background: var(--bg-sage-soft);
  border-color: rgba(87, 141, 122, 0.4);
  color: var(--sage-deep);
}

.followup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.followup-chip {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-porcelain-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.followup-chip .spark {
  color: var(--coral);
  font-size: 11px;
}

.chat-composer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
}

.mic-circle-btn {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
  flex: none;
}

.typing-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-muted);
}

.typing-pulse i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: dotPulse 1s infinite ease-in-out;
}

.typing-pulse i:nth-child(2) { animation-delay: 0.2s; }
.typing-pulse i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.28; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* =========================================================================
 * 11. 90 秒破冰前验蒙层 (Onboarding Cold-Read Flow)
 * ========================================================================= */
.onboarding-overlay {
  position: absolute;
  inset: 50px 0 0 0;
  z-index: 25;
  background: var(--bg-canvas);
  padding: 10px 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.onboarding-overlay[hidden] {
  display: none;
}

.ob-option-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  border-radius: var(--radius-lg);
  padding: 13px 14px;
  margin-bottom: 9px;
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
  transition: border-color 150ms ease, transform 150ms var(--ease-calm);
}

.ob-option-btn:hover {
  border-color: rgba(201, 96, 84, 0.45);
  transform: translateY(-1px);
}

.ob-option-btn strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.ob-option-btn span {
  font-size: 12px;
  color: var(--ink-muted);
}

.ob-calibrating-card {
  text-align: center;
  padding: 24px 16px;
}

.ob-step-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-step-list li {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ob-step-list li.is-done {
  color: var(--sage-deep);
  font-weight: 600;
}

/* =========================================================================
 * 12. 原生 iOS Bottom Sheet (<dialog> + MWG animate-to-from-top-layer) & 动态通知胶囊
 * ========================================================================= */
.porcelain-dialog.ios-bottom-sheet {
  width: min(426px, 100vw);
  max-width: 100vw;
  max-height: 86dvh;
  margin: auto auto 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #FEFEFD 0%, #F8F4EC 100%);
  color: var(--ink-primary);
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(29, 30, 28, 0.22);
  overflow-y: auto;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 320ms;
  transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .porcelain-dialog.ios-bottom-sheet {
    transform: translateY(34px);
  }
}

.porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  .porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing])) {
    transform: translateY(0);
  }
  @starting-style {
    .porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing])) {
      transform: translateY(34px);
    }
  }
}

.porcelain-dialog.ios-bottom-sheet::backdrop {
  background-color: rgba(25, 24, 21, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 280ms;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

.porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(25, 24, 21, 0.44);
  backdrop-filter: blur(4px);
}

@starting-style {
  .porcelain-dialog.ios-bottom-sheet[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(25, 24, 21, 0);
    backdrop-filter: blur(0px);
  }
}

.sheet-grabber {
  width: 38px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(134, 128, 119, 0.34);
  margin: 2px auto 12px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dialog-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.dialog-close-btn {
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-recess);
  color: var(--ink-secondary);
  font-size: 13px;
  cursor: pointer;
}

/* 零羞耻分享小票 / 闺蜜礼卡视觉体 */
.receipt-card {
  background: linear-gradient(165deg, #FCFBF8 0%, #F4EFE6 100%);
  border: 1px solid rgba(180, 168, 152, 0.34);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 11px;
  position: relative;
}

.receipt-card.is-dark-ticket {
  background: linear-gradient(155deg, #212428 0%, #17191C 100%);
  border-color: rgba(227, 220, 208, 0.26);
  color: #F4EFE7;
}

.receipt-kicker {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.receipt-card.is-dark-ticket .receipt-kicker {
  color: #CFC6B7;
}

.copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-button {
  appearance: none;
  min-inline-size: 24px;
  min-block-size: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--sage);
  color: #FDFCFA;
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.copy-tip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sage-deep);
  opacity: 0;
  transition: opacity 180ms ease;
}

.copy-button[data-copied] + .copy-tip,
.copy-button[data-failed] + .copy-tip {
  opacity: 1;
}

.copy-button[data-failed] + .copy-tip {
  color: var(--coral);
}

/* 原生 iOS 顶部灵动磨砂瓷胶囊通知（Top Layer popover="manual"，永不被 Sheet 遮挡） */
.ios-banner-toast {
  position: fixed;
  inset: auto;
  margin: 0;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  transform: translate(-50%, -18px) scale(0.96);
  background: rgba(253, 252, 250, 0.96);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(370px, 88vw);
  box-shadow:
    0 14px 36px rgba(29, 30, 28, 0.18),
    0 2px 8px rgba(29, 30, 28, 0.08),
    0 0 0 0.5px rgba(180, 168, 152, 0.24);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.ios-banner-toast:not(.is-show):not(:popover-open) {
  display: none;
}

.ios-banner-toast.is-show {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, 0) scale(1);
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
  box-shadow: 0 0 0 3px rgba(87, 141, 122, 0.18);
}

.banner-dot.is-coral {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(201, 96, 84, 0.18);
}

.banner-dot.is-amber {
  background: #D6984C;
  box-shadow: 0 0 0 3px rgba(214, 152, 76, 0.2);
}

.banner-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 原生 iOS Switch 样式 (MWG switch + 兼容样式回退) */
.ios-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(246, 242, 235, 0.78);
  border: 1px solid rgba(180, 168, 152, 0.22);
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
}

input[type="checkbox"][switch].ios-switch {
  accent-color: var(--sage);
  margin: 0;
  cursor: pointer;
  flex: none;
  width: 42px;
  height: 24px;
}

input[type="checkbox"][switch].ios-switch:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
}

.is-switch-fallback input[type="checkbox"][switch].ios-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  border-radius: 999px;
  background: rgba(180, 168, 152, 0.42);
  transition: background 200ms var(--ease-calm);
}

.is-switch-fallback input[type="checkbox"][switch].ios-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.18);
  transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.is-switch-fallback input[type="checkbox"][switch].ios-switch:checked {
  background: var(--sage);
}

.is-switch-fallback input[type="checkbox"][switch].ios-switch:checked::after {
  transform: translateX(18px);
}

/* iOS 原生按压微触感 */
.sage-pill-btn:active,
.porcelain-pill-btn:active,
.wax-seal-btn:active,
.pill-chip:active,
.month-btn:active,
.mood-stamp-btn:active,
.zz-seal-btn:active {
  transform: scale(0.96);
}

/* 桌面端右侧体验说明栏 */
.desktop-inspector {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding-right: 4px;
}

.inspector-badge-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.inspector-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(253, 252, 250, 0.85);
  border: 1px solid var(--border-porcelain);
  color: var(--ink-secondary);
}

.inspector-pill.is-accent {
  background: var(--bg-blush-soft);
  border-color: rgba(201, 96, 84, 0.25);
  color: var(--coral);
}

.inspector-h1 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.inspector-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.inspector-card {
  padding: 12px 14px;
  margin-bottom: 9px;
}

.unlock-meter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.unlock-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg-recess);
  color: var(--ink-muted);
}

.unlock-badge.is-open {
  background: var(--bg-sage-soft);
  color: var(--sage-deep);
}

.quick-jump-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.jump-link-btn {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: 12.2px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-porcelain-sm);
  transition: transform 140ms var(--ease-calm), border-color 140ms ease;
}

.jump-link-btn:hover {
  transform: translateX(2px);
  border-color: rgba(87, 141, 122, 0.45);
}

.inspector-footer-actions {
  margin-top: 10px;
}

.ghost-mini-btn {
  appearance: none;
  border: 1px dashed rgba(134, 128, 119, 0.42);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 11.8px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.ghost-mini-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
}

/* 原生 range 滑块 (用于情绪自测 / 音频) — 严格遵循 MWG slider 分离伪类 */
input[type="range"].porcelain-range {
  --slider-track-size: 6px;
  --slider-thumb-size: 18px;
  --slider-track-color: #E3DDD2;
  --slider-fill-color: var(--sage);
  --slider-thumb-color: #FDFCFA;
  --attr-min: attr(min type(<number>), 0);
  --attr-max: attr(max type(<number>), 100);
  --control-value: attr(value type(<number>), 50);
  --slider-progress: calc(progress(var(--control-value), var(--attr-min), var(--attr-max)) * 100%);
  appearance: none;
  inline-size: 100%;
  block-size: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

@supports not (opacity: progress(1, 0, 100)) {
  input[type="range"].porcelain-range {
    --slider-progress: calc((var(--control-value) - var(--attr-min)) / (var(--attr-max) - var(--attr-min)) * 100%);
  }
}

input[type="range"].porcelain-range::-webkit-slider-runnable-track {
  block-size: var(--slider-track-size);
  border-radius: 999px;
  background: linear-gradient(to right, var(--slider-fill-color) var(--slider-progress), var(--slider-track-color) var(--slider-progress));
}

input[type="range"].porcelain-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  margin-block-start: calc((var(--slider-track-size) - var(--slider-thumb-size)) / 2);
  border-radius: 50%;
  background: var(--slider-thumb-color);
  border: 2px solid var(--sage);
  box-shadow: 0 2px 6px rgba(29, 30, 28, 0.16);
}

input[type="range"].porcelain-range::-moz-range-track {
  block-size: var(--slider-track-size);
  border-radius: 999px;
  background: var(--slider-track-color);
}

input[type="range"].porcelain-range::-moz-range-progress {
  block-size: var(--slider-track-size);
  border-radius: 999px;
  background: var(--slider-fill-color);
}

input[type="range"].porcelain-range::-moz-range-thumb {
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  border-radius: 50%;
  background: var(--slider-thumb-color);
  border: 2px solid var(--sage);
}

input[type="range"].porcelain-range:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

/* =========================================================================
 * 12. 真实用户建档表单、城市联想搜索、多档案切换与 SSE 流式光标
 * ========================================================================= */
.onboarding-overlay {
  inset: 0 !important;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
}

.ob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ob-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  font-size: 11.2px;
  font-weight: 600;
  color: var(--sage-deep);
  box-shadow: var(--shadow-porcelain-sm);
}

.ob-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.ob-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.cold-read-card {
  background: var(--bg-porcelain);
  border: 1px solid var(--border-porcelain);
  border-radius: var(--radius-xl);
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-porcelain);
}

.cold-tag {
  display: inline-block;
  font-size: 10.6px;
  font-weight: 600;
  color: var(--coral);
  background: var(--bg-blush-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.cold-read-card h4 {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink-primary);
}

.cold-read-card p {
  margin: 0 0 8px;
  font-size: 12.4px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.cold-ev {
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-deep);
  padding-top: 7px;
  border-top: 1px dashed rgba(180, 168, 152, 0.28);
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.showcase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(201, 96, 84, 0.08), rgba(87, 141, 122, 0.08));
  border: 1px solid rgba(180, 168, 152, 0.26);
  margin-bottom: 8px;
  font-size: 11.4px;
  color: var(--ink-secondary);
}

.showcase-banner button {
  appearance: none;
  border: none;
  background: var(--sage);
  color: #FDFCFA;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.birth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.field-label {
  font-size: 11.8px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-hint {
  display: block;
  font-size: 10.8px;
  color: var(--ink-muted);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.birth-input,
.birth-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(180, 168, 152, 0.34);
  background: var(--bg-recess);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-recess);
  transition: border-color 150ms ease, background 150ms ease;
}

.birth-input:focus,
.birth-select:focus {
  border-color: var(--sage);
  background: #FDFCFA;
}

.birth-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* MWG validate-input-after-interaction (:user-invalid + fallback via :is()) */
.birth-input:is(:user-invalid, .user-invalid-fallback) {
  border-color: #C96054;
  background: #FDF2F0;
}

.error-msg {
  display: none;
  color: #B4483D;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.birth-input:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.gender-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gender-pill {
  appearance: none;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gender-pill[aria-pressed="true"] {
  background: var(--bg-sage-soft);
  border-color: rgba(87, 141, 122, 0.45);
  color: var(--sage-deep);
}

.time-unknown-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.8px;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.time-unknown-row input[type="checkbox"] {
  accent-color: var(--sage);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.city-picker-wrap {
  position: relative;
}

.city-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 170px;
  overflow-y: auto;
  background: #FDFCFA;
  border: 1px solid rgba(180, 168, 152, 0.36);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(29, 30, 28, 0.14);
  z-index: 60;
  padding: 4px;
  display: none;
}

.city-suggest-list.is-open {
  display: block;
}

.city-opt-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.2px;
  color: var(--ink-primary);
}

.city-opt-btn:hover {
  background: var(--bg-sage-soft);
  color: var(--sage-deep);
}

.city-opt-btn span:last-child {
  font-size: 10.6px;
  color: var(--ink-muted);
}

.city-quick-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.city-quick-chip {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 10.8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.city-quick-chip:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.profile-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.profile-chip {
  appearance: none;
  border: 1px solid var(--border-porcelain);
  background: var(--bg-porcelain);
  color: var(--ink-secondary);
  font-size: 11.8px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.profile-chip.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #FDFCFA;
}

.stream-caret {
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--sage);
  animation: caretBlink 0.85s ease-in-out infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.quota-pill {
  font-size: 10.4px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-recess);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.stat-box {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-recess);
}

.stat-box span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.stat-box strong {
  font-size: 16px;
  color: var(--ink-primary);
}

.empty-partner-card {
  text-align: center;
  padding: 18px 14px;
}

.empty-partner-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.empty-partner-card p {
  margin: 0 0 12px;
  font-size: 12.2px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.noon-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.8px;
  font-weight: 600;
  color: #9A6425;
  background: rgba(214, 152, 76, 0.14);
  border: 1px solid rgba(214, 152, 76, 0.3);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

/* 移动端真机满屏自适应（<= 540px 彻底全屏独立 Web App） */
@media (max-width: 768px) {
  .desk-util-bar {
    display: none;
  }
}

@media (max-width: 540px) {
  html, body {
    background: var(--bg-canvas);
  }
  .app-shell {
    padding: 0;
    height: 100dvh;
  }
  .app-frame {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .ios-sticky-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }
  .app-viewport {
    padding-top: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .app-viewport.is-chat-mode {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .porcelain-dialog.ios-bottom-sheet,
  .porcelain-dialog.ios-bottom-sheet::backdrop {
    transition-duration: 0.1s;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
