/* SILK brand: Ink, Midnight, Off-white, one decisive pink accent. DM Serif Display + DM Sans. */
:root {
  color-scheme: dark;
  --midnight: #080713;
  --ink: #16142f;
  --muted-ink: #2b284a;
  --slate: #2d3e50;
  --pink: #ff007e;
  --pink-ink: #ffffff;
  --offwhite: #fafafe;
  --grey: #d5d8dc;
  --text: #fafafe;
  --text-2: #b9b7d0;
  --line: rgba(250, 250, 254, 0.14);
  --panel: rgba(8, 7, 19, 0.94);
  --panel-2: #16142f;
  --good: #3ccf8e;
  --bad: #ff5c6c;
  --wechat: #07c160;
  --r: 8px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  --cn: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--midnight); color: var(--text); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[lang="zh-CN"], .cn { font-family: var(--cn); }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; outline: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 20, 47, 0.88); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; text-decoration: none; }
.btn:hover { border-color: rgba(250, 250, 254, 0.35); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.btn-primary:hover { background: #e6006f; border-color: #e6006f; }
.btn-ghost[aria-pressed="true"] { background: var(--offwhite); color: var(--ink); border-color: var(--offwhite); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-only { width: 38px; padding: 0; }
.icon-only:not([aria-pressed="true"]) .wave { opacity: .25; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: rgba(250, 250, 254, .4); }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }

/* top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: linear-gradient(to bottom, rgba(8, 7, 19, .85), rgba(8, 7, 19, 0)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand-sub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--line); padding-left: 12px; }
.toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); }
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; font-size: 14px; font-weight: 700; border-radius: 999px; color: var(--text-2); transition: color .25s; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #4b4868; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
.toggle[data-on="1"] .toggle-thumb { transform: translateX(100%); background: var(--pink); }
.top-actions { display: flex; gap: 8px; }

/* markers */
#markers { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.marker { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--text); will-change: transform; }
.marker .dot { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 2px 10px rgba(8, 7, 19, .4); }
.marker .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; animation: pulse 2.2s infinite; }
.marker.done .dot { background: var(--offwhite); color: var(--ink); }
.marker.done .dot::after { animation: none; }
.marker.active .dot { outline: 3px solid #fff; }
.marker .lbl { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--panel); opacity: 0; transform: translateX(-6px); transition: .2s; white-space: nowrap; }
.marker:hover .lbl, .marker:focus-visible .lbl, .marker.active .lbl { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* dock */
.dock { position: fixed; z-index: 15; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.chip { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.chip .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--muted-ink); color: var(--text); font-size: 12px; font-weight: 800; flex: none; }
.chip:hover { color: var(--text); }
.chip.done .n { background: var(--offwhite); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--text); }
.chip.active .n { background: var(--pink); color: #fff; }
.chip-summary { padding: 6px 14px; color: var(--text); border: 1px solid var(--line); }
.chip-summary.ready { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip-progress { font-size: 12px; color: var(--text-2); padding: 0 8px 0 4px; align-self: center; white-space: nowrap; }

/* hud */
.hud { position: fixed; z-index: 14; left: 16px; bottom: 76px; width: 268px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.hud-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 12px 14px; font-weight: 700; font-size: 13px; }
.hud-mode { display: flex; align-items: center; gap: 8px; }
.hud-mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a87a8; }
.hud.silk .hud-mode::before { background: var(--pink); }
.hud-clock { font-variant-numeric: tabular-nums; color: var(--text-2); }
.hud-body { padding: 0 14px 12px; }
.hud.collapsed .hud-body { display: none; }
.hud-crowd { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.hud-crowd .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--muted-ink); overflow: hidden; }
.hud-crowd i { display: block; height: 100%; background: var(--offwhite); transition: width .5s; }
.hud dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; }
.hud dt { color: var(--text-2); }
.hud dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.hud dd.good { color: var(--good); } .hud dd.bad { color: var(--bad); }
.hud-note { margin: 10px 0 0; font-size: 11px; color: #8d8aa8; }

/* hint, toasts, flash */
.hint { position: fixed; z-index: 12; bottom: 74px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--text-2); transition: opacity .5s; pointer-events: none; text-align: center; max-width: calc(100vw - 32px); }
.hint:empty, .hint.gone { opacity: 0; }
#toasts { position: fixed; z-index: 40; top: 74px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 10px 16px; border-radius: 999px; background: var(--offwhite); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(8, 7, 19, .35); animation: toastIn .35s ease; text-align: center; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
#flash { position: fixed; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at 50% 55%, rgba(255, 0, 126, .35), rgba(255, 0, 126, 0) 60%); opacity: 0; }
#flash.go { animation: flash .8s ease; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* hotspot panel */
.panel { position: fixed; z-index: 25; top: 72px; right: 16px; bottom: 76px; width: 420px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow-y: auto; transform: translateX(calc(100% + 24px)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.panel.open { transform: none; }
.p-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 12px; background: var(--midnight); border-bottom: 1px solid var(--line); }
.p-num { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--pink); font-weight: 800; }
.p-head h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.1; }
.p-head > div { flex: 1; min-width: 0; }
.p-body { padding: 16px 18px 20px; }
.p-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.ba { display: grid; gap: 8px; margin-bottom: 16px; }
.ba-card { text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--r); padding: 12px 14px; opacity: .55; transition: .25s; }
.ba-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.ba-card .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.ba-card.on { opacity: 1; border-color: rgba(250, 250, 254, .4); }
.ba-card.after.on { border-color: var(--pink); }
.ba-card.after .tag { color: var(--pink); }
.ba-card .ba-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--pink); }
.ba-card.on .ba-cta { display: none; }
.p-body h3 { margin: 20px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.p-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.p-body ul.silk { list-style: none; padding: 0; }
.p-body ul.silk li { padding-left: 24px; position: relative; }
.p-body ul.silk li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(-45deg); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 4px; }
.compare figure { margin: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: .25s; background: #000; }
.compare figure.on { opacity: 1; border-color: var(--pink); }
.compare figure:first-child.on { border-color: var(--offwhite); }
.compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #fff; }
.compare figcaption { font-size: 11px; padding: 6px 8px; background: var(--panel-2); color: var(--text-2); }
.proof { margin: 20px 0 0; border-radius: var(--r); background: var(--offwhite); color: var(--ink); overflow: hidden; }
.proof img { width: 100%; max-height: 220px; object-fit: cover; display: block; background: #fff; }
.proof figcaption { padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.proof figcaption b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dayline { margin-top: 4px; }
.dayline svg { width: 100%; height: 72px; display: block; }
.dayline input { width: 100%; accent-color: var(--pink); }
.dayline-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); }
.live { font-size: 13px; color: var(--text-2); margin: 10px 0 0; line-height: 1.6; }
.live b { color: var(--text); }
.assess { margin-top: 22px; padding: 14px; border-radius: var(--r); background: var(--panel-2); }
.assess p { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.assess-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.assess-btns button { flex: 1; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; }
.assess-btns button.sel { background: var(--offwhite); color: var(--ink); border-color: var(--offwhite); }
.assess-btns button.sel[data-ans="no"] { background: var(--pink); color: #fff; border-color: var(--pink); }
.p-foot { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: space-between; padding: 12px 18px; background: var(--midnight); border-top: 1px solid var(--line); }

/* editor drawer */
.editor { position: fixed; z-index: 45; top: 0; left: 0; bottom: 0; width: 460px; max-width: 100vw; display: flex; flex-direction: column; background: var(--midnight); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .3s ease; }
.editor.open { transform: none; }
.ed-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.ed-head h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 26px; }
.ed-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.ed-intro { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.ed-warn { font-size: 13px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 0, 126, .12); border: 1px solid rgba(255, 0, 126, .4); }
.ed-hint { font-size: 12px; color: var(--text-2); margin: 0 0 8px; }
.editor section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.ed-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ed-label small { font-weight: 400; color: var(--text-2); }
.ed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ed-pair .ed-label { grid-column: 1 / -1; margin-bottom: 0; }
.ed-pair-tight { grid-template-columns: 1fr 1fr auto; align-items: center; margin-bottom: 6px; }
.editor input:not([type="color"]):not([type="file"]), .editor select { width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--ink); font-size: 14px; }
.editor input::placeholder { color: #7d7a99; }
.ed-field { display: block; margin-bottom: 10px; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ed-color input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); padding: 2px; }
.ed-img { margin: 8px 0 12px; }
.ed-img-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-thumb { width: 64px; height: 48px; border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ed-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ed-thumb span { font-size: 11px; color: #777; }
.ed-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ed-foot-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8, 7, 19, .62); overflow-y: auto; }
.overlay[hidden] { display: none; }
.intro-card, .sum-card { width: min(640px, 100%); padding: 36px; border-radius: 12px; background: var(--midnight); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.intro-logo { height: 28px; margin-bottom: 26px; display: block; }
.intro-card h1, .sum-card h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin: 0 0 14px; }
.intro-lede { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 0 0 24px; }
.intro-lede b { color: var(--text); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.intro-hint { margin: 20px 0 0; font-size: 13px; color: #8d8aa8; }
.intro-for { display: flex; align-items: center; gap: 10px; }
.sum-card { width: min(760px, 100%); }
.sum-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; }
.sum-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--ink); font-size: 14px; }
.sum-list .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--muted-ink); font-size: 12px; font-weight: 800; }
.sum-list .s { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--muted-ink); color: var(--text-2); }
.sum-list .need .s { background: var(--pink); color: #fff; }
.sum-list .have .s { background: var(--offwhite); color: var(--ink); }
.proof-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 6px; }
.proof-band div { padding: 12px; border-radius: 6px; background: var(--ink); }
.proof-band b { display: block; font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--offwhite); }
.proof-band span { font-size: 12px; color: var(--text-2); }
.proof-note { font-size: 11px; color: #8d8aa8; margin: 6px 0 0; }
.cta-block { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--offwhite); color: var(--ink); }
.cta-block h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.cta-block p { margin: 0 0 12px; font-size: 14px; color: var(--slate); }
.cta-qr { width: 128px; text-align: center; font-size: 11px; color: var(--slate); }
.cta-qr img, .cta-qr canvas { width: 128px; height: 128px; display: block; border-radius: 6px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-block .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(22, 20, 47, .25); }
.sum-close { display: flex; justify-content: flex-end; margin-bottom: -10px; }

