/* 贯译 — red / white chat, floating panel on wide screens. */
:root {
  --red: #D71E26;
  --red-press: #B8161D;
  --red-soft: #FDEEEE;
  --green: #22A35A;

  --page: #F2F3F5;            /* behind everything */
  --bg: #F7F8FA;              /* conversation background */
  --surface: #FFFFFF;
  --text: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --line: #E5E6EB;
  --line-soft: #F0F1F3;
  --shadow-s: 0 1px 2px rgba(29, 33, 41, .06), 0 1px 3px rgba(29, 33, 41, .04);
  --shadow-m: 0 2px 10px rgba(29, 33, 41, .07);

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --r-full: 999px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); text-decoration: none; }
:focus-visible { outline: 2px solid rgba(215, 30, 38, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.noscript { padding: 24px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1; }

/* ---------- frame ---------- */
.app { height: 100%; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow: hidden; }

/* ---------- header ---------- */
.hd { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: calc(8px + var(--safe-t)) 16px 8px; min-height: 52px; background: var(--surface); border-bottom: 1px solid var(--line-soft); position: relative; z-index: 2; }
.hd-logo { flex: none; display: block; }
.hd-text { min-width: 0; line-height: 1.25; }
.hd-title { font-size: 16px; font-weight: 600; }
.hd-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--text-3); }
.hd-back { flex: none; width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; color: var(--text); }

