/* E2 web surface prototype — throwaway.

   视觉皮的唯一事实源是 design/dir-e.html（创始人 2026-08-09 逐项过目的样张）。
   落到这份流程原型上钉死三档，不带切换器：
     背景 = 白渲染层（[data-bg="white"]）· 主色 = 品牌渐变 · 顶栏 = 通栏玻璃
   色值、线宽、圆角、字号一律从 dir-e 抄，不在这里另发明；dir-e 自身的地基来自
   packages/config/tailwind/theme.css 与 docs/design-system.md〈后台几何〉〈颜色〉。

   一条规则管所有面：
     描边   = 你可以操作它（输入、选项、次级按钮）
     灰填充 = 系统持有它（门店卡、平台条款、坑位条、日历摘要）
   每屏唯一的渐变填充物是主按钮；选中标记的小圆标是 dir-e 给的例外。 */

:root {
  /* ---------- ground：dir-e 逐字 ---------- */
  --card:     #ffffff;
  --ink:      #16181d;
  --ink-body: rgba(22, 24, 29, 0.72);   /* 6.8:1 */
  --ink-soft: rgba(22, 24, 29, 0.68);   /* 5.9:1 */
  --ink-weak: rgba(22, 24, 29, 0.62);   /* 4.9:1 — 下限 */

  /* ---------- 三档发丝线：卡片周界 > 行分隔 > 值分隔 ---------- */
  --hair:        rgba(22, 24, 29, 0.46);
  --hair-soft:   rgba(22, 24, 29, 0.22);
  --hair-softer: rgba(22, 24, 29, 0.13);

  /* 安静填充 —— 「这块是系统持有的」 */
  --quiet: #eff1f5;

  /* ---------- 主色：品牌渐变档（创始人 2026-08-09 定） ----------
     --fill 涂面（可以是渐变）· --edge 画线画环（必须实色）
     --link 白底上的文字色（≥4.5:1）· --tint 选中态的底 */
  --fill: linear-gradient(115deg, #0049e6, #009fc2 55%, #00c2a4);
  --edge: #0049e6;
  --deep: #002168;
  --link: #0047d9;                      /* 6.5:1 on white */
  --tint: rgba(0, 73, 230, 0.045);

  --destructive-ink: #ad0512;

  /* prototype-only：低置换金额提示用。dir-e 没有告警色，这一档留在原型里。
     #8a5200 是白纸上 5.6:1。 */
  --amber-ink: #8a5200;
  --amber-bg: rgba(138, 82, 0, 0.07);
  --amber-line: rgba(138, 82, 0, 0.22);

  /* ---------- 几何：theme.css〈后台几何〉 ---------- */
  --r-card: 18px;
  --r-ctl: 10px;
  --r-el: 6px;
  --r-pill: 9999px;

  --d-fast: 150ms;
  --d-base: 250ms;
  --d-slow: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---------- 字面 ----------
     UI 面是 theme.css 点名的那支，本地跑不到 Instrument Sans 就落系统栈。
     mono 只留三岗：文档编号戳、系统微标、店名首字母块。值与数字用正文字体 +
     tabular-nums，不用 mono（创始人 2026-08-09）。 */
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* ---------- 旧变量名，只为 overview.html 的内联样式还能读到 ---------- */
  --bg: #ffffff;
  --font-sans: var(--font-ui);
  --ink-72: var(--ink-body);
  --ink-68: var(--ink-soft);
  --ink-62: var(--ink-weak);
  --primary: var(--edge);
  --primary-ink: var(--link);
  --ring: var(--edge);
  --border: var(--hair-soft);
  --line-07: rgba(22, 24, 29, 0.07);
  --line-09: rgba(22, 24, 29, 0.09);
  --line-14: var(--hair);
  --r-base: var(--r-ctl);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 白渲染层：纯白纸 + 四角压暗 + 颗粒 ----------
   dir-e 的 [data-bg="white"] 档，两层 body 伪元素、fixed 到视口。
   中心纯白，四角压到 12%——白底上只有这层压暗在拦着页面变成一张平纸；
   卡片仍是白的，靠发丝框分离，和 landing v3 是同一笔交易。
   颗粒抵掉渐变的带状条纹，同 landing shader 里 ±0.008 的 dither。 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(ellipse 116% 104% at 50% 40%,
      rgba(22, 24, 29, 0) 40%, rgba(22, 24, 29, 0.12) 100%),
    linear-gradient(to bottom, #ffffff 0%, #fdfdfe 55%, #fafbfc 100%);
}
body::after {
  opacity: 0.34;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='150' height='150' filter='url(%23n)' opacity='0.34'/></svg>");
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- prototype chrome ----------
   角标与两个脚手架面板刻意不进产品视觉语言（系统字、平框、无品牌色），
   照 dir-e 里 .swatch 的做法：脚手架要一眼看出不是产品的一部分。 */

.proto-badge {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: #f5f5f7;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  pointer-events: none;
}

.corner-stack {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fb-panel {
  width: 268px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #c9ccd2;
  border-radius: 10px;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.fb-pill {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #dcdee3;
  background: #f0f0f2;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--d-fast) var(--ease-out);
}
.fb-pill:hover { background: #e7e7ea; }
.fb-count { font-size: 11px; font-weight: 500; color: #888; }
.fb-body { padding: 10px 12px 12px; }
.fb-panel.is-collapsed .fb-body { display: none; }
.fb-panel.is-collapsed .fb-pill { border-bottom: 0; }
.fb-screen { font-size: 11px; color: #888; margin-bottom: 8px; }
.fb-screen span { color: #444; font-weight: 600; }
.fb-text { min-height: 78px; font-size: 12px; }
.fb-acts { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fb-send {
  height: 30px; min-height: 30px; padding: 0 12px;
  font-size: 12px; font-weight: 500;
  border: 1px solid #c9ccd2; border-radius: 7px;
  background: #fff; color: #333;
  box-shadow: none;
}
.fb-send:hover { background: #f0f0f2; box-shadow: none; }
.fb-send[disabled] { opacity: 0.5; pointer-events: none; }
.fb-status { font-size: 11px; color: #888; flex: 1; min-width: 0; }
.fb-status.is-error { color: var(--destructive-ink); }
.fb-status.is-ok { color: #107e40; }

.demo-panel {
  width: 268px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #c9ccd2;
  border-radius: 10px;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.demo-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #f0f0f2;
  border-bottom: 1px solid #dcdee3;
  font-size: 11px;
  font-weight: 600;
  color: #666;
}
.demo-panel__toggle {
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 11px;
  color: #888;
}
.demo-panel__body { padding: 10px 12px 12px; }
.demo-panel.is-collapsed .demo-panel__body { display: none; }
.demo-panel.is-collapsed .demo-panel__head { border-bottom: 0; }
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: #444;
}
.demo-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dcdee3;
}
.demo-jump button,
.demo-jump .btn {
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 7px;
  border: 1px solid #c9ccd2;
  background: #fff;
  color: #333;
  box-shadow: none;
  transition: background var(--d-fast) var(--ease-out);
}
.demo-jump button:hover,
.demo-jump .btn { min-width: 0; }
.demo-jump .btn:hover { background: #f0f0f2; box-shadow: none; }
/* 两种形态没有主次之分，所以用两个并排按钮，不用开关——开关的关态会读成「默认」。 */
.demo-row--stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.demo-seg { display: inline-flex; gap: 4px; }
.demo-seg button {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #444;
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.demo-seg button:hover { background: #f0f0f2; }
.demo-seg button.is-on { border-color: #b0b4bb; background: #f0f0f2; font-weight: 600; color: #333; }
/* 脚手架里的开关也退出产品语言：品牌色换成中性深灰。 */
.corner-stack .switch input:checked + .switch__track { background: #6b6f78; }

/* ---------- shell ---------- */

/* Fixed height, not min-height: .scroll must be the real scrollport or the
   sticky bottom bars inside it have nothing to stick to. */
.app { display: flex; height: 100vh; }

/* 侧栏不铺白：白渲染层是一整张纸，侧栏只用一条发丝线切出来，
   免得在纸上再压一块比纸更白的方块。 */
.sidebar {
  width: 216px;
  flex: 0 0 216px;
  background: transparent;
  box-shadow: var(--hair-soft) -0.5px 0 0 0 inset;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 31;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.brand__name { font-size: 14px; font-weight: 600; letter-spacing: 0.012em; }
.nav__kicker { margin: 0 0 14px 12px; }
/* 侧栏项图标：16px 线稿、随字色，选中时吃到品牌 link 色 */
.nav__icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav a.is-active .nav__icon { opacity: 1; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-ctl);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: background var(--d-fast) var(--ease-out);
}
.nav a:hover { background: var(--line-07); }
.nav a.is-active { background: var(--tint); color: var(--link); font-weight: 600; box-shadow: var(--edge) 0 0 0 0.5px inset; }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; }

.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* 通栏玻璃顶栏（dir-e [data-nav="full"]，moonshot.cn 原式）：贴顶、方角，
   分离全靠模糊，不画底边线。fixed 而不是 flex 行，是为了让内容真的从它底下
   过去——玻璃不压住东西就只是一块半透明色块。左缘让开侧栏，窄屏侧栏收起时归零。
   材质三件套一条不改：1px 环 + 顶部白高光 + 软投影。 */
.topbar {
  position: fixed;
  top: 0;
  left: 216px;
  right: 0;
  height: 48px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-radius: 0;
  /* iOS 系统材质逆向真值（创始人 2026-08-09 定，源：oskargroth.com 对
     NSVisualEffectView/CAFilter 的拆解）：gaussianBlur 半径 30 + 饱和 1.8 +
     亮度 +0.02，上面再盖白 tint。三处玻璃面同值。折射版走 ?glass=liquid。 */
  background: rgba(251, 251, 253, 0.6);
  backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
  box-shadow:
    rgba(22, 24, 29, 0.08) 0 0 0 1px,
    rgba(255, 255, 255, 0.65) 0 1px 0 inset,
    rgba(22, 24, 29, 0.16) 0 10px 28px -14px;
}
/* 上限对齐居中角标左缘：角标钉在 50vw，标题从 216+28px 起，721-950px 窗口会追尾。 */
.topbar__title {
  font-size: 14px; font-weight: 600;
  max-width: calc(50vw - 244px - 64px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar__brand { display: none; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 26px; height: 26px;
  flex: none;
  border-radius: var(--r-el);
  background: var(--quiet);
  color: var(--ink-body);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}

/* Toolbar control, not a tag: 10px per design-system〈后台几何〉. */
.lang-switch {
  display: inline-flex;
  border-radius: var(--r-ctl);
  padding: 2px;
  background: var(--quiet);
}
.lang-switch button {
  height: 26px;
  padding: 0 13px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-weak);
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.lang-switch button.is-active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--hair-soft) 0 0 0 0.5px inset;
}

/* 顶栏离开了文档流，滚动区自己让出这 64px。 */
.scroll { flex: 1; overflow-y: auto; padding: 78px 28px 90px; }
.page { max-width: 860px; margin: 0 auto; }

/* ---------- generic building blocks ---------- */

/* 卡片：18px 圆角 + .5px inset 发丝框，静止面不给投影。 */
.card {
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--hair) 0 0 0 0.5px inset;
}
.card + .card { margin-top: 16px; }

.h-page { font-size: 32px; line-height: 1.28; letter-spacing: -0.55px; font-weight: 600; margin: 0 0 11px; }
.h-sub { font-size: 20px; line-height: 1.2; letter-spacing: -0.2px; font-weight: 600; margin: 0 0 4px; }
.muted { color: var(--ink-body); }
.small { font-size: 14px; line-height: 1.55; }
.xs { font-size: 12px; line-height: 1.5; color: var(--ink-weak); }

/* 全站按钮一个形状：胶囊。轻重靠填充分，不靠圆角分。 */
.btn {
  min-height: 38px;
  min-width: 92px;   /* 全后台统一按钮下限宽（创始人 2026-08-09），短词按钮不再缩成小豆 */
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.btn:not(.btn--primary):hover { box-shadow: var(--hair) 0 0 0 1px inset; }
/* 文字动作：没有盒子，也就没有描边 */
.btn--ghost {
  /* 和邻座按钮同一个盒子（创始人 2026-08-09：大小必须一致），身份差异只留字色 */
  background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  color: var(--link);
  font-weight: 600;
}
/* 品牌描边档并入次级：蓝底蓝框留给选中态，动作条上不再有第三种按钮重量 */
.btn--brand-outline { background: var(--card); color: var(--ink); box-shadow: var(--hair-soft) 0 0 0 1px inset; }

/* 每屏唯一的填充物。background-origin: border-box 是功能性的，不是装饰：
   .btn 带一圈 1px border，主按钮只是把它设成透明，不加这句渐变会填到 padding
   box，边框那一圈从渐变起点重铺，边上就出现一道深蓝发丝。 */
.btn--primary {
  background: var(--fill);
  background-origin: border-box;
  border-radius: var(--r-pill);
  /* 盒子与次要按钮完全同尺寸（创始人 2026-08-09）：层级靠渐变底 + 600 字重，不靠放大 */
  font-weight: 600;
  color: #fff;
  box-shadow: none;
}
.btn--primary:hover { filter: brightness(0.95); }
.btn--primary:active { filter: brightness(0.92); }
.btn--primary[disabled] { opacity: 0.45; pointer-events: none; }

/* 无环（创始人 2026-08-09：hover 环、焦点环都不要）。焦点态长得和 hover 一样：
   次级按钮描边加深，主按钮微压暗。注：真产品上键盘焦点必须另有可见处理
   （WCAG 2.4.7），这是原型里按创始人观感收掉的，不是产品口径。 */
.btn:focus { outline: none; }
.btn:focus-visible { outline: none; }
.btn:not(.btn--primary):focus-visible { box-shadow: var(--hair) 0 0 0 1px inset; }
.btn--primary:focus-visible { filter: brightness(0.95); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--quiet);
  color: var(--ink-body);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  white-space: nowrap;
}
.pill--brand { background: var(--tint); color: var(--link); box-shadow: var(--edge) 0 0 0 0.5px inset; }
/* 待确认沿用 dir-e 的 Pending：安静灰胶囊，不用琥珀。 */
.pill--amber { background: var(--quiet); color: var(--ink-body); box-shadow: var(--hair-soft) 0 0 0 1px inset; }

/* form primitives */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
/* 大写标签：11.5px / .06em / 500，首页卡片 key 的款 */
.label {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-weak);
  margin-bottom: 7px;
}
.hint { font-size: 12px; line-height: 1.5; color: var(--ink-weak); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-weak); }
.input:hover, .select:hover, .textarea:hover { box-shadow: var(--hair) 0 0 0 1px inset; }
.input:focus, .select:focus, .textarea:focus { outline: 0; box-shadow: var(--edge) 0 0 0 1.5px inset; }
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-weak) 50%), linear-gradient(135deg, var(--ink-weak) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input[disabled], .select[disabled] { background: var(--quiet); color: var(--ink-weak); box-shadow: none; cursor: not-allowed; }

.row { display: flex; gap: 14px; }
.row > * { flex: 1; min-width: 0; }

.affix { position: relative; }
.affix .input { padding-left: 40px; }
.affix__sign {
  position: absolute; left: 12px; top: 0; height: 38px;
  display: flex; align-items: center;
  color: var(--ink-weak); font-size: 14px; pointer-events: none;
}

/* 招募帖（创始人 2026-08-10）：博主报名前只看到这一条，长得就该像一条能发出去的消息，
   所以正文不套产品的排版规则，保留原样换行。 */
.post-card { padding-bottom: 18px; }
.post-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card__label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--link); }
.post-card__label .ai-spark { fill: currentColor; }
.post-card__acts { display: flex; align-items: center; gap: 10px; }
.segmented--sm label { height: 28px; padding: 0 12px; font-size: 12.5px; }
.post-card__note { margin: 8px 0 14px; color: var(--ink-weak); line-height: 1.6; }
.post-body {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 18px 20px;
  border-radius: var(--r-ctl);
  background: var(--tint);
  box-shadow: var(--hair-softer) 0 0 0 1px inset;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink);
}
.post-gate {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 14px;
  font-size: 13px;
  color: var(--ink-weak);
}
.post-gate::before, .post-gate::after {
  content: ""; flex: 1; height: 1px; background: var(--hair-softer);
}

/* 套餐档位卡片（创始人 2026-08-10）：一单可开多档，博主报名时挑一档。
   卡片只用最轻那道发丝线圈起来，不抢主内容的层级。 */
.pkg {
  display: grid; gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--r-ctl);
  background: var(--card);
  box-shadow: var(--hair-softer) 0 0 0 1px inset;
}
.pkg__top { display: flex; align-items: center; gap: 8px; }
.pkg__top .input { flex: 1; min-width: 0; font-weight: 600; }
.pkg__del {
  flex: none; width: 32px; height: 32px;
  border: 0; border-radius: var(--r-ctl); background: transparent;
  color: var(--ink-weak); font-size: 18px; line-height: 1; cursor: pointer;
}
.pkg__del:hover { background: var(--quiet); color: var(--ink); }
.pkg__detail { height: auto; min-height: 58px; padding: 9px 12px; line-height: 1.5; font-family: inherit; resize: vertical; }
.pkg__foot { display: flex; align-items: center; gap: 10px; }
.pkg__lab { flex: none; font-size: 13px; color: var(--ink-weak); }
.pkg__foot .affix { width: 150px; }
#addPkg { margin-top: 2px; }
#pkgCostHint:not(:empty) { margin-top: 10px; font-variant-numeric: tabular-nums; }

.stepper { display: inline-flex; align-items: center; border-radius: var(--r-ctl); overflow: hidden; height: 38px; box-shadow: var(--hair-soft) 0 0 0 1px inset; }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 15px; color: var(--ink-soft); }
.stepper button:hover { background: var(--line-07); }
.stepper input { width: 58px; height: 100%; border: 0; background: transparent; box-shadow: var(--hair-soft) 1px 0 0 0 inset, var(--hair-soft) -1px 0 0 0 inset; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--quiet); border-radius: var(--r-ctl); flex-wrap: wrap; }
.segmented label {
  position: relative;
  height: 32px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 8px; font-size: 13px; color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:hover { background: rgba(255, 255, 255, 0.6); }
.segmented label.is-on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--hair-soft) 0 0 0 0.5px inset; }
.segmented input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-cards--two { grid-template-columns: repeat(2, 1fr); }
.choice {
  position: relative;
  display: block;
  border: 0;
  border-radius: var(--r-ctl);
  padding: 13px 14px 15px;
  cursor: pointer;
  background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  transition: box-shadow var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.choice:hover { box-shadow: var(--hair) 0 0 0 1px inset; }
/* 选中：发丝主色边 + 4.5% 主色底 + 渐变对勾 + 主色标题，不用粗框 */
.choice.is-on { box-shadow: var(--edge) 0 0 0 0.5px inset; background: var(--tint); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
/* 键盘专用焦点框（dir-e 515 行同款）：focus-visible 才出现，鼠标点选看不到 */
.choice:has(input:focus-visible),
.radio-item:has(input:focus-visible),
.chip:has(input:focus-visible) { outline: 2px solid var(--edge); outline-offset: 2px; }
.choice__tick {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  margin-bottom: 10px;
  position: relative;
}
.choice.is-on .choice__tick { background: var(--fill); box-shadow: none; }
.choice.is-on .choice__tick::after {
  content: "";
  position: absolute; inset: 0;
  background: no-repeat center / 10px 7px
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'><path d='M1 4.2 3.9 7 10 1' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.choice__t { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
.choice.is-on .choice__t { color: var(--link); }
.choice__d { font-size: 12px; color: var(--ink-soft); display: block; line-height: 1.45; }

.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 9px 13px;
  border: 0; border-radius: var(--r-ctl);
  font-size: 13px; cursor: pointer; background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  transition: box-shadow var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.radio-item:hover { box-shadow: var(--hair) 0 0 0 1px inset; }
.radio-item.is-on { box-shadow: var(--edge) 0 0 0 0.5px inset; background: var(--tint); }
.radio-item input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 0; box-shadow: var(--hair-soft) 0 0 0 1px inset; flex: 0 0 16px; position: relative; }
.radio-item.is-on .radio-dot { background: var(--fill); box-shadow: none; }
.radio-item.is-on .radio-dot::after {
  content: "";
  position: absolute; inset: 0;
  background: no-repeat center / 9px 6px
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'><path d='M1 4.2 3.9 7 10 1' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.radio-item.is-on span:not(.radio-dot) { color: var(--link); font-weight: 600; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
  box-shadow: var(--hair-softer) 0 0.5px 0 0 inset;
  border-bottom: 0;
}
.switch-row:first-child { box-shadow: none; }
.switch-row__t { font-size: 14px; font-weight: 600; }
.switch-row__d { font-size: 12px; line-height: 1.5; color: var(--ink-weak); }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: rgba(22, 24, 29, 0.18);
  transition: background var(--d-fast) var(--ease-out);
  pointer-events: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--d-fast) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--edge); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ring); outline-offset: 3px; }
.switch--sm { width: 36px; height: 21px; flex: 0 0 36px; }
.switch--sm .switch__track::after { width: 15px; height: 15px; }
.switch--sm input:checked + .switch__track::after { transform: translateX(15px); }

/* 开关下面挂的从属输入：开关关掉时整行淡出禁用。 */
.sub-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 12px;
  transition: opacity var(--d-fast) var(--ease-out);
}
.sub-row.is-off { opacity: 0.4; pointer-events: none; }
.sub-row .label { margin-bottom: 0; }

/* 取样窗口不是日历：两个时间下拉夹一个「到」，形态上就跟预约日历分得开。 */
.time-window { display: flex; align-items: center; gap: 10px; }
.time-window .select { flex: 0 0 132px; width: 132px; }
.time-window__sep { font-size: 13px; color: var(--ink-weak); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  font-size: 12px;
  cursor: pointer;
  transition: box-shadow var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.chip:hover { box-shadow: var(--hair) 0 0 0 1px inset; }
.chip.is-on { box-shadow: var(--edge) 0 0 0 0.5px inset; background: var(--tint); color: var(--link); font-weight: 600; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip__x { border: 0; background: none; padding: 0; color: var(--ink-weak); font-size: 13px; line-height: 1; }
.chip--static { cursor: default; }

/* ---------- step 4 item lists ---------- */

.item-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.item-row { display: flex; align-items: center; gap: 8px; }
.item-row .input { flex: 1; min-width: 0; }
.item-del {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  color: var(--ink-weak);
  font-size: 12px;
  transition: color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.item-del:hover { color: var(--destructive-ink); box-shadow: rgba(173, 5, 18, 0.35) 0 0 0 1px inset; }
.item-add { height: 32px; min-height: 32px; padding: 0 14px; font-size: 12px; }

/* ---------- step 3 calendar ---------- */

.cal-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cal-rules .btn { height: 32px; min-height: 32px; padding: 0 14px; font-size: 12px; }
/* 刷选按钮定义选区，这两个是作用在已选集上的动作，形态要能区分开。 */
.cal-acts { display: inline-flex; align-items: center; gap: 8px; }
.cal-rules__sep { width: 1px; align-self: stretch; background: var(--hair-softer); margin: 0 4px; }
.cal-act { color: var(--ink-soft); }
.cal-act:hover { color: var(--link); }
.cal-rules .btn.is-on { box-shadow: var(--edge) 0 0 0 0.5px inset; color: var(--link); background: var(--tint); }

.cal-wrap {
  display: flex;
  gap: 28px;
  border: 0;
  border-radius: var(--r-ctl);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  padding: 16px 18px;
  background: var(--card);
  user-select: none;
}
.cal-month { flex: 1; min-width: 0; }
.cal-month__title { font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: 11px; color: var(--ink-weak); text-align: center; height: 22px; display: grid; place-items: center; }
.cal-day {
  height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  border: 0;
  background: none;
  color: var(--ink-body);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.cal-day:hover:not(:disabled) { background: var(--line-09); }
.cal-day.is-on { background: var(--edge); color: #fff; font-weight: 600; }
.cal-day.is-on:hover { background: var(--deep); }
.cal-day:disabled { color: rgba(22, 24, 29, 0.28); cursor: not-allowed; }
.cal-day.is-blank { visibility: hidden; }
.cal-day.is-today:not(.is-on) { box-shadow: inset 0 0 0 1.5px var(--edge); font-weight: 600; }
.cal-day.is-today.is-on { box-shadow: inset 0 0 0 2px #ffffff; }

.cal-summary {
  font-size: 13px;
  color: var(--ink-body);
  margin: 12px 0 0;
  padding: 10px 13px;
  background: var(--quiet);
  border-radius: var(--r-ctl);
}
.cal-summary strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 摘要不在某个 .field 里时自己撑开下边距（取样窗口那条）。 */
.cal-summary--block { margin-bottom: 20px; }

/* 预告不是警告：灰填充，跟琥珀的低置换金额提示区分开，语气上不拦人。 */
.inline-note {
  margin-top: 10px;
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  padding: 11px 14px;
  border: 0;
  background: var(--quiet);
  color: var(--ink-body);
  border-radius: var(--r-ctl);
  font-size: 13px;
  line-height: 1.55;
}
.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--link);
  font-size: 13px; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 占位层：计费与推荐名单都还没建，先给一屏能点开的去处。 */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(22, 24, 29, 0.42);
  display: grid; place-items: center;
  padding: 20px;
}
.sheet {
  width: 100%; max-width: 420px;
  background: var(--card);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow:
    var(--hair) 0 0 0 0.5px inset,
    rgba(22, 24, 29, 0.18) 0 18px 48px -18px,
    rgba(22, 24, 29, 0.08) 0 3px 8px -4px;
}
.sheet .h-sub { margin-bottom: 8px; }
.sheet p { margin: 0 0 18px; }

.empty-block {
  border: 0;
  border-radius: var(--r-ctl);
  padding: 26px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-weak);
  background: var(--quiet);
}

/* 转人工那屏的确认标记：不用绿，走安静灰底 + 主色对勾，跟全站同一支笔。 */
.handoff-mark {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--quiet); color: var(--edge);
  display: grid; place-items: center; font-size: 26px; font-weight: 600;
  margin: 0 auto 20px;
}

.inline-warn {
  margin-top: 8px;
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 12px;
  border: 0;
  box-shadow: var(--amber-line) 0 0 0 0.5px inset;
  background: var(--amber-bg);
  color: var(--amber-ink);
  border-radius: var(--r-ctl);
  font-size: 12px;
  line-height: 1.55;
}

.autosave {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-weak);
}
.autosave__tick { color: var(--ink-weak); font-weight: 600; }

/* ---------- wizard ---------- */

/* 五段分离的小圆角矩形（创始人 2026-08-08 给的参考形态）：高 5px、圆角 2px、
   段间 8px，当前段渐变填充，三种状态共用同一道发丝框。没有数字、没有连接轨。
   窄屏保持同一形态，只收窄段间距。 */
.stepbar { display: flex; gap: 8px; margin: 0 0 34px; }
.stepbar__item { flex: 1; min-width: 0; display: block; }
.stepbar__bar {
  height: 5px;
  border-radius: 2px;
  background: rgba(22, 24, 29, 0.07);
  box-shadow: var(--hair-softer) 0 0 0 0.5px inset;
  transition: background var(--d-base) var(--ease-out);
}
.stepbar__item.is-current .stepbar__bar { background: var(--fill); box-shadow: var(--hair) 0 0 0 0.5px inset; }
.stepbar__item.is-done .stepbar__bar { background: color-mix(in srgb, var(--edge) 20%, transparent); box-shadow: var(--hair) 0 0 0 0.5px inset; }
.stepbar__label { display: block; margin-top: 10px; font-size: 12px; line-height: 1.35; color: var(--ink-weak); }
.stepbar__item.is-current .stepbar__label { color: var(--ink); font-weight: 600; }
.stepbar__item.is-done .stepbar__label { color: var(--ink-soft); }

.step-head { margin-bottom: 22px; }
.wizard-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  box-shadow: var(--hair-soft) 0 0.5px 0 0 inset;
}
.wizard-foot__btns { display: flex; align-items: center; gap: 10px; }

/* 门店卡是系统替你填好的，不是你能挑的——所以灰填充、无描边。 */
.store-card {
  display: flex; align-items: center; gap: 12px;
  border: 0;
  box-shadow: none;
  background: var(--quiet);
  border-radius: var(--r-ctl);
  padding: 13px 14px;
}
.store-card__mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--r-el);
  background: var(--card);
  color: var(--ink-body);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  display: grid; place-items: center; font-weight: 400;
}
.store-card__name { font-size: 14px; font-weight: 600; }
.store-card__addr { margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }

