/* 「我的麦子 v9 · 全画幅沉浸式 3D 浮空麦岛主场 + 毛玻璃轻浮窗 HUD 系统」
   首页核心 100% 聚焦我们的 3D 浮岛；主题/天气/委托/双人合种全部收纳为精致毛玻璃悬浮小按钮与轻浮窗 */

:root,
html[data-theme="meadow"] {
  --bg-page: #F1F6F3;
  --bg-card: #FFFFFF;
  --bg-soft: #E6EFE9;
  --bg-input: #EDF3EF;
  --bg-nav: rgba(255, 255, 255, 0.84);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.75);
  --sky-stage-bg: radial-gradient(circle at 50% 36%, #FAFFFC 0%, #DFF4E8 52%, #C6E8D5 100%);
  --diorama-grad: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #EAF7EF 58%, #DAF0E2 100%);

  --ink-1: #18241E;
  --ink-2: #4B5E54;
  --ink-3: #7E9287;

  --border: rgba(32, 92, 60, 0.10);
  --border-strong: rgba(32, 92, 60, 0.20);

  --accent: #1E9E6A;
  --accent-top: #2BB67E;
  --accent-lip: #13754D;
  --accent-soft: #DCFCE7;
  --accent-ink: #116944;

  --aqua: #0EA5E9;
  --aqua-top: #38BDF8;
  --aqua-lip: #0284C7;
  --aqua-soft: #E0F2FE;
  --aqua-ink: #0369A1;

  --gold: #F59E0B;
  --gold-top: #FBBF24;
  --gold-lip: #D97706;
  --gold-soft: #FEF3C7;
  --gold-ink: #B45309;

  --coral: #EF4444;
  --coral-soft: #FEE2E2;

  --shadow-bento: 0 8px 24px -8px rgba(20, 60, 40, 0.08), 0 2px 6px rgba(20, 60, 40, 0.03);
  --shadow-float: 0 14px 36px -8px rgba(16, 48, 32, 0.16);
}

html[data-theme="sky"] {
  --bg-page: #F0F5FA;
  --bg-card: #FFFFFF;
  --bg-soft: #E4EDF7;
  --bg-input: #ECF2F9;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.80);
  --glass-strong: rgba(255, 255, 255, 0.93);
  --sky-stage-bg: radial-gradient(circle at 50% 36%, #F8FCFF 0%, #D9ECFF 54%, #BDDDFA 100%);
  --diorama-grad: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #E8F2FE 58%, #D4E7FC 100%);

  --ink-1: #16202E;
  --ink-2: #4C5D73;
  --ink-3: #8092A8;

  --border: rgba(30, 80, 150, 0.10);
  --border-strong: rgba(30, 80, 150, 0.20);

  --accent: #2574EB;
  --accent-top: #458FF7;
  --accent-lip: #1B56B5;
  --accent-soft: #DBEAFE;
  --accent-ink: #1D4ED8;
}

html[data-theme="blossom"] {
  --bg-page: #F9F3F5;
  --bg-card: #FFFFFF;
  --bg-soft: #F2E6EA;
  --bg-input: #F6EDF0;
  --bg-nav: rgba(255, 255, 255, 0.86);
  --glass-bg: rgba(255, 255, 255, 0.80);
  --glass-strong: rgba(255, 255, 255, 0.93);
  --sky-stage-bg: radial-gradient(circle at 50% 36%, #FFFBFD 0%, #FCE6F0 54%, #F5D0E0 100%);
  --diorama-grad: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #FDEEF4 58%, #F7DEE8 100%);

  --ink-1: #291B21;
  --ink-2: #69505A;
  --ink-3: #9C828C;

  --border: rgba(160, 60, 95, 0.10);
  --border-strong: rgba(160, 60, 95, 0.20);

  --accent: #DE5479;
  --accent-top: #EC6D90;
  --accent-lip: #B5385A;
  --accent-soft: #FCE7F3;
  --accent-ink: #BE185D;
}

html[data-theme="oat"] {
  --bg-page: #F5F5F3;
  --bg-card: #FFFFFF;
  --bg-soft: #EAEAE6;
  --bg-input: #F0F0EC;
  --bg-nav: rgba(255, 255, 255, 0.86);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --sky-stage-bg: radial-gradient(circle at 50% 36%, #FFFFFF 0%, #EFEFE9 56%, #E1E0D7 100%);
  --diorama-grad: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F4F4F0 60%, #E7E6DF 100%);

  --ink-1: #1F2220;
  --ink-2: #575C58;
  --ink-3: #8B918C;

  --border: rgba(60, 65, 60, 0.10);
  --border-strong: rgba(60, 65, 60, 0.20);

  --accent: #497A5C;
  --accent-top: #5B9170;
  --accent-lip: #355C44;
  --accent-soft: #E3EFE7;
  --accent-ink: #2E573E;
}

html[data-theme="night"],
html[data-theme="dark"] {
  --bg-page: #0F1520;
  --bg-card: #182030;
  --bg-soft: #222C40;
  --bg-input: #20293C;
  --bg-nav: rgba(19, 27, 42, 0.86);
  --glass-bg: rgba(20, 29, 46, 0.76);
  --glass-strong: rgba(22, 32, 50, 0.94);
  --glass-border: rgba(255, 255, 255, 0.12);
  --sky-stage-bg: radial-gradient(circle at 62% 24%, #28426B 0%, #142038 56%, #0B1220 100%);
  --diorama-grad: radial-gradient(circle at 50% 42%, #253859 0%, #182339 60%, #121A2B 100%);

  --ink-1: #F1F5F9;
  --ink-2: #A4B5CC;
  --ink-3: #6E7F99;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #10B981;
  --accent-top: #34D399;
  --accent-lip: #047857;
  --accent-soft: rgba(16, 185, 129, 0.20);
  --accent-ink: #6EE7B7;

  --aqua-soft: rgba(56, 189, 248, 0.18);
  --aqua-ink: #7DD3FC;

  --gold-soft: rgba(245, 158, 11, 0.20);
  --gold-ink: #FCD34D;

  --shadow-bento: 0 10px 28px -8px rgba(0, 0, 0, 0.48);
  --shadow-float: 0 20px 48px -8px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  transition: background-color 0.25s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

/* 在「小岛」与「合种」全画幅 3D 主场锁定全屏视口无滚动条，让 360° 拖拽旋转丝滑纯净 */
html[data-active-tab="field"],
html[data-active-tab="field"] body,
html[data-active-tab="duo"],
html[data-active-tab="duo"] body {
  overflow: hidden;
  height: 100dvh;
}

.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100dvh;
}

/* 首页与合种专页隐藏子页面顶栏，100% 画面交给 3D 浮空麦岛！ */
html[data-active-tab="field"] .subpage-only-header,
html[data-active-tab="duo"] .subpage-only-header {
  display: none !important;
}

.subpage-pad {
  padding: 4px 14px 96px;
}

/* ==================== Subpage Top Header ==================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 6px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.brand-cluster > div { min-width: 0; }

.brand-badge {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-top), var(--accent));
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.brand-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.seed-pill,
.kettle-pill {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.seed-pill {
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.kettle-pill {
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: var(--aqua-soft);
  color: var(--aqua-ink);
}

.page-view { display: none; }
.page-view.active { display: block; animation: fadePop 0.2s ease-out; }
@keyframes fadePop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== V9 全画幅沉浸式 3D 天空剧场与悬浮小按钮 HUD ==================== */
.immersive-island-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  background: var(--sky-stage-bg);
  transition: background 0.5s ease;
  z-index: 1;
}

html:not([data-theme="night"]):not([data-theme="dark"]) .immersive-island-stage[data-weather="rain"] {
  background: radial-gradient(circle at 50% 34%, #E6EFF7 0%, #C4D6E7 56%, #AECCCA 100%);
}
html:not([data-theme="night"]):not([data-theme="dark"]) .immersive-island-stage[data-weather="rainbow"] {
  background: radial-gradient(circle at 50% 32%, #F6FCFF 0%, #D3ECFF 52%, #C9F0DD 100%);
}
html:not([data-theme="night"]):not([data-theme="dark"]) .immersive-island-stage[data-weather="breeze"] {
  background: radial-gradient(circle at 50% 34%, #FFF9FC 0%, #FCE5F0 52%, #DCF2E4 100%);
}
html:not([data-theme="night"]):not([data-theme="dark"]) .immersive-island-stage[data-weather="snow"] {
  background: radial-gradient(circle at 50% 34%, #F7FAFF 0%, #DCE8F7 55%, #C9DFEE 100%);
}

.island-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.island-3d-canvas:active {
  cursor: grabbing;
}

/* 顶部悬浮毛玻璃胶囊栏 */
.hud-top-bar {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}
.hud-top-bar > * {
  pointer-events: auto;
}

.hud-glass-pill {
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-1);
  font-size: 12px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  min-width: 0;
  flex-shrink: 1;
}
.hud-island-weather-btn span#hudIslandWeatherText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-caret {
  color: var(--ink-3);
  display: inline-flex;
}
.hud-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  flex-shrink: 0;
}

.hud-top-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hud-res-chip {
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  white-space: nowrap;
}
.hud-res-chip.seed { color: var(--accent-ink); }
.hud-res-chip.water { color: var(--aqua-ink); }
.hud-res-chip.coin { color: var(--gold-ink); }

/* ¥9.9 主题皮肤 3D 实时试穿顶部轻提示条 */
.skin-tryon-banner {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 432px;
  padding: 6px 8px 6px 13px;
  border-radius: 999px;
  background: rgba(24, 32, 48, 0.88);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 720;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 26;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.stb-actions { display: flex; gap: 5px; flex-shrink: 0; }
.stb-buy-btn {
  border: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FBBF24, #F59E0B);
  color: #1E293B;
  font-size: 11.5px;
  font-weight: 820;
  cursor: pointer;
}
.stb-exit-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: transparent;
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

/* 委托浮窗内：每日 24:00 刷新倒计时条与紧凑任务项 */
.quest-pop-header {
  margin-bottom: 8px;
}
.qph-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.qph-title-row strong { font-size: 14px; font-weight: 820; }
.qph-all-link {
  border: none;
  background: transparent;
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 760;
  cursor: pointer;
  padding: 0;
}
.quest-refresh-banner,
.qhero-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--aqua-soft);
  color: var(--aqua-ink);
  font-size: 11px;
  font-weight: 720;
}
.quest-refresh-banner {
  display: flex;
  width: 100%;
}
.qhero-refresh-pill {
  margin-bottom: 4px;
}
.quest-pop-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.qpop-mini-item {
  padding: 9px 10px;
  border-radius: 13px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qpop-mini-item .qmi-tag {
  font-size: 10px;
  font-weight: 760;
  color: var(--accent-ink);
}
.qpop-mini-item .qmi-title {
  font-size: 12.5px;
  font-weight: 760;
  margin-top: 1px;
}

/* 首次登岛自定义立牌欢迎卡片（上半屏透出实时 3D 木牌！） */
.welcome-ceremony-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.14) 44%, rgba(15, 23, 42, 0.48) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}
.welcome-ceremony-card {
  width: 100%;
  max-width: 428px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 13px 14px 13px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.wc-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 780;
  margin-bottom: 6px;
}
.wc-title { margin: 0 0 3px; font-size: 19px; font-weight: 850; }
.wc-sub { margin: 0 0 12px; font-size: 12px; color: var(--ink-2); }
.wc-preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; margin-bottom: 6px; }
.wc-chip {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 680;
  cursor: pointer;
}
.wc-pet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wc-pet-btn {
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-1);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}
.wc-pet-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* 装扮与 ¥9.9 主题皮肤工坊样式 */
.free-pledge-banner {
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 720;
  margin-bottom: 10px;
}
.workshop-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 3px;
  border-radius: 13px;
  background: var(--bg-soft);
  margin-bottom: 11px;
}
.wtab-btn {
  height: 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 760;
  cursor: pointer;
}
.wtab-btn.active {
  background: var(--bg-card);
  color: var(--ink-1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.skin-shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skin-card {
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  border-radius: 15px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.skin-card.active-skin {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sk-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sk-swatch {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 4px 10px rgba(0, 0, 0, 0.12);
}
.sk-name-row { display: flex; align-items: center; gap: 6px; }
.sk-name { font-size: 13.5px; font-weight: 800; }
.sk-tag {
  font-size: 10px;
  font-weight: 780;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-2);
}
.sk-tag.paid {
  background: #FEF3C7;
  color: #B45309;
}
.sk-desc { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.sk-actions { display: flex; gap: 5px; flex-shrink: 0; }
.sk-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}
.sk-btn.try {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
}
.sk-btn.buy {
  border: none;
  background: linear-gradient(180deg, #FBBF24, #F59E0B);
  color: #1E293B;
  font-weight: 820;
}
.sk-btn.use {
  border: none;
  background: var(--accent);
  color: #FFFFFF;
}
.sk-btn.equipped {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-ink);
}

.decor-two-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skin-checkout-card { text-align: center; }
.scc-title { margin: 4px 0 6px; font-size: 19px; font-weight: 840; }
.scc-desc { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); }
.scc-price-box {
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-soft);
  margin-bottom: 12px;
}
.scc-yen { font-size: 16px; font-weight: 800; color: var(--ink-1); }
.scc-price-box strong { font-size: 30px; font-weight: 860; color: var(--ink-1); }
.scc-price-box small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.hud-icon-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

/* 雨雪彩虹天专属轻量悬浮甘霖胶囊 */
.hud-bonus-float-pill {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px);
  left: max(12px, calc(50% - 230px));
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(224, 242, 254, 0.90);
  backdrop-filter: blur(12px);
  color: #0369A1;
  font-size: 11.5px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.18);
  cursor: pointer;
  z-index: 19;
  animation: gentleBob 2.6s ease-in-out infinite;
}
html[data-theme="night"] .hud-bonus-float-pill,
html[data-theme="dark"] .hud-bonus-float-pill {
  background: rgba(14, 116, 144, 0.42);
  color: #BAE6FD;
}
@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* 右侧极简悬浮小按钮轨（悬于右上开阔天空留白区，零遮挡 3D 农舍与浮岛边缘！） */
.hud-right-rail {
  position: absolute;
  right: max(12px, calc(50% - 230px));
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 46px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 18;
}

