/* 数字员工 · 手机界面样式 v3
   颜色全部来自 css/tokens.css（须先加载）：冷白底 + 科技蓝操作；墨蓝黑仅首页品牌条；
   橙只点缀"视频"；紫只用于 AI 生成/工作中。本文件不写 UI 颜色字面值（模拟画面内容色除外，已注明）。
   卡片白底细描边 + 很轻的阴影；按钮大、按下有反馈；全部 rem，大字模式整体放大。 */
:root {
  --r-s: 10px;
  --r: 16px;
  --r-l: 20px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.big { font-size: 18.5px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; }
::selection { background: var(--pri-soft); color: var(--text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--pri-ring); outline-offset: 2px; border-radius: 10px; }
.ic { width: 1.375rem; height: 1.375rem; flex: none; }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }

/* ---------- 外框 ---------- */
.phone { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto; background: var(--bg); overflow: hidden; }
@media (min-width: 600px) {
  body { background: var(--frame-bg); }
  .phone { width: 400px; height: min(880px, calc(100dvh - 48px)); margin: 24px auto; border-radius: 30px; box-shadow: var(--sh-frame); }
}
.top { flex: none; display: flex; align-items: center; gap: 4px; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 8px 0; border-bottom: 1px solid var(--line); background: var(--top-bg); }
.top-tab { padding-left: 16px; }
.top-title { flex: 1; min-width: 0; margin: 0; font-size: 1.1875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-spacer { width: 8px; }
.top-count { padding: 0 12px; font-size: .9375rem; color: var(--text3); font-weight: 600; }
.top-home { align-items: center; justify-content: space-between; gap: 10px; padding: calc(14px + var(--safe-t)) 16px 8px; border-bottom: 0; min-height: 0; background: var(--nav); color: var(--on-brand); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who > div { min-width: 0; }
.shop-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-size: 1.25rem; font-weight: 700; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.home-title { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-sub { margin: 2px 0 0; font-size: .9375rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 首页品牌条：墨蓝黑小面积，店名白字、副标题 nav-ink；状态 chip 自带浅底保持成功语义 */
.top-home .home-title { color: var(--on-brand); }
.top-home .home-sub { color: var(--nav-ink); }
.main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
.pad { padding: 12px 16px 32px; }
.foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-foot); }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px 10px calc(6px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--card); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 14px; font-size: .875rem; font-weight: 500; color: var(--text3); transition: color .15s ease; }
.tab .ic { width: 1.5rem; height: 1.5rem; }
.tab-ic { position: relative; display: inline-grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; transition: background-color .15s ease; }
.tab.on { color: var(--pri); font-weight: 700; }
.tab.on .tab-ic { background: var(--pri-weak); }
.tab.on .ic { stroke-width: 2.3; }
.dot { position: absolute; top: 1px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid var(--card); }

/* ---------- 文字 ---------- */
.q { margin: 10px 0 6px; font-size: 1.375rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0 0 16px; font-size: 1rem; color: var(--text2); }
.h2 { display: flex; align-items: center; gap: 8px; margin: 26px 2px 10px; font-size: 1.0625rem; font-weight: 800; }
.h3 { margin: 22px 2px 10px; font-size: 1rem; font-weight: 700; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--bad); color: var(--on-brand); font-size: .8125rem; }
.small { font-size: .9375rem; color: var(--text2); margin: 4px 0 8px; }
.muted { color: var(--text3); }
.center { text-align: center; }
.err { display: flex; gap: 6px; margin: 8px 0; font-size: 1rem; color: var(--bad); font-weight: 600; }
.hint { margin: 8px 0; font-size: .9375rem; color: var(--text2); }
.tip { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: .9375rem; color: var(--text2); line-height: 1.55; }
.tip .ic { width: 1.125rem; height: 1.125rem; margin-top: 3px; color: var(--text3); }
.miss { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--warn-weak); color: var(--warn); font-size: .8125rem; font-weight: 600; }
.bad-t { color: var(--bad); }
.empty-line { margin: 18px 0 12px; padding: 16px; border: 1px dashed var(--line2); border-radius: var(--r); background: transparent; color: var(--text2); font-size: 1rem; text-align: center; }