.slots-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 0;
  border-radius: var(--r-ctl);
  padding: 13px 15px;
  background: var(--quiet);
}

/* ---------- generating ---------- */

.gen-wrap { display: grid; place-items: center; min-height: 58vh; text-align: center; }
.gen-orb {
  width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(from 0deg, #0049e6, #00c2a4, #0049e6);
  mask: radial-gradient(circle, transparent 56%, #000 57%);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
  animation: spin 1.05s linear infinite;
  margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-steps { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gen-step { font-size: 13px; color: var(--ink-weak); opacity: 0.35; transition: opacity var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out); }
.gen-step.is-on { opacity: 1; color: var(--ink-body); }
.gen-handoff {
  margin: 22px auto 0;
  max-width: 380px;
  font-size: 13px;
  color: var(--ink-weak);
  line-height: 1.55;
}
.gen-fail__mark {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(173, 5, 18, 0.08); color: var(--destructive-ink);
  display: grid; place-items: center; font-size: 26px;
  margin: 0 auto 20px;
}

/* ---------- brief ---------- */

.brief-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

/* 页面上唯一浮起来的块，因为它是唯一还握着一个决定的块。 */
.ai-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    var(--hair) 0 0 0 0.5px inset,
    rgba(22, 24, 29, 0.10) 0 14px 30px -18px,
    rgba(22, 24, 29, 0.05) 0 2px 5px -3px;
}
.ai-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.ai-card__label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; }
/* 双星 sparkle：填当前主色，跟着主色走 */
.ai-spark { flex: none; fill: var(--edge); transform: translateY(1px); align-self: center; }
/* 写这条建议的人：名字用正文面，角色用安静灰——商家未必知道 Rachel 是谁。
   不给头像，首页也没给。 */
.ai-card__who { flex: none; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ai-card__who span { font-weight: 500; color: var(--ink-weak); }
.ai-card__lead { font-size: 14px; line-height: 1.55; color: var(--ink); max-width: 62ch; margin: 0 0 11px; }
.ai-card__why { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.ai-card__why li {
  position: relative;
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 76ch;
  margin: 0;
}
.ai-card__why li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(22, 24, 29, 0.30);
}
.ai-card__acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* 决定做完了，块就不再浮着：采纳后留主色底，保持我的方向后退成灰。 */
.ai-card.is-applied { background: var(--tint); box-shadow: var(--edge) 0 0 0 0.5px inset; }
.ai-card.is-dismissed { background: var(--quiet); box-shadow: none; }

.brief-section { border-top: 0; padding: 16px 0 4px; box-shadow: var(--hair-soft) 0 0.5px 0 0 inset; }
/* The edit-lock banner always precedes the first section in the DOM, hidden or not,
   so the sibling selector is what strips the leading rule. */
.edit-lock + .brief-section { box-shadow: none; padding-top: 2px; }
.edit-lock:not([hidden]) { margin-bottom: 18px; }
.brief-section__t {
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-weak);
  margin: 0 0 6px;
}
/* 值列用正文字体 + tabular-nums，不用 mono。行间用最淡的一档发丝分开，
   列间不留空隙，那道线才是连着的。 */
.kv { display: grid; grid-template-columns: 168px 1fr; column-gap: 0; row-gap: 0; font-size: 14px; }
.kv dt {
  font-size: 12px; line-height: 1.4; color: var(--ink-weak);
  padding: 9px 20px 9px 0;
  box-shadow: var(--hair-softer) 0 0.5px 0 0 inset;
}
.kv dd {
  margin: 0; line-height: 1.4; color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding: 9px 0;
  box-shadow: var(--hair-softer) 0 0.5px 0 0 inset;
}
.kv dt:first-child, .kv dt:first-child + dd { box-shadow: none; }
.brief-list { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 14px; }
.brief-list li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 15px;
  line-height: 1.4;
  box-shadow: var(--hair-softer) 0 0.5px 0 0 inset;
}
.brief-list li:first-child { box-shadow: none; }
.brief-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(22, 24, 29, 0.30);
}