.rail-float-btn {
  position: relative;
  width: 41px;
  height: 43px;
  border-radius: 14px;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.15s ease;
}
.rail-float-btn:active {
  transform: scale(0.93);
}
.rail-float-btn small {
  font-size: 9.5px;
  font-weight: 740;
  line-height: 1.1;
  color: var(--ink-2);
}

.rail-dot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 820;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.rail-dot-badge.coral { background: var(--coral); }
.rail-dot-badge.green { background: var(--accent); }

/* ==================== 按需呼出的毛玻璃轻浮窗 (Popovers) ==================== */
.hud-float-popover {
  position: absolute;
  width: min(312px, calc(100vw - 28px));
  background: var(--glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 12px 13px;
  box-shadow: var(--shadow-float);
  z-index: 35;
  animation: popScaleIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hud-float-popover.pos-top-left {
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px);
  left: max(12px, calc(50% - 230px));
}
.hud-float-popover.pos-top-right {
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px);
  right: max(12px, calc(50% - 230px));
}
.hud-float-popover.pos-right-mid {
  right: max(60px, calc(50% - 172px));
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 110px);
  width: min(282px, calc(100vw - 74px));
}

.fpop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.fpop-head strong {
  font-size: 13px;
  font-weight: 800;
}
.fpop-divider {
  height: 1px;
  background: var(--border);
  margin: 9px 0;
}
.fpop-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dawn-sim-chip,
.fpop-mini-action {
  border: 1px solid rgba(245, 158, 11, 0.30);
  background: var(--gold-soft);
  color: var(--gold-ink);
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.fpop-mini-action {
  border-color: var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-1);
}

.ws-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.ws-chip {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-2);
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}
.ws-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.ws-forecast {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

.fpop-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.pdot-chip {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-2);
  height: 28px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.pdot-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pdot-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.fpop-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fpop-soft-btn {
  height: 31px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 720;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.island-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.itab-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-2);
  height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
  white-space: nowrap;
}
.itab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.daily-seed-mini {
  font-size: 11px;
  font-weight: 740;
  color: var(--accent-ink);
  white-space: nowrap;
}

/* ==================== 底部极简灵动岛胶囊 (替代原笨重双卡片！) ==================== */
.hud-bottom-capsule {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 432px;
  min-height: 54px;
  padding: 7px 8px 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px -6px rgba(16, 44, 30, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
}

.hbc-info {
  min-width: 0;
  flex: 1;
}
.hbc-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hbc-badge {
  font-size: 10.5px;
  font-weight: 820;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex-shrink: 0;
}
.hbc-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbc-sub {
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbc-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hbc-cta-btn {
  height: 38px;
  padding: 0 13px;
  border: none;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease;
}
.hbc-cta-btn:active {
  transform: scale(0.96);
}
.hbc-cta-btn.primary {
  background: linear-gradient(180deg, var(--accent-top), var(--accent));
  box-shadow: 0 3px 0 var(--accent-lip);
}
.hbc-cta-btn.aqua {
  background: linear-gradient(180deg, var(--aqua-top), var(--aqua));
  box-shadow: 0 3px 0 var(--aqua-lip);
}
.hbc-cta-btn.gold {
  background: linear-gradient(180deg, var(--gold-top), var(--gold));
  box-shadow: 0 3px 0 var(--gold-lip);
}

.hbc-sub-btn {
  height: 38px;
  padding: 0 9px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 740;
  cursor: pointer;
  white-space: nowrap;
}

/* ==================== Cards & Modals Shared ==================== */
.habit-action-card,
.soft-bento-card,
.ledger-bento-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 13px;
  box-shadow: var(--shadow-bento);
  margin-bottom: 10px;
}

.juicy-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.juicy-btn.primary { background: linear-gradient(180deg, var(--accent-top), var(--accent)); box-shadow: 0 4px 0 var(--accent-lip); }
.juicy-btn.aqua { background: linear-gradient(180deg, var(--aqua-top), var(--aqua)); box-shadow: 0 4px 0 var(--aqua-lip); }
.juicy-btn.gold { background: linear-gradient(180deg, var(--gold-top), var(--gold)); box-shadow: 0 4px 0 var(--gold-lip); }

.customize-sheet {
  max-height: 86dvh;
  overflow-y: auto;
}
.decor-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.decor-chip-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.decor-opt-btn {
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-1);
  border-radius: 11px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.decor-opt-btn small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 1px;
}
.decor-opt-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Duo Sheet & Quest Coach Inside Popover */
.duo-stage-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duo-3d-img {
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(20, 40, 30, 0.16));
}
.duo-status-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-soft);
  padding: 8px 12px;
  border-radius: 14px;
}
.partner-box { flex: 1; font-size: 12px; }
.partner-box strong { display: block; font-size: 12.5px; }
.partner-box span { font-size: 11px; color: var(--ink-2); }
.partner-divider { font-weight: 800; color: var(--accent); }

.cockpit-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 5px;
}
.cockpit-headline { margin: 0; font-size: 15px; font-weight: 800; }
.cockpit-sub { margin: 3px 0 10px; font-size: 12px; color: var(--ink-2); }

.qn-left { min-width: 0; margin-bottom: 9px; }
.qn-tag-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.qn-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 760;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.qn-tag.todo { background: var(--aqua-soft); color: var(--aqua-ink); }
.qn-reward-inline { font-size: 11px; font-weight: 760; color: var(--aqua-ink); }
.qn-title { font-size: 13.5px; font-weight: 780; }
.qn-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }

.qn-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}
.qn-btn.full { width: 100%; }
.qn-btn.claim { background: var(--accent); color: #FFFFFF; box-shadow: 0 3px 0 var(--accent-lip); }
.qn-btn.go { background: var(--accent-soft); color: var(--accent-ink); }

.sleep-dawn-curtain {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: radial-gradient(circle at 50% 40%, #1E293B 0%, #0B101B 100%);
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  animation: curtainFade 1.15s ease-in-out forwards;
}
@keyframes curtainFade {
  0% { opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}
.sdc-moon-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
  color: #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdc-title { margin: 0 0 6px; font-size: 18px; font-weight: 820; }
.sdc-sub { margin: 0; font-size: 13px; color: #94A3B8; }

/* Quests, Ledger & Stats Subpages */
.quest-hero-banner {
  background: var(--diorama-grad);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.qhero-eyebrow { font-size: 11px; font-weight: 760; color: var(--accent-ink); }
.qhero-title { margin: 2px 0 4px; font-size: 18.5px; font-weight: 820; }
.qhero-desc { margin: 0; font-size: 12px; color: var(--ink-2); }
.qhero-kettle-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 16px;
  text-align: center;
  flex-shrink: 0;
  color: var(--aqua-ink);
}
.qhero-kettle-box span { display: block; font-size: 10.5px; }
.qhero-kettle-box strong { font-size: 19px; font-weight: 850; }

.quests-stack { display: flex; flex-direction: column; gap: 8px; }
.quest-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-bento);
}
.quest-item-card.claimed { opacity: 0.58; }
.qi-tag-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.qi-badge { font-size: 10.5px; font-weight: 750; padding: 1px 6px; border-radius: 5px; background: var(--bg-soft); color: var(--ink-2); }
.qi-reward { font-size: 11px; font-weight: 750; color: var(--accent-ink); }
.qi-title { font-size: 13.5px; font-weight: 760; }
.qi-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.warm-progress-track { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.warm-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-top)); transition: width 0.4s ease; }

.lb-top-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.lb-label-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.mini-eye-btn { border: none; background: transparent; color: var(--ink-3); padding: 2px; cursor: pointer; display: inline-flex; }
.lb-big-num { line-height: 1.08; letter-spacing: -0.03em; margin-top: 2px; }
.lb-big-num .num-int { font-size: 33px; font-weight: 820; }
.lb-big-num .num-dec { font-size: 19px; font-weight: 700; color: var(--ink-2); }
.lb-right-col { text-align: right; }
.lb-right-col span { display: block; font-size: 11.5px; color: var(--ink-3); }
.lb-right-col strong { font-size: 18px; font-weight: 780; }
.lb-sub-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.lb-sub-stats strong { color: var(--ink-1); margin-left: 3px; }

.ledger-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink-3);
  margin-bottom: 11px;
}
.ledger-search-row input { flex: 1; border: none; background: transparent; color: var(--ink-1); font-size: 13px; outline: none; }

.empty-ledger-box { background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 20px; padding: 26px 18px; text-align: center; }
.empty-ledger-box h3 { margin: 0 0 6px; font-size: 15px; }
.empty-ledger-box p { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3); }

.day-section { margin-bottom: 11px; }
.day-head-line { display: flex; justify-content: space-between; padding: 0 4px 5px; font-size: 12px; color: var(--ink-3); }
.day-white-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-bento); }

.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; cursor: pointer; position: relative; }
.bill-row:not(:last-child)::after { content: ""; position: absolute; left: 60px; right: 13px; bottom: 0; height: 1px; background: var(--border); }
.bill-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cat-squircle { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bill-title-line { display: flex; align-items: center; gap: 6px; }
.bill-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto-mem-tag { font-size: 10px; font-weight: 740; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); }
.bill-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.bill-amt { font-size: 15px; font-weight: 780; flex-shrink: 0; }
.bill-amt.inc { color: var(--accent); }

