/* ============================================================
   ASMY 店员手机工作台 · 真实功能版（staff-live）
   视觉直接继承 staff-polish/DESIGN.md：暖白底 + 陶橙任务主卡 +
   照片主视觉 + 绿色原版 Logo + 柔和系统中文字体 + 三主导航。
   与原型唯一的差别：去掉评审用的演示导航 / 手机假状态栏 /
   演示标签，页面直接适合移动浏览器；其余 token、组件、版式不变。
   ============================================================ */

:root {
  /* —— 品牌 token（绿色原 Logo = logo.svg，此处只放界面色）—— */
  --bg:            #fafaf7;
  --surface:       #ffffff;
  --surface-2:     #f3efe7;
  --fg:            #1a1916;
  --muted:         #6b6964;
  --border:        #e8e5df;
  --border-strong: #d8d3c9;

  --accent:        #c96442;  /* 品牌陶橙：chip / 当前导航 / 小面积 */
  --accent-deep:   #b0532c;  /* 承白字的主卡与主按钮（对比度达标）*/
  --accent-ink:    #9c3d22;  /* 浅底上的橙色文字 / 图标 */

  --accent-weak:   color-mix(in oklch, var(--accent) 12%, var(--surface));
  --success:       #2e7d32;
  --success-weak:  color-mix(in oklch, var(--success) 13%, var(--surface));
  --warn:          #8a5a06;
  --warn-weak:     color-mix(in oklch, var(--warn) 15%, var(--surface));
  --danger:        #b3261e;
  --danger-weak:   color-mix(in oklch, var(--danger) 12%, var(--surface));

  --ring:          #2f6bb0;

  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "SF Mono", ui-monospace, Menlo, monospace;

  --fs-h1: 25px;
  --fs-h2: 19px;
  --fs-h3: 16px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-cap: 12px;

  --lh-head: 1.35;   /* CJK 标题行高 */
  --lh-body: 1.72;   /* CJK 正文行高 */

  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 13px;
  --r-sm: 10px;

  --pad: 20px;
  --gap: 16px;

  --shadow-card: 0 1px 2px rgba(26,25,22,.04);
  --shadow-float: 0 24px 60px -28px rgba(26,25,22,.5), 0 2px 8px -4px rgba(26,25,22,.18);
}

/* 大字（实际 125% 字号模式） */
html.large {
  --fs-h1: 31.25px;
  --fs-h2: 23.75px;
  --fs-h3: 20px;
  --fs-body: 18.75px;
  --fs-sm: 16.25px;
  --fs-cap: 15px;
  --pad: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #ece8e0;
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; background: var(--surface-2); }
img.is-loading { opacity: .45; filter: saturate(.75); }
img.is-loaded { opacity: 1; transition: opacity .16s ease; }
img.is-error { opacity: .2; }
button, input, select, textarea, a { font: inherit; touch-action: manipulation; }
svg { display: block; }

/* focus ring：所有可聚焦元素统一、可见、不依赖颜色 */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ───────────────────────── 应用外壳（真实移动页面）───────────────────────── */
.shell {
  position: relative;
  /* 限定内部滚动视口；旧浏览器使用 vh，新浏览器跟随地址栏高度。 */
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
@media (min-width: 600px) {
  body { padding: 0; }
  .shell {
    max-width: 420px; margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

.app { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.view {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.view::-webkit-scrollbar { width: 0; height: 0; }

.pad { padding-inline: var(--pad); }
.stack { display: flex; flex-direction: column; }
.screen-top { padding-top: 18px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
.gap-sm { gap: 10px; } .gap { gap: var(--gap); } .gap-lg { gap: 24px; }

/* ───────────────────────── 排版 ───────────────────────── */
h1, h2, h3 { font-weight: 600; }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: -.005em; margin: 0; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); margin: 0; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-head); margin: 0; }
.body { margin: 0; }
.muted { color: var(--muted); }
.sm { font-size: var(--fs-sm); }
.cap { font-size: var(--fs-cap); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-word; }
.eyebrow {
  font-size: var(--fs-cap); letter-spacing: .06em; color: var(--muted);
  text-transform: none; margin: 0;
}
.hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; margin: 0; }
.strong { font-weight: 600; }
.lead { font-size: var(--fs-h3); line-height: var(--lh-head); }

.app-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 6px;
}
.brand-logo { height: 32px; width: auto; display: block; background: none; }
.brand-logo--lg { height: 44px; }

/* ───────────────────────── 卡片 ───────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card--quiet { background: transparent; border: 1px solid var(--border); box-shadow: none; }
.card--inset { background: var(--surface-2); border-color: transparent; box-shadow: none; }

/* ───────────────────────── 按钮 ───────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 13px 18px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-body); font-weight: 600; letter-spacing: .02em;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .06s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #9d4923; }
.btn-primary:active { background: #8f411e; }
.btn-primary:disabled { opacity: .55; cursor: default; }

.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); font-weight: 500; }
.btn-secondary:hover { background: #f6f2ea; border-color: #cbc4b8; }
.btn-secondary:disabled { opacity: .55; cursor: default; }

.btn-ghost { background: transparent; color: var(--accent-ink); border: 0; min-height: 44px; font-weight: 600; }
.btn-ghost:hover { background: var(--accent-weak); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c1f18; }

.btn-hero { background: #fff; color: var(--accent-ink); }
.btn-hero:hover { background: #fdeee7; }
.btn-hero:disabled { opacity: .7; cursor: default; }

/* 文本型行内链接按钮 */
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 2px;
  background: none; border: 0; border-top: 1px solid var(--border);
  color: var(--fg); font-size: var(--fs-body); font-weight: 500; cursor: pointer; text-align: left;
}
.link-row:hover { color: var(--accent-ink); }
.link-row:disabled { color: var(--muted); cursor: default; }
.link-row svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-row .grow { flex: 1; min-width: 0; }