/* phone demo */
.phone-wrap { display: grid; grid-template-columns: minmax(0, 340px) 300px; gap: 40px; align-items: center; }
.phone-side h2 { font-family: var(--serif); font-weight: 700; font-size: 34px; margin: 0 0 16px; line-height: 1.05; }
.phone-steps { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: s; }
.phone-steps li { counter-increment: s; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.phone-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--muted-ink); font-size: 12px; font-weight: 800; color: var(--text); }
.phone-steps li.on { background: var(--ink); color: var(--text); }
.phone-steps li.on::before { background: var(--wechat); }
.phone-note { font-size: 14px; line-height: 1.5; min-height: 64px; color: var(--text); }
.phone-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.phone { width: 300px; height: 600px; border-radius: 44px; padding: 12px; background: #0b0b0d; box-shadow: 0 0 0 2px #2b2b30, 0 30px 80px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; padding: 6px 18px 8px; font-size: 12px; font-weight: 700; color: #fff; }
.phone-screen { flex: 1; border-radius: 32px; overflow: hidden auto; background: #ededed; color: #111; font-family: var(--cn); position: relative; }
.phone-screen .tr { display: block; font-family: var(--sans); font-size: 11px; color: #888; margin-top: 3px; }
.ph-bar { padding: 14px 16px; background: #f7f7f7; border-bottom: 1px solid #ddd; font-weight: 700; font-size: 15px; }
.ph-scan { height: 100%; background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; text-align: center; }
.ph-top { margin: 0; font-weight: 700; }
.ph-view { position: relative; width: 180px; height: 180px; padding: 10px; border: 3px solid var(--wechat); border-radius: 12px; background: #fff; }
.ph-view img { width: 100%; height: 100%; display: block; }
.ph-line { position: absolute; left: 6px; right: 6px; height: 3px; background: var(--wechat); box-shadow: 0 0 12px var(--wechat); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 8px; } to { top: calc(100% - 10px); } }
.ph-cap { font-size: 13px; color: #ccc; margin: 0; }
.ph-cap small { color: #888; font-family: var(--sans); }
.ph-profile { padding: 26px 20px; text-align: center; background: #fff; min-height: calc(100% - 50px); }
.ph-avatar { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 1px solid #ddd; overflow: hidden; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.ph-avatar img { width: 90%; height: 90%; object-fit: contain; }
.ph-profile h3 { margin: 0 0 8px; font-size: 18px; }
.ph-profile p { margin: 0; font-size: 13px; color: #555; }
.ph-btn { display: block; width: 100%; margin-top: 18px; min-height: 42px; border: 0; border-radius: 8px; background: var(--wechat); color: #fff; font-weight: 700; font-size: 15px; font-family: var(--cn); }
.ph-chat { padding: 14px 12px; display: grid; gap: 10px; }
.ph-msg { max-width: 88%; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #fff; font-size: 14px; line-height: 1.5; }
.ph-msg p { margin: 0; }
.ph-card { padding: 12px; border-radius: 10px; background: #fff; display: grid; gap: 4px; font-size: 14px; }
.ph-card span { color: #666; font-size: 13px; }
.ph-card .ph-btn { margin-top: 8px; }
.ph-form { padding: 14px; display: grid; gap: 12px; background: #fff; min-height: calc(100% - 50px); }
.ph-form label, .ph-form legend { font-size: 13px; font-weight: 700; display: grid; gap: 5px; }
.ph-form small { font-family: var(--sans); font-weight: 400; color: #888; }
.ph-form input { min-height: 38px; border: 1px solid #ddd; border-radius: 6px; padding: 0 10px; font-family: var(--cn); font-size: 14px; color: #111; background: #fafafa; }
.ph-form fieldset { border: 0; padding: 0; margin: 0; }
.ph-chips { display: flex; gap: 6px; margin-top: 6px; }
.ph-chips button { flex: 1; min-height: 34px; border-radius: 6px; border: 1px solid #ddd; background: #fafafa; font-family: var(--cn); font-size: 13px; color: #111; }
.ph-chips button.on { border-color: var(--wechat); background: #e7f8ee; color: #077a3d; }
.ph-done { padding: 40px 20px; text-align: center; background: #fff; min-height: 100%; }
.ph-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--wechat); color: #fff; display: grid; place-items: center; font-size: 34px; font-family: var(--sans); }
.ph-done h3 { margin: 0 0 8px; }
.ph-done p { margin: 0; font-size: 14px; }
.ph-lead { margin-top: 22px; padding: 12px; border-radius: 8px; background: #f3f2fa; text-align: left; font-family: var(--sans); font-size: 12px; color: #333; display: grid; gap: 4px; }
.ph-lead b { color: var(--pink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* loading */
.loading { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--midnight); font-size: 14px; color: var(--text-2); transition: opacity .5s; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--muted-ink); border-top-color: var(--pink); animation: spin 1s linear infinite; }
.loading.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* narrow screens */
@media (max-width: 1100px) {
  .brand-sub { display: none; }
  #btn-tour { display: none; }
}
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .toggle { order: 3; width: 100%; margin: 0; }
  .toggle button { padding: 8px 10px; }
  .top-actions { margin-left: auto; gap: 6px; }
  #btn-walk, #btn-sound { display: none; }
  .top-actions .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 58vh; border-radius: 14px 14px 0 0; transform: translateY(105%); }
  .panel.open { transform: none; }
  .hud { top: 112px; bottom: auto; left: 16px; width: 220px; }
  .hud:not(.expanded) .hud-body { display: none; }
  .dock { bottom: 10px; }
  .chip .l { display: none; }
  .chip.active .l, .chip-summary .l { display: inline; }
  .hint { bottom: 64px; }
  #toasts { top: 150px; }
  .toast { font-size: 13px; border-radius: 12px; }
  .marker .dot { width: 28px; height: 28px; font-size: 13px; }
  .intro-card, .sum-card { padding: 24px 20px; }
  .proof-band { grid-template-columns: repeat(2, 1fr); }
  .cta-block { grid-template-columns: 1fr; }
  .phone-wrap { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .phone { width: 280px; height: 540px; }
  .phone-side { max-width: 340px; }
  .editor { width: 100vw; }
}
