/* ==========================================================================
   app.css — 布局与组件样式
   依赖 tokens.css 中的设计令牌
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 宣纸颗粒质感（极淡，不使用毛玻璃） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(46, 36, 24, 0.035) 1px, transparent 1px);
  background-size: 7px 7px;
}

#app-shell { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--yellow-600);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* ============================ 顶部品牌栏 ============================ */

.brandbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding: var(--s-3) var(--s-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-2);
  background: var(--red-500);
  color: var(--surface);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 247, 0.35);
  transform: rotate(-2deg);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-600);
  letter-spacing: 0.12em;
}

.top-tabs {
  display: flex;
  gap: var(--s-1);
  margin-left: auto;
}

.tab-btn {
  min-height: var(--touch);
  padding: 0 var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn:hover { background: var(--surface-sunken); color: var(--ink-900); }

.tab-btn.is-active {
  background: var(--yellow-100);
  border-color: var(--yellow-500);
  color: var(--ink-900);
  font-weight: 600;
}

.brandbar-actions { display: flex; gap: var(--s-2); }

/* ============================ 页面主体 ============================ */

.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-5) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* 视图 / 面板根节点：每次渲染重建，保证事件监听不累积 */
.view-root,
.panel-root {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* ============================ 卡片 ============================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-1);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  border-radius: var(--r-pill);
  background: var(--yellow-500);
}

.card-sub {
  font-size: 12px;
  color: var(--ink-600);
}

.section-note {
  font-size: 12px;
  color: var(--ink-600);
  margin-top: var(--s-1);
}

/* ============================ 二级 Tab ============================ */

.sub-tabs {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
}

.sub-tab {
  min-height: var(--touch);
  padding: 0 var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

.sub-tab:hover { background: var(--surface-sunken); color: var(--ink-900); }

.sub-tab.is-active {
  background: var(--surface-sunken);
  border-color: var(--line);
  color: var(--ink-900);
  font-weight: 600;
}

/* ============================ 表单 ============================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.field { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }

.field-span-2 { grid-column: span 2; }
.field-span-full { grid-column: 1 / -1; }

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
}

.field-label .req { color: var(--red-500); margin-left: 2px; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 10px var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea { min-height: 72px; resize: vertical; }

.input:hover,
.select:hover { border-color: var(--ink-400); }

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.16);
  outline: none;
}

.select:disabled,
.input:disabled {
  background: var(--surface-sunken);
  color: var(--ink-400);
  cursor: not-allowed;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(200, 50, 43, 0.08);
}

.error-text {
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
}

.hint {
  font-size: 12px;
  color: var(--ink-600);
  min-height: 16px;
}

.hint strong { color: var(--ink-900); font-weight: 600; }
.hint.is-low strong { color: var(--warning); }
.hint.is-out strong { color: var(--danger); }
/* 金额填 0（赠送）时的提示色：与「偏低 / 断货」区分，用金色提示而非告警色 */
.hint.is-gift { color: #8A6400; font-weight: 500; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-top: var(--s-1);
}

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: var(--touch);
  padding: 0 var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--r-2);
  background: var(--surface-sunken);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--line); }

.btn-primary {
  background: var(--red-500);
  color: var(--surface);
  border-color: var(--red-500);
}

.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); }

.btn-secondary {
  background: var(--yellow-500);
  border-color: var(--yellow-500);
  color: var(--ink-900);
  font-weight: 600;
}

.btn-secondary:hover { background: var(--yellow-600); border-color: var(--yellow-600); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-600);
}

.btn-ghost:hover { background: var(--surface-sunken); color: var(--ink-900); }

.btn-danger { background: var(--red-500); border-color: var(--red-500); color: var(--surface); }
.btn-danger:hover { background: var(--red-700); border-color: var(--red-700); }