/* 返回 */
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 8px 2px; background: none; border: 0;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.back:hover { color: var(--fg); }
.back:disabled { color: var(--border-strong); cursor: default; }
.back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 带标签的字段 ───────────────────────── */
.field { display: block; margin: 0; }
.field > span { display: block; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 6px; }
input, select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--fg);
  font: inherit; font-size: var(--fs-body);
}
input::placeholder { color: #a49e94; }
input:focus, select:focus { border-color: var(--accent); }
input:disabled, select:disabled { background: color-mix(in oklch, var(--fg) 4%, var(--surface)); color: var(--muted); }
select { appearance: none; background-image: none; }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 76px; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-width: 64px; min-height: 44px; padding: 7px 9px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--accent-ink); cursor: pointer; font-size: var(--fs-sm); }
.password-toggle:hover { background: var(--accent-weak); }

/* 勾选行 */
.check {
  display: flex; align-items: flex-start; gap: 10px;
  min-height: 44px; padding: 10px 2px; cursor: pointer; font-size: var(--fs-body); line-height: 1.5;
}
.check input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0;
  flex: none; accent-color: var(--accent-deep);
}
.check span { min-width: 0; }

/* 搜索框 */
.search { position: relative; }
.search > svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; stroke: var(--muted); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.search input { padding-left: 42px; }

/* ───────────────────────── chips / 标签 ───────────────────────── */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--accent-weak); color: var(--accent-ink);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; letter-spacing: .01em;
}
.chip--line { background: transparent; border: 1px solid var(--border-strong); color: var(--fg); font-weight: 400; }
.chip--ok { background: var(--success-weak); color: #205a24; }
.chip--warn { background: var(--warn-weak); color: var(--warn); }
.chip--danger { background: var(--danger-weak); color: var(--danger); }
.chip--muted { background: color-mix(in oklch, var(--fg) 6%, var(--surface)); color: var(--muted); }
.chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tag-lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-cap); color: var(--muted); letter-spacing: .02em;
}
.tag-lock svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 提示条（克制、不堆叠）───────────────────────── */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: var(--fs-sm); line-height: 1.6;
}
.notice span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice--info { background: color-mix(in oklch, var(--fg) 5%, var(--surface)); color: var(--fg); }
.notice--warn { background: var(--warn-weak); color: #6b4706; }
.notice--danger { background: var(--danger-weak); color: #7d1b15; }
.notice--ok { background: var(--success-weak); color: #205a24; }
.notice b { font-weight: 600; }

/* ───────────────────────── 主卡片（A 方向）───────────────────────── */
.hero {
  background: var(--accent-deep);
  border-radius: var(--r-xl);
  padding: 16px 16px 18px;
  color: #fff;
}
.hero-photo-wrap {
  border-radius: var(--r-md); overflow: hidden; background: #f0ebe2;
  display: grid; place-items: center;
}
.hero-photo { width: 100%; height: 200px; object-fit: contain; display: block; }
.hero-empty {
  width: 100%; height: 200px; display: grid; place-items: center;
  background: #f0ebe2; color: var(--accent-ink);
}
.hero-empty svg { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-name { color: #fff; font-size: 22px; line-height: 1.35; margin: 14px 0 0; letter-spacing: .005em; }
.hero-sub { color: #fff; font-size: var(--fs-cap); letter-spacing: .02em; margin: 5px 0 0; }
.hero .btn-hero { margin-top: 15px; }

/* ───────────────────────── 照片网格 / 图块 ───────────────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-tile {
  position: relative; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4;
}
.photo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-tile .role-tag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(26,25,22,.72); color: #fff;
  font-size: 11px; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px;
}
.photo-tile .tile-zoom { position: absolute; inset: 0; border: 0; background: none; padding: 0; cursor: zoom-in; }
.photo-tile .tile-state {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px;
  background: var(--surface-2); color: var(--muted); text-align: center; padding: 12px;
  font-size: var(--fs-sm); line-height: 1.5;
}
.photo-tile .tile-state svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-tile.is-failed { border-color: #e0b4af; }
.photo-tile .tile-state--fail { color: var(--danger); }
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner--sm { width: 15px; height: 15px; border-width: 2px; display: inline-block; vertical-align: -2px; }

/* 空态拍照区 */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-xl);
  background: color-mix(in oklch, var(--fg) 3%, var(--surface));
  min-height: 210px; display: grid; place-items: center; text-align: center;
  padding: 24px; gap: 8px; width: 100%; cursor: pointer; color: inherit;
}
.dropzone:disabled { cursor: default; }
.dropzone .dz-icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-weak); color: var(--accent-ink); margin: 0 auto 4px;
}
.dropzone .dz-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone .h3 { margin-bottom: 2px; }

/* ───────────────────────── 渐进展开 details ───────────────────────── */
details.disclosure { border-top: 1px solid var(--border); }
details.disclosure > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 10px 0; cursor: pointer;
  font-size: var(--fs-body); font-weight: 500; color: var(--fg);
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .lead-in { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
details.disclosure > summary .lead-in svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
details.disclosure > summary .lead-in b { color: var(--fg); font-weight: 500; }
details.disclosure > summary .chev { transition: transform .18s ease; color: var(--muted); }
details.disclosure > summary .chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
details.disclosure[open] > summary .chev { transform: rotate(90deg); }
details.disclosure .disc-body { padding: 2px 0 14px; }

/* ───────────────────────── 列表行 ───────────────────────── */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--border);
  text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%;
}
.list-row:first-child { border-top: 0; }
button.list-row { cursor: pointer; }
button.list-row:hover { background: color-mix(in oklch, var(--fg) 3%, transparent); }
.list-row .grow { flex: 1; min-width: 0; }
/* 列表行里的裸图标（选中态的勾）没有尺寸规则时，SVG 会按默认固有尺寸撑开，
   把右侧的 .grow 压成 0 宽 —— 表现为名字被挤成一列一个字、行高暴涨。
   模型选择、表现方式选择、姿势选择三处都是同一个写法，这里统一给尺寸。 */
.list-row > svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.list-row .title { font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.list-row .sub { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.list-row .chev svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 目录卡 ───────────────────────── */
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.outfit-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; padding: 0; text-align: left; cursor: pointer; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; color: inherit;
}
.outfit-card:hover { border-color: var(--border-strong); }
.outfit-card .oc-img { background: var(--surface-2); display: grid; place-items: center; }
.outfit-card .oc-img img { width: 100%; height: 168px; object-fit: contain; display: block; }
.outfit-card .oc-img .oc-holder { height: 168px; display: grid; place-items: center; color: var(--muted); }
.outfit-card .oc-img .oc-holder svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.outfit-card .oc-meta { display: block; padding: 10px 12px 12px; }
.outfit-card .oc-name { display: block; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; }
.outfit-card .oc-num { display: block; font-size: var(--fs-cap); color: var(--muted); margin-top: 2px; }

/* ───────────────────────── 详情图 ───────────────────────── */
.detail-cover {
  width: 100%; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 0; overflow: hidden; cursor: zoom-in; display: block;
}
.detail-cover img { width: 100%; height: 300px; object-fit: contain; display: block; }
.thumb-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb-row::-webkit-scrollbar { height: 0; }
.thumb {
  flex: 0 0 auto; width: 82px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); padding: 0; overflow: hidden; cursor: zoom-in;
}
.thumb img { width: 100%; height: 96px; object-fit: contain; display: block; }
.thumb .t-cap { font-size: 11px; color: var(--muted); padding: 5px 0 6px; text-align: center; }
.thumb.is-active { border-color: var(--accent); }

/* ───────────────────────── 底部导航 ───────────────────────── */
.nav {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.nav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0; min-height: 56px; border: 0; border-radius: 12px;
  background: none; color: var(--muted); font-size: var(--fs-cap); letter-spacing: .03em; cursor: pointer;
}
.nav button:hover { color: var(--fg); background: color-mix(in oklch, var(--fg) 4%, transparent); }
.nav button:active:not(:disabled) { transform: translateY(1px); }
.nav button[aria-current="page"] { color: var(--accent-ink); }
.nav button[aria-current="page"] svg { stroke-width: 2; }
.nav svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 底部动作栏（流程内页面使用；与导航互斥，避免遮挡）*/
.actionbar {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 95%, transparent);
  backdrop-filter: blur(18px);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 9px;
}
.actionbar .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actionbar .ab-note { font-size: var(--fs-cap); color: var(--muted); text-align: center; line-height: 1.5; }