.bento-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bento-title { margin: 0; font-size: 14.5px; font-weight: 780; }
.bento-sub { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
.bento-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.link-pill-btn { border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 750; padding: 5px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }

.friends-list, .mem-tags-list, .granary-list { display: flex; flex-direction: column; gap: 8px; }
.friend-mini-row, .mem-item-line, .granary-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 13px; background: var(--bg-soft); }

.kpi-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 11px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 11px 10px; box-shadow: var(--shadow-bento); }
.kpi-card span { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.kpi-card strong { font-size: 15.5px; font-weight: 800; }
.green-num { color: var(--accent); }

.chart-bars-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; height: 128px; align-items: end; padding-top: 14px; }
.cbar-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.cbar-val { font-size: 10px; color: var(--ink-3); height: 13px; }
.cbar-track { width: 100%; max-width: 22px; flex: 1; background: var(--bg-soft); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.cbar-fill { width: 100%; border-radius: 7px; background: linear-gradient(180deg, var(--accent-top), var(--accent)); }
.cbar-lbl { font-size: 10.5px; color: var(--ink-3); }

.cat-progress-list { display: flex; flex-direction: column; gap: 10px; }
.cprog-row { display: flex; align-items: center; gap: 10px; }
.cprog-body { flex: 1; min-width: 0; }
.cprog-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 680; margin-bottom: 4px; }
.cprog-track { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.cprog-fill { height: 100%; border-radius: 999px; }

/* Bottom Nav */
.bottom-nav-5 {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 432px;
  height: 58px;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border, var(--border-strong));
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: center;
  z-index: 90;
}
.bnav-btn { border: none; background: transparent; color: var(--ink-2); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 680; cursor: pointer; }
.bnav-btn.active { color: var(--accent); font-weight: 820; }
.bnav-rel { position: relative; display: inline-flex; }
.bnav-badge { position: absolute; top: -4px; right: -9px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: #FFFFFF; font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bnav-center-slot { display: flex; align-items: center; justify-content: center; }
.bnav-plus-cta {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(180deg, var(--accent-top), var(--accent));
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--accent-lip), 0 8px 18px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-4px);
}

/* Overlays */
.sheet-overlay { position: fixed; inset: 0; background: rgba(15, 21, 32, 0.48); backdrop-filter: blur(4px); z-index: 160; display: flex; align-items: flex-end; justify-content: center; }
.sheet-overlay.center-pop { align-items: center; padding: 16px; }
.composer-sheet { width: 100%; max-width: 460px; background: var(--bg-card); border-radius: 26px 26px 0 0; padding-top: 12px; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22); animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.composer-sheet.detail-pad { padding: 16px; border-radius: 24px 24px 0 0; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.cs-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 15px 10px; }
.cs-type-pills { display: flex; gap: 6px; }
.cst-btn { border: none; background: var(--bg-soft); color: var(--ink-2); height: 31px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 750; cursor: pointer; }
.cst-btn.active { background: var(--accent); color: #FFFFFF; }
.cs-seed-quota-pill { font-size: 11px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.cs-close-btn { width: 31px; height: 31px; border-radius: 50%; border: none; background: var(--bg-soft); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.cs-smart-bar { display: flex; gap: 7px; padding: 0 15px 9px; }
.cs-smart-bar input { flex: 1; height: 36px; padding: 0 11px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg-input); color: var(--ink-1); font-size: 12.5px; outline: none; }
.cs-smart-btn { height: 36px; padding: 0 12px; border-radius: 11px; border: none; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 760; cursor: pointer; }
.new-merchant-guide { margin: 0 15px 8px; padding: 7px 11px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }

.cs-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 2px 15px 9px; }
.ccat-tile { border: 1.5px solid transparent; background: transparent; padding: 5px 2px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.ccat-icon { width: 37px; height: 37px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ccat-tile.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 780; }

.cs-custom-row { display: flex; gap: 7px; padding: 0 15px 9px; }
.cs-custom-row input { flex: 1; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg-input); color: var(--ink-1); }
.cs-custom-row button { height: 34px; padding: 0 12px; border-radius: 9px; border: none; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; }

.cs-freq-row { display: flex; gap: 6px; overflow-x: auto; padding: 0 15px 8px; }
.freq-tag { height: 25px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink-2); font-size: 11px; white-space: nowrap; cursor: pointer; }

.cs-display-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 15px; border-top: 1px solid var(--border); }
.cs-display-strip input { flex: 1; border: none; background: transparent; color: var(--ink-1); font-size: 13px; outline: none; }
.cs-amount-num { font-size: 24px; font-weight: 840; }

.cs-meta-pills { display: flex; align-items: center; gap: 7px; padding: 0 15px 9px; }
.cs-meta-pills select { height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink-1); font-size: 11.5px; }
.cs-zero-btn { margin-left: auto; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(16, 185, 129, 0.3); background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 720; cursor: pointer; }

.cs-keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.cs-keypad button { border: none; background: var(--bg-card); color: var(--ink-1); height: 50px; font-size: 19px; font-weight: 680; cursor: pointer; }
.cs-keypad button.k-fn { background: var(--bg-soft); font-size: 15px; color: var(--ink-2); }
.cs-keypad button.k-txt { font-size: 13px; font-weight: 700; }
.cs-keypad button.k-done { grid-row: span 2; height: 101px; background: linear-gradient(180deg, var(--accent-top), var(--accent)); color: #FFFFFF; font-size: 15px; font-weight: 820; }

.poster-modal-card { width: 100%; max-width: 368px; background: var(--bg-card); border-radius: 24px; padding: 15px; box-shadow: var(--shadow-float); }
.poster-canvas-el { width: 100%; height: auto; border-radius: 16px; display: block; }
.wx-copy-hint { margin-top: 9px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink-2); }
.modal-dual-btns { display: flex; gap: 8px; margin-top: 12px; }
.mbtn-ghost, .mbtn-primary { flex: 1; height: 40px; border-radius: 12px; font-size: 13.5px; font-weight: 760; cursor: pointer; }
.mbtn-ghost { border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--ink-1); }
.mbtn-primary { border: none; background: var(--accent); color: #FFFFFF; }

.crop-picker-list { display: flex; flex-direction: column; gap: 6px; margin-top: 5px; }
.crop-opt-btn {
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-1);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  cursor: pointer;
}
.crop-opt-btn.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; }
.crop-opt-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.field-label { display: block; margin-bottom: 10px; }
.field-label > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.field-label input { width: 100%; height: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-input); color: var(--ink-1); font-size: 13.5px; }

.tx-detail-meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.btn-delete-tx { width: 100%; height: 40px; margin-top: 12px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, 0.28); background: var(--coral-soft); color: var(--coral); font-weight: 750; cursor: pointer; }

.toast-host { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); z-index: 280; display: flex; flex-direction: column; gap: 6px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast-bubble { background: rgba(24, 34, 30, 0.92); color: #FFFFFF; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 680; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); text-align: center; }

/* ==================== 预算水塔 · 节奏线 · 记账日历（沿用原版毛玻璃 / Bento 语言） ==================== */
.hud-budget-card {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 46px);
  left: max(12px, calc(50% - 230px));
  z-index: 19;
  width: 172px;
  padding: 9px 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  color: var(--ink-1);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hud-budget-card:active { transform: scale(0.97); }
.hbg-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hbg-label { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.hbg-state {
  font-size: 10.5px;
  font-weight: 780;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.hud-budget-card[data-pace='warn'] .hbg-state { color: var(--gold-ink); background: var(--gold-soft); }
.hud-budget-card[data-pace='over'] .hbg-state { color: #B91C1C; background: var(--coral-soft); }
.hbg-num { font-size: 22px; font-weight: 830; letter-spacing: -0.03em; line-height: 1.1; }
.hud-budget-card[data-pace='over'] .hbg-num { color: var(--coral); }
.hbg-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: visible;
  margin: 3px 0 2px;
}
.hbg-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-top));
  transition: width 0.5s ease;
}
.hud-budget-card[data-pace='warn'] .hbg-track i { background: linear-gradient(90deg, var(--gold-lip), var(--gold-top)); }
.hud-budget-card[data-pace='over'] .hbg-track i { background: var(--coral); }
.hbg-track b {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 1.5px var(--bg-card);
}
.hbg-sub { font-size: 10.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 甘霖气泡让到预算卡下方 */
.hud-bonus-float-pill { top: calc(max(12px, env(safe-area-inset-top, 12px)) + 150px); }

/* 账本页：可编辑预算 + 节奏线 */
.lb-budget-edit {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.lb-budget-edit strong { color: var(--ink-1); margin-left: 3px; }
.lb-edit-tag {
  font-size: 10.5px;
  font-weight: 760;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  margin-left: 4px;
}
.pace-track { position: relative; overflow: visible; }
.pace-track .warm-progress-fill { position: relative; z-index: 1; }
.pace-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--bg-card);
  z-index: 2;
}
.lb-pace-line { margin-top: 9px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.lb-pace-line strong { color: var(--ink-1); }
.pace-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pace-dot.good { background: var(--aqua); }
.pace-dot.warn { background: var(--gold); }

/* 记账日历 */
.ledger-cal-card { margin-bottom: 11px; }
.cal-week-head,
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-week-head { margin-bottom: 5px; }
.cal-week-head span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.cal-cell {
  position: relative;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
}
.cal-cell.blank { cursor: default; }
.cal-cell.future { opacity: 0.45; cursor: default; }
.cal-cell.recorded { background: var(--accent-soft); color: var(--accent-ink); }
.cal-cell.recorded.over { background: var(--gold-soft); color: var(--gold-ink); }
.cal-cell.zero { background: var(--aqua-soft); color: var(--aqua-ink); }
.cal-cell.missed { background: var(--bg-soft); border-style: dashed; border-color: var(--border-strong); }
.cal-cell.today { border-color: var(--accent); border-style: solid; }
.cal-cell.picked { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.cal-cell em {
  position: absolute;
  top: 2px;
  right: 3px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 800;
  opacity: 0.7;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; }
.cal-legend .lg-rec { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-legend .lg-over { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-legend .lg-zero { background: var(--aqua-soft); box-shadow: inset 0 0 0 1px var(--aqua); }
.cal-legend .lg-miss { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }

.ledger-day-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 13px;
  margin-bottom: 11px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
}
.ldf-actions { display: inline-flex; align-items: center; gap: 4px; }

/* 记账抽屉：补记日期 */
.cs-date-pick {
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--ink-1);
  font-size: 12px;
}

/* 预算弹窗 */
.budget-modal-card { padding: 20px 18px 16px; }
.budget-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 14px;
  margin: 12px 0 8px;
  border-radius: 15px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-3);
}
.budget-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 24px;
  font-weight: 820;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.budget-presets { display: flex; gap: 6px; margin-bottom: 14px; }
.budget-presets button {
  flex: 1;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 740;
  cursor: pointer;
}