/* ---------- 布局小工具 ---------- */
.row { display: flex; align-items: center; }
.row.gap, .gap { gap: 10px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease; user-select: none; -webkit-user-select: none; }
.btn .ic { width: 1.25rem; height: 1.25rem; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--pri); color: var(--on-brand); box-shadow: var(--sh-pri); }
.btn.pri:hover { background: var(--pri-press); }
.btn.pri:active { background: var(--pri-press); box-shadow: var(--sh-pri-press); }
.btn.sec { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.sec:hover { background: var(--hover); }
.btn.sec:active { background: var(--bg2); }
.btn.ghost { background: transparent; color: var(--pri); }
.btn.ghost:hover, .btn.ghost:active { background: var(--pri-weak); }
.btn.danger { background: var(--bad); color: var(--on-brand); }
.btn.danger-t { background: transparent; color: var(--bad); }
.btn.danger-t:hover { background: var(--bad-weak); }
.btn.block { display: flex; width: 100%; }
.btn.xl { min-height: 58px; font-size: 1.125rem; border-radius: 16px; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; border-radius: 12px; }
.btn.xs { min-height: 40px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.muted-btn { color: var(--text2); margin-top: 22px; }
.iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--text); transition: background-color .15s ease; }
.iconbtn:hover, .iconbtn:active { background: var(--bg2); }
.iconbtn .ic { width: 1.5rem; height: 1.5rem; }
.iconbtn.lg { width: 60px; height: 60px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line2); font-size: 1.75rem; font-weight: 600; }
.iconbtn[disabled] { opacity: .35; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 6px; border: 0; background: none; color: var(--pri); font-weight: 600; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.link.sm { font-size: .9375rem; min-height: 40px; }
.link .ic { width: 1.125rem; height: 1.125rem; }

/* ---------- 首页 ---------- */
.phone-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.phone-chip .ic { width: 1.125rem; height: 1.125rem; }
.phone-chip.ok { background: var(--ok-weak); color: var(--ok); }
.phone-chip.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-glow); }
.phone-chip.ok .ic { display: none; }
.phone-chip.warn { background: var(--warn-weak); color: var(--warn); }
.phone-chip.bad { background: var(--bad-weak); color: var(--bad); }
.bigs { display: grid; gap: 12px; margin: 14px 0 6px; }
.bigs-label { margin: 18px 2px -2px; font-size: .9375rem; font-weight: 700; color: var(--text3); }
.bigbtn { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--text); text-align: left; box-shadow: var(--sh-1); transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease, border-color .15s ease; }
.bigbtn:hover { border-color: var(--line2); box-shadow: var(--sh-2); }
.bigbtn:active { transform: scale(.985); background: var(--hover); box-shadow: var(--sh-1); }
.big-ic { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--pri-weak); color: var(--pri); }
.big-ic .ic { width: 1.75rem; height: 1.75rem; }
.bigbtn[data-k="find"] .big-ic { background: var(--k-find-weak); color: var(--k-find); }
.bigbtn[data-k="video"] .big-ic { background: var(--k-video-weak); color: var(--k-video); }
.bigbtn[data-k="reply"] .big-ic { background: var(--k-reply-weak); color: var(--k-reply); }
.bigbtn[data-k="find"] .big-go { background: var(--k-find-weak); color: var(--k-find); }
.bigbtn[data-k="video"] .big-go { background: var(--k-video-weak); color: var(--k-video); }
.bigbtn[data-k="reply"] .big-go { background: var(--k-reply-weak); color: var(--k-reply); }
.bigbtn[data-k="find"]:hover, .bigbtn[data-k="reply"]:hover { border-color: var(--k-find-line); }
.bigbtn[data-k="video"]:hover { border-color: var(--k-video-line); }
.bigbtn[data-k="video"] .big-ic { box-shadow: inset 0 -3px 0 var(--k-video-dot); }
.bigbtn b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.bigbtn small { display: block; margin-top: 2px; font-size: .9375rem; color: var(--text2); line-height: 1.4; }
.big-go { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--bg2); color: var(--text2); }
.big-go .ic { width: 1.125rem; height: 1.125rem; stroke-width: 2.4; }
.chev { color: var(--text3); }
.need { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; padding: 14px 14px 14px 14px; border: 1px solid var(--warn-line); border-radius: var(--r); background: var(--warn-weak); color: var(--text); }
.need b { display: block; font-size: 1.0625rem; }
.need small { display: block; font-size: .9375rem; color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.need-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--surface); color: var(--warn); }
.need .btn { flex: none; }
.sec-block { margin-top: 8px; }
.slist { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); padding: 0 14px; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.stx { flex: 1; min-width: 0; color: var(--text); }
.stx b { display: block; font-size: 1.0625rem; }
.stx small { display: block; font-size: .9375rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--text3); }
.sdot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-weak); } .sdot.warn { background: var(--warn-solid); box-shadow: 0 0 0 4px var(--warn-weak); } .sdot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-weak); } .sdot.pri { background: var(--pri); box-shadow: 0 0 0 4px var(--pri-weak); } .sdot.mute { background: var(--line2); }