/* 平台条款：平台持有、你碰不了——跟门店卡穿同一件灰衣服。 */
.locked-block {
  background: var(--quiet);
  border: 0;
  border-radius: var(--r-ctl);
  padding: 13px 15px 14px;
}
.locked-block__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-weak); margin-bottom: 8px;
}
.locked-block ol { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); }
.locked-block ol li { margin: 0; padding: 4px 0 4px 2px; line-height: 1.5; }
.locked-block ol li::marker { font-size: 12px; color: rgba(22, 24, 29, 0.55); }
.lock-note { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-weak); }

.edit-lock {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--ink-weak);
  background: var(--quiet); border: 0;
  border-radius: var(--r-ctl); padding: 9px 12px;
}
.edit-lock a { color: var(--link); }

/* 吸底动作条走顶栏同款玻璃：桌面上是一座岛（卡片圆角），窄屏铺满贴边。 */
.action-bar {
  position: sticky; bottom: 0;
  margin-top: 18px;
  background: rgba(251, 251, 253, 0.6);
  backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
  border: 0;
  border-radius: var(--r-card);
  /* 外框撤掉（创始人 2026-08-09 试）：只留顶部高光和软投影托着浮起来 */
  box-shadow:
    rgba(255, 255, 255, 0.65) 0 1px 0 inset,
    rgba(22, 24, 29, 0.16) 0 10px 28px -14px;
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.action-bar__spacer { flex: 1; }

.regen-box {
  margin-top: 14px;
  border: 0;
  border-radius: var(--r-ctl);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  padding: 16px;
  background: var(--card);
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--ink); color: #f5f5f7;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-size: 13px; z-index: 100;
  animation: toast-in var(--d-base) var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- campaign progress ---------- */

.camp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.camp-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }

