:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --line-strong: rgba(0,0,0,.14);
  --red: #ff3b30;
  --red-hover: #e0332a;
  --red-soft: #fff1f0;
  --red-ink: #c41c16;
  --ok: #34c759;
  --ok-hover: #28b04d;
  --ok-soft: #e8f8ed;
  --ok-ink: #1b7f38;
  --warn: #f5a524;
  --warn-soft: #fff6e5;
  --warn-ink: #9a6700;
  --blue: #0071e3;
  --blue-soft: #eef4ff;
  --blue-ink: #1d4ed8;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --radius: 16px;
  --side: 232px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.tabular { font-variant-numeric: tabular-nums; }

.guest {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(160deg, #f5f5f7 0%, #e8e8ed 40%, #f0f0f3 100%);
}
.desk-guest { background: linear-gradient(160deg, #fff5f4 0%, #f5f5f7 40%, #fff 100%); }
.admin-guest { background: linear-gradient(160deg, #1d1d1f 0%, #2d2d30 40%, #1a1a1c 100%); }
.guest-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
}
.admin-guest .guest-card { background: rgba(255,255,255,.96); backdrop-filter: blur(20px); }
.guest-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.guest-brand-text h1 { margin: 0 0 2px; font-size: 22px; letter-spacing: -.03em; font-weight: 700; line-height: 1.3; }
.guest-brand-text .sub { margin: 0; color: var(--muted); font-size: 13px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(255,59,48,.3);
}
.guest h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.03em; font-weight: 650; }
.guest .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.hint {
  background: var(--red-soft);
  color: var(--red-ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.hint-off { background: #f2f2f7; color: #6e6e73; }
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=file], input[type=search], select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255,59,48,.12);
}
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-q {
  flex: 0 0 auto;
  background: var(--red-soft);
  color: var(--red-ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  letter-spacing: .04em;
  min-width: 92px;
  text-align: center;
}
.login-note { margin: 14px 0 0; text-align: center; }

.btn, button.btn, input[type=submit].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  border-radius: 12px; padding: 9px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.btn:hover, button.btn:hover { background: #f2f2f7; text-decoration: none; }
.btn-primary, input[type=submit].btn-primary {
  background: var(--red); color: #fff; border-color: transparent;
}
.btn-primary:hover, input[type=submit].btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-block, input[type=submit].btn-block { width: 100%; padding: 12px; font-size: 16px; }
.btn-danger { background: #fff; color: var(--red); border-color: rgba(255,59,48,.28); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-green, input[type=submit].btn-green { background: var(--ok); color: #fff; border-color: transparent; }
.btn-green:hover, input[type=submit].btn-green:hover { background: var(--ok-hover); color: #fff; }
.btn-amber { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.btn-amber:hover { background: #ffe8bf; color: var(--warn-ink); }
.btn-copy { background: var(--red); color: #fff; border-color: transparent; padding: 6px 12px; font-size: 12px; }
.btn-copy:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 2px 8px; font-size: 12px; }
.btn-ghost:hover { background: #f2f2f7; color: var(--text); }
.btn-sm { padding: 4px 8px; font-size: 12px; }
.flash { padding: 10px 12px; border-radius: 12px; margin: 0 0 14px; font-size: 13px; }
.flash.ok { background: var(--ok-soft); color: var(--ok-ink); }
.flash.bad { background: var(--red-soft); color: var(--red-ink); }

.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side); flex-shrink: 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 20px 16px 14px; }
.side .brand-mark { margin: 0; width: 36px; height: 36px; font-size: 14px; }
.brand-name { font-weight: 650; font-size: 13.5px; letter-spacing: -.02em; line-height: 1.3; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.side nav { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.side nav .group { font-size: 11px; color: var(--muted); padding: 12px 12px 6px; font-weight: 600; }
.side nav a {
  text-decoration: none; color: var(--text);
  padding: 9px 12px; border-radius: 10px; font-size: 14px;
}
.side nav a:hover { background: #f2f2f7; text-decoration: none; }
.side nav a.on { background: var(--red); color: #fff; }
.side-foot { padding: 14px; border-top: 1px solid var(--line); }
.who { font-size: 12px; margin-bottom: 8px; }
.who b { display: block; }
.who span { color: var(--muted); }

.main { flex: 1; min-width: 0; padding: 28px 32px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; font-weight: 650; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.create-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.create-head h3 { margin: 0; }
.js-gift { background: var(--ok-soft); color: var(--ok-ink); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; font-size: 26px; margin-top: 6px; letter-spacing: -.04em; }
.stat em { font-style: normal; color: var(--muted); font-size: 12px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > div { min-width: 140px; flex: 1; }
.row .grow { flex: 2; min-width: 220px; }
.row .btn, .row button, .row input[type=submit] { flex: 0 0 auto; }

.community-grid { display: flex; flex-direction: column; gap: 14px; }
.community-card { margin: 0; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cc-head h3 { margin: 0; font-size: 18px; }
.cred-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.cred-edit summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.inline-form { display: inline; }

.tag {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650;
}
.tag-on { background: var(--ok-soft); color: var(--ok-ink); }
.tag-off { background: var(--red-soft); color: var(--red-ink); }
.tag-low { background: var(--warn-soft); color: var(--warn-ink); }
.tag-mid { background: #fff1e6; color: #9a3412; }
.tag-high { background: var(--red-soft); color: var(--red-ink); }
.tag-none { background: var(--ok-soft); color: var(--ok-ink); }
.tag-wait { background: var(--warn-soft); color: var(--warn-ink); }
.tag-doing { background: var(--blue-soft); color: var(--blue-ink); }
.tag-done { background: var(--ok-soft); color: var(--ok-ink); }
.tag-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag-green { background: var(--ok-soft); color: var(--ok-ink); }
.tag-amber { background: var(--warn-soft); color: var(--warn-ink); }
.tag-fixed { background: #1d1d1f; color: #fff; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; color: var(--muted); font-weight: 700; background: #fafafa; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); font-size: 12px; }
.right { text-align: right; }

.lock-banner {
  background: var(--red-soft);
  color: var(--red-ink);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.lock-banner b { font-size: 15px; }
body.is-locked .page-freeze {
  pointer-events: none;
  user-select: none;
  filter: grayscale(.25);
  opacity: .55;
}
body.is-locked .side nav a { pointer-events: none; opacity: .45; }

.menu-btn { display: none; }
dialog.modal { border: 0; border-radius: 18px; padding: 0; max-width: 640px; width: calc(100% - 24px); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0,0,0,.35); }
.modal-body { padding: 20px; }
.modal-body h3 { margin: 0 0 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.type-list { display: grid; gap: 8px; margin: 12px 0; }
.type-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-type-red { background: var(--red-soft); color: var(--red-ink); }
.tag-type-green { background: var(--ok-soft); color: var(--ok-ink); }
.tag-type-amber { background: var(--warn-soft); color: var(--warn-ink); }
.tag-type-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag-type-purple { background: #f3e8ff; color: #6b21a8; }
.tag-type-indigo { background: #eef0fb; color: #3930a8; }
.tag-type-teal { background: #e2f7f5; color: #0a8a80; }
.tag-type-gray { background: #f0f0f2; color: #555; }
.building-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.pick { display: inline-flex; align-items: center; gap: 6px; background: #f5f5f7; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.col-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.col-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.setup-steps { display: grid; gap: 14px; }
@media (max-width: 860px) {
  .side { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; margin-bottom: 12px; }
  .main { padding: 18px 14px 40px; }
  .community-grid { grid-template-columns: 1fr; }
}

.login-links { display:flex; justify-content:space-between; gap:12px; margin-top:18px; font-size:14px; }
.login-links a { color:#ff3b30; }

.btn-create {
  height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  background: #ff3b30; color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 10px 24px rgba(255,59,48,.28); cursor: pointer;
}
.btn-create:hover { background: #e0332a; }
body.theme-admin .btn, body.theme-admin .btn-primary, body.theme-admin .btn-green,
body.theme-admin .btn-amber, body.theme-admin .btn-danger, body.theme-admin .btn-ghost, body.theme-admin .btn-copy {
  height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.community-card {
  display: grid !important;
  grid-template-columns: minmax(240px, .9fr) minmax(280px, 1.2fr) 200px;
  gap: 8px 18px;
  align-items: start;
}
.community-card .cc-head { grid-column: 1; grid-row: 1; }
.community-card .link-box { grid-column: 1; grid-row: 2; margin: 0; }
.community-card .cred-grid { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.community-card .phone-edit { grid-column: 2; }
.community-card .sub-box { grid-column: 1; margin: 0; }
.community-card .bill-log { grid-column: 1 / span 2; }
.community-card .cc-actions {
  grid-column: 3; grid-row: 1 / span 4;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 16px 16px 16px 0;
}
.community-card .cc-actions form { margin: 0; }
.community-card .cc-actions .btn, .community-card .cc-actions .btn-primary,
.community-card .cc-actions .btn-green, .community-card .cc-actions .btn-amber,
.community-card .cc-actions .btn-danger { width: 100%; }
@media (max-width: 980px) {
  .community-card { grid-template-columns: 1fr; }
  .community-card .cc-actions { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
}

/* ===== 全局自定义二次确认弹窗 ===== */
dialog.yc-confirm {
  border: 0; padding: 0;
  width: calc(100% - 32px); max-width: 360px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
  overflow: hidden;
}
/* 缴费最终确认：更宽可读（含 yc-cf-card） */
dialog.yc-confirm:has(.yc-cf-card) {
  max-width: 520px;
  width: calc(100% - 48px);
}
dialog.yc-confirm::backdrop,
dialog.yc-confirm[open]::backdrop {
  background: rgba(0,0,0,.32) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: yc-fade .18s ease;
}
.yc-cf { padding: 26px 22px 20px; animation: yc-pop .22s cubic-bezier(.2,.9,.25,1); }
.yc-cf-icon {
  width: 54px; height: 54px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800; line-height: 1;
}
.yc-cf-icon.is-danger  { background: var(--red-soft);  color: var(--red); }
.yc-cf-icon.is-warn    { background: var(--warn-soft); color: var(--warn-ink); }
.yc-cf-icon.is-success { background: var(--ok-soft);   color: var(--ok-ink); }
.yc-cf-icon.is-primary { background: var(--red-soft); color: var(--red-ink); }
.yc-cf h4 { margin: 0 0 8px; text-align: center; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.yc-cf p { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.65; color: var(--muted); word-break: break-word; }
.yc-cf-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.yc-cf-dl dt { color: #8e8e93; font-weight: 500; text-align: right; }
.yc-cf-dl dd { margin: 0; color: #1d1d1f; font-weight: 600; word-break: break-word; }
.yc-cf-dl dd.yc-cf-amt { color: var(--red-ink); font-size: 15px; }
.yc-cf-dl dd.yc-cf-note { color: #b45309; font-weight: 550; }
/* 缴费最终确认：大号可读卡片 */
.yc-cf-card {
  margin: 0; padding: 4px 2px 0;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.yc-cf-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 8px 12px;
  background: #f5f5f7; border-radius: 12px;
}
.yc-cf-row-strong { background: var(--red-soft); }
.yc-cf-lab {
  flex: 0 0 auto; color: #8e8e93; font-size: 13px; font-weight: 550;
  min-width: 4.5em;
}
.yc-cf-val {
  flex: 1 1 auto; text-align: right; color: #1d1d1f;
  font-size: 15px; font-weight: 650; word-break: break-word;
}
.yc-cf-val.yc-cf-amt {
  color: var(--red); font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.yc-cf-val.yc-cf-months {
  font-size: 20px; font-weight: 800; color: #1d1d1f;
}
.yc-cf-val.yc-cf-extra {
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.yc-cf-disc {
  margin-top: 2px; padding: 12px 14px;
  background: #fff8e8; border: 1px solid rgba(180, 83, 9, .22);
  border-radius: 12px;
}
.yc-cf-disc-title {
  font-size: 12.5px; font-weight: 700; color: #b45309;
  margin-bottom: 8px; letter-spacing: .04em;
}
.yc-cf-disc-grid {
  display: grid; grid-template-columns: auto 1fr auto 1fr;
  gap: 6px 10px; align-items: baseline;
  font-size: 13px; color: #6d625f;
}
.yc-cf-disc-grid b {
  font-weight: 750; color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.yc-cf-actions { display: flex; gap: 10px; margin-top: 22px; }
.yc-cf-actions button {
  flex: 1; height: 44px;
  border-radius: 13px; border: 1px solid transparent;
  font-size: 15px; font-weight: 650; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.yc-cf-actions button:active { transform: scale(.97); }
.yc-cf-cancel { background: #f2f2f7; color: #1d1d1f; }
.yc-cf-cancel:hover { background: #e7e7ec; }
.yc-cf-ok.is-danger  { background: var(--red);   color: #fff; box-shadow: 0 8px 20px rgba(255,59,48,.28); }
.yc-cf-ok.is-danger:hover  { background: var(--red-hover); }
.yc-cf-ok.is-warn    { background: var(--warn);  color: #fff; box-shadow: 0 8px 20px rgba(245,165,36,.3); }
.yc-cf-ok.is-warn:hover    { background: #e0931a; }
.yc-cf-ok.is-success { background: var(--ok);    color: #fff; box-shadow: 0 8px 20px rgba(52,199,89,.28); }
.yc-cf-ok.is-success:hover { background: var(--ok-hover); }
.yc-cf-ok.is-primary { background: var(--red);  color: #fff; box-shadow: 0 8px 20px rgba(255,59,48,.22); }
.yc-cf-ok.is-primary:hover { background: var(--red-hover); }
.yc-cf-actions button[hidden] { display: none; }
@keyframes yc-pop {
  from { opacity: 0; transform: translateY(10px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
@keyframes yc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.captcha-refresh {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-ink, #b00020);
  text-decoration: none;
  white-space: nowrap;
}
.captcha-refresh:hover { text-decoration: underline; }
.captcha-hint { margin: 6px 0 0; font-size: 12px; }
/* 轻提示 toast */
.yc-toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(29,29,31,.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.20);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
  max-width: 86vw;
  text-align: center;
}
.yc-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.yc-toast.is-ok { background: rgba(27,127,56,.95); }
.yc-toast.is-bad { background: rgba(215,0,21,.95); }

/* ===== SMS 验证码独立输入 + 倒计时按钮 ===== */
.sms-code-field { margin-top: 4px; }
.sms-code-box,
input.sms-code-box[type=text] {
  letter-spacing: 0.42em;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 14px 12px;
  border-width: 1.5px;
  border-color: #c8c8ce;
  background: #f7f7fa;
}
.sms-code-box:focus,
input.sms-code-box[type=text]:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,59,48,.12);
}
.sms-code-hint { margin: 6px 0 0; font-size: 12px; }
.js-sms-send:disabled,
input.js-sms-send:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.sms-resend-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sms-resend-box .sms-resend-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

/* ===== SMS OTP row + captcha modal ===== */
.sms-send-form { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sms-otp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.sms-otp-row .sms-code-box {
  flex: 1;
  min-width: 0;
}
.sms-otp-row .js-sms-open {
  flex: 0 0 auto;
  min-width: 118px;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
}
dialog.sms-captcha-modal {
  width: min(400px, calc(100vw - 28px));
  border-radius: 18px;
}
.sms-captcha-body h3 { margin: 0 0 6px; font-size: 18px; }
.sms-captcha-lead { margin: 0 0 14px; font-size: 13px; }
.sms-captcha-err { margin: 10px 0 0; }
.fin-gate .qa-hint b { color: #1d1d1f; font-variant-numeric: tabular-nums; }

/* ===== 2026-09-12 忘记/重置密码 iOS 内联流程 v1230 ===== */
.pr-card { max-width: 420px; }
.pr-field { margin-bottom: 15px; }
.pr-label {
  display: block; margin: 0 0 6px 2px;
  font-size: 13px; font-weight: 600; color: #6b6f76; letter-spacing: .01em;
}
.pr-input {
  width: 100%; height: 48px; padding: 0 14px; box-sizing: border-box;
  font-size: 16px; color: #1d1d1f;
  background: #f2f2f7;
  border: 1.5px solid transparent; border-radius: 12px; outline: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pr-input::placeholder { color: #b0b0b8; }
.pr-input:focus {
  background: #fff;
  border-color: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255,59,48,.10);
}
.pr-input:disabled {
  background: #f2f2f7; color: #c7c7cc; -webkit-text-fill-color: #c7c7cc;
  cursor: not-allowed;
}
.pr-input:disabled::placeholder { color: #d1d1d6; }

/* 算术验证 */
.pr-captcha-row { display: flex; align-items: center; gap: 10px; }
.pr-calc-q {
  flex: 0 0 auto; min-width: 96px; height: 48px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff5f4; color: #d70015;
  border: 1.5px solid rgba(255,59,48,.22); border-radius: 12px;
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: .02em; white-space: nowrap;
}
.pr-captcha-input { flex: 1 1 auto; min-width: 0; }
.pr-refresh {
  flex: 0 0 auto; padding: 6px 2px;
  font-size: 13px; color: #8e8e93; text-decoration: none; white-space: nowrap;
}
.pr-refresh:hover { color: #ff3b30; }
.pr-state {
  margin: 7px 2px 0; min-height: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #8e8e93;
}
.pr-state.ok { color: #1d7a41; }
.pr-state.bad { color: #d70015; }
.pr-state-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c7c7cc; display: inline-block; flex: 0 0 auto;
}
.pr-state.ok .pr-state-dot { background: #34c759; }
.pr-state.bad .pr-state-dot { background: #ff3b30; }
.pr-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12); border-top-color: #8e8e93;
  display: inline-block; animation: prSpin .7s linear infinite;
}
@keyframes prSpin { to { transform: rotate(360deg); } }

/* 验证码行 */
.pr-otp-row { display: flex; gap: 10px; }
.pr-otp-input {
  flex: 1 1 auto; min-width: 0;
  text-align: center; letter-spacing: 8px;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.pr-send-btn {
  flex: 0 0 auto; height: 48px; padding: 0 16px;
  border: 0; border-radius: 12px;
  background: #ff3b30; color: #fff;
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.pr-send-btn:not(:disabled):hover { background: #e0342b; }
.pr-send-btn:not(:disabled):active { transform: scale(.97); }
.pr-send-btn:disabled {
  background: #f2f2f7; color: #b0b0b8; cursor: not-allowed;
  box-shadow: none;
}

/* 新密码区 */
.pr-pw-fields { animation: prFade .28s ease; }
.pr-pw-fields[hidden] { display: none; }
@keyframes prFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.pr-submit { margin-top: 8px; letter-spacing: .02em; }

/* ===== 2026-09-12 忘密提交门控：未填验证码/密码不一致时灰色禁用 v1231 ===== */
.pr-submit:disabled {
  background: #f2f2f7 !important;
  color: #b0b0b8 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ===== 2026-09-15 工作台登录：历史手机号浮层 v1232 ===== */
.login-phone-wrap { position: relative; }
.login-history {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 30;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0,0,0,.16);
  padding: 6px;
  overflow: hidden;
}
.login-history[hidden] { display: none; }
.login-history .lh-title {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  letter-spacing: .04em;
}
.login-history .lh-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s ease;
}
.login-history .lh-item:hover { background: #f5f5f7; }
.login-history .lh-phone {
  font-size: 14px;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.login-history .lh-del {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #c7c7cc;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.login-history .lh-del:hover { background: #fde9e6; color: #c9382c; }
.login-history .lh-clear {
  margin-top: 2px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: #86868b;
  cursor: pointer;
  border-top: 1px solid rgba(0,0,0,.06);
  transition: color .12s ease;
}
.login-history .lh-clear:hover { color: #c9382c; }