/* ---------- 选项 ---------- */
.opts { display: grid; gap: 10px; }
.opt, .chk { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); text-align: left; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.opt:hover, .chk:hover { border-color: var(--line2); }
.opt:active, .chk:active { background: var(--hover); }
.opt.on, .chk.on { border-color: var(--pri); background: var(--pri-weak); box-shadow: 0 0 0 1px var(--pri) inset; }
.chk.locked { cursor: default; }
.opt-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--bg2); color: var(--pri); }
.opt.on .opt-ic { background: var(--surface); }
.opt-tx { flex: 1; min-width: 0; }
.opt-tx b { display: block; font-size: 1.0625rem; font-weight: 700; }
.opt-tx small { display: block; margin-top: 2px; font-size: .9375rem; color: var(--text2); }
.opt-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2px solid var(--line2); border-radius: 50%; color: var(--on-brand); background: var(--surface); }
.opt.on .opt-mark, .plan.on .opt-mark { background: var(--pri); border-color: var(--pri); }
.opt-mark .ic { width: 1rem; height: 1rem; stroke-width: 3; }
.chk .box { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2px solid var(--line2); border-radius: 8px; color: var(--on-brand); background: var(--surface); }
.chk.on .box { background: var(--pri); border-color: var(--pri); }
.chk.locked.on .box { background: var(--brand-mute); border-color: var(--brand-mute); color: var(--brand-strong); }
.chk .box .ic { width: 1rem; height: 1rem; stroke-width: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 1rem; color: var(--text); transition: border-color .15s ease, background-color .15s ease; }
.pill:hover { border-color: var(--line2); }
.pill.on { border-color: var(--pri); background: var(--pri); color: var(--on-brand); font-weight: 700; }
.switch-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; color: var(--text); }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: var(--switch-off); transition: background-color .2s ease; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-knob); transition: left .2s ease; }
.switch.on { background: var(--pri); }
.switch.on i { left: 23px; }
.stepbar { display: flex; gap: 6px; margin: 6px 0 14px; }
.stepbar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.stepbar i.on { background: var(--pri); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 6px 0; }
.stepper-v { min-width: 90px; text-align: center; font-size: 1.0625rem; color: var(--text2); }
.stepper-v b { font-size: 1.875rem; color: var(--text); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.way { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 12px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: var(--sh-1); transition: transform .1s ease, background-color .15s ease; }
.way:hover { border-color: var(--line2); }
.way:active { transform: scale(.97); background: var(--bg2); }
.way .ic { width: 1.75rem; height: 1.75rem; color: var(--pri); }

/* ---------- 输入 ---------- */
.lbl { display: block; margin: 18px 2px 6px; font-size: 1rem; font-weight: 700; color: var(--text); }
.lbl.sm { margin: 10px 2px 4px; font-size: .9375rem; color: var(--text2); }
.input { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--surface); font-size: 1.0625rem; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: var(--placeholder); }
.input:focus { border-color: var(--pri); box-shadow: 0 0 0 4px var(--focus-halo); }
.input.area { min-height: 0; resize: vertical; line-height: 1.6; }
.input.xl { min-height: 60px; font-size: 1.375rem; font-weight: 600; }
.input.code { letter-spacing: .35em; text-align: center; }
.field-voice { display: flex; gap: 8px; align-items: flex-start; }
.field-voice .input { flex: 1; min-width: 0; }
.mic-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 52px; border: 0; border-radius: 14px; background: var(--pri); color: var(--on-brand); font-size: .8125rem; font-weight: 700; box-shadow: var(--sh-pri); transition: transform .1s ease, background-color .15s ease; }
.mic-mini:hover { background: var(--pri-press); }
.mic-mini:active { transform: scale(.96); }
.mic-mini .ic { width: 1.375rem; height: 1.375rem; }
.field-voice:not(.multiline) .mic-mini { flex: none; width: 52px; min-width: 52px; padding: 0; }
.frow { margin-bottom: 4px; }