/* ───────────────────────── 浮层：sheet / modal / 看图 ───────────────────────── */
.layer { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.layer .on, .layer .viewer { pointer-events: auto; }
.scrim {
  position: absolute; inset: 0; background: rgba(26,25,22,.44);
  animation: fade .18s ease; display: flex; align-items: flex-end; justify-content: center;
}
.scrim--center { align-items: center; padding: 24px; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-height: 84%; overflow-y: auto;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 10px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
  animation: rise .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 6px auto 14px; }
.sheet h2 { margin-bottom: 4px; }
.sheet .sheet-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.modal {
  width: 100%; max-width: 330px; background: var(--surface); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow-float); animation: rise .2s ease;
}
.modal h2 { margin-bottom: 8px; }
.modal .modal-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }

.viewer {
  position: absolute; inset: 0; background: rgba(18,17,15,.94);
  display: flex; flex-direction: column; animation: fade .18s ease;
}
.viewer .v-top { display: flex; justify-content: flex-end; padding: 14px 16px 4px; }
.viewer .v-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.viewer .v-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.viewer .v-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 18px; }
.viewer .v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.viewer .v-cap { color: #e9e5dd; text-align: center; font-size: var(--fs-sm); padding: 6px 18px 22px; }

/* ───────────────────────── 成功态 ───────────────────────── */
.done-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 0; gap: 14px; }
.done-badge {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success-weak); color: var(--success);
}
.done-badge svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 启动 / 诚实提示 / 空态 ───────────────────────── */
.center-screen {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 28px; gap: 16px; min-height: 0;
}
.center-screen .brand-logo { height: 40px; }
.center-screen .body { max-width: 32ch; }
.empty-state {
  text-align: center; padding: 30px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.empty-state svg { width: 46px; height: 46px; stroke: var(--border-strong); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 工具类 ───────────────────────── */
[hidden] { display: none !important; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--top { align-items: flex-start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.is-on { border-color: var(--accent); border-width: 2px; color: var(--accent-ink); }
.btn-left { justify-content: flex-start; }
.draft-thumb { width: 52px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.draft-thumb img { width: 100%; height: 64px; object-fit: contain; display: block; }
.save-thumb { width: 84px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.save-thumb img { width: 100%; height: 105px; object-fit: contain; display: block; }
.done-badge.avatar { width: 52px; height: 52px; flex: none; background: var(--accent-weak); color: var(--accent-ink); }
.done-badge.avatar svg { width: 26px; height: 26px; }
.inline-gap { margin-top: 4px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 18px; } .mt-5 { margin-top: 26px; }
.grow { flex: 1; min-width: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.btn-compact { width: auto; min-height: 44px; padding: 8px 14px; font-size: var(--fs-sm); }

/* ───────────────────────── 整理建议 / 补拍 ───────────────────────── */
.demo-label {
  margin: 0; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--warn-weak); color: #6b4706;
  font-size: var(--fs-sm); line-height: 1.6;
}
.suggestion-card { gap: 8px; }
.suggestion-name { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: 600; }
.evidence-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0; padding: 7px 0; border-top: 1px solid var(--border);
}
.evidence-row:first-child { border-top: 0; padding-top: 0; }
.evidence-row span { min-width: 0; }
.evidence-row small { color: var(--muted); font-size: var(--fs-cap); white-space: nowrap; }

/* ───────────────────────── 疑似重复对照 ───────────────────────── */
.candidate-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.candidate-pager button {
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.candidate-pager button:disabled { opacity: .5; cursor: default; }
.candidate-pager span { font-size: var(--fs-sm); color: var(--muted); }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.compare-pair img {
  width: 100%; height: 150px; object-fit: contain;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.compare-pair figcaption { font-size: var(--fs-cap); color: var(--muted); line-height: 1.5; }
.compare-pair figcaption b { color: var(--fg); font-family: var(--font-num); }

/* ───────────────────────── 成员管理 ───────────────────────── */
.card--quiet .row-between { gap: 10px; }

/* ───────────────────────── 我的模特 / 门店模特（06）───────────────────────── */
.selector-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  text-align: left; cursor: pointer; color: inherit; box-shadow: var(--shadow-card);
}
.selector-row:hover { border-color: var(--border-strong); }
.selector-row--warn { border-color: #e6c79a; background: var(--warn-weak); }
.selector-row > svg { width: 22px; height: 22px; flex: none; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.selector-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.selector-row .sel-k { font-size: var(--fs-cap); color: var(--muted); }
.selector-row .sel-v { font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.sel-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center;
}
.sel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-thumb--empty svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.model-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; padding: 0; text-align: left; cursor: pointer; color: inherit;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.model-card:hover { border-color: var(--border-strong); }
.model-card .model-photo { position: relative; display: block; background: var(--surface-2); aspect-ratio: 3 / 4; }
.model-card .model-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-card .model-holder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.model-card .model-holder svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.model-badge {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  background: rgba(26,25,22,.72); color: #fff; font-size: var(--fs-cap); letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
}
.model-badge--warn { background: var(--warn); }
.model-card .model-meta { display: block; padding: 10px 12px 12px; }
.model-card .model-name { display: block; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-card .model-sub { display: block; font-size: var(--fs-cap); color: var(--muted); margin-top: 2px; }

.model-hero {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface-2); overflow: hidden; cursor: zoom-in; color: inherit;
}
.model-hero img { width: 100%; height: 320px; object-fit: cover; display: block; }
.model-hero--empty { height: 240px; display: grid; place-items: center; color: var(--muted); cursor: default; }
.model-hero--empty svg { width: 46px; height: 46px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.events-list { display: flex; flex-direction: column; }
.event-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.event-row:first-child { border-top: 0; }
.event-row span { min-width: 0; }
.event-row small { color: var(--muted); font-size: var(--fs-cap); white-space: nowrap; }

/* Current selection uses the same compact icon treatment as the home selector. */
.model-current > svg { width: 22px; height: 22px; flex: none; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-current > .grow { display: flex; flex-direction: column; gap: 2px; }

/* ───────────────────────── 四场景计划（07）───────────────────────── */
.plan-thumb-empty { display: grid; place-items: center; color: var(--muted); }
.plan-thumb-empty svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.save-thumb.plan-thumb-empty { height: 105px; }
.draft-thumb.plan-thumb-empty { height: 64px; }

.scene-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scene-slot {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.scene-slot-img { position: relative; background: var(--surface-2); aspect-ratio: 4 / 3; }
.scene-slot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-holder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.scene-holder svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.slot-badge {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  background: rgba(26,25,22,.72); color: #fff; font-size: 11px; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
}
.slot-badge--first { background: var(--accent); }
.scene-slot-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; }
/* 按钮不参与压缩：名字宁可出省略号，也不能把按钮折成两行（「咖啡馆窗边」这种长名字会挤到它）。 */
.scene-slot-meta .btn-compact { flex: none; white-space: nowrap; }
/* 姿势卡没有缩略图，用单列让「第 2 张 · 四分之三侧身」这类名字完整显示。 */
.scene-slots--rows { grid-template-columns: minmax(0, 1fr); }
.scene-slot-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.scene-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.scene-option {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 0; overflow: hidden; cursor: pointer; color: inherit; text-align: left;
  display: flex; flex-direction: column;
}
.scene-option:hover { border-color: var(--border-strong); }
.scene-option.is-current { border-color: var(--accent); border-width: 2px; }
.scene-option.is-disabled { opacity: .45; cursor: default; }
.scene-option-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.scene-option-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-option-name { display: block; font-size: var(--fs-cap); line-height: 1.35; padding: 6px 8px 8px; }
.scene-flag {
  position: absolute; right: 6px; top: 6px; z-index: 1;
  background: rgba(26,25,22,.72); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px;
}
.scene-flag--cur { background: var(--accent); }

/* Plan pickers stay in the phone viewport even when the plan is long. */
.plan-scrim { position: fixed; inset: 0; max-width: 420px; margin-inline: auto; }
.plan-scrim .pick-sheet { max-height: 84dvh; }

@media (max-width: 380px) {
  .scene-slot-meta { flex-direction: column; align-items: stretch; }
  .scene-slot-name { white-space: normal; overflow: visible; }
  .scene-slot-meta button { white-space: nowrap; }
}

/* ───────────────────────── 首图制作 / 对照 / 历史（08）───────────────────────── */
textarea {
  width: 100%; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--fg); font: inherit; font-size: var(--fs-body); line-height: 1.5;
}
textarea::placeholder { color: #a49e94; }
textarea:focus { border-color: var(--accent); outline: none; }

.fi-working {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
}
.fi-working .grow { min-width: 0; }

.fi-sample {
  display: inline-block; margin-top: 10px;
  background: var(--warn-weak); color: var(--warn); font-size: var(--fs-cap); font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
}

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg-btn {
  min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: var(--fs-sm); cursor: pointer;
}
.chip, .list-row .sub, .settings-row span { overflow-wrap: anywhere; word-break: break-word; }
.seg-btn.is-on { background: var(--surface); color: var(--fg); font-weight: 500; box-shadow: var(--shadow-card); }
.seg-btn:disabled { opacity: .45; cursor: default; }

.fi-stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
  aspect-ratio: 3 / 4; max-height: 460px;
}
.fi-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fi-holder svg { width: 44px; height: 44px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.fi-src-row { display: flex; gap: 8px; }
.fi-src {
  width: 56px; height: 72px; padding: 0; flex: none; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
}
.fi-src.is-on { border-color: var(--accent); border-width: 2px; }
.fi-src img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fi-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fi-actions a.btn { text-decoration: none; }
.fi-actions .btn svg { width: 17px; height: 17px; }

.fi-h-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.fi-h-row:first-child { border-top: 0; }
.fi-h-row .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fi-h-thumb {
  width: 46px; height: 58px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); display: block;
}
.fi-h-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi-h-thumb--empty { display: grid; place-items: center; }
.fi-h-thumb--empty svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 380px) {
  .fi-actions { flex-direction: column; align-items: stretch; }
  .fi-actions .btn, .fi-actions a.btn { width: 100%; }
}

.fi-viewer { position: fixed; inset: 0; max-width: 420px; margin-inline: auto; }
.fi-original-link { color: inherit; display: inline-block; padding: 12px; }

/* Keep the entire source/result inside the comparison viewport. */
.fi-stage img { position: absolute; inset: 0; }
button.fi-h-thumb { border: 0; padding: 0; cursor: pointer; }

/* ───────────────────────── 四张图片（09）───────────────────────── */
.four-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.four-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.four-card-img { position: relative; background: var(--surface-2); aspect-ratio: 4 / 5; }
.four-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.four-holder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.four-holder svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.four-sample {
  position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center;
  background: var(--warn-weak); color: var(--warn); font-size: 10px; font-weight: 500;
  padding: 3px 6px; border-radius: 999px;
}
.four-card-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; }
.four-card-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.four-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.four-card-actions .btn { flex: 1 1 auto; justify-content: center; }
.four-card-actions a.btn { text-decoration: none; }
.four-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.four-footer .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 380px) {
  .four-card-name { white-space: normal; overflow: visible; }
  .four-card-actions { flex-direction: column; align-items: stretch; }
  .four-card-actions .btn, .four-card-actions a.btn { width: 100%; }
}

/* Narrow cards keep complete scene names and status labels readable. */
.four-card-body > .row-between { flex-direction: column; align-items: flex-start; gap: 6px; }
.four-card-name { white-space: normal; overflow: visible; }
.four-card-body .chip { white-space: nowrap; flex: none; }

.four-card-actions .btn { padding-inline: 6px; gap: 4px; white-space: nowrap; }

/* ───────────── 单张重做·取消·找回 / 制作设置（10）───────────── */
.slot-hist { display: flex; flex-direction: column; }
.slot-hist-row .grow { gap: 3px; }
.slot-hist .fi-h-thumb { width: 54px; height: 68px; }
.slot-hist .fi-h-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.slot-hist .fi-h-actions .btn,
.slot-hist .fi-h-actions a.btn { width: auto; min-height: 44px; padding: 6px 10px; font-size: var(--fs-sm); gap: 4px; text-decoration: none; }
.slot-hist .fi-h-actions .btn svg { width: 16px; height: 16px; }

.image-records .card--quiet { gap: 4px; }

@media (max-width: 380px) {
  .slot-hist .fi-h-actions { flex-direction: column; align-items: stretch; }
  .slot-hist .fi-h-actions .btn,
  .slot-hist .fi-h-actions a.btn { width: 100%; }
}

/* ───────────── 图片和文案成果（11）───────────── */
.pkg-images, .pkg-share, .pkg-caption { display: flex; flex-direction: column; gap: 8px; }
.pkg-head-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.pkg-head-right .btn { flex: none; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pkg-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.pkg-card-img { position: relative; background: var(--surface-2); aspect-ratio: 4 / 5; }
.pkg-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pkg-holder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.pkg-holder svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pkg-card-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; }
.pkg-card-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-card-actions .btn { flex: 1 1 auto; justify-content: center; }
.pkg-card-actions a.btn { text-decoration: none; }

.pkg-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-share-actions .btn { flex: 1 1 auto; justify-content: center; }
.pkg-fallback { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.pkg-fallback-list { display: flex; flex-direction: column; gap: 8px; }
.pkg-fallback-row { display: flex; align-items: center; gap: 8px; }
.pkg-fallback-row .grow { min-width: 0; }
.pkg-fallback-row .btn, .pkg-fallback-row a.btn { flex: none; text-decoration: none; }

.pkg-caption-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-caption-actions .btn { flex: 1 1 auto; justify-content: center; }
.pkg-caption textarea { min-height: 96px; }

/* ───────────── 作品与共享（12）───────────── */
.work-row { align-items: flex-start; }
.work-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.work-caption { display: flex; flex-direction: column; gap: 8px; }
.work-caption .row-between { align-items: center; }
.work-caption-text {
  margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--fg);
  white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 12px;
}
.work-caption textarea { min-height: 88px; }

@media (max-width: 380px) {
  #pkg-panel .row-between { flex-wrap: wrap; row-gap: 6px; }
  .pkg-head-right { flex-wrap: wrap; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-card-actions { flex-direction: column; align-items: stretch; }
  .pkg-card-actions .btn, .pkg-card-actions a.btn { width: 100%; }
  .pkg-share-actions { flex-direction: column; align-items: stretch; }
  .pkg-share-actions .btn { width: 100%; }
  .pkg-fallback-row { flex-wrap: wrap; }
  .pkg-caption-actions { flex-direction: column; align-items: stretch; }
  .pkg-caption-actions .btn { width: 100%; }
  .work-caption .row-between { flex-wrap: wrap; row-gap: 6px; }
  .work-caption .btn { width: 100%; }
}

/* 作品详情窄图卡：场景名完整换行，状态保持横排。 */
.work-package .pkg-card-body > .row-between { flex-direction: column; align-items: flex-start; gap: 6px; }
.work-package .pkg-card-name { white-space: normal; overflow: visible; }
.work-view .row-between { flex-wrap: wrap; gap: 6px; }
.work-view .chip { white-space: nowrap; flex: none; }

/* ───────────── 可选视频（13）───────────── */
#video-panel .video-params { display: flex; flex-wrap: wrap; gap: 6px; }
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
}
.video-thumb {
  flex: none; width: 84px; aspect-ratio: 9 / 16; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0; font: inherit; cursor: pointer; overflow: hidden;
}
.video-thumb svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-thumb--empty { color: var(--muted); cursor: default; }
.video-thumb-tag { font-size: var(--fs-sm); color: var(--muted); }
.video-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.video-item-body .work-chips { margin-top: 0; }
.video-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.video-item-actions .btn, .video-item-actions a.btn { flex: 1 1 auto; justify-content: center; text-decoration: none; }
.video-confirm-thumb { display: grid; place-items: center; margin: 4px 0; }
.video-confirm-thumb img { width: 120px; aspect-ratio: 9 / 16; object-fit: contain; border-radius: var(--r-md); border: 1px solid var(--border); }
.video-facts { margin: 6px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.viewer .v-stage--video video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }

@media (max-width: 380px) {
  .video-item { flex-direction: column; }
  .video-thumb { width: 100%; aspect-ratio: 9 / 16; max-height: 220px; }
  .video-item-actions { flex-direction: column; align-items: stretch; }
  .video-item-actions .btn, .video-item-actions a.btn { width: 100%; }
}

/* 视频浮层固定在手机视口，避免跟随整页高度居中。 */
.viewer.video-viewer { position: fixed; inset: 0; height: 100dvh; width: 100%; max-width: 420px; margin-inline: auto; }
.viewer.video-viewer video { object-fit: contain; max-height: calc(100dvh - 170px); }

/* 15：沿用模特卡片，参考照片完整展示，避免裁掉头脚。 */
.model-reference .model-photo img { object-fit: contain; }

/* 字号设置图标固定尺寸，避免 SVG 默认尺寸撑高手机卡片。 */
.text-size-heading > svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── 表现方式（与环境场景正交的第二维度）───────────────────────── */
/* 复用现有 list-row / card / hint / eyebrow，只补必要的排版，不新增视觉语言。 */
.perf-option.is-current { background: var(--accent-weak); }
.perf-option .grow, .pose-option .grow { display: flex; flex-direction: column; gap: 2px; }
/* 姿势选项复用表现方式的列表行观感；一期没有缩略图，所以只靠选中底色和“已用”文字区分。 */
.pose-option.is-current { background: var(--accent-weak); }
.pose-option.is-disabled { opacity: .45; cursor: default; }
.perf-card { gap: 6px; }
.perf-badge {
  flex: none; font-size: var(--fs-sm); color: var(--accent-ink);
  background: var(--accent-weak); border-radius: 999px; padding: 2px 9px; line-height: 1.5;
}
.perf-detail { margin-top: 6px; }
.perf-detail--warn .eyebrow { color: var(--warn); }
.perf-shots, .perf-list { list-style: none; margin: 4px 0 0; padding: 0; }
.perf-shot { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); }
.perf-shot:first-child { border-top: 0; }
.perf-time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 58px; }
.perf-list li { padding: 4px 0 4px 14px; position: relative; }
.perf-list li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.perf-detail--warn .perf-list li::before { background: var(--warn); }

/* ══════════════════════════════════════════════════════════════════════════
   「做图文」屏试点 · 作用域 .plan-v2 / .ab-v2
   ──────────────────────────────────────────────────────────────────────────
   只在这一屏生效，不覆盖任何全局 token，其余 17 屏一个字不变。
   设计取自 docs/staff/ux-audit/V5-FREED-20261015.html 与 V5-APP-20261015.html：
   暖白底 + 近黑结构色 + 玻璃卡 + 暖黑三层软阴影 + 全胶囊。
   两条原则：
     ① 主按钮不再用「变灰」表达不可用 —— 缺什么写在按钮上方，点了跳到那一块；
     ② 卡片不描边，靠同色系分层与软阴影浮起。
   ══════════════════════════════════════════════════════════════════════════ */
.plan-v2, .ab-v2 {
  --p2-fg:    #17150F;
  --p2-muted: #6B6964;
  --p2-hair:  rgba(23, 21, 15, .10);
  --p2-glass: rgba(255, 255, 255, .58);
  --p2-edge:  rgba(255, 255, 255, .70);
  /* 阴影用暖黑，不用纯黑 —— 纯黑压在暖白底上会发脏 */
  --p2-sh1: 0 1px 2px rgba(23, 21, 15, .05), 0 6px 16px -10px rgba(23, 21, 15, .30);
  --p2-sh2: 0 2px 6px rgba(23, 21, 15, .05), 0 16px 36px -20px rgba(23, 21, 15, .38);
  --p2-sh3: 0 4px 12px rgba(23, 21, 15, .06), 0 30px 68px -34px rgba(23, 21, 15, .50);
}
.plan-v2 { color: var(--p2-fg); position: relative; }
/* 极淡暖色洗底：玻璃要有东西可透才看得出来，平底上做玻璃等于没做 */
.plan-v2::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 22% at 8% 2%,    rgba(230, 72, 42, .16), rgba(230, 72, 42, 0) 68%),
    radial-gradient(52% 24% at 100% 22%, rgba(240, 160, 106, .20), rgba(240, 160, 106, 0) 70%);
}
.plan-v2 > * { position: relative; z-index: 1; }

/* 标题：单行短句，不再换行 */
.plan-v2 .h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.plan-v2 .h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em;
                display: flex; align-items: baseline; flex: 1; }
.plan-v2 .hint { color: var(--p2-muted); }

/* 卡片玻璃化：去描边，靠分层与软阴影浮起 */
.plan-v2 .card {
  background: var(--p2-glass); border: 0; border-radius: 26px;
  box-shadow: var(--p2-sh2), inset 0 1px 0 var(--p2-edge);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.plan-v2 .scene-slot {
  background: var(--p2-glass); border: 0; border-radius: 22px;
  box-shadow: var(--p2-sh1), inset 0 1px 0 var(--p2-edge);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.plan-v2 .scene-slot-img { border-radius: 18px 18px 0 0; background: rgba(241, 235, 230, .8); }
.plan-v2 .slot-badge { background: rgba(23, 21, 15, .78); font-weight: 700; padding: 4px 10px; }
/* 场景缩略图仍是那 20 张抽象 SVG（换真图要先有 20 张真场景照）。
   统一叠一层暖色，至少不再是一片死白。 */
.plan-v2 .scene-slot-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: rgb(233, 224, 210); mix-blend-mode: multiply;
}
.plan-v2 .slot-badge { z-index: 2; }
/* 点了「保存计划」但还缺东西时，闪一下缺的那块 */
@keyframes p2flash {
  0%, 100% { box-shadow: var(--p2-sh2), inset 0 1px 0 var(--p2-edge); }
  35%      { box-shadow: 0 0 0 3px rgba(230, 72, 42, .55), var(--p2-sh2); }
}
.plan-v2 .p2-flash { animation: p2flash 1.3s ease; }
.plan-v2 .slot-badge--first { background: linear-gradient(135deg, #E6482A 0%, #F0A06A 58%, #FBDDC5 100%); color: #17150F; }

/* 按钮一律胶囊 */
.plan-v2 .btn, .ab-v2 .btn { border-radius: 999px; }
.plan-v2 .btn-primary, .ab-v2 .btn-primary {
  background: var(--p2-fg); color: #FAF8F4; font-weight: 700;
  box-shadow: 0 12px 26px -14px rgba(23, 21, 15, .75);
}
.plan-v2 .btn-primary:hover, .ab-v2 .btn-primary:hover   { background: #2a2721; }
.plan-v2 .btn-primary:active, .ab-v2 .btn-primary:active { background: #3a362f; }
/* 关键的一条：本屏主按钮的 disabled 不再变淡 —— 校验从「拦在前面」改成「点完说差什么」 */
.plan-v2 .btn-primary:disabled, .ab-v2 .btn-primary:disabled { opacity: 1; cursor: pointer; }
.plan-v2 .btn-secondary {
  background: rgba(255, 255, 255, .88); border: 0; color: var(--p2-fg); font-weight: 600;
  box-shadow: var(--p2-sh1), inset 0 0 0 1.5px rgba(23, 21, 15, .18);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.plan-v2 .btn-secondary:hover { background: rgba(255, 255, 255, .82); }

/* 区块标题右下角的实时状态 */
.plan-v2 .p2-count { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600;
                        color: var(--p2-muted); letter-spacing: 0; }

/* 底栏：缺项写在按钮上方，按钮永远可点 */
.ab-v2 { background: rgba(250, 248, 244, .94); backdrop-filter: blur(22px) saturate(180%);
         -webkit-backdrop-filter: blur(22px) saturate(180%); }
.ab-v2 .p2-gap { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--p2-fg); text-align: center; }
.ab-v2 .p2-gap b { color: #A2431C; }
.ab-v2 .p2-gap--ok { color: var(--p2-muted); font-weight: 600; }
.ab-v2 .ab-note { color: var(--p2-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   「做图文」UX 简化 · 作用域 .plan-v2 / .ab-v2（2026-10-16）
   ──────────────────────────────────────────────────────────────────────────
   和试点那次一样：全部选择器带 .plan-v2 / .ab-v2 前缀，不碰任何全局 token，
   其余 17 屏一个字不变。
   这一版只改流程的骨架，不改视觉变量（颜色/字体/圆角/阴影沿用上面的 --p2-*）：
     · 6 块 → 1 张设置卡 3 行（套装 / 模特 / 要做的 4 张）
     · 8 张场景·姿势槽位卡收进可就地展开的「换场景和姿势」
     · 首图相关的两个按钮搬到固定底栏
   依据：docs/staff/ux-audit/RESULTS-20261015.md（2.69 屏、7 步）与
        INDUSTRY-STANDARDS-20261015.md（同类产品普遍 3–4 步、无前置配置）。
   ══════════════════════════════════════════════════════════════════════════ */
.plan-v2 .p2-setup { padding: 4px 0; }

/* 三行里的每一行：44px 缩略图 + 两行文字 + 右侧一个文字按钮 */
.plan-v2 .p2-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.plan-v2 .p2-row + .p2-row,
.plan-v2 .p2-block { border-top: 1px solid var(--p2-hair); }
.plan-v2 .p2-thumb {
  flex: none; width: 44px; height: 44px; border-radius: 13px; overflow: hidden;
  background: rgba(241, 235, 230, .9); display: flex; align-items: center; justify-content: center;
  color: var(--p2-muted);
}
.plan-v2 .p2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-v2 .p2-thumb--empty svg { width: 20px; height: 20px; }
.plan-v2 .p2-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-v2 .p2-name {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-v2 .p2-sub { font-size: 12.5px; color: var(--p2-muted); line-height: 1.35; }
.plan-v2 .p2-row--miss .p2-name { color: #A2431C; }

/* 右侧文字按钮：命中区撑到 44px，看着仍是一行小字 */
.plan-v2 .p2-link {
  flex: none; min-height: 44px; padding: 0 12px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 999px;
  color: #A2431C; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.plan-v2 .p2-link:active { background: rgba(230, 72, 42, .10); }
.plan-v2 .p2-link--solid { background: rgba(230, 72, 42, .12); }

/* 「要做的 4 张」那一块 */
.plan-v2 .p2-block { padding: 6px 16px 12px; }
.plan-v2 .p2-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.plan-v2 .p2-rowhead--sub { min-height: 36px; margin-top: 12px; }
.plan-v2 .p2-label { font-size: 14px; font-weight: 700; }
.plan-v2 .p2-scenelist { display: block; margin-top: -4px; font-size: 15px; line-height: 1.6; }
.plan-v2 .p2-scene--empty { color: var(--p2-muted); }
.plan-v2 .p2-sep { font-style: normal; color: var(--p2-muted); padding: 0 5px; }
.plan-v2 .p2-tag {
  font-style: normal; margin-left: 5px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: rgba(230, 72, 42, .14); color: #A2431C;
  vertical-align: 1px;
}
.plan-v2 .p2-mini { margin: 8px 0 0; font-size: 12.5px; color: var(--p2-muted); line-height: 1.5; }
.plan-v2 .p2-more { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--p2-hair); }
.plan-v2 .p2-perf {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--p2-hair);
}

/* 展开后的场景卡：名字和「换场景」竖排。
   横排时卡片只有 154px 宽，名字被按钮挤到约 64px，只能出「白色…」「精品…」——
   而这里正是全屏唯一把场景名和缩略图配在一起的地方，名字必须读全。
   姿势卡是单列（.scene-slots--rows），宽度够，不套这条。 */
.plan-v2 .scene-slots:not(.scene-slots--rows) .scene-slot-meta { flex-direction: column; align-items: stretch; gap: 6px; }
.plan-v2 .scene-slots:not(.scene-slots--rows) .scene-slot-name { white-space: normal; overflow: visible; text-overflow: clip; }

/* 底栏这次多了个次级按钮（锁定态的「换一套重做」），沿用这一屏的玻璃次级样式 */
.ab-v2 .btn-secondary {
  background: rgba(255, 255, 255, .88); border: 0; color: var(--p2-fg); font-weight: 600;
  box-shadow: var(--p2-sh1), inset 0 0 0 1.5px rgba(23, 21, 15, .18);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
}