/* Toast 操作按钮（撤销） */
.toast-bubble.has-action { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; }
.toast-action {
  border: none;
  border-radius: 999px;
  height: 26px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #6EE7B7;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ledger-cal-card .bento-badge { white-space: nowrap; flex: none; }

/* 补记日期选择出现时，元信息行允许换行，零花销按钮不被挤压 */
.cs-meta-pills { flex-wrap: wrap; row-gap: 6px; }
.cs-meta-pills .cs-zero-btn { white-space: nowrap; }

/* ==================== 动效与氛围升级 ==================== */
/* 晨昏昼夜天空：跟随真实本地时间 */
.immersive-island-stage[data-tod='dawn'] {
  background: radial-gradient(60% 40% at 80% 18%, rgba(255, 214, 170, 0.85) 0%, rgba(255, 214, 170, 0) 70%),
    linear-gradient(180deg, #f6c9c4 0%, #fbe1d1 42%, #eaf2ea 100%) !important;
}
.immersive-island-stage[data-tod='dusk'] {
  background: radial-gradient(55% 35% at 18% 62%, rgba(255, 170, 100, 0.75) 0%, rgba(255, 170, 100, 0) 70%),
    linear-gradient(180deg, #4e4486 0%, #b7698f 42%, #f1a777 76%, #f8d4a2 100%) !important;
}
.immersive-island-stage[data-tod='night'] {
  /* 梦幻月夜：薰衣草紫 → 雾蓝，带一圈月晕，不再是「黑」 */
  background: radial-gradient(22% 14% at 76% 14%, rgba(255, 246, 215, 0.7) 0%, rgba(255, 246, 215, 0) 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(255, 190, 220, 0.28) 0%, rgba(255, 190, 220, 0) 70%),
    linear-gradient(180deg, #2a2f6e 0%, #4a4c96 48%, #7a6bb0 82%, #9a84c0 100%) !important;
}
.immersive-island-stage[data-tod='night']::before,
.immersive-island-stage[data-tod='dusk']::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 12% 14%, #fff, transparent 60%), radial-gradient(1px 1px at 28% 8%, #fff, transparent 60%),
    radial-gradient(1.3px 1.3px at 47% 19%, #fff, transparent 60%), radial-gradient(1px 1px at 63% 6%, #fff, transparent 60%),
    radial-gradient(1px 1px at 88% 24%, #fff, transparent 60%), radial-gradient(1.2px 1.2px at 8% 33%, #fff, transparent 60%),
    radial-gradient(1px 1px at 36% 28%, #fff, transparent 60%), radial-gradient(1px 1px at 93% 9%, #fff, transparent 60%);
  animation: starTwinkle 4s ease-in-out infinite;
}
.immersive-island-stage[data-tod='dusk']::before { opacity: 0.35; }
@keyframes starTwinkle { 50% { opacity: 0.55; } }

/* 资源数字变化时跳动 */
.chip-bump { animation: chipBump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.chip-bump-down { animation: chipDip 0.45s ease; }
@keyframes chipBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25); }
  100% { transform: scale(1); }
}
@keyframes chipDip {
  40% { transform: translateY(2px) scale(0.95); }
}

/* 天气浮窗：今日天气的原因 */
.ws-reason {
  margin: 8px 0 4px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--aqua-soft);
  color: var(--aqua-ink);
  font-size: 12px;
  font-weight: 650;
}

/* 免费岛屿配色卡片 */
.skin-shop-list { display: flex; flex-direction: column; gap: 8px; }
.skin-pick-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.skin-pick-card:active { transform: scale(0.98); }
.skin-pick-card.active { border-color: var(--accent); background: var(--accent-soft); }
.skin-swatch { width: 36px; height: 36px; border-radius: 11px; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.skin-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.skin-meta strong { font-size: 13.5px; color: var(--ink-1); }
.skin-meta small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-state { font-size: 11.5px; font-weight: 760; color: var(--accent-ink); flex: none; }

/* 立牌仪式卡片入场 */
.welcome-ceremony-overlay:not(.hidden) .welcome-ceremony-card { animation: ceremonyIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
@keyframes ceremonyIn { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
.toast-bubble.has-action span { text-align: left; }
.toast-action { white-space: nowrap; flex: none; }

.ws-tod-row { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 12px; color: var(--ink-3); font-weight: 650; }
.ws-tod-row .ws-chip { height: 28px; }

/* ==================== V11 自动环游控制 · 双人合种专页 · 岛主手账 · 跨月与账户体系 ==================== */
.brand-cluster { cursor: pointer; }
.hdr-nav-pill {
  position: relative;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.hdr-nav-pill:active { transform: scale(0.96); }
.hdr-nav-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.hdr-mini-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  box-shadow: 0 0 0 2px var(--bg-card);
}

@media (max-width: 400px) {
  .top-header { padding: 9px 11px 5px; gap: 5px; }
  .header-tools { gap: 4px; }
  .hdr-nav-pill, .seed-pill, .kettle-pill { padding: 0 7.5px; font-size: 11px; height: 28px; }
  .brand-title { font-size: 15px; }
}

/* 右侧悬浮按钮：3D 自动旋转激活态 */
.rail-float-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22);
}
.rail-float-btn.active small {
  color: var(--accent-ink);
  font-weight: 820;
}
@media (prefers-reduced-motion: no-preference) {
  .rail-float-btn.active .orbit-spin-slot svg {
    animation: orbitSpinSlow 9s linear infinite;
  }
}
@keyframes orbitSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 账本与粮仓：月份切换栏 & 支付渠道筛选 */
.month-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-bento);
}
.msb-left {
  display: flex;
  align-items: center;
  gap: 5px;
}
.msb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.msb-arrow:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}
.msb-label {
  font-size: 13.5px;
  font-weight: 820;
  padding: 0 3px;
  color: var(--ink-1);
}
.msb-today-chip {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}
.msb-export-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 740;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.account-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.account-filter-pills::-webkit-scrollbar { display: none; }
.acc-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.acc-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.acc-stat-card {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 15px;
  padding: 10px 11px;
  text-align: left;
  color: var(--ink-1);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.acc-stat-card:active { transform: scale(0.98); }
.acc-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.acc-stat-name { font-size: 12.5px; font-weight: 780; }
.acc-stat-cnt { font-size: 10.5px; color: var(--ink-3); font-weight: 680; }
.acc-stat-exp { font-size: 15px; font-weight: 820; color: var(--ink-1); display: block; }
.acc-stat-inc { font-size: 10.5px; color: var(--accent-ink); font-weight: 680; margin-top: 2px; display: block; }

/* ==================== 双人合种专页 (#page-duo) ==================== */
.duo-hero-card {
  background: var(--diorama-grad);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 13px;
  box-shadow: var(--shadow-bento);
  margin-bottom: 10px;
}
.duo-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.duo-eyebrow-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 780;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 3px;
}
.duo-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 840;
  letter-spacing: -0.02em;
}
.duo-resonance-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.duo-3d-stage-wrap {
  position: relative;
  height: 222px;
  margin: 10px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sky-stage-bg);
  border: 1px solid var(--glass-border, var(--border-strong));
}
.duo-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.duo-3d-canvas:active { cursor: grabbing; }
.duo-stage-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2.5px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border, var(--border));
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
}
.duo-floating-sides {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  pointer-events: none;
}
.duo-side-pill {
  padding: 6px 9px;
  border-radius: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, var(--border));
  min-width: 0;
}
.duo-side-pill.right { text-align: right; }
.duo-side-pill strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duo-side-pill span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duo-privacy-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 720;
}
.duo-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.duo-prompt-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}
.duo-prompt-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 780;
}

.duo-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.duo-ms-card {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 13px;
  padding: 9px 6px;
  text-align: center;
}
.duo-ms-card.reached {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.duo-ms-days {
  display: block;
  font-size: 13px;
  font-weight: 840;
  color: var(--ink-1);
}
.duo-ms-card.reached .duo-ms-days { color: var(--accent-ink); }
.duo-ms-title {
  display: block;
  font-size: 11px;
  font-weight: 760;
  color: var(--ink-2);
  margin-top: 2px;
}
.duo-ms-state {
  display: inline-block;
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 780;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-3);
}
.duo-ms-card.reached .duo-ms-state {
  background: var(--accent);
  color: #FFFFFF;
}

.duo-nudge-feed {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nudge-msg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.nudge-msg-card .bento-badge {
  white-space: nowrap;
  flex-shrink: 0;
}
.nmc-who { font-size: 12px; font-weight: 780; color: var(--ink-1); }
.nmc-who small { font-weight: 650; color: var(--ink-3); margin-left: 4px; }
.nmc-txt { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }

.friend-rich-card {
  padding: 10px 11px;
  border-radius: 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.friend-rich-card.is-partner {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.frc-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.frc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-top), var(--accent));
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.frc-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.frc-name { font-size: 13.5px; font-weight: 800; color: var(--ink-1); }
.frc-tag {
  font-size: 10px;
  font-weight: 740;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-2);
}
.frc-partner-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
}
.frc-sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.frc-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.frc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.frc-bind-link {
  border: none;
  background: transparent;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  padding: 0;
}

.invite-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  margin-bottom: 9px;
}
.invite-code-box small { display: block; font-size: 10.5px; color: var(--ink-3); }
.invite-code-box strong { font-size: 19px; font-weight: 860; letter-spacing: 0.06em; color: var(--accent-ink); }
.icb-actions { display: flex; gap: 6px; }
.icb-actions .fpop-soft-btn { padding: 0 10px; background: var(--bg-card); }

.bind-pact-form {
  display: flex;
  gap: 8px;
}
.bind-pact-form input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--ink-1);
  font-size: 13px;
  text-transform: uppercase;
  outline: none;
}
.bind-pact-form .mbtn-primary {
  flex: 0 0 auto;
  padding: 0 16px;
}

/* ==================== 岛主手账专页 (#page-handbook) ==================== */
.handbook-hero-card {
  background: var(--diorama-grad);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-bento);
  margin-bottom: 10px;
}
.hbh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hbh-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--accent-top), var(--accent));
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 860;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}
.hbh-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hbh-name-row strong { font-size: 16.5px; font-weight: 840; }
.hbh-island-tag {
  font-size: 11px;
  font-weight: 760;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.hbh-code { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.hbh-wish-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
}
.hbh-wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hbh-season { font-size: 11px; font-weight: 780; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; }
.hbh-wish-title { font-size: 14.5px; font-weight: 800; color: var(--ink-1); margin: 6px 0 10px; }
.hbh-stats-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.hbh-stat-cell { text-align: center; }
.hbh-stat-cell strong { display: block; font-size: 15px; font-weight: 840; color: var(--ink-1); }
.hbh-stat-cell span { font-size: 10.5px; color: var(--ink-3); }

/* 周期固定账单 */
.recurring-form {
  padding: 11px;
  border-radius: 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 10px;
}
.rf-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px; margin-bottom: 7px; }
.rf-row.rf-selects { grid-template-columns: repeat(2, 1fr); }
.rf-row input, .rf-row select {
  height: 35px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 12.5px;
  outline: none;
  min-width: 0;
}
.rf-actions { display: flex; gap: 8px; margin-top: 4px; }
.rf-actions button { height: 34px; font-size: 12.5px; }

