/* ==========================================================================
   易掌柜 H5 样式表 · 1:1 像素级对齐 Android 原生 App 规范
   ========================================================================== */

:root {
  /* 基础与表面色（源自 Android colors.xml） */
  --page-bg: #F5F5F7;
  --login-bg: #F5F5F7;
  --surface-card: #FFFFFF;
  --surface-inset: #F7F8FA;
  --control-bg: #EDEDF2;
  --kpi-card-bg: #111113;
  --border-subtle: #E5E5EA;
  --divider-line: #EBEBF0;

  /* 文字层级 */
  --obsidian-black: #1C1C1E;
  --text-primary: #1C1C1E;
  --text-body: #36363D;
  --text-secondary: #55555F;
  --text-tertiary: #6B6B75;
  --text-sub: var(--text-tertiary);
  --text-muted: #8E8E93;
  --login-gray-text: #8E8E93;
  --done-text: #8D8D8D;
  --text-white: #FFFFFF;
  --border-divider: var(--divider-line);
  --border-light: var(--border-subtle);

  /* 状态与强调色 */
  --dot-online: #15803D;
  --status-green-text: #237348;
  --status-green-bg: #EAF6EE;
  --status-red-text: #B42318;
  --status-red-bg: #FDEDEB;
  --todo-overdue: #D70015;
  --achuan-avatar-bg: #F1EEFB;
  --achuan-avatar-fg: #7537E8;

  /* 字体与安全区 */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  scrollbar-width: none !important;
}

html {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--ios-top-bg, var(--page-bg));
  touch-action: manipulation;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input, textarea, select {
  user-select: auto;
  font-family: inherit;
}

body {
  font-family: var(--font-family);
  background-color: var(--page-bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  background-color: var(--page-bg);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.app-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* ==========================================================================
   顶栏 TopBar（对齐 activity_main.xml: 52dp 灰底居左店名）
   ========================================================================== */
.top-nav {
  height: 52px;
  min-height: 52px;
  background-color: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.top-nav.home-top-nav {
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
}

.top-nav .store-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
  cursor: pointer;
  min-height: 32px;
  padding: 0 12px;
  background: var(--surface-card);
  border-radius: 999px;
}

.top-nav .store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--obsidian-black);
  flex: 0 0 auto;
}

.top-nav .store-selector .arrow {
  font-size: 10px;
  color: var(--obsidian-black);
  margin-left: 1px;
}

.top-nav .nav-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--obsidian-black);
}

.top-nav .nav-action {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.subpage-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.subpage-nav .nav-title {
  text-align: center;
}

.subpage-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--obsidian-black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.subpage-text-action {
  width: 44px;
  height: 44px;
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

.subpage-text-action:disabled {
  color: var(--text-muted);
  cursor: default;
}

.subpage-nav-spacer {
  width: 44px;
}

/* ==========================================================================
   滚动容器
   ========================================================================== */
.scroll-container {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 24px;
}

.scroll-container.home-scroll {
  padding-left: 16px;
  padding-right: 16px;
}

.scroll-container.home-scroll.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ==========================================================================
   登录视图
   ========================================================================== */
.login-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: max(28px, calc(var(--safe-top) + 20px)) 20px max(28px, calc(var(--safe-bottom) + 20px));
  background-color: var(--login-bg);
  overflow-y: auto;
}

.login-content {
  width: 100%;
  max-width: 380px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-content > * {
  flex-shrink: 0;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.login-avatar-box {
  width: 64px;
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-avatar-box > .login-avatar-fallback,
.login-avatar-box > .chef-avatar {
  display: block;
  width: 64px;
  height: 74px;
  object-fit: contain;
}

.chef-avatar {
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chef-avatar .chef-puppet,
.chef-avatar .chef-hat,
.chef-avatar .chef-face {
  transform-box: view-box;
}

.chef-avatar .chef-eye {
  pointer-events: none;
}

.login-brand-title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--obsidian-black);
  letter-spacing: -0.5px;
}

.login-brand-subtitle {
  margin-top: 3px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
}

.login-form {
  width: 100%;
  margin-top: 28px;
  padding: 24px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
}

.login-form-heading {
  margin-bottom: 24px;
}

.login-form-heading h1 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.login-form-heading p {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.login-view .login-field {
  margin-bottom: 0;
}

.login-view .login-field + .login-field {
  margin-top: 18px;
}

.login-field {
  margin-bottom: 16px;
}

.login-field-label {
  font-size: 13px;
  color: var(--login-gray-text);
  margin-bottom: 6px;
}

.login-view .login-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-body);
  line-height: 20px;
}

.login-view .login-input {
  height: 50px;
  border-width: 1px;
  border-color: #DCDCE1;
  border-radius: 10px;
  background: #FAFAFB;
  font-size: 16px;
}

.login-view .login-input:focus {
  border-color: var(--obsidian-black);
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--obsidian-black);
}

.login-view .login-input.is-invalid {
  border-color: #D70015;
  box-shadow: 0 0 0 1px rgba(215, 0, 21, 0.16);
}

.login-password-control {
  position: relative;
}

.login-view .login-password-control .login-input {
  padding-right: 50px;
}

.login-password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}

.login-password-toggle[aria-pressed="true"] {
  color: var(--obsidian-black);
  background: var(--control-bg);
}

.login-input {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid var(--obsidian-black);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--obsidian-black);
  outline: none;
  transition: border-color 0.15s ease;
}

.login-input::placeholder {
  color: var(--login-gray-text);
}

.login-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.login-input.is-invalid,
.login-input.is-invalid:focus {
  border-color: #D70015;
  box-shadow: 0 0 0 1px rgba(215, 0, 21, 0.16);
}

.login-input:disabled {
  background: #F5F5F7;
  color: var(--text-muted);
  opacity: 1;
}

.login-field-error {
  min-height: 17px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #D70015;
}

.login-field-error:empty {
  min-height: 0;
  margin-top: 0;
}

.login-agreement-error {
  margin-top: 4px;
}

.login-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  cursor: pointer;
}

.login-view .login-checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 44px;
  gap: 0 8px;
  margin-top: 8px;
}

.login-view .login-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  border-radius: 5px;
}

.login-view .login-checkbox-label {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 22px;
}

.login-view .login-agreement-row {
  align-items: flex-start;
  margin: 0;
  cursor: default;
}

.login-agreement-check {
  width: 44px;
  height: 44px;
  margin: 0 -12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.login-agreement-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  min-width: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--text-secondary);
}

.login-agreement-copy > label {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  cursor: pointer;
}

.login-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.login-policy-links button {
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--obsidian-black);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #C7C7CC;
  text-underline-offset: 4px;
  cursor: pointer;
}

.login-view :is(button, input[type="checkbox"]):focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 3px;
}

.login-checkbox-row:has(input:disabled) {
  cursor: default;
}

.login-checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #C7C7CC;
  border-radius: 4px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  position: relative;
}

.login-checkbox-row input[type="checkbox"][aria-invalid="true"] {
  border-color: #D70015;
  box-shadow: 0 0 0 2px rgba(215, 0, 21, 0.1);
}

.login-checkbox-row input[type="checkbox"]:checked {
  background: var(--obsidian-black);
  border-color: var(--obsidian-black);
}

.login-checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
}

.login-checkbox-label {
  font-size: 13px;
  color: var(--obsidian-black);
}

.login-error-tip {
  display: none;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--status-red-bg);
  color: var(--status-red-text);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.login-error-tip.is-visible {
  display: block;
}

.btn-black-login {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  background: #050505;
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.btn-black-login:active {
  background: #2C2C2E;
}

.btn-black-login:disabled {
  background: #EDEDF0;
  color: #8E8E93;
  cursor: default;
}

.btn-black-login.is-loading {
  background: #050505;
  color: #FFFFFF;
}

.login-btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: loginSpin 0.75s linear infinite;
}

.btn-black-login.is-loading .login-btn-spinner {
  display: block;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

.login-footer-notice {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  line-height: 22px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   首页组件（对齐 fragment_board.xml & 02 设计稿）
   ========================================================================== */
/* 1. 问候白卡 */
.greeting-card {
  margin: 2px 0 0;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 12px 16px 12px 14px;
  display: flex;
  align-items: center;
  min-height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.025);
  cursor: pointer;
}

.greeting-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--achuan-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.greeting-avatar img,
.greeting-avatar .chef-avatar {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.greeting-avatar .chef-avatar {
  width: 38px;
  height: 44px;
}

.greeting-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.greeting-identity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.greeting-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--obsidian-black);
}

.greeting-role {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--obsidian-black);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.greeting-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dot-online);
}

.greeting-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.greeting-arrow {
  font-size: 20px;
  color: #C0C2C8;
  margin-left: 8px;
}

/* 2. 周日历横条 */
.home-week-header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  margin: 12px 0 2px;
}

.home-week-nav {
  appearance: none;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.06);
  color: var(--obsidian-black);
  font-family: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.home-week-nav:disabled {
  opacity: 0.22;
  cursor: default;
}

.home-week-range {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-week-today {
  appearance: none;
  flex: 0 0 auto;
  min-width: 52px;
  border: 0;
  padding: 7px 0;
  background: transparent;
  color: var(--obsidian-black);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.home-date-strip {
  margin: 2px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.date-chip {
  appearance: none;
  border: 0;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1px;
  min-height: 60px;
  border-radius: 12px;
  background: transparent;
  color: var(--obsidian-black);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.date-chip:not(.disabled):active {
  transform: scale(0.96);
}

.date-chip.active {
  background: transparent;
}

.date-chip .chip-week {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 16px;
  margin-bottom: 2px;
}

.date-chip.active .chip-week {
  color: var(--text-tertiary);
}

.date-chip .chip-day {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.date-chip.active .chip-day {
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.date-chip .chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--obsidian-black);
  margin-top: 3px;
}

.date-chip.active .chip-dot {
  background-color: var(--obsidian-black);
}

.date-chip .chip-dot.hidden {
  opacity: 0;
}

.date-chip.disabled {
  opacity: 0.36;
  cursor: default;
}

.date-chip.disabled .chip-week,
.date-chip.disabled .chip-day {
  color: #8E8E93;
}

.policy-update-copy {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

.policy-update-copy p {
  margin: 0;
}

.policy-update-copy p + p {
  margin-top: 6px;
}

.policy-fulltext {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}

.policy-fulltext section + section {
  margin-top: 18px;
}

.policy-fulltext h4 {
  margin: 0 0 6px;
  color: var(--obsidian-black);
  font-size: 14px;
}

.policy-fulltext p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

/* 3. 营业额 KPI 卡片（#111113 黑曜石卡） */
.kpi-card {
  margin: 10px 0 0;
  background: var(--kpi-card-bg);
  border-radius: 14px;
  padding: 13px 18px 14px;
  color: #FFFFFF;
  min-height: 92px;
}

.kpi-card-button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.kpi-card-button:active {
  opacity: 0.86;
}

.kpi-badge {
  font-size: 13px;
  color: #E5E5EA;
}

.kpi-amount {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: #FFFFFF;
  margin-top: 2px;
}

.kpi-split {
  font-size: 13px;
  color: #D1D1D6;
  margin-top: 1px;
}

.kpi-card-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi-empty-value {
  margin-top: 3px;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.kpi-empty-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #C7C7CC;
}

/* 4. 待办与已完成标题区 */
.section-header {
  margin: 20px 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header .title {
  font-size: 17px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.section-header .count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.section-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-readonly .count {
  display: none;
}

.todo-status-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--surface-inset);
  color: var(--text-body);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.section-header-completed {
  margin-top: 20px;
}

/* 5. 待办与已完成白卡 */
.todo-card {
  margin: 0;
  background: var(--surface-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.todo-row {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  position: relative;
}

.todo-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 0;
  height: 1px;
  background-color: var(--divider-line);
}

.todo-icon-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F0F0F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.todo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.todo-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--obsidian-black);
}

.todo-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 3px;
  line-height: 1.35;
}

.todo-subtitle.is-overdue,
.todo-meta-time.is-overdue {
  color: var(--todo-overdue);
}

.todo-row-overdue .todo-title,
.todo-row-overdue .todo-subtitle,
.todo-row-overdue .todo-meta-time {
  color: var(--todo-overdue);
}

.todo-row-past:not(.todo-row-overdue) .todo-title {
  color: var(--text-tertiary);
}

.todo-action-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  flex-shrink: 0;
}

.todo-meta-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 胶囊处理按钮（对齐 bg_btn_action_black.xml） */
.btn-capsule-action {
  min-width: 52px;
  min-height: 28px;
  padding: 5px 12px;
  background: var(--obsidian-black);
  border: none;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 已完成行样式 */
.done-title {
  font-size: 15px;
  color: var(--done-text);
}

.done-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--done-text);
}

.done-time {
  font-size: 12px;
  color: var(--done-text);
}

.icon-check-green {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.todo-row-completed .todo-icon-tile {
  background: #F2F2F4;
}

.todo-row-viewable {
  cursor: pointer;
}

.todo-row-viewable:active {
  background: var(--surface-inset);
}

.todo-row-viewable:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: -2px;
}

.todo-detail-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

.todo-row-completed:not(.todo-row-viewable) .todo-action-zone {
  padding-right: 22px;
}

.todo-readonly {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-inset);
  color: var(--text-tertiary);
  font-size: 11px;
  white-space: nowrap;
}

.home-achuan-tip {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.home-tip-name {
  flex-shrink: 0;
  margin-right: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.home-tip-text {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.todo-empty {
  min-height: 92px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.todo-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.todo-empty-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.home-load-error {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.home-load-error .btn-black {
  width: auto;
  margin-top: 16px;
  padding: 0 18px;
}

/* ==========================================================================
   底栏 BottomNav（全宽白底 + 中心头像上浮）
   ========================================================================== */
.bottom-nav {
  --nav-height: clamp(68px, 21.87vw, 96px);
  --nav-avatar: clamp(44px, 14.4vw, 64px);
  --nav-avatar-image: clamp(32px, 10.13vw, 46px);
  --nav-avatar-lift: clamp(-34px, -7.47vw, -24px);
  --nav-icon: clamp(19px, 5.6vw, 24px);
  --nav-label-size: clamp(10px, 2.93vw, 12px);
  --nav-label-gap: clamp(3px, 1.07vw, 5px);
  --nav-top-pad: clamp(8px, 2.67vw, 12px);
  flex-shrink: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background-color: var(--surface-card);
  border-top: 1px solid var(--divider-line);
  display: flex;
  align-items: stretch;
  padding: var(--nav-top-pad) 0 env(safe-area-inset-bottom, 0px);
  overflow: visible;
  z-index: 100;
}

.nav-tab {
  flex: 1;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-tab .tab-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.nav-tab .tab-icon svg {
  width: var(--nav-icon);
  height: var(--nav-icon);
}

.nav-tab .tab-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  display: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #ef4444;
}

.nav-tab .tab-dot.is-visible {
  display: block;
}

.nav-tab .tab-label {
  font-size: var(--nav-label-size);
  color: var(--text-muted);
  margin-top: var(--nav-label-gap);
}

.nav-tab.active .tab-icon,
.nav-tab.active .tab-label {
  color: var(--obsidian-black);
  font-weight: bold;
}

/* 阿川中心头像 Tab */
.nav-tab.tab-achuan {
  justify-content: center;
  overflow: visible;
}

.nav-tab.tab-achuan .avatar-circle {
  position: absolute;
  top: min(var(--nav-avatar-lift), calc(24px - var(--nav-avatar)));
  left: calc(50% - var(--nav-avatar) / 2);
  width: var(--nav-avatar);
  height: var(--nav-avatar);
  flex: 0 0 var(--nav-avatar);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}

.nav-tab.tab-achuan .avatar-circle img {
  width: var(--nav-avatar-image);
  height: var(--nav-avatar-image);
  margin-bottom: 4px;
}

.nav-tab.tab-achuan .avatar-circle .chef-avatar {
  width: var(--nav-avatar);
  height: var(--nav-avatar);
  margin-bottom: 0;
}

/* ==========================================================================
   全局弹窗与 Toast
   ========================================================================== */
.numeric-input-toolbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--numeric-input-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 220;
  width: min(100%, 480px);
  height: 48px;
  padding: 0 16px;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateX(-50%);
  background: rgba(244, 244, 247, 0.98);
  box-shadow: 0 -0.5px 0 rgba(0, 0, 0, 0.08);
}

.numeric-input-toolbar.is-visible {
  display: flex;
}

.numeric-input-toolbar-label {
  min-width: 0;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.numeric-input-toolbar-done {
  flex: none;
  min-width: 64px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #111113;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

input.is-out-of-range,
textarea.is-out-of-range {
  border-color: #DC2626 !important;
  border-width: 2px !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 1px #DC2626 !important;
  color: #DC2626 !important;
}

.numeric-input-error {
  margin: 7px 0 2px;
  padding: 10px 14px;
  border: 1px solid #F3C3BF;
  border-radius: 12px;
  background: #FFF1F0;
  color: #C70012;
  font-size: 13px;
  line-height: 1.35;
}

.yield-error-slot + .numeric-input-error {
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #D70015;
  font-size: 14px;
  line-height: 1.3;
}

.form-input.input-yield-rate {
  width: 65px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #111113;
  border-radius: 9px;
  background: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.yield-input-label {
  min-width: 0;
  flex: 1 1 auto;
}

.yield-input-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.yield-input-unit {
  flex: none;
  color: #111113;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.input-yield-rate.yield-missing {
  border: 1.5px dashed #B45309;
  background: #FFFFFF;
}

.input-yield-rate:focus {
  border: 2px solid #111113;
  box-shadow: 0 0 0 3px #E4E4E7;
  outline: none;
}

.input-yield-rate.is-out-of-range {
  border-style: solid;
}

.yield-validation-note {
  margin: 10px 2px 0;
  color: #71717A;
  font-size: 12.5px;
  line-height: 1.5;
}

.toast-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.toast-box {
  background: rgba(28, 28, 30, 0.9);
  color: #FFFFFF;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 80%;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-sheet {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: 18px 18px 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom)) 20px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--obsidian-black);
}

.modal-close {
  font-size: 22px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   通用表单与通用按钮规范
   ========================================================================== */
.form-card {
  margin: 14px 16px;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  color: var(--login-gray-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--obsidian-black);
  outline: none;
}

.form-input:focus {
  border-color: var(--obsidian-black);
}

.btn-black {
  width: 100%;
  height: 48px;
  background: var(--obsidian-black);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-black:active {
  background: #2C2C2E;
}

.btn-secondary {
  height: 48px;
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   卡片、页面区块与交互状态
   ========================================================================== */
.card {
  width: 100%;
  min-width: 0;
  background: var(--surface-card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}

/* 录入营业额（设计稿 03） */
.sales-scroll {
  padding: 0 16px 24px;
}

.sales-entry {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.sales-entry-lead {
  margin: 12px 6px 30px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.sales-choice {
  gap: 0;
}

.sales-method-card {
  width: 100%;
  min-height: 0;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: var(--surface-card);
  color: var(--text-primary);
  padding: 16px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.sales-method-card span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sales-method-card strong {
  font-size: 16px;
  font-weight: 700;
}

.sales-method-card small {
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.45;
}

.sales-method-arrow,
.sales-file-arrow {
  color: var(--text-muted);
  font-size: 26px;
  flex: 0 0 auto;
}

.sales-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  background: var(--surface-card);
  border-radius: 12px;
  padding: 0 16px;
  margin-bottom: 12px;
}

.sales-field-label {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.sales-input {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  text-align: right;
  outline: none;
}

.sales-date-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}

.sales-amount-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.sales-amount-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: right;
  outline: none;
}

.sales-field-help {
  margin: 0 6px 24px;
  color: var(--text-muted);
  font-size: 11px;
}

.sales-primary-btn {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
}

.sales-file-picker {
  position: relative;
  min-height: 92px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--surface-card);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
}

.sales-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sales-file-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sales-file-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.sales-file-copy small,
.sales-import-note {
  color: var(--text-muted);
  font-size: 11px;
}

.sales-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.sales-import-note {
  margin: 14px 6px auto;
}

.sales-overwrite-copy {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.sales-overwrite-copy p + p {
  margin-top: 5px;
}

.store-info-sheet {
  padding: 6px 0 4px;
}

/* ==========================================================================
   我的：记录与分析独立页
   ========================================================================== */
.my-detail-scroll {
  padding-bottom: 24px;
}

.detail-loading,
.detail-state {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

.detail-loading-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #D9D9DE;
  border-top-color: var(--obsidian-black);
  border-radius: 50%;
  animation: detailSpin 0.8s linear infinite;
}

@keyframes detailSpin {
  to { transform: rotate(360deg); }
}

.detail-state {
  border-radius: 16px;
  background: var(--surface-card);
  padding: 28px 20px;
}

.detail-state-error {
  margin-top: 16px;
}

.detail-empty-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px dashed #C9C9CF;
  background: linear-gradient(135deg, #FAFAFA, #F0F0F3);
}

.detail-state-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.detail-state-copy {
  max-width: 270px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.detail-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 15px;
  background: var(--surface-card);
}

.detail-toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.detail-toolbar input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: #F7F8FA;
  color: var(--text-primary);
  font-size: 11px;
}

.detail-toolbar button {
  width: 100%;
}

.btn-block {
  width: 100%;
  height: 44px;
  margin-bottom: 14px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}

.btn-danger-text {
  color: #B42318;
  border: 1px solid #F1C9C5;
  background: #FFF8F7;
}

.detail-cycle-editor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-cycle-editor input {
  width: 64px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #F7F8FA;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.detail-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

.detail-input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #F7F8FA;
  color: var(--text-primary);
  font-size: 13px;
}

.detail-dialog-copy {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.recipe-mode-switch {
  display: flex;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.recipe-mode-btn {
  flex: 1;
  height: 34px;
  border: 1px solid #ECECEF;
  border-radius: 11px;
  background: #FFFFFF;
  color: #3F3F46;
  font-size: 14px;
  font-weight: 500;
}

.recipe-mode-btn span {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.recipe-mode-btn.active {
  background: var(--obsidian-black);
  border-color: var(--obsidian-black);
  color: #FFFFFF;
  font-weight: 700;
}

.recipe-mode-btn.active span {
  color: rgba(255, 255, 255, 0.65);
}

.recipe-list-tools {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px;
}

.recipe-filter-row {
  display: flex;
  gap: 7px;
}

.recipe-filter {
  flex: 1;
  height: 30px;
  border: 1px solid #E4E4E8;
  border-radius: 9px;
  background: #FFFFFF;
  color: #6B6B73;
  font-size: 12px;
  font-weight: 600;
}

.recipe-filter.active {
  background: #111113;
  border-color: #111113;
  color: #FFFFFF;
}

.detail-form textarea.detail-input {
  resize: vertical;
  min-height: 92px;
  padding-top: 10px;
}

.h5-create-form {
  overflow: hidden;
  border: 1px solid #E5E5E7;
  border-radius: 14px;
  background: #FFFFFF;
}

.h5-create-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #EEEEF0;
}

.h5-create-row:last-child {
  border-bottom: 0;
}

.h5-create-row--top {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.h5-create-label {
  flex: 0 0 82px;
  color: #1C1C1E;
  font-size: 15px;
  line-height: 24px;
}

.h5-create-value {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 15px;
  line-height: 24px;
  text-align: right;
}

.h5-create-control {
  min-width: 0;
  flex: 1;
}

.h5-create-input {
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 15px;
  line-height: 24px;
  text-align: right;
}

.h5-create-input::placeholder {
  color: #A1A1A6;
}

.h5-create-input.is-invalid {
  color: #B42318;
}

.h5-create-error {
  display: none;
  margin-top: 5px;
  color: #B42318;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.h5-create-error.is-visible {
  display: block;
}

.h5-create-tip {
  margin: 12px 4px 0;
  color: #8E8E93;
  font-size: 12px;
  line-height: 1.6;
}

.supplier-edit-sheet .modal-actions {
  margin-top: 16px !important;
}

.supplier-edit-form {
  margin-top: 8px;
}

.supplier-edit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
}

.supplier-edit-label {
  flex: 0 0 80px;
  height: 44px;
  color: #3F3F46;
  font-size: 15px;
  line-height: 44px;
}

.supplier-edit-control {
  min-width: 0;
  flex: 1;
}

.supplier-edit-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #D4D4D8;
  border-radius: 12px;
  outline: 0;
  background: #FFFFFF;
  color: #111113;
  font: inherit;
  font-size: 15px;
  line-height: 44px;
}

.supplier-edit-input.has-value {
  border-color: #111113;
}

.supplier-edit-input::placeholder {
  color: #A1A1A6;
}

.supplier-edit-input.is-invalid,
.supplier-edit-input.is-invalid.has-value {
  border-color: #DC2626;
  background: #FFF7F7;
  color: #B42318;
}

.supplier-edit-error {
  display: none;
  margin: 4px 2px 0;
  color: #DC2626;
  font-size: 12px;
  line-height: 1.45;
}

.supplier-edit-error.is-visible {
  display: block;
}

.ingredient-list {
  display: flex;
  flex-direction: column;
}

.ingredient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 0.5px solid var(--border-divider);
}

.ingredient-row:first-child {
  border-top: 0;
}

.ingredient-row div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ingredient-row strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
}

.ingredient-row small {
  color: var(--text-muted);
  font-size: 10px;
}

.ingredient-row > span {
  flex: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
}

.detail-summary-item {
  min-width: 0;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 15px;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-summary-item span {
  color: var(--text-muted);
  font-size: 11px;
}

.detail-summary-item strong {
  overflow: hidden;
  color: var(--obsidian-black);
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-summary-item small {
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section {
  min-width: 0;
}

.detail-section + .detail-section {
  margin-top: 20px;
}

.detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.detail-section-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 750;
}

.detail-section-head span {
  color: var(--text-tertiary);
  font-size: 11px;
}

.detail-card-list,
.detail-rows-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 15px;
  background: var(--surface-card);
}

.detail-card-list .detail-card + .detail-card {
  margin-top: 10px;
}

.detail-card-compact {
  padding-bottom: 4px;
}

.detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border-divider);
}

.detail-card-head strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.detail-card-head span {
  flex: none;
  color: var(--text-muted);
  font-size: 11px;
}

.detail-record-title {
  padding: 11px 0 2px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detail-rows {
  min-width: 0;
}

.detail-rows-card {
  gap: 0;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 15px;
  background: var(--surface-card);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 0;
  border-top: 0.5px solid var(--border-divider);
}

.detail-card-head + .detail-rows .detail-row:first-child,
.detail-rows-card .detail-row:first-child {
  border-top: 0;
}

.detail-row-main,
.detail-row-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-row-side {
  flex: none;
  max-width: 48%;
  align-items: flex-end;
  text-align: right;
}

.detail-row strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.detail-row small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-range-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 10px;
}

.analytics-range-tab {
  min-width: 0;
  height: 34px;
  padding: 0 6px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.analytics-range-tab.is-active {
  border-color: var(--obsidian-black);
  background: var(--obsidian-black);
  color: var(--text-white);
}

.analytics-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.analytics-kpi-row--three {
  grid-template-columns: 1.08fr 0.96fr 0.96fr;
}

.analytics-kpi {
  min-width: 0;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, 0.025);
  border-radius: 14px;
  background: var(--surface-card);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
}

.analytics-kpi.is-dark {
  border-color: #050505;
  background: #050505;
  color: var(--text-white);
}

.analytics-kpi span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.analytics-kpi.is-dark span {
  color: #A7A7AB;
}

.analytics-kpi strong {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-kpi-row--three .analytics-kpi strong {
  font-size: clamp(16px, 4.8vw, 21px);
}

.analytics-kpi-button {
  appearance: none;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.analytics-date-range {
  width: 100%;
  height: 40px;
  margin: 2px 0 10px;
  padding: 0 15px;
  border: 1.5px solid #111113;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.analytics-date-range b {
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
}

.analytics-chart-card,
.analytics-facts-card {
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.025);
  border-radius: 16px;
  background: var(--surface-card);
}

.analytics-chart-card {
  margin-bottom: 12px;
}

.analytics-chart-card h2 {
  margin: 0 0 2px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 750;
}

.analytics-line-chart {
  width: 100%;
  height: 156px;
  display: block;
  overflow: visible;
}

.analytics-chart-baseline {
  stroke: #ECECEF;
  stroke-width: 0.7;
}

.analytics-line-actual {
  fill: none;
  stroke: #080808;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.analytics-line-predicted {
  fill: none;
  stroke: #9A9AA1;
  stroke-width: 1.1;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.analytics-line-dot {
  fill: #080808;
}

.analytics-chart-legend {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 10px;
}

.analytics-chart-legend .is-predicted {
  letter-spacing: 0.3px;
}

.analytics-chart-empty {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.analytics-facts-card {
  padding-top: 2px;
  padding-bottom: 2px;
}

.analytics-fact-row {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 0.5px solid var(--divider-line);
}

.analytics-fact-row:first-child {
  border-top: 0;
}

.analytics-fact-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analytics-fact-row strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.analytics-fact-row small {
  color: var(--text-muted);
  font-size: 10px;
}

.analytics-fact-row b {
  flex: none;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
  text-align: right;
}

.analytics-fact-row b.is-muted {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.analytics-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  padding: 0 14px;
  margin: 2px 0 9px;
  color: var(--text-muted);
  font-size: 11px;
}

.analytics-table-head span:last-child {
  text-align: right;
}

.analytics-table-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  background: var(--surface-card);
}

.analytics-table-row,
.analytics-loss-row {
  min-height: 48px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 0.5px solid var(--divider-line);
}

.analytics-table-row:first-child,
.analytics-loss-row:first-child {
  border-top: 0;
}

.analytics-table-row > span,
.analytics-loss-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-table-row strong {
  flex: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
}

.analytics-table-more {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 0.5px solid var(--divider-line);
  background: var(--surface-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.analytics-loss-card {
  margin-top: 0;
}

.analytics-loss-row {
  min-height: 62px;
  align-items: flex-start;
}

.analytics-loss-row > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.analytics-loss-row small {
  color: var(--text-muted);
  font-size: 11px;
}

.analytics-loss-values {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.analytics-loss-values .is-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.analytics-note,
.analytics-footnote {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.analytics-note {
  margin: -1px 2px 10px;
}

.analytics-footnote {
  margin: 12px 2px 0;
}

.detail-board-legend {
  display: flex;
  gap: 18px;
  margin: 2px 2px 12px;
  color: var(--text-muted);
  font-size: 10px;
}

.detail-board-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-board-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.legend-actual {
  background: var(--obsidian-black);
}

.legend-predicted {
  border: 1px solid #B8B8BE;
  background: #E9E9ED;
}

.detail-board-chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 16px 12px 9px;
  border-radius: 15px;
  background: var(--surface-card);
  border: 1px solid rgba(0, 0, 0, 0.045);
}

.detail-board-day {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.detail-board-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-height: 0;
}

.detail-board-bars i {
  display: block;
  width: min(7px, 38%);
  min-height: 0;
  border-radius: 3px 3px 1px 1px;
}

.bar-actual {
  background: var(--obsidian-black);
}

.bar-predicted {
  background: #D8D8DD;
}

.detail-board-day > span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.detail-board-table {
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 15px;
  background: var(--surface-card);
  border: 1px solid rgba(0, 0, 0, 0.045);
}

.detail-inline-note {
  margin: 10px 4px 0;
  color: #8A6A14;
  font-size: 11px;
  line-height: 1.6;
}

.detail-loss-summary {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.detail-loss-summary::-webkit-scrollbar {
  display: none;
}

.detail-loss-chip {
  flex: none;
  min-width: 108px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #FFF6F5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-loss-chip span {
  color: #8F2F25;
  font-size: 11px;
}

.detail-loss-chip strong {
  color: #B42318;
  font-size: 18px;
}

.detail-status-on {
  color: #26734D !important;
}

.detail-status-off {
  color: var(--text-muted) !important;
}

.scroll-container.order-forecast-host {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

/* 当前库存：只读原料清单 */
.top-nav.inventory-nav,
.top-nav.stock-history-nav {
  height: 50px;
  min-height: 50px;
  padding: 0 8px;
}

.inventory-nav .nav-title,
.stock-history-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.inventory-nav .subpage-back,
.stock-history-nav .subpage-back {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  color: #252529;
  touch-action: manipulation;
  transition: background-color 140ms ease;
}

.inventory-nav .subpage-back svg,
.stock-history-nav .subpage-back svg {
  width: 20px;
  height: 20px;
}

.inventory-nav .subpage-back:active,
.stock-history-nav .subpage-back:active {
  transform: none;
  background: #F0F0F3;
}

.inventory-nav .subpage-back:focus-visible,
.stock-history-nav .subpage-back:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.scroll-container.stock-history-scroll {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.scroll-container.inventory-scroll {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.inventory-scroll > :not(.inventory-current) {
  margin: 16px 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.inventory-current {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #F5F5F7;
  color: #252529;
}

.inventory-search {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px 16px;
  padding: 0 12px;
  border: 1px solid #E5E7EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #92929B;
}

.inventory-search > svg { flex: 0 0 18px; }

.inventory-search input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
}

.inventory-search input::placeholder { color: #92929B; }
.inventory-search:focus-within { border-color: #252529; }

.inventory-catalog {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.inventory-categories {
  flex: 0 0 68px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.inventory-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

.inventory-category small { font-size: 13px; }
.inventory-category:disabled { opacity: .6; cursor: default; }
.inventory-category:focus-visible { outline: 2px solid #252529; outline-offset: -2px; }
.inventory-category[aria-current="true"] { background: #EBEBEF; color: #252529; font-weight: 500; }
.inventory-category[aria-current="true"]::before {
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 2px;
  background: #252529;
  content: '';
}

.inventory-current-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 16px max(40px, env(safe-area-inset-bottom, 0px)) 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.inventory-category-group {
  padding: 16px;
  border-radius: 12px;
  background: #FFFFFF;
}

.inventory-category-group:not([hidden]) ~ .inventory-category-group { margin-top: 12px; }
.inventory-category-group h2 {
  padding-bottom: 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.inventory-category-group ul { list-style: none; }

.inventory-current-row {
  border-bottom: 1px solid #ECECEF;
}

.inventory-current-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(56%);
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  min-height: 96px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  touch-action: manipulation;
}

.inventory-current-link:not(:disabled) { cursor: pointer; }
.inventory-current-link:active:not(:disabled) { background: #F0F0F3; }
.inventory-current-link:focus-visible { outline: 2px solid #252529; outline-offset: -2px; }

.inventory-current-row[hidden] { display: none; }
.inventory-current-row:not([hidden]):not(:has(~ .inventory-current-row:not([hidden]))) { border-bottom: 0; }

.inventory-current-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.inventory-current-link > small {
  grid-column: 1 / -1;
  grid-row: 2;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.inventory-current-side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.inventory-current-side > svg { flex: 0 0 16px; color: #92929B; }

.inventory-current-quantity {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 3px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #E4E4EA;
  border-radius: 8px;
  background: #F0F0F3;
  color: #252529;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
  overflow-wrap: anywhere;
}

.inventory-current-quantity b {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.inventory-quantity-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stock-history .detail-state,
.stock-check-detail .detail-state {
  margin: 0;
  padding: 32px 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #6E6E78;
  text-align: center;
}

.stock-history .detail-state strong,
.stock-check-detail .detail-state strong {
  color: #3C3C43;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.stock-history .detail-state p,
.stock-check-detail .detail-state p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .inventory-nav .subpage-back,
  .stock-history-nav .subpage-back { transition: none; }
}

/* 盘点记录与明细 */
.stock-history,
.stock-check-detail {
  min-width: 0;
  color: #252529;
}

.stock-history .stock-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-history .stock-history-card {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #252529;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, transform 100ms ease-out;
}

.stock-history .stock-history-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.stock-history .stock-history-when {
  flex: 1;
  min-width: 0;
}

.stock-history .stock-history-date {
  display: block;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.stock-history .stock-history-time {
  display: block;
  margin-top: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.stock-history .stock-history-card-side {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 44%;
}

.stock-history .stock-history-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.stock-history .stock-history-count strong {
  min-width: 0;
  max-width: 100%;
  color: #252529;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stock-history .stock-history-count > span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.stock-history .stock-history-card-side > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.stock-history .stock-history-reason {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.stock-history .stock-history-reason-label {
  margin-right: 6px;
  color: #6E6E78;
}

.stock-history .stock-history-reason-copy {
  color: #494950;
  overflow-wrap: anywhere;
}

.stock-history .stock-history-card:active:not(:focus-visible) {
  transform: scale(0.99);
  background: #F0F0F3;
}

.stock-history .stock-history-card:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
  transition: none;
}

.stock-history .detail-load-more {
  min-height: 44px;
  margin: 8px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  touch-action: manipulation;
}

.stock-history .detail-load-more.is-error {
  color: #494950;
}

.stock-history .detail-load-more:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.stock-check-detail .stock-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
}

.stock-check-detail .stock-check-when {
  flex: 1;
  min-width: 0;
}

.stock-check-detail .stock-check-date {
  margin: 0;
  color: #252529;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.stock-check-detail .stock-check-time {
  margin: 4px 0 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.stock-check-detail .stock-check-count {
  display: flex;
  flex: 0 1 auto;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 40%;
  margin: 0;
}

.stock-check-detail .stock-check-count strong {
  min-width: 0;
  max-width: 100%;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stock-check-detail .stock-check-count > span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.stock-check-detail .stock-check-list,
.stock-review-all-details .stock-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-check-detail .stock-check-card,
.stock-review-all-details .stock-check-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
}

.stock-check-detail .stock-check-name,
.stock-review-all-details .stock-check-name {
  margin: 0 0 12px;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.stock-check-detail .stock-check-quantities,
.stock-review-all-details .stock-check-quantities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stock-check-detail .stock-check-quantity,
.stock-review-all-details .stock-check-quantity {
  min-width: 0;
}

.stock-check-detail .stock-check-quantity + .stock-check-quantity,
.stock-review-all-details .stock-check-quantity + .stock-check-quantity {
  padding-left: 16px;
  border-left: 1px solid #ECECEF;
}

.stock-check-detail .stock-check-label,
.stock-review-all-details .stock-check-label {
  display: block;
  margin-bottom: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.stock-check-detail .stock-check-value,
.stock-review-all-details .stock-check-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.stock-check-detail .stock-check-value strong,
.stock-review-all-details .stock-check-value strong {
  min-width: 0;
  max-width: 100%;
  color: #494950;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stock-check-detail .stock-check-quantity:not(.is-counted) .stock-check-value strong,
.stock-review-all-details .stock-check-quantity:not(.is-counted) .stock-check-value strong {
  color: #6E6E78;
  font-size: 16px;
  font-weight: 500;
}

.stock-check-detail .stock-check-quantity.is-counted .stock-check-value strong,
.stock-review-all-details .stock-check-quantity.is-counted .stock-check-value strong {
  color: #252529;
  font-size: 20px;
  font-weight: 600;
}

.stock-check-detail .stock-check-quantity.is-empty .stock-check-value strong,
.stock-check-detail .stock-check-quantity .stock-check-value.is-empty strong,
.stock-review-all-details .stock-check-quantity.is-empty .stock-check-value strong,
.stock-review-all-details .stock-check-quantity .stock-check-value.is-empty strong {
  color: #92929B;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.stock-check-detail .stock-check-unit,
.stock-review-all-details .stock-check-unit {
  min-width: 0;
  max-width: 100%;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .stock-history .stock-history-card:hover { background: #FAFAFB; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-history .stock-history-card { transition: none; }
  .stock-history .stock-history-card:active:not(:focus-visible) { transform: none; }
}

/* 今日订货单列表 */
.order-today-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #252529;
  background: #F5F5F7;
}

.order-today-page .order-today-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
}

.order-today-page .order-today-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-today-page .order-today-header button {
  position: absolute;
  left: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
}

.order-today-page .order-today-header > span {
  position: absolute;
  right: 16px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.order-today-page .order-today-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 16px 16px 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.order-today-page .order-today-hint {
  margin: 0 0 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-today-page .order-today-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #252529;
  font: inherit;
  text-align: left;
}

.order-today-page .order-today-card + .order-today-card {
  margin-top: 12px;
}

.order-today-page .order-today-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.order-today-page .order-today-card-icon {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F5F5F7;
  color: #494950;
}

.order-today-page .order-today-card-icon svg {
  width: 18px;
  height: 18px;
}

.order-today-page .order-today-card-copy {
  flex: 1;
  min-width: 0;
}

.order-today-page .order-today-delivery {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.order-today-page .order-today-meta {
  display: block;
  margin-top: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-today-page .order-today-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.order-today-page .order-today-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
}

.order-today-page .order-today-number {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #6E6E78;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.order-today-page .order-today-status {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: #F3F3F6;
  color: #6E6E78;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.order-today-page .order-today-empty {
  margin: 0;
  padding: 32px 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #6E6E78;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.order-today-page button {
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease;
}

.order-today-page button:active:not(:disabled) {
  transform: none;
  background: #F0F0F3;
}

.order-today-page button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .order-today-page button { transition: none; }
}

/* 订货单详情：卡片清单与统一导出 */
.order-detail-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #252529;
  background: #F5F5F7;
}

.order-detail-page .order-detail-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  background: #F5F5F7;
}

.order-detail-page .order-detail-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-detail-page .order-detail-header button {
  position: absolute;
  left: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  cursor: pointer;
}

.order-detail-page .order-detail-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 16px 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: 24px;
  background: #F5F5F7;
  -webkit-overflow-scrolling: touch;
}

.order-detail-page .order-detail-summary {
  margin: 4px 0 12px;
  padding: 16px;
  border: 1px solid #E8E9ED;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: none;
}

.order-detail-page .order-detail-order-number {
  margin: 10px 0 0;
  color: #6E6E78;
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.order-detail-page .order-detail-summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.order-detail-page .order-detail-summary h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.order-detail-page .order-detail-total {
  display: flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.order-detail-page .order-detail-total strong {
  color: #252529;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.order-detail-page .order-detail-delivery {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F5F5F7;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-detail-page .order-detail-delivery > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #92929B;
}

.order-detail-page .order-detail-delivery > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-detail-page .order-detail-delivery-label {
  flex-shrink: 0;
  color: #6E6E78;
  white-space: nowrap;
}

.order-detail-page .order-detail-delivery-value {
  flex: 1;
  color: #3C3C43;
  font-size: 14px;
  font-weight: 500;
}

.order-detail-page .order-detail-list {
  margin: 0;
  padding: 0;
  background: transparent;
}

.order-detail-page .order-detail-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  background: #F5F5F7;
}

.order-detail-page .order-detail-select-all {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #494950;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
  user-select: none;
}

.order-detail-page .order-detail-selection-controls {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.order-detail-page .order-detail-quantity-heading {
  flex-shrink: 0;
  margin-right: 12px;
  color: #92929B;
  font-size: 12px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.order-detail-page .order-detail-selected-count {
  color: #92929B;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.order-detail-page .order-detail-checkbox,
.order-detail-page #order-detail-select-all {
  position: relative;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #C7CCD0;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #FFFFFF;
  cursor: pointer;
}

.order-detail-page .order-detail-checkbox::after,
.order-detail-page #order-detail-select-all::after {
  content: '';
  width: 6px;
  height: 11px;
  transform: translateY(-1px) rotate(45deg);
  border: solid #111113;
  border-width: 0 2px 2px 0;
  opacity: 0;
}

.order-detail-page .order-detail-checkbox:checked,
.order-detail-page #order-detail-select-all:checked,
.order-detail-page #order-detail-select-all:indeterminate {
  border-color: #111113;
  background: #FFFFFF;
}

.order-detail-page .order-detail-checkbox:checked::after,
.order-detail-page #order-detail-select-all:checked::after {
  opacity: 1;
}

.order-detail-page #order-detail-select-all:indeterminate::after {
  width: 10px;
  height: 2px;
  transform: none;
  border: 0;
  border-radius: 1px;
  background: #111113;
  opacity: 1;
}

.order-detail-page .order-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.025);
}

.order-detail-page .order-detail-row:last-of-type {
  margin-bottom: 0;
}

.order-detail-page .order-detail-row.is-selected {
  border-color: #111113;
  background: #FFFFFF;
}

.order-detail-page .order-detail-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 68px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}

.order-detail-page .order-detail-copy {
  display: block;
  min-width: 0;
}

.order-detail-page .order-detail-name {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.order-detail-page .order-detail-line-note {
  display: block;
  margin-top: 2px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.order-detail-page .order-detail-quantity {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: #252529;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.order-detail-page .order-detail-quantity strong {
  font-size: inherit;
  font-weight: 600;
}

.order-detail-page .order-detail-quantity > span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-detail-page .order-detail-empty {
  margin: 0;
  padding: 32px 12px;
  color: #6E6E78;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.order-detail-page .order-detail-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.order-detail-page .order-detail-supplier,
.order-detail-page .order-detail-export {
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.order-detail-page .order-detail-supplier {
  flex: 1;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F7F7F9;
  color: #252529;
  font-weight: 400;
  text-align: left;
}

.order-detail-page .order-detail-supplier-caption {
  display: none;
}

.order-detail-page .order-detail-supplier [data-detail-supplier-label] {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-page .order-detail-supplier > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.order-detail-page .order-detail-export {
  flex: 0 0 128px;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #FFFFFF;
  font-weight: 500;
  white-space: nowrap;
}

.order-detail-page button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.order-detail-page button:active {
  transform: none;
}

.order-detail-page .order-detail-header button:active:not(:disabled),
.order-detail-page .order-detail-supplier:active:not(:disabled) {
  background: #F0F0F3;
}

.order-detail-page .order-detail-export:active:not(:disabled) {
  background: #343438;
}

.order-detail-page button:disabled,
.order-detail-page input:disabled {
  opacity: 0.45;
  cursor: default;
}

.order-detail-page .order-detail-export:disabled {
  background: #D4D4D8;
  color: #FFFFFF;
  opacity: 1;
}

.order-detail-page button:focus-visible,
.order-detail-page input:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.order-export-overlay {
  align-items: flex-end;
  justify-content: center;
}

.order-export-sheet {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  min-height: 0;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #FFFFFF;
  color: #252529;
  box-shadow: none;
}

.order-export-sheet .modal-header {
  flex-shrink: 0;
  justify-content: flex-start;
  min-height: 32px;
  margin: 0 0 4px;
}

.order-export-sheet .modal-title {
  color: #252529;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

.order-export-sheet .modal-body {
  flex: 0 1 auto;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
  -webkit-overflow-scrolling: touch;
}

.order-export-sheet .order-export-status {
  margin: 0;
  padding: 24px 0;
  color: #6E6E78;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  overflow-wrap: anywhere;
}

.order-export-sheet .order-export-summary {
  margin: 0;
  padding: 0 0 12px;
  color: #92929B;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.order-export-sheet .order-export-supplier-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ECECEF;
}

.order-export-sheet .order-export-supplier-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  border-radius: 0;
  background: #FFFFFF;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
}

.order-export-sheet .order-export-supplier-items > .order-export-supplier-row:last-child {
  border-bottom: 0;
}

.order-export-sheet .order-export-supplier-row.is-selected {
  color: #111113;
}

.order-export-sheet .order-export-supplier-add {
  color: #111113;
  font-weight: 500;
}

.order-export-sheet .order-export-supplier-add-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.order-export-sheet .order-export-supplier-add-icon {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F3F3F6;
  color: #111113;
}

.order-export-sheet .order-export-supplier-add-arrow {
  flex-shrink: 0;
  color: #92929B;
}

.order-export-sheet .order-export-supplier-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-export-sheet .order-export-supplier-row input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.order-export-sheet .order-export-supplier-row i {
  position: relative;
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #CFCFD6;
  border-radius: 50%;
  background: #FFFFFF;
}

.order-export-sheet .order-export-supplier-row input:checked + i {
  border-color: #111113;
  background: #111113;
}

.order-export-sheet .order-export-supplier-row input:checked + i::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid #FFFFFF;
  border-left: 1.5px solid #FFFFFF;
  transform: translateY(-1px) rotate(-45deg);
}

.order-export-sheet .order-export-supplier-row input:focus-visible + i {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.order-export-sheet .order-export-supplier-row input:disabled + i {
  opacity: 0.45;
}

.order-export-sheet .modal-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
}

.order-export-sheet .modal-actions button {
  width: auto;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.order-export-sheet .modal-cancel {
  flex: 0 0 104px;
  border: 1px solid #E4E4EA;
  background: #F5F5F7;
  color: #6E6E78;
}

.order-export-sheet .modal-confirm {
  flex: 1;
  border: 0;
  background: #111113;
  color: #FFFFFF;
}

.order-export-sheet button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.order-export-sheet button:active {
  transform: none;
}

.order-export-sheet .modal-cancel:active:not(:disabled),
.order-export-sheet .order-export-supplier-row:active {
  background: #F0F0F3;
}

.order-export-sheet .modal-confirm:active:not(:disabled) {
  background: #343438;
}

.order-export-sheet button:disabled {
  background: #D4D4D8;
  color: #FFFFFF;
  opacity: 1;
  cursor: default;
}

.order-export-sheet button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .order-detail-page .order-detail-header { padding-right: 16px; padding-left: 16px; }
  .order-detail-page .order-detail-scroll { padding-right: 16px; padding-left: 16px; }
  .order-detail-page .order-detail-footer { gap: 8px; padding-right: 16px; padding-left: 16px; }
  .order-detail-page .order-detail-export { flex-basis: 120px; padding-right: 10px; padding-left: 10px; font-size: 14px; }
  .order-detail-page .order-detail-toolbar { gap: 8px; }
  .order-detail-page .order-detail-selection-controls { gap: 8px; }
  .order-detail-page .order-detail-select-all { gap: 8px; }
  .order-detail-page .order-detail-item { gap: 8px; }
  .order-export-sheet { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-detail-page button,
  .order-export-sheet button { transition: none; }
}

@media (forced-colors: active) {
  .order-detail-page .order-detail-checkbox,
  .order-detail-page #order-detail-select-all { appearance: auto; }
  .order-detail-page .order-detail-checkbox::after,
  .order-detail-page #order-detail-select-all::after { display: none; }
}

/* 订货 Excel 文件预览 */
.order-file-preview-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  animation: order-file-preview-fade 180ms ease-out;
}

.order-file-preview-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: calc(100% - 24px - env(safe-area-inset-top, 0px));
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-y: contain;
  border-radius: 16px 16px 0 0;
  background: #FFFFFF;
  color: #252529;
  animation: order-file-preview-rise 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.order-file-preview-sheet .order-file-preview-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 4px 20px;
}

.order-file-preview-sheet h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-file-preview-sheet [data-file-close] {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6E6E78;
}

.order-file-preview-sheet .order-file-preview-loading {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 24px 20px 32px;
  text-align: center;
}

.order-file-preview-sheet .order-file-preview-spinner {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 3px solid #E5E7EA;
  border-top-color: #111113;
  border-radius: 50%;
  animation: order-file-preview-spin 700ms linear infinite;
}

.order-file-preview-sheet .order-file-preview-loading strong {
  max-width: 100%;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.order-file-preview-sheet .order-file-preview-loading p {
  max-width: 100%;
  margin: 4px 0 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-file-preview-sheet [data-file-content] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: 4px;
}

.order-file-preview-sheet .order-file-preview-loading[hidden],
.order-file-preview-sheet .order-file-preview-spinner[hidden],
.order-file-preview-sheet [data-file-content][hidden],
.order-file-preview-sheet [data-file-actions][hidden],
.order-file-preview-sheet .order-file-preview-loading.is-error .order-file-preview-spinner {
  display: none;
}

.order-file-preview-sheet .order-file-preview-info {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 20px 16px;
}

.order-file-preview-sheet .order-file-preview-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  padding: 8px;
  border: 1px solid #E5E7EA;
  border-radius: 10px;
  background: #F5F5F7;
  color: #252529;
}

.order-file-preview-sheet .order-file-preview-file {
  flex: 1;
  min-width: 0;
}

.order-file-preview-sheet .order-file-preview-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.order-file-preview-sheet .order-file-preview-meta {
  margin: 4px 0 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.order-file-preview-sheet .order-file-preview-status {
  flex-shrink: 0;
  margin: 12px 20px 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-file-preview-sheet #order-file-download-url {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
}
.order-file-copy-notice {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
}
.order-file-copy-notice section {
  width: 100%;
  max-width: 340px;
  max-height: 100%;
  padding: 24px 20px 16px;
  overflow-y: auto;
  border-radius: 16px;
  background: #FFFFFF;
  color: #252529;
}
.order-file-copy-notice h3 { margin: 0 0 12px; font-size: 17px; line-height: 24px; }
.order-file-copy-notice p { color: #6E6E78; font-size: 14px; line-height: 22px; }
.order-file-copy-notice .order-file-copy-expiry { margin-top: 12px; font-size: 12px; }
.order-file-copy-notice input {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #E4E4EA;
  border-radius: 8px;
  font-size: 16px;
  user-select: text;
}
.order-file-copy-notice button {
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #FFFFFF;
  font: inherit;
  cursor: pointer;
}

.order-file-preview-sheet .order-file-preview-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px));
}

.order-file-preview-sheet .order-file-preview-actions button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #252529;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.order-file-preview-sheet .order-file-preview-actions [data-file-share] {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.order-file-preview-sheet .order-file-preview-actions svg { flex: 0 0 18px; width: 18px; height: 18px; }
.order-file-preview-sheet [data-file-close] svg { width: 20px; height: 20px; }
.order-file-preview-sheet button { cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, color 140ms ease; }
.order-file-preview-sheet button:active { transform: none; }
.order-file-preview-sheet [data-file-close]:active:not(:disabled),
.order-file-preview-sheet [data-file-open]:active:not(:disabled) { background: #F0F0F3; }
.order-file-preview-sheet [data-file-share]:active:not(:disabled) { background: #343438; }
.order-file-preview-sheet button:disabled { opacity: 0.45; cursor: default; }
.order-file-preview-sheet button:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }

@keyframes order-file-preview-spin { to { transform: rotate(360deg); } }
@keyframes order-file-preview-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes order-file-preview-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 360px) {
  .order-file-preview-sheet .order-file-preview-header { padding-left: 16px; padding-right: 12px; }
  .order-file-preview-sheet .order-file-preview-loading,
  .order-file-preview-sheet .order-file-preview-info,
  .order-file-preview-sheet .order-file-preview-actions { padding-left: 16px; padding-right: 16px; }
  .order-file-preview-sheet .order-file-preview-status { margin-right: 16px; margin-left: 16px; }
  .order-file-preview-sheet .order-file-preview-actions { gap: 8px; }
  .order-file-preview-sheet .order-file-preview-actions button { padding-right: 8px; padding-left: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-file-preview-overlay,
  .order-file-preview-sheet { animation: none; }
  .order-file-preview-sheet .order-file-preview-spinner { animation: none; }
  .order-file-preview-sheet button { transition: none; }
}

.order-confirm-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #252529;
  background: #F5F5F7;
}

.order-confirm-page .order-confirm-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
}

.order-confirm-page .order-confirm-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-confirm-page .order-confirm-header button {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  cursor: pointer;
}

.order-confirm-page .order-confirm-steps {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 2px 16px 10px;
  color: #767680;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.order-confirm-page .order-confirm-steps button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.order-confirm-page .order-confirm-steps strong {
  color: #343438;
  font-weight: 600;
}

.order-confirm-page .order-confirm-summary {
  flex-shrink: 0;
  margin: 0 16px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFFFFF;
}

.order-confirm-page .order-confirm-summary h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.order-confirm-page .order-confirm-summary h2 strong {
  font-weight: inherit;
}

.order-confirm-page .order-confirm-summary p {
  margin: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-catalog {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.order-confirm-page .order-confirm-categories {
  flex: 0 0 88px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.order-confirm-page .order-confirm-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 8px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.order-confirm-page .order-confirm-category small {
  margin-top: 6px;
  color: #92929B;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.order-confirm-page .order-confirm-category.is-active {
  background: #EBEBEF;
  color: #252529;
  font-weight: 600;
}

.order-confirm-page .order-confirm-category.is-active::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: #252529;
  content: "";
}

.order-confirm-page .order-confirm-category.is-empty {
  opacity: 0.55;
  cursor: default;
}

.order-confirm-page .order-confirm-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.order-confirm-page .order-confirm-warning {
  flex-shrink: 0;
  max-height: 25vh;
  margin: 12px 0 4px;
  overflow-y: auto;
  border: 1px solid #FFD2A4;
  border-radius: 12px;
  background: #FFF8EF;
  color: #B45320;
  font-size: 12px;
  line-height: 1.6;
}

.order-confirm-page .order-confirm-warning summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  list-style: none;
  cursor: pointer;
}

.order-confirm-page .order-confirm-warning summary::-webkit-details-marker {
  display: none;
}

.order-confirm-page .order-confirm-warning-toggle {
  flex-shrink: 0;
  font-weight: 700;
}

.order-confirm-page .order-confirm-warning-copy {
  padding: 0 10px 10px;
}

.order-confirm-page .order-confirm-warning-copy p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-warning-copy button {
  margin: 0 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.order-confirm-page .order-confirm-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 16px 96px 12px;
  scroll-padding-bottom: 96px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.order-confirm-page .order-confirm-list::-webkit-scrollbar {
  display: none;
}

.order-confirm-page .order-confirm-group {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #FFFFFF;
}

.order-confirm-page .order-confirm-group + .order-confirm-group {
  margin-top: 12px;
}

.order-confirm-page .order-confirm-group h2 {
  margin: 0;
  padding: 0 0 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.order-confirm-page .order-confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 0;
  border-bottom: 1px solid #ECECEF;
}

.order-confirm-page .order-confirm-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-confirm-page .order-confirm-material {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}

.order-confirm-page .order-confirm-material .btn-order-calc {
  display: block;
  justify-self: start;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #252529;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-material p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-quantity-caption {
  color: #6E6E78;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.order-confirm-page .order-confirm-material .order-confirm-adjustment,
.order-confirm-page .order-confirm-material .order-confirm-reminder,
.order-confirm-page .order-confirm-missing {
  color: #8B5E34;
}

.order-confirm-page .order-confirm-metrics {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-confirm-page .order-confirm-predicted,
.order-confirm-page .order-confirm-stock {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-predicted strong,
.order-confirm-page .order-confirm-stock strong {
  font-weight: 500;
}

.order-confirm-page .order-confirm-stock small {
  display: block;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-confirm-page .order-confirm-quantity {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.order-confirm-page .order-confirm-quantity-trigger {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 88px;
  height: 38px;
  min-width: 0;
  padding: 0 4px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  outline: 0;
  background: #F7F7F9;
  color: #252529;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: none;
  cursor: pointer;
  user-select: none;
}

.order-confirm-page .order-confirm-quantity-trigger.is-empty {
  color: #8A8A94;
  font-size: 13px;
}

.order-confirm-page .order-confirm-quantity span {
  flex: 0 0 20px;
  width: 20px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-confirm-page .order-confirm-quantity-trigger:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.order-confirm-page .order-confirm-quantity-trigger:active:not(:disabled) {
  background: #E9E9EE;
}

.order-confirm-page .order-confirm-add {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #E4E4EA;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #252529;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
}

.order-confirm-page .order-confirm-empty {
  margin: 0;
  padding: 30px 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-confirm-page .order-confirm-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.order-confirm-page .order-confirm-footer p {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 22px;
}

.order-confirm-page .order-confirm-footer span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-confirm-page .order-confirm-footer .btn-black {
  flex: 0 0 176px;
  width: 176px;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #111113;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.order-confirm-page button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.order-confirm-page button:active { transform: none; }
.order-confirm-page .order-confirm-header button:active:not(:disabled),
.order-confirm-page .order-confirm-add:active:not(:disabled) { background: #E9E9EE; }
.order-confirm-page .order-confirm-footer button:active:not(:disabled) { background: #343438; }
.order-confirm-page button:disabled,
.order-confirm-page input:disabled { opacity: 0.45; cursor: default; }
.order-confirm-page button:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.order-confirm-page .order-confirm-category:focus-visible { outline-offset: -2px; }

@media (max-width: 360px) {
  .order-confirm-page .order-confirm-steps { gap: 4px; }
  .order-confirm-page .order-confirm-quantity-trigger { width: 80px; }
  .order-confirm-page .order-confirm-footer .btn-black {
    flex-basis: 156px;
    width: 156px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-confirm-page button { transition: none; }
}

/* Inventory follows the same spacing and type scale as the forecast step. */
.order-stock-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: #252529;
  background: #F5F5F7;
}

.order-stock-page .order-stock-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
}

.order-stock-page .order-stock-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-stock-page .order-stock-header button {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  cursor: pointer;
}

.order-stock-page .order-stock-steps {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 2px 16px 10px;
  color: #767680;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.order-stock-page .order-stock-steps strong {
  color: #343438;
  font-weight: 600;
}

.order-stock-page .order-stock-summary {
  flex-shrink: 0;
  margin: 0 16px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFFFFF;
}

.order-stock-page .order-stock-summary h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.order-stock-page .order-stock-summary .is-complete {
  color: #377452;
}

.order-stock-page .order-stock-summary p {
  margin: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-stock-page .order-stock-catalog {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.order-stock-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
}

.order-stock-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #f2f2f7;
  font: inherit;
}

.order-stock-search button {
  border: 0;
  background: none;
  color: #007aff;
  font: inherit;
}

.order-stock-search-empty {
  margin: 0;
  padding: 16px;
  color: #6e6e73;
  text-align: center;
}

.order-stock-page [hidden] {
  display: none !important;
}

.order-stock-page .order-stock-categories {
  flex: 0 0 88px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.order-stock-page .order-stock-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 8px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.order-stock-page .order-stock-category small {
  margin-top: 6px;
  color: #92929B;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.order-stock-page .order-stock-category.is-active {
  background: #EBEBEF;
  color: #252529;
  font-weight: 600;
}

.order-stock-page .order-stock-category.is-active::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: #252529;
  content: "";
}

.order-stock-page .order-stock-category.is-complete small {
  color: #377452;
}

.order-stock-page .order-stock-category.is-empty {
  opacity: 0.55;
  cursor: default;
}

.order-stock-page .order-stock-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 16px 16px 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.order-stock-page .order-stock-group {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #FFFFFF;
}

.order-stock-page .order-stock-group + .order-stock-group {
  margin-top: 12px;
}

.order-stock-page .order-stock-group h2 {
  margin: 0;
  padding: 0 0 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.order-stock-page .order-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 0;
  border-bottom: 1px solid #ECECEF;
}

.order-stock-page .order-stock-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-stock-page .order-stock-copy { display: contents; }

.order-stock-page .order-stock-name {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.order-stock-page .order-stock-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-stock-page .order-stock-cycle {
  flex-shrink: 0;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.order-stock-page .order-stock-copy p {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-stock-page .order-stock-copy .has-difference { color: #8B5E34; }

.order-stock-page .order-stock-actions {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  gap: 4px;
}

.order-stock-page .order-stock-quantity {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 88px;
  height: 38px;
  min-width: 0;
  padding: 0 4px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F7F7F9;
  color: #252529;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: none;
  cursor: pointer;
  user-select: none;
}

.order-stock-page .order-stock-quantity.is-empty { color: #8A8A94; font-size: 13px; }
.order-stock-page .order-stock-quantity:focus { outline: none; box-shadow: none; }
.order-stock-page .stock-quantity-trigger:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.order-stock-page .stock-quantity-trigger:active:not(:disabled) { background: #E9E9EE; }

.order-stock-page .order-stock-unit {
  flex: 0 0 24px;
  width: 24px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-stock-page .order-stock-confirm {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E4E4EA;
  border-radius: 8px;
  background: #F7F7F9;
  color: #95959F;
  cursor: pointer;
}

.order-stock-page .is-counted .order-stock-confirm {
  border-color: #D5E5DA;
  background: #E9F3ED;
  color: #377452;
}

.order-stock-page .order-stock-empty {
  margin: 0;
  padding: 24px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-stock-page .order-stock-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.order-stock-page .order-stock-footer p {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 22px;
}

.order-stock-page .order-stock-footer span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-stock-page .order-stock-footer button {
  flex: 0 0 156px;
  width: 156px;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #111113;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.order-stock-page button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.order-stock-page button:active { transform: none; }
.order-stock-page .order-stock-confirm:active:not(:disabled),
.order-stock-page .order-stock-header button:active:not(:disabled) { background: #E9E9EE; }
.order-stock-page .is-counted .order-stock-confirm:active:not(:disabled) { background: #D9EBDD; }
.order-stock-page .order-stock-footer button:active:not(:disabled) { background: #343438; }
.order-stock-page button:disabled,
.order-stock-page input:disabled { opacity: 0.45; cursor: default; }
.order-stock-page button:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.order-stock-page .order-stock-category:focus-visible { outline-offset: -2px; }

@media (max-width: 360px) {
  .order-stock-page .order-stock-steps { gap: 4px; }
  .order-stock-page .order-stock-quantity { width: 80px; }
  .order-stock-page .order-stock-unit { flex-basis: 20px; width: 20px; }
  .order-stock-page .order-stock-footer { gap: 8px; }
  .order-stock-page .order-stock-footer button { flex-basis: 152px; width: 152px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-stock-page button { transition: none; }
}

.order-forecast-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: #252529;
  background: #F5F5F7;
}

.order-forecast-page .order-forecast-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
}

.order-forecast-page .order-forecast-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-forecast-page .order-forecast-header button {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #252529;
  border-radius: 10px;
  cursor: pointer;
}

.order-forecast-page .order-forecast-state-layout {
  flex: 1;
  min-height: 0;
  padding: 28px 16px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.order-forecast-page .order-forecast-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 36px 24px 32px;
  border: 1px solid #ECECEF;
  border-radius: 20px;
  background: #FFFFFF;
  text-align: center;
}

.order-forecast-page .order-forecast-state-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #F5F5F7;
  color: #6B6B75;
}

.order-forecast-page .order-forecast-state h2 {
  max-width: 18em;
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
}

.order-forecast-page .order-forecast-state p {
  max-width: 20em;
  margin: 10px 0 28px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 23px;
}

.order-forecast-page .order-forecast-state .btn-black {
  width: 160px;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.order-forecast-page .order-forecast-steps {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 2px 16px 10px;
  color: #767680;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.order-forecast-page .order-forecast-steps strong {
  color: #343438;
  font-weight: 600;
}

.order-forecast-page .order-forecast-summary {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  min-height: 76px;
  margin: 0 16px 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #111113;
  color: #FFFFFF;
}

.order-forecast-page .order-forecast-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.order-forecast-page .order-forecast-summary-main > div:first-child {
  min-width: 0;
}

.order-forecast-page .order-forecast-summary-main p {
  margin: 0 0 4px;
  color: #B8B8C0;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 34px;
}

.order-forecast-page .order-forecast-total strong {
  font-size: 28px;
  font-weight: 600;
}

.order-forecast-page .order-forecast-total span,
.order-forecast-page .order-forecast-meals {
  color: #B8B8C0;
  font-size: 13px;
}

.order-forecast-page .order-forecast-meals {
  flex-shrink: 0;
  line-height: 24px;
  text-align: right;
}

.order-forecast-page .order-forecast-meals strong {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

.order-forecast-page .order-forecast-reasons {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #303034;
  color: #B8B8C0;
}

.order-forecast-page .order-forecast-reasons.is-toggleable {
  cursor: pointer;
}

.order-forecast-page .order-forecast-reasons h2 {
  margin: 0;
  color: #B8B8C0;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.order-forecast-page .order-forecast-reasons ul {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-forecast-page .order-forecast-reasons li,
.order-forecast-page .order-forecast-reasons p {
  min-width: 0;
  margin: 0;
  color: #B8B8C0;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-forecast-page .order-forecast-reasons li + li {
  margin-top: 4px;
}

.order-forecast-page .order-forecast-reasons-body {
  position: relative;
  min-width: 0;
}

.order-forecast-page .order-forecast-reasons-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-reasons-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.order-forecast-page .order-forecast-reasons-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #E6E6EB;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  vertical-align: bottom;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease-out;
}

.order-forecast-page .order-forecast-reasons-toggle[aria-expanded="false"] {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding-left: 4px;
  background: #111113;
}

.order-forecast-page .order-forecast-reasons-toggle[aria-expanded="false"]::before {
  content: '…';
  color: #B8B8C0;
}

.order-forecast-page .order-forecast-reasons-toggle::after {
  position: absolute;
  inset: -6px -4px;
  content: '';
}

.order-forecast-page .order-forecast-reasons-toggle[hidden] {
  display: none;
}

.order-forecast-page .order-forecast-reasons-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.order-forecast-page .order-forecast-reasons-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.order-forecast-page .order-forecast-reasons-toggle:active {
  transform: scale(0.97);
}

.order-forecast-page .order-forecast-notices {
  flex-shrink: 0;
  margin: 0 16px 8px;
  padding: 7px 10px;
  border: 1px solid #F2DCC4;
  border-radius: 10px;
  background: #FFF9F2;
  color: #A45C20;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-notices summary {
  cursor: pointer;
}

.order-forecast-page .order-forecast-notices ul {
  max-height: 96px;
  margin: 6px 0 0;
  padding-left: 14px;
  overflow-y: auto;
  line-height: 1.6;
}

.order-forecast-page .order-forecast-catalog {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.order-forecast-page .order-forecast-categories {
  flex: 0 0 68px;
  overflow-y: auto;
  background: #F5F5F7;
}

.order-forecast-page .order-forecast-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.order-forecast-page .order-forecast-category:focus-visible {
  outline: 2px solid #252529;
  outline-offset: -2px;
}

.order-forecast-page .order-forecast-category small {
  margin-top: 0;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-category.is-active {
  background: #EBEBEF;
  color: #252529;
  font-weight: 500;
}

.order-forecast-page .order-forecast-category.is-active::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: #252529;
  content: "";
}

.order-forecast-page .order-forecast-category.is-empty {
  opacity: 0.6;
  cursor: default;
}

.order-forecast-page .order-forecast-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 16px 16px 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.order-forecast-page .order-forecast-list-hint {
  flex-shrink: 0;
  margin: 0 16px 8px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-group {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #FFFFFF;
}

.order-forecast-page .order-forecast-group + .order-forecast-group {
  margin-top: 12px;
}

.order-forecast-page .order-forecast-group h2 {
  margin: 0;
  padding: 0 0 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.order-forecast-page .order-forecast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(38px, auto) 20px;
  align-items: center;
  gap: 2px 8px;
  padding: 10px 0;
  border-bottom: 1px solid #ECECEF;
}

.order-forecast-page .order-forecast-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-forecast-page .order-forecast-item-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.order-forecast-page .order-forecast-item-note,
.order-forecast-page .order-forecast-item-source {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-item-note {
  color: #8B5E34;
}

.order-forecast-page .order-forecast-item-source {
  color: #6E6E78;
}

.order-forecast-page .order-forecast-item-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.order-forecast-page .order-forecast-item-actions .btn-step-qty {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E4E4EA;
  border-radius: 8px;
  background: #F7F7F9;
  color: #252529;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.order-forecast-page .order-forecast-item-actions .btn-step-qty:disabled {
  opacity: 0.4;
  cursor: default;
}

.order-forecast-page .order-forecast-item-qty {
  flex: 0 0 40px;
  width: 40px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333338;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.order-forecast-page .order-forecast-item-qty:active:not(:disabled) {
  background: #E9E9EE;
}

.order-forecast-page .order-forecast-item-qty:disabled {
  opacity: 0.4;
  cursor: default;
}

.order-forecast-page .is-adjusted .order-forecast-item-qty {
  color: #8B5E34;
}

.order-forecast-page .order-forecast-empty {
  margin: 0;
  padding: 24px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #6E6E78;
  font-size: 13px;
  line-height: 1.7;
}

.order-forecast-page .order-forecast-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.order-forecast-page .order-forecast-footer p {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 22px;
}

.order-forecast-page .order-forecast-footer span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-forecast-page .order-forecast-footer .btn-black {
  flex: 0 0 136px;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #111113;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.order-forecast-page button {
  transition: background-color 140ms ease, color 140ms ease;
}

.order-forecast-page button:active {
  transform: none;
}

.order-forecast-page .btn-step-qty:active:not(:disabled),
.order-forecast-page .order-forecast-header button:active:not(:disabled) {
  background: #E9E9EE;
}

.order-forecast-page .order-forecast-footer .btn-black:active:not(:disabled) {
  background: #343438;
}

.order-forecast-page button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .order-forecast-page .order-forecast-steps { gap: 4px; }
  .order-forecast-page .order-forecast-row {
    grid-template-rows: auto 38px 20px;
    row-gap: 4px;
  }
  .order-forecast-page .order-forecast-item-name { grid-column: 1 / -1; }
  .order-forecast-page .order-forecast-item-actions { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .order-forecast-page .order-forecast-item-note,
  .order-forecast-page .order-forecast-item-source { grid-row: 3; }
  .order-forecast-page .order-forecast-footer { gap: 8px; }
  .order-forecast-page .order-forecast-footer .btn-black { flex-basis: 124px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-forecast-page button { transition: none; }
}

.order-forecast-quantity-modal {
  align-items: flex-end;
  justify-content: center;
}

.order-forecast-quantity-modal .rc-bottom-sheet {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

.forecast-quantity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forecast-quantity-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.forecast-quantity-header button {
  min-width: 44px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6E6E78;
  font-size: 15px;
  cursor: pointer;
}

#forecast-quantity-name {
  margin: 4px 0 16px;
  color: #6E6E78;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.forecast-quantity-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F5F5F7;
}

.forecast-quantity-display input {
  width: 5ch;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #252529;
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
}

.order-stock-quantity-modal .forecast-quantity-display input {
  width: 12ch;
}

.forecast-quantity-display span,
#forecast-quantity-hint {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

#forecast-quantity-hint {
  margin: 8px 0 12px;
  text-align: center;
}

.order-forecast-quantity-modal .rc-key {
  display: grid;
  place-items: center;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F5F5F7;
  color: #252529;
  font-size: 22px;
  font-weight: 500;
  touch-action: manipulation;
}

.order-forecast-quantity-modal .rc-key[data-key="clear"] { font-size: 15px; }
.order-forecast-quantity-modal .rc-key:active { background: #E9E9EE; }
.order-forecast-quantity-modal button:active { transform: none; }

.order-forecast-quantity-modal .forecast-quantity-confirm {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}

.order-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-divider);
}

.order-line-copy {
  flex: 1;
  min-width: 0;
}

.order-line-copy > div:first-child {
  overflow-wrap: anywhere;
}

.order-line-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-line-actions .btn-step-qty {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #CCC;
  background: #FFF;
  font-size: 16px;
  font-weight: 700;
}

.order-line-stock-actions {
  gap: 6px;
}

@media (max-width: 359px) {
  .order-line-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .order-line-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.store-info-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.store-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 0.5px solid var(--border-divider);
  color: var(--text-tertiary);
  font-size: 13px;
}

.store-info-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.store-info-hint {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--surface-inset);
  color: var(--text-muted);
  font-size: 11px;
}

.btn-small {
  height: 32px;
  min-width: 58px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1;
}

.btn-black.btn-small {
  width: auto;
  height: 32px;
}

.btn-black:disabled {
  color: #ffffff;
  background: #d4d4d8;
  opacity: 1;
  cursor: default;
}

.btn-secondary:disabled,
.btn-capsule-action:disabled {
  opacity: 0.5;
  cursor: default;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-tertiary);
}

.empty-state-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.empty-state-desc {
  max-width: 280px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
}

.view-heading-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--obsidian-black);
}

.view-heading-meta {
  color: var(--text-tertiary);
  font-size: 12px;
}

.modal-body {
  max-height: min(58vh, 520px);
  max-height: min(58dvh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-sheet {
  max-height: 88vh;
  max-height: 88dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-sheet > .modal-body {
  flex: 1;
  min-height: 0;
}

.modal-overlay {
  padding-top: var(--safe-top);
}

/* ==========================================================================
   订货、菜谱、收货、聊天、我的：容器边界与横向滚动
   ========================================================================== */
.order-view,
.recipes-view,
.receive-view,
.my-view,
.chat-view {
  width: 100%;
  min-width: 0;
}

.order-view > .card,
.recipes-view > .card,
.receive-view > .card {
  min-width: 0;
}

.order-view input,
.recipes-view input,
.receive-view input,
.my-view input {
  max-width: 100%;
}

.order-hub-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 0;
  color: #111113;
}

.order-hub-home .order-hub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-hub-home .order-hub-calendar {
  flex-shrink: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.order-hub-home .order-hub-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.order-hub-home .order-hub-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.order-hub-home .order-hub-section-heading h2 {
  margin: 0;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.order-hub-home .order-hub-section-heading > span {
  color: #6E6E78;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.order-hub-home .card {
  border-radius: 16px;
  box-shadow: none;
}

.order-hub-home .order-hub-today {
  isolation: isolate;
}

.order-hub-home .order-hub-primary-card {
  position: relative;
  z-index: 1;
  padding: 16px;
  background: #111113;
  color: #FFFFFF;
}

.order-hub-home .order-hub-primary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-hub-home .order-hub-primary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-hub-home .order-hub-primary-label h2 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.order-hub-home .order-hub-primary-icon {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #DEDEE3;
}

.order-hub-home .order-hub-primary-icon svg {
  width: 20px;
  height: 20px;
}

.order-hub-home .order-hub-status {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid #45454B;
  border-radius: 999px;
  color: #D1D1D6;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-primary-content {
  min-width: 0;
  margin-top: 8px;
}

.order-hub-home .order-hub-primary-copy {
  min-width: 0;
}

.order-hub-home .is-generated .order-hub-primary-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.order-hub-home .order-hub-main-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.order-hub-home .order-hub-main-metric strong {
  min-width: 0;
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-main-metric > span {
  color: #C8C8D0;
  font-size: 14px;
  line-height: 20px;
}

.order-hub-home .order-hub-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 4px 0 0;
  color: #B5B5BF;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.order-hub-home .order-hub-summary > span {
  white-space: nowrap;
}

.order-hub-home .order-hub-flow-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #303034;
  color: #B5B5BF;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-flow-summary > span {
  min-width: 0;
  white-space: nowrap;
}

.order-hub-home .order-hub-flow-summary svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #767680;
}

.order-hub-home .order-hub-meta {
  margin: 8px 0 0;
  color: #B5B5BF;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-primary-content .order-hub-meta {
  margin: 0;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-reminder-due {
  color: #DEDEE3;
}

.order-hub-home .order-hub-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 14px;
  color: #111113;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 10px;
  cursor: pointer;
}

.order-hub-home .is-generated .order-hub-primary-content > .order-hub-action {
  width: 112px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.order-hub-home .is-generated .order-hub-primary-content > .order-hub-action svg {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

.order-hub-home .order-hub-blocked-note {
  margin: 8px 0 0;
  color: #B5B5BF;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-action svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.order-hub-home .order-hub-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.order-hub-home .order-hub-sales-warning {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  min-height: 56px;
  margin: -12px 8px 0;
  padding: 20px 12px 8px;
  border: 0;
  border-radius: 0 0 12px 12px;
  background: #FFF9F1;
  color: #986333;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.order-hub-home .order-hub-sales-warning.is-secondary {
  background: #E8E8E8;
  color: #494950;
}

.order-hub-home .order-hub-sales-info {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
}

.order-hub-home .order-hub-sales-info svg {
  width: 18px;
  height: 18px;
}

.order-hub-home .order-hub-sales-copy {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-sales-copy strong {
  display: block;
  color: #3C3C43;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.order-hub-home .order-hub-sales-copy > span {
  display: block;
  margin-top: 2px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-sales-action {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.order-hub-home .order-hub-sales-action svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.order-hub-home .order-hub-list-card {
  padding: 0 16px;
}

.order-hub-home .order-hub-stock-overview {
  padding: 16px 0 12px;
  border-bottom: 1px solid #EBEBF0;
}

.order-hub-home .order-hub-stock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-stock-heading strong {
  color: #252529;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.order-hub-home .order-hub-stock-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ECECEF;
}

.order-hub-home .order-hub-stock-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111113;
}

.order-hub-home .order-hub-entry-icon {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F5F5F7;
  color: #494950;
}

.order-hub-home .order-hub-entry-icon svg {
  width: 18px;
  height: 18px;
}

.order-hub-home .order-hub-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 0;
  color: #111113;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.order-hub-home button.order-hub-list-row {
  cursor: pointer;
}

.order-hub-home .order-hub-list-row + .order-hub-list-row {
  border-top: 1px solid #EBEBF0;
}

.order-hub-home .order-hub-row-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-hub-home .order-hub-row-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-row-note {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.order-hub-home .order-hub-transit-row {
  min-height: 92px;
  padding: 14px 0;
}

.order-hub-home .order-hub-transit-row .order-hub-row-copy {
  gap: 0;
}

.order-hub-home .order-hub-transit-row .order-hub-row-title {
  font-weight: 500;
}

.order-hub-home .order-hub-order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
}

.order-hub-home .order-hub-order-state {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: #F3F3F6;
  color: #6E6E78;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.order-hub-home .order-hub-order-meta .order-hub-row-id {
  flex: 1;
}

.order-hub-home .order-hub-row-id {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #6E6E78;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.order-hub-home .order-hub-row-arrow {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  height: 20px;
  color: #92929B;
  font-size: 18px;
  line-height: 20px;
}

.order-hub-home .order-hub-row-arrow svg {
  width: 16px;
  height: 16px;
}

.order-hub-home .order-hub-empty {
  padding: 20px 0;
  color: #55555F;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.order-hub-home .order-hub-empty p {
  margin-top: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.order-hub-home .order-hub-error {
  padding: 12px 14px;
  color: #991B1B;
  font-size: 12px;
  line-height: 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.order-hub-home .order-hub-error strong {
  display: block;
  margin-bottom: 2px;
}

.order-hub-home .order-hub-all-records {
  justify-content: space-between;
  min-height: 52px;
  color: #494950;
  font-size: 15px;
  line-height: 22px;
}

.order-hub-home .order-hub-empty + .order-hub-all-records {
  border-top: 1px solid #EBEBF0;
}

.order-hub-home button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.order-hub-home button:active {
  transform: none;
}

.order-hub-home .order-hub-action:active:not(:disabled) {
  background: #E9E9EE;
}

.order-hub-home .order-hub-list-row:active:not(:disabled) {
  background: #F0F0F3;
}

.order-hub-home .order-hub-sales-warning:active:not(:disabled) {
  background: #F1E6D5;
}

.order-hub-home .order-hub-sales-warning.is-secondary:active:not(:disabled) {
  background: #DEDEDE;
}

.order-hub-home button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.order-hub-home .order-hub-list-row:focus-visible,
.order-hub-home .order-hub-sales-warning:focus-visible {
  outline-offset: -2px;
}


.order-hub-home .order-hub-primary-card button:focus-visible {
  outline-color: #FFFFFF;
}

@media (max-width: 360px) {
  .order-hub-home .order-hub-sales-warning { width: calc(100% - 8px); margin-right: 4px; margin-left: 4px; gap: 8px; padding-right: 10px; padding-left: 10px; }
  .order-hub-home .order-hub-primary-heading { gap: 8px; }
  .order-hub-home .order-hub-status { padding-right: 6px; padding-left: 6px; }
  .order-hub-home .is-generated .order-hub-primary-content { grid-template-columns: minmax(0, 1fr) 108px; }
  .order-hub-home .is-generated .order-hub-primary-content > .order-hub-action { width: 108px; }
  .order-hub-home .order-hub-summary { flex-direction: column; align-items: flex-start; gap: 0; }
  .order-hub-home .order-hub-flow-summary { gap: 6px; }
  .order-hub-home .order-hub-transit-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-hub-home button { transition: none; }
}

.chat-view {
  height: 100%;
}

.chat-quick-strip {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.time-wheel-col.is-dragging,
.time-wheel-col.is-dragging .time-wheel-item {
  cursor: grabbing;
}

.chat-quick-strip::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: 0 0 auto;
}

/* ==========================================================================
   小屏、横屏与辅助功能
   ========================================================================== */
@media (max-width: 359px) {
  .scroll-container,
  .scroll-container.home-scroll {
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-nav.home-top-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .greeting-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-date-strip {
    gap: 2px;
  }

  .home-week-header {
    gap: 2px;
  }

  .home-week-nav {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .home-week-range {
    font-size: 10px;
  }

  .home-week-today {
    min-width: 46px;
    font-size: 10px;
  }

  .date-chip {
    padding-left: 2px;
    padding-right: 2px;
  }

  .kpi-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kpi-amount {
    font-size: 27px;
  }

  .todo-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn-capsule-action {
    min-width: 46px;
    padding: 0 10px;
  }

  .analytics-range-tabs {
    gap: 5px;
  }

  .analytics-range-tab {
    padding: 0 2px;
    font-size: 12px;
  }

  .analytics-kpi {
    min-height: 72px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .analytics-kpi strong,
  .analytics-kpi-row--three .analytics-kpi strong {
    font-size: 16px;
  }

  .analytics-table-head {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .bottom-nav {
    --nav-height: clamp(64px, 8vw, 76px);
    --nav-avatar: clamp(40px, 5.2vw, 50px);
    --nav-avatar-image: clamp(28px, 3.8vw, 36px);
    --nav-avatar-lift: clamp(-28px, -3vw, -20px);
    --nav-icon: clamp(18px, 2.2vw, 21px);
    --nav-label-size: clamp(9px, 1.1vw, 10px);
    --nav-label-gap: clamp(2px, .4vw, 3px);
    --nav-top-pad: clamp(6px, 1.6vw, 8px);
  }

  .top-nav {
    height: 44px;
    min-height: 44px;
  }

  .nav-tab .tab-icon {
    width: 24px;
    height: 24px;
  }

  .nav-tab.tab-achuan .avatar-circle {
    width: var(--nav-avatar);
    height: var(--nav-avatar);
    flex-basis: var(--nav-avatar);
  }

  .nav-tab.tab-achuan .avatar-circle img {
    width: var(--nav-avatar-image);
    height: var(--nav-avatar-image);
    margin-bottom: 3px;
  }

  .nav-tab.tab-achuan .avatar-circle .chef-avatar {
    width: var(--nav-avatar);
    height: var(--nav-avatar);
    margin-bottom: 0;
  }

  .scroll-container {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }

  .login-view {
    padding-top: max(20px, var(--safe-top));
  }

  .login-avatar-box {
    width: 64px;
    height: 74px;
  }

  .login-avatar-box > .login-avatar-fallback,
  .login-avatar-box > .chef-avatar {
    width: 64px;
    height: 74px;
  }

  .login-form {
    margin-top: 18px;
  }

  .modal-sheet {
    max-width: 720px;
    max-height: 94vh;
    max-height: 94dvh;
  }
}


/* ==========================================================================
   开店向导（Setup Wizard · 1:1 对齐 activity_store_setup.xml & 设计稿 01a/01b）
   ========================================================================== */
.setup-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--page-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.setup-resume-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.setup-resume-dialog {
  width: 100%;
  padding: 24px 20px 20px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.setup-resume-title {
  color: var(--obsidian-black);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.setup-resume-copy {
  margin-top: 16px;
  color: #4A4A50;
  font-size: 15px;
  line-height: 1.65;
}

.setup-resume-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.setup-resume-btn {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid #D1D1D6;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--obsidian-black);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.setup-resume-btn.primary {
  border-color: var(--obsidian-black);
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.setup-greeting-content {
  padding: 38px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.setup-bubble-card {
  width: 100%;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--obsidian-black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.setup-bubble-card strong {
  font-weight: 700;
  margin-right: 6px;
}

.setup-steps-card {
  width: 100%;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 8px 20px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.setup-single-card {
  padding: 4px 20px;
}

.setup-guide-list {
  padding: 4px 18px;
}

.setup-guide-list .setup-step-row {
  padding: 13px 0;
}

.setup-partial-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #52525B;
}

.setup-guide-tip {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(17, 17, 19, 0.04);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--login-gray-text);
  box-sizing: border-box;
}

.setup-guide-tip.is-ready {
  background: rgba(17, 17, 19, 0.06);
  color: var(--obsidian-black);
}

.setup-step-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.setup-step-num {
  width: 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.setup-step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setup-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.setup-step-desc {
  font-size: 13px;
  color: var(--login-gray-text);
}

.setup-step-divider {
  width: 100%;
  height: 1px;
  background: var(--divider-line);
}

.btn-setup-bottom {
  margin: 20px 16px calc(24px + var(--safe-bottom));
  height: 50px;
  background: var(--obsidian-black);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-setup-bottom:active {
  background: #2C2C2E;
}

.btn-setup-bottom:disabled {
  background: #D4D4D8;
  color: #FFFFFF;
  cursor: not-allowed;
}

/* 顶部步骤与标题 */
.setup-header-fixed {
  padding: 36px 16px 12px;
  background: var(--page-bg);
  flex-shrink: 0;
}

.step-indicator {
  font-size: 13px;
  color: var(--login-gray-text);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.step-indicator::-webkit-scrollbar {
  display: none;
}

.step-indicator span {
  white-space: nowrap;
  flex-shrink: 0;
}

.step-indicator .step-active {
  color: var(--obsidian-black);
  font-weight: 700;
}

.step-indicator .step-dim {
  color: var(--login-gray-text);
}

.setup-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--obsidian-black);
  margin-top: 8px;
  letter-spacing: -0.5px;
}

.setup-page-subtitle {
  font-size: 13px;
  color: var(--login-gray-text);
  margin-top: 4px;
}

.setup-missing-notice {
  font-size: 13px;
  color: #B42318;
  margin-top: 4px;
  font-weight: 600;
}

/* 门店信息表单卡片 */
.setup-form-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 16px;
  margin: 0 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.setup-form-divider {
  width: 100%;
  height: 1px;
  background: var(--divider-line);
  margin: 16px 0 14px;
}

.setup-field {
  display: flex;
  flex-direction: column;
}

.setup-label {
  font-size: 13px;
  color: var(--login-gray-text);
  margin-bottom: 8px;
}

.setup-input {
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--obsidian-black);
  outline: none;
  transition: border-color 0.2s ease;
}

.setup-input:focus {
  border-color: var(--obsidian-black);
}

.setup-input.is-invalid {
  border-color: #B42318 !important;
  background-color: #FFFDFD;
}

.setup-field-error {
  font-size: 11px;
  color: #B42318;
  margin-top: 4px;
  display: none;
}

.setup-field-error.is-visible {
  display: block;
}

/* 双列并排 */
.setup-two-cols {
  display: flex;
  gap: 12px;
}

.setup-two-cols .setup-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 胶囊按钮（黑底 / 白底描边） */
.setup-pill-obsidian {
  height: 32px;
  padding: 0 16px;
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.setup-pill-bordered {
  height: 32px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--obsidian-black);
  font-size: 13px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.setup-cuisine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.setup-cuisine-hint {
  font-size: 13px;
  color: var(--login-gray-text);
}

/* 时段列表 */
.setup-slots-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-slot-item {
  height: 46px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--obsidian-black);
}

.setup-slot-empty {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
  color: var(--login-gray-text);
  font-size: 14px;
}

.setup-slot-del {
  font-size: 18px;
  color: var(--login-gray-text);
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}

.setup-add-slot-btn {
  font-size: 14px;
  color: var(--obsidian-black);
  padding: 8px 0 4px;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
}

/* 休息日与外卖横滑 */
.setup-pills-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

/* 团餐二选一 */
.setup-group-meal-row {
  display: flex;
  gap: 10px;
}

.setup-group-meal-row .setup-pill-btn {
  width: 56px;
  height: 32px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--obsidian-black);
}

.setup-group-meal-row .setup-pill-btn.is-active {
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-weight: 700;
  border-color: var(--obsidian-black);
}

/* 历史销售数据卡片 */
.sales-choice-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  margin-bottom: 12px;
}

.sales-choice-card.highlight {
  border: 1.5px solid var(--obsidian-black);
}

.sales-choice-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.sales-choice-desc {
  font-size: 13px;
  color: var(--login-gray-text);
  margin-top: 4px;
}

.setup-link-btn {
  font-size: 13px;
  color: var(--obsidian-black);
  cursor: pointer;
  margin: 6px 0 16px 4px;
}

.setup-note-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--login-gray-text);
  line-height: 1.6;
  margin-top: 10px;
}

/* 导入结果卡片 */
.sales-result-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sales-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.sales-result-row .lbl {
  color: var(--obsidian-black);
}

.sales-result-row .sub-lbl {
  font-size: 11px;
  color: var(--login-gray-text);
  display: block;
}

.sales-result-row .val {
  font-weight: 700;
  color: var(--obsidian-black);
}

.sales-import-state-body {
  flex: 1;
  padding: 8px 16px 24px;
}

.sales-import-progress-card {
  background: var(--surface-card);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sales-import-progress-track {
  width: 100%;
  height: 8px;
  background: #ECECF0;
  border-radius: 999px;
  overflow: hidden;
}

.sales-import-progress-fill {
  width: 38%;
  height: 100%;
  background: var(--obsidian-black);
  border-radius: inherit;
  animation: sales-import-progress 1.4s ease-in-out infinite;
}

@keyframes sales-import-progress {
  0% {
    width: 22%;
    transform: translateX(0);
  }
  55% {
    width: 62%;
  }
  100% {
    width: 34%;
    transform: translateX(190%);
  }
}

.sales-import-progress-label {
  margin-top: 16px;
  font-size: 14px;
  color: var(--obsidian-black);
}

.sales-import-hint {
  margin: 24px 8px 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--login-gray-text);
  text-align: center;
}

.sales-import-error-card {
  background: #FFF5F3;
  border: 1px solid #F5C7BF;
  border-radius: 16px;
  padding: 18px;
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.sales-import-error-help {
  margin-top: 16px;
  padding: 0 4px;
  color: var(--login-gray-text);
  font-size: 13px;
  line-height: 1.65;
}

.sales-import-guide-link {
  display: inline-flex;
  margin-top: 12px;
}

.sales-import-actions {
  display: flex;
  gap: 10px;
  padding: 16px 16px calc(24px + var(--safe-bottom));
  flex-shrink: 0;
}

.sales-import-primary,
.sales-import-secondary {
  height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sales-import-primary {
  flex: 1.35;
  border: none;
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.sales-import-secondary {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid var(--obsidian-black);
  color: var(--obsidian-black);
}

.sales-import-primary:active {
  background: #2C2C2E;
}

.btn-setup-bottom-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--obsidian-black);
  color: var(--obsidian-black);
}

.btn-setup-bottom-outline:active {
  background: #F0F0F2;
}

.sales-result-coverage {
  margin-top: 12px;
  padding: 0 4px;
  color: var(--login-gray-text);
  font-size: 13px;
  line-height: 1.65;
}

.sales-result-warning {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #F3D59A;
  border-radius: 14px;
  background: #FFF9E8;
  color: #8A5A00;
  font-size: 13px;
  line-height: 1.65;
}

.sales-result-reimport {
  display: inline-flex;
  margin-top: 12px;
  margin-bottom: 6px;
}

.sales-result-step-hint {
  margin: 4px 4px 0;
  color: var(--login-gray-text);
  font-size: 12px;
}

.sales-result-missing {
  color: #B7791F !important;
}

.sales-result-row-val-wide {
  max-width: 64%;
  line-height: 1.45;
  text-align: right;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .sales-import-progress-fill {
    animation: none;
    width: 38%;
  }
}

/* 菜谱上传与 OCR */
.recipe-action-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.recipe-action-card {
  flex: 1;
  height: 80px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.recipe-action-card.black {
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.recipe-action-card.white {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--obsidian-black);
}

.recipe-tips-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 4px 16px;
  margin-top: 10px;
}

.recipe-tip-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--obsidian-black);
}

.recipe-tip-num {
  width: 22px;
  font-weight: 700;
}

.ocr-progress-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.ocr-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-subtle);
  border-top-color: var(--obsidian-black);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 菜系两列底部弹窗 */
.cuisine-picker-body {
  display: flex;
  height: 360px;
  flex: 0 0 360px;
  border-top: 1px solid var(--divider-line);
  overflow: hidden;
}

.cuisine-cat-col {
  width: 105px;
  height: 100%;
  background: var(--surface-inset);
  overflow-y: auto;
  border-right: 1px solid var(--divider-line);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.cuisine-cat-item {
  padding: 14px 10px;
  font-size: 13px;
  color: var(--obsidian-black);
  cursor: pointer;
}

.cuisine-cat-item.is-active {
  background: #FFFFFF;
  font-weight: 700;
}

.cuisine-sub-col {
  flex: 1;
  height: 100%;
  background: #FFFFFF;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.cuisine-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--divider-line);
  font-size: 14px;
  color: var(--obsidian-black);
  cursor: pointer;
}

.cuisine-sub-item.is-selected {
  font-weight: 700;
}

/* C-01 单选菜系与 C-03 营业时段 */
.cuisine-choice-sheet {
  padding: 10px 16px calc(20px + var(--safe-bottom));
  overflow: hidden;
}

.cuisine-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.cuisine-choice-title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--obsidian-black);
}

.cuisine-choice-sheet .modal-close-icon {
  font-size: 24px;
  line-height: 1;
  color: #8E8E93;
  cursor: pointer;
  padding: 2px 6px;
}

.cuisine-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cuisine-choice-option {
  width: 100%;
  min-height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid #D9D9DE;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--obsidian-black);
  font-family: inherit;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.cuisine-choice-option.is-selected {
  border: 2px solid var(--obsidian-black);
  padding: 0 19px;
  font-weight: 700;
}

.cuisine-choice-current {
  color: #8E8E93;
  font-size: 14px;
  font-weight: 400;
}

.cuisine-custom-input {
  display: none;
  flex: 0 0 auto;
}

.cuisine-custom-input.is-visible {
  display: block;
}

.cuisine-choice-error,
.time-slot-error {
  display: none;
  min-height: 18px;
  color: #D92D20;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.cuisine-choice-error.is-visible,
.time-slot-error.is-visible {
  display: block;
}

.cuisine-choice-actions,
.time-slot-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.cuisine-choice-actions button,
.time-slot-actions button {
  flex: 1;
  height: 50px;
  margin: 0;
}

.time-slot-sheet {
  padding: 10px 16px calc(22px + var(--safe-bottom));
}

.time-slot-title {
  margin: 4px 0 16px;
  color: var(--obsidian-black);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
}

.time-wheel-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  height: 132px;
  overflow: hidden;
  border-radius: 18px;
  background: #F7F7F8;
}

.time-wheel-panel::before,
.time-wheel-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40px;
  pointer-events: none;
}

.time-wheel-panel::before {
  top: 0;
  background: linear-gradient(#F7F7F8 20%, rgba(247, 247, 248, 0));
}

.time-wheel-panel::after {
  bottom: 0;
  background: linear-gradient(rgba(247, 247, 248, 0), #F7F7F8 80%);
}

.time-wheel-col {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 132px;
  padding: 44px 0;
  overflow-y: auto;
  box-sizing: border-box;
  scroll-snap-type: y mandatory;
  scroll-padding-block: 44px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.time-wheel-col::-webkit-scrollbar {
  display: none;
}

.time-wheel-item {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #A1A1A6;
  font-family: inherit;
  font-size: 19px;
  line-height: 44px;
  text-align: center;
  scroll-snap-align: center;
  cursor: pointer;
}

.time-wheel-item.is-current {
  color: var(--obsidian-black);
  font-size: 23px;
  font-weight: 800;
}

.time-wheel-separator {
  position: relative;
  z-index: 3;
  align-self: center;
  color: #8E8E93;
  font-size: 17px;
  text-align: center;
}

.time-slot-delete {
  display: block;
  margin: 8px auto 0;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #D92D20;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.time-slot-actions {
  margin-top: 12px;
}

.time-slot-confirm:disabled {
  background: #D1D1D6;
  color: #FFFFFF;
  cursor: not-allowed;
}


@media (min-width: 700px) {
  /* 大屏居中完全由 #app (max-width: 480px; margin: 0 auto) 统一承担，内部容器保持固定 16px 标准边距 */
  .scroll-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-nav,
  .bottom-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-sheet {
    margin-bottom: 16px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   菜品配方确认专属组件与交互 (对齐设计稿 07 & StoreSetupActivity)
   ========================================================================== */
.recipe-confirm-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--page-bg);
  box-sizing: border-box;
}

.recipe-confirm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.rc-fixed-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--page-bg);
}

.rc-header-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px 10px;
}

.rc-unconfirmed-count {
  font-size: 14px;
  font-weight: 700;
  color: #FF9500;
}

.rc-count-hint {
  font-size: 12px;
  color: #8E8E93;
}

.rc-confirmed-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.rc-bubble-card {
  margin: 0 16px 12px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rc-achuan-avatar {
  width: 36px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  flex-shrink: 0;
}

.rc-achuan-avatar img,
.rc-achuan-avatar .chef-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rc-bubble-content {
  flex: 1;
}

.rc-bubble-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--obsidian-black);
  margin-bottom: 2px;
}

.rc-bubble-desc {
  font-size: 12px;
  color: #666666;
  line-height: 1.45;
}

.rc-detail-progress-num {
  font-size: 13px;
  color: #8E8E93;
  font-weight: 600;
}

.rc-scroll-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 84px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-dish-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.rc-dish-card:active {
  transform: scale(0.99);
}

.rc-dish-card.is-confirmed {
  background: #FDFDFE;
  border: 1px solid #EFEFF4;
}

/* 品项确认：沿用首页黑白与阿川提示，16px 页边距、12px 卡片、38px 操作区。 */
.catalog-confirm-page {
  background: var(--page-bg);
}

.catalog-confirm-page .rc-fixed-top {
  min-height: 56px;
  flex-shrink: 0;
}

.catalog-confirm-page .nav-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
}

.catalog-confirm-page .subpage-back svg {
  width: 20px;
  height: 20px;
}

.catalog-confirm-page button {
  font-family: inherit;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.catalog-confirm-page button:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

.catalog-nav-action {
  min-width: 44px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--obsidian-black);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.catalog-confirm-tip {
  flex-shrink: 0;
  margin: 0 16px 8px;
  padding: 12px;
  border-radius: 12px;
  gap: 12px;
  box-shadow: none;
}

.catalog-confirm-tip .rc-bubble-content {
  min-width: 0;
}

.catalog-confirm-tip .rc-bubble-name {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.catalog-confirm-tip .rc-bubble-desc {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 22px;
}

.catalog-confirm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 4px;
}

.catalog-confirm-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.catalog-confirm-section-head strong {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--obsidian-black);
}

.catalog-confirm-count {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.catalog-batch-toggle {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 0 0 0 12px;
  cursor: pointer;
}

.catalog-batch-toggle:disabled {
  opacity: 0.45;
  cursor: default;
}

.catalog-batch-toggle:not(:disabled):active,
.catalog-nav-action:active,
.catalog-confirm-page .subpage-back:active {
  background: var(--control-bg);
}

.catalog-confirm-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  height: 44px;
  margin: 0 16px 12px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-card);
}

.catalog-confirm-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.catalog-confirm-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--obsidian-black);
  font-size: 16px;
  line-height: 24px;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
}

.catalog-confirm-search input::placeholder {
  color: var(--text-tertiary);
}

.catalog-confirm-search input:focus {
  outline: none;
  box-shadow: none;
}

.catalog-confirm-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  scroll-padding: 12px;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
}

.catalog-confirm-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface-card);
  box-sizing: border-box;
}

.catalog-confirm-card.is-selected {
  box-shadow: inset 0 0 0 1px var(--obsidian-black);
}

.catalog-confirm-copy {
  position: relative;
  flex: 1;
  min-width: 0;
}

.catalog-confirm-name {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--obsidian-black);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.catalog-confirm-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.catalog-confirm-name:active {
  color: var(--text-secondary);
}

.catalog-confirm-recipe {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-confirm-type {
  min-width: 68px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.catalog-confirm-type svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.catalog-confirm-type:not(:disabled):active {
  background: #36363D;
}

.catalog-confirm-type.is-static,
.catalog-confirm-type.is-static:disabled {
  background: var(--obsidian-black);
  color: #FFFFFF;
  opacity: 1;
  cursor: default;
}

.catalog-confirm-single {
  position: relative;
  height: 38px;
  width: 64px;
  flex: 0 0 64px;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--obsidian-black);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-confirm-single:not(:disabled):active {
  background: var(--control-bg);
}

.catalog-confirm-single[aria-busy="true"] {
  color: transparent;
}

.catalog-confirm-single[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-subtle);
  border-top-color: var(--obsidian-black);
  border-radius: 50%;
  animation: catalog-confirm-spin 700ms linear infinite;
}

@keyframes catalog-confirm-spin {
  to { transform: rotate(360deg); }
}

.catalog-confirm-single:disabled,
.catalog-confirm-footer button:disabled {
  opacity: 0.45;
  cursor: default;
}

.catalog-select-box {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 -4px 0 -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.catalog-select-box span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #B8B8C0;
  border-radius: 6px;
  background: var(--surface-card);
  color: transparent;
}

.catalog-select-box svg {
  width: 16px;
  height: 16px;
}

.catalog-select-box.is-checked span {
  border-color: var(--obsidian-black);
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.catalog-confirm-empty {
  padding: 48px 16px;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.catalog-confirm-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--divider-line);
  background: var(--surface-card);
  box-sizing: border-box;
}

.catalog-confirm-footer span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.catalog-confirm-footer button {
  min-width: 156px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-confirm-footer button:not(:disabled):active {
  background: #36363D;
}

.catalog-type-sheet .h5ui-choice-sheet {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--surface-card);
  color: var(--obsidian-black);
}

.catalog-type-sheet .h5ui-sheet__title {
  padding: 16px 0;
  color: var(--obsidian-black);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
}

.catalog-type-sheet .h5ui-choice-sheet__list {
  display: flex;
  flex-direction: column;
}

.catalog-type-sheet .h5ui-choice-sheet__item {
  min-height: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.catalog-type-sheet .h5ui-choice-sheet__item + .h5ui-choice-sheet__item {
  border-top: 1px solid var(--divider-line);
}

.catalog-type-sheet .h5ui-choice-sheet__item:active {
  background: var(--control-bg);
}

.catalog-type-sheet .h5ui-choice-sheet__item.is-selected {
  background: var(--surface-card);
  color: var(--obsidian-black);
  font-weight: 500;
}

.catalog-type-sheet .h5ui-choice-sheet__check {
  width: 18px;
  color: var(--obsidian-black);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.catalog-type-sheet .h5ui-choice-sheet__item:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: -2px;
}

.catalog-type-sheet .h5ui-sheet__item--cancel {
  min-height: 44px;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

@media (max-width: 359px) {
  .catalog-confirm-card {
    gap: 8px;
  }

  .catalog-confirm-card:not(.is-batch) {
    flex-wrap: wrap;
  }

  .catalog-confirm-card:not(.is-batch) .catalog-confirm-copy {
    flex-basis: 100%;
  }

  .catalog-confirm-card:not(.is-batch) .catalog-confirm-actions {
    margin-left: auto;
  }
}

.rc-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}

.rc-dish-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-dish-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.rc-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rc-status-pill.pending {
  color: #FF9500;
  background: #FFF5E5;
}

.rc-status-pill.done {
  color: #34C759;
  background: #EAF9EE;
}

.rc-dish-desc {
  font-size: 12px;
  color: #8E8E93;
  margin-top: 4px;
}

.rc-missing-alert {
  color: #FF9500;
  font-weight: 600;
}

.btn-rc-action-black {
  height: 32px;
  border-radius: 999px;
  background: var(--obsidian-black);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-rc-action-bordered {
  height: 32px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--obsidian-black);
  border: 1px solid #D1D1D6;
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.rc-bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px max(16px, var(--safe-bottom));
  background: var(--page-bg);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.btn-rc-bottom-full {
  width: 100%;
  height: 48px;
  background: var(--obsidian-black);
  color: #FFFFFF;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn-rc-bottom-full:active {
  transform: scale(0.99);
  opacity: 0.9;
}

.rc-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  background: var(--page-bg);
}

.rc-detail-title-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rc-detail-dish-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.rc-detail-progress {
  font-size: 13px;
  color: #8E8E93;
  font-weight: 500;
}

.rc-tabs-wrapper {
  overflow-x: auto;
  padding: 4px 16px 10px;
  scrollbar-width: none;
}

.rc-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.rc-tabs-scroller {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.rc-tab-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: none;
  background: #E5E5EA;
  color: #8E8E93;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}

.rc-tab-pill.active {
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-weight: 700;
}

.rc-tab-pill.done:not(.active) {
  background: #FFFFFF;
  color: var(--obsidian-black);
  border: 1px solid #D1D1D6;
}

.rc-detail-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 24px;
}

.rc-section-title {
  padding: 10px 16px 6px;
  display: flex;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.rc-section-sub {
  font-size: 12px;
  font-weight: normal;
  color: #8E8E93;
  margin-left: 6px;
}

.rc-card-box {
  margin: 0 16px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rc-ingredient-list {
  display: flex;
  flex-direction: column;
}

.rc-ingredient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid #F2F2F7;
}

.rc-ingredient-row:last-child {
  border-bottom: none;
}

.rc-ing-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--obsidian-black);
  flex: 1;
}

.rc-ing-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-pill-btn {
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #D1D1D6;
  background: #FFFFFF;
  color: var(--obsidian-black);
}

.rc-pill-btn.yield-filled {
  border-color: var(--obsidian-black);
  color: var(--obsidian-black);
}

.rc-pill-btn.yield-missing {
  border: 1.5px dashed #FF9500;
  background: #FFF8EE;
  color: #FF9500;
  font-weight: 700;
}

.rc-del-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: none;
  color: #C7C7CC;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-add-btn {
  width: 100%;
  height: 36px;
  border: 1px dashed #D1D1D6;
  background: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--obsidian-black);
  margin-top: 10px;
  cursor: pointer;
}

/* 必填拦截弹窗 */
.rc-dialog-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px 20px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.rc-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--obsidian-black);
  margin-bottom: 12px;
}

.rc-dialog-body {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

/* 键盘与选择抽屉 */
.rc-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 14px 20px 28px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.rc-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #D1D1D6;
  margin: 0 auto 12px;
}

.rc-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
  text-align: center;
  margin-bottom: 14px;
}

.rc-keypad-display-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 16px;
  border-bottom: 1px solid #F2F2F7;
  margin-bottom: 16px;
}

.rc-keypad-val {
  font-size: 36px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.rc-keypad-unit {
  flex: none;
  font-size: 16px;
  font-weight: 600;
  color: #111113;
  line-height: 1;
  white-space: nowrap;
}

.rc-yield-input {
  font-size: 36px;
  font-weight: 700;
  color: var(--obsidian-black);
  width: 120px;
  text-align: center;
  border: none;
  outline: none;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.rc-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rc-key {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #E5E5EA;
  background: #F9F9FB;
  font-size: 20px;
  font-weight: 600;
  color: var(--obsidian-black);
  cursor: pointer;
  touch-action: manipulation;
}

.rc-key:active {
  background: #E5E5EA;
}

.rc-quick-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.rc-quick-pill {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #D1D1D6;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: var(--obsidian-black);
  cursor: pointer;
}

.rc-quick-pill:active {
  background: var(--obsidian-black);
  color: #FFFFFF;
}

/* ========================================================
   开店向导 · 品项分类 (按设计稿 1:1 精确实现)
   ======================================================== */
.cat-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.cat-stat-card {
  background: #F2F2F7;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-stat-card.active-black {
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.cat-stat-card.active-black .cat-stat-lbl,
.cat-stat-card.active-black .cat-stat-val {
  color: #FFFFFF;
}

.cat-stat-lbl {
  font-size: 12px;
  color: #8E8E93;
  margin-bottom: 2px;
}

.cat-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.cat-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 4px 6px;
}

.cat-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.cat-group-sub {
  font-size: 12px;
  color: #8E8E93;
}

.cat-item-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #E5E5EA;
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cat-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--obsidian-black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-item-desc {
  font-size: 12px;
  color: #8E8E93;
  margin-top: 2px;
}

.cat-pill-dropdown {
  background: #1C1C1E;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-pill-dropdown.light {
  background: #FFFFFF;
  color: var(--obsidian-black);
  border: 1px solid #D1D1D6;
}

.cat-batch-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 12px 16px;
  border-top: 1px solid #E5E5EA;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cat-select-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E5EA;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-select-card.selected {
  border-color: #FF3B30;
  background: #FFF5F5;
}

.cat-select-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--obsidian-black);
}

.cat-select-desc {
  font-size: 12px;
  color: #8E8E93;
  margin-top: 3px;
}


/* ========================================================
   开店向导 · 品项分类 (交付包 10/26 完整还原)
   ======================================================== */
.chips-flt-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 10px 16px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips-flt-bar::-webkit-scrollbar {
  display: none;
}
.chip-filter {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E5E5EA);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--obsidian-black, #111113);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-filter.on {
  background: var(--obsidian-black, #111113);
  color: #FFFFFF;
  border-color: var(--obsidian-black, #111113);
  font-weight: 600;
}

.cat-grp {
  font-size: 13px;
  color: #8A8A93;
  margin: 14px 18px 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cat-grp b {
  color: #3F3F46;
  font-size: 13px;
  font-weight: 600;
}
.cat-grp span {
  font-size: 12px;
  color: #8A8A93;
}

.cat-box {
  background: #FFFFFF;
  border-radius: 16px;
  margin: 0 16px 10px;
  padding: 0 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ECECEF;
}
.cat-row:last-child {
  border-bottom: none;
}
.cat-row-info {
  flex: 1;
  min-width: 0;
}
.cat-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #111113;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-row-sub {
  font-size: 12px;
  color: #8A8A93;
  margin-top: 2px;
}

.tag-pending-badge {
  font-size: 11px;
  color: #B45309;
  background: #FEF3C7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.cat-kd-btn {
  font-size: 12px;
  border-radius: 7px;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1.5px solid #D4D4D8;
  color: #3F3F46;
  background: #FFFFFF;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-foot-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--page-background, #F5F5F7);
  border-top: 1px solid #ECECEF;
  padding: 10px 16px 28px;
  display: flex;
  gap: 8px;
  z-index: 90;
}
.btn-cat-skip {
  flex: 1;
  border: 1.5px solid #111113;
  background: #FFFFFF;
  color: #111113;
  border-radius: 14px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-cat-confirm {
  flex: 2;
  background: #111113;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cat-bar2 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid #ECECEF;
  padding: 10px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}
.cat-bar2 .n {
  font-size: 14px;
  color: #3F3F46;
}
.cat-bar2 .n b {
  font-weight: 700;
  color: #111113;
  font-size: 16px;
}
.btn-batch-apply {
  background: #111113;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-batch-apply:disabled, .btn-batch-apply.off {
  background: #D4D4D8;
  cursor: not-allowed;
}

.cbx-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #111113;
  color: #FFFFFF;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.cbx-box.o {
  background: #FFFFFF;
  border: 2px solid #C4C4CC;
  color: transparent;
}

.opt-card {
  border: 1.5px solid #E4E4E7;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.opt-card small {
  display: block;
  font-size: 12px;
  color: #8A8A93;
  margin-top: 2px;
  font-weight: 400;
}
.opt-card.on {
  border-color: #111113;
  background: #F9F9FB;
}
.cur-tag {
  display: inline-block;
  font-size: 11px;
  color: #15803D;
  background: #DCFCE7;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 04 确认订货：数量调整与计算过程 */
.btn-order-qty,
.btn-order-calc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #D9D9DE;
  background: #FFFFFF;
  color: #111113;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-order-qty:active {
  background: #F2F2F5;
}
.btn-order-calc {
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #8A8A93;
  border-color: transparent;
  background: transparent;
}

/* H5 App parity fixes · 2026-10-28 */
.page-top-nav {
  position: relative;
  justify-content: center;
}

.page-top-nav .nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}

.recipe-top-nav .nav-title {
  left: 16px;
  transform: none;
}

.page-top-nav .nav-action-strong {
  position: absolute;
  right: 16px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #111113;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.recipes-view {
  display: flex;
  flex-direction: column;
}

.recipes-view > * + * {
  margin-top: 14px;
}

.recipes-view > .recipe-check-card {
  margin-top: 10px;
}

.recipe-check-card {
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
}

.recipe-check-row {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #c6c6cc;
  text-align: left;
  cursor: pointer;
}

.recipe-check-row + .recipe-check-row {
  border-top: 1px solid var(--border-divider);
}

.recipe-check-row strong,
.recipe-check-row small {
  display: block;
}

.recipe-check-row strong {
  color: #111113;
  font-size: 15px;
  font-weight: 500;
}

.recipe-check-row small {
  margin-top: 4px;
  color: #c35b13;
  font-size: 12px;
}

.recipes-view > .recipe-dish-search,
.recipes-view > .ingredient-search {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid #e7e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111113;
  font-size: 14px;
  box-sizing: border-box;
}

.recipes-view > .recipe-dish-catalog {
  margin-top: 8px;
}

.recipe-dish-catalog {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: stretch;
  height: clamp(260px, calc(100dvh - 240px), 650px);
  min-height: 0;
  overflow: hidden;
}

.recipe-dish-categories {
  min-height: 0;
  overflow-y: auto;
  background: #f4f4f6;
  -webkit-overflow-scrolling: touch;
}

.recipe-dish-category {
  position: relative;
  display: flex;
  width: 100%;
  height: 65px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8e8e98;
  font-size: 14px;
  font-weight: 400;
  box-sizing: border-box;
  cursor: pointer;
}

.recipe-dish-category.is-empty {
  opacity: 0.6;
  cursor: default;
}

.recipe-dish-category:focus-visible {
  outline: 2px solid #252529;
  outline-offset: -2px;
}

.recipe-dish-category small {
  margin-top: 3px;
  font-size: 12px;
}

.recipe-dish-category.active {
  border-radius: 0 14px 0 0;
  background: #fff;
  color: #111113;
  font-weight: 700;
}

.recipe-dish-category.active::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: #111113;
  content: '';
}

.recipe-dish-catalog .recipe-dish-list {
  min-width: 0;
  min-height: 0;
  padding: 0 14px;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.recipe-dish-catalog .ingredient-card.ingredient-list {
  min-width: 0;
  min-height: 0;
  padding: 0 14px;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.recipe-dish-group-title {
  padding: 14px 0 4px;
  color: #8e8e98;
  font-size: 12px;
  font-weight: 600;
}

.recipe-dish-catalog .dish-list-name {
  font-size: 15px;
  font-weight: 500;
}

.recipe-dish-catalog .dish-list-subtitle {
  padding-left: 0;
}

.recipe-catalog-empty {
  padding: 32px 8px;
  color: #8e8e98;
  font-size: 13px;
  text-align: center;
}

.recipe-catalog-configure {
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #111113;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.recipe-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.recipe-filter-row::-webkit-scrollbar {
  display: none;
}

.recipe-filter-row > * + * {
  margin-left: 7px;
}

.recipe-filter {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #E4E4E8;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6B6B73;
  font-size: 13px;
  font-weight: 600;
}

.recipe-filter.active {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.recipe-dish-list {
  padding: 0 16px;
  border-radius: 18px;
  background: #FFFFFF;
}

.dish-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border-divider);
  cursor: pointer;
}

.dish-list-row:last-of-type {
  border-bottom: 0;
}

.dish-list-row:active {
  background: #FAFAFC;
}

.dish-list-main {
  flex: 1;
  min-width: 0;
}

.dish-list-title-line {
  display: flex;
  align-items: center;
}

.dish-type-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  margin-right: 8px;
  padding: 0 8px;
  border: 1px solid #D9D9DE;
  border-radius: 7px;
  background: #FFFFFF;
  color: #111113;
  font-size: 12px;
  font-weight: 700;
}

.dish-type-badge.is-primary {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.dish-list-name {
  min-width: 0;
  overflow: hidden;
  color: #111113;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-list-subtitle {
  margin-top: 5px;
  padding-left: 52px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.dish-list-subtitle.is-warning {
  color: #B45309;
}

.dish-list-subtitle.is-muted {
  color: #9A9AA3;
}

.dish-list-arrow {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #B8B8C0;
  font-size: 22px;
  line-height: 1;
}

.dish-list-footnote {
  padding: 14px 0 6px;
  color: #A1A1AA;
  font-size: 12px;
  text-align: center;
}

.ingredient-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #111113;
  font-size: 14px;
  font-weight: 700;
}

.recipes-view > .ingredient-card {
  margin-top: 10px;
}

.ingredient-card {
  padding: 2px 14px;
  border-radius: 18px;
  background: #FFFFFF;
}

.ingredient-card .ingredient-row {
  gap: 10px;
  justify-content: flex-start;
  padding: 12px 0;
  border-top: 0;
  border-bottom: 1px solid #ECECEF;
}

.ingredient-card .ingredient-rows .ingredient-row:last-child {
  border-bottom: 0;
}

.ingredient-card .ingredient-row:active {
  background: #FAFAFC;
}

.ingredient-card .ingredient-row-main {
  display: block;
  flex: 1;
  min-width: 0;
}

.ingredient-card .ingredient-row-main strong {
  display: block;
  overflow: hidden;
  color: #111113;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-card .ingredient-row-main small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #8A8A93;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-cycle-day {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1.5px solid #111113;
  border-radius: 8px;
  color: #111113;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ingredient-cycle-day.is-regular {
  background: #111113;
  color: #FFFFFF;
}

.ingredient-row-arrow {
  flex: 0 0 auto;
  color: #C4C4CC;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.ingredient-list-footnote {
  padding: 13px 0;
  color: #8A8A93;
  font-size: 13.5px;
  text-align: center;
}

.ingredient-empty {
  padding: 30px 12px;
  text-align: center;
}

.ingredient-empty-title {
  color: #8A8A93;
  font-size: 13.5px;
}

.ingredient-empty-action {
  height: 34px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1.5px solid #111113;
  border-radius: 10px;
  background: #FFFFFF;
  color: #111113;
  font-size: 13px;
  font-weight: 600;
}

.ingredient-section-title span:last-child {
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 400;
}

.recipe-loading-card {
  padding: 12px 16px;
  border-radius: 18px;
  background: #FFFFFF;
}

.skeleton-block {
  border-radius: 10px;
  background: linear-gradient(90deg, #F1F1F4 25%, #F8F8FA 37%, #F1F1F4 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-mode {
  height: 48px;
  border-radius: 14px;
}

.skeleton-filter {
  height: 34px;
}

.skeleton-row {
  height: 58px;
  margin: 10px 0;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.page-loading-skeleton {
  padding: 16px;
}

.page-loading-skeleton .skeleton-block {
  height: 72px;
  margin-bottom: 12px;
}

.page-loading-skeleton .skeleton-title {
  width: 45%;
  height: 44px;
}

.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--page-bg);
}

.chat-top-nav {
  position: relative;
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: flex-end;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--divider-line);
  background: #FFFFFF;
}

.chat-top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--obsidian-black);
  font-size: 18px;
  font-weight: 700;
}

.chat-notebook-btn {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 10px;
  border: 0;
  background: transparent;
  color: #111113;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chat-notebook-dot {
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: #EF4444;
}

.chat-notebook-arrow {
  margin-left: 4px;
  color: #8A8A93;
  font-size: 20px;
  line-height: 1;
}

.chat-msg-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.chat-msg-list > * + * {
  margin-top: 14px;
}

.chat-time-divider {
  align-self: center;
  color: #9B9BA5;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chat-message.is-user {
  align-items: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--obsidian-black);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  word-break: break-word;
  white-space: pre-line;
}

.chat-message.is-user .chat-bubble {
  background: #111113;
  color: #FFFFFF;
}

.chat-bubble.is-typing {
  color: var(--text-tertiary);
}

.chat-message.is-highlighted .chat-bubble {
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.22);
}

.chat-send-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #C62828;
  font-size: 12px;
}

.btn-chat-retry {
  border: 0;
  background: transparent;
  color: #C62828;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-message-status {
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.chat-preorder-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 92%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1.5px solid #111113;
  border-radius: 16px;
  background: #FFFFFF;
}

.chat-preorder-label {
  color: #8A8A93;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chat-preorder-question {
  margin-top: 5px;
  color: #111113;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.chat-preorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-preorder-reply {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #D9D9DE;
  border-radius: 999px;
  background: #F7F7F8;
  color: #111113;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-preorder-reply:active {
  background: #ECECEF;
  transform: scale(0.98);
}

.chat-preorder-answered {
  margin-top: 10px;
  color: #15803D;
  font-size: 12px;
  font-weight: 600;
}

.chat-upgrade-card {
  box-sizing: border-box;
  align-self: stretch;
  max-width: 92%;
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #111113;
  border-radius: 14px;
  background: #FFFFFF;
}

.chat-message.has-upgrade-card .chat-upgrade-card {
  order: -1;
  margin-top: 0;
  margin-bottom: 8px;
}

.chat-upgrade-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.chat-upgrade-copy {
  flex: 1;
  min-width: 0;
  color: #111113;
  font-size: 14px;
  line-height: 1.5;
}

.chat-upgrade-copy b {
  display: block;
  font-size: 14px;
}

.chat-upgrade-copy small {
  display: block;
  margin-top: 2px;
  color: #8A8A93;
  font-size: 12px;
  line-height: 1.45;
}

.chat-upgrade-card .btn-chat-see-growth {
  flex-shrink: 0;
  width: auto;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
}

.chat-notebook-card {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #E6E6EA;
  border-radius: 12px;
  background: #FFFFFF;
}

.chat-notebook-main {
  display: flex;
  align-items: flex-start;
}

.chat-notebook-icon {
  margin-right: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.chat-notebook-copy {
  flex: 1;
  min-width: 0;
}

.chat-notebook-title {
  color: #6B6B73;
  font-size: 13px;
  font-weight: 600;
}

.chat-notebook-detail {
  margin-top: 2px;
  overflow: hidden;
  color: #A1A1AA;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-notebook-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.chat-notebook-actions button {
  padding: 2px 6px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chat-notebook-actions .btn-chat-note-edit {
  color: #B45309;
}

.chat-notebook-actions .btn-chat-note-undo {
  color: #B42318;
}

.chat-restock-card,
.chat-receive-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 90%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1.5px solid #6E56CF;
  border-radius: 16px;
  background: #FFFFFF;
  color: #1C1C1E;
}

.chat-restock-label {
  display: flex;
  align-items: center;
  color: #8A8A93;
  font-size: 12px;
}

.chat-restock-label span + span {
  margin-left: 6px;
}

.chat-restock-title {
  margin-top: 6px;
  color: #6E56CF;
  font-size: 12px;
  font-weight: 700;
}

.chat-restock-done {
  margin-top: 10px;
  color: #15803D;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.chat-receive-title {
  color: #6E56CF;
  font-size: 12px;
  font-weight: 700;
}

.chat-receive-list {
  margin-top: 4px;
}

.chat-receive-item {
  padding: 9px 0;
}

.chat-receive-item + .chat-receive-item {
  border-top: 1px solid #F4F4F6;
}

.chat-receive-item-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chat-receive-name {
  color: #1C1C1E;
  font-size: 15px;
  font-weight: 700;
}

.chat-receive-qty {
  color: #1C1C1E;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-receive-price {
  margin-top: 3px;
  color: #8A8A93;
  font-size: 11.5px;
}

.chat-receive-divider {
  height: 1px;
  margin: 4px 0 9px;
  background: #ECECEF;
}

.chat-receive-hint {
  color: #8A8A93;
  font-size: 12px;
  line-height: 1.6;
}

.chat-receive-done {
  margin-top: 10px;
  color: #15803D;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.chat-restock-card .btn-confirm-restock,
.chat-receive-card .btn-confirm-receive {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.chat-restock-card .btn-confirm-restock:disabled,
.chat-receive-card .btn-confirm-receive:disabled {
  opacity: 0.64;
}

.chat-input-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--divider-line);
  background: #FFFFFF;
}

.chat-input-bar > * + * {
  margin-left: 8px;
}

.chat-mic-btn {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: #F8F8FA;
  color: #55555F;
}

.chat-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 19px;
  outline: none;
  background: #F7F8FA;
  color: var(--obsidian-black);
  font-size: 14px;
}

.chat-send-btn {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #111113;
  color: #FFFFFF;
}

.chat-stop-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #FFFFFF;
}

/* 6.4 品项详情：按 06 交付稿收口 */
.dish-detail-page {
  height: 100%;
  min-height: 100%;
  padding-bottom: 28px;
  overflow-y: auto;
  background: #F5F6F8;
  -webkit-overflow-scrolling: touch;
}

.dish-detail-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  background: #F5F6F8;
}

.dish-detail-nav .subpage-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #111113;
  font-size: 24px;
  line-height: 32px;
}

.dish-detail-nav .nav-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  color: #111113;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-detail-nav .subpage-nav-spacer {
  position: absolute;
  right: 12px;
  width: 40px;
  height: 40px;
}

.dish-detail-scroll-body {
  padding: 12px 16px 34px;
}

.dish-detail-card {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: #FFFFFF;
}

.dish-detail-meta-card {
  padding: 0 16px;
}

.dish-detail-meta-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid #E6E6EA;
}

.dish-detail-meta-label {
  color: #111113;
  font-size: 15px;
  font-weight: 700;
}

.dish-detail-type-select {
  display: flex;
  width: 104px;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  outline: none;
  background: #111113;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dish-detail-type-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dish-detail-type-chevron {
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1;
}

.dish-type-picker-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.dish-type-picker {
  width: min(100%, 480px);
  padding: 10px 16px calc(18px + var(--safe-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  animation: slideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dish-type-picker-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #D8D8DD;
}

.dish-type-picker-title {
  margin-bottom: 10px;
  color: #111113;
  font-size: 17px;
  font-weight: 800;
}

.dish-type-picker-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  border: 0;
  border-bottom: 0.5px solid #E8E8EC;
  background: transparent;
  color: #111113;
  font-size: 16px;
  text-align: left;
}

.dish-type-picker-option:last-child {
  border-bottom: 0;
}

.dish-type-picker-option::after {
  color: transparent;
  content: "✓";
  font-size: 16px;
  font-weight: 800;
}

.dish-type-picker-option.is-selected::after {
  color: #111113;
}

.recipe-match-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.recipe-match-sheet {
  display: flex;
  width: min(100%, 480px);
  max-height: min(78vh, 680px);
  flex-direction: column;
  padding: 10px 16px calc(16px + var(--safe-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.14);
  animation: slideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.recipe-match-handle {
  width: 38px;
  height: 4px;
  flex: 0 0 auto;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #D8D8DD;
}

.recipe-match-title {
  flex: 0 0 auto;
  color: #111113;
  font-size: 17px;
  font-weight: 800;
}

.recipe-match-search {
  width: 100%;
  height: 42px;
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  outline: none;
  background: #F2F2F5;
  color: #111113;
  font-size: 15px;
  box-sizing: border-box;
}

.recipe-match-hint {
  flex: 0 0 auto;
  margin: 10px 0 6px;
  color: #8A8A93;
  font-size: 12.5px;
}

.recipe-match-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.recipe-match-option {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 0.5px solid #E8E8EC;
  background: transparent;
  color: #111113;
  font-size: 15px;
  text-align: left;
}

.recipe-match-option small {
  flex: 0 0 auto;
  color: #8A8A93;
  font-size: 11.5px;
}

.recipe-match-option::after {
  flex: 0 0 auto;
  color: transparent;
  content: "✓";
  font-size: 16px;
  font-weight: 800;
}

.recipe-match-option.is-selected::after {
  color: #111113;
}

.recipe-match-missing {
  color: #8A8A93;
}

.recipe-match-save {
  width: 100%;
  height: 50px;
  flex: 0 0 auto;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #111113;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
}

.dish-detail-alias-block {
  padding: 14px 0 16px;
}

.dish-detail-alias-heading {
  display: flex;
  align-items: baseline;
}

.dish-detail-alias-heading small {
  margin-left: 7px;
  color: #8E8E93;
  font-size: 12px;
}

.dish-detail-alias-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dish-detail-alias-list > * {
  margin: 0 8px 8px 0;
}

.dish-detail-alias-chip,
.dish-detail-alias-add {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  background: #F1F1F4;
  color: #4B4B52;
  font-size: 12.5px;
}

.dish-detail-alias-add {
  border: 1px dashed #D7D7DC;
  background: #FAFAFB;
}

.dish-detail-section-title {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.dish-detail-section-title b {
  color: #111113;
  font-size: 16px;
  font-weight: 800;
}

.dish-detail-section-title span {
  color: #8E8E93;
  font-size: 12px;
}

.dish-detail-ingredient-list {
  padding: 0 16px;
}

.dish-detail-ingredient-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid #E6E6EA;
}

.dish-detail-ingredient-row:last-child {
  border-bottom: 0;
}

.dish-detail-ingredient-name {
  min-width: 0;
  flex: 1;
  padding-right: 10px;
  color: #111113;
  font-size: 15px;
  font-weight: 500;
}

.dish-detail-ingredient-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.dish-detail-ingredient-controls > * + * {
  margin-left: 6px;
}

.dish-detail-pill {
  height: 32px;
  padding: 0 9px;
  border: 1.5px solid #111113;
  border-radius: 9px;
  background: #FFFFFF;
  color: #111113;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.dish-detail-qty {
  display: flex;
  min-width: 62px;
  height: 32px;
  align-items: baseline;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: #111113;
}

.dish-detail-qty b {
  font-size: 16px;
  font-weight: 700;
}

.dish-detail-qty span {
  margin-left: 6px;
  color: #8E8E93;
  font-size: 12.5px;
}

.dish-detail-add-row {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-top: 0.5px solid #E6E6EA;
  background: #FFFFFF;
  color: #4B4B52;
  font-size: 14px;
  text-align: left;
}

.dish-detail-sale-card {
  margin-top: 20px;
}

.dish-detail-sale-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.dish-detail-sale-row strong,
.dish-detail-link-row strong {
  display: block;
  color: #111113;
  font-size: 15px;
  font-weight: 500;
}

.dish-detail-sale-row small,
.dish-detail-link-row small {
  display: block;
  margin-top: 4px;
  color: #8E8E93;
  font-size: 12px;
  font-weight: 400;
}

.dish-detail-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 14px;
  background: #111113;
}

.dish-detail-switch span {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
}

.dish-detail-switch.is-off {
  background: #D4D4D8;
}

.dish-detail-switch.is-off span {
  right: auto;
  left: 3px;
}

.dish-detail-link-row {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border: 0;
  border-top: 0.5px solid #E6E6EA;
  background: #FFFFFF;
  text-align: left;
}

.dish-detail-link-row > span:first-child {
  min-width: 0;
  flex: 1;
}

.dish-detail-chevron {
  margin-left: 10px;
  color: #C4C4CC;
  font-size: 22px;
  line-height: 1;
}

.dish-detail-combo-group {
  padding: 12px 0;
  border-bottom: 0.5px solid #E6E6EA;
}

.dish-detail-combo-group > strong {
  color: #111113;
  font-size: 14px;
}

.dish-detail-combo-group > div {
  margin-top: 5px;
  color: #8E8E93;
  font-size: 12px;
}

.dish-detail-combo-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #111113;
  font-size: 13px;
}

.dish-detail-empty {
  padding: 24px 0;
  color: #8E8E93;
  font-size: 13px;
  text-align: center;
}

.dish-detail-no-consumption {
  padding: 20px 16px;
}

.dish-detail-no-consumption strong {
  display: block;
  color: #111113;
  font-size: 16px;
}

.dish-detail-no-consumption span {
  display: block;
  margin-top: 5px;
  color: #8E8E93;
  font-size: 12px;
}

.dish-detail-delete {
  margin: 16px 2px 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #DC2626;
  font-size: 15px;
}

.dish-detail-cancel-return {
  width: 100%;
  margin: 16px 0 4px;
  padding: 12px 16px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #3A3A3C;
  font-size: 14px;
  font-weight: 600;
}

.chat-mic-btn.is-recording {
  background: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}


/* 1028b 阿川成长、小本本闭环与长页面对齐样式 */
.growth-view {
  padding-bottom: 0;
}

.growth-view .card {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 16px;
  box-shadow: none;
}

.my-detail-scroll.growth-scroll {
  padding-top: 8px;
  padding-bottom: 24px;
}

.growth-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.growth-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.growth-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #E5E0F0;
  border-radius: 12px;
  background: #FFFFFF;
  color: #5B43AB;
  font-size: 13px;
  line-height: 20px;
}

.growth-upgrade-banner > svg {
  flex: none;
}

.growth-profile-card {
  padding: 20px;
}

.growth-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.growth-avatar {
  display: flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F3F0FC;
  overflow: hidden;
}

.growth-avatar img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.growth-identity {
  flex: 1;
  min-width: 0;
}

.growth-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.growth-name-row h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.growth-badge,
.chat-level-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: #F1EDFA;
  color: #5B43AB;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-store-name {
  margin: 4px 0 0;
  color: #71717A;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #EEEEF1;
}

.growth-overview > div {
  min-width: 0;
}

.growth-overview dt {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-overview dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
  margin: 4px 0 0;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.growth-overview dd > strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 40px;
  overflow-wrap: anywhere;
}

.growth-overview dd > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-overview .growth-quality-score {
  font-size: 32px;
}

.growth-overview .growth-quality-empty {
  font-size: 18px;
  font-weight: 500;
}

.growth-update-time {
  margin: 12px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-section,
.growth-view .growth-level-state {
  margin-top: 24px;
}

.growth-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.growth-section-title h2,
.growth-level-state h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.growth-section-title > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-need-card {
  padding: 0 16px;
}

.growth-need-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEEEF1;
}

.growth-need-row:last-child {
  border-bottom: 0;
}

.growth-need-copy strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-need-copy p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.growth-need-state {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.growth-need-state.is-met {
  color: #23724D;
}

.growth-level-state {
  padding: 16px;
}

.growth-level-state p,
.growth-inline-state {
  margin: 8px 0 0;
  color: #71717A;
  font-size: 13px;
  line-height: 20px;
}

.growth-inline-state {
  margin: 0;
  padding: 20px 16px;
}

.growth-quality-card {
  padding: 0;
  overflow: hidden;
}

.growth-metric-row {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.growth-metric-row + .growth-metric-row {
  border-top: 1px solid #EEEEF1;
}

.growth-metric-row:disabled {
  opacity: 1;
  cursor: default;
}

.growth-metric-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.growth-metric-name {
  min-width: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.growth-metric-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.growth-metric-score small,
.growth-metric-unscored {
  color: #71717A;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.growth-metric-subtext {
  display: block;
  margin-top: 4px;
  color: #52525B;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-metric-track {
  display: block;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: #EEEEF1;
  overflow: hidden;
}

.growth-metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #34343A;
}

.growth-metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-metric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.growth-metric-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: #52525B;
}

.growth-metric-row:focus-visible {
  outline: 2px solid #6650A3;
  outline-offset: -3px;
}

.growth-metric-row:active:not(:disabled) {
  background: #F5F5F7;
}

.growth-route-card {
  padding: 0 16px;
  list-style: none;
}

.growth-route-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
}

.growth-route-row:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -16px;
  left: 11px;
  width: 1px;
  background: #E4E4E7;
  content: '';
}

.growth-route-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #D4D4D8;
  border-radius: 50%;
  background: #FFFFFF;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-route-row.is-complete .growth-route-index {
  border-color: #E4E4E7;
  background: #F5F5F7;
  color: #52525B;
}

.growth-route-row.is-current .growth-route-index {
  border-color: #6650A3;
  background: #6650A3;
  color: #FFFFFF;
}

.growth-route-name {
  min-width: 0;
  color: #71717A;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.growth-route-row.is-complete .growth-route-name,
.growth-route-row.is-current .growth-route-name {
  color: var(--text-primary);
  font-weight: 500;
}

.growth-route-status {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-route-row.is-current .growth-route-status {
  color: #5B43AB;
  font-weight: 500;
}

.growth-route-note {
  margin: 12px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.modal-sheet.growth-metric-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  max-height: min(86dvh, 720px);
  padding: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.growth-modal-handle {
  flex: none;
  width: 32px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: #E4E4E7;
}

.growth-modal-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.growth-modal-header > div {
  min-width: 0;
}

.growth-modal-header p {
  margin: 0 0 4px;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.growth-modal-header button {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717A;
  cursor: pointer;
}

.growth-modal-body {
  min-height: 0;
  padding: 0 20px calc(24px + var(--safe-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.growth-modal-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #F5F5F7;
}

.growth-modal-score > div > span,
.growth-modal-score > span {
  display: block;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.growth-modal-score strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.growth-modal-score small {
  color: #71717A;
  font-size: 13px;
  font-weight: 400;
}

.growth-modal-result {
  margin: 16px 0;
  color: #52525B;
  font-size: 14px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.growth-modal-facts {
  margin: 0;
}

.growth-modal-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #EEEEF1;
  font-size: 13px;
  line-height: 20px;
}

.growth-modal-facts dt {
  color: #71717A;
}

.growth-modal-facts dd {
  margin: 0;
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.growth-formula {
  margin-top: 16px;
  border-top: 1px solid #EEEEF1;
}

.growth-formula summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  color: #52525B;
  font-size: 13px;
  line-height: 20px;
  list-style: none;
  cursor: pointer;
}

.growth-formula summary::-webkit-details-marker {
  display: none;
}

.growth-formula[open] summary > svg {
  transform: rotate(90deg);
}

.growth-formula p {
  margin: 0 0 12px;
  color: #71717A;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-formula .growth-formula-text {
  padding: 12px;
  border-radius: 8px;
  background: #F5F5F7;
  color: #52525B;
}

.growth-modal-header button:focus-visible,
.growth-formula summary:focus-visible,
.growth-nav .subpage-back:focus-visible {
  outline: 2px solid #6650A3;
  outline-offset: 2px;
}

.growth-modal-header button:active {
  background: #F0F0F2;
}

@media (hover: hover) and (pointer: fine) {
  .growth-metric-row:hover:not(:disabled),
  .growth-modal-header button:hover {
    background: #FAFAFB;
  }
  .growth-formula summary:hover {
    color: var(--text-primary);
  }
}

.chat-title-badge-btn:active {
  opacity: 0.75;
}

.nb-row:active {
  background-color: #F8F8FA;
}

.detail-field-row.is-editable:active {
  background-color: #F8F8FA;
}

.todo-all-done-card {
  border: 1px solid #ECECEF;
  background: #FFFFFF;
}

.chat-notebook-card.is-past {
  border-color: #E4E4E7 !important;
  background: #F4F4F5 !important;
}

.chat-notebook-card.is-past .chat-notebook-title,
.chat-notebook-card.is-past .chat-notebook-detail {
  color: var(--text-sub) !important;
}

.btn-chat-note-view {
  font-size: 13px;
  font-weight: 700;
  color: #111113;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

/* ================= 1029 语音输入全套设计稿样式 ================= */
.vov {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 990;
  pointer-events: auto;
}

.vrec {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 260px;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #111113;
  z-index: 992;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, color 0.15s ease;
}
.vrec.gry {
  background: #e4e4e7;
  color: #71717a;
}
.vrec small {
  display: block;
  font-size: 12.5px;
  color: #8e8e93;
  margin-top: 8px;
}

.vwave {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 20px;
  margin: 10px 0 2px;
}
.vwave i {
  display: block;
  width: 3.5px;
  height: 14px;
  background: #111113;
  border-radius: 99px;
  animation: waveAnim 0.9s ease-in-out infinite alternate;
}
.vwave i:nth-child(1) { height: 8px; animation-delay: 0.05s; }
.vwave i:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.vwave i:nth-child(3) { height: 20px; animation-delay: 0.25s; }
.vwave i:nth-child(4) { height: 12px; animation-delay: 0.35s; }
.vwave i:nth-child(5) { height: 18px; animation-delay: 0.1s; }
.vwave i:nth-child(6) { height: 14px; animation-delay: 0.2s; }
.vwave i:nth-child(7) { height: 10px; animation-delay: 0.3s; }
.vwave i:nth-child(8) { height: 6px; animation-delay: 0.4s; }

@keyframes waveAnim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.1); }
}

.vcan {
  position: fixed;
  left: 50%;
  margin-left: -32px;
  bottom: 168px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: #111113;
  z-index: 992;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vcan.on {
  background: #dc2626;
  color: #ffffff;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  bottom: 162px;
  font-size: 24px;
}

.vcap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 136px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  z-index: 992;
  pointer-events: none;
}

.vbot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  padding-bottom: 24px;
  background: #ffffff;
  border-radius: 50% 50% 0 0 / 48px 48px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #111113;
  z-index: 991;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}
.vbot.can {
  background: #3f3f46;
  color: #ffffff;
}

/* 识别结果确认卡片 */
.vbox {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 84px;
  background: #ffffff;
  border: 2px solid #111113;
  border-radius: 20px;
  padding: 18px 20px 16px;
  z-index: 992;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.vbox .vtxt {
  font-size: 16px;
  line-height: 1.5;
  min-height: 52px;
  max-height: 140px;
  overflow-y: auto;
  outline: none;
  word-break: break-all;
  color: #111113;
  font-weight: 500;
}
.vbox .vh {
  font-size: 12.5px;
  color: #8e8e93;
  margin: 10px 0 16px;
}
.vbox .two2 {
  display: flex;
  gap: 12px;
}
.vbox .two2 span {
  flex: 1;
  text-align: center;
  height: 48px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.vbox .two2 .btn-cancel {
  border: 1.5px solid #111113;
  background: #ffffff;
  color: #111113;
}
.vbox .two2 .btn-send {
  background: #111113;
  color: #ffffff;
}

/* 没听清黑色小提示胶囊 */
.vmiss {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 156px;
  background: rgba(24, 24, 27, 0.88);
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  white-space: nowrap;
  z-index: 995;
  animation: fadeIn 0.2s ease;
}

/* 对话输入栏切换 */
.chat-mode-switch-btn {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid #d4d4d8;
  border-radius: 50%;
  background: #ffffff;
  color: #55555f;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
.chat-hold-speak-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--obsidian-black, #18181b);
  user-select: none;
  touch-action: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chat-hold-speak-btn:active {
  background: #f4f4f5;
}

/* ==========================================================================
   02-08 交付包对齐样式补强：底部抽屉、数字字形、卡片与加载
   ========================================================================== */

/* 针对全站底部抽屉在手机与桌面居中容器中的一致性定位 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-sheet,
.rc-bottom-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(24px + var(--safe-bottom, 12px));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

.rc-bottom-sheet {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.rc-sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #D1D1D6;
  margin: 0 auto 14px;
}

.rc-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1E;
  text-align: center;
  margin-bottom: 12px;
}

/* 03 录入营业额：保存后卡片与导入状态 */
.sales-saved-view {
  padding-top: 10px;
}

.sales-saved-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
}

.rc-loading-spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #E5E5EA;
  border-top-color: #1C1C1E;
  border-radius: 50%;
  animation: rcSpin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes rcSpin {
  to { transform: rotate(360deg); }
}

/* 04 盘点差异弹层与计算过程 */
.order-diff-modal label:hover {
  background: #F7F8FA;
}

.order-diff-modal input[type="radio"]:checked + span {
  font-weight: 700;
  color: #1C1C1E;
}

/* 06 菜品配方输入框 */
.bom-weight-input,
.bom-yield-input {
  font-family: var(--font-number, inherit);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.2s;
}

.bom-weight-input:focus,
.bom-yield-input:focus {
  border-color: #1C1C1E !important;
}

/* 数字等宽与微排版 */
.num-tabular {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* 05 确认收货 */
.receive-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 116px;
}

.receive-all-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 3;
  display: flex;
  width: min(calc(100vw - 32px), 448px);
  align-items: center;
  gap: 14px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: #FFFFFF;
  box-shadow: 0 -12px 0 #FFFFFF;
}

.receive-all-summary {
  flex: 1;
  font-size: 13px;
  color: #6B6B73;
}

.receive-all-bar .btn-receive-all {
  width: auto;
  min-width: 152px;
  min-height: 50px;
  border-radius: 16px;
}

.receive-all-bar .btn-receive-all:disabled {
  background: #D8D8DD;
  color: #FFFFFF;
}

.receive-order {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receive-order-meta {
  padding: 0 4px;
  color: #6B6B73;
  font-size: 12px;
  line-height: 1.55;
}

.receive-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.receive-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 5px;
  color: #111113;
  font-size: 13px;
}

.receive-group-title strong {
  font-size: 14px;
  font-weight: 800;
}

.receive-group-title span {
  color: #8A8A93;
  font-size: 11.5px;
  font-weight: 500;
}

.receive-group-card {
  overflow: hidden;
  border: 1px solid #ECECEF;
  border-radius: 16px;
  background: #FFFFFF;
}

.receive-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}

.receive-row + .receive-row,
.receive-row + .receive-expand {
  border-top: 0.5px solid #ECECEF;
}

.receive-row-main {
  min-width: 0;
  flex: 1;
}

.receive-row-name {
  overflow: hidden;
  color: #111113;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receive-row-qty {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 4px;
  color: #8A8A93;
  font-size: 13px;
  line-height: 1.5;
}

.receive-qty.is-done {
  color: #15803D;
}

.receive-qty.is-partial {
  color: #B45309;
}

.receive-qty.is-none {
  color: #8A8A93;
}

.receive-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.receive-action {
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  cursor: pointer;
}

.receive-action--primary {
  border: 1px solid #111113;
  background: #111113;
  color: #FFFFFF;
}

.receive-action--secondary {
  border: 1px solid #111113;
  background: #FFFFFF;
  color: #111113;
}

.receive-expand {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #FFFFFF;
  color: #8A8A93;
  font-size: 13px;
  cursor: pointer;
}

.receive-footnote {
  padding: 0 4px;
  color: #8A8A93;
  font-size: 12px;
  line-height: 1.65;
}

.receive-complete-bar {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 2;
  width: min(calc(100vw - 32px), 448px);
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 12px;
  background: #18181B;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  color: #FFFFFF;
  font-size: 13.5px;
  line-height: 1.5;
}

.receive-empty {
  padding: 30px 18px;
  text-align: center;
}

.receive-empty .receive-row-qty {
  justify-content: center;
}

.receive-bottom-sheet {
  padding-top: 10px;
  text-align: left;
}

.receive-sheet-grab {
  width: 38px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #D8D8DD;
}

.receive-sheet-title {
  color: #111113;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
}

.receive-sheet-desc {
  margin-top: 6px;
  color: #8A8A93;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.receive-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px 20px;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 4px;
}

.receive-step {
  width: 48px;
  height: 48px;
  border: 1.5px solid #D4D4D8;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111113;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.receive-step[data-step="1"] {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.receive-step:disabled {
  color: #C4C4CC;
  cursor: default;
}

.receive-step-value {
  text-align: center;
  color: #111113;
}

.receive-step-value input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  appearance: textfield;
}

.receive-step-value input::-webkit-inner-spin-button,
.receive-step-value input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.receive-step-unit {
  color: #3F3F46;
  font-size: 15px;
  white-space: nowrap;
}

.receive-reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.receive-reason {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #E4E4E8;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6B6B73;
  font-size: 13px;
  cursor: pointer;
}

.receive-reason.is-selected {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
  font-weight: 700;
}

.receive-sheet-primary {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border-radius: 16px;
}

.receive-sheet-primary:disabled,
.receive-sheet-primary.is-disabled {
  background: #D8D8DD;
  color: #FFFFFF;
  cursor: default;
}

.receive-history-range {
  display: flex;
  margin: 8px 0 24px;
}

.receive-history-range__button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  background: #FFFFFF;
  color: #111113;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.receive-history-range-icon,
.receive-history-range-arrow {
  flex: none;
  color: #71717A;
}

.receive-history-range-label {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.receive-history-range-arrow {
  margin-left: auto;
}

.receive-history-range__button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.receive-history-range__button:active:not(:disabled) {
  background: #F0F0F2;
  border-color: #A1A1AA;
}

.receive-history-range__button:disabled {
  color: #8A8A93;
  cursor: default;
}

.receive-history-day {
  margin-top: 24px;
}

.receive-history-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #71717A;
  font-size: 12px;
  line-height: 24px;
}

.receive-history-day-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.receive-history-day-head > span {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.receive-history-card {
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 16px;
  background: #FFFFFF;
}

.receive-history-row {
  display: grid;
  min-width: 0;
  min-height: 72px;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #ECECEF;
}

.receive-history-row:last-child {
  border-bottom: 0;
}

.receive-history-time {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.receive-history-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.receive-history-name {
  min-width: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.receive-history-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.receive-history-source {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receive-history-qty {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  max-width: 128px;
  margin: 0;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.receive-history-qty > strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.receive-history-qty > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.receive-history-qty.is-negative {
  color: #B45309;
}

.receive-history-note {
  margin: 16px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 1.6;
}

/* 8.2 / 8.3 记录卡片与下滑分页 */
.record-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 18px;
  background: #FFFFFF;
}

.record-card.is-clickable {
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.record-card.is-clickable:active {
  transform: scale(0.992);
  background: #FAFAFB;
}

.stock-record-card {
  display: block;
}

.stock-record-card .record-card-head {
  justify-content: space-between;
}

.stock-record-reason {
  white-space: normal;
  overflow-wrap: anywhere;
}

.stock-detail-date {
  margin: 4px 2px 12px;
  color: #111113;
  font-size: 15px;
  font-weight: 750;
}

.stock-detail-table {
  padding: 0 16px;
  border-radius: 18px;
  background: #FFFFFF;
}

.stock-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #F0F0F2;
  font-size: 13px;
}

.inventory-record-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stock-detail-row > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stock-detail-row > :not(:first-child) {
  text-align: right;
  overflow-wrap: anywhere;
}

.stock-detail-header {
  border-top: 0;
  color: #8A8A93;
  font-size: 12px;
}

.stock-detail-empty {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid #F0F0F2;
  color: #8A8A93;
  text-align: center;
  font-size: 13px;
}

.record-card-copy {
  min-width: 0;
  flex: 1;
}

.record-card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.record-card-title {
  color: #111113;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}

.record-card-meta {
  flex: none;
  color: #8A8A93;
  font-size: 12px;
  font-weight: 550;
}

.record-card-line {
  margin: 6px 0 0;
  overflow: hidden;
  color: #71717A;
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card-action {
  flex: none;
  margin-top: 1px;
  color: #8A8A93;
  font-size: 12.5px;
  font-weight: 650;
}

.record-card-skip .record-card-line {
  color: #8A8A93;
}

.record-card-diff-count {
  margin: 7px 0 0;
  color: #D97706;
  font-size: 12.5px;
  font-weight: 700;
}

.stock-diff-list {
  margin-top: 10px;
  padding-top: 2px;
}

.stock-diff-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #F0F0F2;
}

.stock-diff-copy {
  min-width: 0;
}

.stock-diff-copy strong {
  display: block;
  overflow: hidden;
  color: #27272A;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-diff-copy small {
  display: block;
  margin-top: 3px;
  color: #8A8A93;
  font-size: 11.5px;
}

.stock-diff-value {
  flex: none;
  max-width: 58%;
  text-align: right;
}

.stock-diff-value span {
  display: block;
  color: #71717A;
  font-size: 11.5px;
  line-height: 1.45;
}

.stock-diff-value b {
  display: block;
  margin-top: 3px;
  color: #D97706;
  font-size: 13px;
  font-weight: 750;
}

.record-order-side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  color: #8A8A93;
  font-size: 12px;
  font-weight: 600;
}

.record-order-side i {
  color: #C4C4CC;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.receive-nav .subpage-back,
.order-history-nav .subpage-back,
.receive-history-nav .subpage-back,
.recycle-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.receive-nav .nav-title,
.order-history-nav .nav-title,
.receive-history-nav .nav-title,
.recycle-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.order-history-scroll .order-history-list {
  gap: 12px;
  padding-top: 8px;
}

.order-history-list .record-card-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  font-variant-numeric: tabular-nums;
  transition: background-color 120ms ease;
}

.order-history-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
}

.order-history-card-date {
  min-width: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.order-history-card-arrow {
  color: #71717A;
}

.order-history-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  min-width: 0;
  color: #52525B;
  font-size: 13px;
  line-height: 20px;
}

.order-history-card-body > p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.order-history-card-delivery {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.order-history-card-delivery > :first-child {
  flex: none;
  color: #71717A;
}

.order-history-card-footer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.order-history-card-footer > :first-child {
  flex: none;
}

.order-history-card-number {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-history-list .record-card-order:focus-visible,
.order-history-nav .subpage-back:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.order-history-list .record-card-order:active {
  transform: none;
  background: #F5F5F7;
}

@media (hover: hover) and (pointer: fine) {
  .order-history-list .record-card-order:hover {
    background: #FAFAFB;
  }
}

.detail-load-more {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: #8A8A93;
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
}

.detail-load-more:disabled {
  cursor: default;
}

.detail-load-more.is-error {
  color: #B45309;
}

.detail-load-more.is-end {
  cursor: default;
}

@media (max-width: 360px) {
  .record-card {
    padding: 14px;
  }

  .record-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .record-order-side {
    max-width: 45%;
    text-align: right;
  }

  .stock-diff-value {
    max-width: 54%;
  }
}

/* 8.4 已删除 */
.recycle-scroll {
  padding-top: 8px;
}

.recycle-notice,
.recycle-footnote {
  margin: 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.setup-cycle-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.setup-cycle-picker-overlay[hidden] {
  display: none !important;
}

.setup-cycle-picker-sheet {
  width: 100%;
  max-width: 480px;
  max-height: min(82vh, 680px);
  max-height: min(82dvh, 680px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px 20px calc(24px + var(--safe-bottom, 12px));
  border-radius: 20px 20px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.setup-cycle-picker-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: #D1D1D6;
}

.setup-cycle-picker-title {
  margin: 0 0 6px;
  color: #111113;
  font-size: 17px;
  font-weight: 700;
}

.setup-cycle-picker-material {
  margin-bottom: 14px;
  color: #8A8A93;
  font-size: 13px;
}

.setup-cycle-picker-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-cycle-picker-option {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1C1E;
  text-align: left;
  cursor: pointer;
}

.setup-cycle-picker-option small {
  color: #8A8A93;
  font-size: 12px;
}

.setup-cycle-picker-option.is-selected {
  border: 1.5px solid #111113;
}

.setup-cycle-picker-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.setup-cycle-picker-cancel,
.setup-cycle-picker-confirm {
  min-height: 44px;
  flex: 1;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.setup-cycle-picker-cancel {
  border: 1px solid #D1D1D6;
  background: #FFFFFF;
  color: #1C1C1E;
}

.setup-cycle-picker-confirm {
  border: 1px solid #111113;
  background: #111113;
  color: #FFFFFF;
}

.setup-cycle-picker-confirm:disabled {
  border-color: #D1D1D6;
  background: #D1D1D6;
  cursor: not-allowed;
}

.recycle-notice {
  margin-bottom: 16px;
  font-size: 13px;
}

.recycle-footnote {
  margin-top: 16px;
}

.recycle-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 16px;
  background: var(--surface-card);
}

.recycle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border-divider);
}

.recycle-row:last-child {
  border-bottom: 0;
}

.recycle-copy {
  min-width: 0;
  flex: 1;
}

.recycle-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.recycle-copy small {
  display: block;
  margin-top: 4px;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.recycle-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.recycle-remaining {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.recycle-row .btn-recycle-restore {
  flex: none;
  min-width: 80px;
  min-height: 44px;
  height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.recycle-row .btn-recycle-restore:focus-visible,
.recycle-nav .subpage-back:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.recycle-row .btn-recycle-restore:disabled {
  color: #71717A;
  background: #F5F5F7;
  cursor: default;
}

/* 4.6 订货单再次发送 */
.order-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* 2026-10-29 design acceptance fixes */
.sales-choice-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 8px 2px 0;
}

.sales-choice-links a,
.sales-choice-links button {
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sales-method-card {
  background: #fff;
  box-shadow: 0 4px 18px rgba(40, 35, 24, 0.035);
}

.sales-method-card--manual {
  margin-top: 12px;
  border-color: #111;
}

/* 菜品主界面：与今日销量预测共用视觉规格 */
.top-nav.recipe-top-nav {
  height: 56px;
  min-height: 56px;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.recipe-top-nav h1.nav-title {
  position: static;
  inset: auto;
  flex: 1;
  min-width: 0;
  margin: 0;
  transform: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.recipe-top-nav #btn-recipe-add,
.dish-management-nav #btn-dish-management-add {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.recipe-top-nav #btn-recipe-add svg,
.dish-management-nav #btn-dish-management-add svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.top-nav.recipe-top-nav.dish-management-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--safe-top) 12px 0;
}

.top-nav.recipe-top-nav.dish-management-nav .subpage-back {
  justify-self: start;
}

.top-nav.recipe-top-nav.dish-management-nav h1.nav-title {
  text-align: center;
  font-size: 18px;
}

.dish-management-nav .dish-management-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dish-management-nav .nav-action-import {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.06);
  color: #1C1C1E;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.top-nav.recipe-top-nav.dish-management-nav #btn-dish-management-add {
  position: static;
  right: auto;
  min-width: auto;
  height: 32px;
  padding: 0 6px;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.scroll-container.recipes-page-host {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.recipes-view.recipe-catalog-page {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: #F5F5F7;
  color: #252529;
}

.recipes-view.recipe-catalog-page > * + * {
  margin-top: 0;
}

.recipe-catalog-page > :not(.recipe-dish-catalog) {
  flex-shrink: 0;
}

.recipe-catalog-page .recipe-mode-switch {
  display: flex;
  gap: 4px;
  margin: 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: #EBEBEF;
}

.recipe-catalog-page .recipe-mode-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.recipe-catalog-page .recipe-mode-btn.active,
.recipe-catalog-page .recipe-mode-btn[aria-pressed="true"] {
  background: #111113;
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: none;
}

.recipe-catalog-page .recipe-mode-btn span,
.recipe-catalog-page .recipe-mode-btn small {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.recipe-catalog-page .recipe-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px 16px;
  padding: 0 12px;
  border: 1px solid #E5E7EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #92929B;
}

.recipe-catalog-page .recipe-search-field > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.recipe-catalog-page .recipe-search-field input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
}

.recipe-catalog-page .recipe-search-field input::placeholder {
  color: #92929B;
}

.recipe-catalog-page .recipe-search-field:focus-within {
  border-color: #252529;
}

.recipes-view.recipe-catalog-page > .recipe-check-card {
  margin: 12px 16px;
  padding: 0 16px;
  border-radius: 16px;
  background: #FFFFFF;
}

.recipe-catalog-page .recipe-check-row {
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 0;
  color: #92929B;
}

.recipe-catalog-page .recipe-check-row > span:first-child {
  flex: 1;
  min-width: 0;
}

.recipe-catalog-page .recipe-check-row > span:last-child {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  height: 20px;
}

.recipe-catalog-page .recipe-check-row strong {
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .recipe-check-row small {
  color: #8B6B49;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .recipe-check-row svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.recipe-catalog-page .recipe-check-card + .recipe-search-field {
  margin-top: 0;
}

.recipe-catalog-page .recipe-dish-catalog {
  display: flex;
  flex: 1;
  width: 100%;
  height: auto;
  max-height: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.recipe-catalog-page .recipe-dish-categories {
  flex: 0 0 68px;
  width: 68px;
  min-height: 0;
  overflow-y: auto;
  background: #F5F5F7;
  -webkit-overflow-scrolling: touch;
}

.recipe-catalog-page .recipe-dish-category {
  width: 100%;
  height: auto;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.recipe-catalog-page .recipe-dish-category small {
  margin-top: 0;
  font-size: 13px;
  line-height: 20px;
}

.recipe-catalog-page .recipe-dish-category.active {
  border-radius: 0 10px 10px 0;
  background: #EBEBEF;
  color: #252529;
  font-weight: 500;
}

.recipe-catalog-page .recipe-dish-category.active::before {
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: #252529;
}

.recipe-catalog-page .recipe-dish-catalog .recipe-dish-list,
.recipe-catalog-page .recipe-dish-catalog .ingredient-card.ingredient-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 16px 40px 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.recipe-catalog-page .recipe-dish-catalog .recipe-dish-list {
  padding-bottom: 96px;
}

.recipe-catalog-page .recipe-dish-group,
.recipe-catalog-page .ingredient-rows {
  flex-shrink: 0;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #FFFFFF;
}

.recipe-catalog-page .recipe-dish-group + .recipe-dish-group,
.recipe-catalog-page .ingredient-rows + .ingredient-rows {
  margin-top: 12px;
}

.recipe-catalog-page .recipe-dish-group-title {
  margin: 0;
  padding: 0 0 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.recipe-catalog-page .dish-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  border-radius: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  text-align: left;
}

.recipe-catalog-page .recipe-dish-group .dish-list-row:last-of-type {
  padding-bottom: 16px;
  border-bottom: 0;
}

.recipe-catalog-page .dish-list-main,
.recipe-catalog-page .dish-list-title-line,
.recipe-catalog-page .dish-list-subtitle {
  display: block;
  min-width: 0;
}

.recipe-catalog-page .dish-list-main {
  flex: 1;
}

.recipe-catalog-page .dish-list-name {
  display: block;
  min-width: 0;
  overflow: visible;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .dish-list-subtitle {
  margin: 4px 0 0;
  padding: 0;
  overflow: visible;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .dish-list-subtitle.is-warning {
  color: #8B6B49;
}

.recipe-catalog-page .dish-list-subtitle.is-muted {
  color: #6E6E78;
}

.recipe-catalog-page .dish-list-sales {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.recipe-catalog-page .dish-list-sales strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .dish-list-arrow,
.recipe-catalog-page .ingredient-row-arrow {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  height: 20px;
  margin: 0;
  color: #92929B;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.recipe-catalog-page .dish-list-arrow svg,
.recipe-catalog-page .ingredient-row-arrow svg {
  width: 16px;
  height: 16px;
}

.recipe-catalog-page .recipe-ingredient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  border-radius: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  text-align: left;
}

.recipe-catalog-page .ingredient-rows .recipe-ingredient-row:last-child {
  padding-bottom: 16px;
  border-bottom: 0;
}

.recipe-catalog-page .recipe-ingredient-row .ingredient-row-main {
  display: contents;
}

.recipe-catalog-page .ingredient-row-main strong {
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: visible;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .ingredient-row-main small {
  display: block;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-catalog-page .ingredient-row-stock {
  display: block;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  color: #252529;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.recipe-catalog-page .recipe-ingredient-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}

.recipe-catalog-page .ingredient-cycle-day,
.recipe-catalog-page .ingredient-cycle-day.is-regular {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 28px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #E4E4EA;
  border-radius: 8px;
  background: #F0F0F3;
  color: #252529;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.recipe-catalog-page .ingredient-cycle-day b {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recipe-catalog-page .dish-list-footnote,
.recipe-catalog-page .ingredient-list-footnote {
  padding: 12px 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.recipe-catalog-page .ingredient-empty {
  padding: 24px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #6E6E78;
  text-align: center;
}

.recipe-catalog-page .ingredient-empty-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.recipe-catalog-page .ingredient-empty-action {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #F5F5F7;
  color: #252529;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.recipe-catalog-page .recipe-catalog-actions {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.recipe-catalog-page .recipe-catalog-configure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #E4E4EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.recipe-catalog-page .recipe-catalog-empty {
  padding: 24px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.recipe-catalog-page button,
.recipe-top-nav #btn-recipe-add {
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease;
}

.recipe-catalog-page button:active:not(:disabled),
.recipe-top-nav #btn-recipe-add:active:not(:disabled) {
  transform: none;
  background: #F0F0F3;
}

.recipe-catalog-page button:focus-visible,
.recipe-top-nav #btn-recipe-add:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.recipe-catalog-page .recipe-dish-category:focus-visible {
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .recipe-catalog-page button,
  .recipe-top-nav #btn-recipe-add { transition: none; }
}

/* 销售补录：仅方式选择入口 */
.sales-choice-host {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.sales-entry-nav {
  height: 50px;
  min-height: 50px;
  padding: 0 8px;
}

.sales-entry-nav .nav-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.sales-entry-nav .subpage-back {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  color: #252529;
}

.sales-entry-nav .subpage-back svg {
  width: 20px;
  height: 20px;
}

.sales-entry.sales-choice {
  gap: 20px;
  min-width: 0;
  color: #252529;
}

.sales-choice .sales-choice-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sales-choice .sales-choice-context.has-date {
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: -8px;
}

.sales-choice .sales-choice-context.has-date .sales-context-label {
  flex-shrink: 0;
  margin: 0;
}

.sales-choice .sales-context-date {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #E5E7EA;
  border-radius: 8px;
  background: #FFFFFF;
  color: #3C3C43;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sales-choice .sales-context-date svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.sales-choice .sales-context-copy {
  min-width: 0;
}

.sales-choice .sales-context-label {
  margin: 0 0 2px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.sales-choice .sales-choice-context h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #252529;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.sales-choice .sales-choice-achuan-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 -4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  text-align: left;
}

.sales-choice .sales-choice-achuan-name {
  flex: none;
  color: #252529;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.sales-choice .sales-choice-achuan-text {
  flex: 1;
  min-width: 0;
  color: #494950;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-choice .sales-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.sales-choice .sales-method-card {
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 96px;
  margin: 0;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #252529;
  box-shadow: none;
  font: inherit;
}

.sales-choice .sales-method-card .sales-method-icon {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  gap: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F5F5F7;
  color: #494950;
}

.sales-choice .sales-method-icon svg {
  width: 20px;
  height: 20px;
}

.sales-choice .sales-method-card .sales-method-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.sales-choice .sales-method-copy strong {
  display: block;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.sales-choice .sales-method-copy small {
  display: block;
  margin-top: 4px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-choice .sales-method-card .sales-method-arrow {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #92929B;
  font-size: 16px;
  line-height: 20px;
}

.sales-choice .sales-method-arrow svg {
  width: 16px;
  height: 16px;
}

.sales-choice .sales-choice-help h2 {
  margin: 0 0 8px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.sales-choice .sales-choice-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.sales-choice .sales-choice-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid #E5E7EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #494950;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.sales-choice .sales-choice-links svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.sales-choice .sales-choice-links a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-choice button,
.sales-choice a,
.sales-entry-nav .subpage-back {
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease;
}

.sales-choice button:active,
.sales-choice a:active,
.sales-entry-nav .subpage-back:active {
  transform: none;
  background: #F0F0F3;
}

.sales-choice button:focus-visible,
.sales-choice a:focus-visible,
.sales-entry-nav .subpage-back:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sales-choice button,
  .sales-choice a,
  .sales-entry-nav .subpage-back { transition: none; }
}

/* 销售补录：手动与文件导入 */
.sales-form-host {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.sales-entry.sales-manual,
.sales-entry.sales-excel {
  gap: 16px;
  min-width: 0;
  color: #252529;
}

.sales-manual .sales-entry-tip,
.sales-excel .sales-entry-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.sales-manual .sales-entry-tip strong,
.sales-excel .sales-entry-tip strong {
  flex: none;
  color: #252529;
  font-size: 13px;
  font-weight: 600;
}

.sales-manual .sales-entry-tip > span,
.sales-excel .sales-entry-tip > span {
  flex: 1;
  min-width: 0;
  color: #494950;
  overflow-wrap: anywhere;
}

.sales-manual .sales-manual-card {
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
}

.sales-manual .sales-manual-date-row,
.sales-manual .sales-manual-amount-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  text-align: left;
}

.sales-manual .sales-manual-date-row {
  border-bottom: 1px solid #ECECEF;
}

.sales-manual .sales-field-label {
  flex: none;
  color: #494950;
  font-size: 15px;
  line-height: 22px;
}

.sales-manual .sales-manual-date-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sales-manual .sales-manual-date-value svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.sales-manual .sales-amount-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.sales-manual .sales-amount-currency {
  color: #6E6E78;
  font-size: 18px;
  line-height: 24px;
}

.sales-manual .sales-amount-value {
  color: #252529;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.sales-manual .sales-amount-value.is-placeholder {
  color: #92929B;
}

.sales-manual .sales-field-help {
  margin: 0 2px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-excel .sales-file-picker {
  min-width: 0;
  min-height: 112px;
  gap: 12px;
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 16px;
  background: #FFFFFF;
  color: #252529;
}

.sales-excel .sales-file-picker.has-file,
.sales-excel.has-file .sales-file-picker {
  border-color: #111113;
}

.sales-excel .sales-file-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: #F5F5F7;
  color: #494950;
}

.sales-excel .sales-file-icon svg {
  width: 22px;
  height: 22px;
}

.sales-excel .sales-file-copy {
  gap: 4px;
}

.sales-excel .sales-file-copy strong {
  overflow: visible;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sales-excel .sales-file-copy small {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-excel .sales-file-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #92929B;
}

.sales-excel .sales-file-selection {
  margin: -8px 2px 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-excel .sales-import-help h2 {
  margin: 0 0 8px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.sales-excel .sales-import-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-excel .sales-import-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid #E5E7EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #494950;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.sales-excel .sales-import-links svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.sales-excel .sales-import-links a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-excel .sales-import-loading {
  padding: 16px;
  border: 1px solid #E5E7EA;
  border-radius: 12px;
  background: #FFFFFF;
}

.sales-excel .sales-import-loading-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-excel .sales-import-spinner {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EA;
  border-top-color: #111113;
  border-radius: 50%;
  animation: sales-import-spin 700ms linear infinite;
}

.sales-excel .sales-import-loading-title strong {
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.sales-excel .sales-import-loading p {
  margin: 8px 0 0;
  padding-left: 44px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sales-excel .sales-import-note {
  margin: 0 2px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.sales-manual .sales-primary-btn,
.sales-excel .sales-primary-btn {
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  margin-top: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.sales-manual .sales-primary-btn:disabled,
.sales-excel .sales-primary-btn:disabled {
  background: #D4D4D8;
  color: #FFFFFF;
  opacity: 1;
  cursor: default;
}

.sales-amount-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.sales-amount-modal .rc-bottom-sheet {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  min-height: 0;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border-radius: 16px 16px 0 0;
  background: #FFFFFF;
  color: #252529;
  box-shadow: none;
  animation: slideUpModal 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.sales-amount-modal .sales-amount-header {
  margin-bottom: 16px;
}

.sales-amount-modal .sales-amount-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.sales-amount-modal .sales-amount-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid #E5E7EA;
  border-radius: 12px;
  background: #F5F5F7;
}

.sales-amount-modal .sales-amount-display > span {
  color: #6E6E78;
  font-size: 18px;
  line-height: 24px;
}

.sales-amount-modal .sales-amount-display output {
  min-width: 0;
  padding: 0 4px;
  border-radius: 6px;
  color: #252529;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.sales-amount-modal .sales-amount-display .is-replacing {
  background: #E4E4EA;
}

.sales-amount-modal .sales-amount-display .is-placeholder {
  color: #92929B;
}

.sales-amount-modal .sales-amount-hint {
  margin: 8px 0 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.sales-amount-modal .rc-keypad-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sales-amount-modal .rc-key {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F5F5F7;
  color: #252529;
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.sales-amount-modal .rc-key svg {
  width: 20px;
  height: 20px;
}

.sales-amount-modal .sales-amount-actions {
  display: grid;
  grid-template-columns: 80px 64px minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
}

.sales-amount-modal .sales-amount-actions button {
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F5F5F7;
  color: #494950;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.sales-amount-modal .sales-amount-actions .sales-amount-clear {
  border: 0;
  background: transparent;
  color: #6E6E78;
  font-weight: 400;
}

.sales-amount-modal .sales-amount-actions .sales-amount-confirm {
  border: 0;
  background: #111113;
  color: #FFFFFF;
}

.sales-manual button,
.sales-excel button,
.sales-excel a,
.sales-amount-modal button {
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease;
}

.sales-manual button:active:not(:disabled),
.sales-excel button:active:not(:disabled),
.sales-excel a:active,
.sales-amount-modal button:active:not(:disabled) {
  transform: none;
  background: #E9E9EE;
}

.sales-manual .sales-primary-btn:active:not(:disabled),
.sales-excel .sales-primary-btn:active:not(:disabled),
.sales-amount-modal .sales-amount-confirm:active:not(:disabled) {
  background: #343438;
}

.sales-amount-modal button:disabled {
  opacity: 0.45;
  cursor: default;
}

.sales-manual button:focus-visible,
.sales-excel button:focus-visible,
.sales-excel a:focus-visible,
.sales-amount-modal button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@keyframes sales-import-spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) {
  .sales-amount-modal .rc-bottom-sheet { padding-right: 16px; padding-left: 16px; }
  .sales-amount-modal .sales-amount-actions { grid-template-columns: 72px 56px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sales-excel .sales-import-spinner,
  .sales-amount-modal .rc-bottom-sheet { animation: none; }
  .sales-manual button,
  .sales-excel button,
  .sales-excel a,
  .sales-amount-modal button { transition: none; }
}

/* 「我的」门店中心、阿川档案与配置页 */
.scroll-container.my-page-host {
  padding: 0 0 28px;
  background: linear-gradient(180deg, #EFEBF9 0%, #F4F2FA 126px, var(--page-bg) 236px);
}

.my-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.my-header {
  padding: calc(var(--safe-top) + 14px) 16px 14px;
}

.my-preview-strip {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.my-preview-strip .notebook-preview-badge {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.72);
}

.my-store-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.my-store-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #1C1C1E;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(17, 17, 19, 0.12);
}

.my-store-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.my-store-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.my-store-name {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
  overflow-wrap: anywhere;
}

.my-store-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(117, 55, 232, 0.11);
  color: #5B2AC2;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
}

.my-store-meta-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.my-store-meta {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.my-account-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}

.my-account-copy svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #8E8E93;
}

.my-profile-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 9px 0 11px;
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.my-pill-arrow {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: #8E8E93;
}

.my-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 16px;
}

.my-achuan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 15px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.30) 0%, rgba(117, 55, 232, 0) 58%), #111113;
  color: #FFFFFF;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.14);
  transition: transform 120ms ease, opacity 140ms ease;
}

.my-achuan-upgrade {
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.18);
  color: #E9DDFF;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.my-achuan-upgrade[hidden] {
  display: none;
}

.my-achuan-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
}

.my-achuan-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.my-achuan-avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.my-achuan-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.my-achuan-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.my-achuan-name {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.my-achuan-card .my-achuan-level {
  display: inline-flex;
  align-items: center;
  max-width: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.22);
  color: #DDD6FE;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.my-achuan-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.my-achuan-entry {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.my-achuan-entry .my-pill-arrow {
  color: rgba(255, 255, 255, 0.65);
}

.my-achuan-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.my-achuan-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.my-achuan-stat-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 15px;
}

.my-achuan-stat-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.my-achuan-stat-val strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
}

.my-achuan-stat-val small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.my-achuan-stat-val .is-text {
  color: #E9DDFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.my-readiness-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #F4D8B8;
  border-radius: 12px;
  background: #FFF8EE;
  color: #7A4407;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.my-readiness-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #D97706;
}

.my-readiness-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.my-readiness-cta {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1C1C1E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.my-section-title {
  margin: 0 4px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.my-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}

.my-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 68px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.my-grid-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #F5F5F8;
  color: var(--text-primary);
}

.my-grid-icon svg {
  width: 20px;
  height: 20px;
}

.my-grid-label {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
}

.my-grid-sub {
  display: block;
  max-width: 100%;
  margin-top: -4px;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.my-analytics-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
  transition: background-color 140ms ease;
}

.my-analytics-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: #F5F5F8;
  color: var(--text-primary);
}

.my-analytics-icon.is-accent {
  background: var(--achuan-avatar-bg);
  color: var(--achuan-avatar-fg);
}

.my-analytics-icon svg {
  width: 17px;
  height: 17px;
}

.my-analytics-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
}

.my-analytics-sub {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 15px;
}

.my-nav-card {
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}

.my-nav-card > .my-list-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.my-nav-card > .my-list-row:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 45px;
  height: 1px;
  background: #ECECEF;
}

.my-list-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #4A4A54;
}

.my-list-icon svg {
  width: 18px;
  height: 18px;
}

.my-nav-label {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 21px;
  overflow-wrap: anywhere;
}

.my-nav-value {
  min-width: 0;
  max-width: 52%;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 19px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.my-nav-value:empty {
  display: none;
}

.my-nav-value.is-warn {
  color: #C25E00;
  font-weight: 500;
}

.my-nav-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #B4B4BB;
}

.my-logout {
  width: 100%;
  min-height: 46px;
  margin: 2px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
  transition: background-color 140ms ease;
}

.my-footer-meta {
  padding: 0 8px 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.my-achuan-card:active {
  transform: scale(0.99);
  opacity: 0.96;
}

.my-readiness-bar:active {
  background: #FCEFD9;
}

.my-profile-pill:active,
.my-grid-item:active,
.my-analytics-tile:active,
.my-nav-card > .my-list-row:active,
.my-logout:active {
  background: var(--surface-inset);
}

.my-account-copy:focus-visible,
.my-profile-pill:focus-visible,
.my-achuan-card:focus-visible,
.my-readiness-bar:focus-visible,
.my-grid-item:focus-visible,
.my-analytics-tile:focus-visible,
.my-nav-card > .my-list-row:focus-visible,
.my-logout:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: -3px;
}

.my-achuan-card:focus-visible {
  outline-color: #DDD6FE;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .my-profile-pill:hover,
  .my-grid-item:hover,
  .my-analytics-tile:hover,
  .my-nav-card > .my-list-row:hover,
  .my-logout:hover {
    background: var(--surface-inset);
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-profile-pill,
  .my-achuan-card,
  .my-readiness-bar,
  .my-grid-item,
  .my-analytics-tile,
  .my-nav-card > .my-list-row,
  .my-logout {
    transition: none;
  }
}

.notebook-detail-view {
  min-height: 100%;
  padding: 10px 0 96px;
  background: #f7f6f2;
}

.nb-detail-content {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.nb-detail-card,
.nb-original-card {
  overflow: hidden;
  border: 1px solid #ece9e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(41, 35, 23, 0.035);
}

.nb-detail-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
}

.nb-detail-row + .nb-detail-row {
  border-top: 1px solid #f2f0eb;
}

.nb-detail-label {
  flex: 0 0 auto;
  color: #8d8a83;
  font-size: 14.5px;
  line-height: 1.4;
}

.nb-detail-value {
  min-width: 0;
  color: #25241f;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  word-break: break-word;
}

.nb-detail-chevron {
  flex: 0 0 auto;
  margin-left: -10px;
  color: #b9b5ac;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.nb-detail-usage {
  align-items: center;
}

.nb-detail-usage .nb-detail-value {
  text-align: left;
}

.nb-detail-hint {
  margin: 10px 4px 0;
  color: #a39f96;
  font-size: 12px;
  line-height: 1.6;
}

.nb-original-card {
  margin-top: 12px;
  padding: 12px 14px;
}

.nb-original-label {
  color: #8d8a83;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.nb-original-text {
  margin-top: 4px;
  color: #2c2b27;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.nb-original-link {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  outline: none;
  cursor: pointer;
}

.nb-delete-button {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(28px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 32px), 448px);
  height: 52px;
  padding: 0 16px;
  border: 1px solid #f1d8d5;
  border-radius: 16px;
  background: #fff;
  color: #d94a3d;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  outline: none;
  cursor: pointer;
  transform: translateX(-50%);
}

.nb-edit-sheet {
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
}

.nb-edit-grab {
  width: 36px;
  height: 4px;
  margin: -6px auto 12px;
  border-radius: 2px;
  background: #e4e4e7;
}

.nb-edit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.nb-edit-heading h4 {
  color: #111113;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.nb-edit-heading .modal-sheet-close {
  color: #8a8a93;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nb-edit-form {
  padding: 0 2px;
}

.nb-edit-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ececef;
  font-size: 14.5px;
}

.nb-edit-row:last-child {
  border-bottom: 0;
}

.nb-edit-label {
  flex: 1;
  color: #3f3f46;
  line-height: 1.45;
}

.nb-edit-label small {
  display: block;
  margin-top: 2px;
  color: #8a8a93;
  font-size: 12px;
  line-height: 1.45;
}

.nb-edit-static {
  max-width: 58%;
  color: #111113;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.nb-edit-control {
  width: 180px;
  max-width: 58%;
  height: 40px;
  padding: 0 11px;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.nb-edit-control:focus {
  border-color: #111113;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.06);
}

.nb-edit-control.is-number,
.nb-edit-control.is-date {
  width: 145px;
}

.nb-edit-value-wrap {
  display: flex;
  max-width: 58%;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nb-edit-control.is-inline {
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.nb-edit-control.is-inline:focus {
  border: 0;
  box-shadow: none;
}

.nb-edit-control.is-inline.is-date {
  width: auto;
}

.nb-edit-control.is-inline.is-date::-webkit-calendar-picker-indicator {
  display: none;
}

.nb-edit-control.is-content {
  width: 180px;
  height: 34px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
}

.nb-edit-chevron {
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1;
}

.nb-edit-error {
  display: none;
  padding: 5px 0 0;
  color: #dc2626;
  font-size: 12px;
  text-align: right;
}

.nb-edit-direction {
  display: flex;
  gap: 6px;
}

.nb-edit-direction .btn-nb-dir {
  height: 38px;
  min-width: 58px;
  padding: 0 12px;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  background: #fff;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 500;
}

.nb-edit-direction .btn-nb-dir.on {
  border-color: #111113;
  background: #111113;
  color: #fff;
  font-weight: 700;
}

.nb-edit-save {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border-radius: 16px;
  background: #111113;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.nb-edit-save:disabled {
  opacity: 0.5;
}

/* ==========================================================================
   08 我的：协议、周期、门店与用户说明的最新设计稿补齐
   ========================================================================== */

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-actions > button {
  flex: 1;
  height: 52px !important;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
}

.modal-actions .btn-secondary {
  border: 1.5px solid #d4d4d8;
  background: #fff;
}

.modal-title-hint {
  margin-left: 7px;
  color: #71717a;
  font-size: 13px;
  font-weight: 400;
}

.modal-overlay-center {
  align-items: center;
  padding: 24px;
}

.modal-dialog {
  max-width: 342px;
  border-radius: 20px;
  padding: 22px;
  animation: modalDialogIn 0.2s ease-out;
}

@keyframes modalDialogIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cycle-time-sheet,
.cycle-editor-sheet,
.store-field-sheet,
.store-slots-sheet,
.choice-sheet {
  border-radius: 22px 22px 0 0;
}

.store-field-sheet {
  padding: 16px 16px calc(28px + var(--safe-bottom));
}

.store-field-sheet .modal-header {
  margin-bottom: 12px;
}

.store-field-sheet .modal-actions {
  margin-top: 12px !important;
}

.cycle-time-sheet::before,
.cycle-editor-sheet::before,
.store-field-sheet::before,
.store-slots-sheet::before,
.choice-sheet::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #e4e4e7;
  content: "";
  transform: translateX(-50%);
}

.cycle-time-sheet .modal-header,
.cycle-editor-sheet .modal-header,
.store-field-sheet .modal-header,
.store-slots-sheet .modal-header,
.choice-sheet .modal-header {
  margin-bottom: 14px;
}

.cycle-time-sheet .modal-title {
  font-size: 20px;
  letter-spacing: -0.3px;
}

.cycle-editor-sheet .modal-title {
  font-size: 22px;
  letter-spacing: -0.4px;
}

.store-info-page {
  min-height: 100%;
  background: #f5f5f7;
}

.store-info-scroll {
  padding: 10px 16px 32px;
}

.store-info-card,
.cycle-material-card,
.cycle-time-card,
.user-guide-info-card,
.user-guide-menu,
.user-guide-disclaimer,
.policy-doc-card {
  background: #fff;
  border-radius: 18px;
}

.store-info-card {
  padding: 0 14px;
}

.store-info-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #111113;
  text-align: left;
}

.store-info-row:not(:last-child)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #ececef;
  content: "";
}

.store-info-label {
  flex: 0 0 auto;
  font-size: 16px;
}

.store-info-value {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.store-info-value strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-info-value i {
  color: #b4b4bb;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

.store-info-note {
  margin: 16px 2px 0;
  color: #8a8a91;
  font-size: 14px;
  line-height: 1.55;
}

.store-field-editor {
  padding-top: 2px;
}

.store-field-input-wrap {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1.5px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  color: #111113;
  font-size: 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-field-input-wrap:focus-within {
  border-color: #111113;
}

.store-field-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111113;
  font: inherit;
}

.store-field-input-wrap.is-invalid {
  border: 2px solid #dc2626;
  background: #fef2f2;
}

.store-field-error {
  display: none;
  margin: 7px 2px 0;
  color: #dc2626;
  font-size: 12.5px;
  line-height: 1.5;
}

.store-field-error.is-visible {
  display: block;
}

.store-field-hint,
.cycle-editor-note,
.time-choice-note {
  margin: 12px 2px 0;
  color: #8a8a91;
  font-size: 13px;
  line-height: 1.5;
}

.store-field-sheet .store-field-hint {
  margin-top: 8px;
}

.store-slot-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.store-slot-time {
  width: 0;
  height: 48px;
  flex: 1;
  padding: 0 9px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 15px;
}

.store-slot-time:focus {
  border-color: #111113;
}

.store-slot-editor-row > span {
  color: #71717a;
  font-size: 13px;
}

.store-slot-remove {
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
}

.store-slot-add {
  width: 100%;
  height: 46px;
  border: 1px dashed #c7c7cd;
  border-radius: 12px;
  background: #fafafa;
  color: #3f3f46;
  font-size: 14px;
}

.choice-sheet-caption {
  margin: -2px 2px 8px;
  color: #8a8a91;
  font-size: 12px;
}

.choice-sheet-list {
  display: flex;
  max-height: 330px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.choice-sheet-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  color: #111113;
  font-size: 15px;
  text-align: left;
}

.choice-sheet-row.is-selected {
  border: 1.5px solid #111113;
  font-weight: 600;
}

.choice-sheet-check {
  visibility: hidden;
  color: #111113;
  font-size: 17px;
}

.choice-sheet-row.is-selected .choice-sheet-check {
  visibility: visible;
}

.cycle-page-intro {
  margin: 0 16px 12px;
  color: #71717a;
  font-size: 14px;
  line-height: 1.65;
}

.cycle-material-card,
.cycle-time-card {
  margin: 0 16px 12px;
  padding: 0 14px;
}

.cycle-material-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #111113;
  text-align: left;
}

.cycle-material-row:not(:last-child)::after,
.cycle-time-row:not(:last-child)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #ececef;
  content: "";
}

.cycle-material-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.cycle-material-copy strong {
  font-size: 16px;
  font-weight: 500;
}

.cycle-material-copy small {
  color: #8a8a91;
  font-size: 13px;
}

.cycle-days-pill {
  display: inline-flex;
  min-width: 76px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1.5px solid #111113;
  border-radius: 11px;
  background: #fff;
  color: #111113;
  font-size: 15px;
  font-weight: 600;
}

.cycle-days-pill.is-frequent {
  background: #111113;
  color: #fff;
}

.cycle-time-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #111113;
  text-align: left;
}

.cycle-time-row > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.cycle-time-row strong {
  font-size: 16px;
  font-weight: 500;
}

.cycle-time-row small {
  color: #8a8a91;
  font-size: 12px;
  line-height: 1.35;
}

.cycle-time-value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  font-size: 18px;
}

.cycle-time-value i {
  color: #b4b4bb;
  font-size: 23px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

.time-choice-list {
  display: flex;
  max-height: 314px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.time-choice-list::-webkit-scrollbar {
  display: none;
}

.time-choice-row {
  display: flex;
  width: 100%;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  color: #111113;
  font-size: 17px;
  text-align: left;
}

.time-choice-row.is-selected {
  border: 1.5px solid #111113;
  font-weight: 600;
}

.time-choice-current {
  min-width: 38px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

.cycle-editor {
  padding-top: 1px;
}

.cycle-presets {
  display: flex;
  gap: 8px;
}

.cycle-preset {
  height: 40px;
  flex: 1;
  padding: 0 8px;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  white-space: nowrap;
}

.cycle-preset.is-active {
  border-color: #111113;
  background: #111113;
  color: #fff;
  font-weight: 600;
}

.cycle-custom {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 17px;
}

.cycle-custom input {
  width: 98px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 18px;
  text-align: center;
}

.cycle-custom input:focus {
  border: 1.5px solid #111113;
}

.cycle-editor-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececef;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.45;
}

.user-guide-info-card,
.user-guide-menu {
  margin: 12px 16px 0;
  padding: 0 14px;
}

.user-guide-info-row {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ececef;
  font-size: 16px;
}

.user-guide-info-row:last-child {
  border-bottom: 0;
}

.user-guide-info-row strong {
  max-width: 76%;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .user-guide-info-row strong {
    max-width: 72%;
    white-space: normal;
  }
}

.user-guide-disclaimer {
  margin: 12px 16px 0;
  padding: 15px 14px;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.7;
}

.user-guide-menu-row {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #ececef;
  background: transparent;
  color: #111113;
  font-size: 16px;
  text-align: left;
}

.user-guide-menu-row:last-child {
  border-bottom: 0;
}

.user-guide-menu-row > span:last-child {
  color: #b4b4bb;
  font-size: 21px;
  font-weight: 300;
}

.policy-doc-page {
  min-width: 0;
  padding: 8px 0 16px;
}

.auth-policy-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.auth-policy-scroll {
  flex: 1;
  min-height: 0;
}

.scroll-container.auth-policy-scroll,
.scroll-container.user-guide-doc-scroll {
  padding: 0 16px max(24px, calc(var(--safe-bottom) + 16px));
}

.auth-policy-nav,
.top-nav.user-guide-doc-nav {
  position: relative;
  flex: 0 0 auto;
  height: calc(56px + var(--safe-top));
  min-height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
}

.auth-policy-nav .subpage-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.auth-policy-nav .nav-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.auth-policy-nav .subpage-nav-spacer {
  width: 44px;
}

.policy-doc-tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #E5E5EA;
  border-radius: 14px;
  background: #FFFFFF;
}

.policy-doc-tab {
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #55555F;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.policy-doc-tab.is-active {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.policy-doc-page .policy-doc-card {
  margin-top: 16px;
  padding: 22px 20px;
  border: 1px solid #E5E5EA;
  border-radius: 16px;
  background: var(--surface-card);
}

.policy-doc-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #EBEBF0;
}

.policy-doc-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #F5F5F7;
  color: #55555F;
}

.policy-doc-heading-copy {
  min-width: 0;
}

.policy-doc-page .policy-doc-card h1 {
  margin: 0;
  color: #111113;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.policy-doc-date {
  margin: 4px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.policy-doc-content {
  min-height: 0;
  margin-top: 20px;
  color: #484850;
  font-size: 15px;
  line-height: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.policy-doc-content.is-empty {
  white-space: normal;
}

.policy-doc-card,
.policy-doc-card * {
  user-select: text;
  -webkit-user-select: text;
}

.auth-policy-nav button:focus-visible,
.policy-doc-tab:focus-visible {
  outline: 2px solid #71717A;
  outline-offset: -3px;
}

.policy-doc-tab.is-active:focus-visible {
  outline-color: #D4D4D8;
}

@media (hover: hover) and (pointer: fine) {
  .policy-doc-tab:hover:not(.is-active) { background: #F5F5F7; }
}

@media (max-width: 350px) {
  .policy-doc-page .policy-doc-card { padding: 20px 16px; }
}

.data-request-status {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.7;
}

.data-request-status > strong {
  display: block;
  color: #111113;
  font-weight: 600;
}

.data-request-status.is-failed > strong,
.data-request-error {
  color: #dc2626;
}

.data-request-status p {
  margin: 2px 0 0;
  color: #8b8b93;
}

.data-request-status .btn-secondary {
  margin-top: 8px;
}

.data-request-dialog .modal-header {
  justify-content: center;
  margin-bottom: 14px;
}

.data-request-dialog .modal-title {
  font-size: 21px;
  letter-spacing: -0.3px;
  text-align: center;
}

.data-request-copy {
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.75;
}

.data-request-copy p {
  margin: 0;
}

.data-request-copy p + p {
  margin-top: 2px;
}

.data-request-copy strong {
  color: #111113;
  font-weight: 500;
}

.data-request-dialog .modal-actions {
  margin-top: 16px !important;
}

/* 4.4-S2 人工补量 / 6.5-S1 对应原料 */
.stock-picker-sheet,
.stock-match-sheet,
.manual-add-sheet {
  max-height: 82vh;
  max-height: 82dvh;
  padding-right: 18px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: 18px;
  overflow-y: auto;
}

.stock-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 14px;
}

.stock-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: #f5f5f7;
  border: 1.5px solid transparent;
  border-radius: 12px;
}

.stock-choice-row.is-selected {
  background: #fff;
  border-color: #171717;
}

.stock-choice-row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stock-choice-row strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-choice-row small {
  color: #85858b;
  font-size: 12px;
  font-weight: 400;
}

.stock-choice-row b {
  flex: 0 0 auto;
  margin-left: 10px;
  color: #85858b;
  font-size: 12px;
  font-weight: 500;
}

.stock-choice-row--new {
  justify-content: flex-start;
  gap: 8px;
  color: #171717;
  background: #fff;
  border-color: #d4d4d8;
  border-style: dashed;
}

.stock-choice-row--new > span {
  flex: 0 0 auto;
  font-weight: 600;
}

.stock-sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.stock-sheet-actions .btn-secondary,
.stock-sheet-actions .btn-black {
  flex: 1;
  height: 46px;
  border-radius: 14px;
}

/* 6.4 新增用料 / 6.11 新建原料返回 */
.rc-add-ing-sheet {
  max-height: 88vh;
  max-height: 88dvh;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.rc-add-ing-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  color: #111113;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ececef;
  cursor: pointer;
}

.rc-add-ing-field:disabled {
  cursor: default;
  opacity: 0.55;
}

.rc-add-ing-field-label {
  flex: 0 0 auto;
  color: #111113;
}

.rc-add-ing-field-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #111113;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-add-ing-field-value.is-placeholder {
  color: #a1a1aa;
  font-weight: 500;
}

.rc-add-ing-field > b {
  flex: 0 0 auto;
  color: #c4c4cc;
  font-size: 18px;
  font-weight: 500;
}

.rc-add-ing-quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.rc-add-ing-quantity-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  color: #111113;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  border-radius: 12px;
  outline: none;
}

.rc-add-ing-quantity-row input:focus {
  border-color: #111113;
}

.rc-add-ing-quantity-row input.is-invalid,
.rc-add-ing-quantity-row input.is-invalid:focus {
  color: #dc2626;
  background: #fef2f2;
  border-color: #dc2626;
}

.rc-add-ing-quantity-row > span {
  flex: 0 0 auto;
  color: #3f3f46;
  font-size: 13px;
}

.rc-add-ing-error,
.rc-keypad-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12.5px;
  line-height: 1.4;
}

.rc-add-ing-tip,
.rc-sheet-tip {
  margin-top: 8px;
  color: #8a8a93;
  font-size: 12.5px;
  line-height: 1.5;
}

.rc-add-ing-submit {
  height: 48px;
  margin-top: 14px;
  border-radius: 16px;
}

.rc-material-picker-sheet {
  max-height: 82vh;
  max-height: 82dvh;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.rc-material-picker-list {
  max-height: calc(82vh - 124px);
  max-height: calc(82dvh - 124px);
  padding-right: 2px;
  overflow-y: auto;
}

.rc-sheet-empty {
  padding: 28px 12px;
  color: #8a8a93;
  font-size: 14px;
  text-align: center;
}

.rc-keypad-val.is-invalid,
.rc-yield-input.is-invalid {
  color: #dc2626;
}

.btn-rc-bottom-full:disabled {
  background: #d1d1d6;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.stock-match-card {
  margin-top: 6px;
  overflow: hidden;
  background: #f5f5f7;
  border-radius: 14px;
}

.stock-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5ea;
}

.stock-match-row:last-child {
  border-bottom: 0;
}

.stock-match-row--button {
  cursor: pointer;
}

.stock-match-label {
  flex: 0 0 auto;
  margin-right: 14px;
  color: #4b4b50;
  white-space: nowrap;
}

.stock-match-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  max-width: 68%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-match-value b {
  flex: 0 0 auto;
  color: #85858b;
  font-size: 16px;
  font-weight: 400;
}

.stock-match-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #4b4b50;
  white-space: nowrap;
}

.stock-match-number {
  flex: 0 0 auto;
  width: 64px;
  height: 34px;
  padding: 0 8px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  text-align: center;
  background: #fff;
  border: 1.5px solid #171717;
  border-radius: 9px;
  outline: 0;
}

.stock-match-tip {
  margin: 10px 2px 4px;
  color: #85858b;
  font-size: 12px;
  line-height: 1.55;
}

.rc-manual-add-modal,
.rc-manual-material-picker {
  align-items: flex-end;
  justify-content: center;
}

.rc-manual-add-modal .manual-add-sheet,
.rc-manual-material-picker .manual-material-picker-sheet {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

.rc-manual-material-picker .manual-material-picker-sheet {
  display: flex;
  flex-direction: column;
  height: 82vh;
  height: min(82dvh, 680px);
  overflow: hidden;
}

.manual-sheet-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 12px;
}

.manual-sheet-header h2 {
  margin: 0;
  color: #252529;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.manual-sheet-header button {
  min-width: 44px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.manual-sheet-header .manual-material-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #E4E4EA;
  border-radius: 16px;
  background: #F5F5F7;
  color: #252529;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.manual-picker-hint {
  flex-shrink: 0;
  margin: 0 0 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.manual-material-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F5F5F7;
}

.manual-material-search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #6E6E78;
}

.manual-material-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  background: transparent;
  border: 0;
  outline: 0;
}

.manual-material-search input::placeholder {
  color: #92929B;
}

.manual-material-search:focus-within {
  border-color: #92929B;
}

.manual-material-list {
  flex: 1;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  background: #F5F5F7;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.rc-manual-material-picker .stock-choice-row {
  flex-shrink: 0;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #FFFFFF;
}

.rc-manual-material-picker .stock-choice-row.is-selected {
  border-color: #252529;
  background: #FFFFFF;
}

.rc-manual-material-picker .stock-choice-row strong {
  overflow: visible;
  color: #252529;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rc-manual-material-picker .stock-choice-row small {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.rc-manual-material-picker .stock-choice-row > .manual-material-indicator {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  gap: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #CFCFD6;
  border-radius: 50%;
  background: #FFFFFF;
  color: transparent;
}

.rc-manual-material-picker .manual-material-indicator svg {
  width: 14px;
  height: 14px;
}

.rc-manual-material-picker .is-selected > .manual-material-indicator {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.manual-sheet-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.manual-material-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.manual-sheet-actions .btn-black,
.manual-sheet-actions .manual-sheet-cancel {
  width: auto;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 10px;
  background: #111113;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.manual-sheet-actions .btn-black {
  flex: 1;
}

.manual-sheet-actions .manual-sheet-cancel {
  flex: 0 0 104px;
  border: 1px solid #E4E4EA;
  background: #F5F5F7;
  color: #6E6E78;
}

.manual-material-empty {
  padding: 24px 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.manual-add-tip {
  margin: 0 0 16px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.manual-add-card {
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  background: #F5F5F7;
}

.rc-manual-add-modal .manual-add-card .stock-match-row {
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom-color: #E4E4EA;
}

.rc-manual-add-modal .stock-match-label {
  flex: 0 0 64px;
  margin-right: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.rc-manual-add-modal .stock-match-value {
  flex: 1;
  gap: 8px;
  max-width: none;
  overflow: visible;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
  white-space: normal;
}

.rc-manual-add-modal .manual-selected-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rc-manual-add-modal .stock-match-value svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #6E6E78;
}

.rc-manual-add-modal .stock-match-inline {
  flex: 1;
  min-width: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.rc-manual-add-modal .manual-quantity-trigger {
  box-sizing: border-box;
  width: 88px;
  height: 38px;
  padding: 0 4px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F7F7F9;
  color: #252529;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}

.rc-manual-add-modal .manual-add-card .manual-reason-row {
  align-items: flex-start;
}

.manual-reason-input {
  display: block;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  overflow: hidden;
  resize: none;
  color: #252529;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  outline: 0;
}

.manual-reason-input::placeholder {
  color: #92929B;
}

.rc-manual-add-modal button,
.rc-manual-material-picker button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.rc-manual-add-modal button:active,
.rc-manual-material-picker button:active {
  transform: none;
}

.rc-manual-add-modal .manual-quantity-trigger:active:not(:disabled),
.manual-sheet-header button:active:not(:disabled) {
  background: #E9E9EE;
}

.rc-manual-material-picker .stock-choice-row:active:not(:disabled) {
  background: #F5F5F7;
}

.manual-add-submit:active:not(:disabled),
.manual-material-actions .btn-black:active:not(:disabled) {
  background: #343438;
}

.rc-manual-add-modal button:focus-visible,
.rc-manual-material-picker button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.manual-reason-input:focus-visible {
  outline: 2px solid #CFCFD6;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .rc-manual-add-modal button,
  .rc-manual-material-picker button { transition: none; }
}

.stock-match-number::-webkit-inner-spin-button,
.stock-match-number::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.stock-match-number {
  appearance: textfield;
}

/* 6.11 新增原料：与盘点和订货界面保持一致 */
.material-new-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #252529;
  background: #F5F5F7;
}

.material-new-page .material-new-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
}

.material-new-page .material-new-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.material-new-page .material-new-header button {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  cursor: pointer;
}

.material-new-page .material-new-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 16px 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.material-new-page .material-new-card {
  flex-shrink: 0;
  min-width: 0;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
}

.material-new-page .material-new-card + .material-new-card {
  margin-top: 12px;
}

.material-new-page .material-new-section-title {
  margin: 0;
  padding: 0 0 4px;
  color: #6E6E78;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.material-new-page .material-new-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  border-radius: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
}

.material-new-page .material-new-row:last-child,
.material-new-page .material-new-conversion-row {
  border-bottom: 0;
}

.material-new-page .material-new-picker {
  cursor: pointer;
}

.material-new-page .material-new-label {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #252529;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.material-new-page .material-new-label small {
  color: #6E6E78;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.material-new-page .material-new-value {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 62%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #494950;
  font-size: 15px;
  line-height: 22px;
  text-align: right;
  white-space: normal;
}

.material-new-page .material-new-picker__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.material-new-page .material-new-picker__arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 0;
  color: #92929B;
}

.material-new-page .material-new-name-row {
  display: block;
}

.material-new-page .material-new-name-line {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.material-new-page .material-new-name-row .material-new-label {
  flex: 0 0 auto;
}

.material-new-page .material-new-name-control {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: auto;
  min-width: 0;
}

.material-new-page .material-new-name {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  text-align: right;
}

.material-new-page .material-new-name::placeholder {
  color: #92929B;
  font-size: 15px;
}

.material-new-page .material-new-name-row:focus-within {
  border-color: #252529;
}

.material-new-page .material-new-name-row:has(.material-new-name.is-error) {
  border-color: #D54D3F;
}

.material-new-page .material-new-conversion {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.material-new-page .material-new-number {
  display: grid;
  flex: 0 0 88px;
  box-sizing: border-box;
  place-items: center;
  width: 88px;
  height: 38px;
  min-width: 0;
  padding: 0 4px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F7F7F9;
  color: #252529;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
}

.material-new-page .material-new-name.is-error,
.material-new-page .material-new-number.is-error {
  border-color: #D54D3F;
  color: #B9382B;
}

.material-new-page .material-new-error {
  margin: 8px 0 0;
  padding: 0;
  color: #B9382B;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.material-new-page .material-new-error[hidden] {
  display: none;
}

.material-new-page .material-new-tip {
  flex-shrink: 0;
  margin: 12px 2px 0;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.material-new-page .material-new-foot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.material-new-page .material-new-footer-copy {
  min-width: 0;
}

.material-new-page .material-new-footer-copy p {
  margin: 0 0 2px;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
}

.material-new-page .material-new-footer-copy span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.material-new-page .material-new-save {
  flex: 0 0 144px;
  width: 144px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.material-new-page .material-new-save:disabled {
  opacity: 1;
  background: #D4D4D8;
  color: #FFFFFF;
  cursor: default;
}

.material-new-page button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.material-new-page .material-new-picker:active:not(:disabled),
.material-new-page .material-new-number:active:not(:disabled),
.material-new-page .material-new-header button:active:not(:disabled) {
  background: #E9E9EE;
}

.material-new-page .material-new-save:active:not(:disabled) {
  background: #343438;
}

.material-new-page button:disabled {
  opacity: 0.45;
  cursor: default;
}

.material-new-page .material-new-save:disabled {
  opacity: 1;
}

.material-new-page button:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.material-new-overlay {
  align-items: flex-end;
  justify-content: center;
}

.material-new-sheet {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  min-height: 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #FFFFFF;
  color: #252529;
  box-shadow: none;
}

.material-new-sheet .modal-header {
  flex-shrink: 0;
  justify-content: flex-start;
  min-height: 32px;
  margin: 0 0 12px;
}

.material-new-sheet .modal-title {
  color: #252529;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

.material-new-sheet .modal-body {
  flex: 0 1 auto;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
  -webkit-overflow-scrolling: touch;
}

.material-new-sheet .modal-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
}

.material-new-sheet .modal-actions button {
  width: auto;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.material-new-sheet .modal-cancel {
  flex: 0 0 104px;
  border: 1px solid #E4E4EA;
  background: #F5F5F7;
  color: #6E6E78;
}

.material-new-sheet .modal-confirm {
  flex: 1;
  border: 0;
  background: #111113;
  color: #FFFFFF;
}

.material-new-sheet .material-option-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.material-new-sheet .material-new-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.material-new-sheet .material-new-options-list {
  grid-template-columns: minmax(0, 1fr);
}

.material-new-sheet .material-option-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #252529;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
}

.material-new-sheet .material-option-row:last-child {
  border-bottom: 1px solid #E4E4EA;
}

.material-new-sheet .material-option-row.is-selected {
  border-color: #252529;
  background: #F7F7F9;
}

.material-new-sheet .material-option-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.material-new-sheet .material-option-row input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.material-new-sheet .material-option-row i {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #CFCFD6;
  border-radius: 50%;
}

.material-new-sheet .material-option-row input:checked + i {
  border-color: #111113;
  background: #111113;
}

.material-new-sheet .material-option-row input:focus-visible + i {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

.material-new-sheet .material-custom-field {
  display: block;
  margin: 0;
  padding: 0;
}

.material-new-sheet .material-option-custom-choice {
  position: absolute;
  inset: 0;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  cursor: pointer;
}

.material-new-sheet .material-option-custom-choice i {
  margin-left: auto;
}

.material-new-sheet .material-option-custom-input {
  position: absolute;
  top: 50%;
  left: 12px;
  box-sizing: border-box;
  width: calc(100% - 56px);
  height: 44px;
  min-width: 0;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  opacity: 1;
  pointer-events: auto;
}

.material-new-sheet .material-option-custom-input::placeholder {
  color: #92929B;
  font-size: 15px;
}

.material-new-sheet .material-option-custom-input[hidden],
.material-new-sheet .material-option-custom-label[hidden] {
  display: none;
}

.material-new-sheet .material-custom-field > span {
  display: block;
  margin: 0 0 8px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.material-new-sheet .material-custom-field input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  outline: 0;
  background: #F7F7F9;
  color: #252529;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
}

.material-new-sheet .material-custom-field input::placeholder {
  color: #92929B;
}

.material-new-sheet .material-custom-field input:focus {
  border-color: #92929B;
}

.material-new-sheet .material-custom-field input.is-error {
  border-color: #D54D3F;
}

.material-new-sheet .material-custom-field-error {
  display: block;
  margin-top: 8px;
  color: #B9382B;
  font-size: 13px;
  line-height: 20px;
}

.material-new-keypad-sheet .material-new-keypad-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F5F5F7;
}

.material-new-keypad-sheet .material-new-keypad-display input {
  box-sizing: border-box;
  width: 5ch;
  height: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252529;
  font: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.material-new-keypad-sheet .material-new-keypad-display span {
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
}

.material-new-keypad-sheet .material-new-keypad-hint {
  margin: 8px 0 12px;
  color: #6E6E78;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.material-new-keypad-sheet .rc-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.material-new-keypad-sheet .rc-key {
  display: grid;
  place-items: center;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F5F5F7;
  color: #252529;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
  cursor: pointer;
  touch-action: manipulation;
}

.material-new-keypad-sheet .rc-key[data-material-key="clear"] {
  font-size: 15px;
}

.material-new-sheet button {
  transition: background-color 140ms ease, color 140ms ease;
  touch-action: manipulation;
}

.material-new-sheet .rc-key:active:not(:disabled),
.material-new-sheet .modal-cancel:active:not(:disabled) {
  background: #E9E9EE;
}

.material-new-sheet .modal-confirm:active:not(:disabled) {
  background: #343438;
}

.material-new-sheet button:disabled {
  background: #D4D4D8;
  color: #FFFFFF;
  cursor: default;
}

.material-new-sheet button:focus-visible,
.material-new-sheet .material-custom-field input:focus-visible {
  outline: 2px solid #252529;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .material-new-page .material-new-value {
    max-width: 58%;
  }

  .material-new-page .material-new-number {
    flex-basis: 80px;
    width: 80px;
  }

  .material-new-page .material-new-save {
    flex-basis: 132px;
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .material-new-page button,
  .material-new-sheet button {
    transition: none;
  }
}

/* 保留原料详情与单位规格共用的选项及自定义字段样式 */
.material-new-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  text-align: right;
  background: #fff;
  border: 1.5px solid #171717;
  border-radius: 9px;
  outline: 0;
}

.material-new-input::placeholder {
  color: #b0b0b5;
}

.material-new-input:focus {
  border-color: #171717;
  box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.08);
}

.material-new-input.is-error {
  color: #d92d20;
  background: #fff;
  border-color: #d92d20;
}

.material-new-input--short {
  width: 72px;
  margin-left: 8px;
}

.material-option-mask,
.material-custom-mask {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.34);
}

.material-option-sheet,
.material-custom-sheet {
  width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  overflow: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
}

.material-option-title,
.material-custom-title {
  padding: 20px 18px 10px;
  color: #171717;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.material-option-list {
  padding: 0 18px 18px;
}

.material-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0;
  color: #171717;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ececef;
}

.material-option-item:last-child {
  border-bottom: 0;
}

.material-option-item.is-selected {
  font-weight: 600;
}

.material-option-check {
  color: #171717;
  font-size: 17px;
}

.material-custom-body {
  padding: 4px 18px 24px;
}

.material-custom-body .material-new-input {
  width: 100%;
  text-align: left;
}

.material-custom-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.material-custom-actions button {
  flex: 1;
  height: 46px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  background: #f2f2f4;
  border: 0;
  border-radius: 14px;
}

.material-custom-actions button:last-child {
  color: #fff;
  background: #171717;
}

.material-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  color: #171717;
  font-size: 15px;
  border-bottom: 1px solid #ececef;
}

.material-option-row:last-child {
  border-bottom: 0;
}

.material-option-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.material-option-row i {
  display: grid;
  width: 22px;
  height: 22px;
  border: 1.5px solid #d4d4d8;
  border-radius: 50%;
  place-items: center;
}

.material-option-row input:checked + i {
  background: #171717;
  border-color: #171717;
}

.material-option-row input:checked + i::after {
  width: 8px;
  height: 4px;
  content: "";
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.material-custom-field {
  display: block;
  padding: 4px 0;
}

.material-custom-field span {
  display: block;
  margin-bottom: 8px;
  color: #85858b;
  font-size: 12.5px;
}

.material-custom-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #171717;
  font: inherit;
  font-size: 15px;
  background: #fff;
  border: 1.5px solid #171717;
  border-radius: 11px;
  outline: 0;
}

.material-custom-field input.is-error {
  border-color: #d94b4b;
}

.material-custom-field-error {
  display: block;
  margin-top: 7px;
  color: #c93c3c;
  font-size: 12.5px;
  line-height: 18px;
}

.rc-ingredient-name-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.rc-ingredient-name-row .login-input {
  flex: 1;
  min-width: 0;
}

.rc-new-material-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 10px;
  color: #171717;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: #f2f2f4;
  border: 0;
  border-radius: 10px;
}

/* 6.7 原料详情 */
.material-detail-scroll {
  padding: 4px 16px 28px;
}

.material-detail-scroll {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.material-detail-card {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
}

.material-detail-card + .material-detail-card {
  margin-top: 10px;
}

.material-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 11px 18px;
  color: #1c1c1e;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ececef;
}

.material-detail-row:last-child {
  border-bottom: 0;
}

button.material-detail-row {
  cursor: pointer;
}

button.material-detail-row:active {
  background: #fafafa;
}

button.material-detail-row:disabled {
  opacity: 0.5;
}

.material-detail-label {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 20px;
}

.material-detail-label small {
  color: #85858b;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 16px;
}

.material-detail-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  margin-left: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
}

.material-detail-value b{
  flex: 0 0 auto;
  color: #85858b;
  font-size: 20px;
  font-weight: 400;
  line-height: 18px;
}

.material-detail-field {
  display: block;
  background: #fff;
  border-bottom: 1px solid #ececef;
}

.material-detail-field:last-child {
  border-bottom: 0;
}

.material-detail-field .material-detail-edit-row {
  min-height: 58px;
  border-bottom: 0;
}

.material-detail-edit-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 108px;
  max-width: 58%;
  margin-left: 16px;
}

.material-detail-edit-control.is-name {
  flex: 1 1 auto;
}

.material-detail-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 5px 0;
  color: #1c1c1e;
  font: inherit;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  outline: 0;
}

.material-detail-edit-control:not(.is-name) .material-detail-input {
  max-width: 116px;
}

.material-detail-input:focus {
  background: transparent;
  border-bottom-color: #1c1c1e;
}

.material-detail-input.is-error {
  border-color: #d92d20;
}

.material-detail-input-suffix {
  flex: 0 0 auto;
  min-width: 16px;
  color: #85858b;
  font-size: 13px;
  text-align: left;
}

.material-detail-field-error {
  display: block;
  padding: 0 18px 9px;
  color: #d92d20;
  font-size: 12px;
  line-height: 17px;
  text-align: right;
}

.material-detail-field-error[hidden] {
  display: none;
}

.material-detail-row-muted .material-detail-value {
  color: #85858b;
  font-weight: 400;
}

.material-detail-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  padding: 0;
  background: #1c1c1e;
  border: 0;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.material-detail-switch span {
  position: absolute;
  top: 3px;
  left: 21px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s ease;
}

.material-detail-switch.is-off {
  background: #d9d9de;
}

.material-detail-switch.is-off span {
  left: 3px;
}

.material-detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 4px 8px;
  color: #1c1c1e;
  font-size: 14px;
}

.material-detail-section-title span {
  color: #85858b;
  font-size: 12.5px;
}

.material-detail-rate {
  min-width: 54px;
  font-size: 15px;
}

.material-related-recipe-row {
  min-height: 56px;
}

.material-related-recipe-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.material-related-recipe-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-related-recipe-empty {
  justify-content: flex-end;
  color: #85858b;
}

.material-detail-save {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 100%;
  width: min(448px, calc(100vw - 32px));
  min-height: 50px;
  margin: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: #171719;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.material-detail-save:active {
  background: #303033;
}

.material-detail-save:disabled {
  background: #b7b7bc;
}

.material-detail-tip {
  margin: 12px 4px 0;
  color: #85858b;
  font-size: 12.5px;
  line-height: 19px;
}

.material-detail-empty {
  padding: 48px 16px;
  color: #85858b;
  font-size: 14px;
  text-align: center;
}

.material-detail-sheet-overlay {
  z-index: 1300;
}

.material-detail-sheet {
  width: 100%;
  max-height: 86vh;
  max-height: 86dvh;
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  color: #1c1c1e;
  background: #fff;
  border-radius: 22px 22px 0 0;
}

.material-detail-sheet-grab {
  width: 38px;
  height: 4px;
  margin: 2px auto 16px;
  background: #d4d4d8;
  border-radius: 999px;
}

.material-detail-sheet h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.material-detail-sheet p {
  margin: 10px 0 0;
  color: #85858b;
  font-size: 12.5px;
  line-height: 19px;
}

.material-detail-sheet-error {
  margin-top: 7px;
  color: #d92d20;
  font-size: 12px;
  line-height: 18px;
}

.material-detail-sheet-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: #1c1c1e;
  border: 0;
  border-radius: 14px;
}

.material-detail-sheet-primary:disabled {
  background: #d4d4d8;
}

.material-related-dish-list {
  overflow: hidden;
  border-radius: 12px;
}

.material-related-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 2px;
  color: #1c1c1e;
  font: inherit;
  font-size: 15px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ececef;
}

.material-related-dish-row:last-child {
  border-bottom: 0;
}

.material-related-dish-row b {
  color: #85858b;
  font-size: 20px;
  font-weight: 400;
}

/* 6.10 菜品库差异确认 */
.recipe-import-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2200;
  display: flex;
  width: min(100%, 480px);
  flex-direction: column;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--page-bg);
  transform: translateX(-50%);
}

.recipe-import-nav {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(52px + var(--safe-top));
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: var(--safe-top) 16px 0;
  background: var(--page-bg);
}

.recipe-import-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--obsidian-black);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.recipe-import-title {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-import-nav-spacer {
  width: 44px;
}

.recipe-import-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px calc(110px + var(--safe-bottom));
}

.recipe-import-summary {
  padding: 4px 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.recipe-import-group-title {
  display: flex;
  min-height: 26px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.recipe-import-group-title:not(:first-of-type) {
  margin-top: 22px;
}

.recipe-import-group-title strong {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.recipe-import-group-title span {
  flex: none;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.recipe-import-card {
  overflow: hidden;
  background: var(--surface-card);
  border-radius: 18px;
}

.recipe-import-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--divider-line);
}

.recipe-import-row:last-child {
  border-bottom: 0;
}

.recipe-import-row-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.recipe-import-row-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-import-row-copy small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.recipe-import-row-action {
  min-width: 92px;
  min-height: 36px;
  flex: none;
  padding: 0 12px;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-card);
  border: 1px solid #D8D8DC;
  border-radius: 10px;
  cursor: pointer;
}

.recipe-import-row-action.is-done {
  color: var(--text-white);
  background: var(--obsidian-black);
  border-color: var(--obsidian-black);
}

.recipe-import-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 12px 16px calc(18px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(245, 245, 247, 0) 0, var(--page-bg) 18px);
}

.recipe-import-confirm {
  width: 100%;
  min-height: 54px;
  color: var(--text-white);
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  background: var(--obsidian-black);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.recipe-import-confirm:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #5B5B61;
}

.recipe-import-state,
.recipe-import-reading {
  display: flex;
  min-height: 45vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.recipe-import-state strong,
.recipe-import-reading strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.recipe-import-state p,
.recipe-import-reading small {
  max-width: 300px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.recipe-import-secondary {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 20px;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
}

.recipe-import-picker {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.recipe-import-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.recipe-import-picker-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 84%;
  overflow-y: auto;
  padding: 8px 16px calc(18px + var(--safe-bottom));
  background: var(--surface-card);
  border-radius: 28px 28px 0 0;
}

.recipe-import-picker-grab {
  width: 52px;
  height: 5px;
  margin: 0 auto 24px;
  background: #E5E5E8;
  border-radius: 999px;
}

.recipe-import-picker-sheet h4 {
  margin: 0 4px 16px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}

.recipe-import-category-list {
  display: grid;
  gap: 10px;
}

.recipe-import-category-list > button {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
}

.recipe-import-category-list > button.is-current,
.recipe-import-category-list > button.is-selected {
  border: 1.5px solid var(--obsidian-black);
}

.recipe-import-category-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.recipe-import-category-copy strong {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.recipe-import-category-copy small {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.recipe-import-current {
  flex: none;
  color: #9A9AA0;
  font-size: 14px;
}

.recipe-import-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.recipe-import-picker-actions button {
  min-height: 52px;
  color: var(--text-primary);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  background: var(--surface-card);
  border: 1px solid #D8D8DC;
  border-radius: 13px;
  cursor: pointer;
}

.recipe-import-picker-actions button.is-primary {
  color: var(--text-white);
  background: var(--obsidian-black);
  border-color: var(--obsidian-black);
}

/* 品项新增与编辑 */
.dish-editor {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f4f6;
  color: #17171a;
}
.dish-editor-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 52px;
  font-size: 18px;
}
.dish-editor-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish-editor-back {
  position: absolute;
  left: 16px;
  top: 0;
  height: 64px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 32px;
  cursor: pointer;
}
.dish-editor-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 24px;
}
.dish-editor-fields {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}
.dish-editor-field {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 18px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}
.dish-editor-field::after,
.dish-editor-combo::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: #ededf0;
  content: '';
}
.dish-editor-field > span, .dish-editor-field > label { font-size: 16px; }
.dish-editor-field strong { font-size: 16px; font-weight: 500; }
.dish-editor-type { cursor: pointer; }
.dish-editor-type b { color: #b7b7bd; font-size: 22px; font-weight: 400; }
.dish-editor-name-wrap { grid-column: 2 / 4; min-width: 0; }
.dish-editor-name-wrap input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.dish-editor-name-wrap input.is-invalid,
.dish-editor-name-wrap input[aria-invalid="true"] { color: #d73535; }
.dish-editor-name-error { display: block; color: #d73535; font-size: 12px; }
.dish-editor-name-error:empty { display: none; }
.dish-editor-association-warning { display: block; margin-top: 3px; color: #db711a; font-size: 12px; }
.dish-editor-recipe > div { grid-column: 2 / 4; min-width: 0; }
.dish-editor-recipe small,
.dish-editor-sale small { display: block; margin-top: 5px; color: #9999a2; font-size: 12px; }
.dish-editor-recipe small { color: #db711a; }
.dish-editor-combo { position: relative; padding: 18px 18px 4px; }
.dish-editor-section-title { font-size: 16px; font-weight: 600; }
.dish-editor-component {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid #f0f0f2;
}
.dish-editor-component > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dish-editor-component label { color: #777780; font-size: 13px; white-space: nowrap; }
.dish-editor-component input {
  width: 64px;
  margin-left: 4px;
  padding: 6px;
  border: 1px solid #dddde2;
  border-radius: 6px;
  font: inherit;
  text-align: center;
}
.dish-editor-component button { padding: 6px; border: 0; background: transparent; color: #9999a2; font-size: 23px; }
.dish-editor-add-component { width: 100%; padding: 16px 0; border: 0; background: transparent; text-align: left; font: inherit; }
.dish-editor-sale { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.dish-editor-sale strong { font-size: 16px; font-weight: 500; }
.dish-editor-switch { width: 49px; height: 28px; padding: 3px; flex-shrink: 0; border: 0; border-radius: 20px; background: #ccc; }
.dish-editor-switch.is-on { background: #141416; }
.dish-editor-switch span { display: block; width: 22px; height: 22px; border-radius: 50%; background: white; transition: transform .15s; }
.dish-editor-switch.is-on span { transform: translateX(21px); }
.dish-editor-footer { flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #f4f4f6; }
.dish-editor-save { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #141416; color: white; font: inherit; font-weight: 600; }
.dish-editor-save:disabled { opacity: .6; }
.dish-editor-overlay { position: fixed; z-index: 1000; inset: 0; display: flex; justify-content: center; align-items: flex-end; background: rgba(0,0,0,.4); }
.dish-editor-sheet { width: 100%; max-width: 480px; max-height: 90%; display: flex; flex-direction: column; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: #fff; }
.dish-editor-sheet-handle { align-self: center; width: 38px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: #e1e1e5; }
.dish-editor-sheet-title { margin-bottom: 14px; font-size: 17px; }
.dish-editor-type-options { display: grid; gap: 8px; overflow-y: auto; }
.dish-editor-option { min-height: 48px; padding: 0 14px; border: 1px solid #e4e4e8; border-radius: 11px; background: white; color: inherit; font: inherit; text-align: left; }
.dish-editor-option.selected { border-color: #17171a; font-weight: 600; }
.dish-editor-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dish-editor-sheet-actions button { min-height: 50px; border: 1px solid #17171a; border-radius: 11px; background: #fff; font: inherit; font-weight: 600; }
.dish-editor-sheet-actions button[data-confirm] { background: #141416; color: #fff; }
.dish-editor-picker-search { width: 100%; padding: 12px; border: 1px solid #e4e4e8; border-radius: 9px; font: inherit; }
.dish-editor-picker-list { min-height: 100px; max-height: 45vh; overflow-y: auto; }
.dish-editor-picker-row { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid #ececf0; }
.dish-editor-picker-row[hidden] { display: none; }
.dish-editor-picker-empty { padding: 28px 0; color: #9999a2; text-align: center; }
.dish-editor-recipe { cursor: pointer; }
.dish-editor-recipe > div { grid-column: 2; }
.dish-editor-recipe > b { color: #b7b7bd; font-size: 22px; font-weight: 400; }

.recipe-association-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #f4f4f6;
  color: #17171a;
}
.recipe-data-nav {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  flex-shrink: 0;
  min-height: 56px;
  padding: 0 8px;
}
.recipe-data-nav-start { display: flex; align-items: center; }
.recipe-data-nav h1 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.recipe-data-nav button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
}
.recipe-data-nav button:disabled { color: var(--text-muted); }
.recipe-data-nav-add { justify-self: end; }
.recipe-data-arrow { color: var(--text-muted); font-size: 22px; }
.recipe-data-import-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-card);
  font-size: 13px;
  line-height: 1.5;
}
.recipe-data-import-result button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--obsidian-black); color: #fff; font: inherit; }
.recipe-association-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 64px;
  font-size: 18px;
}
.recipe-association-header button {
  position: absolute;
  left: 16px;
  top: 0;
  height: 64px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 32px;
}
.recipe-association-body { flex: 1; min-height: 0; padding: 0 16px 20px; overflow-y: auto; }
.recipe-association-question { margin: 2px 0 14px; font-size: 15px; color: #686872; }
.recipe-association-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.recipe-association-tabs button {
  min-height: 44px;
  padding: 4px;
  border: 1px solid #ececf0;
  border-radius: 11px;
  background: white;
  color: #4d4d55;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.recipe-association-tabs button.is-active { border-color: #141416; background: #141416; color: #fff; }
.recipe-association-search {
  display: flex;
  align-items: center;
  margin: 10px 0 12px;
  padding: 0 12px;
  border: 1px solid #d8d8dd;
  border-radius: 11px;
  background: #fff;
}
.recipe-association-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.recipe-association-search span { flex-shrink: 0; color: #9999a2; font-size: 12px; }
.recipe-association-list { padding: 0 16px; border-radius: 18px; background: #fff; }
.recipe-association-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ededf0; }
.recipe-association-row:last-child { border-bottom: 0; }
.recipe-association-info { display: block; flex: 1; min-width: 0; padding: 16px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.recipe-association-info strong { display: block; font-size: 16px; font-weight: 600; }
.recipe-association-info small { display: block; margin-top: 4px; color: #9696a0; font-size: 12px; overflow-wrap: anywhere; }
.recipe-association-info em { display: block; margin-top: 4px; color: #d87419; font-size: 12px; font-style: normal; }
.recipe-association-info em.is-copy { color: #268f50; }
.recipe-association-check { flex-shrink: 0; width: 27px; height: 27px; border: 1px solid #c8c8ce; border-radius: 6px; background: #fff; color: #fff; font-size: 16px; }
.recipe-association-check.is-checked { border-color: #141416; background: #141416; }
.recipe-association-empty { padding: 30px 0; color: #9999a2; text-align: center; }
.recipe-association-note { margin: 12px 2px; color: #9999a2; font-size: 12px; }
.recipe-association-footer { flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #f4f4f6; }
.recipe-association-footer small { display: block; margin-bottom: 8px; color: #9999a2; font-size: 12px; text-align: center; }
.recipe-association-footer button, .recipe-library-save { width: 100%; min-height: 48px; border: 0; border-radius: 11px; background: #141416; color: #fff; font: inherit; font-weight: 600; }

.dish-association-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #f4f4f6;
  color: #17171a;
}
.dish-association-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 64px;
  font-size: 18px;
}
.dish-association-header button {
  position: absolute;
  left: 16px;
  top: 0;
  height: 64px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 32px;
}
.dish-association-body { flex: 1; min-height: 0; padding: 0 16px 20px; overflow-y: auto; }
.dish-association-question { margin: 2px 0 14px; color: #686872; font-size: 15px; }
.dish-association-search {
  display: flex;
  align-items: center;
  margin: 10px 0 12px;
  padding: 0 12px;
  border: 1px solid #d8d8dd;
  border-radius: 11px;
  background: #fff;
}
.dish-association-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.dish-association-search span { flex-shrink: 0; color: #9999a2; font-size: 12px; }
.dish-association-list { padding: 0 16px; border-radius: 18px; background: #fff; }
.dish-association-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid #ededf0;
  cursor: pointer;
}
.dish-association-row:last-child { border-bottom: 0; }
.dish-association-info { display: block; flex: 1; min-width: 0; }
.dish-association-info strong { display: block; font-size: 16px; font-weight: 600; }
.dish-association-info small {
  display: block;
  margin-top: 4px;
  color: #9696a0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dish-association-check {
  position: relative;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  margin: 0;
  appearance: none;
  border: 1px solid #c8c8ce;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.dish-association-check:checked { border-color: #141416; background: #141416; }
.dish-association-check:checked::after {
  position: absolute;
  inset: 0;
  color: #fff;
  content: "✓";
  font-size: 16px;
  line-height: 25px;
  text-align: center;
}
.dish-association-empty { padding: 30px 0; color: #9999a2; text-align: center; }
.dish-association-note { margin: 12px 2px; color: #9999a2; font-size: 12px; }
.dish-association-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #f4f4f6;
}
.dish-association-footer small {
  display: block;
  margin-bottom: 8px;
  color: #9999a2;
  font-size: 12px;
  text-align: center;
}
.dish-association-footer button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: #141416;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
/* 阿川：对话、语音与小本本空态的局部统一 */
.bottom-nav.is-chat { --nav-avatar: 44px; --nav-avatar-image: 36px; --nav-avatar-lift: 0px; }
.bottom-nav.is-chat .nav-tab.tab-achuan .avatar-circle { top: calc(24px - var(--nav-avatar)); box-shadow: none; }
@media (max-width: 360px) {
  .bottom-nav.is-chat { --nav-avatar: 40px; --nav-avatar-image: 32px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .bottom-nav.is-chat { --nav-avatar: 36px; --nav-avatar-image: 28px; }
}
.chat-view { min-width: 0; background: #F5F5F7; color: #252529; }
.chat-view .chat-top-nav { flex: 0 0 56px; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid #ECECEF; background: #F5F5F7; }
.chat-view #btn-chat-level { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #252529; font: inherit; opacity: 1; }
.chat-view .chat-top-title { position: static; left: auto; transform: none; color: #252529; font-size: 20px; font-weight: 600; line-height: 28px; white-space: nowrap; }
.chat-view .chat-level-tag { min-width: 0; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-view .chat-notebook-btn { flex: none; gap: 6px; min-height: 44px; padding: 0; border-radius: 10px; color: #252529; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; }
.chat-view .chat-notebook-dot { width: 5px; height: 5px; margin: 0; background: #252529; }
.chat-view .chat-notebook-arrow { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; color: #92929B; }
.chat-view .chat-msg-list { min-width: 0; padding: 16px 16px 20px; overscroll-behavior-y: contain; }
.chat-view .chat-msg-list > * + * { margin-top: 16px; }
.chat-view .chat-message { width: 100%; min-width: 0; }
 .chat-view .chat-bubble { max-width: 88%; min-width: 0; padding: 12px 14px; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; color: #252529; font-size: 15px; font-weight: 400; line-height: 24px; box-shadow: none; word-break: normal; overflow-wrap: anywhere; white-space: pre-line; }
.chat-view .chat-message.is-user .chat-bubble { border-color: #111113; background: #111113; color: #FFFFFF; }
.chat-view .chat-message.is-highlighted .chat-bubble { border-color: #252529; box-shadow: 0 0 0 2px #D4D4D8; }
.chat-view .chat-time-divider,
.chat-view .chat-message-status { color: #6E6E78; font-size: 12px; font-weight: 400; line-height: 18px; }
.chat-view .chat-reply-status { display: flex; align-items: center; align-self: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid #E5E7EA; border-radius: 12px; background: #FFFFFF; color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .chat-reply-indicator { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #92929B; }
.chat-view .chat-send-error { color: #C4473A; font-size: 13px; line-height: 20px; }
.chat-view .btn-chat-retry { min-height: 44px; padding: 10px 8px; border-radius: 8px; color: #C4473A; font-size: 13px; font-weight: 500; line-height: 20px; }

.chat-view .chat-operation-card,
.chat-view .chat-preorder-card,
.chat-view .chat-upgrade-card,
.chat-view .chat-notebook-card,
.chat-view .chat-restock-card,
.chat-view .chat-receive-card,
.chat-view .chat-followup-card { width: 100%; max-width: 100%; min-width: 0; margin-top: 8px; padding: 16px; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; color: #252529; box-shadow: none; }
.chat-view .chat-card-label { display: flex; align-items: center; gap: 8px; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: normal; }
.chat-view .chat-card-icon { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; color: #6E6E78; }
.chat-view .chat-card-icon svg { width: 18px; height: 18px; }
.chat-view .chat-card-body,
.chat-view .chat-followup-text { margin: 8px 0 0; color: #252529; font-size: 15px; font-weight: 400; line-height: 24px; overflow-wrap: anywhere; }
.chat-view .chat-card-actions,
.chat-view .chat-followup-actions { display: flex; gap: 8px; margin-top: 12px; }
.chat-view .chat-card-actions button,
.chat-view .chat-followup-actions button { flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.chat-view .chat-operation-card .chat-card-primary,
.chat-view .chat-card-actions .chat-card-primary { border-color: #111113; background: #111113; color: #FFFFFF; }
.chat-view .chat-operation-card .chat-card-secondary,
.chat-view .chat-card-actions .chat-card-secondary { border-color: #E4E4EA; background: #F5F5F7; color: #494950; }
.chat-view .chat-card-status,
.chat-view .chat-preorder-answered,
.chat-view .chat-restock-done,
.chat-view .chat-receive-done { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #F5F5F7; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; text-align: left; overflow-wrap: anywhere; }
.chat-view .chat-card-status svg { flex: 0 0 16px; width: 16px; height: 16px; }
.chat-view .chat-followup-label,
.chat-view .chat-preorder-label,
.chat-view .chat-restock-label { color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: normal; }
.chat-view .chat-restock-label span + span { margin-left: 0; }
.chat-view .chat-preorder-question,
.chat-view .chat-restock-title,
.chat-view .chat-receive-title { margin-top: 8px; color: #252529; font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.chat-view .chat-preorder-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.chat-view .btn-preorder-reply { min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #252529; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; }
.chat-view .chat-upgrade-card { gap: 12px; }
.chat-view .chat-upgrade-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #6E6E78; }
.chat-view .chat-upgrade-icon svg { width: 18px; height: 18px; }
.chat-view .chat-upgrade-copy { color: #252529; font-size: 15px; line-height: 24px; }
.chat-view .chat-upgrade-copy b { font-size: 15px; font-weight: 500; line-height: 24px; }
.chat-view .chat-upgrade-copy small { color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .chat-upgrade-card .btn-chat-see-growth { min-height: 44px; height: 44px; padding: 0 12px; font-size: 13px; font-weight: 500; line-height: 20px; }
.chat-view .chat-notebook-main { gap: 8px; }
.chat-view .chat-notebook-icon { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; color: #6E6E78; }
.chat-view .chat-notebook-icon svg { width: 18px; height: 18px; }
.chat-view .chat-notebook-title { color: #252529; font-size: 15px; font-weight: 500; line-height: 24px; }
.chat-view .chat-notebook-detail { margin-top: 4px; overflow: visible; color: #6E6E78; font-size: 13px; line-height: 20px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.chat-view .chat-notebook-actions { gap: 8px; margin-top: 8px; }
.chat-view .chat-notebook-actions button { min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #494950; font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; }
.chat-view .chat-receive-item { padding: 12px 0; }
.chat-view .chat-receive-item + .chat-receive-item { border-color: #ECECEF; }
.chat-view .chat-receive-name { flex: 1; min-width: 0; color: #252529; font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.chat-view .chat-receive-qty { flex: 0 1 auto; min-width: 0; max-width: 45%; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; text-align: right; white-space: normal; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chat-view .chat-receive-price { margin-top: 4px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .chat-receive-divider { margin: 12px 0; background: #ECECEF; }
.chat-view .chat-receive-hint { color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .chat-restock-card .btn-confirm-restock,
.chat-view .chat-receive-card .btn-confirm-receive { min-height: 44px; height: auto; padding: 10px 12px; border: 0; border-radius: 10px; background: #111113; color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }

.chat-view .chat-input-bar { flex: 0 0 auto; align-items: flex-end; gap: 8px; padding: 8px 12px; border-top: 1px solid #ECECEF; background: #FFFFFF; }
.chat-view .chat-input-bar > * + * { margin-left: 0; }
.chat-view .chat-mode-switch-btn,
.chat-view .chat-mic-btn,
.chat-view .chat-send-btn { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #E4E4EA; border-radius: 12px; background: #F7F7F9; color: #494950; }
.chat-view .chat-mode-switch-btn svg,
.chat-view .chat-mic-btn svg { width: 22px; height: 22px; }
.chat-view .chat-send-btn { border-color: #111113; background: #111113; color: #FFFFFF; }
.chat-view .chat-send-btn:disabled { border-color: #E4E4EA; background: #E4E4E8; color: #92929B; opacity: 1; cursor: default; }
.chat-view #chat-input-text { box-sizing: border-box; flex: 1; width: auto; min-width: 0; min-height: 44px; max-height: 120px; height: 44px; margin: 0; padding: 9px 12px; overflow: hidden; resize: none; border: 1px solid #E4E4EA; border-radius: 12px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 24px; }
.chat-view #chat-input-text::placeholder { color: #92929B; }
.chat-view #chat-input-text:focus { border-color: #252529; }
.chat-view .chat-hold-speak-btn { flex: 1; min-width: 0; height: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #E4E4EA; border-radius: 12px; background: #F7F7F9; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 24px; touch-action: none; }

.chat-view #voice-backdrop { background: rgba(0, 0, 0, 0.35); }
.chat-view #voice-rec-card { left: 50%; right: auto; bottom: clamp(220px, 31dvh, 260px); width: calc(100% - 32px); max-width: 448px; max-height: 40dvh; padding: 16px; overflow-y: auto; border: 1px solid #E5E7EA; border-radius: 24px; background: #FFFFFF; color: #252529; font-size: 15px; line-height: 24px; box-shadow: none; transform: translateX(-50%); transition: background-color 140ms ease, color 140ms ease; }
.chat-view #voice-rec-card.gry { background: #ECEEF2; color: #6E6E78; }
.chat-view .chat-voice-transcript { min-height: 22px; color: inherit; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.chat-view #voice-rec-hint { margin-top: 8px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .vwave i { background: #252529; animation-duration: 1200ms; }
.chat-view #voice-cancel-icon { left: 50%; bottom: 148px; width: 56px; height: 56px; margin: 0; border: 0; border-radius: 50%; background: #FFFFFF; color: #252529; font-size: 20px; box-shadow: none; transform: translateX(-50%); transition: background-color 140ms ease, color 140ms ease, transform 140ms ease; }
.chat-view #voice-cancel-icon svg { width: 20px; height: 20px; }
.chat-view #voice-cancel-icon.on { bottom: 148px; width: 56px; height: 56px; margin: 0; background: #3C3C43; color: #FFFFFF; font-size: 20px; transform: translateX(-50%) scale(1.08); }
.chat-view #voice-cancel-cap { bottom: 116px; color: #FFFFFF; font-size: 13px; font-weight: 400; line-height: 20px; }
.chat-view #voice-bot-arc { height: 100px; padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: #FFFFFF; color: #252529; font-size: 15px; font-weight: 500; line-height: 24px; box-shadow: none; transition: background-color 140ms ease, color 140ms ease; }
.chat-view #voice-bot-arc.can { background: #3C3C43; color: #FFFFFF; }
.chat-view #voice-confirm-box { left: 50%; right: auto; bottom: 0; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px); margin: 0; padding: 20px 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; border: 0; border-radius: 24px 24px 0 0; background: #FFFFFF; color: #252529; box-shadow: none; transform: translateX(-50%); animation: chat-voice-sheet-rise 220ms cubic-bezier(0.32, 0.72, 0, 1); }
.chat-view .chat-voice-confirm-title { display: block; margin: 0 0 12px; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; }
.chat-view #voice-confirm-text { box-sizing: border-box; display: block; width: 100%; min-height: 96px; max-height: min(40dvh, 240px); margin: 0; padding: 12px; overflow-y: auto; resize: none; border: 1px solid #E4E4EA; border-radius: 10px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 24px; word-break: normal; overflow-wrap: anywhere; }
.chat-view #voice-confirm-text:focus { border-color: #252529; }
.chat-view #voice-confirm-box .vh { margin: 8px 0 16px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-view .chat-voice-confirm-actions { display: flex; gap: 12px; }
.chat-view .chat-voice-confirm-actions button { min-width: 0; height: 48px; margin: 0; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.chat-view #btn-voice-confirm-cancel { flex: 0 0 104px; border: 1px solid #E4E4EA; background: #F5F5F7; color: #494950; }
.chat-view #btn-voice-confirm-send { flex: 1; border: 0; background: #111113; color: #FFFFFF; }
.chat-view #voice-miss-pill { max-width: calc(100% - 32px); bottom: 144px; padding: 12px 16px; border-radius: 12px; background: #252529; color: #FFFFFF; font-size: 13px; line-height: 20px; text-align: center; white-space: normal; animation: none; }

.modal-overlay.chat-note-edit-modal { z-index: 1000; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.35); }
.chat-note-edit-modal .chat-note-edit-sheet { position: relative; right: auto; bottom: auto; left: auto; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px); padding: 20px 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; border-radius: 24px 24px 0 0; background: #FFFFFF; color: #252529; box-shadow: none; animation: slideUpModal 220ms cubic-bezier(0.32, 0.72, 0, 1); }
.chat-note-edit-modal .chat-note-edit-header h2 { margin: 0; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; }
.chat-note-edit-modal .chat-note-edit-hint { margin: 8px 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.chat-note-edit-modal .chat-note-edit-input { box-sizing: border-box; width: 100%; min-height: 120px; max-height: 40dvh; margin: 0; padding: 12px; overflow-y: auto; resize: none; border: 1px solid #E4E4EA; border-radius: 10px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; line-height: 24px; }
.chat-note-edit-modal .chat-note-edit-input:focus { border-color: #252529; }
.chat-note-edit-modal .chat-note-edit-actions { display: flex; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.chat-note-edit-modal .chat-note-edit-actions button { min-width: 0; height: 48px; margin: 0; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.chat-note-edit-modal #btn-cancel-note-edit { flex: 0 0 104px; }
.chat-note-edit-modal #btn-save-note-edit { flex: 1; border: 0; background: #111113; color: #FFFFFF; }

/* 小本本：分类清单、记录详情与字段编辑 */
.notebook-nav,
.notebook-detail-view .notebook-detail-header { position: relative; display: flex; flex: 0 0 50px; align-items: center; justify-content: center; height: 50px; min-height: 50px; margin: 0; padding: 0 52px; background: #F5F5F7; }
.notebook-nav .nav-title,
.notebook-detail-view .notebook-detail-header .nav-title { position: static; margin: 0; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; transform: none; }
.notebook-nav .subpage-nav-spacer,
.notebook-detail-view .notebook-detail-header .subpage-nav-spacer { display: none; }
.notebook-nav .subpage-back,
.notebook-detail-view .notebook-detail-header .subpage-back { position: absolute; top: 3px; left: 8px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #252529; }
.notebook-nav .subpage-back svg,
.notebook-detail-view .notebook-detail-header .subpage-back svg { width: 20px; height: 20px; }
.notebook-preview-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 6px; border: 1px solid #E4E4EA; border-radius: 6px; color: #6E6E78; font-size: 12px; font-weight: 400; line-height: 18px; text-decoration: none; vertical-align: middle; }
.scroll-container.notebook-scroll { min-width: 0; padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px)); background: #F5F5F7; }
.scroll-container.notebook-detail-host { display: flex; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: #F5F5F7; }
.notebook-view { min-width: 0; color: #252529; }
.notebook-view .nb-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.notebook-view .nb-tab { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; text-align: center; }
.notebook-view .nb-tab.on,
.notebook-view .nb-tab[aria-pressed="true"] { border-color: #111113; background: #111113; color: #FFFFFF; }
.notebook-view .nb-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 2px 8px; }
.notebook-view .nb-section-heading h2 { min-width: 0; margin: 0; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.notebook-view .nb-section-meta { flex: none; color: #92929B; font-size: 13px; line-height: 20px; }
.notebook-view .nb-section-card { margin: 0; padding: 0 16px; overflow: hidden; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; box-shadow: none; }
.notebook-view .nb-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 72px; margin: 0; padding: 14px 0; border: 0; background: transparent; color: #252529; font: inherit; text-align: left; }
.notebook-view .nb-row + .nb-row { border-top: 1px solid #ECECEF; }
.notebook-view .nb-row-copy { flex: 1; min-width: 0; }
.notebook-view .nb-row-title { display: block; margin: 0; color: #252529; font-size: 15px; font-weight: 500; line-height: 24px; white-space: normal; overflow-wrap: anywhere; }
.notebook-view .nb-row-subtitle { display: block; margin-top: 4px; color: #6E6E78; font-size: 13px; font-weight: 400; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }
.notebook-view .nb-row-date,
.notebook-view .nb-row-badge { flex: 0 1 auto; max-width: 32%; padding: 3px 6px; border-radius: 6px; background: #F5F5F7; color: #6E6E78; font-size: 12px; font-weight: 400; line-height: 18px; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.notebook-view .nb-row-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.notebook-view .nb-row-arrow { flex: 0 0 16px; width: 16px; height: 16px; color: #92929B; }
.notebook-view .detail-load-more { min-height: 44px; margin: 12px 0 0; padding: 12px 8px; border: 0; border-radius: 10px; background: transparent; color: #6E6E78; font: inherit; font-size: 13px; line-height: 20px; }
.notebook-view .notebook-empty { min-height: 0; margin: 0; padding: 24px 20px; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; color: #6E6E78; box-shadow: none; text-align: center; }
.notebook-view .notebook-empty > svg { display: block; width: 32px; height: 32px; margin: 0 auto 12px; color: #92929B; }
.notebook-view .notebook-empty-title { margin: 0; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; }
.notebook-view .notebook-empty-copy { margin: 8px 0 0; color: #6E6E78; font-size: 13px; line-height: 20px; }
.notebook-load-error { padding: 24px 20px; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; color: #6E6E78; text-align: center; }
.notebook-load-error p { margin: 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.notebook-load-error button { min-height: 44px; margin-top: 12px; padding: 10px 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #252529; font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; }

.notebook-detail-view { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: #F5F5F7; color: #252529; }
.notebook-detail-view .nb-detail-content { flex: 1; min-width: 0; min-height: 0; padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior-y: contain; }
.notebook-detail-view .nb-detail-card,
.notebook-detail-view .nb-original-card { margin: 0; padding: 0; overflow: hidden; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; box-shadow: none; }
.notebook-detail-view .nb-detail-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 64px; padding: 14px 16px; border: 0; border-radius: 0; background: transparent; color: #252529; font: inherit; text-align: left; }
.notebook-detail-view .nb-detail-row:not(.is-editable) { grid-template-columns: 72px minmax(0, 1fr); }
.notebook-detail-view .nb-detail-row + .nb-detail-row { border-top: 1px solid #ECECEF; }
.notebook-detail-view .nb-detail-label { min-width: 0; color: #6E6E78; font-size: 15px; font-weight: 400; line-height: 24px; }
.notebook-detail-view .nb-detail-value { min-width: 0; color: #252529; font-size: 15px; font-weight: 400; line-height: 24px; text-align: right; white-space: pre-wrap; overflow-wrap: anywhere; }
.notebook-detail-view .nb-detail-chevron { width: 16px; height: 16px; margin: 0; color: #92929B; }
.notebook-detail-view .nb-detail-usage { display: block; }
.notebook-detail-view .nb-detail-usage .nb-detail-label { display: block; font-size: 13px; line-height: 20px; }
.notebook-detail-view .nb-detail-usage .nb-detail-value { display: block; margin-top: 6px; text-align: left; }
.notebook-detail-view .nb-detail-hint { margin: 10px 2px 0; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.notebook-detail-view .nb-original-card { margin-top: 12px; padding: 16px; }
.notebook-detail-view .nb-original-label { color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; }
.notebook-detail-view .nb-original-text { margin-top: 8px; color: #252529; font-size: 15px; font-weight: 400; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notebook-detail-view .nb-original-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 10px 0; border: 0; border-radius: 8px; background: transparent; color: #252529; font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; }
.notebook-detail-view .nb-original-link svg { width: 16px; height: 16px; }
.notebook-detail-view .nb-detail-footer { flex-shrink: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ECECEF; background: #FFFFFF; }
.notebook-detail-view .nb-delete-button { position: static; display: block; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #C4473A; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; transform: none; }

.modal-overlay.nb-edit-sheet-overlay { z-index: 1000; align-items: flex-end; justify-content: center; padding: 0; background: rgba(0, 0, 0, 0.35); }
.nb-edit-sheet-overlay .nb-edit-sheet { display: flex; flex-direction: column; width: 100%; max-width: 480px; min-height: 0; max-height: calc(100dvh - 24px); margin: 0; padding: 20px 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow: hidden; border: 0; border-radius: 24px 24px 0 0; background: #FFFFFF; color: #252529; box-shadow: none; animation: slideUpModal 220ms cubic-bezier(0.32, 0.72, 0, 1); }
.nb-edit-sheet-overlay .nb-edit-grab { display: none; }
.nb-edit-sheet-overlay .nb-edit-heading { flex-shrink: 0; gap: 12px; margin: 0 0 4px; }
.nb-edit-sheet-overlay .nb-edit-heading h2 { flex: 1; min-width: 0; margin: 0; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; }
.nb-edit-sheet-overlay .modal-sheet-close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #6E6E78; }
.nb-edit-sheet-overlay .modal-sheet-close svg { width: 20px; height: 20px; }
.nb-edit-sheet-overlay .nb-edit-hint { margin: 4px 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.nb-edit-sheet-overlay .nb-edit-form { min-width: 0; min-height: 0; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.nb-edit-sheet-overlay .nb-edit-row { flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; min-height: 0; padding: 12px 0; border-color: #ECECEF; }
.nb-edit-sheet-overlay .nb-edit-label { flex: none; color: #494950; font-size: 15px; font-weight: 400; line-height: 24px; }
.nb-edit-sheet-overlay .nb-edit-label small { margin-top: 4px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.nb-edit-sheet-overlay .nb-edit-static { max-width: none; color: #252529; font-size: 15px; font-weight: 400; line-height: 24px; text-align: left; overflow-wrap: anywhere; }
.nb-edit-sheet-overlay .nb-edit-control,
.nb-edit-sheet-overlay .nb-edit-control.is-number,
.nb-edit-sheet-overlay .nb-edit-control.is-date,
.nb-edit-sheet-overlay .nb-edit-control.is-inline,
.nb-edit-sheet-overlay .nb-edit-control.is-content { box-sizing: border-box; width: 100%; max-width: none; min-width: 0; height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #E4E4EA; border-radius: 10px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 24px; text-align: left; }
.nb-edit-sheet-overlay textarea.nb-edit-control { height: auto; min-height: 88px; max-height: 32dvh; overflow-y: auto; resize: none; }
.nb-edit-sheet-overlay .nb-edit-control:focus { border: 1px solid #252529; box-shadow: none; }
.nb-edit-sheet-overlay .nb-edit-control::placeholder { color: #92929B; }
.nb-edit-sheet-overlay .nb-edit-control.is-inline.is-date::-webkit-calendar-picker-indicator { display: block; }
.nb-edit-sheet-overlay .nb-edit-value-wrap { flex: 1; width: 100%; max-width: none; min-width: 0; }
.nb-edit-sheet-overlay .nb-edit-chevron { flex: 0 0 16px; width: 16px; height: 16px; color: #92929B; }
.nb-edit-sheet-overlay .nb-edit-direction { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nb-edit-sheet-overlay .nb-edit-direction .btn-nb-dir { min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.nb-edit-sheet-overlay .nb-edit-direction .btn-nb-dir.on { border-color: #111113; background: #111113; color: #FFFFFF; font-weight: 500; }
.nb-edit-sheet-overlay .nb-edit-error { padding: 4px 0 0; color: #C4473A; font-size: 13px; line-height: 20px; text-align: left; }
.nb-edit-sheet-overlay .nb-edit-error:not([hidden]) { display: block; }
.nb-edit-sheet-overlay .nb-edit-control.is-invalid,
.nb-edit-sheet-overlay .nb-edit-control[aria-invalid="true"] { border-color: #C4473A; }
.nb-edit-sheet-overlay .nb-edit-actions { display: flex; flex-shrink: 0; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.nb-edit-sheet-overlay .nb-edit-actions button { min-width: 0; width: auto; height: 48px; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.nb-edit-sheet-overlay #btn-edit-cancel { flex: 0 0 104px; }
.nb-edit-sheet-overlay #btn-edit-save { flex: 1; border-color: #111113; background: #111113; color: #FFFFFF; }
.nb-edit-sheet-overlay #btn-edit-cancel:disabled,
.nb-edit-sheet-overlay #btn-edit-save:disabled { border-color: #E4E4EA; background: #E4E4E8; color: #92929B; opacity: 1; cursor: default; }

.notebook-nav button,
.notebook-view button,
.notebook-detail-view button,
.notebook-load-error button,
.nb-edit-sheet-overlay button { cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, color 140ms ease; }
.notebook-nav button:active:not(:disabled),
.notebook-view button:active:not(:disabled),
.notebook-detail-view button:active:not(:disabled),
.notebook-load-error button:active:not(:disabled),
.nb-edit-sheet-overlay button:active:not(:disabled) { background: #E9E9EE; }
.notebook-view .nb-tab.on:active,
.notebook-view .nb-tab[aria-pressed="true"]:active,
.nb-edit-sheet-overlay .btn-nb-dir.on:active,
.nb-edit-sheet-overlay #btn-edit-save:active:not(:disabled) { background: #343438; }
.notebook-nav button:focus-visible,
.notebook-preview-badge:focus-visible,
.notebook-view button:focus-visible,
.notebook-detail-view button:focus-visible,
.notebook-load-error button:focus-visible,
.nb-edit-sheet-overlay button:focus-visible { outline: 2px solid #252529; outline-offset: -2px; }
.notebook-view button:disabled,
.notebook-detail-view button:disabled,
.nb-edit-sheet-overlay button:disabled { opacity: 0.5; cursor: default; }

@media (hover: hover) and (pointer: fine) {
  .notebook-view .nb-row:hover,
  .notebook-detail-view .nb-detail-row.is-editable:hover { background: #F7F7F9; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-edit-sheet-overlay .nb-edit-sheet { animation: none; }
  .notebook-nav button,
  .notebook-view button,
  .notebook-detail-view button,
  .notebook-load-error button,
  .nb-edit-sheet-overlay button { transition: none; }
}

.chat-view button,
.chat-note-edit-modal button { cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, color 140ms ease; }
.chat-view .chat-hold-speak-btn { touch-action: none; }
.chat-view button:active:not(:disabled),
.chat-note-edit-modal button:active:not(:disabled) { transform: none; background: #E9E9EE; }
.chat-view .chat-card-actions .chat-card-primary:active:not(:disabled),
.chat-view .chat-operation-card .chat-card-primary:active:not(:disabled),
.chat-view .chat-send-btn:active:not(:disabled),
.chat-view #btn-voice-confirm-send:active:not(:disabled),
.chat-note-edit-modal #btn-save-note-edit:active:not(:disabled) { background: #343438; }
.chat-view #btn-chat-level:active { opacity: 1; }
.chat-view button:focus-visible,
.chat-note-edit-modal button:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.chat-view button:disabled { cursor: default; }
.chat-view [hidden],
.chat-note-edit-modal [hidden] { display: none; }

@keyframes chat-voice-sheet-rise { from { opacity: 0; transform: translate(-50%, 100%); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 360px) {
  .chat-view .chat-upgrade-card { flex-wrap: wrap; }
  .chat-view .chat-upgrade-card .btn-chat-see-growth { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-view #voice-confirm-box,
  .chat-note-edit-modal .chat-note-edit-sheet,
  .chat-view .vwave i { animation: none; }
  .chat-view button,
  .chat-view #voice-rec-card,
  .chat-view #voice-cancel-icon,
  .chat-view #voice-bot-arc,
  .chat-note-edit-modal button { transition: none; }
}

/* 原料详情与独立菜谱库编辑 */
.material-detail-page,
.recipe-confirm-page.dish-detail-page.recipe-library-editor { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: #F5F5F7; color: #252529; }
.material-detail-page .material-detail-nav,
.recipe-library-editor .recipe-library-editor-header { position: relative; top: auto; display: flex; flex-shrink: 0; align-items: center; justify-content: center; height: 50px; min-height: 50px; padding: 0 52px; background: #F5F5F7; }
.material-detail-page .material-detail-nav h1,
.recipe-library-editor .recipe-library-editor-header h1,
.recipe-library-editor .recipe-library-editor-header .nav-title { min-width: 0; margin: 0; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; text-align: center; }
.material-detail-page .material-detail-nav .subpage-back,
.recipe-library-editor .recipe-library-editor-header .subpage-back { position: absolute; top: 3px; left: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #252529; transform: none; }
.material-detail-page .material-detail-nav .subpage-back svg,
.recipe-library-editor .recipe-library-editor-header .subpage-back svg { width: 20px; height: 20px; }
.recipe-library-editor .recipe-library-editor-header .subpage-nav-spacer { position: absolute; top: 3px; right: 8px; width: 44px; height: 44px; }
.material-detail-page .material-detail-scroll,
.recipe-library-editor .recipe-library-editor-body { flex: 1; min-width: 0; min-height: 0; padding: 12px 16px 24px; overflow-y: auto; overscroll-behavior-y: contain; }
.material-detail-page .material-detail-card { margin: 0; overflow: hidden; border-radius: 16px; background: #FFFFFF; }
.material-detail-page .material-detail-card + .material-detail-card { margin-top: 12px; }
.material-detail-page .material-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: 64px; padding: 12px 16px; border: 0; border-bottom: 1px solid #ECECEF; background: #FFFFFF; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; text-align: left; }
.material-detail-page .material-detail-row:last-child { border-bottom: 0; }
.material-detail-page .material-detail-label { flex: 0 0 88px; gap: 2px; min-width: 0; color: #6E6E78; font-size: 15px; font-weight: 400; line-height: 22px; }
.material-detail-page .material-detail-label small { color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.material-detail-page .material-detail-value { flex: 1; gap: 8px; min-width: 0; margin: 0; color: #252529; font-size: 15px; font-weight: 400; line-height: 22px; overflow-wrap: anywhere; }
.material-detail-page .material-detail-row svg { flex: 0 0 16px; width: 16px; height: 16px; color: #92929B; }
.material-detail-page .material-detail-field { border-bottom: 1px solid #ECECEF; background: #FFFFFF; }
.material-detail-page .material-detail-field:last-child { border-bottom: 0; }
.material-detail-page .material-detail-field .material-detail-edit-row { min-height: 64px; border-bottom: 0; }
.material-detail-page .material-detail-edit-control { flex: 1; gap: 6px; min-width: 0; max-width: none; margin: 0; }
.material-detail-page .material-detail-input { min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; text-align: right; }
.material-detail-page .material-detail-edit-control:not(.is-name) .material-detail-input { max-width: none; }
.material-detail-page .material-detail-input:focus { border-bottom: 1px solid #252529; }
.material-detail-page .material-detail-input.is-error { color: #C4473A; border-bottom-color: #C4473A; }
.material-detail-page .material-detail-input-suffix { min-width: 0; color: #6E6E78; font-size: 13px; line-height: 20px; }
.material-detail-page .material-detail-input.material-detail-number { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 6px; width: auto; min-width: 72px; max-width: 100%; height: 44px; padding: 0 8px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; }
.material-detail-page .material-detail-number-value { min-width: 0; color: #252529; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.material-detail-page .material-detail-field-error { margin: 0; padding: 0 16px 12px; color: #C4473A; font-size: 13px; line-height: 20px; text-align: right; overflow-wrap: anywhere; }
.material-detail-page .material-detail-section-title { gap: 12px; margin: 16px 0 8px; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; }
.material-detail-page .material-detail-section-title span { color: #6E6E78; font-size: 13px; font-weight: 400; }
.material-detail-page .material-detail-section-title h2 { margin: 0; color: inherit; font-size: 13px; font-weight: 500; line-height: 20px; }
.material-detail-page .material-detail-basic-title { margin: 0 0 8px; }
.material-detail-page [data-material-detail-action="cycle"] .material-detail-value > span { display: inline-flex; flex: none; align-items: center; min-height: 28px; padding: 3px 8px; border: 1px solid #E4E4EA; border-radius: 8px; background: #F0F0F3; color: #252529; font-size: 14px; font-weight: 500; line-height: 20px; }
.material-detail-page .material-related-recipe-row { min-height: 64px; }
.material-detail-page .material-related-recipe-copy { flex: 1; min-width: 0; }
.material-detail-page .material-related-recipe-copy strong { display: block; overflow: visible; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.material-detail-page .material-related-recipe-empty { color: #6E6E78; font-size: 13px; line-height: 20px; }
.material-detail-page .material-detail-tip { margin: 12px 2px 0; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.material-detail-page .material-detail-switch { flex: 0 0 49px; width: 49px; height: 28px; padding: 3px; border: 0; border-radius: 999px; background: #111113; transition: background-color 140ms ease; }
.material-detail-page .material-detail-switch span { top: 3px; left: 3px; width: 22px; height: 22px; transform: translateX(21px); transition: transform 140ms ease; }
.material-detail-page .material-detail-switch.is-off { background: #D4D4D8; }
.material-detail-page .material-detail-switch.is-off span { left: 3px; transform: translateX(0); }
.material-detail-page .material-detail-switch:focus-visible span { transition: none; }
.material-detail-page .material-detail-empty { padding: 32px 16px; border-radius: 16px; background: #FFFFFF; color: #6E6E78; font-size: 15px; line-height: 22px; text-align: center; }
.material-detail-page .material-detail-footer,
.recipe-library-editor .recipe-library-editor-footer { position: static; flex-shrink: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ECECEF; background: #FFFFFF; }
.material-detail-page .material-detail-save,
.recipe-library-editor .recipe-library-save { position: static; left: auto; bottom: auto; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 16px; border: 0; border-radius: 10px; background: #111113; color: #FFFFFF; box-shadow: none; transform: none; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.material-detail-page .material-detail-save:disabled,
.recipe-library-editor .recipe-library-save:disabled { background: #D4D4D8; color: #FFFFFF; opacity: 1; cursor: default; }

.modal-overlay.material-detail-overlay,
.modal-overlay.recipe-library-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
.material-detail-overlay .material-detail-sheet,
.recipe-library-modal .recipe-library-sheet { position: relative; right: auto; bottom: auto; left: auto; display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px); min-height: 0; margin: 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior-y: contain; border-radius: 20px 20px 0 0; background: #FFFFFF; color: #252529; box-shadow: none; animation: slideUpModal 220ms cubic-bezier(0.32, 0.72, 0, 1); }
.material-detail-overlay .material-detail-sheet-header { flex-shrink: 0; margin: 0 0 8px; }
.material-detail-overlay .material-detail-sheet-grab { flex: none; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: #D4D4D8; }
.material-detail-overlay .material-detail-sheet-header h2,
.material-detail-overlay .material-detail-sheet-header h3,
.recipe-library-modal .rc-sheet-title { margin: 0; color: #252529; font-size: 17px; font-weight: 600; line-height: 24px; text-align: left; }
.material-detail-overlay .material-detail-sheet-description { flex-shrink: 0; margin: 0 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.material-detail-overlay .material-detail-options-sheet { overflow: hidden; }
.material-detail-overlay .material-option-list { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.material-detail-overlay .material-option-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #252529; font-size: 15px; line-height: 22px; }
.material-detail-overlay .material-option-row:has(input:checked) { border-color: #111113; }
.material-detail-overlay .material-option-row > span { min-width: 0; overflow-wrap: anywhere; }
.material-detail-overlay .material-option-row input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.material-detail-overlay .material-option-check { flex: 0 0 18px; width: 18px; height: 18px; color: transparent; }
.material-detail-overlay .material-option-row input:checked + .material-option-check { color: #111113; }
.material-detail-overlay .material-option-row:has(input:focus-visible) { outline: 2px solid #252529; outline-offset: 2px; }
.material-detail-overlay .material-custom-field { display: block; margin: 0 0 12px; padding: 0; }
.material-detail-overlay .material-custom-field > span { display: block; margin-bottom: 8px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.material-detail-overlay .material-custom-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #E4E4EA; border-radius: 10px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; line-height: 22px; }
.material-detail-overlay .material-detail-number-trigger { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 72px; min-height: 44px; padding: 8px 10px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; font-variant-numeric: tabular-nums; }
.material-detail-overlay .material-detail-number-trigger svg { flex: 0 0 16px; width: 16px; height: 16px; color: #92929B; }
.material-detail-overlay .material-detail-number-trigger [data-number-value] { min-width: 0; overflow-wrap: anywhere; }
.material-detail-overlay .material-detail-row { gap: 12px; min-width: 0; min-height: 64px; padding: 12px 0; background: transparent; color: #252529; font-size: 15px; font-weight: 400; line-height: 22px; }
.material-detail-overlay .material-detail-label { flex: 0 0 72px; color: #6E6E78; font-size: 15px; line-height: 22px; }
.material-detail-overlay .material-detail-value { flex: 1; min-width: 0; margin: 0; color: #252529; font-size: 15px; font-weight: 400; line-height: 22px; }
.material-detail-overlay .material-detail-chevron { flex: 0 0 16px; width: 16px; height: 16px; color: #92929B; }
.material-detail-overlay .material-detail-sheet-error,
.material-detail-overlay .material-detail-number-error { margin: 8px 0 0; color: #C4473A; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.material-detail-overlay .material-detail-number-sheet > * { flex-shrink: 0; }
.material-detail-overlay .material-detail-number-display { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 12px; padding: 12px 16px; border: 1px solid #E5E7EA; border-radius: 12px; background: #F5F5F7; }
.material-detail-overlay #material-detail-number-input { flex: 0 1 220px; width: 220px; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #252529; font: inherit; font-size: 32px; font-weight: 600; line-height: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.material-detail-overlay #material-detail-number-input::selection { background: #DADAE0; color: #252529; }
.material-detail-overlay #material-detail-number-input[aria-invalid="true"] { color: #C4473A; }
.material-detail-overlay .material-detail-number-display:focus-within { border-color: #252529; }
.material-detail-overlay .material-detail-number-display > span { color: #6E6E78; font-size: 13px; line-height: 20px; }
.material-detail-overlay .material-detail-number-hint { margin: 8px 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; text-align: center; }
.material-detail-overlay .material-detail-number-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.material-detail-overlay .material-detail-number-keypad button { display: grid; place-items: center; min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 10px; background: #F5F5F7; color: #252529; font: inherit; font-size: 20px; font-weight: 500; line-height: 26px; touch-action: manipulation; }
.material-detail-overlay .material-detail-number-keypad svg { width: 20px; height: 20px; }
.material-detail-overlay .material-detail-sheet-actions,
.recipe-library-modal .recipe-library-modal-actions { display: flex; flex-shrink: 0; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.material-detail-overlay .material-detail-sheet-actions button,
.recipe-library-modal .recipe-library-modal-actions button { min-width: 0; height: 48px; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.material-detail-overlay .material-detail-sheet-actions [data-material-sheet-cancel],
.recipe-library-modal .recipe-library-modal-cancel { flex: 0 0 104px; }
.material-detail-overlay .material-detail-sheet-actions button:last-child,
.recipe-library-modal .recipe-library-modal-actions .recipe-library-modal-confirm { flex: 1; border: 0; background: #111113; color: #FFFFFF; }
.recipe-library-modal .recipe-library-modal-actions .recipe-library-modal-confirm:disabled { background: #D4D4D8; color: #6E6E78; cursor: default; }
.material-detail-overlay .material-detail-number-actions { display: grid; grid-template-columns: 80px 64px minmax(0, 1fr); gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.material-detail-overlay .material-detail-number-actions button { min-width: 0; height: 48px; margin: 0; padding: 0 10px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.material-detail-overlay .material-detail-number-actions button:nth-child(2) { border: 0; background: transparent; color: #6E6E78; font-weight: 400; }
.material-detail-overlay .material-detail-number-actions button:last-child { border: 0; background: #111113; color: #FFFFFF; }

.recipe-library-editor .recipe-library-card { margin: 0; padding: 0 16px; overflow: hidden; border-radius: 16px; background: #FFFFFF; }
.recipe-library-editor .recipe-library-name-field { display: flex; align-items: center; gap: 12px; min-height: 64px; margin-bottom: 12px; padding: 12px 16px; }
.recipe-library-editor .recipe-library-name-field label { flex: 0 0 72px; color: #6E6E78; font-size: 15px; font-weight: 400; line-height: 22px; }
.recipe-library-editor .recipe-library-name-control { flex: 1; min-width: 0; }
.recipe-library-editor .recipe-library-name-control input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #252529; font: inherit; font-size: 15px; line-height: 22px; text-align: right; }
.recipe-library-editor .recipe-library-name-control input:focus { box-shadow: 0 1px #252529; }
.recipe-library-editor #recipe-library-name-error { margin-top: 4px; color: #C4473A; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.recipe-library-editor #recipe-library-name-error:empty { display: none; }
.recipe-library-editor .recipe-library-section { margin: 0 0 12px; }
.recipe-library-editor .recipe-library-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; }
.recipe-library-editor .recipe-library-section-heading h2 { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.recipe-library-editor .recipe-library-section-count { color: #6E6E78; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.recipe-library-editor .recipe-library-ingredient-row { min-width: 0; padding: 16px 0; border-bottom: 1px solid #ECECEF; }
.recipe-library-editor .recipe-library-ingredient-row:last-child { border-bottom: 0; }
.recipe-library-editor .dish-detail-ingredient-list { padding: 0; }
.recipe-library-editor .recipe-library-ingredient-row.is-main { display: block; }
.recipe-library-editor .recipe-library-ingredient-name { display: block; min-width: 0; padding: 0; overflow: visible; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.recipe-library-editor .recipe-library-ingredient-controls > * + * { margin-left: 0; }
.recipe-library-editor .is-main .recipe-library-ingredient-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; }
.recipe-library-editor .recipe-library-control { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px; min-width: 0; height: auto; min-height: 44px; margin: 0; padding: 8px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; color: #252529; font: inherit; line-height: 22px; white-space: normal; }
.recipe-library-editor .recipe-library-control-label { color: #6E6E78; font-size: 13px; font-weight: 400; line-height: 20px; }
.recipe-library-editor .recipe-library-control-value { min-width: 0; max-width: 100%; color: #252529; font-size: 16px; font-weight: 500; line-height: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.recipe-library-editor .recipe-library-control-unit { min-width: 0; color: #6E6E78; font-size: 13px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
.recipe-library-editor .recipe-library-delete { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #92929B; }
.recipe-library-editor .recipe-library-delete svg { width: 18px; height: 18px; }
.recipe-library-editor .recipe-library-ingredient-row.is-seasoning { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.recipe-library-editor .is-seasoning .recipe-library-ingredient-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.recipe-library-editor .is-seasoning .recipe-library-control { flex: 0 1 88px; width: 88px; min-width: 0; }
.recipe-library-editor .recipe-library-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 12px 0 16px; padding: 12px 16px; border: 0; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.recipe-library-editor .recipe-library-add svg { width: 18px; height: 18px; }
.recipe-library-editor .recipe-library-empty { margin: 0; padding: 24px 0; color: #6E6E78; font-size: 13px; line-height: 20px; text-align: center; }
.recipe-library-modal .rc-sheet-title { margin-bottom: 12px; }
.recipe-library-modal .rc-keypad-display-row { gap: 6px; margin: 0 0 8px; padding: 12px 16px; border: 1px solid #E5E7EA; border-radius: 12px; background: #F5F5F7; }
.recipe-library-modal .rc-keypad-val { min-width: 0; max-width: 100%; color: #252529; font-size: 32px; font-weight: 600; line-height: 40px; font-variant-numeric: tabular-nums; }
.recipe-library-modal .rc-keypad-unit { color: #6E6E78; font-size: 13px; font-weight: 400; line-height: 20px; }
.recipe-library-modal .rc-keypad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recipe-library-modal .rc-key { min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 10px; background: #F5F5F7; color: #252529; font: inherit; font-size: 20px; font-weight: 500; line-height: 26px; }
.recipe-library-modal .rc-keypad-error,
.recipe-library-modal .rc-add-ing-error { margin: 8px 0; color: #C4473A; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.recipe-library-modal .rc-sheet-tip,
.recipe-library-modal .rc-add-ing-tip,
.recipe-library-modal .rc-sheet-empty { margin: 12px 0; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.recipe-library-modal .rc-quick-pill { height: 44px; min-height: 44px; padding: 0 8px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; color: #252529; font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; }
.recipe-library-modal .rc-material-picker-list { min-height: 0; max-height: 52dvh; overflow-y: auto; }
.rc-material-picker-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.rc-material-picker-header .rc-sheet-title {
  margin: 0;
  text-align: left;
}
.rc-material-picker-new {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.rc-material-picker-search {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-inset);
  color: var(--text-secondary);
}
.rc-material-picker-search:focus-within {
  border-color: var(--text-primary);
}
.rc-material-picker-search svg {
  flex: none;
}
.rc-material-picker-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.rc-material-name-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 0;
  overscroll-behavior: contain;
}
.recipe-library-modal .rc-material-name-list .h5ui-empty__action:active {
  background: var(--obsidian-black);
}
.rc-material-name-row {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-inset);
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.rc-material-name-row:active {
  background: var(--control-bg);
}
.rc-material-name-row.is-selected {
  border-color: var(--obsidian-black);
  background: var(--obsidian-black);
  color: var(--text-white);
}
.recipe-library-modal .rc-material-name-row.is-selected:active {
  background: var(--obsidian-black);
}
.rc-material-name-row:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.recipe-library-modal .stock-choice-row { min-height: 52px; padding: 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #252529; font-size: 15px; font-weight: 400; line-height: 22px; }
.recipe-library-modal .stock-choice-row.is-selected { border-color: #111113; background: #F7F7F9; }
.recipe-library-modal .stock-choice-row strong { color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
.recipe-library-modal .stock-choice-row small { color: #6E6E78; font-size: 13px; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }
.recipe-library-modal .stock-choice-row > b { color: #111113; }
.recipe-library-modal .rc-add-ing-field { min-height: 64px; gap: 8px; padding: 12px 0; border-bottom: 1px solid #ECECEF; background: transparent; color: #252529; font-size: 15px; line-height: 22px; }
.recipe-library-modal .rc-add-ing-field-label { color: #6E6E78; font-size: 15px; line-height: 22px; }
.recipe-library-modal .rc-add-ing-field-value { min-width: 0; color: #252529; font-size: 15px; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
.recipe-library-modal.recipe-library-add-modal .rc-add-ing-quantity-row input { min-width: 0; height: 44px; font-size: 20px; font-weight: 500; line-height: 26px; font-variant-numeric: tabular-nums; }
.recipe-library-modal.recipe-library-add-modal .recipe-library-add-weight { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 96px; min-height: 44px; padding: 8px 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; color: #252529; font: inherit; font-size: 16px; font-weight: 500; line-height: 22px; font-variant-numeric: tabular-nums; }
.recipe-library-modal.recipe-library-add-modal .recipe-library-add-weight svg { width: 16px; height: 16px; color: #92929B; }
.recipe-library-add-modal .recipe-library-quantity-label { margin-right: auto; color: #6E6E78; font-size: 15px; line-height: 22px; }
.recipe-library-add-modal input[type="text"] { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #E4E4EA; border-radius: 10px; outline: 0; background: #F7F7F9; color: #252529; font: inherit; font-size: 15px; line-height: 22px; }

.material-detail-page button,
.material-detail-overlay button,
.recipe-library-editor button,
.recipe-library-modal button { cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, color 140ms ease; }
.material-detail-page button:not(.material-detail-switch):active:not(:disabled),
.material-detail-overlay button:active:not(:disabled),
.recipe-library-editor button:active:not(:disabled),
.recipe-library-modal button:active:not(:disabled) { transform: none; background: #E9E9EE; }
.material-detail-page .material-detail-save:active:not(:disabled),
.recipe-library-editor .recipe-library-save:active:not(:disabled),
.material-detail-overlay .material-detail-sheet-actions button:last-child:active:not(:disabled),
.material-detail-overlay .material-detail-number-actions button:last-child:active:not(:disabled),
.recipe-library-modal .recipe-library-modal-confirm:active:not(:disabled) { background: #343438; }
.material-detail-page button:focus-visible,
.material-detail-overlay button:focus-visible,
.recipe-library-editor button:focus-visible,
.recipe-library-modal button:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.material-detail-overlay button:disabled,
.recipe-library-modal button:disabled { opacity: 0.45; cursor: default; }
.material-detail-page [hidden],
.material-detail-overlay [hidden],
.recipe-library-editor [hidden],
.recipe-library-modal [hidden] { display: none; }

@media (max-width: 360px) {
  .material-detail-overlay .material-detail-number-actions { grid-template-columns: 72px 56px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .material-detail-overlay .material-detail-sheet,
  .recipe-library-modal .recipe-library-sheet { animation: none; }
  .material-detail-page .material-detail-switch span,
  .material-detail-page button,
  .material-detail-overlay button,
  .recipe-library-editor button,
  .recipe-library-modal button { transition: none; }
}

/* 六类品项详情与关联：仅新版目录入口 */
.dish-editor.catalog-item-editor {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #F5F5F7;
  color: #252529;
}

.catalog-item-editor .dish-editor-header,
.recipe-association-page .recipe-association-header,
.dish-association-page .dish-association-header {
  position: relative;
  flex-shrink: 0;
  height: 50px;
  padding: 0 52px;
  background: #F5F5F7;
}

.catalog-item-editor .dish-editor-header h1,
.recipe-association-page .recipe-association-header h1,
.dish-association-page .dish-association-header h1 {
  min-width: 0;
  margin: 0;
  color: #252529;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.catalog-item-editor .dish-editor-back,
.recipe-association-page .recipe-association-header button,
.dish-association-page .dish-association-header button {
  position: absolute;
  top: 3px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252529;
  transform: none;
}

.catalog-item-editor .dish-editor-back svg,
.recipe-association-page .recipe-association-header button svg,
.dish-association-page .dish-association-header button svg {
  width: 20px;
  height: 20px;
}

.catalog-item-editor .dish-editor-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 12px 16px 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.catalog-item-editor .dish-editor-body > * { flex-shrink: 0; }
.catalog-item-editor .dish-editor-section-title { margin: 0; color: #6E6E78; font-size: 13px; font-weight: 500; line-height: 20px; }

.catalog-item-editor .dish-editor-fields,
.catalog-item-editor .dish-editor-association-card {
  padding: 0 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #FFFFFF;
}

.catalog-item-editor .dish-editor-field {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  background: transparent;
  color: #252529;
  font-size: 15px;
  line-height: 22px;
}

.catalog-item-editor .dish-editor-field::after,
.catalog-item-editor .dish-editor-combo::after { content: none; }
.catalog-item-editor .dish-editor-fields .dish-editor-field:last-child,
.catalog-item-editor .dish-editor-association-card .dish-editor-field { border-bottom: 0; }
.catalog-item-editor .dish-editor-field > span,
.catalog-item-editor .dish-editor-field > label { color: #6E6E78; font-size: 15px; font-weight: 400; line-height: 22px; }
.catalog-item-editor .dish-editor-field strong { color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; text-align: right; overflow-wrap: anywhere; }
.catalog-item-editor .dish-editor-field > svg { width: 16px; height: 16px; color: #92929B; }
.catalog-item-editor .dish-editor-sales-field:not(button) strong { grid-column: 2 / -1; }
.catalog-item-editor .dish-editor-name-wrap { grid-column: 2 / 4; min-width: 0; }
.catalog-item-editor .dish-editor-name-wrap input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #252529; font: inherit; font-size: 15px; line-height: 22px; text-align: right; }
.catalog-item-editor .dish-editor-name-field:focus-within { box-shadow: inset 0 -1px #252529; }
.catalog-item-editor .dish-editor-name-wrap input.is-invalid,
.catalog-item-editor .dish-editor-name-wrap input[aria-invalid="true"] { color: #C4473A; }
.catalog-item-editor .dish-editor-name-error { margin-top: 4px; color: #C4473A; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.catalog-item-editor .dish-editor-name-error:empty { display: none; }
.catalog-item-editor .dish-editor-recipe > div { grid-column: 2; min-width: 0; text-align: right; }
.catalog-item-editor .dish-editor-recipe small { margin-top: 4px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.catalog-item-editor .dish-editor-association-warning { display: block; margin: 0 0 12px; color: #8B6B49; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }

.catalog-item-editor .dish-editor-combo {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: #FFFFFF;
}

.catalog-item-editor .dish-editor-component {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
}

.catalog-item-editor .dish-editor-component:last-of-type { border-bottom: 0; }
.catalog-item-editor .dish-editor-component-name { display: block; min-width: 0; margin: 0; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.catalog-item-editor .dish-editor-component-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 116px; }
.catalog-item-editor .dish-editor-component-actions > span { color: #6E6E78; font-size: 13px; line-height: 20px; }
.catalog-item-editor .dish-editor-component-label { display: none; }
.catalog-item-editor .dish-editor-component-quantity { display: flex; flex: 0 0 64px; align-items: center; justify-content: center; gap: 4px; width: 64px; height: 44px; padding: 0 6px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F7F7F9; color: #252529; font: inherit; font-size: 16px; font-weight: 400; line-height: 22px; font-variant-numeric: tabular-nums; }
.catalog-item-editor .dish-editor-component-quantity > span { color: #6E6E78; font-size: 13px; line-height: 20px; }
.catalog-item-editor .dish-editor-component-remove { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #92929B; }
.catalog-item-editor .dish-editor-component-remove svg { width: 18px; height: 18px; }
.catalog-item-editor .dish-editor-add-component { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.catalog-item-editor .dish-editor-add-component svg { width: 18px; height: 18px; }

.catalog-item-editor .dish-editor-sale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 16px;
  border-radius: 16px;
  background: #FFFFFF;
}

.catalog-item-editor .dish-editor-sale > div { flex: 1; min-width: 0; }
.catalog-item-editor .dish-editor-sale strong { color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; }
.catalog-item-editor .dish-editor-sale small { margin-top: 4px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.catalog-item-editor .dish-editor-switch { flex: 0 0 49px; width: 49px; height: 28px; padding: 3px; border: 0; border-radius: 999px; background: #D4D4D8; }
.catalog-item-editor .dish-editor-switch.is-on { background: #111113; }
.catalog-item-editor .dish-editor-switch span { width: 22px; height: 22px; transform: translateX(0); transition: transform 140ms ease; }
.catalog-item-editor .dish-editor-switch.is-on span { transform: translateX(21px); }
.catalog-item-editor .dish-editor-switch:focus-visible span { transition: none; }

.catalog-item-editor .dish-editor-footer,
.recipe-association-page .recipe-association-footer,
.dish-association-page .dish-association-footer {
  flex-shrink: 0;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ECECEF;
  background: #F5F5F7;
}

.catalog-item-editor .dish-editor-save,
.recipe-association-page .recipe-association-footer button,
.dish-association-page .dish-association-footer button { width: 100%; height: 48px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: #111113; color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.catalog-item-editor .dish-editor-save:disabled { background: #D4D4D8; opacity: 1; cursor: default; }

.catalog-item-editor-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.catalog-item-editor-overlay .dish-editor-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  min-height: 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #FFFFFF;
  color: #252529;
  box-shadow: none;
  animation: slideUpModal 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.catalog-item-editor-overlay .dish-editor-sheet-handle { flex-shrink: 0; margin-bottom: 12px; }
.catalog-item-editor-overlay .dish-editor-sheet-title { flex-shrink: 0; margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 24px; }
.catalog-item-editor-overlay .dish-editor-sheet-description { flex-shrink: 0; margin: 0 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.catalog-item-editor-overlay .dish-editor-type-options { flex: 1; min-height: 0; gap: 8px; overflow-y: auto; overscroll-behavior-y: contain; }
.catalog-item-editor-overlay .dish-editor-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid #E4E4EA; border-radius: 10px; background: #FFFFFF; color: #252529; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; }
.catalog-item-editor-overlay .dish-editor-option.selected { border-color: #111113; font-weight: 400; }
.catalog-item-editor-overlay .dish-editor-option-check { display: block; flex: 0 0 22px; width: 22px; height: 22px; padding: 2px; border: 1px solid #C7CCD0; border-radius: 8px; background: #FFFFFF; color: transparent; }
.catalog-item-editor-overlay .dish-editor-option.selected .dish-editor-option-check { border-color: #111113; color: #111113; }
.catalog-item-editor-overlay .dish-editor-sheet-actions { display: flex; flex-shrink: 0; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.catalog-item-editor-overlay .dish-editor-sheet-actions button { min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.catalog-item-editor-overlay .dish-editor-sheet-actions [data-cancel] { flex: 0 0 104px; }
.catalog-item-editor-overlay .dish-editor-sheet-actions [data-confirm] { flex: 1; border: 0; background: #111113; color: #FFFFFF; }

.catalog-item-editor-overlay .dish-editor-quantity-sheet { overflow-y: auto; overscroll-behavior-y: contain; }
.catalog-item-editor-overlay .dish-editor-quantity-sheet > * { flex-shrink: 0; }
.catalog-item-editor-overlay .dish-editor-quantity-header h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 24px; }
.catalog-item-editor-overlay .dish-editor-quantity-name { margin: 8px 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.catalog-item-editor-overlay .dish-editor-quantity-display { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 12px 16px; border: 1px solid #E5E7EA; border-radius: 12px; background: #F5F5F7; color: #252529; font-size: 32px; font-weight: 600; line-height: 40px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.catalog-item-editor-overlay .dish-editor-quantity-display input { flex: 0 1 220px; width: 220px; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #252529; font: inherit; font-size: 32px; font-weight: 600; line-height: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.catalog-item-editor-overlay .dish-editor-quantity-display input::selection { background: #DADAE0; color: #252529; }
.catalog-item-editor-overlay .dish-editor-quantity-display input[aria-invalid="true"] { color: #C4473A; }
.catalog-item-editor-overlay .dish-editor-quantity-display:focus-within { border-color: #252529; }
.catalog-item-editor-overlay .dish-editor-quantity-display > span { color: #6E6E78; font-size: 13px; font-weight: 400; line-height: 20px; }
.catalog-item-editor-overlay .dish-editor-quantity-hint { margin: 8px 0 12px; color: #6E6E78; font-size: 13px; line-height: 20px; text-align: center; }
.catalog-item-editor-overlay .dish-editor-quantity-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.catalog-item-editor-overlay .dish-editor-quantity-keypad button { display: grid; place-items: center; min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 10px; background: #F5F5F7; color: #252529; font: inherit; font-size: 20px; font-weight: 500; line-height: 26px; touch-action: manipulation; }
.catalog-item-editor-overlay .dish-editor-quantity-keypad svg { width: 20px; height: 20px; }
.catalog-item-editor-overlay .dish-editor-quantity-actions { display: grid; grid-template-columns: 80px 64px minmax(0, 1fr); gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ECECEF; }
.catalog-item-editor-overlay .dish-editor-quantity-actions button { min-width: 0; height: 48px; padding: 0 10px; border: 1px solid #E4E4EA; border-radius: 10px; background: #F5F5F7; color: #494950; font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; }
.catalog-item-editor-overlay .dish-editor-quantity-actions [data-quantity-key="clear"] { border: 0; background: transparent; color: #6E6E78; font-weight: 400; }
.catalog-item-editor-overlay .dish-editor-quantity-actions [data-quantity-action="confirm"] { border: 0; background: #111113; color: #FFFFFF; }
.catalog-item-editor-overlay .dish-editor-quantity-actions [data-quantity-action="confirm"]:disabled { background: #D4D4D8; opacity: 1; }

.recipe-association-page,
.dish-association-page { min-width: 0; background: #F5F5F7; color: #252529; }
.recipe-association-page .recipe-association-body,
.dish-association-page .dish-association-body { flex: 1; min-width: 0; min-height: 0; padding: 12px 16px 24px; overflow-y: auto; overscroll-behavior-y: contain; }
.recipe-association-page .recipe-association-question,
.dish-association-page .dish-association-question { margin: 0 0 12px; color: #494950; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recipe-association-page .recipe-association-tabs button { min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid #E5E7EA; border-radius: 10px; background: #FFFFFF; color: #494950; font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-tabs button.is-active { border-color: #111113; background: #111113; color: #FFFFFF; }
.recipe-association-page .recipe-association-search,
.dish-association-page .dish-association-search { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 0; padding: 0 12px; border: 1px solid #E5E7EA; border-radius: 12px; background: #FFFFFF; }
.recipe-association-page .recipe-association-search input,
.dish-association-page .dish-association-search input { flex: 1; width: auto; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: #252529; font: inherit; font-size: 15px; line-height: 22px; }
.recipe-association-page .recipe-association-search-icon,
.dish-association-page .dish-association-search-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #92929B; }
.recipe-association-page .recipe-association-search span,
.dish-association-page .dish-association-search span { flex-shrink: 0; color: #6E6E78; font-size: 13px; line-height: 20px; }
.recipe-association-page .recipe-association-search:focus-within,
.dish-association-page .dish-association-search:focus-within { border-color: #252529; }
.recipe-association-page .recipe-association-list,
.dish-association-page .dish-association-list { display: flex; flex-direction: column; gap: 8px; padding: 0; border-radius: 0; background: transparent; }
.recipe-association-page .recipe-association-row,
.dish-association-page .dish-association-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border: 1px solid #E5E7EA; border-radius: 16px; background: #FFFFFF; }
.recipe-association-page .recipe-association-info,
.dish-association-page .dish-association-info { flex: 1; min-width: 0; padding: 16px 0; color: #252529; }
.recipe-association-page .recipe-association-info strong,
.dish-association-page .dish-association-info strong { display: block; color: #252529; font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-info small,
.dish-association-page .dish-association-info small { display: block; margin-top: 4px; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-info em { display: block; margin-top: 4px; color: #8B6B49; font-size: 13px; line-height: 20px; font-style: normal; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-info em.is-copy { color: #494950; }
.recipe-association-page .recipe-association-check { position: relative; display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: transparent; }
.recipe-association-page .recipe-association-check::before { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border: 1px solid #C7CCD0; border-radius: 8px; background: #FFFFFF; content: ''; transform: translate(-50%, -50%); }
.recipe-association-page .recipe-association-check.is-checked { border: 0; background: transparent; color: #111113; }
.recipe-association-page .recipe-association-check.is-checked::before { border-color: #111113; }
.recipe-association-page .recipe-association-check svg { position: relative; width: 14px; height: 14px; }
.dish-association-page .dish-association-check { position: relative; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; padding: 0; -webkit-appearance: none; appearance: none; border: 1px solid #C7CCD0; border-radius: 8px; background: #FFFFFF; cursor: pointer; }
.dish-association-page .dish-association-check::after { position: absolute; inset: auto; top: 50%; left: 50%; width: 6px; height: 10px; border: solid #111113; border-width: 0 2px 2px 0; background: transparent; content: ''; opacity: 0; transform: translate(-50%, -60%) rotate(45deg); }
.dish-association-page .dish-association-check:checked { border-color: #111113; background: #FFFFFF; }
.dish-association-page .dish-association-check:checked::after { opacity: 1; }
.recipe-association-page .recipe-association-note,
.dish-association-page .dish-association-note { margin: 12px 2px 0; color: #6E6E78; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.recipe-association-page .recipe-association-empty,
.dish-association-page .dish-association-empty { padding: 24px 12px; border-radius: 16px; background: #FFFFFF; color: #6E6E78; font-size: 13px; line-height: 20px; text-align: center; }
.recipe-association-page .recipe-association-footer small,
.dish-association-page .dish-association-footer small { margin-bottom: 8px; color: #6E6E78; font-size: 13px; line-height: 20px; }
.recipe-association-page .recipe-association-footer button,
.dish-association-page .dish-association-footer button { height: auto; min-height: 48px; padding: 12px 16px; white-space: normal; overflow-wrap: anywhere; }

.catalog-item-editor button,
.catalog-item-editor-overlay button,
.recipe-association-page button,
.dish-association-page button { cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, color 140ms ease; }
.catalog-item-editor button:not(.dish-editor-switch):active:not(:disabled),
.catalog-item-editor-overlay button:active:not(:disabled),
.recipe-association-page button:active:not(:disabled) { transform: none; background: #E9E9EE; }
.catalog-item-editor .dish-editor-save:active:not(:disabled),
.catalog-item-editor-overlay .dish-editor-sheet-actions [data-confirm]:active:not(:disabled),
.catalog-item-editor-overlay [data-quantity-action="confirm"]:active:not(:disabled),
.recipe-association-page .recipe-association-footer button:active:not(:disabled),
.dish-association-page .dish-association-footer button:active:not(:disabled) { background: #343438; }
.recipe-association-page .recipe-association-tabs button.is-active:active:not(:disabled) { background: #343438; }
.catalog-item-editor button:focus-visible,
.catalog-item-editor-overlay button:focus-visible,
.recipe-association-page button:focus-visible,
.dish-association-page button:focus-visible,
.dish-association-page input:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }
.catalog-item-editor-overlay button:disabled { opacity: 0.45; cursor: default; }

.recipe-top-nav .catalog-preview-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 6px; border: 1px solid #E5E7EA; border-radius: 6px; background: transparent; color: #6E6E78; font-size: 12px; font-weight: 400; line-height: 18px; text-decoration: none; vertical-align: middle; }
.recipe-top-nav .catalog-preview-badge:focus-visible { outline: 2px solid #252529; outline-offset: 2px; }

@media (max-width: 360px) {
  .catalog-item-editor .dish-editor-field { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; }
  .catalog-item-editor-overlay .dish-editor-quantity-actions { grid-template-columns: 72px 56px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-item-editor-overlay .dish-editor-sheet { animation: none; }
  .catalog-item-editor .dish-editor-switch span,
  .catalog-item-editor button,
  .catalog-item-editor-overlay button,
  .recipe-association-page button,
  .dish-association-page button { transition: none; }
}

.recipe-library-name-card { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.recipe-library-name-card label { flex-shrink: 0; font-size: 15px; font-weight: 600; }
.recipe-library-name-card > div { flex: 1; min-width: 0; }
.recipe-library-name-card input { width: 100%; padding: 6px 0; border: 0; outline: 0; background: transparent; font: inherit; }
.recipe-library-name-card input[aria-invalid="true"], #recipe-library-name-error { color: #d73535; }
#recipe-library-name-error { display: block; font-size: 12px; }
#recipe-library-name-error:empty { display: none; }
.recipe-library-save-wrap { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: #f5f6f8; }
.recipe-library-save:disabled { opacity: .6; }

/* 对应检查：独立页面 */
.correspondence-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #f4f4f7;
  color: #161619;
}
.correspondence-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  box-sizing: border-box;
}
.correspondence-header > strong {
  flex: 1;
  font-size: 18px;
  font-weight: 650;
  text-align: center;
}
.correspondence-back {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  font: 500 27px/1 var(--font-family);
  place-items: center;
}
.correspondence-header-spacer { width: 34px; height: 34px; }
.correspondence-scroll {
  flex: 1;
  min-height: 0;
  padding: 4px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.correspondence-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 126px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-sizing: border-box;
}
.correspondence-overview-copy { min-width: 0; }
.correspondence-overview-copy > span {
  display: block;
  color: #8a8a91;
  font-size: 13px;
}
.correspondence-overview-copy > strong {
  display: inline-block;
  margin-top: 4px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -1.5px;
}
.correspondence-overview-copy > small {
  display: inline-block;
  margin-left: 10px;
  color: #a35c12;
  font-size: 13px;
}
.correspondence-overview-count {
  display: flex;
  flex: 0 0 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #f1f1f4;
}
.correspondence-overview-count b { font-size: 24px; line-height: 1; }
.correspondence-overview-count span { margin-top: 5px; color: #77777f; font-size: 12px; }
.correspondence-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.correspondence-list-head > strong { font-size: 16px; }
.correspondence-list-head > span { color: #77777f; font-size: 12px; }
.correspondence-search {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #e5e5e9;
  border-radius: 13px;
  background: #fff;
  box-sizing: border-box;
}
.correspondence-search > span { color: #9b9ba3; font-size: 20px; line-height: 1; }
.correspondence-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #161619;
  font: inherit;
}
.correspondence-search input::placeholder { color: #a8a8af; }
.correspondence-results { margin-top: 12px; }
.correspondence-list {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.correspondence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 82px;
  padding: 12px 14px;
  border-bottom: 1px solid #eeeeF2;
  box-sizing: border-box;
  outline: 0;
}
.correspondence-row:last-child { border-bottom: 0; }
.correspondence-row:focus-visible { background: #fafafa; }
.correspondence-row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.correspondence-row-main > strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.correspondence-row-main > span {
  margin-top: 3px;
  overflow: hidden;
  color: #77777f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.correspondence-row-main > small {
  margin-top: 4px;
  color: #a35c12;
  font-size: 12px;
}
.correspondence-row-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}
.correspondence-type-btn,
.correspondence-view-btn {
  width: 64px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: center;
}
.correspondence-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #111113;
  background: #111113;
  color: #fff;
  cursor: pointer;
}
.correspondence-type-btn.is-goods {
  border-color: #dedee3;
  background: #fff;
  color: #66666d;
}
.correspondence-type-chevron {
  font-size: 10px;
  line-height: 1;
  transform: translateY(-1px);
}
.correspondence-view-btn {
  border: 1px solid #171719;
  background: #fff;
  color: #171719;
  cursor: pointer;
}
.correspondence-view-btn:active,
.correspondence-row:active { background: #f7f7f9; }
.correspondence-type-picker-mask {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}
.correspondence-type-picker {
  width: min(100%, 480px);
  max-height: min(88vh, 700px);
  max-height: min(88dvh, 700px);
  overflow-y: auto;
  padding: 10px 22px calc(18px + var(--safe-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #f2f2f5;
  box-sizing: border-box;
  animation: slideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.correspondence-type-picker-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d7d7dc;
}
.correspondence-type-picker-title {
  margin-bottom: 14px;
  color: #111113;
  font-size: 18px;
  font-weight: 800;
}
.correspondence-type-picker-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.correspondence-type-picker-option {
  width: 100%;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid #d7d7dc;
  border-radius: 13px;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.correspondence-type-picker-option.is-selected {
  border: 1.5px solid #111113;
  font-weight: 700;
}
.correspondence-type-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 18px;
}
.correspondence-type-picker-cancel,
.correspondence-type-picker-confirm {
  height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.correspondence-type-picker-cancel {
  border: 1px solid #111113;
  background: #fff;
  color: #111113;
}
.correspondence-type-picker-confirm {
  border: 1px solid #111113;
  background: #111113;
  color: #fff;
}
.correspondence-type-picker-confirm:disabled {
  opacity: .55;
  cursor: wait;
}
.correspondence-more {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #77777f;
  font: inherit;
  font-size: 13px;
}
.correspondence-hint {
  margin: 16px 2px 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: #fff7ec;
  color: #86633a;
  font-size: 12px;
  line-height: 1.55;
}
.correspondence-hint b { margin-right: 7px; color: #4a3320; }
.correspondence-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-radius: 16px;
  background: #fff;
  color: #85858d;
  text-align: center;
}
.correspondence-empty strong {
  color: #4f4f55;
  font-size: 16px;
  font-weight: 600;
}
.correspondence-empty span { margin-top: 7px; font-size: 13px; }
.correspondence-empty button {
  min-width: 112px;
  height: 40px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: #171719;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.correspondence-skeleton-card,
.correspondence-skeleton-row {
  position: relative;
  overflow: hidden;
  background: #e8e8ec;
}
.correspondence-skeleton-card::after,
.correspondence-skeleton-row::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  content: "";
  transform: translateX(-100%);
  animation: correspondence-skeleton 1.2s infinite;
}
.correspondence-skeleton-row {
  height: 74px;
  margin-top: 10px;
  border-radius: 14px;
}
@keyframes correspondence-skeleton {
  to { transform: translateX(100%); }
}

/* Merged from origin/codex/work-20261106: home, store and time UI only. */
.top-nav.home-top-nav {
  height: 84px;
  min-height: 84px;
  padding: 8px 16px;
  background: var(--page-bg);
}

.store-header-button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-card);
  color: var(--obsidian-black);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease-out;
}

.home-top-nav .store-header-button {
  width: 66.6667%;
}

.top-nav .store-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F0F0F3;
  color: var(--obsidian-black);
}

.top-nav .store-symbol svg {
  display: block;
  width: 20px;
  height: 20px;
}

.top-nav .store-heading {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.top-nav.home-top-nav .store-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.top-nav .store-caption {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.top-nav .store-name {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--obsidian-black);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-header-button:active {
  transform: scale(0.99);
}

.store-header-button:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
.store-header-button:hover {
    background: var(--surface-inset);
  }
}

/* ==========================================================================
   首页组件（对齐 fragment_board.xml & 02 设计稿）
   ========================================================================== */
/* 1. 问候白卡 */
.greeting-card {
  margin: 2px 0 0;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 12px 16px 12px 14px;
  display: flex;
  align-items: center;
  min-height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.025);
  cursor: pointer;
}

.greeting-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--achuan-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.greeting-avatar img,
.greeting-avatar .chef-avatar {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.greeting-avatar .chef-avatar {
  width: 38px;
  height: 44px;
}

.greeting-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.greeting-identity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.greeting-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--obsidian-black);
}

.greeting-role {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--obsidian-black);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.greeting-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dot-online);
}

.greeting-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.greeting-arrow {
  font-size: 20px;
  color: #C0C2C8;
  margin-left: 8px;
}

/* 2. 周日历横条 */
.home-week-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 16px 0 4px;
}

.home-week-range {
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.home-week-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.home-week-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--obsidian-black);
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease-out;
}

.home-week-nav svg {
  display: block;
  width: 16px;
  height: 16px;
}

.home-week-nav:disabled {
  color: #C4C4CC;
  cursor: default;
}

.home-week-nav:not(:disabled):active {
  background: rgba(17, 17, 19, 0.05);
  transform: scale(0.97);
}

.home-week-today {
  appearance: none;
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--obsidian-black);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.home-week-today.is-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.home-week-nav:focus-visible,
.home-week-today:focus-visible,
.date-chip:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

.home-date-strip {
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.date-chip {
  appearance: none;
  border: 0;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1px;
  min-height: 64px;
  border-radius: 12px;
  background: transparent;
  color: var(--obsidian-black);
  cursor: pointer;
  transition: transform 140ms ease-out;
}

.date-chip:not(.disabled):active {
  transform: scale(0.97);
}

.date-chip.active {
  background: transparent;
}

.date-chip .chip-week {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 16px;
  margin-bottom: 4px;
}

.date-chip.is-today .chip-week {
  color: var(--obsidian-black);
  font-weight: 500;
}

.date-chip .chip-day {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--obsidian-black);
}

.date-chip.active .chip-day {
  border-radius: 10px;
  background: var(--obsidian-black);
  color: #FFFFFF;
}

.date-chip .chip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
  margin-top: 4px;
}

.date-chip .chip-dot.hidden {
  opacity: 0;
}

.date-chip.disabled {
  cursor: default;
}

.date-chip.disabled .chip-week,
.date-chip.disabled .chip-day {
  color: #C4C4CC;
}

/* 3. 营业额 KPI 卡片（#111113 黑曜石卡） */
.kpi-card {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--kpi-card-bg);
  border-radius: 14px;
  padding: 16px 20px;
  color: #FFFFFF;
  min-height: 120px;
}

.kpi-card-button {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.kpi-card-button:active {
  opacity: 0.86;
}

.kpi-card-button:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 3px;
}

.kpi-badge {
  font-size: 13px;
  line-height: 20px;
  color: #E5E5EA;
}

.kpi-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
}

.kpi-card-title {
  font-weight: 500;
  color: #E5E5EA;
}

.kpi-card-date {
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #B5B5BF;
}

.kpi-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kpi-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.kpi-primary-row > :first-child {
  min-width: 0;
}

.kpi-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: #B5B5BF;
}

.kpi-card-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.kpi-amount {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: #FFFFFF;
}

.kpi-split {
  font-size: 13px;
  line-height: 20px;
  color: #D1D1D6;
}

.kpi-card-empty {
  justify-content: flex-start;
}

.kpi-empty-value {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #FFFFFF;
}

.kpi-empty-desc {
  font-size: 13px;
  line-height: 20px;
  color: #C7C7CC;
}

/* 4. 待办与已完成标题区 */
.section-header {
  margin: 20px 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.section-header .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--obsidian-black);
}

.section-header .count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.section-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-readonly .count {
  display: none;
}

.todo-status-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--surface-inset);
  color: var(--text-body);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.section-header-completed {
  margin-top: 20px;
}

/* 5. 待办与已完成白卡 */
.todo-card {
  margin: 0;
  background: var(--surface-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.todo-row {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  position: relative;
}

.todo-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 0;
  height: 1px;
  background-color: var(--divider-line);
}

.todo-icon-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F0F0F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.todo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.todo-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--obsidian-black);
}

.todo-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 20px;
}

.todo-subtitle.is-overdue,
.todo-meta-time.is-overdue {
  color: var(--todo-overdue);
}

.todo-row-overdue .todo-title,
.todo-row-overdue .todo-subtitle,
.todo-row-overdue .todo-meta-time {
  color: var(--todo-overdue);
}

.todo-row-future .todo-icon-tile {
  background: #F7F7F9;
}

.todo-row-future .todo-icon-tile svg {
  opacity: 0.6;
}

.todo-row-past:not(.todo-row-overdue) .todo-title {
  color: var(--text-tertiary);
}

.todo-action-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  flex-shrink: 0;
}

.todo-meta-time {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}

.todo-row-future .todo-action-zone .todo-meta-time {
  margin-top: 0;
  white-space: nowrap;
}

/* 胶囊处理按钮（对齐 bg_btn_action_black.xml） */
.btn-capsule-action {
  position: relative;
  z-index: 0;
  min-width: 56px;
  min-height: 44px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-capsule-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border-radius: inherit;
  background: var(--obsidian-black);
  pointer-events: none;
}

.btn-capsule-action:active::before {
  background: #2C2C2E;
}

.btn-capsule-action:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

/* 已完成行样式 */
.done-title {
  font-size: 15px;
  color: var(--done-text);
}

.done-subtitle {
  margin-top: 3px;
  font-size: 13px;
  color: var(--done-text);
  line-height: 20px;
  text-wrap: balance;
}

.done-time {
  font-size: 12px;
  color: var(--done-text);
}

.icon-check-green {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.todo-row-completed .todo-icon-tile {
  background: #F2F2F4;
}

.home-achuan-tip {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.home-tip-name {
  flex-shrink: 0;
  margin-right: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.home-tip-text {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.todo-empty {
  min-height: 92px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.todo-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.todo-empty-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
}

.store-info-sheet {
  padding: 6px 0 4px;
}

.store-info-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.store-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 0.5px solid var(--border-divider);
  color: var(--text-tertiary);
  font-size: 13px;
}

.store-info-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.store-info-hint {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--surface-inset);
  color: var(--text-muted);
  font-size: 11px;
}

/* 当前门店资料弹窗 */






.store-profile-sheet .store-info-sheet {
  padding: 0;
}

.store-profile-sheet .store-info-name {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.store-profile-fields {
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-inset);
}

.store-profile-sheet .store-info-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.store-profile-sheet .store-info-row strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
  overflow-wrap: anywhere;
}

.store-profile-sheet .store-info-hint {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.btn-secondary:disabled,
.btn-capsule-action:disabled {
  opacity: 0.5;
  cursor: default;
}

.time-wheel-col.is-dragging,
.time-wheel-col.is-dragging .time-wheel-item {
  cursor: grabbing;
}

/* ==========================================================================
   小屏、横屏与辅助功能
   ========================================================================== */
@media (max-width: 359px) {
.top-nav.home-top-nav {
    padding-left: 12px;
    padding-right: 12px;
  }

.store-header-button {
    padding-left: 12px;
    padding-right: 12px;
  }

.greeting-card {
    padding-left: 12px;
    padding-right: 12px;
  }

.home-date-strip {
    gap: 2px;
  }

.home-week-header {
    gap: 4px;
  }

.home-week-range {
    font-size: 12px;
  }

.date-chip {
    padding-left: 2px;
    padding-right: 2px;
  }

.kpi-card {
    padding-left: 16px;
    padding-right: 16px;
  }

.kpi-amount {
    font-size: 27px;
  }

.todo-row {
    padding-left: 12px;
    padding-right: 12px;
  }

.btn-capsule-action {
    min-width: 46px;
    padding: 0 10px;
  }
}

/* C-01 单选菜系与 C-03 营业时段 */
.cuisine-choice-sheet {
  padding: 10px 16px calc(20px + var(--safe-bottom));
  overflow: hidden;
}

.cuisine-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.cuisine-choice-title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--obsidian-black);
}

.cuisine-choice-sheet .modal-close-icon {
  font-size: 24px;
  line-height: 1;
  color: #8E8E93;
  cursor: pointer;
  padding: 2px 6px;
}

.cuisine-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cuisine-choice-option {
  width: 100%;
  min-height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid #D9D9DE;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--obsidian-black);
  font-family: inherit;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.cuisine-choice-option.is-selected {
  border: 2px solid var(--obsidian-black);
  padding: 0 19px;
  font-weight: 700;
}

.cuisine-choice-current {
  color: #8E8E93;
  font-size: 14px;
  font-weight: 400;
}

.cuisine-choice-error,
.time-slot-error {
  display: none;
  min-height: 18px;
  color: #D92D20;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.cuisine-choice-error.is-visible,
.time-slot-error.is-visible {
  display: block;
}

.cuisine-choice-actions,
.time-slot-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.cuisine-choice-actions button,
.time-slot-actions button {
  flex: 1;
  height: 50px;
  margin: 0;
}

.time-slot-sheet {
  padding: 10px 16px calc(22px + var(--safe-bottom));
}

.time-slot-title {
  margin: 4px 0 16px;
  color: var(--obsidian-black);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
}

.time-wheel-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  height: 132px;
  overflow: hidden;
  border-radius: 18px;
  background: #F7F7F8;
}

.time-wheel-panel::before,
.time-wheel-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40px;
  pointer-events: none;
}

.time-wheel-panel::before {
  top: 0;
  background: linear-gradient(#F7F7F8 20%, rgba(247, 247, 248, 0));
}

.time-wheel-panel::after {
  bottom: 0;
  background: linear-gradient(rgba(247, 247, 248, 0), #F7F7F8 80%);
}

.time-wheel-col {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 132px;
  padding: 44px 0;
  overflow-y: auto;
  box-sizing: border-box;
  scroll-snap-type: y mandatory;
  scroll-padding-block: 44px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.time-wheel-col::-webkit-scrollbar {
  display: none;
}

.time-wheel-item {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #A1A1A6;
  font-family: inherit;
  font-size: 19px;
  line-height: 44px;
  text-align: center;
  scroll-snap-align: center;
  cursor: pointer;
}

.time-wheel-item.is-current {
  color: var(--obsidian-black);
  font-size: 23px;
  font-weight: 800;
}

.time-wheel-separator {
  position: relative;
  z-index: 3;
  align-self: center;
  color: #8E8E93;
  font-size: 17px;
  text-align: center;
}

.time-slot-delete {
  display: block;
  margin: 8px auto 0;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #D92D20;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.time-slot-actions {
  margin-top: 12px;
}

.time-slot-confirm:disabled {
  background: #D1D1D6;
  color: #FFFFFF;
  cursor: not-allowed;
}

.skeleton-block {
  border-radius: 10px;
  background: linear-gradient(90deg, #F1F1F4 25%, #F8F8FA 37%, #F1F1F4 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.page-loading-skeleton {
  padding: 16px;
}

.page-loading-skeleton .skeleton-block {
  height: 72px;
  margin-bottom: 12px;
}

.page-loading-skeleton .skeleton-title {
  width: 45%;
  height: 44px;
}

.todo-all-done-card {
  border: 1px solid #ECECEF;
  background: #FFFFFF;
}

.setup-cycle-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.setup-cycle-picker-overlay[hidden] {
  display: none !important;
}

.setup-cycle-picker-sheet {
  width: 100%;
  max-width: 480px;
  max-height: min(82vh, 680px);
  max-height: min(82dvh, 680px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px 20px calc(24px + var(--safe-bottom, 12px));
  border-radius: 20px 20px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.setup-cycle-picker-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: #D1D1D6;
}

.setup-cycle-picker-title {
  margin: 0 0 6px;
  color: #111113;
  font-size: 17px;
  font-weight: 700;
}

.setup-cycle-picker-material {
  margin-bottom: 14px;
  color: #8A8A93;
  font-size: 13px;
}

.setup-cycle-picker-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-cycle-picker-option {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1C1E;
  text-align: left;
  cursor: pointer;
}

.setup-cycle-picker-option small {
  color: #8A8A93;
  font-size: 12px;
}

.setup-cycle-picker-option.is-selected {
  border: 1.5px solid #111113;
}

.setup-cycle-picker-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.setup-cycle-picker-cancel,
.setup-cycle-picker-confirm {
  min-height: 44px;
  flex: 1;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.setup-cycle-picker-cancel {
  border: 1px solid #D1D1D6;
  background: #FFFFFF;
  color: #1C1C1E;
}

.setup-cycle-picker-confirm {
  border: 1px solid #111113;
  background: #111113;
  color: #FFFFFF;
}

.setup-cycle-picker-confirm:disabled {
  border-color: #D1D1D6;
  background: #D1D1D6;
  cursor: not-allowed;
}

.store-info-page {
  min-height: 100%;
  background: #f5f5f7;
}

.store-info-page .nav-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.store-info-page .subpage-back {
  border-radius: 10px;
}

.store-info-page .subpage-back svg {
  width: 20px;
  height: 20px;
}

.store-info-scroll {
  padding: 12px 16px 32px;
}

.store-info-group + .store-info-group {
  margin-top: 20px;
}

.store-info-group-title {
  margin: 0 4px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.store-info-card,
.cycle-material-card,
.cycle-time-card,
.user-guide-info-card,
.user-guide-menu,
.user-guide-disclaimer,
.policy-doc-card {
  background: #fff;
  border-radius: 18px;
}

.store-info-card {
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
}

.store-info-card .store-info-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.store-info-card .store-info-row:not(:last-child)::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: #ececef;
  content: "";
}

.store-info-label {
  flex: 0 0 64px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.store-info-value {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.store-info-value strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  white-space: normal;
}

.store-info-chevron {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #b4b4bb;
}

.store-info-note {
  margin: 12px 4px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.store-info-card .store-info-row:active,
.store-info-page .subpage-back:active {
  background: var(--surface-inset);
}

.store-info-card .store-info-row:focus-visible,
.store-info-page .subpage-back:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
.store-info-card .store-info-row:hover,
  .store-info-page .subpage-back:hover {
    background: var(--surface-inset);
  }
}

.store-field-editor {
  padding-top: 2px;
}

.store-field-input-wrap {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1.5px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  color: #111113;
  font-size: 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-field-input-wrap:focus-within {
  border-color: #111113;
}

.store-field-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111113;
  font: inherit;
}

.store-field-input-wrap.is-invalid {
  border: 2px solid #dc2626;
  background: #fef2f2;
}

.store-field-error {
  display: none;
  margin: 7px 2px 0;
  color: #dc2626;
  font-size: 12.5px;
  line-height: 1.5;
}

.store-field-error.is-visible {
  display: block;
}

.store-field-hint,
.cycle-editor-note,
.time-choice-note {
  margin: 12px 2px 0;
  color: #8a8a91;
  font-size: 13px;
  line-height: 1.5;
}

.store-field-sheet .store-field-hint {
  margin-top: 8px;
}

.store-slot-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.store-slot-time {
  width: 0;
  height: 48px;
  flex: 1;
  padding: 0 9px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 15px;
}

.store-slot-time:focus {
  border-color: #111113;
}

.store-slot-editor-row > span {
  color: #71717a;
  font-size: 13px;
}

.store-slot-remove {
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
}

.store-slot-add {
  width: 100%;
  height: 46px;
  border: 1px dashed #c7c7cd;
  border-radius: 12px;
  background: #fafafa;
  color: #3f3f46;
  font-size: 14px;
}

.choice-sheet-caption {
  margin: -2px 2px 8px;
  color: #8a8a91;
  font-size: 12px;
}

.choice-sheet-list {
  display: flex;
  max-height: 330px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.choice-sheet-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  color: #111113;
  font-size: 15px;
  text-align: left;
}

.choice-sheet-row.is-selected {
  border: 1.5px solid #111113;
  font-weight: 600;
}

.choice-sheet-check {
  visibility: hidden;
  color: #111113;
  font-size: 17px;
}

.choice-sheet-row.is-selected .choice-sheet-check {
  visibility: visible;
}

.time-choice-list {
  display: flex;
  max-height: 314px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.time-choice-list::-webkit-scrollbar {
  display: none;
}

.time-choice-row {
  display: flex;
  width: 100%;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  color: #111113;
  font-size: 17px;
  text-align: left;
}

.time-choice-row.is-selected {
  border: 1.5px solid #111113;
  font-weight: 600;
}

.time-choice-current {
  min-width: 38px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

/* 当前门店与八个字段编辑弹窗：统一字号、选项与操作区 */
.modal-sheet.store-settings-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 24px - var(--safe-top));
  max-height: calc(100dvh - 24px - var(--safe-top));
  padding: 20px 20px calc(20px + var(--safe-bottom));
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
}

.store-settings-sheet::before,
.store-settings-sheet > .rc-sheet-handle {
  display: none;
}

.store-settings-sheet > .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 32px;
  margin: 0 0 12px;
}

.store-settings-sheet .modal-title {
  min-width: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: normal;
}

.store-settings-sheet .modal-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}

.store-settings-sheet .modal-close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.store-settings-sheet > .modal-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.store-settings-sheet > .modal-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  margin: 16px 0 0 !important;
}

.store-settings-sheet .modal-actions > button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: auto;
  min-width: 0;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.store-settings-sheet .modal-actions .modal-cancel {
  border: 0;
  background: var(--control-bg);
  color: var(--text-secondary);
}

.store-settings-sheet .modal-actions .modal-confirm {
  border: 0;
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-weight: 600;
}

.store-settings-sheet .modal-close:not(:disabled):active,
.store-settings-sheet .modal-actions .modal-cancel:not(:disabled):active {
  background: #E2E2E8;
}

.store-settings-sheet .modal-actions .modal-confirm:not(:disabled):active {
  background: #38383D;
}

.store-settings-sheet button:disabled {
  cursor: default;
}

.store-settings-sheet .modal-actions .modal-confirm:disabled {
  background: var(--control-bg);
  color: var(--text-muted);
  opacity: 1;
}

.store-settings-sheet button:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

.store-settings-sheet .cuisine-choice-list,
.store-settings-sheet .choice-sheet-list,
.store-settings-sheet .delivery-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  max-height: none;
}

.store-settings-sheet .cuisine-choice-list,
.store-settings-sheet .choice-sheet-list {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.store-settings-sheet .cuisine-choice-option,
.store-settings-sheet .choice-sheet-row,
.store-settings-sheet .store-choice-row {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.store-settings-sheet .cuisine-choice-option.is-selected,
.store-settings-sheet .choice-sheet-row.is-selected,
.store-settings-sheet .store-choice-row.is-selected {
  padding: 12px;
  border-width: 1px;
  border-color: var(--obsidian-black);
  background: var(--surface-inset);
  font-weight: 500;
}

.store-settings-sheet .cuisine-choice-option:not(:disabled):active,
.store-settings-sheet .choice-sheet-row:not(:disabled):active,
.store-settings-sheet .store-choice-row:not(:disabled):active {
  background: var(--control-bg);
}

.store-settings-sheet .cuisine-choice-option:focus-visible,
.store-settings-sheet .choice-sheet-row:focus-visible,
.store-settings-sheet .store-choice-row:focus-visible {
  outline-offset: -3px;
}

.store-settings-sheet .cuisine-choice-current {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.store-settings-sheet .opt-check,
.store-settings-sheet .choice-sheet-check {
  flex: 0 0 auto;
  color: var(--obsidian-black);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.store-settings-sheet .store-field-input-wrap {
  height: 48px;
  min-height: 48px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 24px;
}

.store-settings-sheet .store-field-input {
  min-width: 0;
  height: 100%;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

.store-settings-sheet .cuisine-custom-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}

.store-settings-sheet .store-field-input-wrap:focus-within,
.store-settings-sheet .cuisine-custom-input:focus {
  border-color: var(--border-subtle);
  outline: none;
  box-shadow: none;
}

.store-settings-sheet .store-field-input-wrap.is-invalid,
.store-settings-sheet .cuisine-custom-input.is-invalid {
  border-color: var(--status-red-text);
  background: #FFFDFD;
  box-shadow: none;
}

.store-settings-sheet .store-field-hint,
.store-settings-sheet .cuisine-choice-error,
.store-settings-sheet .store-field-error,
.store-settings-sheet .time-slot-error {
  font-size: 13px;
  line-height: 20px;
}

.store-settings-sheet .store-field-hint {
  margin: 12px 0 0;
  color: var(--text-tertiary);
}

.store-settings-sheet .store-field-error,
.store-settings-sheet .cuisine-choice-error,
.store-settings-sheet .time-slot-error {
  color: var(--status-red-text);
  text-align: left;
}

.store-settings-sheet .store-slot-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.store-settings-sheet .store-slot-time {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 0;
  gap: 6px;
  width: 0;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}

.store-settings-sheet .store-slot-editor-row > span {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.store-settings-sheet .store-slot-remove {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--status-red-text);
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.store-settings-sheet .store-slot-add {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px dashed #C7C7CD;
  border-radius: 10px;
  background: var(--surface-inset);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.store-settings-sheet .store-slot-remove:not(:disabled):active {
  background: var(--status-red-bg);
}

.store-settings-sheet .store-slot-add:not(:disabled):active {
  background: var(--control-bg);
}

@media (min-width: 700px) {
.modal-sheet.store-settings-sheet {
    border-radius: 16px;
  }
}

@media (max-width: 359px) {
.modal-sheet.store-settings-sheet {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
.modal-sheet.store-settings-sheet {
    animation: none;
  }

.store-settings-sheet button {
    transition: none;
  }
}

/* 营业时段：同一抽屉内的小时、分钟选择面板 */
.store-settings-sheet .store-slot-time[aria-expanded="true"],
.store-settings-sheet .store-slot-time:not(:disabled):active {
  border-color: var(--border-subtle);
  background: var(--control-bg);
}

.store-settings-sheet .store-slot-time-value {
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-settings-sheet .store-slot-time-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

.store-settings-sheet .store-slot-time-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* 营业时段与时间选择器交替显示，复用同一层遮罩 */
.store-settings-sheet.store-slots-sheet[hidden] {
  display: none;
}

.store-time-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--safe-top) 0 0;
  background: transparent;
}

.store-time-overlay .store-time-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 480px;
  max-height: calc(100vh - 24px - var(--safe-top));
  max-height: calc(100dvh - 24px - var(--safe-top));
  margin: 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  overflow: hidden;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-family);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-time-overlay .store-time-picker[hidden] {
  display: none;
}

.store-time-overlay .store-time-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 32px;
}

.store-time-overlay .store-time-picker-title {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.store-time-overlay .store-time-picker-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}

.store-time-overlay .store-time-picker-close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.store-time-overlay .store-time-picker-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.store-time-overlay .store-time-picker-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.store-time-overlay .store-time-picker-label {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.store-time-overlay .store-time-picker-list {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 88px;
  height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--surface-inset);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.store-time-overlay .store-time-picker-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  cursor: pointer;
}

.store-time-overlay .store-time-picker-option[aria-selected="true"] {
  background: var(--control-bg);
  color: var(--text-primary);
  font-weight: 600;
}

.store-time-overlay .store-time-picker-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.store-time-overlay .store-time-picker-actions > button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.store-time-overlay .store-time-picker-actions > button:first-child {
  background: var(--control-bg);
  color: var(--text-secondary);
}

.store-time-overlay .store-time-picker-actions > button:last-child {
  background: var(--obsidian-black);
  color: #FFFFFF;
  font-weight: 600;
}

.store-time-overlay .store-time-picker-close:not(:disabled):active,
.store-time-overlay .store-time-picker-option:not(:disabled):active,
.store-time-overlay .store-time-picker-actions > button:first-child:not(:disabled):active {
  background: #E2E2E8;
}

.store-time-overlay .store-time-picker-actions > button:last-child:not(:disabled):active {
  background: #38383D;
}

.store-time-overlay button:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

.store-time-overlay .store-time-dialog:focus {
  outline: none;
}

.store-time-overlay .store-time-picker-option:focus-visible {
  outline-offset: -3px;
}

.store-time-overlay button:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
.store-time-overlay .store-time-picker {
    animation: none;
  }
}

@media (max-height: 640px) {
.store-time-overlay .store-time-picker-list {
    height: 132px;
  }
}

@media (max-height: 480px) {
.store-time-overlay .store-time-picker-list {
    height: 88px;
  }
}

/* 经营看板：总览、逐日趋势与预测复盘 */
.board-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.board-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.board-view {
  padding-top: 4px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.board-view .analytics-range-tabs {
  gap: 8px;
  margin: 0;
}

.board-view .analytics-range-tab {
  height: 44px;
  border-radius: 12px;
  font-size: 13px;
  transition: background-color 120ms ease, color 120ms ease;
}

.board-range-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 16px;
  font-size: 12px;
  line-height: 20px;
  color: #66666F;
}

.board-range-caption p {
  margin: 0;
}

.board-range-caption > span {
  white-space: nowrap;
}

.board-overview,
.board-view .board-trend-card,
.board-review {
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.board-overview {
  overflow: hidden;
}

.board-metric {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.board-metric.is-active {
  background: #F7F7F8;
  box-shadow: inset 0 -2px 0 #222225;
}

.board-metric-primary {
  gap: 8px;
  padding: 20px 16px;
}

.board-metric-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.board-metric-current {
  min-height: 16px;
  color: #66666F;
  font-size: 11px;
  line-height: 16px;
}

.board-metric strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.board-metric-primary strong {
  font-size: 24px;
  line-height: 1.3;
}

.board-overview-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ECECEF;
}

.board-overview-secondary .board-metric + .board-metric {
  border-left: 1px solid #ECECEF;
}

.board-view .board-trend-card {
  padding: 16px;
}

.board-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.board-section-heading h2,
.board-review > h2 {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.board-section-heading > span {
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 16px;
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-chart-legend i {
  width: 16px;
  border-top: 2px solid #222225;
}

.board-chart-legend i.is-predicted {
  border-color: #90909A;
  border-top-style: dashed;
}

.board-chart-plot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
}

.board-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 168px;
  padding: 10px 0;
  color: #71717A;
  font-size: 11px;
  line-height: 0;
  text-align: right;
}

.board-line-chart {
  display: block;
  width: 100%;
  height: 168px;
  overflow: visible;
}

.board-chart-grid {
  stroke: #ECECEF;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.board-line-actual,
.board-line-predicted {
  fill: none;
  stroke: #222225;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.board-line-predicted {
  stroke: #90909A;
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.board-dot-actual,
.board-selected-actual {
  fill: #222225;
}

.board-dot-predicted,
.board-selected-predicted {
  fill: #90909A;
}

.board-selected-actual,
.board-selected-predicted {
  stroke: #FFF;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.board-chart-cursor {
  stroke: #B5B5BD;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.board-chart-dates {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 4px 52px;
  color: #71717A;
  font-size: 11px;
  line-height: 16px;
}

.board-day-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.board-day-step {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #F5F5F7;
  color: #333338;
  cursor: pointer;
}

.board-day-step:disabled {
  color: #B5B5BD;
  background: #FAFAFB;
  cursor: default;
}

.board-day-slider {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #222225;
  cursor: ew-resize;
}

.board-day-readout {
  padding: 12px;
  border-radius: 12px;
  background: #F7F7F8;
}

.board-day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-day-heading strong {
  color: #484850;
  font-weight: 500;
}

.board-day-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.board-day-values.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.board-day-values dt {
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-day-values dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.board-chart-note {
  margin: 12px 0 0;
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-review {
  padding: 16px;
}

.board-deviation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.board-deviation h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.board-deviation p {
  margin: 0;
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.board-deviation > strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.board-deviation > strong small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
}

.board-deviation > strong.is-unavailable {
  color: #71717A;
  font-size: 13px;
  line-height: 20px;
}

.board-manager-empty,
.board-manager-values {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
  font-size: 13px;
  line-height: 20px;
}

.board-manager-empty,
.board-manager-values > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.board-manager-empty > span:last-child,
.board-manager-values dt {
  color: #71717A;
}

.board-manager-values > div + div {
  margin-top: 12px;
}

.board-manager-values dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.board-scroll[aria-busy="true"] .board-view {
  opacity: 0.6;
}

.board-nav .subpage-back:focus-visible,
.board-view button:focus-visible,
.board-view input:focus-visible {
  outline: 2px solid #555560;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .board-metric:hover,
  .board-day-step:hover:not(:disabled) {
    background: #F0F0F3;
  }
}

@media (max-width: 350px) {
  .board-view .analytics-range-tabs {
    gap: 4px;
  }
  .board-metric {
    padding: 12px;
  }
  .board-metric-primary {
    padding: 20px 16px;
  }
  .board-metric-current {
    font-size: 11px;
  }
  .board-chart-plot {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .board-chart-dates {
    margin-left: 48px;
  }
  .board-deviation {
    gap: 12px;
  }
}

/* 采购汇总：日期、概况与实际到货明细 */
.purchase-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.purchase-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.purchase-nav .subpage-text-action {
  min-width: 60px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.purchase-nav .subpage-text-action:disabled {
  color: #71717A;
  cursor: wait;
}

.purchase-summary {
  padding-top: 4px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.purchase-range {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: var(--surface-card);
  color: #66666F;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.purchase-range > svg {
  flex-shrink: 0;
}

.purchase-range > svg:last-child {
  margin-left: auto;
}

.purchase-range-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.purchase-range-copy > span {
  font-size: 12px;
  line-height: 16px;
}

.purchase-range-copy > strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.purchase-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 16px 0;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.purchase-overview > div {
  min-width: 0;
  padding: 0 16px;
}

.purchase-overview > div + div {
  border-left: 1px solid #ECECEF;
}

.purchase-overview dt {
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.purchase-overview dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 0;
  line-height: 28px;
}

.purchase-overview strong {
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.purchase-overview dd > span {
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.purchase-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.purchase-section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.purchase-section-heading > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.purchase-items-card {
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.purchase-items {
  margin: 0;
}

.purchase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 44%);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
}

.purchase-item + .purchase-item {
  border-top: 1px solid #ECECEF;
}

.purchase-item.is-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.purchase-item.is-stacked dd {
  justify-content: flex-start;
  text-align: left;
}

.purchase-item dt {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.purchase-item dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  margin: 0;
  text-align: right;
}

.purchase-item strong {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.purchase-item dd > span {
  max-width: 100%;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.purchase-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #ECECEF;
  border-radius: 0;
  background: transparent;
  color: #66666F;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.purchase-more.is-expanded > svg {
  transform: rotate(180deg);
}

.purchase-footnote {
  margin: 12px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.purchase-summary .detail-empty-mark {
  display: none;
}

.purchase-summary .detail-state {
  min-height: 180px;
  padding: 32px 20px;
}

.purchase-scroll[aria-busy="true"] .purchase-summary {
  opacity: 0.6;
}

.purchase-nav button:focus-visible,
.purchase-summary button:focus-visible {
  outline: 2px solid #555560;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .purchase-range:hover,
  .purchase-more:hover {
    background: #F7F7F8;
  }
}

@media (max-width: 350px) {
  .purchase-range {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .purchase-range-copy > strong {
    font-size: 13px;
  }
  .purchase-item {
    gap: 12px;
  }
  .purchase-item strong {
    font-size: 20px;
  }
}

/* 损耗分析：分类记录与原因数量 */
.loss-analysis-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.loss-analysis-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.loss-analysis {
  padding-top: 4px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.loss-analysis .analytics-date-range {
  gap: 12px;
  height: auto;
  min-height: 64px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  color: #66666F;
  transition: background-color 120ms ease;
}

.loss-analysis .analytics-date-range > svg {
  flex-shrink: 0;
}

.loss-analysis .analytics-date-range > svg:last-child {
  margin-left: auto;
}

.loss-analysis .analysis-range-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.loss-analysis .analysis-range-copy > span {
  font-size: 12px;
  line-height: 16px;
}

.loss-analysis .analysis-range-copy > strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.loss-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.loss-kind {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.loss-kind + .loss-kind {
  border-left: 1px solid #ECECEF;
}

.loss-kind.is-active {
  background: #050505;
  color: #FFFFFF;
}

.loss-kind.is-active .loss-kind-label,
.loss-kind.is-active .loss-kind-count > span {
  color: #C5C5CC;
}

.loss-kind.is-active:focus-visible {
  outline-color: #D4D4D8;
}

.loss-kind-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.loss-kind-label > span {
  min-height: 16px;
  font-size: 11px;
  line-height: 16px;
}

.loss-kind-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 28px;
}

.loss-kind-count > strong {
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.loss-kind-count > span {
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.loss-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.loss-section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.loss-section-heading > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.loss-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loss-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.loss-item-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.loss-item-heading p {
  margin: 4px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.loss-quantities {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ECECEF;
}

.loss-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 48%);
  align-items: baseline;
  gap: 12px;
}

.loss-quantity-row + .loss-quantity-row {
  margin-top: 12px;
}

.loss-quantity-row dt {
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.loss-quantity-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  margin: 0;
  text-align: right;
}

.loss-quantity-row strong {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.loss-quantity-row dd > span {
  max-width: 100%;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.loss-quantity-row.is-unknown dt {
  color: #8A6B45;
}

.loss-item.is-stacked .loss-quantity-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.loss-item.is-stacked .loss-quantity-row dd {
  justify-content: flex-start;
  text-align: left;
}

.loss-footnote {
  margin: 12px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.loss-analysis .detail-empty-mark {
  display: none;
}

.loss-analysis .detail-state {
  min-height: 180px;
  padding: 32px 20px;
}

.loss-analysis-scroll[aria-busy="true"] .loss-analysis {
  opacity: 0.6;
}

.loss-analysis-nav button:focus-visible,
.loss-analysis button:focus-visible {
  outline: 2px solid #555560;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .loss-kind:hover:not(.is-active),
  .loss-analysis .analytics-date-range:hover {
    background: #F0F0F3;
  }
}

@media (max-width: 350px) {
  .loss-analysis .analytics-date-range {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .loss-analysis .analysis-range-copy > strong {
    font-size: 13px;
  }
  .loss-kind {
    padding: 16px 12px;
  }
  .loss-kind-label {
    gap: 4px;
  }
  .loss-quantity-row strong {
    font-size: 20px;
  }
}

/* 供应商名录与联系资料表单 */
.suppliers-nav {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
}

.suppliers-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.suppliers-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.suppliers-nav .subpage-action {
  appearance: none;
  justify-self: end;
  min-width: 64px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #050505;
  color: #FFF;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.supplier-directory {
  padding-top: 4px;
}

.supplier-directory-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.supplier-directory-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.supplier-directory-heading > span {
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.supplier-directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-contact-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}

.supplier-card-edit {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.supplier-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.supplier-card-heading > strong {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.supplier-card-heading > svg {
  flex-shrink: 0;
  color: #8A8A93;
}

.supplier-card-status {
  flex-shrink: 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.supplier-card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}

.supplier-card-contact > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.supplier-card-wechat {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  color: #66666F;
  font-size: 12px;
  line-height: 20px;
}

.supplier-card-wechat > span:last-child {
  overflow-wrap: anywhere;
}

.supplier-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 16px;
  border-top: 1px solid #ECECEF;
}

.supplier-contact-action {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #484850;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.supplier-contact-action > svg {
  flex-shrink: 0;
}

.supplier-contact-action:disabled {
  color: #A1A1AA;
  cursor: default;
}

.supplier-directory-note {
  margin: 12px 0 0;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.supplier-directory .detail-empty-mark {
  display: none;
}

.supplier-directory .detail-state {
  min-height: 200px;
  padding: 32px 20px;
}

.modal-sheet.supplier-edit-sheet {
  max-height: calc(100vh - 24px - var(--safe-top));
  max-height: calc(100dvh - 24px - var(--safe-top));
  padding: 20px 20px calc(20px + var(--safe-bottom));
  border-radius: 16px 16px 0 0;
  color: var(--text-primary);
}

.supplier-edit-sheet > .modal-header {
  flex: 0 0 auto;
  gap: 12px;
  min-height: 32px;
  margin: 0 0 8px;
}

.supplier-edit-sheet .modal-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.supplier-edit-sheet .modal-close {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #71717A;
  cursor: pointer;
}

.supplier-edit-sheet > .modal-body {
  max-height: none;
  overflow-x: hidden;
  padding: 0 2px;
}

.supplier-form-hint {
  margin: 0 0 20px;
  color: #71717A;
  font-size: 12px;
  line-height: 20px;
}

.supplier-edit-sheet .supplier-edit-form {
  margin: 0;
}

.supplier-edit-sheet .supplier-edit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
}

.supplier-edit-sheet .supplier-edit-row + .supplier-edit-row {
  margin-top: 16px;
}

.supplier-edit-sheet .supplier-edit-label {
  flex: auto;
  height: auto;
  color: #484850;
  font-size: 14px;
  line-height: 20px;
}

.supplier-field-optional {
  margin-left: 4px;
  color: #71717A;
  font-size: 12px;
}

.supplier-edit-sheet .supplier-edit-input {
  height: 48px;
  padding: 0 12px;
  border: 1px solid #D4D4D8;
  border-radius: 10px;
  background: #FFF;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 48px;
}

.supplier-edit-sheet .supplier-edit-input.has-value {
  border-color: #D4D4D8;
}

.supplier-edit-sheet .supplier-edit-input:focus {
  border-color: #222225;
  box-shadow: 0 0 0 1px #222225;
}

.supplier-edit-sheet .supplier-edit-input.is-invalid {
  border-color: #B42318;
  background: #FFF7F7;
  color: #B42318;
}

.supplier-edit-sheet .supplier-edit-input.is-invalid:focus {
  box-shadow: 0 0 0 1px #B42318;
}

.supplier-edit-sheet .supplier-edit-error {
  margin: 8px 0 0;
  color: #B42318;
  font-size: 12px;
  line-height: 20px;
}

.supplier-edit-sheet > .modal-actions {
  flex: 0 0 auto;
  gap: 12px;
  margin-top: 20px !important;
}

.supplier-edit-sheet .modal-actions > button {
  min-width: 0;
  height: 48px !important;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.supplier-edit-sheet .modal-danger {
  border: 1px solid #E4C8C5;
  background: #FFF;
  color: #B42318;
}

.supplier-edit-sheet .modal-confirm:disabled {
  background: #E5E5EA;
  color: #8A8A93;
  cursor: default;
}

.suppliers-nav button:focus-visible,
.supplier-directory button:focus-visible,
.supplier-edit-sheet button:focus-visible {
  outline: 2px solid #71717A;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .supplier-card-edit:hover,
  .supplier-contact-action:hover:not(:disabled),
  .supplier-edit-sheet .modal-close:hover {
    background: #F7F7F8;
  }
}

/* 订货与盘点周期：原料间隔与订货时间 */
.cycle-settings-nav .subpage-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.cycle-settings-nav .nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.cycle-settings-page { padding-top: 4px; }
.cycle-settings-page .cycle-page-intro {
  margin: 0 0 20px;
  color: #66666F;
  font-size: 13px;
  line-height: 20px;
}
.cycle-settings-section + .cycle-settings-section { margin-top: 24px; }
.cycle-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cycle-section-heading h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.cycle-section-heading > span { color: #71717A; font-size: 12px; line-height: 20px; }
.cycle-settings-page .cycle-material-card,
.cycle-settings-page .cycle-time-card {
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}
.cycle-settings-page .cycle-material-row,
.cycle-settings-page .cycle-time-row {
  min-height: 76px;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}
.cycle-settings-page .cycle-material-copy { flex: 1; gap: 4px; }
.cycle-settings-page .cycle-material-copy strong,
.cycle-settings-page .cycle-time-row strong { font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.cycle-settings-page .cycle-material-copy small,
.cycle-settings-page .cycle-time-row small { color: #71717A; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.cycle-row-value { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.cycle-row-value > svg,
.cycle-settings-page .cycle-time-value > svg { flex-shrink: 0; color: #8A8A93; }
.cycle-settings-page .cycle-days-pill {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}
.cycle-settings-page .cycle-time-row > span:first-child { gap: 4px; }
.cycle-settings-page .cycle-time-value {
  max-width: 140px;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}
.cycle-settings-page .detail-empty-mark { display: none; }
.cycle-settings-page .detail-state { min-height: 160px; padding: 32px 20px; }

.modal-sheet.cycle-editor-sheet,
.modal-sheet.cycle-time-sheet {
  max-height: calc(100vh - 24px - var(--safe-top));
  max-height: calc(100dvh - 24px - var(--safe-top));
  padding: 20px 20px calc(20px + var(--safe-bottom));
  border-radius: 16px 16px 0 0;
  color: var(--text-primary);
}
.cycle-editor-sheet > .modal-header,
.cycle-time-sheet > .modal-header { flex: 0 0 auto; margin: 0 0 16px; }
.cycle-editor-sheet .modal-title,
.cycle-time-sheet .modal-title { font-size: 17px; font-weight: 600; line-height: 24px; letter-spacing: normal; }
.cycle-time-sheet .modal-title-hint { display: block; margin: 4px 0 0; color: #71717A; font-size: 12px; font-weight: 400; line-height: 20px; }
.cycle-editor-sheet > .modal-body,
.cycle-time-sheet > .modal-body { max-height: none; padding: 0 2px; overflow-x: hidden; }
.cycle-time-sheet > .modal-body { display: flex; flex-direction: column; overflow: hidden; }
.cycle-editor-sheet .cycle-editor { padding-top: 0; }
.cycle-editor-material { margin: 0 0 16px; font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.cycle-editor-sheet .cycle-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cycle-editor-sheet .cycle-preset {
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFF;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.cycle-editor-sheet .cycle-preset.is-active { border-color: #050505; background: #050505; color: #FFF; font-weight: 500; }
.cycle-editor-sheet .cycle-custom { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; font-size: 14px; line-height: 20px; }
.cycle-custom > label { color: #484850; }
.cycle-custom-control { display: flex; align-items: center; gap: 12px; }
.cycle-editor-sheet .cycle-custom input {
  width: 112px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #D4D4D8;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 48px;
}
.cycle-editor-sheet .cycle-custom input:focus { border-color: #222225; box-shadow: 0 0 0 1px #222225; }
.cycle-editor-sheet .cycle-custom input[aria-invalid="true"] { border-color: #B42318; background: #FFF7F7; }
.cycle-editor-sheet .cycle-custom input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px #B42318; }
.cycle-range-hint { margin: 8px 0 0; color: #71717A; font-size: 12px; line-height: 20px; }
.cycle-field-error { margin: 8px 0 0; color: #B42318; font-size: 12px; line-height: 20px; }
.cycle-field-error:empty { display: none; }
.cycle-editor-sheet .cycle-editor-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #ECECEF; color: #66666F; font-size: 12px; line-height: 20px; }
.cycle-time-sheet .time-choice-list { flex: 1 1 auto; min-height: 0; max-height: min(45vh, 360px); max-height: min(45dvh, 360px); gap: 8px; padding: 0; }
.cycle-time-sheet .time-choice-row { min-height: 48px; padding: 0 16px; border: 1px solid #E5E5EA; border-radius: 12px; font: inherit; font-size: 15px; line-height: 24px; cursor: pointer; }
.cycle-time-sheet .time-choice-row.is-selected { border-color: #050505; background: #050505; color: #FFF; font-weight: 500; }
.cycle-time-sheet .time-choice-current { color: #71717A; font-size: 12px; line-height: 20px; }
.cycle-time-sheet .time-choice-row.is-selected .time-choice-current { color: #C5C5CC; }
.cycle-time-sheet .time-choice-note { flex: 0 0 auto; margin: 12px 0 0; color: #71717A; font-size: 12px; line-height: 20px; }
.cycle-editor-sheet > .modal-actions,
.cycle-time-sheet > .modal-actions { flex: 0 0 auto; gap: 12px; margin-top: 20px !important; }
.cycle-editor-sheet .modal-actions > button,
.cycle-time-sheet .modal-actions > button { min-width: 0; height: 48px !important; min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.cycle-editor-sheet .modal-confirm:disabled { background: #E5E5EA; color: #8A8A93; cursor: default; }
.cycle-settings-nav button:focus-visible,
.cycle-settings-page button:focus-visible,
.cycle-editor-sheet button:focus-visible,
.cycle-time-sheet button:focus-visible { outline: 2px solid #71717A; outline-offset: -3px; }
.cycle-editor-sheet .cycle-preset.is-active:focus-visible,
.cycle-time-sheet .time-choice-row.is-selected:focus-visible { outline-color: #D4D4D8; }
@media (hover: hover) and (pointer: fine) {
  .cycle-settings-page .cycle-material-row:hover,
  .cycle-settings-page .cycle-time-row:hover,
  .cycle-editor-sheet .cycle-preset:hover:not(.is-active),
  .cycle-time-sheet .time-choice-row:hover:not(.is-selected) { background: #F7F7F8; }
}

/* 用户说明：服务资料、阅读入口与数据申请 */
.user-guide-nav .subpage-back,
.user-guide-doc-nav .subpage-back { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.user-guide-nav .nav-title,
.user-guide-doc-nav .nav-title { margin: 0; font-size: 17px; font-weight: 600; }
.user-guide-page { padding-top: 4px; }
.user-guide-page .guide-section + .guide-section { margin-top: 24px; }
.guide-section-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 24px; }
.user-guide-page .user-guide-info-card,
.user-guide-page .user-guide-menu,
.user-guide-page .user-guide-disclaimer {
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 16px;
  background: var(--surface-card);
}
.user-guide-page .user-guide-info-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: baseline; min-height: 52px; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ECECEF; }
.user-guide-page .user-guide-info-row:last-child { border-bottom: 0; }
.user-guide-info-row dt { color: #71717A; font-size: 13px; line-height: 22px; }
.user-guide-info-row dd { min-width: 0; margin: 0; color: var(--text-primary); font-size: 14px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.user-guide-info-row dd.is-unconfigured { color: #71717A; font-weight: 400; }
.user-guide-page .user-guide-disclaimer { padding: 16px; color: #484850; font-size: 14px; line-height: 24px; }
.user-guide-disclaimer p { margin: 0; }
.user-guide-disclaimer p + p { margin-top: 12px; }
.user-guide-page .user-guide-menu-row { min-height: 56px; gap: 12px; padding: 16px 0; color: var(--text-primary); font: inherit; font-size: 15px; line-height: 24px; cursor: pointer; }
.user-guide-page .user-guide-menu-row > svg { flex-shrink: 0; color: #8A8A93; }
.user-guide-page .guide-data-entry { min-height: 76px; }
.guide-data-entry > span { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.guide-data-entry strong { font-size: 15px; font-weight: 500; line-height: 24px; }
.guide-data-entry small { color: #71717A; font-size: 12px; line-height: 20px; }
.guide-request-list { display: flex; flex-direction: column; gap: 12px; }
.user-guide-page .data-request-status { margin: 0; padding: 16px; border: 1px solid rgba(0, 0, 0, 0.035); border-radius: 16px; background: var(--surface-card); }
.guide-request-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.guide-request-heading h3 { min-width: 0; margin: 0; color: var(--text-primary); font-size: 14px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.guide-request-heading > span { flex-shrink: 0; color: #71717A; font-size: 12px; line-height: 20px; }
.user-guide-page .data-request-status p { margin: 4px 0 0; color: #71717A; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.user-guide-page .data-request-status.is-failed .guide-request-heading > span,
.user-guide-page .data-request-status .data-request-error { color: #B42318; }
.guide-request-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.user-guide-page .guide-request-action { min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid #D4D4D8; border-radius: 10px; background: #FFF; color: var(--text-primary); font-size: 13px; font-weight: 500; }
.user-guide-page .guide-request-action:disabled { color: #71717A; background: #F7F7F8; cursor: wait; }
.modal-sheet.data-request-dialog { width: 100%; max-width: 380px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 20px; border-radius: 16px; }
.data-request-dialog::before { display: none; }
.data-request-dialog > .modal-header { flex: 0 0 auto; justify-content: flex-start; margin: 0 0 12px; }
.data-request-dialog .modal-title { font-size: 17px; font-weight: 600; line-height: 24px; letter-spacing: normal; text-align: left; }
.data-request-dialog > .modal-body { max-height: none; overflow-x: hidden; }
.data-request-dialog .data-request-copy { color: #484850; font-size: 14px; line-height: 24px; }
.data-request-dialog .data-request-copy p + p { margin-top: 12px; }
.data-request-dialog .data-request-intro { color: #71717A; font-size: 13px; line-height: 20px; }
.data-request-dialog > .modal-actions { flex: 0 0 auto; gap: 12px; margin-top: 20px !important; }
.data-request-dialog .modal-actions > button { min-width: 0; height: 48px !important; min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.data-request-dialog .modal-confirm:disabled { background: #E5E5EA; color: #8A8A93; cursor: wait; }
.user-guide-nav button:focus-visible,
.user-guide-doc-nav button:focus-visible,
.user-guide-page button:focus-visible,
.user-guide-doc-scroll button:focus-visible,
.data-request-dialog button:focus-visible { outline: 2px solid #71717A; outline-offset: -3px; }
.user-guide-doc-scroll .policy-doc-tab.is-active:focus-visible { outline-color: #D4D4D8; }
@media (hover: hover) and (pointer: fine) {
  .user-guide-page .user-guide-menu-row:hover,
  .user-guide-page .guide-request-action:hover:not(:disabled),
  .user-guide-doc-scroll .policy-doc-tab:hover:not(.is-active) { background: #F7F7F8; }
}
@media (max-width: 350px) {
  .user-guide-page .user-guide-info-row { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
}

/* 缺省状态保留相邻入口的分隔 */
.order-hub-home .h5ui-empty + .order-hub-all-records {
  border-top: 1px solid #ECECEF;
}
.analytics-chart-empty > .h5ui-empty {
  align-self: stretch;
}

/* 初次没有列表时保留主操作，不显示全零筛选栏 */
.recipe-catalog-page.is-catalog-empty .recipe-search-field,
.recipe-catalog-page.is-catalog-empty .recipe-dish-categories {
  display: none;
}
.recipe-catalog-page.is-catalog-empty .recipe-dish-catalog {
  display: block;
  width: calc(100% - 32px);
  min-height: 0;
  margin: 16px 16px 0;
  grid-template-columns: minmax(0, 1fr);
}
.recipe-catalog-page.is-catalog-empty .recipe-dish-list,
.recipe-catalog-page.is-catalog-empty .ingredient-card.ingredient-list {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* 在途订货单：卡片内的紧凑缺省提示 */
.order-hub-home .order-hub-transit .h5ui-empty.order-transit-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 4px 12px;
  min-height: 112px;
  padding: 20px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.order-hub-home .order-hub-transit .order-transit-empty .h5ui-empty__visual {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
}
.order-hub-home .order-hub-transit .order-transit-empty .h5ui-empty__visual > svg {
  width: 24px;
  height: 24px;
}
.order-hub-home .order-hub-transit .order-transit-empty .h5ui-empty__message {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
}
.order-hub-home .order-hub-transit .order-transit-empty .h5ui-empty__description {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}
.chat-navigation-card .chat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-navigation-card .btn-chat-navigation {
  flex: 1 1 auto;
  min-height: 40px;
}


/* ===== 11/10 设计稿补齐：4.7 库存 / 4.8 明细 / 4.8-S1 报损 / 4.3-S2 / 8.2 / 8.13 ===== */
/* 4.7 库存状态栏 & 实盘/估算标识 */
.inventory-status-tip {
  margin: 0 16px 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F4F4F6;
  color: #52525B;
  font-size: 12.5px;
  line-height: 18px;
}

.inventory-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 6px;
  border-bottom: 1px solid #ECECEF;
  font-size: 12px;
  color: #71717A;
}

.inventory-current-link > small.is-warn {
  color: #B45309;
  font-weight: 500;
}

.inventory-current-quantity.is-counted b,
.inventory-current-quantity.is-counted span {
  color: #111113;
}

.inventory-current-quantity.is-est b,
.inventory-current-quantity.is-est span {
  color: #8E8E93;
}

.inv-est-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 5px;
  height: 16px;
  border-radius: 5px;
  background: #F1F1F4;
  color: #71717A;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: middle;
}

/* 4.8 原料库存明细 */
.inv-detail-page {
  padding: 12px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inv-detail-hero {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px;
}

.inv-detail-stock-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.inv-detail-stock-cap {
  font-size: 13px;
  color: #71717A;
}

.inv-detail-stock-val {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #111113;
}

.inv-detail-stock-val strong {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
}

.inv-detail-stock-val span {
  font-size: 14px;
  color: #52525B;
}

.inv-detail-stock-val.is-est strong,
.inv-detail-stock-val.is-est span {
  color: #71717A;
}

.inv-detail-source {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: #71717A;
}

.inv-detail-source.is-warn {
  color: #B45309;
  font-weight: 500;
}

.inv-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.inv-detail-action-btn {
  height: 40px;
  border: 1.5px solid #111113;
  border-radius: 11px;
  background: #FFFFFF;
  color: #111113;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.inv-detail-action-btn.is-loss {
  background: #111113;
  color: #FFFFFF;
}

.inv-detail-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 8px;
}

.inv-detail-sec-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111113;
}

.inv-detail-sec-head span {
  font-size: 12.5px;
  color: #71717A;
}

.inv-detail-moves-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 2px 14px;
}

.inv-move-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ECECEF;
}

.inv-move-row:last-child {
  border-bottom: 0;
}

.inv-move-row.is-clickable {
  cursor: pointer;
}

.inv-move-main {
  flex: 1;
  min-width: 0;
}

.inv-move-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inv-move-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: #F4F4F6;
  color: #27272A;
}

.inv-move-badge.is-loss,
.inv-move-badge.is-return {
  background: #FFF7ED;
  color: #B45309;
}

.inv-move-badge.is-receive {
  background: #ECFDF5;
  color: #15803D;
}

.inv-move-time {
  font-size: 12px;
  color: #71717A;
}

.inv-move-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: #52525B;
}

.inv-move-sub.is-warn {
  color: #B45309;
  font-weight: 600;
}

.inv-move-side {
  text-align: right;
  flex-shrink: 0;
}

.inv-move-delta {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111113;
}

.inv-move-delta.is-neg {
  color: #DC2626;
}

.inv-move-delta.is-pos {
  color: #15803D;
}

.inv-move-after {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #71717A;
}

.inv-moves-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #71717A;
}

.inv-detail-formula {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 18px;
  color: #71717A;
  text-align: center;
}

/* 4.8-S1 报损 / 4.3-S2 差异原因 / 4.8-1 盘一下 */
.diff-reason-sub,
.loss-sheet-sub {
  margin: 6px 0 12px;
  font-size: 13px;
  color: #71717A;
}

.diff-reason-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diff-reason-opt {
  width: 100%;
  text-align: left;
  border: 1.5px solid #E4E4E7;
  border-radius: 12px;
  padding: 11px 14px;
  background: #FFFFFF;
  color: #111113;
  font-size: 14.5px;
  cursor: pointer;
}

.diff-reason-opt.is-selected {
  border-color: #111113;
  border-width: 2px;
  font-weight: 700;
}

.diff-reason-opt-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #71717A;
}

.diff-reason-other-wrap {
  margin-top: 10px;
}

.diff-reason-other-input {
  width: 100%;
  height: 42px;
}

.diff-reason-actions,
.loss-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.diff-reason-actions button,
.loss-sheet-actions button {
  flex: 1;
  height: 46px;
}

.loss-form-card {
  background: #F5F5F7;
  border-radius: 14px;
  padding: 2px 14px;
}

.loss-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid #E4E4E7;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font: inherit;
  text-align: left;
}

.loss-field-row:last-child {
  border-bottom: 0;
}

.loss-field-row.is-button:not(:disabled) {
  cursor: pointer;
}

.loss-field-label {
  font-size: 14.5px;
  color: #27272A;
  flex-shrink: 0;
}

.loss-field-label-col small {
  display: block;
  font-size: 12px;
  color: #71717A;
  margin-top: 2px;
}

.loss-field-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111113;
}

.loss-field-val strong.is-placeholder {
  color: #A1A1AA;
  font-weight: 400;
}

.loss-qty-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.loss-qty-input,
.quick-count-input {
  width: 110px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid #D4D4D8;
  border-radius: 10px;
  background: #FFFFFF;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: #111113;
}

.loss-qty-unit,
.quick-count-unit {
  font-size: 13.5px;
  color: #52525B;
}

.loss-inline-text-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 14px;
  color: #111113;
  outline: none;
}

.loss-overstock-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  font-size: 12.5px;
  line-height: 18px;
}

.loss-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 2px 8px;
  font-size: 13px;
  color: #71717A;
}

.loss-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loss-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #E4E4E7;
  background: #FFFFFF;
  color: #111113;
  font-size: 13.5px;
  cursor: pointer;
}

.loss-chip.is-selected {
  background: #111113;
  border-color: #111113;
  color: #FFFFFF;
  font-weight: 600;
}

.loss-note-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid #D4D4D8;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 14px;
  color: #111113;
}

.quick-count-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.quick-count-input {
  width: 160px;
  height: 44px;
  font-size: 20px;
}

.loss-undo-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #18181B;
  color: #FFFFFF;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.loss-undo-btn {
  border: 0;
  background: transparent;
  color: #FBBF24;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* 4.3-10 盘完汇总卡 & 差异编辑 */
.order-stock-summary-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.order-stock-summary-card h2.is-complete {
  color: #15803D;
}

.order-stock-diff-edit {
  display: inline;
  padding: 1px 6px;
  border: 0;
  border-radius: 6px;
  background: #F4F4F6;
  color: #3F3F46;
  font-size: 11.5px;
  cursor: pointer;
}

.order-stock-diff-edit.is-missing {
  background: #FFF7ED;
  color: #B45309;
  font-weight: 600;
}

/* 8.2 盘点记录 & 8.13 盘点复盘 */
.stock-history-summary {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 18px;
  color: #71717A;
  text-align: left;
}

.stock-history-summary.is-warn {
  color: #B45309;
  font-weight: 600;
}

.stock-review-page {
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-review-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stock-review-kpi > div {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: #71717A;
}

.stock-review-kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  color: #111113;
}

.stock-review-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 0;
}

.stock-review-sec-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.stock-review-sec-head span {
  font-size: 12.5px;
  color: #71717A;
}

.stock-review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stock-review-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #ECECEF;
  font-size: 13px;
  color: #111113;
}

.stock-review-chip.is-missing {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #B45309;
  font-weight: 700;
}

.stock-review-table-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 4px 14px;
}

.stock-review-th,
.stock-review-tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px 58px;
  gap: 6px;
  align-items: center;
}

.stock-review-th {
  padding: 10px 0 6px;
  border-bottom: 1px solid #D4D4D8;
  font-size: 12px;
  color: #71717A;
}

.stock-review-th span:not(:first-child) {
  text-align: right;
}

.stock-review-tr {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #ECECEF;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stock-review-tr:last-child {
  border-bottom: 0;
}

.stock-review-mat strong {
  display: block;
  font-size: 14.5px;
  color: #111113;
}

.stock-review-mat small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #71717A;
}

.stock-review-mat small.is-warn,
.stock-review-diff.is-warn {
  color: #B45309;
  font-weight: 700;
}

.stock-review-num,
.stock-review-diff {
  text-align: right;
  font-size: 14px;
  color: #27272A;
}

.stock-review-diff {
  font-weight: 600;
}

.stock-review-empty,
.stock-review-skipped-card {
  padding: 20px 14px;
  text-align: center;
}

.stock-review-skipped-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.stock-review-skipped-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #71717A;
}

.stock-review-fill-btn {
  width: 100%;
  height: 46px;
}

.stock-review-shortage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #FED7AA;
  background: #FFF7ED;
  color: #9A3412;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.stock-review-all-details {
  margin-top: 4px;
}

.stock-review-all-details summary {
  font-size: 13px;
  color: #71717A;
  padding: 8px 4px;
  cursor: pointer;
}

.stock-review-all-details .stock-check-list {
  margin-top: 8px;
}

/* 4.4 只有加的补单模式 */
.order-supplement-tip {
  margin: 8px 16px 0;
  font-size: 12.5px;
  color: #71717A;
}

.order-supplement-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 80px;
}

.order-supplement-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #71717A;
}

.supplement-remove-btn {
  margin-left: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #F4F4F6;
  color: #71717A;
  font-size: 15px;
  cursor: pointer;
}

/* ==========================================================================
   首页改版（2026-11-23）：极浅紫灰顶栏、双色经营主卡、主卡下方紧凑阿川条与暖琥珀逾期提醒
   ========================================================================== */
.top-nav.home-top-nav {
  height: calc(var(--safe-top) + 52px);
  min-height: calc(var(--safe-top) + 52px);
  padding: calc(var(--safe-top) + 8px) 16px 6px;
  background: #EFEBF9;
  gap: 10px;
}

.top-nav.home-top-nav .store-header-button {
  width: auto;
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  gap: 6px;
  box-shadow: none;
}

.top-nav.home-top-nav .store-header-button:active {
  transform: none;
  opacity: 0.78;
}

@media (hover: hover) and (pointer: fine) {
  .top-nav.home-top-nav .store-header-button:hover {
    background: transparent;
  }
}

.home-store-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(117, 55, 232, 0.12);
  color: #5B2AC2;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

.top-nav.home-top-nav .store-name {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  color: #1C1C1E;
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-store-chevron {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #6B6B75;
}

.home-top-board-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 0 9px 0 11px;
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1C1C1E;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.home-top-board-btn svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: #8E8E93;
}

.home-top-board-btn:active {
  background: #FFFFFF;
}

.home-top-board-btn:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: 2px;
}

.scroll-container.home-page-host {
  padding: 0 16px 28px;
  background: linear-gradient(180deg, #EFEBF9 0%, #F4F2FA 96px, var(--page-bg) 196px);
}

.home-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.home-view .home-week-header {
  min-height: 30px;
  margin: 2px 0 6px;
  gap: 8px;
}

.home-view .home-week-range {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #55555F;
}

.home-view .home-week-actions {
  gap: 6px;
}

.home-view .home-week-nav {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  border: 1px solid rgba(28, 28, 30, 0.07);
  background: rgba(255, 255, 255, 0.78);
  color: #55555F;
}

.home-view .home-week-nav svg {
  width: 14px;
  height: 14px;
}

.home-view .home-week-nav:disabled {
  border-color: rgba(28, 28, 30, 0.05);
  background: rgba(255, 255, 255, 0.45);
  color: #B4B4BB;
}

.home-view .home-week-today {
  flex: 0 0 auto;
  width: auto;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C1C1E;
  font-size: 11px;
  font-weight: 500;
}

.home-view .home-date-strip {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.home-view .date-chip {
  min-height: 56px;
  padding: 6px 2px;
  justify-content: center;
  border-radius: 12px;
  transition: background-color 140ms ease, transform 140ms ease-out;
}

.home-view .date-chip .chip-week {
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 14px;
  color: #6B6B75;
}

.home-view .date-chip.is-today .chip-week {
  color: #5B2AC2;
  font-weight: 600;
}

.home-view .date-chip .chip-day {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: #1C1C1E;
}

.home-view .date-chip .chip-dot {
  width: 4px;
  height: 4px;
  margin-top: 3px;
  background-color: rgba(117, 55, 232, 0.55);
}

.home-view .date-chip.active {
  background: #111113;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(17, 17, 19, 0.14);
}

.home-view .date-chip.active .chip-week {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.home-view .date-chip.active .chip-day {
  background: transparent;
  color: #FFFFFF;
}

.home-view .date-chip.active .chip-dot {
  background-color: #C4B5FD;
}

.home-view .date-chip.disabled .chip-week,
.home-view .date-chip.disabled .chip-day {
  color: #C4C4CC;
}

.home-view .kpi-card.kpi-card-dual {
  margin: 0;
  padding: 0;
  gap: 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  color: #1C1C1E;
  border: 1px solid rgba(229, 229, 234, 0.72);
  box-shadow: 0 6px 22px rgba(17, 17, 19, 0.08);
}

.kpi-hero-dark {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 15px;
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.34) 0%, rgba(117, 55, 232, 0) 60%), #111113;
  color: #FFFFFF;
}

.kpi-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-hero-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-view .kpi-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.kpi-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

.kpi-pill-badge.is-ai {
  background: rgba(167, 139, 250, 0.24);
  color: #E9DDFF;
}

.kpi-pill-badge.is-actual {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.kpi-hero-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 26px;
  padding: 0 9px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}

.kpi-hero-cta svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.kpi-hero-amount-btn {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.02em;
  text-align: left;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.home-view .kpi-hero-dark > .kpi-amount {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi-hero-sub {
  margin-top: 5px;
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-detail-white {
  background: #FFFFFF;
}

.kpi-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #ECECEF;
  background: #FAFAFC;
}

.kpi-detail-tab {
  position: relative;
  min-height: 40px;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: #6B6B75;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}

.kpi-detail-tab.is-active {
  background: #FFFFFF;
  color: #1C1C1E;
  font-weight: 600;
}

.kpi-detail-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: #1C1C1E;
}

.kpi-tab-panel[hidden] {
  display: none;
}

.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  min-width: 0;
}

.kpi-metric-cell:nth-child(odd) {
  border-right: 1px solid #ECECEF;
}

.kpi-metric-cell:nth-child(1),
.kpi-metric-cell:nth-child(2) {
  border-bottom: 1px solid #ECECEF;
}

.kpi-metrics-grid--single-row .kpi-metric-cell:nth-child(1),
.kpi-metrics-grid--single-row .kpi-metric-cell:nth-child(2) {
  border-bottom: 0;
}

.kpi-metric-label {
  font-size: 11px;
  line-height: 15px;
  color: #6B6B75;
}

.kpi-metric-val {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: #1C1C1E;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.kpi-dish-list {
  display: flex;
  flex-direction: column;
}

.kpi-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 19px;
  border-bottom: 1px solid #ECECEF;
}

.kpi-dish-row:last-child {
  border-bottom: 0;
}

.kpi-dish-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.kpi-dish-rank {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #F2F2F5;
  color: #6B6B75;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kpi-dish-rank.is-top {
  background: #F1EEFB;
  color: #5B2AC2;
}

.kpi-dish-name {
  flex: 1;
  min-width: 0;
  color: #1C1C1E;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-dish-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.kpi-dish-qty {
  color: #55555F;
  font-weight: 500;
}

.kpi-dish-amt {
  min-width: 48px;
  text-align: right;
  color: #8E8E93;
  font-size: 12px;
}

.kpi-dish-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #8E8E93;
}

.kpi-dish-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-top: 1px solid #ECECEF;
  background: #FAFAFC;
  color: #5B2AC2;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.kpi-dish-footer svg {
  width: 14px;
  height: 14px;
}

.home-view .kpi-card.kpi-card-empty {
  margin: 0;
  padding: 16px;
  gap: 10px;
  min-height: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.32) 0%, rgba(117, 55, 232, 0) 60%), #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(17, 17, 19, 0.16);
}

.home-view .kpi-card-empty .kpi-empty-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: #FFFFFF;
}

.home-view .kpi-card-empty .kpi-empty-desc {
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.kpi-blocked-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #111113;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.kpi-blocked-cta svg {
  width: 14px;
  height: 14px;
}

.home-view .greeting-card {
  margin: 14px 0 0;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(229, 229, 234, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.greeting-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.home-view .greeting-avatar {
  width: 34px;
  height: 34px;
  margin-right: 0;
  border-radius: 50%;
  background: #F1EEFB;
}

.home-view .greeting-avatar img {
  width: 28px;
  height: 28px;
}

.home-view .greeting-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: #1C1C1E;
}

.home-view .greeting-role {
  height: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F1EEFB;
  color: #5B2AC2;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  cursor: pointer;
}

.home-view .greeting-role:empty {
  display: none;
}

.home-view .greeting-status-row {
  margin-top: 3px;
  gap: 5px;
}

.home-view .greeting-desc {
  font-size: 12px;
  line-height: 17px;
  color: #55555F;
}

.greeting-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #6B6B75;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.greeting-cta svg {
  width: 14px;
  height: 14px;
  color: #B4B4BB;
}

.home-view .section-header {
  margin: 16px 2px 8px;
  gap: 8px;
}

.home-view .section-header .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #36363D;
}

.home-view .section-header .count {
  font-size: 12px;
  color: #6B6B75;
}

.home-todo-progress-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  color: #55555F;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-view .todo-card {
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(229, 229, 234, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}

.home-view .todo-row {
  min-height: 66px;
  padding: 12px 14px;
  gap: 12px;
}

.home-view .todo-row:not(:last-child)::after {
  left: 66px;
  right: 14px;
  background-color: #ECECEF;
}

.home-view .todo-icon-tile {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 0;
  border-radius: 12px;
  background: #F5F5F8;
}

.home-view .todo-row-completed .todo-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #F5F5F8;
}

.todo-overdue-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
  border: 2px solid #FFFFFF;
}

.todo-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.home-view .todo-title,
.home-view .todo-row-overdue .todo-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #1C1C1E;
}

.home-view .todo-subtitle,
.home-view .todo-row-overdue .todo-subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: #6B6B75;
}

.home-view .todo-row-overdue .todo-meta-time {
  color: #6B6B75;
}

.todo-overdue-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #FFF4E5;
  border: 1px solid #F5D8B3;
  color: #A85308;
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
  white-space: nowrap;
}

.home-view .btn-capsule-action {
  min-width: 54px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: #1C1C1E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.home-view .btn-capsule-action::before {
  display: none;
}

.home-view .btn-capsule-action:active {
  background: #2C2C2E;
}

.home-view .done-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  color: #55555F;
}

.home-view .done-subtitle {
  margin-top: 2px;
  font-size: 11px;
  line-height: 16px;
  color: #8E8E93;
}

.home-view .done-time {
  font-size: 11px;
  color: #8E8E93;
  font-variant-numeric: tabular-nums;
}

.home-view .icon-check-green {
  width: 18px;
  height: 18px;
  background: #EAF6EE;
  color: #237348;
}

.home-view .home-achuan-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #E5E5EA;
  background: rgba(255, 255, 255, 0.84);
  gap: 8px;
}

.home-view .home-tip-name {
  margin-right: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: #F1EEFB;
  color: #5B2AC2;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}

.home-view .greeting-card:active,
.home-view .todo-row-viewable:active,
.home-view .kpi-dish-footer:active,
.home-view .kpi-detail-tab:not(.is-active):active {
  background: var(--surface-inset);
}

.home-view .greeting-card:focus-visible,
.home-view .greeting-role:focus-visible,
.kpi-hero-cta:focus-visible,
.kpi-hero-amount-btn:focus-visible,
.kpi-detail-tab:focus-visible,
.kpi-dish-footer:focus-visible {
  outline: 2px solid var(--obsidian-black);
  outline-offset: -2px;
}

.kpi-hero-cta:focus-visible,
.kpi-hero-amount-btn:focus-visible {
  outline-color: #DDD6FE;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .home-top-board-btn,
  .home-view .date-chip,
  .kpi-detail-tab,
  .home-view .greeting-card {
    transition: none;
  }
}

/* ==========================================================================
   订货 & 菜品页顶部背景色统一（2026-11-24）：对齐「我的」「今天」极浅紫灰顶栏渐变
   ========================================================================== */
.scroll-container.order-page-host {
  background: linear-gradient(180deg, #EFEBF9 0%, #F4F2FA 126px, var(--page-bg) 236px);
}

.scroll-container.order-page-host.order-forecast-host {
  background: var(--page-bg);
}

.order-hub-home {
  padding-top: calc(var(--safe-top) + 16px);
}

.top-nav.recipe-top-nav {
  height: calc(var(--safe-top) + 56px);
  min-height: calc(var(--safe-top) + 56px);
  padding: var(--safe-top) 16px 0;
  background: #EFEBF9;
}

.top-nav.recipe-top-nav.dish-management-nav {
  background: var(--page-bg);
}

.scroll-container.recipes-page-host {
  background: linear-gradient(180deg, #EFEBF9 0%, #F4F2FA 96px, var(--page-bg) 196px);
}

.scroll-container.recipes-page-host:not(.inventory-scroll) {
  background: var(--page-bg);
}

#ios-topbar-tint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  height: 0;
  border: 0;
  outline: 0;
  pointer-events: none;
  background-color: var(--ios-top-bg, var(--page-bg));
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow: none;
  transition: none;
}

@media (max-width: 480px) {
  body {
    background-color: var(--ios-top-bg, var(--page-bg));
  }
}

@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    #ios-topbar-tint {
      height: 11px;
    }

    html[data-topbar-refresh] #ios-topbar-tint {
      height: 12px;
    }
  }
}

.recipes-view.recipe-catalog-page {
  background: transparent;
}

.recipe-catalog-page .recipe-dish-categories {
  background: transparent;
}

.recipe-catalog-page .recipe-dish-category.active {
  background: rgba(28, 28, 30, 0.06);
}

.recipe-catalog-page .recipe-mode-switch {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(28, 28, 30, 0.06);
}

/* ==========================================================================
   订货 & 菜品六页优化改版（2026-11-24）：统一 16px 侧边距 / 74px 左栏 / 炭黑微紫光 / 暖琥珀
   ========================================================================== */
.h5-amber-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid #F5D8B3;
  border-radius: 6px;
  background: #FFF4E5;
  color: #A85308;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

.h5-amber-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #D97706;
}

.order-cat-collapse-btn,
.recipe-cat-collapse-btn {
  display: block;
  width: calc(100% - 10px);
  margin: 8px 5px 0;
  padding: 6px 2px;
  border: 1px dashed #D6D6DE;
  border-radius: 8px;
  background: transparent;
  color: #8E8E93;
  font: inherit;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.order-cat-collapse-btn:active,
.recipe-cat-collapse-btn:active {
  background: rgba(28, 28, 30, 0.04);
}

/* 1. 订货首页 */
.order-hub-home {
  padding: calc(var(--safe-top) + 16px) 0 0;
  gap: 18px;
}

.order-hub-home .order-hub-primary-card {
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.31) 0%, rgba(117, 55, 232, 0) 58%), #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.14);
}

.order-hub-home .order-hub-status {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #E4E4EA;
  font-size: 12px;
}

.order-hub-home .order-hub-meta {
  color: rgba(255, 255, 255, 0.74);
  line-height: 19px;
}

.order-hub-home .order-hub-flow-summary {
  border-top-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  gap: 7px;
}

.order-hub-home .order-hub-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.order-hub-home .order-hub-flow-node i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.24);
  color: #DDD6FE;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.order-hub-home .order-hub-flow-sep {
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.order-hub-home .order-hub-sales-warning,
.order-hub-home .order-hub-sales-warning.is-secondary {
  width: calc(100% - 12px);
  margin: -10px 6px 0;
  padding: 18px 12px 10px;
  border: 1px solid #F5D8B3;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #FFF4E5;
  color: #A85308;
}

.order-hub-home .order-hub-sales-info {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.14);
  color: #D97706;
}

.order-hub-home .order-hub-sales-info svg {
  width: 14px;
  height: 14px;
}

.order-hub-home .order-hub-sales-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: #3D2812;
}

.order-hub-home .order-hub-sales-copy > span {
  font-size: 12px;
  color: #8A5A28;
}

.order-hub-home .order-hub-sales-action {
  color: #A85308;
  font-size: 12px;
  font-weight: 600;
}

.order-hub-home .order-hub-list-card {
  padding: 0 14px;
  border: 1px solid rgba(229, 229, 234, 0.78);
}

.order-hub-home .order-hub-entry-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #F5F5F8;
}

.order-hub-home .order-hub-order-state {
  border-radius: 6px;
  background: #F2F2F6;
  color: #494950;
  font-size: 11px;
  font-weight: 600;
}

/* 2 & 3 & confirm 共用步骤条 & 二级头尾 */
.order-forecast-page .order-forecast-steps.order-flow-steps,
.order-stock-page .order-stock-steps.order-flow-steps,
.order-confirm-page .order-confirm-steps.order-flow-steps {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 16px 10px;
  font-size: 11px;
  line-height: 16px;
}

.order-forecast-page .order-flow-steps .order-step-chip,
.order-stock-page .order-flow-steps .order-step-chip,
.order-confirm-page .order-flow-steps .order-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: #EAEAEF;
  color: #6B6B75;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.order-forecast-page .order-flow-steps .order-step-chip.is-active,
.order-stock-page .order-flow-steps .order-step-chip.is-active,
.order-confirm-page .order-flow-steps .order-step-chip.is-active {
  background: #111113;
  color: #FFFFFF;
  font-weight: 600;
}

.order-forecast-page .order-flow-steps .order-step-chip.is-done,
.order-stock-page .order-flow-steps .order-step-chip.is-done,
.order-confirm-page .order-flow-steps .order-step-chip.is-done {
  background: #EAF6EE;
  color: #237348;
  font-weight: 600;
  cursor: pointer;
}

.order-forecast-page .order-flow-steps .order-step-sep,
.order-stock-page .order-flow-steps .order-step-sep,
.order-confirm-page .order-flow-steps .order-step-sep {
  color: #C4C4CC;
  font-size: 11px;
}

/* 2. 明日销量预测 */
.order-forecast-page .order-forecast-header,
.order-stock-page .order-stock-header {
  height: calc(var(--safe-top) + 52px);
  padding: var(--safe-top) 56px 0;
}

.order-forecast-page .order-forecast-header button,
.order-stock-page .order-stock-header button {
  left: 6px;
  top: calc(var(--safe-top) + 6px);
  width: 40px;
  height: 40px;
}

.order-forecast-page .order-forecast-summary {
  margin: 0 16px 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.31) 0%, rgba(117, 55, 232, 0) 58%), #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.14);
}

.order-forecast-page .order-forecast-summary-main p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.order-forecast-page .order-forecast-reasons {
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top-color: rgba(255, 255, 255, 0.11);
}

.order-forecast-page .order-forecast-reasons h2 {
  color: #DDD6FE;
  font-size: 12px;
  font-weight: 600;
}

.order-forecast-page .order-forecast-reasons-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.order-forecast-page .order-forecast-reasons-text {
  flex: 1;
  min-width: 0;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.76);
}

.order-forecast-page .order-forecast-reasons li,
.order-forecast-page .order-forecast-reasons p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 17px;
}

.order-forecast-page .order-forecast-reasons-toggle[aria-expanded="false"],
.order-forecast-page .order-forecast-reasons-toggle {
  position: static;
  flex: 0 0 auto;
  height: auto;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #E4E4EA;
  font-size: 11px;
  line-height: 16px;
}

.order-forecast-page .order-forecast-reasons-toggle[aria-expanded="false"]::before {
  content: none;
}

.order-forecast-page .order-forecast-list-hint {
  margin: 0 16px 8px;
  font-size: 12px;
}

.order-forecast-page .order-forecast-categories {
  flex: 0 0 74px;
  width: 74px;
  background: transparent;
}

.order-forecast-page .order-forecast-category.is-active {
  background: rgba(28, 28, 30, 0.06);
  font-weight: 600;
}

.order-forecast-page .order-forecast-list {
  padding: 0 16px 20px 10px;
}

.order-forecast-page .order-forecast-group {
  padding: 12px 14px;
  border: 1px solid rgba(229, 229, 234, 0.75);
  border-radius: 14px;
}

.order-forecast-page .order-forecast-item-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1EEFB;
  color: #5B2AC2;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}

.order-forecast-page .order-forecast-row.is-adjusted .order-forecast-item-qty {
  color: #5B2AC2;
}

.order-forecast-page .order-forecast-footer,
.order-stock-page .order-stock-footer {
  padding: 10px 16px max(14px, var(--safe-bottom));
  border-top: 1px solid #EAEAEF;
  background: #FFFFFF;
}

.order-forecast-page .order-forecast-footer .btn-black,
.order-stock-page .order-stock-footer button {
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* 3. 盘点 */
.order-stock-page .order-stock-summary {
  margin: 0 16px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 229, 234, 0.78);
  border-radius: 14px;
}

.order-stock-page .order-stock-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.order-stock-page .order-stock-progress-label {
  color: #6B6B75;
}

.order-stock-page .order-stock-progress-head strong {
  color: #111113;
  font-weight: 600;
}

.order-stock-page .order-stock-progress-track {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ECECF2;
  overflow: hidden;
}

.order-stock-page .order-stock-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111113;
}

.order-stock-page .order-stock-summary-diff {
  margin-top: 7px;
  color: #A85308;
  font-size: 12px;
  line-height: 18px;
}

.order-stock-page .order-stock-search {
  margin: 0 16px 10px;
  gap: 8px;
}

.order-stock-page .order-stock-search-box {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #8E8E93;
}

.order-stock-page .order-stock-search-box svg {
  flex: 0 0 16px;
}

.order-stock-page .order-stock-search-box input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1C1C1E;
  font-size: 14px;
}

.order-stock-page .order-stock-search-box #stock-search-clear {
  flex: 0 0 auto;
  color: #6B6B75;
  font-size: 12px;
  cursor: pointer;
}

.order-stock-page .order-stock-filter-chip {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #DCDCE4;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1C1E;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.order-stock-page .order-stock-filter-chip.is-active {
  border-color: #111113;
  background: #111113;
  color: #FFFFFF;
}

.order-stock-page .order-stock-categories {
  flex: 0 0 74px;
  width: 74px;
}

.order-stock-page .order-stock-category {
  min-height: 58px;
  padding: 10px 4px;
  font-size: 13px;
  line-height: 18px;
}

.order-stock-page .order-stock-category.is-active {
  background: rgba(28, 28, 30, 0.06);
}

.order-stock-page .order-stock-category small {
  margin-top: 3px;
  font-size: 11px;
}

.order-stock-page .order-stock-list {
  padding: 0 16px 20px 10px;
}

.order-stock-page .order-stock-group {
  padding: 12px 14px;
  border: 1px solid rgba(229, 229, 234, 0.75);
  border-radius: 14px;
}

.order-stock-page .order-stock-copy .has-difference {
  color: #6B6B75;
}

.order-stock-page .order-stock-quantity {
  width: 76px;
}

.order-stock-page .order-stock-diff-edit {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 2px 7px;
  border: 1px solid #F5D8B3;
  border-radius: 6px;
  background: #FFF4E5;
  color: #A85308;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
}

/* 4. 菜品首页 */
.recipes-view.recipe-catalog-page > .recipe-check-card {
  margin: 10px 16px;
  padding: 0 14px;
  border: 1px solid rgba(229, 229, 234, 0.78);
  border-radius: 16px;
}

.recipe-catalog-page .recipe-check-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 11px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.recipe-catalog-page .recipe-check-row + .recipe-check-row {
  border-top: 1px solid #ECECEF;
}

.recipe-catalog-page .recipe-check-row > span:first-child.recipe-check-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.recipe-catalog-page .recipe-check-row strong {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
}

.recipe-catalog-page .recipe-check-row small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: #6B6B75;
}

.recipe-catalog-page .recipe-check-row > span:last-child.recipe-check-aside {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recipe-catalog-page .recipe-check-arrow {
  display: grid;
  place-items: center;
  color: #AEAEB6;
}

.recipe-catalog-page .recipe-search-field {
  min-height: 40px;
  margin: 10px 16px;
  padding: 0 11px;
}

.recipe-catalog-page .recipe-search-field input {
  height: 38px;
  font-size: 14px;
}

.recipe-catalog-page .recipe-dish-categories {
  flex: 0 0 74px;
  width: 74px;
}

.recipe-catalog-page .recipe-dish-catalog .recipe-dish-list,
.recipe-catalog-page .recipe-dish-catalog .ingredient-card.ingredient-list {
  padding: 0 16px 24px 10px;
}

.recipe-catalog-page .recipe-dish-group,
.recipe-catalog-page .ingredient-rows {
  padding: 12px 14px;
  border: 1px solid rgba(229, 229, 234, 0.75);
  border-radius: 14px;
}

.recipe-catalog-page .dish-list-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* 5. 对应检查 */
.correspondence-page {
  background: var(--page-bg);
}

.correspondence-header {
  position: relative;
  height: calc(var(--safe-top) + 52px);
  min-height: calc(var(--safe-top) + 52px);
  padding: var(--safe-top) 56px 0;
  justify-content: center;
}

.correspondence-header > strong {
  font-size: 17px;
  font-weight: 600;
  color: #1C1C1E;
}

.correspondence-back {
  position: absolute;
  left: 6px;
  top: calc(var(--safe-top) + 6px);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: #1C1C1E;
  cursor: pointer;
}

.correspondence-header-spacer {
  display: none;
}

.correspondence-scroll {
  padding: 4px 16px calc(24px + var(--safe-bottom));
}

.correspondence-overview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  border-radius: 16px;
  background: radial-gradient(circle at 92% 10%, rgba(117, 55, 232, 0.31) 0%, rgba(117, 55, 232, 0) 58%), #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.14);
  color: #FFFFFF;
}

.correspondence-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.correspondence-overview-copy > span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
}

.correspondence-overview-copy > strong {
  display: block;
  margin-top: 2px;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: 0;
  color: #FFFFFF;
}

.correspondence-overview-copy > small {
  display: block;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.correspondence-overview-count {
  flex: 0 0 auto;
  min-width: 72px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 244, 229, 0.14);
  border: 1px solid rgba(245, 216, 179, 0.34);
}

.correspondence-overview-count b {
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: #FCD39D;
}

.correspondence-overview-count span {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 244, 229, 0.85);
}

.correspondence-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.correspondence-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #A78BFA 0%, #FFFFFF 100%);
}

.correspondence-list-head {
  margin: 14px 0 8px;
}

.correspondence-list-head > strong {
  font-size: 13px;
  font-weight: 600;
  color: #55555F;
}

.correspondence-search {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
}

.correspondence-search > span {
  display: grid;
  place-items: center;
  color: #8E8E93;
}

.correspondence-search input {
  font-size: 14px;
}

.correspondence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.correspondence-row {
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid rgba(229, 229, 234, 0.78);
  border-radius: 14px;
  background: #FFFFFF;
}

.correspondence-row:last-child {
  border-bottom: 1px solid rgba(229, 229, 234, 0.78);
}

.correspondence-row-main > strong {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1E;
}

.correspondence-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.correspondence-row-sales {
  font-size: 12px;
  color: #6B6B75;
}

.correspondence-type-btn,
.correspondence-view-btn {
  width: auto;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
}

.correspondence-type-btn,
.correspondence-type-btn.is-goods {
  border: 1px solid #DCDCE4;
  background: #FAFAFC;
  color: #55555F;
  font-weight: 500;
}

.correspondence-view-btn {
  padding: 0 12px;
  border: 0;
  background: #111113;
  color: #FFFFFF;
  font-weight: 600;
}

.correspondence-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #55555F;
  font-size: 12px;
  line-height: 17px;
}

.correspondence-hint b {
  flex: 0 0 auto;
  margin-right: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1EEFB;
  color: #5B2AC2;
  font-size: 11px;
  font-weight: 600;
}

/* 6. 菜品详情 */
.catalog-item-editor .dish-editor-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--safe-top) + 52px);
  min-height: calc(var(--safe-top) + 52px);
  padding: var(--safe-top) 76px 0;
}

.catalog-item-editor .dish-editor-back {
  top: calc(var(--safe-top) + 6px);
  left: 6px;
  width: 40px;
  height: 40px;
}

.catalog-item-editor .dish-editor-header-action {
  position: absolute;
  right: 16px;
  top: calc(var(--safe-top) + 6px);
  height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #6B6B75;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-item-editor .dish-editor-body {
  padding: 8px 16px 24px;
  gap: 10px;
}

.catalog-item-editor .dish-editor-section-title {
  margin: 4px 2px 0;
  font-size: 12px;
  color: #6B6B75;
}

.catalog-item-editor .dish-editor-fields,
.catalog-item-editor .dish-editor-association-card,
.catalog-item-editor .dish-editor-sale,
.catalog-item-editor .dish-editor-combo {
  border: 1px solid rgba(229, 229, 234, 0.78);
}

.catalog-item-editor .dish-editor-field strong.is-placeholder {
  color: #8E8E93;
  font-weight: 400;
}

.catalog-item-editor .dish-editor-amber-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #F5D8B3;
  border-radius: 11px;
  background: #FFF4E5;
  color: #A85308;
  font: inherit;
  font-size: 12px;
  line-height: 17px;
  text-align: left;
  cursor: pointer;
}

.catalog-item-editor .dish-editor-amber-guide strong {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-item-editor .dish-editor-footer {
  padding: 10px 16px max(14px, var(--safe-bottom));
  border-top: 1px solid #ECECEF;
  background: #FFFFFF;
}

.catalog-item-editor .dish-editor-save:disabled {
  background: #D6D6DC;
  color: #8E8E93;
}

@media (max-width: 360px) {
  .order-forecast-page .order-forecast-steps.order-flow-steps,
  .order-stock-page .order-stock-steps.order-flow-steps,
  .order-confirm-page .order-confirm-steps.order-flow-steps {
    gap: 4px;
  }
  .order-forecast-page .order-flow-steps .order-step-chip,
  .order-stock-page .order-flow-steps .order-step-chip,
  .order-confirm-page .order-flow-steps .order-step-chip {
    padding: 4px 8px;
  }
}

/* ==========================================================================
   五 Tab 架构收口（2026-11-24）：今天 / 库存 / 阿川 / 订货 / 我的
   ========================================================================== */
.inventory-tab-nav .inventory-tab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.inventory-tab-nav #btn-recipe-add.nav-action-strong {
  position: static;
  right: auto;
  min-width: auto;
  height: 32px;
  padding: 0 8px;
}

.top-nav.subpage-nav.inventory-detail-nav {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
}

.inventory-detail-nav .subpage-text-action {
  width: auto;
  white-space: nowrap;
  padding: 0 4px;
}

.top-nav.subpage-nav.receive-history-nav {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
}

.receive-history-nav .subpage-text-action {
  width: auto;
  white-space: nowrap;
  padding: 0 4px;
}

.inventory-tab-nav .nav-action-loss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--status-red-bg);
  color: var(--status-red-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.scroll-container.recipes-page-host.inventory-scroll .inventory-current {
  background: transparent;
}

.inventory-status-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-status-tip-text {
  flex: 1;
  min-width: 0;
}

.inventory-status-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.order-detail-page .order-detail-footer {
  gap: 8px;
}

.order-detail-page .order-detail-export.order-detail-export--secondary {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #E4E4EA;
  border-radius: 10px;
  background: #F7F7F9;
  color: #252529;
  font-weight: 600;
  white-space: nowrap;
}

.order-detail-page .order-detail-receive {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #1C1C1E;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.receive-history-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #E5E5EA;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1C1C1E;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* ==========================================================================
   库存工作台（2026-11-24 分段健康条+单行搜索筛选+2x2细圆环版）
   ========================================================================== */
.inv-overview-page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 0 0;
  gap: 8px;
}

.inv-overview-page.is-empty {
  padding: 16px;
  justify-content: center;
}

.inv-kpi-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 9px;
  margin: 0 16px;
  padding: 11px 12px 10px;
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 14px;
  background: #FFFFFF;
}

.inv-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inv-kpi-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.inv-kpi-total span {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #6E6E78;
}

.inv-kpi-total strong {
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  color: #1C1C1E;
}

.inv-kpi-total.is-active {
  background: #F4F1FA;
  border-color: #E2DAF4;
}

.inv-kpi-total.is-active span {
  color: #1C1C1E;
  font-weight: 600;
}

.inv-records-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.inv-records-link:active {
  color: #1C1C1E;
}

.inv-records-link[hidden] {
  display: none;
}

.inv-health-bar {
  display: flex;
  width: 100%;
  height: 6px;
  gap: 2px;
  border-radius: 999px;
  background: #ECEAF3;
  overflow: hidden;
}

.inv-health-seg {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  transition: opacity 160ms ease;
}

.inv-health-seg.is-urgent { background: #DE5D7A; }
.inv-health-seg.is-tight { background: #E09850; }
.inv-health-seg.is-sufficient { background: #4AA896; }
.inv-health-seg.is-pending { background: #D8D5E5; }
.inv-health-seg.is-dim { opacity: 0.25; }

.inv-kpi-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.inv-kpi-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #F1F1F5;
  border-radius: 9px;
  background: #FAFAFC;
  font: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.inv-kpi-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #52525B;
  white-space: nowrap;
}

.inv-kpi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}

.inv-kpi-dot.is-urgent { background: #DE5D7A; }
.inv-kpi-dot.is-tight { background: #E09850; }
.inv-kpi-dot.is-sufficient { background: #4AA896; }

.inv-kpi-stat strong {
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
  color: #1C1C1E;
}

.inv-kpi-stat strong.is-red { color: #C84664; }
.inv-kpi-stat strong.is-amber { color: #C47B33; }
.inv-kpi-stat strong.is-green { color: #358878; }

.inv-kpi-stat.is-warn.is-active {
  background: #FDF2F5;
  border-color: #F2D3DC;
}

.inv-kpi-stat.is-tight.is-active {
  background: #FDF7F0;
  border-color: #F2DFC8;
}

.inv-kpi-stat.is-good.is-active {
  background: #F1F8F6;
  border-color: #CDE6E0;
}

.inv-toolbar-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 0 16px;
}

.inv-search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #E5E5EA;
  border-radius: 9px;
  background: #FFFFFF;
  color: #8E8E93;
  gap: 5px;
}

.inv-search-input-wrap:focus-within {
  border-color: #1C1C1E;
}

.inv-search-input-wrap svg {
  flex: 0 0 14px;
}

.inv-search-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 13px;
}

.inv-search-input-wrap input::placeholder {
  color: #9A9AA3;
}

.inv-search-clear {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #E5E5EA;
  color: #52525B;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.inv-search-clear[hidden] {
  display: none;
}

.inv-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.inv-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 34px;
  padding: 0 7px;
  border: 1px solid #E5E5EA;
  border-radius: 9px;
  background: #FFFFFF;
  color: #27272A;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.inv-filter-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-filter-pill.is-active {
  border-color: #1C1C1E;
  background: #1C1C1E;
  color: #FFFFFF;
  font-weight: 600;
}

.inv-split-layout {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  gap: 8px;
  padding-right: 12px;
}

.inv-side-cats {
  flex: 0 0 74px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}

.inv-side-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 54px;
  padding: 8px 4px 8px 6px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #6E6E78;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease, color 120ms ease;
}

.inv-side-cat small {
  font-size: 12px;
  line-height: 16px;
  color: inherit;
  opacity: 0.85;
}

.inv-side-cat.is-zero {
  opacity: 0.45;
}

.inv-side-cat:focus-visible {
  outline: 2px solid #1C1C1E;
  outline-offset: -2px;
}

.inv-side-cat[aria-current="true"] {
  background: rgba(117, 55, 232, 0.07);
  color: #1C1C1E;
  font-weight: 600;
  opacity: 1;
}

.inv-side-cat[aria-current="true"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #1C1C1E;
}

.inv-side-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}

.inv-list-card {
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}

.inv-list-body {
  display: flex;
  flex-direction: column;
}

.inv-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #F1F1F4;
  background: #FFFFFF;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease;
}

.inv-list-row:last-child {
  border-bottom: 0;
}

.inv-list-row:active:not(:disabled) {
  background: #F4F4F6;
}

.inv-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.inv-ring-svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

.inv-ring-track {
  fill: none;
  stroke: #ECEAF3;
  stroke-width: 2;
}

.inv-ring-arc {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.inv-ring-arc.is-urgent { stroke: #DE5D7A; }
.inv-ring-arc.is-tight { stroke: #E09850; }
.inv-ring-arc.is-sufficient { stroke: #4AA896; }

.inv-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inv-row-name {
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 600;
  color: #1C1C1E;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-row-sub {
  font-size: 11.5px;
  line-height: 15px;
  color: #8E8E93;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-row-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.inv-row-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.inv-row-actual {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 15px;
  line-height: 20px;
  color: #1C1C1E;
  white-space: nowrap;
}

.inv-row-actual b { font-weight: 700; }
.inv-row-actual small { font-size: 11px; font-weight: 500; color: #6E6E78; }
.inv-row-actual.is-muted b { color: #9A9AA3; font-size: 13px; font-weight: 500; }

.inv-row-diff {
  font-size: 11.5px;
  line-height: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.inv-row-diff.is-alert { color: #C84664; }
.inv-row-diff.is-tight { color: #C47B33; }
.inv-row-diff.is-good { color: #358878; }
.inv-row-diff.is-muted { color: #9A9AA3; }

.inv-row-chevron {
  flex: 0 0 14px;
  color: #C7C7CC;
}

.inv-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  text-align: center;
}

.inv-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1E;
}

.inv-option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 56dvh;
  overflow-y: auto;
  margin-top: 10px;
}

.inv-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ECECEF;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1C1E;
  text-align: left;
  cursor: pointer;
}

.inv-option-row strong {
  font-size: 14.5px;
  font-weight: 600;
}

.inv-option-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #1C1C1E;
}

.inv-option-count {
  font-style: normal;
  font-size: 13px;
  color: #71717A;
}

.inv-option-row.is-selected {
  border-color: #1C1C1E;
  background: #F4F4F6;
}

/* ─── 菜品销量预测全部列表页（dish-forecast） ─── */
.dish-forecast-scroll {
  padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}

.dish-forecast-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.df-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.df-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #E5E5EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #8E8E93;
  gap: 6px;
}

.df-search-wrap:focus-within {
  border-color: #1C1C1E;
}

.df-search-wrap svg {
  flex: 0 0 14px;
}

.df-search-wrap input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 13px;
}

.df-search-wrap input::placeholder {
  color: #9A9AA3;
}

.df-search-clear {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #E5E5EA;
  color: #52525B;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.df-search-clear[hidden] {
  display: none;
}

.df-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #E5E5EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #27272A;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.df-sort-pill.is-active {
  border-color: #1C1C1E;
  background: #1C1C1E;
  color: #FFFFFF;
  font-weight: 600;
}

.df-cat-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1px 0;
}

.df-cat-strip::-webkit-scrollbar {
  display: none;
}

.df-cat-strip[hidden] {
  display: none;
}

.df-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border: 1px solid #E5E5EA;
  border-radius: 999px;
  background: #FFFFFF;
  color: #52525B;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.df-cat-pill small {
  font-size: 11px;
  opacity: 0.72;
}

.df-cat-pill.is-zero {
  opacity: 0.5;
}

.df-cat-pill.is-active {
  border-color: #1C1C1E;
  background: #1C1C1E;
  color: #FFFFFF;
  font-weight: 600;
}

.df-cat-pill.is-active small {
  opacity: 0.85;
}

.df-list-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.df-result-count {
  padding: 0 2px;
  font-size: 12px;
  line-height: 16px;
  color: #6E6E78;
}

.df-list-card {
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}

.df-list-body {
  display: flex;
  flex-direction: column;
}

.df-group-sec + .df-group-sec {
  border-top: 6px solid #F5F5F7;
}

.df-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #FAFAFC;
  border-bottom: 1px solid #ECECEF;
  font-size: 12px;
  font-weight: 600;
  color: #52525B;
}

.df-group-head small {
  font-size: 11px;
  font-weight: 500;
  color: #8E8E93;
}

.df-dish-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #F1F1F4;
  background: #FFFFFF;
  font: inherit;
  text-align: left;
  box-sizing: border-box;
}

.df-dish-row:last-child {
  border-bottom: 0;
}

.df-dish-rank {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #F2F2F5;
  color: #6B6B75;
  font-size: 11px;
  font-weight: 600;
}

.df-dish-rank.is-top {
  background: #F1EEFB;
  color: #5B2AC2;
}

.df-dish-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.df-dish-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.df-dish-name {
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 600;
  color: #1C1C1E;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.df-badge {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

.df-badge-adjusted {
  background: #F1EEFB;
  color: #5B2AC2;
}

.df-badge-zero {
  background: #F2F2F5;
  color: #8E8E93;
}

.df-dish-meta {
  font-size: 11.5px;
  line-height: 15px;
  color: #8E8E93;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.df-dish-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.df-dish-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.df-dish-qty {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 15px;
  line-height: 20px;
  color: #1C1C1E;
  white-space: nowrap;
}

.df-dish-qty b {
  font-weight: 700;
}

.df-dish-qty small {
  font-size: 11px;
  font-weight: 500;
  color: #6E6E78;
}

.df-dish-qty.is-zero b,
.df-dish-qty.is-zero small {
  color: #9A9AA3;
  font-weight: 500;
}

.df-dish-amt {
  font-size: 11.5px;
  line-height: 15px;
  color: #6E6E78;
  white-space: nowrap;
}

.df-dish-amt.is-unpriced {
  color: #A1A1AA;
}

.df-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px;
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 14px;
  background: #FFFFFF;
  text-align: center;
}

.df-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1E;
}

.df-empty-desc {
  font-size: 12.5px;
  line-height: 18px;
  color: #8E8E93;
}