/* ---------- order card: one compact line, opens the detail sheet ---------- */
.job { flex: none; margin: 8px 10px 0; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-m); overflow: hidden; }
.job-body { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px 10px 14px; border: 0; background: none; text-align: left; }
.job-body:active { background: var(--line-soft); }
.job-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.job-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.job-name { min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row.sub { font-size: 12px; color: var(--text-3); }
.job-when { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-chev { flex: none; color: var(--text-3); display: grid; }
.job.dim .job-name { color: var(--text-2); }
.pill { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-full); font-size: 11px; font-weight: 500; color: var(--text-2); white-space: nowrap; background: var(--line-soft); }
.pill.todo { background: var(--red-soft); color: var(--red); }
.pill.muted { color: var(--text-3); }
.job-next { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; padding: 6px 10px 7px; border: 0; border-top: 1px solid var(--line-soft); background: none; font-size: 12px; color: var(--text-3); }
.job-next svg { width: 12px; height: 12px; }
.scope { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 7px 12px; font-size: 12px; color: var(--red); background: var(--red-soft); }

/* ---------- conversation ---------- */
.log { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 12px 10px; overscroll-behavior: contain; }
.more { display: block; margin: 8px auto; padding: 5px 14px; border: 0; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-s); font-size: 12px; color: var(--text-2); }
.stamp { text-align: center; font-size: 12px; color: var(--text-3); margin: 14px 0 6px; }
.row { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.row.first { margin-top: 14px; }
.row.out { flex-direction: row-reverse; }
.ava { flex: none; width: 30px; height: 30px; margin-top: 2px; display: block; }
.ava.me { border-radius: var(--r-full); background: #E5E6EB; color: #A9AEB8; display: grid; place-items: end center; overflow: hidden; }
.ava.me svg { width: 24px; height: 24px; }
.row:not(.first) .ava { visibility: hidden; }
.msg { max-width: 72%; display: flex; flex-direction: column; align-items: flex-start; }
.row.out .msg { align-items: flex-end; }
.bubble {
  padding: 9px 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-s);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55;
  -webkit-user-select: text; user-select: text;
}
.row.out .bubble { background: var(--red); color: #fff; box-shadow: none; }
.row.out .bubble a { color: #fff; }
.bubble a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg > * + .bubble, .msg > * + .pic-wrap, .msg > * + .file { margin-top: 4px; }

.tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 0 2px 4px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
button.tag { color: var(--text-2); }
.tag svg { flex: none; width: 12px; height: 12px; }
.tag span { overflow: hidden; text-overflow: ellipsis; }

.pic-wrap { position: relative; padding: 0; border: 0; background: none; display: block; border-radius: var(--r-m); box-shadow: var(--shadow-s); }
.pic { display: block; max-width: min(220px, 56vw); max-height: 300px; border-radius: var(--r-m); background: var(--line-soft); object-fit: cover; }
.file { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 250px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-s); color: var(--text); }
.file-ico { flex: none; width: 34px; height: 38px; border-radius: var(--r-s); background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.file-name { display: block; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.file-size { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.state { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-3); margin: 4px 2px 0; }
.state.read { color: var(--text-2); }
.state.fail { color: var(--red); background: none; border: 0; padding: 2px; font-size: 12px; }
.progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: var(--r-full); background: rgba(255,255,255,.75); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); width: 0; transition: width .2s; }

/* ---------- composer ---------- */
.composer { flex: none; background: var(--surface); border-top: 1px solid var(--line-soft); padding: 8px 12px calc(10px + var(--safe-b)); }
.ctx { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: 12px; color: var(--text-3); }
.ctx-ico { flex: none; display: grid; }
.ctx-ico svg { width: 13px; height: 13px; }
.ctx-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-text b { font-weight: 500; color: var(--text-2); }
.ctx button { flex: none; width: 22px; height: 22px; border: 0; border-radius: var(--r-full); background: var(--line-soft); color: var(--text-3); display: grid; place-items: center; }
.ctx button svg { width: 10px; height: 10px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; }
.quick::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); font-size: 13px; color: var(--text-2); }
.chip:active { border-color: var(--red); color: var(--red); }
.compose-row { display: flex; align-items: flex-end; gap: 8px; }
.field { flex: 1; min-width: 0; display: flex; align-items: flex-end; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding-right: 4px; }
.field:focus-within { border-color: #C9CDD4; }
.input { flex: 1; min-width: 0; min-height: 42px; max-height: 128px; resize: none; padding: 10px 12px; border: 0; background: none; outline: none; line-height: 1.4; font-size: 15px; }
.input::placeholder { color: var(--text-3); }
.tool { flex: none; width: 34px; height: 40px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; }
.tool:active { color: var(--text); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; opacity: 0; transition: opacity .22s; }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 520px; margin: 0 auto;
  max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 6px 16px calc(16px + var(--safe-b)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet.on { transform: none; }
.grabber { width: 36px; height: 4px; border-radius: var(--r-full); background: #D5D8DE; margin: 4px auto 14px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 2px 12px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-title { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.sheet-head .pill { height: 22px; font-size: 12px; padding: 0 9px; }
.x { flex: none; width: 30px; height: 30px; border: 0; border-radius: var(--r-full); background: var(--line-soft); color: var(--text-2); display: grid; place-items: center; }
.group { background: var(--surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-s); }
.fields { margin: 0; }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 11px 14px; position: relative; }
.item + .item::before { content: ""; position: absolute; left: 14px; right: 0; top: 0; border-top: 1px solid var(--line-soft); }
.item dt { font-size: 13px; color: var(--text-3); padding-top: 1px; }
.item dd { margin: 0; min-width: 0; font-size: 14px; -webkit-user-select: text; user-select: text; word-break: break-word; }
.item dd .sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.item dd .line + .line { margin-top: 3px; }
.item dd .when { color: var(--text-3); white-space: nowrap; }
.money { font-weight: 600; color: var(--red); }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 14px; border: 0; border-radius: var(--r-m); background: var(--red); color: #fff; font-size: 16px; font-weight: 500; }
.primary:active { background: var(--red-press); }
.primary:disabled { opacity: .5; }
.done { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; margin-top: 14px; border-radius: var(--r-m); background: var(--surface); color: var(--green); font-size: 15px; box-shadow: var(--shadow-s); }
.sheet-foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.sheet-foot a, .sheet-foot button { color: var(--text-3); background: none; border: 0; padding: 6px; font-size: 12px; }

.viewer { position: fixed; inset: 0; z-index: 30; background: #000; display: grid; place-items: center; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.toast { position: fixed; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); z-index: 40; max-width: 86%; padding: 9px 16px; border-radius: var(--r-m); background: rgba(29, 33, 41, .9); color: #fff; font-size: 14px; text-align: center; }

/* ---------- login ---------- */
.login-page { flex: 1; overflow-y: auto; background: var(--bg); }
.login { max-width: 400px; margin: 0 auto; padding: calc(56px + var(--safe-t)) 20px calc(28px + var(--safe-b)); display: flex; flex-direction: column; }
.login .av { display: block; margin: 0 auto 12px; }
.login .av img { display: block; width: 60px; height: 60px; margin: 0 auto; }
.login h1 { font-size: 22px; font-weight: 600; text-align: center; margin: 0 0 4px; }
.login .lead { margin: 0 0 24px; text-align: center; color: var(--text-3); font-size: 14px; }
.note { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-m); background: var(--red-soft); color: var(--red); font-size: 13px; }
.inputs .in-row { display: flex; align-items: center; min-height: 50px; position: relative; }
.inputs .in-row + .in-row::before { content: ""; position: absolute; left: 14px; right: 0; top: 0; border-top: 1px solid var(--line-soft); }
.text { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: none; font-size: 16px; outline: none; }
.text::placeholder { color: var(--text-3); }
.linkbtn { flex: none; height: 50px; padding: 0 14px; border: 0; background: none; color: var(--red); font-size: 14px; }
.linkbtn:disabled { color: var(--text-3); }
.consent { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; font-size: 13px; color: var(--text-2); }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: var(--r-full); border: 1.5px solid #C9CDD4; background: var(--surface); display: grid; place-items: center; }
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.err { min-height: 20px; margin: 10px 2px 0; color: var(--red); font-size: 13px; }
.login .primary { margin-top: 6px; }
.login-foot { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); }
.login-foot a { color: var(--text-2); }
.switch { align-self: center; margin-top: 14px; padding: 4px 8px; font-size: 14px; }

/* ---------- sign-up extras ---------- */
.cap { flex: none; height: 50px; padding: 0 10px 0 4px; border: 0; background: none; display: grid; place-items: center; }
.cap img { display: block; width: 96px; height: 35px; border-radius: var(--r-s); }

/* ---------- tabs: 对话 / 我的 ---------- */
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.tabs { flex: none; display: flex; background: var(--surface); border-top: 1px solid var(--line-soft); padding-bottom: var(--safe-b); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; border: 0; background: none; font-size: 11px; color: var(--text-3); }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--red); }
.pane .composer { padding-bottom: 10px; }