.recurring-list { display: flex; flex-direction: column; gap: 8px; }
.rec-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.rec-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.rec-title-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.rec-title { font-size: 13.5px; font-weight: 780; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.rec-amt { font-size: 13px; font-weight: 820; color: var(--ink-1); }
.rec-amt.inc { color: var(--accent); }

/* 成就勋章馆 */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ach-card {
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  opacity: 0.72;
}
.ach-card.unlocked {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ach-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.ach-title { font-size: 13px; font-weight: 820; color: var(--ink-1); }
.ach-card.unlocked .ach-title { color: var(--accent-ink); }
.ach-prog { font-size: 10px; font-weight: 760; padding: 1px 6px; border-radius: 999px; background: var(--bg-card); color: var(--ink-2); }
.ach-desc { font-size: 11px; color: var(--ink-2); line-height: 1.35; }

/* 偏好与数据导出 */
.prefs-stack { display: flex; flex-direction: column; gap: 10px; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.pref-row strong { display: block; font-size: 13px; font-weight: 780; color: var(--ink-1); }
.pref-row small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.pref-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.hb-swatch-row { display: flex; align-items: center; gap: 7px; }
.hb-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.hb-swatch-dot.active {
  transform: scale(1.16);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.export-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.export-btn-grid .fpop-soft-btn {
  height: 38px;
  font-size: 12px;
}

.workshop-tabs.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.workshop-tabs.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.workshop-tabs.cols-4 .wtab-btn {
  font-size: 12px;
  padding: 6px 4px;
}

/* 首页下方天空留白区：5 大特色 3D 画风实时快切胶囊条 */
.hud-craft-style-dock {
  position: absolute;
  left: 50%;
  bottom: 142px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 22px -6px rgba(16, 44, 30, 0.14);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 19;
  overflow-x: auto;
  scrollbar-width: none;
}
.hud-craft-style-dock::-webkit-scrollbar { display: none; }
.csd-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-3);
  margin-right: 2px;
  white-space: nowrap;
}
.csd-chip {
  height: 26px;
  padding: 0 7.5px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 740;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.csd-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.csd-chip:active { transform: scale(0.95); }
.csd-chip.active {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 820;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.csd-chip.active i {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.craft-badge-tag {
  font-size: 10px;
  font-weight: 780;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  margin-left: 5px;
}

/* 桌面宽屏适配：将 3D 首页悬浮 HUD 舒展至两侧天空留白区，100% 释放中央浮岛视野 */
@media (min-width: 768px) {
  .hud-top-bar {
    max-width: min(960px, calc(100vw - 48px));
  }
  .hud-budget-card,
  .hud-bonus-float-pill,
  .hud-float-popover.pos-top-left {
    left: max(24px, calc(50% - 480px));
  }
  .hud-right-rail,
  .hud-float-popover.pos-top-right {
    right: max(24px, calc(50% - 480px));
  }
  .hud-float-popover.pos-right-mid {
    right: max(76px, calc(50% - 424px));
  }
  .duo-privacy-float-pill {
    left: max(24px, calc(50% - 480px));
  }
}

/* ==================== V13 初登画风选择 · 得种仪式飞入 · 朝露集水站 · 纪念摆件转赠 · 全画幅合种 HUD ==================== */
.wc-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.wc-skip-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 760;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wc-skip-btn:active { transform: scale(0.96); }

.wc-craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.wc-craft-chip {
  position: relative;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 7px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.wc-craft-chip:active { transform: scale(0.96); }
.wc-craft-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wc-craft-dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.wc-craft-name {
  font-size: 11px;
  font-weight: 780;
  color: var(--ink-1);
  line-height: 1.15;
}
.wc-craft-rec {
  position: absolute;
  top: -5px;
  right: -3px;
  font-size: 9px;
  font-weight: 820;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
}

/* 记账获得 1 枚麦种仪式提示 + 飞入右上角种子袋动画 */
.seed-ceremony-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 260;
}
.seed-ceremony-card {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 42px -10px rgba(217, 119, 6, 0.28), 0 4px 14px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  animation: seedCardPop 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes seedCardPop {
  0% { opacity: 0; transform: translate(-50%, -36%) scale(0.84); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(0.95); }
}
.scc-seed-emblem {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FDE047, #F59E0B);
  color: #78350F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.scc-texts strong {
  display: block;
  font-size: 13.5px;
  font-weight: 840;
  color: var(--ink-1);
}
.scc-texts small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 1px;
}
.seed-fly-token {
  position: fixed;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FEF08A, #F59E0B 72%, #B45309 100%);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.85), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  z-index: 265;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.72s ease;
}
.hbc-cta-btn.pulse-plant {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 6px 16px rgba(16, 185, 129, 0.28);
}

/* 朝露集水站轻浮窗 */
.dew-station-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.dew-task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.dew-task-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink-1);
}
.dew-task-card small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 1px;
}
.dew-gentle-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

/* 记账里程碑 3D 纪念小摆件面板 */
.keepsake-progress-banner {
  padding: 9px 12px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 740;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ks-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.ks-mini-btn {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}
.ks-mini-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.ks-mini-btn.gift {
  background: var(--gold-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--gold-ink);
}

/* ==================== 全画幅双人合种 HUD（与首页主岛 100% 家族式同构） ==================== */
.duo-top-bar {
  gap: 6px;
}
.duo-farmer-pill {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-bento);
  color: var(--ink-1);
  text-align: left;
}
button.duo-farmer-pill {
  cursor: pointer;
}
.dfp-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.duo-farmer-pill.partner .dfp-avatar {
  background: var(--aqua);
}
.dfp-meta {
  min-width: 0;
  flex: 1;
}
.dfp-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dfp-meta small {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duo-resonance-pill {
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.duo-privacy-float-pill {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 48px);
  left: 12px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, var(--border));
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 680;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 15;
  pointer-events: none;
}

.rail-dot-badge.emerald {
  background: var(--accent);
  color: #FFFFFF;
}

.duo-float-pop {
  width: min(342px, calc(100vw - 82px));
  max-height: min(64dvh, 470px);
  overflow-y: auto;
}
.compact-scroll {
  max-height: 210px;
  overflow-y: auto;
}
.invite-code-box.compact {
  padding: 8px 10px;
}

.duo-gift-target-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.duo-gift-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.duo-gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.duo-gift-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink-1);
}
.duo-gift-row small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-2);
}

/* ==================== Apple iCloud 私人加密云同步卡片 ==================== */
.icloud-sync-card {
  border-color: rgba(14, 165, 233, 0.24);
}
#hbICloudStatePill {
  white-space: nowrap;
  flex-shrink: 0;
}
.icloud-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icloud-apple-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 820;
  letter-spacing: 0.01em;
}
.icloud-pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.icloud-pillars-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--aqua-ink);
  font-size: 10.5px;
  font-weight: 740;
}
.icloud-meta-strip {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11px;
}
.icloud-primary-btn {
  background: var(--aqua-soft) !important;
  color: var(--aqua-ink) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  font-weight: 800 !important;
}

/* ==================== V15 结构降噪 · 折叠式画风+岛主身份微胶囊 & 万物图鉴卡片系统 ==================== */
.hud-craft-style-dock.is-collapsed {
  padding: 3px 5px;
  gap: 5px;
}
.csd-compact-btn {
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.csd-compact-btn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.csd-divider-dot {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.csd-keeper-pill {
  height: 25px;
  padding: 0 8.5px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.csd-fold-btn {
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}

.rail-dot-badge.gold-new {
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

/* 图鉴馆半屏/居中画册面板 */
.codex-sheet {
  max-width: 560px;
  max-height: min(86dvh, 760px);
  overflow-y: auto;
}
.codex-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.codex-sub-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}

/* 极简博物馆收藏进度条（把视觉重心 100% 留给 3D 微缩模型） */
.codex-museum-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.cmb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cmb-rank-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}
.cmb-sub {
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.cmb-bar {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}
.cmb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.codex-filter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.codex-filter-strip::-webkit-scrollbar { display: none; }
.codex-filter-strip .ws-chip {
  white-space: nowrap;
  flex-shrink: 0;
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 16 款真 3D 微缩模型博物馆展柜网格 */
.codex-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 520px) {
  .codex-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.codex-specimen-card {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
}
.codex-specimen-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.14);
}
.codex-specimen-card.locked {
  background: var(--bg-soft);
  cursor: default;
  box-shadow: none;
}
.codex-specimen-card.locked:hover {
  transform: none;
}
.codex-specimen-card.rarity-epic.unlocked {
  border-color: rgba(217, 119, 6, 0.36);
}
.codex-specimen-card.rarity-rare.unlocked {
  border-color: rgba(14, 165, 233, 0.34);
}

.csc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 760;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.csc-rarity-tag {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 780;
  background: var(--bg-soft);
  color: var(--ink-2);
}
.csc-rarity-tag.rare {
  background: var(--aqua-soft);
  color: var(--aqua-ink);
}
.csc-rarity-tag.epic {
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.csc-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F4EFE6 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
[data-theme="night"] .csc-stage {
  background: radial-gradient(circle at 50% 42%, #283347 0%, #161D2B 100%);
  border-color: rgba(255, 255, 255, 0.07);
}
.csc-3d-img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.codex-specimen-card.unlocked:hover .csc-3d-img {
  transform: scale(1.06);
}
.codex-specimen-card.locked .csc-3d-img {
  filter: grayscale(1) brightness(0.76) contrast(0.8) blur(0.5px);
  opacity: 0.34;
}

.csc-title {
  font-size: 13px;
  font-weight: 820;
  color: var(--ink-1);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.codex-specimen-card.locked .csc-title {
  color: var(--ink-3);
  font-weight: 720;
}
.csc-caption {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.codex-specimen-card.locked .csc-caption {
  color: var(--ink-3);
}
.cmc-new-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 840;
  z-index: 2;
}

/* 全岛装饰 3D 展柜网格 */
.codex-decor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
@media (min-width: 520px) {
  .codex-decor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.codex-decor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.codex-decor-item.equipped {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--accent-soft);
}
.cdi-thumb-box {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F3EEE4 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
[data-theme="night"] .cdi-thumb-box {
  background: radial-gradient(circle at 50% 42%, #283347 0%, #161D2B 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.cdi-thumb-box img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}
.cdi-thumb-box.is-locked img {
  filter: grayscale(1) brightness(0.78);
  opacity: 0.42;
}
.cdi-meta {
  min-width: 0;
  flex: 1;
}
.cdi-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 820;
  color: var(--ink-1);
}
.cdi-meta small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.34;
  margin-top: 2px;
}
.cdi-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.ks-mini-btn.subtle-move {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--ink-1);
}

/* ==================== 播种随机掉落 · 3D 博物馆标本典藏翻转卡 ==================== */
.codex-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadePop 0.2s ease-out;
}
.codex-reveal-stage {
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.crs-top-banner {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1E293B;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.crs-promo-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11.5px;
  font-weight: 820;
}

.codex-flip-scene {
  width: 278px;
  height: 382px;
  perspective: 1200px;
  cursor: pointer;
}
.codex-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(180deg) scale(0.94);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}
.codex-flip-inner.is-flipped {
  transform: rotateY(0deg) scale(1);
}
.codex-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.codex-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #2C3E35 0%, #1B2822 100%);
  border: 2px solid rgba(245, 235, 210, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}
.codex-back-emblem {
  width: 82%;
  height: 84%;
  border-radius: 16px;
  border: 1px solid rgba(245, 235, 210, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #F5EBD2;
}
.codex-back-emblem strong {
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 800;
}
.codex-back-emblem small {
  font-size: 10px;
  opacity: 0.68;
  letter-spacing: 0.12em;
}

.codex-face-front {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  padding: 14px 15px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.codex-face-front.rarity-epic {
  border-color: rgba(217, 119, 6, 0.55);
}
.cff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 780;
  color: var(--ink-3);
}
.cff-art-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 192px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F4EFE6 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}
[data-theme="night"] .cff-art-wrap {
  background: radial-gradient(circle at 50% 42%, #283347 0%, #161D2B 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.cff-art-wrap img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.cff-title-block h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 840;
  color: var(--ink-1);
}
.cff-title-block span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.cff-lore {
  margin: 5px 0;
  font-size: 11.5px;
  line-height: 1.46;
  color: var(--ink-2);
}
.cff-reward-strip {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 760;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.crs-actions {
  display: flex;
  gap: 8px;
  width: 278px;
}
.crs-actions button {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.crs-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}
.crs-btn-primary {
  border: none;
  background: var(--accent);
  color: #FFFFFF;
}
.crs-flip-tip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

/* ==================== V16 动态声景混音台 + 实录音频热加载舱 & 猫头鹰账房信箱 ==================== */
.audio-studio-card {
  border-color: rgba(16, 185, 129, 0.28);
}
#hbAudioInstalledBadge {
  white-space: nowrap;
  flex-shrink: 0;
}
.audio-studio-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 820;
}
.audio-mixer-box {
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.audio-slider-row {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-1);
}
.audio-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.audio-slider-row strong {
  text-align: right;
  font-size: 11.5px;
  color: var(--accent-ink);
}
.audio-audition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
}
.audio-slots-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
@media (min-width: 560px) {
  .audio-slots-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.audio-slot-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.audio-slot-item.installed {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.asi-main {
  min-width: 0;
  flex: 1;
}
.asi-main strong {
  display: block;
  font-size: 12px;
  font-weight: 820;
  color: var(--ink-1);
}
.asi-code {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--aqua-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
}
.asi-sub {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.35;
}
.asi-status {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--bg-soft);
  color: var(--ink-3);
}
.asi-status.ready {
  background: var(--accent);
  color: #FFFFFF;
}

/* ==================== V18 温情手写家书信箱（实体邮票邮戳信封 + 某某亲启首行缩进宣纸信笺 + 朱砂私章） ==================== */
.mailbox-sheet {
  max-width: 536px;
  max-height: min(92dvh, 800px);
  overflow-y: auto;
}
.mailbox-refresh-note-btn {
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #D6C3A5;
  background: #FAF3E3;
  color: #785028;
  font-size: 11.5px;
  font-weight: 780;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.mailbox-refresh-note-btn:hover {
  background: #F4E7CE;
}
[data-theme="night"] .mailbox-refresh-note-btn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.14);
  color: #FDE68A;
}
.mailbox-refresh-note-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* 顶部横向迷你邮政信封匣 */
.mailbox-envelope-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
}
.mailbox-envelope-list::-webkit-scrollbar { display: none; }

.mail-env-card {
  position: relative;
  min-width: 156px;
  max-width: 178px;
  flex-shrink: 0;
  padding: 15px 11px 9px;
  border-radius: 11px;
  border: 1px solid #DCCBB0;
  background: linear-gradient(180deg, #FDF9F0 0%, #F3E8D3 100%);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mail-env-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    #C84B31 0px,
    #C84B31 6px,
    #FAF4E8 6px,
    #FAF4E8 10px,
    #3B6E8C 10px,
    #3B6E8C 16px,
    #FAF4E8 16px,
    #FAF4E8 20px
  );
  opacity: 0.72;
}
[data-theme="night"] .mail-env-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #263042 0%, #1C2433 100%);
}
.mail-env-card.selected {
  border-color: #B5854B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(120, 78, 30, 0.32);
}
[data-theme="night"] .mail-env-card.selected {
  border-color: #FBBF24;
  box-shadow: 0 8px 20px -8px rgba(251, 191, 36, 0.28);
}
.mec-flap-svg {
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 22px;
  pointer-events: none;
  opacity: 0.5;
}
.mec-wax-seal-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #EF4444, #B91C1C);
  color: #FFFBEB;
  font-size: 8.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(185, 28, 28, 0.38);
}
.mec-to-line {
  display: block;
  font-size: 10.5px;
  font-weight: 780;
  color: #8C6239;
  margin-bottom: 2px;
}
[data-theme="night"] .mec-to-line {
  color: #FCD34D;
}
.mec-subject {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mec-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: var(--ink-3);
}
.mec-gift-mark {
  color: #B45309;
  font-weight: 780;
}
[data-theme="night"] .mec-gift-mark {
  color: #FBBF24;
}