.btn-sm { min-height: 34px; padding: 0 var(--s-3); font-size: 13px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================ 工具条 / 分段控件 ============================ */

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.toolbar-group { display: flex; align-items: center; gap: var(--s-2); }

.toolbar-label { font-size: 13px; color: var(--ink-600); }

.toolbar .input,
.toolbar .select { width: auto; min-width: 160px; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.seg-btn {
  min-height: 36px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.seg-btn:hover { color: var(--ink-900); }

.seg-btn.is-active {
  background: var(--surface);
  color: var(--ink-900);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

/* ============================ 表格 ============================ */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  position: sticky;
  top: 0;
  padding: 10px var(--s-3);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
  color: var(--ink-600);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px var(--s-3);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) { background: rgba(245, 179, 1, 0.045); }
.data-table tbody tr:hover { background: rgba(245, 179, 1, 0.10); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tfoot td {
  padding: 10px var(--s-3);
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  font-weight: 600;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-600); }
.nowrap { white-space: nowrap; }

/* ============================ 标签 / 徽章 ============================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-ok { background: rgba(47, 125, 93, 0.12); color: #27704F; }
.tag-warn { background: rgba(201, 138, 0, 0.16); color: #96660A; }
.tag-bad { background: rgba(200, 50, 43, 0.12); color: var(--red-700); }
.tag-gold { background: var(--yellow-100); color: #8A6400; }
/* 赠送（销售金额 0 元）：与「超卖」红色告警区分，用金色中性标签 */
.tag-gift { background: var(--yellow-100); color: #8A6400; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  font-size: 12px;
}

.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-1); }

.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.chip-remove:hover { background: var(--red-100); color: var(--red-700); }

/* ============================ 统计卡 ============================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.stat-card {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow-500);
  border-radius: var(--r-2);
  background: var(--surface);
}

.stat-card.is-ink { border-left-color: var(--ink-400); }
.stat-card.is-red { border-left-color: var(--red-500); }

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--ink-600);
  letter-spacing: 0.04em;
}

.stat-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.stat-unit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-600);
  margin-left: 4px;
}

/* ============================ 空状态 ============================ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-4);
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  background: var(--surface-sunken);
  text-align: center;
  color: var(--ink-600);
}

.empty-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.empty-desc { font-size: 13px; max-width: 420px; }

/* ============================ 今日录入列表 ============================ */

.today-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.today-item {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-sunken);
  font-size: 13px;
}

.today-item .qty {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red-700);
}

/* 今日记录的销售金额：比渠道等次要信息更醒目，便于一眼核对 */
.today-item .today-amount {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-900);
}

/* ============================ 展开行 ============================ */

.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--ink-600);
  font-size: 12px;
  cursor: pointer;
}

.expand-toggle:hover { background: var(--yellow-100); color: var(--ink-900); }

.expand-toggle .caret { transition: transform 0.15s ease; display: inline-block; }
.expand-toggle.is-open .caret { transform: rotate(90deg); }

.detail-row td { background: rgba(245, 179, 1, 0.06); }

.detail-panel { padding: var(--s-2) 0; }

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-600);
}

.detail-list li { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.detail-list .detail-date { font-variant-numeric: tabular-nums; color: var(--ink-900); }

/* ============================ Toast ============================ */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 10px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: var(--surface);
  font-size: 13px;
  box-shadow: var(--shadow-2);
  max-width: 88vw;
}

.toast.is-error { background: var(--red-700); }
.toast.is-warn { background: var(--yellow-600); color: var(--ink-900); }

/* ============================ 模态框 ============================ */

.modal-host[hidden] { display: none; }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  background: rgba(46, 36, 24, 0.44);
}