.track { display: flex; margin: 6px 0 4px; }
.track__seg { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; padding: 0 4px; }
.track__seg::before, .track__seg::after { content: ""; position: absolute; top: 17px; height: 2px; background: rgba(22, 24, 29, 0.09); border-radius: 1px; }
.track__seg::before { left: 0; right: 50%; margin-right: 21px; }
.track__seg::after { left: 50%; right: 0; margin-left: 21px; }
.track__seg:first-child::before, .track__seg:last-child::after { display: none; }
.track__dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  color: var(--ink-weak); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
}
/* 走过的段是实色，当前段是渐变——跟五段进度条里「当前段填渐变」同一条规矩。 */
.track__seg.is-done .track__dot { background: var(--edge); color: #fff; box-shadow: none; }
.track__seg.is-current .track__dot { background: var(--fill); color: #fff; box-shadow: none; }
/* The outgoing connector only fills when the next segment has started, otherwise a
   done step leaves a half-blue half-grey line that reads as a rendering bug. */
.track__seg.is-done::before, .track__seg.is-current::before { background: var(--edge); }
.track__seg.is-done:has(+ .track__seg:not(.is-soon))::after { background: var(--edge); }
.track__name { font-size: 13px; font-weight: 600; margin-top: 9px; text-align: center; }
.track__seg.is-soon .track__name { color: var(--ink-weak); font-weight: 500; }
/* AI 员工人设的署名：名字 + 角色，没有头像。首页也没有照片。 */
.track__who {
  font-size: 12px; font-weight: 600; margin-top: 3px; text-align: center;
  color: var(--link);
}
.track__seg.is-soon .track__who { color: var(--ink-weak); font-weight: 500; }
.track__state { font-size: 12px; color: var(--ink-weak); margin-top: 2px; text-align: center; }
.track__soon { font-size: 12px; color: var(--ink-weak); margin-top: 3px; opacity: 0.85; }

.brief-digest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }

/* ================================================================
   手机形态（<= 720px）
   商家端真实主场是手机：通知点链接进来，多半在微信或邮箱里打开。
   同一份 DOM，靠这一段改布局，不做第二个页面。
   ================================================================ */

.stepbar-mini { display: none; }
/* 翻月控件桌面与窄屏都要：探店排到两三个月后是常事，日历必须能一直往后翻。 */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.cal-nav__title { font-size: 13px; font-weight: 600; }
.cal-nav button {
  width: 38px; height: 38px;
  border: 0;
  border-radius: var(--r-ctl);
  box-shadow: var(--hair-soft) 0 0 0 1px inset;
  background: var(--card);
  font-size: 15px; color: var(--ink-body);
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.cal-nav button:hover:not(:disabled) { box-shadow: var(--hair) 0 0 0 1px inset; }
.cal-nav button:disabled { color: rgba(22, 24, 29, 0.28); cursor: not-allowed; }

@media (max-width: 720px) {
  /* --- 壳 --- */
  .sidebar { display: none; }
  .topbar { left: 0; height: 48px; padding: 0 16px; }
  /* No bottom padding on the scrollport: sticky insets resolve against the
     scroll container's padding box, so padding here would float the bar up. */
  .scroll { padding: 64px 16px 0; }
  .page { max-width: none; padding-bottom: 24px; }
  .card { padding: 16px; }
  .card + .card { margin-top: 12px; }
  /* 窄屏顶栏标题让位：屏名由紧凑步条和各页 h1 承担，角标挪到左上不再压字。 */
  .proto-badge { top: 16px; left: 16px; transform: none; font-size: 10px; padding: 3px 9px; }
  .topbar__title { display: none; }
  .topbar__right { margin-left: auto; }

  .h-page { font-size: 26px; letter-spacing: -0.36px; }
  .row { flex-direction: column; gap: 0; }
  .row > * { flex: none; width: 100%; }
  /* .field 自带下边距，裸 input 没有——姓名电话这种成对输入靠这条隔开。 */
  .row > .input + .input { margin-top: 10px; }

  /* 16px on the control only: below that iOS zooms the viewport and the whole
     ruled grid jumps sideways. Body copy stays at 14px. */
  .input, .select, .textarea { font-size: 16px; }
  .input, .select { height: 44px; }
  .textarea { height: auto; }
  .select { background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; }
  .affix__sign { height: 44px; }
  .stepper { height: 44px; }
  .btn { min-height: 44px; padding: 0 16px; }
  .item-del { height: 44px; width: 44px; padding: 0; font-size: 11px; }
  .cal-nav button { width: 44px; height: 44px; }
  .radio-item { min-height: 44px; }
  .chip { height: 34px; }

  /* --- 向导步条：五段留着，名字收起，屏名交给上面那行 --- */
  .stepbar { gap: 6px; margin-bottom: 22px; }
  .stepbar__label { display: none; }
  .stepbar-mini { display: block; margin-bottom: 10px; }
  .stepbar-mini__top {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px;
  }
  .stepbar-mini__count { font-size: 12px; color: var(--ink-weak); }
  .stepbar-mini__name { font-size: 14px; font-weight: 600; }
  .stepbar-mini__track { display: none; }

  /* --- 底部动作条吸底：顶栏同款玻璃 --- */
  .wizard-foot {
    position: sticky;
    bottom: 0;
    margin: 14px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 252, 0.72);
    backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.02);
    box-shadow:
      rgba(22, 24, 29, 0.10) 0 0.5px 0 0 inset,
      rgba(22, 24, 29, 0.16) 0 -8px 24px -16px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    z-index: 20;
  }
  .wizard-foot__btns { gap: 10px; }
  .wizard-foot__btns .btn { flex: 1; justify-content: center; }
  .autosave { justify-content: center; }

  /* --- 选项卡与分段控件 --- */
  .choice-cards { grid-template-columns: 1fr; }
  .choice { padding: 13px 14px; min-height: 44px; }
  .choice__tick { position: absolute; right: 14px; top: 15px; margin: 0; }
  .choice__t { padding-right: 26px; }
  .segmented { width: 100%; }
  .segmented label { flex: 1; justify-content: center; min-height: 38px; }

  /* --- 步 3 日历：一次一个月 + 左右切月 --- */
  .cal-rules { gap: 8px; }
  .cal-rules .btn { flex: 1 1 calc(50% - 4px); justify-content: center; height: 40px; min-height: 40px; }
  .cal-wrap { padding: 12px; gap: 0; }
  .cal-month__title { display: none; }
  .cal-day { height: 42px; font-size: 15px; }
  .cal-range-hint { display: block; }

  /* --- 步 3 取样窗口：两个下拉各占一半，「到」夹中间 --- */
  .time-window .select { flex: 1 1 0; width: auto; min-width: 0; }
  .sub-row { align-items: flex-start; }

  /* --- 步 5 坑位条：套餐标签挤成两行，窄屏改纵向 --- */
  .slots-bar { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* --- brief 确认页 --- */
  .brief-head { flex-direction: column; gap: 10px; }
  .ai-card { padding: 16px; margin-left: 0; margin-right: 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { font-size: 12px; padding: 10px 0 0; box-shadow: none; }
  .kv dd { padding: 2px 0 0; box-shadow: none; }
  .kv dt:first-child { padding-top: 0; }
  .action-bar {
    flex-direction: column;
    align-items: stretch;
    margin: 14px -16px 0;
    border-radius: 0;
    background: rgba(250, 250, 252, 0.72);
    box-shadow:
      rgba(22, 24, 29, 0.10) 0 0.5px 0 0 inset,
      rgba(22, 24, 29, 0.16) 0 -8px 24px -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .action-bar .btn { justify-content: center; }
  .action-bar__spacer { display: none; }
  .action-bar .xs { text-align: center; }
  .edit-lock { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* --- 进度页：横向五段换成纵向时间线 --- */
  .track { flex-direction: column; }
  .track__seg {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-items: start;
    padding: 0 0 22px;
    text-align: left;
  }
  .track__seg:last-child { padding-bottom: 0; }
  .track__dot { grid-row: 1 / span 3; }
  .track__name { grid-column: 2; grid-row: 1; margin-top: 7px; text-align: left; }
  .track__who { grid-column: 2; grid-row: 2; margin-top: 0; text-align: left; }
  .track__state,
  .track__soon { grid-column: 2; grid-row: 3; margin-top: 0; text-align: left; }
  .track__seg::before { display: none; }
  .track__seg::after {
    left: 16px; right: auto;
    top: 40px; bottom: 2px;
    width: 2px; height: auto;
    margin: 0;
  }
  .track__seg:last-child::after { display: none; }
  .brief-digest { grid-template-columns: 1fr; gap: 12px; }
  .camp-head { flex-direction: column; gap: 8px; }

  /* --- 角落工具收成小浮标，让开吸底动作条 --- */
  .corner-stack {
    left: 12px;
    bottom: calc(var(--corner-lift, 108px) + env(safe-area-inset-bottom));
    gap: 8px;
  }
  /* 两个浮标并排成一行，少挡一半内容；展开时再铺开。 */
  .corner-stack { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .fb-panel { width: 132px; }
  .demo-panel { width: 116px; }
  .fb-panel:not(.is-collapsed),
  .demo-panel:not(.is-collapsed) { width: calc(100vw - 24px); }
  .fb-pill { height: 34px; font-size: 11px; padding: 0 10px; }
  .fb-count { font-size: 10px; }
  .demo-panel__head { padding: 8px 10px; }
  .demo-jump button, .demo-jump .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .gen-orb { animation: none; }
}

/* Overview thumbnails embed this page; the prototype chrome would repeat 15 times. */
.is-embedded .corner-stack,
.is-embedded .proto-badge { display: none; }

[hidden] { display: none !important; }

/* ============================================================
   试衣档 ?accent=gold（aihero.dev / daisy.club 式「墨 + 金」，非定案）：
   金色只当填充、上面永远是深字；线、环、链接、选中态全部回到墨色。
   验证的是「口音稀缺 + 墨色骨架」，不是黄色本身。
   ============================================================ */
[data-accent="gold"] {
  --fill: #f5c451;
  --edge: #16181d;
  --deep: #16181d;
  --link: #16181d;
  --tint: rgba(22, 24, 29, 0.045);
}
[data-accent="gold"] .btn--primary { color: #191510; }
[data-accent="gold"] .btn--primary:hover,
[data-accent="gold"] .btn--primary:focus-visible { filter: brightness(0.97); }
[data-accent="gold"] .stepbar__item.is-done .stepbar__bar { background: rgba(22, 24, 29, 0.18); }
/* 金底上白勾只有 1.6:1——金档下对勾换深墨，其余状态不动 */
[data-accent="gold"] .radio-item.is-on .radio-dot::after,
[data-accent="gold"] .choice.is-on .choice__tick::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'><path d='M1 4.2 3.9 7 10 1' fill='none' stroke='%23191510' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ============================================================
   试衣档 ?layout=zoned（创始人 2026-08-09，参照 aihero 的分区结构，主色不换）：
   1. 侧栏换灰，和内容区形成色区隔；内容区与顶栏同为白
   2. 向导大卡拆壳：标题、说明、字段标签裸排在白底上，
      只有可交互簇（选项卡、输入框、日历）和系统持有块保留自己的框——
      「框和正文混排」的层次
   ============================================================ */
[data-layout="zoned"] body::before,
[data-layout="zoned"] body::after { display: none; }
/* 灰带从顶栏下缘才开始：顶栏是半透明玻璃，底下若灰白各半，条会被衬成两截。
   上 48px 露出白纸让整根条的衬底均匀；发丝线撤掉，分区靠色块本身（aihero 式）。 */
[data-layout="zoned"] .sidebar {
  background: linear-gradient(to bottom,
    rgba(244, 245, 247, 0) 0, rgba(244, 245, 247, 0) 48px, #f4f5f7 48px);
  box-shadow: none;
}
[data-layout="zoned"] .topbar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--hair-softer) 0 -0.5px 0 0 inset;
}
[data-layout="zoned"] .card.wz-step {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* ---------- zoned 第二轮（创始人 2026-08-09 六条）：
   顶栏全宽带 logo、侧栏退到顶栏下面、侧栏去 AI 味（去圆点、组标、墨色选中）、
   字阶与间距拉开呼吸 ---------- */
/* z 提到侧栏(31)之上：.sidebar 是 flex 子项，z-index 不定位也生效，
   不提的话通栏左 216px 会被不透明灰侧栏盖住（2026-08-09 实测坑） */
[data-layout="zoned"] .topbar { left: 0; z-index: 40; }
[data-layout="zoned"] .topbar__brand { display: flex; }
[data-layout="zoned"] .topbar__title { display: none; }   /* 屏名由 h1 承担，顶栏保持薄 */
[data-layout="zoned"] .sidebar > .brand { display: none; }
[data-layout="zoned"] .sidebar { padding-top: 66px; }

[data-layout="zoned"] .nav__dot { display: none; }
[data-layout="zoned"] .nav { gap: 3px; }
[data-layout="zoned"] .nav a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-body);
}
[data-layout="zoned"] .nav a:hover:not(.is-active) { background: rgba(22, 24, 29, 0.05); }
/* 选中态跟基础档同款品牌 tint（创始人 2026-08-09：纯墨不是我们的颜色，撤） */

[data-layout="zoned"] .h-page { font-size: 40px; letter-spacing: -0.8px; margin-bottom: 14px; }
[data-layout="zoned"] .step-head { margin-bottom: 40px; }
[data-layout="zoned"] .step-head .muted { font-size: 15px; }
[data-layout="zoned"] .stepbar { margin-bottom: 42px; }
[data-layout="zoned"] .field { margin-bottom: 36px; }
[data-layout="zoned"] .label { margin-bottom: 10px; }
[data-layout="zoned"] .wizard-foot { margin-top: 38px; padding-top: 22px; }
[data-layout="zoned"] .scroll { padding-top: 88px; padding-bottom: 110px; }

/* ---------- 试衣档 ?glass=liquid（iOS 26 液态玻璃，创始人 2026-08-09）----------
   配方源：kube.io/blog/liquid-glass-css-svg（2025-09）与 LogRocket（2025-12）——
   位移图喂给 feDisplacementMap 做边缘折射，轻模糊 + 高饱和；位移图用内联 SVG
   竖向渐变编码（G 通道 = 纵向位移，横条就是一根柱面透镜）。
   backdrop-filter 里引用 SVG filter 仅 Chromium 支持；先声明的
   常规模糊是 Safari/Firefox 的回退。 */
[data-glass="liquid"] .topbar {
  background: rgba(252, 252, 253, 0.38);   /* 液态玻璃比磨砂透得多 */
  backdrop-filter: blur(6px) saturate(180%) brightness(1.03);
  -webkit-backdrop-filter: blur(6px) saturate(180%) brightness(1.03);
  backdrop-filter: url(#lg-bar) saturate(180%) brightness(1.03);
}

/* 讨论补丁贴纸：钉在待定案的字段区上，虚线框 + 琥珀底 + 系统字，
   照脚手架纪律故意不进产品视觉语言——合伙人一眼看出这是批注不是功能 */
.proto-note {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1.5px dashed var(--amber-line);
  border-radius: 8px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 12.5px;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.proto-note b { font-weight: 700; }