/* 主体：牛皮纸信封抬头 + 宣白横格家书信笺 */
.mailbox-stationery-wrap {
  position: relative;
}
.stationery-envelope-pocket {
  position: relative;
  border-radius: 20px;
  padding: 13px 13px 14px;
  background: linear-gradient(180deg, #EFE3CA 0%, #E3D2B2 100%);
  border: 1px solid #D3BE98;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}
[data-theme="night"] .stationery-envelope-pocket {
  background: linear-gradient(180deg, #1E2636 0%, #151C29 100%);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

/* 信封抬头栏：收件人「某某 亲启」 + 实体齿孔麦穗邮票 + 斜盖圆形邮戳 */
.envelope-address-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 11px;
}
.eab-left {
  min-width: 0;
}
.eab-recipient {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
  font-size: 16.5px;
  font-weight: 800;
  color: #4A3219;
  letter-spacing: 0.03em;
}
[data-theme="night"] .eab-recipient {
  color: #FEF3C7;
}
.eab-from {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #7C6246;
}
[data-theme="night"] .eab-from {
  color: #94A3B8;
}

.eab-stamp-cluster {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.postage-stamp-box {
  width: 48px;
  height: 54px;
  padding: 4px;
  border-radius: 4px;
  background: #FFFDF8;
  border: 2px dotted #C8B496;
  box-shadow: 0 2px 6px rgba(68, 44, 18, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
[data-theme="night"] .postage-stamp-box {
  background: #273246;
  border-color: rgba(251, 191, 36, 0.42);
}
.psb-inner {
  width: 100%;
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B45309;
}
[data-theme="night"] .psb-inner {
  background: linear-gradient(180deg, #374151 0%, #1F2937 100%);
  color: #FBBF24;
}
.psb-val {
  font-size: 8px;
  font-weight: 800;
  color: #785634;
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
}
[data-theme="night"] .psb-val {
  color: #CBD5E1;
}
.postmark-circle {
  position: absolute;
  left: -35px;
  bottom: 2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.4px solid rgba(154, 52, 18, 0.46);
  color: rgba(154, 52, 18, 0.68);
  font-size: 8px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  transform: rotate(-14deg);
  pointer-events: none;
}
[data-theme="night"] .postmark-circle {
  border-color: rgba(251, 191, 36, 0.42);
  color: rgba(251, 191, 36, 0.72);
}

/* 展开的宣白中式尺牍信笺 */
.letter-paper-sheet {
  position: relative;
  border-radius: 13px;
  padding: 14px 16px 13px;
  background-color: #FFFDF7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 26px,
    rgba(194, 158, 118, 0.19) 27px
  );
  border: 1px solid #E8DEC8;
  box-shadow: 0 10px 26px -12px rgba(68, 48, 22, 0.24);
}
[data-theme="night"] .letter-paper-sheet {
  background-color: #20293A;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 26px,
    rgba(255, 255, 255, 0.055) 27px
  );
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.52);
}

.letter-salutation {
  display: inline-block;
  margin: 0 0 8px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(180, 130, 78, 0.38);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
  font-size: 15px;
  font-weight: 800;
  color: #3E2712;
  letter-spacing: 0.03em;
}
[data-theme="night"] .letter-salutation {
  color: #F8FAFC;
  border-bottom-color: rgba(251, 191, 36, 0.4);
}

.letter-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.letter-body-p {
  margin: 0;
  text-indent: 2em;
  font-size: 13.5px;
  line-height: 1.92;
  color: #2D241C;
  letter-spacing: 0.012em;
}
[data-theme="night"] .letter-body-p {
  color: #E2E8F0;
}

.letter-ps-note {
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(245, 236, 218, 0.65);
  border: 1px dashed rgba(180, 142, 96, 0.42);
  font-size: 11px;
  line-height: 1.45;
  color: #6B5135;
}
[data-theme="night"] .letter-ps-note {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
}

.letter-closing-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.letter-closing-wish {
  margin: 0;
  text-indent: 2em;
  font-size: 13.5px;
  font-weight: 700;
  color: #5C4024;
}
[data-theme="night"] .letter-closing-wish {
  color: #FDE68A;
}

.letter-sign-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}
.lsr-text {
  text-align: right;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
}
.lsr-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.lsr-text span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.vermilion-seal-chop {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1.8px solid #C53030;
  background: rgba(220, 38, 38, 0.08);
  color: #C53030;
  font-family: "Songti SC", "STSong", serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
[data-theme="night"] .vermilion-seal-chop {
  border-color: #F87171;
  color: #F87171;
  background: rgba(248, 113, 113, 0.12);
}

.envelope-gift-bar {
  margin-top: 11px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(180, 142, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
[data-theme="night"] .envelope-gift-bar {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}
.egb-note {
  font-size: 11.5px;
  color: #6B5135;
  font-weight: 700;
}
[data-theme="night"] .egb-note {
  color: #CBD5E1;
}
.lps-claim-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.34);
  background: #FEF3C7;
  color: #92400E;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
[data-theme="night"] .lps-claim-btn {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: #FDE68A;
}
.lps-claimed-note {
  font-size: 11px;
  color: var(--ink-3);
}

/* ==================== 装扮类 APP 级「3D 自由拖拽 + 8 固定点位点选」实景摆放台 ==================== */
.arrange-entry-pill {
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.decor-arrange-dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid var(--glass-border, var(--border-strong));
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.32);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dad-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dad-row::-webkit-scrollbar { display: none; }
.dad-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}
.dad-item-chip,
.dad-spot-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 740;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.dad-item-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 820;
}
.dad-spot-chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 820;
}
.dad-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.dad-hint {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 680;
}
.dad-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.dad-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}
.dad-btn.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 820;
  padding: 0 14px;
}