/* ---------- 我的 ---------- */
.me { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.me-form { max-width: 440px; margin: 0 auto; padding: 14px 14px 20px; display: flex; flex-direction: column; }
.me-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.me-head .ava { width: 48px; height: 48px; margin: 0; }
.me-head .ava svg { width: 38px; height: 38px; }
.me-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-head b { font-size: 17px; font-weight: 600; }
.me-head span { font-size: 13px; color: var(--text-3); }
.me-head .pill { color: var(--green); background: #E8F6EE; }
.me-head .pill.todo { color: var(--red); background: var(--red-soft); }
.me-note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--red-soft); color: var(--red); font-size: 13px; }
.me-form .label { margin: 18px 2px 8px; font-size: 13px; color: var(--text-2); }
.me-form .err { min-height: 0; }
.me-form .primary { margin-top: 12px; }
.me-gate { padding: 80px 28px; text-align: center; color: var(--text-2); }
.me-gate .primary { max-width: 280px; margin: 18px auto 0; }
.muted { color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip.on { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: var(--r-m); background: #E9EBEF; }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 8px; background: none; font-size: 15px; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--red); font-weight: 500; box-shadow: var(--shadow-s); }
.text.area { height: auto; min-height: 84px; padding: 12px 14px; line-height: 1.5; resize: none; }
.in-row.resume { padding-left: 14px; }
.in-row .k { flex: none; width: 52px; padding-left: 14px; font-size: 15px; color: var(--text-2); }
.in-row .k + .text { padding-left: 8px; }
.resume-name { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* review overlay */
.review { position: absolute; inset: 0; z-index: 5; background: var(--bg); padding: 110px 36px 28px; text-align: center; }
.review .av { display: block; margin: 0 auto 16px; }
.review .av img { display: block; width: 60px; height: 60px; margin: 0 auto; }
.review h2 { font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.review p { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }
.bar { max-width: 280px; margin: 0 auto; height: 6px; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.bar i { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--red); transition: width 6s cubic-bezier(.2, .7, .3, 1); }
.review.ok .bar i { background: var(--green); }
.review.ok p, .review.hold p { color: var(--text-2); }

/* pending translator without orders: one line pointing to 我的 */
.pending { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 8px 11px 14px; border: 0; background: none; text-align: left; font-size: 13px; color: var(--text-2); }
.pending span:first-child { flex: 1; }

/* locked order details: placeholders under a blur, a note on top */
.locked { position: relative; }
.locked .fields { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-tip { position: absolute; inset: 0; background: rgba(247, 248, 250, .5); border-radius: var(--r-m); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 28px; text-align: center; }
.lock-tip b { font-size: 15px; font-weight: 600; }
.lock-tip .primary { width: auto; min-width: 150px; height: 40px; padding: 0 22px; font-size: 15px; }

/* ---------- privacy ---------- */
.doc-page { height: auto; }
.doc-page .hd { position: sticky; top: 0; }
.doc-page .hd { justify-content: flex-start; }
.doc-page .hd-text { flex: 1; text-align: center; margin-right: 28px; }
.doc { max-width: 680px; margin: 0 auto; padding: 4px 16px calc(40px + var(--safe-b)); font-size: 14px; line-height: 1.75; color: var(--text-2); }
.doc .group { padding: 4px 16px 12px; margin-top: 12px; }
.doc h1 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 18px 2px 2px; color: var(--text); }
.doc h2 { font-size: 15px; font-weight: 600; margin: 12px 0 4px; color: var(--text); }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--text-3); }
.doc p { margin: 8px 0; }
.doc-meta { color: var(--text-3); font-size: 12px; margin: 0 2px; }

/* ---------- wide screens: a floating chat panel ---------- */
@media (min-width: 900px) {
  html, body { background: var(--page); }
  .app {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 420px; height: min(760px, calc(100vh - 64px));
    border-radius: var(--r-l); box-shadow: 0 12px 40px rgba(29, 33, 41, .16), 0 2px 8px rgba(29, 33, 41, .06);
  }
  .hd { justify-content: flex-start; padding: 12px 18px; min-height: 60px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; max-height: min(700px, calc(100vh - 96px)); margin: 0; border-radius: var(--r-l); transform: translate(-50%, 110vh); }
  .sheet.on { transform: translate(-50%, -50%); }
  .scrim { background: rgba(0, 0, 0, .18); }
  .app.is-login { position: static; transform: none; width: auto; height: 100vh; border-radius: 0; box-shadow: none; background: var(--page); }
  .login-page { display: grid; place-items: center; background: var(--page); }
  .login { width: 400px; margin: 0; padding: 40px 32px 28px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-m); }
  .login .group { box-shadow: none; border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .scrim { transition: none; }
}

/* resume → 「我的」 autofill progress */
.bar.small { max-width: none; margin: 10px 2px 0; height: 4px; }
.bar.small i { transition: none; }
.auto-status { margin: 8px 2px 0; font-size: 13px; color: var(--text-2); }
.auto-status.ok { color: var(--green); }
.auto-status.warn { color: var(--red); }

/* 接单条款: folded into the order sheet */
.terms-box { margin-top: 12px; }
.terms-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: none; font-size: 14px; color: var(--text); text-align: left; }
.terms-head > span:first-child { flex: 1; }
.terms-note { font-size: 12px; color: var(--text-3); }
.terms-head .job-chev { display: inline-flex; color: var(--text-3); transition: transform .15s; }
.terms-head .job-chev.open { transform: rotate(90deg); }
.terms-sec { padding: 6px 14px 0; font-size: 12px; font-weight: 600; color: var(--text-2); }
.terms { margin: 2px 0 0; padding: 0 14px 6px 34px; font-size: 13px; line-height: 1.65; color: var(--text-2); }
.terms-box .terms:last-child { padding-bottom: 12px; }
.terms li { margin: 3px 0; }
.terms li::marker { color: var(--text-3); }
.terms b, .doc .terms b { color: var(--text); font-weight: 600; }
.doc .terms { padding: 0 0 0 1.4em; font-size: 14px; line-height: 1.75; }
.textlink { border: 0; background: none; padding: 0; font: inherit; color: var(--red); }
.pill.tbd { margin-left: 6px; height: 18px; vertical-align: 1px; }

/* 认证 (optional) in 「我的」 */
.verify { margin-top: 22px; }
.verify .label .opt { margin-left: 6px; font-weight: 400; color: var(--text-3); }
.verify-note { margin: 4px 2px 10px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.verify-note.warn { color: var(--red); }
.verify-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px; }
.verify-row .sub { flex: 1; font-size: 13px; color: var(--text-2); }
.verify .consent { margin: 12px 2px 0; }
.verify .ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--text); font-size: 15px; }
.verify .ghost:disabled { opacity: .6; }
/* 已认证: a small gold seal — warm, a little ceremonial, never loud */
.vbadge {
  position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px 0 5px; border-radius: var(--r-full);
  background: linear-gradient(135deg, #FFF8E1 0%, #F7E2A6 45%, #E9C46A 100%);
  border: 1px solid rgba(176, 124, 32, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 3px rgba(122, 82, 12, .18);
  color: #6E4A0C; font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.vbadge svg { width: 16px; height: 16px; color: #C38A1E; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
/* one slow sheen when it appears */
.vbadge::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg); animation: vbadge-sheen 1.6s ease-out .3s 1 both;
}
@keyframes vbadge-sheen { from { left: -60%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .vbadge::after { display: none; } }

/* Empty chat (a new sign-up): what happens here */
.empty-chat { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26vh 32px 0; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.empty-chat p { margin: 0; }
.empty-chat .textlink { font-size: 14px; }

/* 「我的」 save: the button itself says saving / saved */
.primary.saved, .primary.saved:disabled { opacity: 1; background: var(--green); }

/* the order changed after the translator confirmed it */
.reconfirm { margin: 12px 2px 0; padding: 9px 12px; border-radius: var(--r-m); background: var(--red-soft); color: var(--red); font-size: 13px; }