/* ---------- 列表 / 卡片 ---------- */
.list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 10px 0; background: var(--card); box-shadow: var(--sh-1); }
.li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; transition: background-color .15s ease; }
.list > .li:last-child, .list > :last-child { border-bottom: 0; }
a.li:hover, button.li:hover { background: var(--hover); }
a.li:active, button.li:active { background: var(--bg2); }
.sec-block > .li, .pad > .li { border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0; box-shadow: var(--sh-1); }
.li b { display: block; font-size: 1.0625rem; font-weight: 700; }
.li small { display: block; font-size: .9375rem; color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.li-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--bg2); color: var(--text2); overflow: hidden; }
.li-ic.ok { background: var(--ok-weak); color: var(--ok); }
.li-ic.warn { background: var(--warn-weak); color: var(--warn); }
.li-ic.thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar-s { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--pri-weak); font-weight: 800; color: var(--pri); }
.chip { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.chip.pri { background: var(--pri-weak); color: var(--pri-ink); }
.chip.ok { background: var(--ok-weak); color: var(--ok); }
.chip.warn { background: var(--warn-weak); color: var(--warn); }
.chip.bad { background: var(--bad-weak); color: var(--bad); }
.chip.mute { background: var(--bg2); color: var(--text2); }
.card-plain { margin: 10px 0; padding: 2px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.kv { margin: 0; }
.kv-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.kv-row:last-child, .card-plain > .kv-row:last-of-type { border-bottom: 0; }
.kv-row dt { flex: none; width: 5.5em; font-size: .9375rem; color: var(--text2); }
.find-config .kv-row dt { width: 6em; white-space: nowrap; }
.kv-row dd { flex: 1; min-width: 0; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
/* 手机资料：标题和编辑在上，内容独占下一行。 */
.kv-stacked .kv-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; }
.kv-stacked .kv-row dt { grid-column: 1; grid-row: 1; width: auto; white-space: normal; }
.kv-stacked .kv-row dd { grid-column: 1 / -1; grid-row: 2; }
.iconbtn.kv-edit { width: 44px; height: 44px; color: var(--pri); }
.kv-stacked .kv-edit { grid-column: 2; grid-row: 1; justify-self: end; }
.help-note { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 20px; }
.help-note .tip { margin: 0; }
.kv-row.total dd b { font-size: 1.375rem; }
.kv-row.tap { cursor: pointer; }
.card-plain > .link { margin: 4px 0 8px; }
.quote { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg2); font-size: 1rem; color: var(--text); line-height: 1.6; }
.quote.them { background: var(--bg2); }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; padding: 14px; border-radius: var(--r); background: var(--bg2); }
.notice > .ic { margin-top: 1px; }
.notice b { display: block; font-size: 1.0625rem; }
.notice p { margin: 4px 0 0; font-size: .9375rem; color: var(--text2); }
.notice.warn { background: var(--warn-weak); } .notice.warn > .ic { color: var(--warn); }
.notice.bad { background: var(--bad-weak); } .notice.bad > .ic { color: var(--bad); }
.notice.ok { background: var(--ok-weak); } .notice.ok > .ic { color: var(--ok); }
.notice.info { background: var(--pri-weak); } .notice.info > .ic { color: var(--pri); }
.notice-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notice-btns .btn.sec { background: var(--surface); }
.ask { margin: 12px 0; padding: 16px; border: 1px solid var(--pri-soft); border-radius: var(--r); background: var(--pri-weak); }
.ask b { display: block; font-size: 1.0625rem; }
.ask p { margin: 4px 0 10px; font-size: 1rem; }
.ask small { display: block; margin: -6px 0 10px; color: var(--text2); font-size: .9375rem; }
.ask .btn.sec { background: var(--surface); }
.edit-card { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.edit-card.off { opacity: .55; }
.edit-card p { margin: 0 0 6px; }
.edit-card .row { margin-top: 10px; }
.mem { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mem p { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 600; }
.mem small { display: block; font-size: .9375rem; color: var(--text2); }
.mem .row { margin-top: 10px; }
.confirm-inline { margin: 16px 0; padding: 16px; border: 1px solid var(--bad-line); border-radius: var(--r); background: var(--bad-weak); }
.confirm-inline p { margin: 0 0 12px; font-size: 1rem; }
.confirm-inline .btn.sec { background: var(--surface); }
ul.plain { margin: 6px 0; padding: 0; list-style: none; }
ul.plain li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 1rem; }
ul.plain li .ic { width: 1.125rem; height: 1.125rem; margin-top: 3px; color: var(--pri); }
.disclose { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 2px; border: 0; background: none; color: var(--text2); font-size: 1rem; font-weight: 700; text-align: left; }
.disclose .ic { width: 1.25rem; height: 1.25rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq p { margin: 0 0 14px 28px; font-size: 1rem; color: var(--text2); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; text-align: center; color: var(--text2); }
.empty > .ic { width: 3.25rem; height: 3.25rem; padding: .75rem; border-radius: 50%; background: var(--bg2); color: var(--text3); }
.empty b { font-size: 1.125rem; color: var(--text); }
.empty p { margin: 0; max-width: 28em; font-size: 1rem; }
.empty.sm { padding: 18px 12px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line2); margin: 10px 0; }
.photo-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.photo-row img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; }
.photo-row b { display: block; font-size: 1rem; }
.photo-row small { display: block; font-size: .875rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 进行中（工作进度） ---------- */
.run-head { position: relative; margin: 4px 0 14px; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--sh-1); overflow: hidden; }
.run-head b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.run-head small { display: block; margin-top: 4px; font-size: .9375rem; color: var(--text2); }
.run-head.ok { background: var(--ok-tint); } .run-head.warn { background: var(--warn-tint); } .run-head.bad { background: var(--bad-tint); }
.bar { height: 8px; margin-top: 14px; border-radius: 4px; background: var(--bg2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--pri); transition: width .45s ease-out; }
.run-head.ok .bar i { background: var(--ok); } .run-head.warn .bar i { background: var(--warn-solid); } .run-head.bad .bar i { background: var(--bad); }
.run-head.pri .bar i { background: var(--grad-ai); }  /* 仅 AI 运行进度用蓝紫渐变 */
.operation-context { margin: 16px 0; padding: 16px; }
.operation-context-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.5; }
.operation-context-title span { min-width: 0; }
.operation-context p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--text2); }
.steps { position: relative; margin: 8px 0; padding: 4px 14px; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1rem; }
.steps li + li::before { content: ""; position: absolute; left: 11px; top: -12px; height: 24px; width: 2px; background: var(--line); z-index: 0; }
.steps li.done + li::before { background: var(--ok); }
.steps li.todo { color: var(--text3); }
.steps li.cur { font-weight: 700; }
.dotc { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border: 2px solid var(--line2); border-radius: 50%; color: var(--on-brand); background: var(--card); }
.dotc .ic { width: .875rem; height: .875rem; stroke-width: 3; }
.steps li.done .dotc { background: var(--ok); border-color: var(--ok); }
.steps li.cur .dotc { border-color: var(--pri); box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 4px var(--pri-weak); background: var(--pri); }
.log { margin: 0 0 8px; padding: 6px 14px; list-style: none; border-radius: 12px; background: var(--bg2); font-size: .9375rem; color: var(--text2); }
.log li { display: flex; gap: 12px; padding: 5px 0; }
.log time { flex: none; color: var(--text2); }
.mini { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 10px; }
.mini-screen { position: relative; width: 150px; height: 266px; border: 6px solid var(--device); border-radius: 20px; background: var(--surface); overflow: hidden; font-size: 10.5px; box-shadow: var(--sh-2); transition: width .25s ease-out, height .25s ease-out; }
.mini.big .mini-screen { width: 236px; height: 420px; font-size: 15px; }
/* 以下 .ms-* 为模拟微信/剪映画面（内容色，不跟随品牌 token） */
.ms-app { height: 100%; display: flex; flex-direction: column; }
.ms-bar { display: flex; justify-content: space-between; gap: 4px; padding: .5em .7em; background: #F3F1EE; white-space: nowrap; overflow: hidden; }
.ms-bar span { color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.ms-search { display: flex; align-items: center; gap: .4em; margin: .6em; padding: .4em .6em; border-radius: 1em; background: #F3F1EE; color: var(--text2); white-space: nowrap; overflow: hidden; }
.ms-search .ic { width: 1.1em; height: 1.1em; }
.ms-row { display: flex; align-items: center; gap: .6em; margin: 0 .6em .4em; padding: .45em; border-radius: .5em; white-space: nowrap; overflow: hidden; }
.ms-row i { width: 1.8em; height: 1.8em; flex: none; border-radius: 50%; background: var(--bg3); }
.ms-row.hl { background: var(--pri-weak); box-shadow: inset 0 0 0 1.5px var(--pri); }
.ms-preview { flex: 1; min-height: 0; background: #111; }
.ms-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-track { position: relative; display: flex; gap: 2px; height: 26%; padding: .5em; background: #26292E; }
.ms-track span { flex: 1; min-width: 0; border-radius: 3px; overflow: hidden; background: #3A3E45; }
.ms-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-head { position: absolute; top: 2px; bottom: 2px; width: 2px; background: #fff; transition: left .45s linear; }
.mini-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 1em; background: rgba(255, 255, 255, .92); text-align: center; font-size: 1.1em; font-weight: 700; color: var(--text); }
.mini-cover .ic { width: 2.2em; height: 2.2em; color: var(--warn); }

/* ---------- 找客户结果 ---------- */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 4px 0 12px; padding: 4px; border-radius: 16px; background: var(--bg2); }
.seg { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 8px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--text); transition: background-color .15s ease; }
.seg b { font-size: 1.25rem; font-weight: 800; }
.seg span { font-size: .8125rem; color: var(--text2); line-height: 1.25; text-align: center; }
.seg.on { background: var(--card); color: var(--pri); box-shadow: var(--sh-2); }
.seg.on span { color: var(--text); font-weight: 700; }
.cand { padding: 14px; border-bottom: 1px solid var(--line); }
.cand b { font-size: 1.0625rem; }
.cand > small { display: block; margin-top: 4px; font-size: .9375rem; color: var(--text2); }
.cand.off { opacity: .6; }
.cand .row.between { gap: 8px; align-items: flex-start; }

/* ---------- 素材（相册） ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 12px -4px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--text); cursor: pointer; }
.tile-hit { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.tile-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--bg2); transition: transform .12s ease; }
.tile:active .tile-img { transform: scale(.97); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.sel .tile-img { box-shadow: inset 0 0 0 3px var(--pri); }
.tile.sel .tile-img img { opacity: .82; transform: scale(.9); border-radius: 4px; transition: transform .15s ease; }
.tile.sel .tile-img { background: var(--pri-weak); }
.tile-badge { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 3px; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; font-size: .75rem; font-weight: 600; }
.tile-badge .ic { width: .8rem; height: .8rem; }
.tile-check { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tile-check.on { background: var(--pri); border-color: var(--on-brand); }
.tile-check .ic { width: 1rem; height: 1rem; stroke-width: 3; }
.tile-name { padding: 0 2px 6px; font-size: .8125rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; padding: 6px; text-align: center; font-size: .8125rem; color: var(--text2); }
.tile-msg.bad { color: var(--bad); background: var(--bad-weak); }
.tile .btn.xs { margin: 0 2px 6px; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin-top: -2px; }
.strip-i { width: 60px; height: 80px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg2); }
.strip-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview { display: flex; justify-content: center; border-radius: var(--r); overflow: hidden; background: var(--media-bg); }
.preview img, .preview video { display: block; max-width: 100%; max-height: 52vh; object-fit: contain; background: var(--media-bg); }
.preview .empty { width: 100%; background: var(--bg2); }
/* .sd-* 为视频模板风格缩略图（内容色，不跟随品牌 token） */
.sd { position: relative; width: 44px; height: 72px; flex: none; border-radius: 8px; background: #F4ECE1; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.sd i { position: absolute; display: block; border-radius: 2px; }
.sd-intro .t { left: 8px; right: 8px; top: 26px; height: 6px; background: #6B3A1C; }
.sd-intro .s { left: 12px; right: 12px; top: 36px; height: 3px; background: #A88E79; }
.sd-daily { background: #B98F6A; }
.sd-daily .p { left: 5px; top: 5px; width: 20px; height: 7px; border-radius: 4px; background: #fff; }
.sd-daily .s, .sd-promo .s { left: 6px; right: 6px; bottom: 10px; height: 7px; background: rgba(0, 0, 0, .55); }
.sd-promo { background: #D9B892; }
.sd-promo .b { left: 0; right: 0; top: 0; height: 12px; border-radius: 0; background: #B5382A; }
.avatars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.av { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); }
.av img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.av b { font-size: 1rem; }
.av small { font-size: .8125rem; color: var(--text2); text-align: center; }
.av.on { border-color: var(--pri); background: var(--pri-weak); box-shadow: 0 0 0 1px var(--pri) inset; }

/* ---------- 成片 ---------- */
.player { display: flex; justify-content: center; border-radius: var(--r-l); overflow: hidden; background: var(--media-bg); box-shadow: var(--sh-2); }
.player video { display: block; width: auto; max-width: 100%; height: min(56vh, 520px); aspect-ratio: 9 / 16; object-fit: contain; background: var(--media-bg); }
.player-wait { display: flex; flex-direction: column; justify-content: center; gap: 14px; width: 100%; height: min(56vh, 520px); padding: 24px 32px; color: var(--on-brand); text-align: center; }
.player-wait .bar { background: rgba(255, 255, 255, .2); }
.player-wait .bar i { background: var(--on-brand); }

/* ---------- 回消息（会话） ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; padding: 14px 12px; border-radius: var(--r-l); background: var(--bg2); }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; box-shadow: var(--sh-1); }
.bubble small { display: block; margin-bottom: 2px; font-size: .8125rem; font-weight: 700; color: var(--text2); }
.bubble time { display: block; margin-top: 4px; font-size: .75rem; color: var(--text3); text-align: right; }
.bubble.them { align-self: flex-start; background: var(--card); border-top-left-radius: 6px; }
.bubble.bot { align-self: flex-end; background: var(--bubble-bot); color: var(--text); border-top-right-radius: 6px; }
.bubble.bot time { color: var(--text2); }
.bubble.bot small { color: var(--bubble-bot-label); }
.bubble.boss { align-self: flex-end; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--pri); border-top-right-radius: 6px; }
.trybox .bubble.bot { max-width: 100%; margin-top: 12px; border-top-right-radius: 18px; border-top-left-radius: 6px; }
.used { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: .875rem; color: var(--text2); }
.used .ic { width: 1rem; height: 1rem; margin-top: 2px; }
.composer { display: flex; flex-direction: column; gap: 10px; }
.composer .chk { min-height: 52px; padding: 8px 12px; }

/* ---------- 我的 ---------- */
.acct { margin: 4px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--sh-1); }
.acct-top { display: flex; align-items: center; gap: 12px; }
.acct-top > .grow { min-width: 0; }
.acct-name { display: block; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct small { color: var(--text2); font-size: .9375rem; }
.acct-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-expiry p { margin: 0; }
.acct-expiry-date { font-size: 1rem; }
.acct-expiry .acct-expiry-left { margin-top: 4px; font-size: .9375rem; color: var(--text2); }
.acct-expiry-left.soon { color: var(--warn); font-weight: 600; }
.acct-quota-title { margin: 20px 0 4px; color: var(--text2); font-size: .9375rem; font-weight: 500; }
.acct-quota-list { margin: 0; }
.acct-quota-list > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.acct-quota-list > div:last-child { border-bottom: 0; }
.acct-quota-list dt { font-size: 1rem; }
.acct-quota-list dd { margin: 0 0 0 auto; font-size: 1rem; color: var(--text2); white-space: nowrap; }
.acct-quota-list b { color: var(--text); font-weight: 650; }
.acct-quota-note { margin-left: 8px; font-size: .875rem; }
.acct .acct-renew { margin-top: 16px; }
.acct .btn.sec { background: var(--surface); }
.menu { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--sh-1); overflow: hidden; }
.menu-i { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); transition: background-color .15s ease; }
.menu-i:last-child { border-bottom: 0; }
.menu-i:hover { background: var(--hover); }
.menu-i:active { background: var(--bg2); }
.menu-i b { display: block; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; }
.menu-i small { display: block; margin-top: 2px; font-size: .9375rem; color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-i .big-ic { width: 48px; height: 48px; border-radius: 14px; }
.menu-i .big-ic .ic { width: 1.5rem; height: 1.5rem; }
.menu-i.k-shop .big-ic { background: var(--pri-weak); color: var(--pri); }
.menu-i.k-assets .big-ic { background: var(--k-video-weak); color: var(--k-video); }
.menu-i.k-help .big-ic { background: var(--k-find-weak); color: var(--k-find); }
.menu-i.warn small { color: var(--warn); font-weight: 600; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg2); margin: 8px 0; }
.tab2 { min-height: 46px; border: 0; border-radius: 11px; background: none; font-size: 1rem; font-weight: 600; color: var(--text2); }
.tab2.on { background: var(--surface); color: var(--pri); font-weight: 800; box-shadow: var(--sh-2); }
.plans { display: grid; gap: 10px; }
.plan { display: block; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); text-align: left; }
.plan.on { border-color: var(--pri); background: var(--pri-weak); box-shadow: 0 0 0 1px var(--pri) inset; }
.plan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 1.125rem; }
.plan-price { margin: 4px 0 2px; color: var(--text2); }
.plan-price b { font-size: 1.75rem; color: var(--text); }
.result-big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 8px 14px; text-align: center; }
.result-big > .ic { width: 76px; height: 76px; padding: 19px; border-radius: 50%; }
.result-big.ok > .ic { background: var(--ok-weak); color: var(--ok); box-shadow: 0 0 0 8px var(--ok-glow-soft); }
.result-big.warn > .ic { background: var(--warn-weak); color: var(--warn); }
.result-big.bad > .ic { background: var(--bad-weak); color: var(--bad); }
.result-big.pri > .ic { background: var(--pri-weak); color: var(--pri); }
.result-big b { font-size: 1.375rem; font-weight: 800; }
.result-big p { margin: 0; max-width: 24em; color: var(--text2); }

/* ---------- 登录 ---------- */
.signin { background: var(--surface); }
.signin-inner { width: 100%; padding: calc(clamp(32px, 13dvh, 112px) + var(--safe-t)) 24px calc(32px + var(--safe-b)); }
.signin-head { margin-bottom: 40px; }
.signin-head h1 { margin: 0; color: var(--nav); font-size: 2rem; line-height: 1.25; font-weight: 750; }
.signin-head p { margin: 10px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text2); }
.signin-form { display: flex; flex-direction: column; }
.signin-label { margin-bottom: 10px; font-weight: 600; }
.signin-input { min-height: 56px; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 1.25rem; font-weight: 500; letter-spacing: .04em; scroll-margin: 24px 0 160px; }
.signin-input::placeholder { font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; color: var(--placeholder); }
.signin-input:focus { background: var(--surface); }
.signin-input[aria-invalid="true"] { border-color: var(--bad); }
.signin-help { margin: 10px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--text2); }
.signin-agree-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin-top: 20px; color: var(--text2); font-size: .9375rem; }
.signin-agree-row .chk { width: auto; min-height: 44px; padding: 0; gap: 8px; border: 0; border-radius: 6px; background: none; box-shadow: none; color: inherit; }
.signin-agree-row .chk b { font-weight: 400; }
.signin-agree-row .box { width: 24px; height: 24px; border-radius: 6px; }
.signin-links { display: inline-flex; align-items: center; gap: 4px; }
.signin-links .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.signin-error { margin: 4px 0 0; color: var(--bad); font-size: .9375rem; }
.signin .signin-submit { min-height: 56px; margin-top: 16px; border-radius: 14px; font-size: 1.125rem; font-weight: 650; box-shadow: none; }
@media (max-width: 359px) {
  .signin-inner { padding-left: 20px; padding-right: 20px; }
  .signin-head { margin-bottom: 32px; }
  .signin-head h1 { font-size: 1.875rem; }
}
@media (max-height: 640px) {
  .signin-inner { padding-top: calc(28px + var(--safe-t)); }
  .signin-head { margin-bottom: 28px; }
  .signin-agree-row { margin-top: 16px; }
}
.doc p { margin: 0 0 10px; font-size: 1rem; color: var(--text); }

/* ---------- 底部弹层 / 语音 / 提示 ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: var(--scrim); }
.sheet { position: relative; width: 100%; max-height: 90%; overflow-y: auto; padding: 14px 16px calc(18px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--bg); box-shadow: var(--sh-sheet); animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line2); }
.sheet > * + * { margin-top: 12px; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.sheet-head h2 { margin: 0; font-size: 1.1875rem; font-weight: 800; }
.sheet-tip { margin: 0; font-size: 1rem; color: var(--text2); }
.mic-zone { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 10px; }
.mic-btn { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 10px var(--pri-weak), var(--sh-mic); transition: transform .12s ease, background-color .15s ease; }
.mic-btn:hover { background: var(--pri-press); }
.mic-btn:active { transform: scale(.95); }
.mic-btn .ic { width: 2.75rem; height: 2.75rem; }
.mic-btn.on { background: var(--bad); box-shadow: 0 0 0 10px var(--bad-weak), 0 10px 24px var(--bad-glow); animation: mic-pulse 1.6s ease-out infinite; }
.mic-btn.on .ic { fill: currentColor; }
@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 var(--bad-glow-35), 0 10px 24px var(--bad-glow); } 100% { box-shadow: 0 0 0 22px var(--bad-glow-0), 0 10px 24px var(--bad-glow); } }
.mic-btn.wait { opacity: .6; box-shadow: 0 0 0 10px var(--bg2); }
.mic-label { font-size: 1.0625rem; font-weight: 700; }
.live-box { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 700; }
.live-box .muted { margin-left: auto; font-weight: 500; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px var(--bad-weak); }
.live-text { min-height: 84px; margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 1.125rem; line-height: 1.6; }
.live-text.muted { color: var(--text3); }
.toast { position: absolute; top: calc(10px + var(--safe-t)); left: 16px; right: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--toast-bg); color: var(--on-brand); font-size: 1rem; box-shadow: var(--sh-toast); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast .ic { color: var(--ok-on-dark); }
.toast.bad .ic, .toast.warn .ic { color: var(--bad-on-dark); }

@media (max-width: 350px) {
  .pad { padding-left: 12px; padding-right: 12px; }
  .top-home { padding-left: 12px; padding-right: 12px; }
  .shop-mark { width: 40px; height: 40px; font-size: 1.0625rem; }
  .home-title { font-size: 1.1875rem; }
  .phone-chip { padding: 0 10px; }
  .bigbtn { gap: 12px; padding: 12px; }
  .big-ic { width: 46px; height: 46px; }
  .big-go { display: none; }
  .need { flex-wrap: wrap; }
  .need .btn { width: 100%; }
  .ways { gap: 6px; }
  .segs { gap: 2px; }
  .seg span { font-size: .75rem; }
  .row.gap > .btn { padding: 0 12px; }
  .btn { white-space: normal; }
  .menu-i { gap: 12px; padding-left: 12px; }
}
html.big .top-home { flex-wrap: wrap; }
html.big .big-go { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Information groups keep their spacing even when definition-list margins reset. */
.pad > .card-plain.kv + .card-plain.kv,
.pad > .card-plain.kv + .btn { margin-top: 16px; }
.cand-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cand-actions > .btn { max-width: 100%; white-space: normal; }
.cand-actions > [data-act="cand-block"], .cand-actions > [data-act="cand-unblock"] { flex-basis: 100%; justify-content: flex-start; }
.product-confirm .chk { border: 0; box-shadow: none; min-height: 48px; padding: 0; background: transparent; }
.product-confirm .edit-card { margin: 12px 0; }

.video-work-preview { margin: 16px 0 24px; }
.video-work-preview .strip { margin-top: 8px; }

/* Tall text areas use the full phone width; voice input sits underneath. */
.field-voice.multiline { flex-direction: column; align-items: stretch; gap: 10px; }
.field-voice.multiline .input { flex: auto; width: 100%; }
.field-voice.multiline .mic-mini { flex-direction: row; align-self: flex-start; gap: 8px; min-height: 44px; padding: 0 16px; color: var(--pri-ink); background: var(--pri-weak); box-shadow: none; font-size: 1rem; }
.field-voice.multiline .mic-mini:hover { background: var(--pri-soft); }
.find-script-editor { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.find-script-editor .field-voice { display: contents; }
.find-script-editor .input { grid-column: 1 / -1; }
.find-script-editor > [data-act="find-script"] { justify-self: end; }