/* ==================== V19 农舍好物陈列柜（长物志 · 按陪伴天数均摊每日持有价值） ==================== */
.stats-dual-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.sds-btn {
  height: 36px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.sds-btn.active {
  background: var(--bg-card);
  color: var(--ink-1);
  font-weight: 840;
  box-shadow: 0 3px 10px -3px rgba(15, 23, 42, 0.12);
}
.sds-badge {
  font-style: normal;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 820;
}

.curio-hero-card {
  border-radius: 22px;
  padding: 15px 15px 13px;
  background: linear-gradient(155deg, #FAF4E6 0%, #EFE2C6 100%);
  border: 1px solid #D8C39E;
  box-shadow: 0 10px 26px -12px rgba(92, 60, 22, 0.18);
  margin-bottom: 12px;
}
[data-theme="night"] .curio-hero-card {
  background: linear-gradient(155deg, #232C3F 0%, #182030 100%);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.48);
}
.chc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.chc-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #8C5E2A;
  letter-spacing: 0.04em;
}
[data-theme="night"] .chc-eyebrow {
  color: #FBBF24;
}
.chc-title {
  margin: 3px 0 4px;
  font-size: 18px;
  font-weight: 860;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.chc-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.curio-add-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: none;
  background: #8C5828;
  color: #FFFDF8;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgba(120, 72, 24, 0.38);
}
[data-theme="night"] .curio-add-btn {
  background: #F59E0B;
  color: #1E293B;
}

.curio-kpi-strip {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(140, 94, 42, 0.26);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
[data-theme="night"] .curio-kpi-strip {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.ckpi-cell span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
}
.ckpi-cell strong {
  display: block;
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 860;
  color: var(--ink-1);
}
.ckpi-cell strong.highlight {
  color: #059669;
}
[data-theme="night"] .ckpi-cell strong.highlight {
  color: #34D399;
}

/* 暖胡桃木博古陈列柜架体 */
.curio-cabinet-frame {
  border-radius: 22px;
  padding: 13px;
  background: linear-gradient(180deg, #EDE0C9 0%, #E3D1B2 100%);
  border: 2px solid #CEB58E;
  box-shadow: inset 0 2px 6px rgba(92, 60, 22, 0.12);
}
[data-theme="night"] .curio-cabinet-frame {
  background: linear-gradient(180deg, #1B2333 0%, #141B28 100%);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.curio-shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.curio-niche-card {
  min-width: 0;
  position: relative;
  border-radius: 16px;
  padding: 10px 10px 11px;
  background: #FFFDF9;
  border: 1px solid #E5D9C3;
  border-bottom: 4px solid #C49E6C;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 6px 16px -8px rgba(68, 44, 18, 0.2);
}
.curio-niche-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(68, 44, 18, 0.28);
}
[data-theme="night"] .curio-niche-card {
  background: #222C3F;
  border-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: #475569;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}
.curio-niche-card.is-retired {
  opacity: 0.78;
}

.cnc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.cnc-days-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 10px;
  font-weight: 820;
  white-space: nowrap;
}
[data-theme="night"] .cnc-days-pill {
  background: rgba(251, 191, 36, 0.18);
  color: #FDE68A;
}
.cnc-worth-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 820;
  white-space: nowrap;
}
.cnc-worth-tag.retired {
  background: var(--bg-soft);
  color: var(--ink-3);
}

.cnc-3d-stage {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F4EDE0 100%);
  border: 1px solid rgba(180, 152, 112, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="night"] .cnc-3d-stage {
  background: radial-gradient(circle at 50% 42%, #2D3A52 0%, #182030 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.cnc-3d-stage img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cnc-name {
  font-size: 13.5px;
  font-weight: 840;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cnc-daily-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.cnc-daily-val {
  font-size: 18px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -0.02em;
}
[data-theme="night"] .cnc-daily-val {
  color: #34D399;
}
.cnc-daily-unit {
  font-size: 11px;
  font-weight: 760;
  color: var(--ink-3);
}
.cnc-sub-line {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cnc-next-drop {
  font-size: 10.5px;
  font-weight: 760;
  color: #B45309;
}
[data-theme="night"] .cnc-next-drop {
  color: #FBBF24;
}
.cnc-prog-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
  margin-top: 2px;
}
.cnc-prog-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F59E0B, #10B981);
}

.curio-empty-box {
  border-radius: 16px;
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px dashed #C8B28E;
  text-align: center;
}
[data-theme="night"] .curio-empty-box {
  border-color: rgba(255, 255, 255, 0.16);
}
.curio-empty-box h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 840;
  color: var(--ink-1);
}
.curio-empty-box p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.curio-preset-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* 账单详情一键转入好物陈列柜按钮 */
.tx-to-curio-btn {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid #D8C39E;
  background: #FAF3E3;
  color: #7C4E20;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
[data-theme="night"] .tx-to-curio-btn {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: #FDE68A;
}

/* 收入/编辑好物弹窗 */
.asset-modal-sheet {
  max-width: 500px;
}
.asset-form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asset-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 5px;
}
.asset-icon-opt {
  padding: 6px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.asset-icon-opt.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.asset-icon-opt img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.asset-icon-opt span {
  font-size: 11px;
  font-weight: 780;
  color: var(--ink-1);
}

.asset-formula-strip {
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--accent-ink);
  font-weight: 740;
}
.asset-retire-box {
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.arb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.arb-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 760;
  color: var(--ink-1);
  cursor: pointer;
}
.arb-row input[type="number"] {
  height: 32px;
  width: 158px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 12px;
}

/* ==================== V20 风车磨坊 · 麦穗积分联名福利社（齿孔手撕咖啡礼遇券 + 一键用券回填记账） ==================== */
.kpi-card.kpi-clickable {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.kpi-card.kpi-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 83, 9, 0.4);
}
[data-theme="night"] #stCoinsVal {
  color: #FBBF24 !important;
}

.perks-mall-sheet {
  max-width: 548px;
  max-height: min(90dvh, 790px);
  overflow-y: auto;
}

.perks-hero-banner {
  border-radius: 18px;
  padding: 13px 15px;
  background: linear-gradient(145deg, #FEF7E6 0%, #F6E6C2 100%);
  border: 1px solid #DFC48E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
[data-theme="night"] .perks-hero-banner {
  background: linear-gradient(145deg, #252E42 0%, #192131 100%);
  border-color: rgba(251, 191, 36, 0.32);
}
.phb-left span {
  display: block;
  font-size: 11px;
  font-weight: 780;
  color: #855823;
}
[data-theme="night"] .phb-left span {
  color: #FCD34D;
}
.phb-pts-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 3px;
}
.phb-pts-row strong {
  font-size: 27px;
  font-weight: 900;
  color: #78350F;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
[data-theme="night"] .phb-pts-row strong {
  color: #FEF3C7;
}
.phb-pts-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #92400E;
}
[data-theme="night"] .phb-pts-row em {
  color: #FBBF24;
}
.phb-left small {
  display: block;
  font-size: 10.5px;
  color: #785A36;
}
[data-theme="night"] .phb-left small {
  color: #94A3B8;
}
.phb-right {
  text-align: right;
  flex-shrink: 0;
}
.phb-saved-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 130, 60, 0.3);
  color: #059669;
  font-size: 11.5px;
  font-weight: 820;
}
[data-theme="night"] .phb-saved-pill {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34D399;
}
.phb-wallet-hint {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: #785A36;
}
[data-theme="night"] .phb-wallet-hint {
  color: #CBD5E1;
}

.perks-ticket-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* 实体齿孔手撕咖啡联名礼遇券卡 */
.perk-ticket-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.perk-ticket-card::before,
.perk-ticket-card::after {
  content: "";
  position: absolute;
  left: 88px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  z-index: 2;
}
.perk-ticket-card::before {
  top: -7px;
}
.perk-ticket-card::after {
  bottom: -7px;
}

.ptc-left-stub {
  padding-right: 10px;
  border-right: 1.5px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}
.ptc-brand-pill {
  padding: 2px 7px;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 840;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ptc-deal-price {
  font-size: 19px;
  font-weight: 900;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ptc-origin-price {
  font-size: 10px;
  color: var(--ink-3);
  text-decoration: line-through;
}

.ptc-body {
  min-width: 0;
  padding-left: 2px;
}
.ptc-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ptc-title {
  font-size: 13.5px;
  font-weight: 840;
  color: var(--ink-1);
}
.ptc-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 9.5px;
  font-weight: 800;
}
[data-theme="night"] .ptc-tag {
  background: rgba(251, 191, 36, 0.16);
  color: #FDE68A;
}
.ptc-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ptc-meta {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-3);
}

.ptc-redeem-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: #B45309;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 840;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 5px 12px -4px rgba(180, 83, 9, 0.36);
}
[data-theme="night"] .ptc-redeem-btn {
  background: #F59E0B;
  color: #1E293B;
}
.ptc-redeem-btn.shortfall {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  box-shadow: none;
}
.ptc-redeem-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 我的券包卡片（券码复制 + 一键按优惠价记入账本再掉麦种） */
.wallet-coupon-card {
  border-radius: 16px;
  padding: 12px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wallet-coupon-card.is-used {
  opacity: 0.68;
}
.wcc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wcc-brand-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.wcc-brand-title strong {
  font-size: 13.5px;
  font-weight: 840;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wcc-exp {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.wcc-code-strip {
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wcc-code-strip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #B45309;
  letter-spacing: 0.05em;
}
[data-theme="night"] .wcc-code-strip code {
  color: #FBBF24;
}
.wcc-copy-btn {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}
.wcc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.wcc-mp-hint {
  font-size: 10.5px;
  color: var(--ink-3);
}
.wcc-record-btn {
  height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 820;
  cursor: pointer;
}

.perks-flywheel-foot {
  margin: 11px 0 2px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
  font-size: 10.5px;
  line-height: 1.48;
  color: var(--ink-3);
}

/* ==================== V21 守麦信箱 · 存钱与资产累积目标锚点笺 + 预算目标输入块 ==================== */
#budgetOverlay {
  z-index: 195;
}

.mailbox-goal-anchor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FBF6EA 0%, #F4E9D2 100%);
  border: 1px solid #DFCCA5;
}
[data-theme="night"] .mailbox-goal-anchor {
  background: linear-gradient(135deg, #222B3C 0%, #1A2231 100%);
  border-color: rgba(251, 191, 36, 0.28);
}
.mga-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mga-wish {
  font-size: 12px;
  font-weight: 820;
  color: #5C4324;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="night"] .mga-wish {
  color: #FDE68A;
}
.mga-stat {
  font-size: 10.5px;
  font-weight: 680;
  color: #846845;
}
[data-theme="night"] .mga-stat {
  color: #CBD5E1;
}
.mga-edit-btn {
  flex-shrink: 0;
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(133, 88, 35, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: #78350F;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
[data-theme="night"] .mga-edit-btn {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(15, 23, 42, 0.55);
  color: #FCD34D;
}

.budget-wish-block {
  margin: 12px 0 14px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-align: left;
}
.bwb-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.bwb-input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
}
.bwb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.bwb-chips button {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}
.bwb-chips button:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ==================== V22 去拟人化「资产」净值总览页 + 岛上好物柜弹层 + 丰收归篓与风车磨坊收购闭环 ==================== */
#curioCabinetOverlay {
  z-index: 185;
}
#assetModalOverlay,
#accountCalibrateOverlay,
#harvestSettleOverlay {
  z-index: 205;
}

.curio-drawer-sheet {
  max-width: 552px;
  max-height: min(89dvh, 790px);
  overflow-y: auto;
}

.curio-goto-nw-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(133, 88, 35, 0.34);
  background: rgba(255, 255, 255, 0.78);
  color: #78350F;
  font-size: 11.5px;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.curio-goto-nw-btn:hover {
  transform: translateY(-1px);
  border-color: #8C5828;
}
[data-theme="night"] .curio-goto-nw-btn {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(15, 23, 42, 0.58);
  color: #FDE68A;
}

/* 1. 资产页核心大卡（专业直白金融质感，一眼看懂总净资产 = 资金账户 + 实物好物） */
.networth-hero-card {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 15px;
  margin-bottom: 12px;
  background: linear-gradient(142deg, #102B22 0%, #174133 58%, #1C513E 100%);
  border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow: 0 14px 32px -12px rgba(16, 43, 34, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  overflow: hidden;
}
[data-theme="night"] .networth-hero-card {
  background: linear-gradient(142deg, #111B2B 0%, #152538 56%, #13332C 100%);
  border-color: rgba(52, 211, 153, 0.32);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nwh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nwh-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nwh-eyebrow {
  font-size: 12.5px;
  font-weight: 780;
  color: rgba(241, 245, 249, 0.88);
  letter-spacing: 0.02em;
}
.nwh-formula-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #A7F3D0;
  font-size: 10.5px;
  font-weight: 760;
}
.nwh-eye-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nwh-eye-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nwh-total-num {
  display: block;
  margin: 8px 0 13px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #FFFFFF;
}

.nwh-dual-pillars {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.nwh-pillar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  min-width: 0;
}
.nwh-pillar.is-clickable {
  cursor: pointer;
}
.nwh-pillar.is-clickable:hover span {
  color: #6EE7B7;
}
.nwh-pillar span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.78);
  transition: color 0.14s ease;
}
.nwh-pillar strong {
  font-size: 16.5px;
  font-weight: 860;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nwh-pillar-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
}

.nwh-month-strip {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.78);
}
.nwh-month-strip b {
  font-weight: 820;
  color: #E2E8F0;
  margin-left: 2px;
}

.link-pill-btn.primary-tint {
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.34);
  color: var(--accent-ink);
  font-weight: 820;
}

/* 2. 资金账户 2×2 卡片网格 */
.nw-accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.nw-acc-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.nw-acc-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.nwa-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nwa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nwa-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-1);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nwa-edit-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 760;
}
.nwa-bal {
  font-size: 17px;
  font-weight: 880;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}