.modal {
  width: 100%;
  max-width: 440px;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.modal h3 { font-size: 16px; margin-bottom: var(--s-2); }

.modal-body {
  font-size: 14px;
  color: var(--ink-600);
  white-space: pre-line;
  line-height: 1.7;
}

.modal-body strong { color: var(--ink-900); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

/* ============================ 报表专用 ============================ */

.report-period {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
}

.print-title { display: none; }

.print-meta {
  font-size: 12px;
  color: var(--ink-600);
  margin-bottom: var(--s-3);
}

.backup-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================ 响应式 ============================ */

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-span-2 { grid-column: span 2; }
  .app-main { padding: var(--s-4) var(--s-4) var(--s-6); }
}

@media (max-width: 768px) {
  .brandbar { gap: var(--s-3); padding: var(--s-3); }
  .top-tabs { margin-left: 0; width: 100%; overflow-x: auto; }
  .tab-btn { flex: 1 1 auto; padding: 0 var(--s-3); }
  .brandbar-actions { width: 100%; }
  .brandbar-actions .btn { width: 100%; }
  .app-main { padding: var(--s-3) var(--s-3) var(--s-6); gap: var(--s-3); }
  .card { padding: var(--s-3) var(--s-3); border-radius: var(--r-2); }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: span 1; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar .input,
  .toolbar .select { width: 100%; }
  .toolbar-group { flex: 1 1 100%; }
  .data-table { min-width: 600px; }
  .modal { padding: var(--s-4); }

  /* 触控目标不小于 44px */
  .btn-sm { min-height: 44px; }
  .seg-btn { min-height: 40px; }
  .expand-toggle { min-height: 40px; }
}

/* ============================ 打印 ============================ */

@media print {
  body { background: var(--surface); }
  body::before { display: none; }

  .brandbar,
  .no-print,
  .toast-host,
  .modal-host,
  .sub-tabs,
  .toolbar,
  .btn,
  .form-actions { display: none !important; }

  .app-main { max-width: none; padding: 0; gap: var(--s-3); }

  .card {
    border: 1px solid var(--line);
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-title {
    display: block;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--s-1);
    text-align: center;
  }

  .table-wrap { overflow: visible; border: 0; }
  .data-table { min-width: 0; font-size: 12px; }
  .data-table th { position: static; }
  .data-table tbody tr:nth-child(even) { background: transparent; }
  .expand-toggle { display: none; }
  .detail-row { display: none; }
}

/* ==========================================================================
   v1.2 用户与权限：登录视图 / 账号标识 / 密码弹窗
   全部复用既有令牌与组件（.card/.btn/.input/.field），不引入新样式体系
   ========================================================================== */

/* —— 品牌栏：当前账号 + 角色标签 —— */
/* hidden 属性优先级兜底：.btn / .user-chip 等设置了 display 的元素
   也必须能被 hidden 正确隐藏（否则登录页会露出登录后才该有的按钮） */
[hidden] { display: none !important; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-1);
  font-size: 13px;
  color: var(--ink-600);
}

/* 品牌栏右侧的存储状态标识：本地数据库文件 / 浏览器本地存储（可点击更换） */
.store-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--ink-600);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.store-mode::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27704F;
}

.user-chip-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 登录视图：居中卡片 —— */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: var(--s-5) 0;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-2);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.login-note {
  display: block;
  margin-bottom: var(--s-4);
  line-height: 1.7;
}

.login-form { grid-template-columns: 1fr; }

.login-form .field-span-full,
.login-form .field-span-2 { grid-column: span 1; }

.login-actions { padding-top: 0; }
.login-actions .btn { width: 100%; }

.login-foot {
  margin-top: var(--s-4);
  text-align: center;
  line-height: 1.7;
}

/* —— 密码弹窗：单列表单，避免三列网格在窄弹窗里挤压 —— */
.modal-pwd { max-width: 420px; }

.modal-pwd .form-grid {
  grid-template-columns: 1fr;
  margin-top: var(--s-3);
}

.modal-pwd .form-grid .field-span-full,
.modal-pwd .form-grid .field-span-2 { grid-column: span 1; }

.modal-pwd .form-actions {
  justify-content: flex-end;
  padding-top: 0;
}

/* —— 窄屏省略「录单人」列（桌面端保留） —— */
@media (max-width: 768px) {
  .data-table .col-created-by { display: none; }
  .user-chip { width: 100%; justify-content: flex-start; }
  .login-wrap { min-height: auto; }
  .login-card { max-width: none; padding: var(--s-4); }
}

/* ============================ 存储引导（首次选择数据文件夹） ============================ */
.store-setup {
  max-width: 640px;
  margin: var(--s-6) auto;
}

.store-setup .card-sub {
  margin-top: var(--s-2);
  line-height: 1.7;
}

.store-setup-dir {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--yellow-100);
  border-radius: var(--r-2);
  font-size: 14px;
}

.store-setup-steps {
  margin: var(--s-4) 0 0;
  padding-left: 1.4em;
  line-height: 1.9;
  font-size: 14px;
  color: var(--ink-700);
}

.store-setup-steps code,
.store-setup-warn code,
.store-setup-note code {
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}

.store-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.store-setup-warn {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-left: 3px solid var(--danger);
  background: rgba(200, 50, 43, 0.06);
  border-radius: var(--r-2);
  font-size: 14px;
  line-height: 1.8;
}

.store-setup-note {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.7;
}

.store-mode:hover { background: rgba(0, 0, 0, 0.04); }