.nwa-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. 资产页 · 实物好物清单行 */
.nw-physical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nw-empty-assets {
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
}
.nw-phy-row {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.nw-phy-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nw-phy-row.is-retired {
  opacity: 0.72;
}
.nwp-thumb {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #EFE6D5 100%);
  border: 1px solid rgba(180, 152, 112, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="night"] .nwp-thumb {
  background: radial-gradient(circle at 50% 42%, #2B374E 0%, #182030 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.nwp-thumb img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.nwp-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nwp-main strong {
  font-size: 13.5px;
  font-weight: 840;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nwp-ret-tag {
  font-style: normal;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-3);
  margin-left: 4px;
}
.nwp-main small {
  font-size: 11px;
  color: var(--ink-2);
}
.nwp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.nwp-right strong {
  font-size: 15px;
  font-weight: 880;
  color: var(--ink-1);
}
.nwp-right small {
  font-size: 10px;
  font-weight: 760;
  color: #059669;
}
[data-theme="night"] .nwp-right small {
  color: #34D399;
}
.nw-phy-row.is-retired .nwp-right small {
  color: var(--ink-3);
}

/* 4. 田间丰收归篓结算弹卡（收麦 → 变积分 100% 肉眼可见） */
.harvest-settle-card {
  max-width: 380px;
  text-align: center;
}
.hs-quote-box {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
[data-theme="night"] .hs-quote-box {
  background: linear-gradient(145deg, #252E42 0%, #1B2333 100%);
  border-color: rgba(251, 191, 36, 0.35);
}
.hsq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #78350F;
}
[data-theme="night"] .hsq-row {
  color: #E2E8F0;
}
.hsq-row strong {
  font-weight: 840;
  color: #92400E;
}
[data-theme="night"] .hsq-row strong {
  color: #FDE68A;
}
.hsq-row.total {
  padding-top: 7px;
  border-top: 1px dashed rgba(180, 83, 9, 0.28);
  font-weight: 800;
}
[data-theme="night"] .hsq-row.total {
  border-top-color: rgba(251, 191, 36, 0.25);
}
.hsq-row.total strong {
  color: #B45309;
  font-size: 13.5px;
}
[data-theme="night"] .hsq-row.total strong {
  color: #FBBF24;
}

/* 5. 风车磨坊 · 4 步变现流程条 + 磨坊收购柜台 + 麦种回收 + 积分流水 */
.mill-process-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.mps-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 760;
  color: var(--ink-2);
  white-space: nowrap;
}
.mps-step b {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 840;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mps-step.is-highlight {
  color: #B45309;
  font-weight: 860;
}
.mps-step.is-highlight b {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
[data-theme="night"] .mps-step.is-highlight {
  color: #FBBF24;
}
[data-theme="night"] .mps-step.is-highlight b {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: #FDE68A;
}
.mps-arrow {
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
}

.mill-counter-card {
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}
.mill-counter-card.has-sheaves {
  background: linear-gradient(155deg, #FFFDF7 0%, #FEF5DC 100%);
  border: 1.5px solid #EAB308;
  box-shadow: 0 8px 20px -8px rgba(180, 83, 9, 0.22);
}
[data-theme="night"] .mill-counter-card.has-sheaves {
  background: linear-gradient(155deg, #242E42 0%, #1C2536 100%);
  border-color: rgba(251, 191, 36, 0.48);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}
.mcc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mcc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 10.5px;
  font-weight: 820;
}
[data-theme="night"] .mcc-badge {
  background: rgba(251, 191, 36, 0.18);
  color: #FDE68A;
}
.mcc-head h3 {
  margin: 5px 0 0;
  font-size: 15px;
  font-weight: 860;
  color: var(--ink-1);
}
.mcc-est-pts {
  font-size: 20px;
  font-weight: 900;
  color: #B45309;
  white-space: nowrap;
}
[data-theme="night"] .mcc-est-pts {
  color: #FBBF24;
}
.mcc-price-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
}
.mcc-sheaf-list {
  margin: 10px 0 11px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(180, 83, 9, 0.28);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="night"] .mcc-sheaf-list {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(251, 191, 36, 0.25);
}
.mcc-sheaf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-1);
}
.mcc-sheaf-row strong {
  color: #B45309;
  font-weight: 860;
}
[data-theme="night"] .mcc-sheaf-row strong {
  color: #FBBF24;
}
.mcc-sell-primary-btn {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 860;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(180, 83, 9, 0.42);
  transition: transform 0.14s ease;
}
.mcc-sell-primary-btn:hover {
  transform: translateY(-1px);
}
[data-theme="night"] .mcc-sell-primary-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
}

.mcc-desc {
  margin: 8px 0 11px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.mcc-go-farm-btn {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 840;
  cursor: pointer;
}

.mill-seed-recycle-card {
  border-radius: 15px;
  padding: 11px 13px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}
.msr-left {
  min-width: 0;
  flex: 1;
}
.msr-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.msr-title-row strong {
  font-size: 13px;
  font-weight: 840;
  color: var(--ink-1);
}
.msr-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 760;
}
.msr-left p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-2);
}
.msr-sell-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11.5px;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
}
.msr-sell-btn:hover:not(:disabled) {
  border-color: #D97706;
  color: #B45309;
}
[data-theme="night"] .msr-sell-btn:hover:not(:disabled) {
  border-color: #FBBF24;
  color: #FBBF24;
}
.msr-sell-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mill-points-ledger-box {
  border-radius: 15px;
  padding: 11px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mpl-head {
  font-size: 11.5px;
  font-weight: 820;
  color: var(--ink-2);
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border);
}
.mpl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mpl-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mpl-left strong {
  font-size: 12.5px;
  font-weight: 780;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mpl-left small {
  font-size: 10.5px;
  color: var(--ink-3);
}
.mpl-delta {
  font-size: 13px;
  font-weight: 880;
  white-space: nowrap;
}
.mpl-delta.plus {
  color: #059669;
}
[data-theme="night"] .mpl-delta.plus {
  color: #34D399;
}
.mpl-delta.minus {
  color: #B45309;
}
[data-theme="night"] .mpl-delta.minus {
  color: #FBBF24;
}
.mill-empty-ledger {
  padding: 12px;
  border-radius: 13px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 420px) {
  .nwh-total-num {
    font-size: 28px;
  }
  .mill-process-stepper {
    padding: 7px 8px;
  }
  .mps-step {
    font-size: 10px;
  }
  .mill-seed-recycle-card {
    flex-direction: column;
    align-items: stretch;
  }
  .msr-sell-btn {
    width: 100%;
  }
}

.workshop-tabs.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workshop-tabs.cols-3 .wtab-btn {
  padding: 7px 4px;
  font-size: 12px;
  white-space: nowrap;
}


/* ==================== V23 交互式 4 步聚光灯新手引导 + 首日快捷记账条 + 记账足迹里程碑图鉴样式 ==================== */
.csd-tutorial-pill {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.csd-tutorial-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}
[data-theme="night"] .csd-tutorial-pill {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.14);
  color: #6EE7B7;
}

/* 新岛主首日 3 步实时进度浮条（位于画风胶囊上方，完成 3 步自动毕业隐藏） */
.rookie-progress-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 188px;
  max-width: 520px;
  margin: 0 auto;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.38);
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 26;
}
[data-theme="night"] .rookie-progress-banner {
  background: rgba(20, 29, 44, 0.92);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.52);
}
.rpb-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.rpb-step-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #065F46;
  font-size: 10px;
  font-weight: 840;
}
[data-theme="night"] .rpb-step-pill {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}
.rpb-text {
  font-size: 11.5px;
  font-weight: 760;
  color: var(--ink-1);
  line-height: 1.35;
}
.rpb-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.rpb-cta {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 840;
  cursor: pointer;
  white-space: nowrap;
}
.rpb-guide-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}
.rpb-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

/* 记一笔抽屉内 · 首日 0 账单新手 1 秒试填条 */
.rookie-first-bill-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  margin: 0 14px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
[data-theme="night"] .rookie-first-bill-bar {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}
.rfb-label {
  font-size: 11px;
  font-weight: 820;
  color: var(--accent-ink);
}
.rfb-chip {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
}
.rfb-chip.zero {
  border-color: rgba(14, 165, 233, 0.4);
  color: #0284C7;
}
[data-theme="night"] .rfb-chip.zero {
  color: #38BDF8;
}

/* 4 步交互式聚光灯新手引导浮层 */
.onboarding-coach-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  overflow: hidden;
}
.onboarding-spotlight-ring {
  position: fixed;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(9, 16, 28, 0.64), 0 0 0 3px #34D399, 0 0 24px rgba(52, 211, 153, 0.65);
  transition: left 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.26s ease;
  animation: spotlightPulse 2s ease-in-out infinite;
}
@keyframes spotlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 9999px rgba(9, 16, 28, 0.64), 0 0 0 3px #34D399, 0 0 22px rgba(52, 211, 153, 0.55);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(9, 16, 28, 0.64), 0 0 0 5px #FBBF24, 0 0 30px rgba(251, 191, 36, 0.65);
  }
}

.onboarding-coach-card {
  position: fixed;
  z-index: 262;
  padding: 15px 16px 14px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 44px -10px rgba(9, 16, 28, 0.42);
  color: #0F172A;
  transition: top 0.24s ease, bottom 0.24s ease, left 0.24s ease;
}
[data-theme="night"] .onboarding-coach-card {
  background: #1B2537;
  border-color: rgba(52, 211, 153, 0.45);
  color: #F8FAFC;
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.68);
}

.occ-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.occ-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #065F46;
  font-size: 10.5px;
  font-weight: 840;
}
[data-theme="night"] .occ-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}
.occ-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.occ-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}
.occ-dots i.done {
  background: #10B981;
}
.occ-dots i.active {
  width: 18px;
  background: #10B981;
}
.occ-skip-btn {
  padding: 2px 7px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 740;
  cursor: pointer;
}

.occ-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 880;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.occ-desc {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.54;
  color: var(--ink-2);
}
.occ-tip {
  padding: 7px 10px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  font-size: 11px;
  line-height: 1.42;
  color: var(--ink-2);
  font-weight: 700;
}
.occ-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.occ-btn {
  height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  white-space: nowrap;
}
.occ-btn.ghost {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-1);
}
.occ-btn.soft {
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.occ-btn.primary {
  border: none;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.44);
}

/* 麦岛图鉴馆 · 记账足迹里程碑纪念章卡片样式 */
.codex-specimen-card.milestone-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.codex-specimen-card.milestone-card.locked {
  cursor: default;
}
.codex-specimen-card.milestone-card.locked .csc-3d-img {
  filter: grayscale(0.75) opacity(0.56);
}
.ms-inscription-pill {
  margin-top: 4px;
  padding: 5px 7px;
  border-radius: 9px;
  background: linear-gradient(135deg, #FEF9E7 0%, #FDEEC8 100%);
  border: 1px solid rgba(217, 119, 6, 0.26);
  color: #78350F;
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="night"] .ms-inscription-pill {
  background: rgba(251, 191, 36, 0.13);
  border-color: rgba(251, 191, 36, 0.28);
  color: #FDE68A;
}

.ms-card-action-btn {
  margin-top: auto;
  padding: 0 8px;
  height: 29px;
  width: 100%;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
  margin-top: 7px;
  transition: transform 0.14s ease;
}
.ms-card-action-btn:hover {
  transform: translateY(-1px);
}
.ms-card-action-btn.claim {
  border: none;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(180, 83, 9, 0.42);
}
[data-theme="night"] .ms-card-action-btn.claim {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
}
.ms-card-action-btn.go {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.ms-card-inscribed-foot {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 760;
  color: #059669;
  text-align: center;
}
[data-theme="night"] .ms-card-inscribed-foot {
  color: #34D399;
}

.ms-card-action-btn {
  white-space: nowrap;
  font-size: 10.5px;
}
.cff-reward-strip {
  gap: 8px;
}
.cff-reward-strip span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cff-reward-strip span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}
