/* 西子谛听 · 红娘工作台
   面向年长用户：大字号、大按钮、高对比、单列、少层级 */

:root {
  --red: #6E1226;
  --red-deep: #4A0E1C;
  --gold: #C9A063;
  --gold-soft: #E8C98A;
  --cream: #FBF6EE;
  --ink: #241014;
  --ink-soft: #6B5152;
  --line: rgba(110, 18, 38, .12);
  --white: #FFFFFF;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 登录 ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(900px 520px at 50% 0%, #6E1226 0%, #4A0E1C 46%, #16050A 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(201, 160, 99, .28);
  border-radius: 22px;
  padding: 34px 24px 26px;
  backdrop-filter: blur(6px);
}

.brand { text-align: center; margin-bottom: 22px; }

.brand-mark {
  font-size: 40px;
  letter-spacing: 6px;
  color: #F6EEE2;
  font-weight: 600;
}

.brand-mark span { color: var(--gold-soft); }

.brand-sub {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 8px;
  color: rgba(246, 238, 226, .55);
}

.login-tip {
  color: rgba(246, 238, 226, .62);
  font-size: 15px;
  text-align: center;
  margin: 0 0 22px;
}

.alert {
  background: rgba(201, 160, 99, .14);
  border: 1px solid rgba(201, 160, 99, .45);
  color: var(--gold-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  margin-bottom: 16px;
}

.login-form { display: block; }

.field-label {
  display: block;
  color: rgba(246, 238, 226, .78);
  font-size: 16px;
  margin: 14px 0 8px;
}

.big-input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  font-size: 19px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(201, 160, 99, .35);
  border-radius: 14px;
  outline: none;
  transition: border-color .15s;
}

.big-input:focus { border-color: var(--gold); }

.login-body .big-input {
  background: rgba(255, 255, 255, .94);
}

.btn-primary {
  width: 100%;
  min-height: 60px;
  margin-top: 26px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3B0B16;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
}

.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; }

.login-foot {
  text-align: center;
  color: rgba(246, 238, 226, .4);
  font-size: 13px;
  letter-spacing: 3px;
  margin: 26px 0 0;
}

/* ---------- 通用 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 238, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-in {
  max-width: 560px;
  margin: 0 auto;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mini {
  font-size: 17px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 2px;
}

.logout, .back {
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

/* ---------- 首页 ---------- */

.hello { padding: 10px 4px 6px; }
.hello h1 { font-size: 26px; margin: 0 0 4px; color: var(--red-deep); }
.hello p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.hello strong { color: var(--red); font-size: 20px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 18px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
}

.stat-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.stat-name { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }

.actions { display: grid; gap: 12px; }

.action-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6E1226 0%, #4A0E1C 100%);
  color: #F6EEE2;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(110, 18, 38, .18);
}

.action-main .action-ico { font-size: 30px; }
.action-main .action-text strong { display: block; font-size: 22px; }
.action-main .action-text em {
  display: block;
  font-style: normal;
  font-size: 15px;
  color: rgba(246, 238, 226, .62);
  margin-top: 2px;
}

.action-arrow { margin-left: auto; font-size: 26px; color: var(--gold-soft); }

.action-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.action-sub .action-ico { font-size: 24px; }
.action-sub em {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
}

.panel {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 16px 10px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.panel-head h2 { font-size: 18px; margin: 10px 0; color: var(--red-deep); }
.panel-note { font-size: 14px; color: var(--ink-soft); }
.panel-link { flex: 0 0 auto; font-size: 13px; color: var(--red-deep); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.stat-cell { color: inherit; text-decoration: none; }

.list { list-style: none; margin: 0; padding: 0; }

.list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.list li:first-child { border-top: 0; }

.li-main { font-size: 17px; font-weight: 600; }
.li-sub { font-size: 15px; color: var(--ink-soft); }
.li-time { margin-left: auto; font-size: 14px; color: #9B8688; white-space: nowrap; }

.empty { font-size: 16px; color: var(--ink-soft); padding: 8px 0 10px; }

.foot {
  text-align: center;
  font-size: 13px;
  color: #A89597;
  padding: 28px 0 10px;
  letter-spacing: 1px;
}

/* ---------- 录资料 ---------- */

.hint {
  font-size: 16px;
  color: var(--ink-soft);
  background: rgba(201, 160, 99, .1);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 4px 0 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--red-deep);
  margin-bottom: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  min-height: 46px;
  padding: 8px 18px;
  font-size: 17px;
  border-radius: 23px;
  border: 2px solid rgba(110, 18, 38, .16);
  background: #FFFDFA;
  color: var(--ink);
  cursor: pointer;
}

.chip-on {
  border-color: var(--gold);
  background: rgba(201, 160, 99, .18);
  color: var(--red-deep);
  font-weight: 700;
}

.rec-wrap { text-align: center; padding: 6px 0 2px; }

.rec-btn {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 3px solid rgba(201, 160, 99, .55);
  background: radial-gradient(circle at 50% 35%, #8A1B32 0%, #6E1226 55%, #4A0E1C 100%);
  color: #F6EEE2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(110, 18, 38, .22);
}

.rec-btn .rec-ico { font-size: 40px; }
.rec-btn .rec-label { font-size: 16px; letter-spacing: 1px; }

.rec-btn.rec-on {
  animation: pulse 1.4s ease-in-out infinite;
  background: radial-gradient(circle at 50% 35%, #B32341 0%, #8A1B32 60%, #6E1226 100%);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 160, 99, .45); }
  50% { box-shadow: 0 0 0 18px rgba(201, 160, 99, 0); }
}

.rec-timer {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.rec-status {
  min-height: 24px;
  margin-top: 6px;
  font-size: 16px;
  color: var(--red);
}

.rec-actions { margin-top: 12px; }
.rec-actions audio { width: 100%; height: 44px; }

.btn-ghost {
  min-height: 46px;
  margin-top: 8px;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 23px;
  border: 1px solid var(--line);
  background: #FFFDFA;
  color: var(--ink-soft);
}

.file-fallback {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 15px;
}

.link-label, .link-btn {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 15px;
  padding: 0;
}

.big-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: #FFFDFA;
  border: 2px solid rgba(110, 18, 38, .14);
  border-radius: 14px;
  outline: none;
  resize: vertical;
}

.big-textarea:focus { border-color: var(--gold); }

.btn-secondary {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  border: 2px solid var(--red);
  border-radius: 14px;
  background: #FFF;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.status-line {
  min-height: 22px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.form-grid { display: grid; gap: 14px; }

.form-row label {
  display: block;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-row .chips { margin-top: 2px; }

.more {
  margin: 16px 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.more summary {
  font-size: 16px;
  color: var(--red);
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '＋ '; color: var(--gold); }
.more[open] summary::before { content: '－ '; }
.more .form-grid { margin-top: 12px; }

.form-row.full { margin-top: 14px; }

.save-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251, 246, 238, 0), var(--cream) 30%);
}

.btn-wide { margin-top: 0; }

.save-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

@media (min-width: 720px) {
  .wrap { padding: 24px 16px 60px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-row.full, .save-bar { grid-column: 1 / -1; }
}

/* ---------- 双轨录音 V1.7 ---------- */

.subhint {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: -2px 0 12px;
}

.rec-btn-sm {
  width: 132px;
  height: 132px;
}

.rec-btn-sm .rec-ico { font-size: 30px; }
.rec-btn-sm .rec-label { font-size: 14px; letter-spacing: .5px; }

.rec-status.err { color: #B3261E; font-weight: 600; }

.asr-box { margin-top: 14px; }

.dual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dual-actions .btn-ghost { margin-top: 0; flex: 1 1 30%; min-width: 120px; }

/* ---------- 本人补录 V1.8 ---------- */

.apply-body { background: #FBF6EF; }

.apply-hero {
  background:
    radial-gradient(900px 320px at 18% -20%, rgba(201, 162, 75, .28), transparent 60%),
    linear-gradient(160deg, #6E1226 0%, #4A0E1C 62%, #350A14 100%);
  color: #fff;
  padding: 34px 22px 28px;
  text-align: center;
}

.apply-brand {
  font-size: 15px;
  letter-spacing: 6px;
  color: #E8C77A;
  margin-bottom: 10px;
  font-weight: 600;
}

.apply-slogan {
  font-family: var(--serif, "Noto Serif SC", serif);
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.apply-host {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.apply-host b { color: #E8C77A; font-weight: 600; }

.apply-wrap { padding-top: 14px; }

.apply-note {
  background: #FFF8EC;
  border: 1px solid #EAD8B6;
  color: #6B4A12;
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.apply-note.ok { background: #F2F8F1; border-color: #CFE3CA; color: #365C31; }

.apply-card { margin-bottom: 14px; }

.apply-step {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.apply-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  margin-top: 16px;
  background: #FFF8EC;
  border: 1px solid #EAD8B6;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #5D4212;
}

.apply-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }

.apply-done-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F2F8F1;
  color: #2E6B3B;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
}

.apply-error { margin-top: 42px; }

.apply-submitted {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F2F8F1;
  color: #365C31;
  font-size: 13px;
  line-height: 1.55;
}

.apply-link-card { margin-bottom: 14px; }

.apply-link-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.apply-link-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5A5148;
  background: #FFFDF8;
}

.apply-link-box .btn-secondary {
  flex: 0 0 auto;
  margin-top: 0;
  width: auto;
  padding: 0 14px;
  font-size: 13px;
}

.apply-link-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .apply-hero { padding: 28px 16px 24px; }
  .apply-slogan { font-size: 23px; }
}

/* ---------- 资料库 / 详情 ---------- */

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.stat-link::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 20px;
  color: var(--gold);
}

.stat-link:active { background: #FFF8EC; }

.intake-list { display: flex; flex-direction: column; gap: 12px; }

.intake-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
}

.intake-item:active { background: #FFF8EC; }

.ii-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ii-name { font-size: 19px; font-weight: 700; color: var(--red-deep); }

.ii-badge {
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(201, 160, 99, .16);
  color: #8A6A2F;
}

.ii-time { margin-left: auto; font-size: 14px; color: #9B8688; white-space: nowrap; }

.ii-meta { font-size: 16px; color: var(--ink); margin-top: 6px; }
.ii-sub { font-size: 15px; color: var(--ink-soft); margin-top: 2px; min-height: 1px; }

.ii-badge-ok {
  background: rgba(63, 110, 78, .12);
  color: #3F6E4E;
}

.ii-badge-warn {
  background: rgba(163, 55, 47, .10);
  color: #A3372F;
}

.ii-badge-gold {
  background: rgba(201, 160, 99, .28);
  color: #6F4A12;
}

.stat-strip {
  display: flex;
  margin: 0 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.stat-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 4px 11px;
  text-align: center;
}

.stat-cell + .stat-cell { border-left: 1px solid var(--line); }

.stat-cell strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--red-deep);
}

.stat-cell span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.search-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.search-input {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFF;
  color: var(--ink);
  font-size: 15px;
  -webkit-appearance: none;
}

.search-input::placeholder { color: #B9A9A9; }

.search-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6E1226, #4A0E1C);
  color: #F4DFC0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 2px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chips .chip { padding: 8px 11px; }

.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFF;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.chip.is-active {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #F7E7CE;
  font-weight: 600;
}

.chip-clear {
  border-style: dashed;
  color: #A3372F;
}

.list-summary {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0 6px;
}

.pager a,
.pager .is-disabled {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  background: #FFF;
}

.pager a { color: var(--red); }

.pager .is-disabled { color: #BEB0B0; }

.pager-now { font-size: 14px; color: var(--ink-soft); }

.meta-line { font-size: 15px; color: var(--ink-soft); margin: 2px 0 6px; }

.audio-player {
  width: 100%;
  height: 46px;
  margin-top: 10px;
}

.asr-origin {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 2px;
}

.list li { display: flex; }
.list li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
}
.list li a .li-time { margin-left: auto; }

/* ---------- 会员 ---------- */

.convert-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--red-deep);
  margin: 2px 0 4px;
}

.member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px 12px;
  margin: 0;
  font-size: 17px;
}

.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; color: var(--ink); }

.text-block {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin: 4px 0 0;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink);
}

.consent-row input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

/* ---------- 会员照片与编辑 ---------- */

.toplink {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.hint-ok {
  border-left-color: #2E7D32;
  background: rgba(46, 125, 50, .08);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card-head-gap { margin-top: 18px; }

.card-count {
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.member-head-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.avatar-frame {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #EFE4D2;
  border: 1px solid rgba(201, 160, 99, .35);
}

.avatar-frame img,
.member-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  background: linear-gradient(160deg, #F5E8D6, #E9D3B4);
}

.member-id { min-width: 0; }

.head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.head-actions .meta-line { margin: 0; }

.head-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.btn-inline {
  width: auto;
  min-height: 48px;
  margin-top: 0;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-decoration: none;
}

/* 照片：不用 grid / aspect-ratio，老内核也能排成三列方图 */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}

.photo-cell {
  width: 33.333%;
  padding: 0 4px 8px;
  box-sizing: border-box;
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #EFE4D2;
}

.photo-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(74, 14, 28, .82);
  color: var(--gold-soft);
  font-size: 12px;
  z-index: 2;
}

.photo-state {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  z-index: 2;
}

.photo-state-wait {
  background: rgba(201, 160, 99, .18);
  color: #FFE3B8;
  border: 1px solid rgba(232, 201, 138, .42);
}

.photo-state-ok {
  background: rgba(63, 110, 78, .30);
  color: #D9F0DF;
  border: 1px solid rgba(111, 207, 151, .45);
}

.photo-state-bad {
  background: rgba(163, 55, 47, .34);
  color: #FFD9D2;
  border: 1px solid rgba(224, 138, 128, .48);
}

.photo-reject-note {
  margin: 5px 0 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(163, 55, 47, .08);
  color: #A3372F;
  font-size: 12px;
  line-height: 1.5;
}

.photo-review-notes {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(163, 55, 47, .07);
  border: 1px solid rgba(163, 55, 47, .22);
}

.photo-review-notes p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #7E2A24;
}

.photo-review-notes p:last-child { margin-bottom: 0; }

.photo-ops {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #FFF;
}

.photo-ops form {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
}

.photo-ops .op-wide {
  flex: 0 0 100%;
  border-bottom: 1px solid var(--line);
}

.photo-ops .op-wide .photo-op,
.photo-ops > .photo-op-current {
  min-height: 36px;
  border-left: 0;
}

.photo-ops > .photo-op-current {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-ops > .op-adjust { border-left: 0; }

.photo-op {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.photo-ops > .photo-op:first-child { border-left: 0; }
.photo-ops form:first-child .photo-op { border-left: 0; }

.photo-op-danger { color: #A3372F; }

.photo-op[disabled] {
  color: #A3372F;
  background: #FBF1F0;
  cursor: default;
}

.photo-op-current {
  color: #9A7A4A;
  background: #FAF4EA;
  cursor: default;
  pointer-events: none;
}

.photo-empty {
  padding: 22px 12px 18px;
  text-align: center;
  border: 1px dashed rgba(201, 160, 99, .55);
  border-radius: 14px;
  background: #FFFDF8;
}

.photo-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 99, .55);
  color: var(--gold);
  font-size: 26px;
  line-height: 50px;
}

.photo-empty-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--red-deep);
}

.photo-empty-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 上传区：大按钮 + 大号勾选，避免原生文件控件挤压文字 */
.upload-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.pick-btn {
  display: block;
  width: 100%;
  min-height: 58px;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  background: #FFFDF8;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.pick-file {
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.pick-file-on { color: #2E7D32; font-weight: 600; }

.pick-tip {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFDF8;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.consent-box input {
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  flex: 0 0 26px;
  accent-color: var(--red);
}

.consent-box span { flex: 1 1 auto; min-width: 0; word-break: break-word; }

.upload-btn {
  margin-top: 0;
  background: #FFF;
}

.upload-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.form-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  font-size: 16px;
  color: var(--ink);
}

.check-line input {
  width: 26px;
  height: 26px;
  accent-color: var(--red);
}

/* 会员详情：统一列表行，标签固定宽度、值右对齐 */
.detail-list { margin-top: 2px; }

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child { border-bottom: 0; padding-bottom: 2px; }

.detail-label {
  flex: 0 0 82px;
  width: 82px;
  font-size: 16px;
  color: var(--ink-soft);
}

.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.detail-empty { color: #B9AA96; }

.text-soft { color: var(--ink-soft); font-size: 16px; }

.alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid #B3261E;
  border-radius: 10px;
  background: rgba(179, 38, 30, .08);
  color: #8C1D18;
  font-size: 16px;
  line-height: 1.6;
}

/* 覆盖层与弹窗 */
.modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 5, 10, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-mask[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 380px;
  padding: 24px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF9, #FBF6EE);
  box-shadow: 0 18px 50px rgba(22, 5, 10, .35);
  border: 1px solid rgba(201, 160, 99, .35);
}

.modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--red-deep);
}

.modal-text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.modal-text strong { color: var(--red); }

.modal-actions { display: flex; gap: 10px; }

.modal-cancel,
.modal-ok {
  flex: 1;
  min-height: 52px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.modal-cancel {
  border: 1px solid var(--line);
  background: #FFF;
  color: var(--ink-soft);
}

.modal-ok {
  border: 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--red-deep);
}

/* 裁剪弹窗：深色工作台 + 金色参考线 */
.crop-card {
  width: 100%;
  max-width: 420px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #16050A;
  border: 1px solid rgba(201, 160, 99, .35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.crop-head { padding: 0 4px 12px; }

.crop-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 1px;
}

.crop-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 245, 232, .7);
}

.crop-stage {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  touch-action: none;
  cursor: grab;
}

.crop-stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.crop-grid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }

.crop-grid i {
  position: absolute;
  background: rgba(232, 201, 138, .45);
}

.gv { top: 0; bottom: 0; width: 1px; }
.gv1 { left: 33.333%; }
.gv2 { left: 66.666%; }
.gh { left: 0; right: 0; height: 1px; }
.gh1 { top: 33.333%; }
.gh2 { top: 66.666%; }

.crop-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  margin: -21% 0 0 -21%;
  border: 1px dashed rgba(232, 201, 138, .55);
  border-radius: 50%;
  pointer-events: none;
}

.crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 4px;
}

.zoom-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(232, 201, 138, .45);
  border-radius: 10px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 20px;
  cursor: pointer;
}

#zoomRange {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  accent-color: var(--gold);
}

.crop-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.crop-btn {
  flex: 1;
  min-height: 50px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.crop-plain {
  border: 1px solid rgba(255, 245, 232, .22);
  background: transparent;
  color: rgba(255, 245, 232, .8);
}

.crop-main {
  border: 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--red-deep);
}

/* 品牌 Toast，替代原生 alert */
.mm-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.mm-toast {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216, 177, 107, .45);
  background: rgba(44, 10, 18, .94);
  color: #FFF6E8;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 32px rgba(31, 6, 12, .35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.mm-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   V1.6a 发布条件
   ========================================================= */

.hint-warn {
  border-left-color: #A3372F;
  background: rgba(163, 55, 47, .05);
  color: #8E2B25;
}

.publish-gate {
  border: 1px solid rgba(201, 160, 99, .22);
  background: linear-gradient(180deg, #FFFDF8, #FBF4E8);
}

.gate-state {
  font-size: 12px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.gate-state.is-ok {
  color: #2F6B45;
  background: rgba(63, 110, 78, .10);
  border-color: rgba(63, 110, 78, .24);
}

.gate-state.is-wait {
  color: #8A5A20;
  background: rgba(176, 122, 45, .10);
  border-color: rgba(176, 122, 45, .24);
}

.gate-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 22px;
}

.gate-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A063;
}

.gate-list li.is-ok .gate-dot { background: #3F6E4E; }
.gate-list li.is-wait .gate-dot { background: #B07A2D; }

.gate-label {
  flex: 1 1 auto;
  color: #43352F;
  font-size: 15px;
}

.gate-value {
  color: #7A655C;
  font-size: 14px;
  font-style: normal;
  text-align: right;
}

.gate-list li.is-ok .gate-value { color: #2F6B45; font-weight: 600; }
.gate-list li.is-wait .gate-value { color: #8A5A20; }

.publish-gate .btn-primary[disabled] {
  background: #D8D2C8;
  color: #8B8076;
  box-shadow: none;
  opacity: 1;
  border: 1px solid #C9C1B5;
}

.gate-note {
  margin: 9px 0 0;
  color: #7A655C;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- V1.6b 发布中心 ---------- */

.publish-body { background: #F7F0E5; }

.pub-hero {
  margin: 8px 0 14px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(201,160,99,.16), transparent 62%),
    linear-gradient(135deg, #6E1226 0%, #4A0E1C 100%);
  color: #F6EEE2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(74,14,28,.20);
}

.pub-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: rgba(232,201,138,.72);
}

.pub-hero h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 1px;
}
.pub-meta { margin: 0; font-size: 14px; color: rgba(246,238,226,.66); }

.pub-state {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 16px;
  border: 1px solid rgba(232,201,138,.36);
  color: #F2D79C;
  background: rgba(232,201,138,.10);
  white-space: nowrap;
}
.pub-state.is-live { color: #BFE4C9; border-color: rgba(120,190,140,.45); background: rgba(63,110,78,.22); }
.pub-state.is-pause { color: #F0C58A; border-color: rgba(201,160,99,.5); background: rgba(176,122,45,.18); }
.pub-state.is-off { color: rgba(246,238,226,.7); }

.pub-live-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(63,110,78,.08);
  border: 1px solid rgba(63,110,78,.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.pub-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3F6E4E; box-shadow: 0 0 0 4px rgba(63,110,78,.12); }
.pub-live-strip p { margin: 0; font-size: 15px; color: #2F5C40; font-weight: 600; }
.pub-live-strip a { display: block; margin-top: 2px; font-size: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pub-version { margin-left: auto; font-size: 12px; color: #5D7564; }

.pub-blocked { border-color: rgba(176,122,45,.26); background: #FFFDF8; }
.pub-blocked .gate-list { margin-bottom: 4px; }
.pub-blocked .gate-note { margin-bottom: 0; }

.pub-form { display: block; }

.pub-channel .card-count { font-size: 13px; }

.pub-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 4px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--red-deep);
}
.pub-switch input { width: 24px; height: 24px; accent-color: var(--red); }

.pub-l0 { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.pub-l0 span {
  font-size: 14px;
  color: #5C4144;
  background: #FFF9F0;
  border: 1px solid rgba(110,18,38,.10);
  border-radius: 15px;
  padding: 6px 10px;
}
.pub-note { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 8px 0 0; }
.pub-note.is-warn { color: #8A5A20; background: rgba(201,160,99,.10); border-radius: 10px; padding: 9px 10px; }

.pub-field-title { font-size: 15px; color: var(--ink-soft); margin: 14px 0 8px; }
.pub-field-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(110,18,38,.12);
  border-radius: 12px;
  background: #FFFDFA;
  cursor: pointer;
}
.pub-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: 0 0 22px; }
.pub-check span { font-size: 15px; line-height: 1.5; color: var(--ink); }
.pub-check em { display: block; font-style: normal; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.pub-check-wide { margin-top: 8px; }

.pub-photo-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pub-photo-row {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(110,18,38,.10);
  border-radius: 14px;
  background: #FFFDFA;
}
.pub-photo-thumb {
  position: relative;
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  border-radius: 10px;
  overflow: hidden;
  background: #E9DED2;
}
.pub-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-photo-tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  font-size: 10px;
  color: #F6EEE2;
  background: rgba(10,5,7,.55);
  border-radius: 7px;
  padding: 2px 6px;
}
.pub-photo-body { flex: 1; min-width: 0; }
.pub-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pub-photo-head strong { font-size: 15px; color: var(--red-deep); }
.pub-cover { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.pub-cover input { width: 20px; height: 20px; accent-color: var(--gold); }

.pub-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.pub-seg label { position: relative; display: block; cursor: pointer; }
.pub-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pub-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 4px;
  font-size: 13px;
  color: #6B5152;
  border: 1px solid rgba(110,18,38,.14);
  border-radius: 10px;
  background: #FFF;
  text-align: center;
}
.pub-seg input:checked + span {
  color: var(--red-deep);
  font-weight: 700;
  border-color: rgba(201,160,99,.72);
  background: rgba(201,160,99,.16);
}
.pub-seg input:focus-visible + span { outline: 2px solid rgba(201,160,99,.65); outline-offset: 2px; }

.pub-photo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pub-mask-open {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--red);
  background: transparent;
  border: 1px dashed rgba(110,18,38,.22);
  border-radius: 10px;
}

.pub-audio-card { opacity: .86; }

.pub-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(110,18,38,.10);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.pub-consent:last-of-type { border-bottom: 0; }
.pub-consent input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--red); flex: 0 0 24px; }
.pub-consent.is-required span { color: var(--red-deep); font-weight: 600; }

.pub-summary {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FFF9F0;
  border: 1px solid rgba(201,160,99,.28);
}
.pub-summary-title { margin: 0 0 6px; font-size: 13px; letter-spacing: 2px; color: #8A6A3B; }
.pub-summary p { margin: 0; font-size: 15px; line-height: 1.7; color: #4A3034; }
.pub-summary-sub { margin-top: 4px !important; font-size: 13px !important; color: #7A6264 !important; }

.pub-actions { display: flex; flex-direction: column; gap: 10px; }
.pub-actions .btn-primary { margin-top: 0; }
.btn-danger {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(110,18,38,.28);
  border-radius: 14px;
  background: transparent;
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
}
.pub-back-link { display: block; text-align: center; font-size: 14px; color: var(--ink-soft); text-decoration: none; padding: 6px 0; }

.pub-mask-card { max-width: 540px; }
.mask-stage { position: relative; width: 100%; margin: 4px 0 14px; background: #120A0C; border-radius: 12px; overflow: hidden; line-height: 0; }
.mask-stage img { width: 100%; height: auto; max-height: 54vh; object-fit: contain; display: block; }
.mask-box {
  position: absolute;
  border: 2px solid rgba(201,160,99,.9);
  background: rgba(201,160,99,.14);
  box-shadow: 0 0 0 9999px rgba(10,5,7,.16);
  cursor: move;
  touch-action: none;
}
.mask-handle {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 10px 0 8px 0;
  cursor: nwse-resize;
}

body.modal-open { overflow: hidden; }

@media (max-width: 430px) {
  .pub-photo-row { flex-wrap: wrap; }
  .pub-photo-thumb { width: 100%; height: 180px; flex-basis: 100%; }
  .pub-photo-thumb img { height: 180px; }
  .pub-seg span { font-size: 12px; }
  .pub-hero h1 { font-size: 25px; }
}

.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-link:active { transform: translateY(1px); }

.pub-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  margin: 2px 0 14px;
  border: 1px solid rgba(63,110,78,.22);
  background: rgba(63,110,78,.07);
}
.pub-status-row.is-pause { border-color: rgba(176,122,45,.28); background: rgba(201,160,99,.10); }
.pub-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #3F6E4E; flex: 0 0 9px; }
.pub-status-row.is-pause .pub-status-dot { background: #B07A2D; }
.pub-status-row p { margin: 0; font-size: 15px; font-weight: 600; color: #2F5C40; }
.pub-status-row.is-pause p { color: #7A4D12; }
.pub-status-row a { display: block; margin-top: 2px; font-size: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pub-status-row span:not(.pub-status-dot) { font-size: 13px; color: var(--ink-soft); }
.pub-status-row em { margin-left: auto; font-style: normal; font-size: 12px; color: #5D7564; }

@media (max-width: 430px) {
  .pub-actions { gap: 9px; }
  .pub-consent { font-size: 14px; }
  .pub-switch { font-size: 17px; }
}

/* ---------- V1.6c 语音导入 ---------- */
.audio-list { display: grid; gap: 12px; }
.audio-item { border: 1px solid rgba(110, 18, 38, .12); border-radius: 14px; padding: 12px; background: #FFFDFA; }
.audio-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.audio-title { font-size: 16px; font-weight: 700; color: var(--red-deep); margin: 0 0 3px; }
.audio-meta { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.audio-badge { flex: 0 0 auto; font-size: 12px; padding: 4px 8px; border-radius: 10px; letter-spacing: .5px; }
.audio-badge-wait { color: #7A4D12; background: rgba(201, 160, 99, .16); }
.audio-badge-ok { color: #1F6B4A; background: rgba(47, 133, 90, .12); }
.audio-badge-bad { color: #A3372F; background: rgba(163, 55, 47, .1); }
.audio-player { width: 100%; height: 42px; margin-top: 9px; }
.audio-transcript { margin: 9px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(201, 160, 99, .08); font-size: 14px; line-height: 1.8; color: #4A3034; white-space: pre-wrap; word-break: break-word; }
.audio-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.audio-ops form { margin: 0; }
.audio-op { border: 1px solid rgba(110, 18, 38, .2); background: #FFF; color: var(--red); border-radius: 9px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.audio-op-danger { color: #A3372F; border-color: rgba(163, 55, 47, .28); }
.audio-empty { border: 1px dashed rgba(201, 160, 99, .6); border-radius: 14px; padding: 20px 14px; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.audio-upload { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }
.audio-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin: 10px 0 0; }
.audio-consent input { width: 19px; height: 19px; margin: 1px 0 0; flex: 0 0 auto; }
.audio-file { width: 100%; font-size: 14px; padding: 9px 0; }
.audio-select { width: 100%; min-height: 44px; border: 1px solid rgba(201, 160, 99, .45); border-radius: 10px; padding: 8px 10px; font-size: 15px; background: #FFF; color: var(--ink); }

/* ---------- V1.6c 品牌确认框 ---------- */
.xz-mask { position: fixed; inset: 0; z-index: 80; background: rgba(10, 5, 7, .62); display: none; align-items: center; justify-content: center; padding: 22px; backdrop-filter: blur(3px); }
.xz-mask.is-open { display: flex; }
.xz-dialog { width: 100%; max-width: 360px; border: 1px solid rgba(201, 160, 99, .45); border-radius: 18px; background: linear-gradient(160deg, #2A0710, #4A0E1C); color: #F6EEE2; padding: 22px 18px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.xz-dialog h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 1px; color: #E8C98A; }
.xz-dialog p { margin: 0 0 18px; font-size: 14px; line-height: 1.8; color: rgba(246, 238, 226, .72); }
.xz-dialog-actions { display: flex; gap: 10px; }
.xz-dialog-actions button { flex: 1; min-height: 44px; border-radius: 11px; font-size: 15px; cursor: pointer; }
.xz-dialog-cancel { border: 1px solid rgba(246, 238, 226, .28); background: transparent; color: rgba(246, 238, 226, .8); }
.xz-dialog-ok { border: 0; background: linear-gradient(180deg, #E8C98A, #C9A063); color: #3B0B16; font-weight: 700; }

@media (max-width: 420px) {
  .audio-item-head { flex-direction: column; }
  .audio-badge { align-self: flex-start; }
}

/* ---------- V1.6c 发布中心语音 ---------- */
.pub-audio-list { display: grid; gap: 12px; }
.pub-audio-row { border: 1px solid rgba(110, 18, 38, .12); border-radius: 14px; padding: 12px; background: #FFFDFA; }
.pub-audio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pub-audio-head strong { font-size: 15px; color: var(--red-deep); }
.pub-audio-ok { font-size: 12px; color: #1F6B4A; background: rgba(47, 133, 90, .1); padding: 3px 8px; border-radius: 9px; }
.pub-audio-player { width: 100%; height: 40px; margin-top: 8px; }
.pub-audio-text { margin: 8px 0 0; padding: 9px 10px; border-radius: 9px; background: rgba(201, 160, 99, .08); font-size: 13px; line-height: 1.8; color: #5A4145; word-break: break-word; }
.pub-seg-audio { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 420px) {
  .pub-seg-audio { grid-template-columns: repeat(2, 1fr) !important; }
}

/* V2.1 意向运营与会员回应 */
.ii-badge-danger { background: rgba(163, 55, 47, .14); color: #A3372F; }
.ii-uid { font-size: 12px; color: #8A6A4A; letter-spacing: .3px; }
.note-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px dashed #E6D9D2; }
.note-actions form { margin: 0; }
.btn-mini { border: 1px solid #6E1226; background: #6E1226; color: #FFF8EE; font-size: 12px; padding: 6px 12px; border-radius: 99px; cursor: pointer; font-family: inherit; }
.btn-mini-ghost { background: transparent; color: #6E1226; }
.btn-mini:active { transform: translateY(1px); }
.ii-badge-member-muted { background: rgba(120, 100, 100, .10); color: #786464; }
.intent-alert {
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #FFF1E6;
  border: 1px solid rgba(163, 55, 47, .20);
  color: #8A3A2A;
  font-size: 14px;
  line-height: 1.65;
}
.chip-export {
  margin-left: auto;
  border: 1px solid rgba(110, 18, 38, .16);
  background: #FFF9F0;
  color: #4A0E1C;
  font-weight: 600;
}
.list-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px;font-size:12px;color:#9B8688;line-height:1.6}
.list-tools a{flex:0 0 auto;color:#4A0E1C;text-decoration:none;border:1px solid rgba(110,18,38,.16);background:#FFF9F0;border-radius:12px;padding:6px 11px;font-size:12px;font-weight:700}

/* ---------- V2.5 智能匹配 / 牵线 ---------- */
.mm-kicker{font-size:11px;letter-spacing:3px;color:var(--gold);margin:0 0 8px}
.mm-match-hero h1{font-size:26px;line-height:1.35;margin:0 0 6px;color:var(--red-deep)}
.mm-match-sub{font-size:14px;color:var(--ink-soft);line-height:1.75;margin:0 0 10px}
.mm-pref-bar{font-size:13px;line-height:1.7;color:#6B4A2A;background:#FFF6E3;border:1px solid rgba(201,160,99,.32);border-radius:12px;padding:9px 11px;margin:0 0 12px}
.mm-match-actions{display:flex;gap:9px;flex-wrap:wrap}
.mm-match-list{display:flex;flex-direction:column;gap:12px}
.mm-match-card{border:1px solid var(--line);border-radius:16px;padding:14px 13px 12px;background:#FFFDF8}
.mm-match-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mm-match-person{min-width:0}
.mm-match-person h3{font-size:18px;line-height:1.35;margin:0;color:var(--red-deep);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mm-match-person p{font-size:12px;line-height:1.7;color:var(--ink-soft);margin:5px 0 0}
.mm-match-score{flex:0 0 66px;width:66px;height:66px;border-radius:50%;border:1px solid rgba(201,160,99,.35);background:#FFF9F0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.mm-match-score strong{font-size:22px;line-height:1;color:#6B4A2A}
.mm-match-score span{font-size:9px;color:var(--ink-soft);margin-top:2px}
.mm-match-score em{font-style:normal;font-size:9px;color:#8A6A66;margin-top:3px;white-space:nowrap}
.mm-match-score.is-high strong{color:#8A5A00}.mm-match-score.is-good strong{color:#2F6B45}.mm-match-score.is-mid strong{color:#6B4A2A}.mm-match-score.is-low strong{color:#8A3A3A}
.mm-match-reasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.mm-match-reasons span{font-size:11px;line-height:1.4;padding:4px 8px;border-radius:8px;background:#F5EADB;color:#6B4A2A}
.mm-match-gaps{font-size:11px;line-height:1.6;color:#9A6A24;margin:8px 0 0}
.mm-match-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(110,18,38,.08)}
.mm-text-link{font-size:12px;color:var(--red);text-decoration:none;font-weight:600}
.mm-preview-list{display:flex;flex-direction:column;gap:8px}
.mm-preview-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid rgba(110,18,38,.08)}
.mm-preview-item:last-child{border-bottom:0}
.mm-preview-name{font-size:15px;margin:0;color:var(--red-deep);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mm-preview-meta{font-size:11px;color:var(--ink-soft);margin:4px 0 0}
.mm-preview-verdict{font-size:11px;color:#6B4A2A;white-space:nowrap}
.mm-req-hero h1{font-size:25px;margin:0 0 7px;color:var(--red-deep)}
.mm-req-stats{display:flex;gap:9px;margin-top:12px}
.mm-req-stats div{flex:1;text-align:center;padding:11px 6px;border-radius:12px;background:#FFF9F0;border:1px solid rgba(201,160,99,.25)}
.mm-req-stats strong{display:block;font-size:22px;line-height:1.1;color:var(--red-deep)}
.mm-req-stats span{display:block;font-size:11px;color:var(--ink-soft);margin-top:3px}
.mm-req-list{list-style:none;margin:0;padding:0}
.mm-req-item{padding:12px 0;border-bottom:1px solid rgba(110,18,38,.08)}
.mm-req-item:last-child{border-bottom:0}
.mm-req-item.is-closed{opacity:.6}
.mm-req-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mm-req-top strong{font-size:15px;color:var(--ink)}
.mm-req-top p{font-size:11px;color:var(--ink-soft);margin:4px 0 0}
.mm-req-contact{font-size:12px;color:var(--ink-soft);margin:7px 0 0;letter-spacing:.5px}
.mm-req-note{font-size:12px;line-height:1.7;color:#6B4A2A;background:#FFF9F0;border:1px solid rgba(201,160,99,.2);border-radius:10px;padding:8px 10px;margin:8px 0 0}
.mm-req-item.is-claim{padding:14px;margin:10px 0;border:1px solid rgba(201,160,99,.35);border-radius:14px;background:linear-gradient(180deg,#FFFDF8 0%,#FFF7E8 100%)}
.mm-req-item.is-claim:last-child{margin-bottom:0}
.mm-claim-note{background:#FFF4D9;border-color:rgba(201,160,99,.42);color:#5E4315}
.mm-req-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.mm-req-links a{font-size:12px;color:var(--red);text-decoration:none;font-weight:600}
.mm-req-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px}
.mm-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;max-width:88vw;background:rgba(74,14,28,.96);color:#F6EEE2;border:1px solid rgba(201,160,99,.32);border-radius:12px;padding:11px 16px;font-size:14px;line-height:1.5;box-shadow:0 14px 40px rgba(0,0,0,.26)}
.mm-toast.is-ok{border-color:rgba(47,107,69,.55)}
@media(max-width:380px){
  .mm-match-person h3{font-size:17px}
  .mm-match-score{flex-basis:58px;width:58px;height:58px}
  .mm-match-score strong{font-size:19px}
}

/* V2.6 家长代登记 */
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.status-actions .btn-secondary {
  flex: 1 1 auto;
  min-width: 108px;
}
.parent-hint {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* V2.15 红娘入驻、服务期、推荐与收款 */
.join-mm-link {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: var(--gold-soft);
  font-size: 15px;
  text-decoration: none;
  letter-spacing: .5px;
}
.service-card {
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF2D9 100%);
  border: 1px solid rgba(201,160,99,.36);
  box-shadow: 0 8px 24px rgba(74,14,28,.06);
}
.service-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.service-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #FFF4DF;
  font-size: 12px;
  letter-spacing: .5px;
}
.service-card-top strong { font-size: 16px; color: var(--red-deep); }
.service-line { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.service-line strong { color: var(--red-deep); font-size: 17px; }
.service-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.service-links a {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(110,18,38,.18);
  color: var(--red);
  font-size: 13px;
  text-decoration: none;
  background: rgba(255,255,255,.72);
}
.page-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 46px; }
.panel {
  background: #FFFDF9;
  border: 1px solid rgba(110,18,38,.12);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 0 0 16px;
  box-shadow: 0 8px 22px rgba(74,14,28,.04);
}
.panel-title { margin: 0 0 10px; font-size: 19px; color: var(--red-deep); }
.panel-sub { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.form-row { margin: 0 0 12px; }
.form-row label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 5px; }
.form-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(110,18,38,.2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.form-textarea { min-height: 84px; resize: vertical; }
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #D8B072 0%, #B8833D 100%);
  color: #3E1909;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-gold:disabled { opacity: .5; }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(110,18,38,.2);
  color: var(--red);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
}
.notice { padding: 11px 13px; border-radius: 12px; font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.notice-ok { background: #F1F8F2; border: 1px solid #B9DDBE; color: #2F6B45; }
.notice-warn { background: #FFF6E6; border: 1px solid #E6C98A; color: #6B4A13; }
.notice-bad { background: #FDF0F1; border: 1px solid #E7B9C0; color: #8E2232; }
.kv-list { margin: 0; padding: 0; list-style: none; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(110,18,38,.12); font-size: 14px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list span { color: var(--ink-soft); }
.kv-list strong { color: var(--red-deep); text-align: right; }
.copy-box { display: flex; gap: 8px; align-items: center; }
.copy-box .form-input { flex: 1; font-size: 13px; color: #6B4A2A; }
.copy-btn { flex: 0 0 auto; min-width: 70px; height: 46px; border-radius: 10px; border: 1px solid rgba(110,18,38,.2); background: #FFF6E6; color: var(--red); font-weight: 600; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td { padding: 9px 8px; border-bottom: 1px solid rgba(110,18,38,.1); text-align: left; vertical-align: top; }
.mini-table th { color: var(--ink-soft); font-weight: 500; background: #FFF9F0; }
.mini-table td.num { text-align: right; white-space: nowrap; }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.st-active { background: #EAF5EC; color: #2F6B45; }
.st-wait { background: #FFF3D9; color: #7A5515; }
.st-dead { background: #F7E9EB; color: #8E2232; }
.qr-wrap { text-align: center; padding: 14px; }
.qr-wrap canvas, .qr-wrap img { max-width: 240px; }
@media(max-width: 520px) {
  .page-narrow { padding: 12px 12px 38px; }
  .panel { padding: 15px 13px; }
  .mini-table { font-size: 12px; }
  .mini-table th, .mini-table td { padding: 7px 5px; }
}

/* V2.20 家长共鉴 · 红娘端汇总卡 */
.mm-guardian-card { border-color: rgba(110, 18, 38, .16); }
.mm-guardian-list { display: grid; gap: 0; }
.mm-guardian-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(110, 18, 38, .12); }
.mm-guardian-item:last-child { border-bottom: 0; }
.mm-guardian-main { display: flex; gap: 10px; align-items: flex-start; }
.mm-guardian-action { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 4px 8px; border-radius: 999px; font-size: 11px; background: #F4EFF0; color: var(--ink-soft); }
.mm-guardian-action.is-like { background: #EAF5EC; color: #2F6B45; }
.mm-guardian-action.is-watch { background: #FFF3D9; color: #7A5515; }
.mm-guardian-action.is-pass { background: #F7E9EB; color: #8E2232; }
.mm-guardian-line { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink); }
.mm-guardian-line strong { color: var(--red-deep); }
.mm-guardian-line em { font-style: normal; color: var(--ink-soft); font-size: 11px; margin: 0 4px; }
.mm-guardian-note { margin: 3px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.mm-guardian-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.mm-guardian-side small { font-size: 10px; color: var(--ink-soft); }
.mm-guardian-side a { font-size: 11px; color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(110, 18, 38, .18); }
@media(max-width: 520px) {
  .mm-guardian-item { flex-direction: column; }
  .mm-guardian-side { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* V2.21 会员准入 · 红娘端状态卡 */
.admission-card { border-color: rgba(110, 18, 38, .18); }
.admission-reason {
  margin: 4px 0 10px;
  padding: 11px 12px;
  border-left: 3px solid #B33045;
  border-radius: 0 10px 10px 0;
  background: #FBF0F1;
}
.admission-reason strong { display: block; color: #7E1527; font-size: 13px; }
.admission-reason p { margin: 4px 0 0; color: var(--ink); font-size: 13px; line-height: 1.7; }
.admission-reason span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.admission-resubmit { margin: 0 0 6px; }

/* V2.22 家庭共识 */
.mm-consensus-list { display: grid; gap: 10px; margin-bottom: 14px; }
.mm-consensus { padding: 12px; border-radius: 12px; border: 1px solid rgba(20, 30, 45, .08); background: #fbfaf6; }
.mm-consensus-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mm-consensus-names { margin: 3px 0 0; font-size: 11px; color: #8b8175; }
.mm-consensus-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; white-space: nowrap; }
.mm-consensus-side small { font-size: 10px; color: #9a9186; }
.mm-consensus-read { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; color: #8b8175; border: 1px solid rgba(139, 129, 117, .2); }
.mm-consensus-read.is-ok { color: #2f6a4c; border-color: rgba(47, 106, 76, .22); background: rgba(47, 106, 76, .07); }
.mm-consensus-read.is-part { color: #8a5d1f; border-color: rgba(176, 122, 37, .22); background: rgba(176, 122, 37, .07); }
.mm-consensus-votes { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; color: #7d7368; }
.mm-consensus-votes span { padding: 3px 8px; border-radius: 999px; background: rgba(20, 30, 45, .03); }
.mm-consensus-votes b { font-weight: 600; color: #2a2620; }
.mm-consensus-votes .is-like b { color: #2f6a4c; }
.mm-consensus-votes .is-watch b { color: #a06a1f; }
.mm-consensus-votes .is-pass b { color: #9b423d; }
.mm-consensus-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mm-consensus-actions a { font-size: 11px; color: #8b8175; }
.mm-consensus-mark { min-height: 28px; padding: 0 10px; font-size: 11px; }

/* P1.5.1 求帮找超时提醒与候选登记 */
.help-alert{display:block;margin:0 0 12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(163,55,47,.35);background:linear-gradient(135deg,#FDF1EC,#FFF8F3);text-decoration:none;color:#6E1226}
.help-alert strong{display:block;font-size:14px;line-height:1.5}
.help-alert span{display:block;margin-top:3px;font-size:12px;line-height:1.6;color:#8A3A3A}
.help-overdue{border-color:rgba(163,55,47,.35)!important;background:#FBE9E4!important;color:#8A3A3A!important;white-space:nowrap}
.help-card .ii-top{flex-wrap:wrap;gap:6px 8px}
.help-card .ii-name{flex:1 1 100%}
.help-card .ii-badge{white-space:nowrap}
.help-card .ii-time{margin-left:0;font-size:13px}
.found-box{margin-top:10px;padding:0 12px;border:1px dashed rgba(110,18,38,.22);border-radius:12px;background:#FFFDF8}
.found-box summary{cursor:pointer;padding:10px 0;font-size:13px;color:#6E1226;font-weight:600}
.found-form{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 12px}
.found-input{flex:1 1 180px;min-width:0;border:1px solid #E7D9CC;border-radius:10px;background:#FFF;padding:10px 11px;font-size:13px;color:#4A2E2E}
/* P1.6 供给冲刺 */
.supply-hero{background:linear-gradient(145deg,#3A0A16 0%,#6E1226 58%,#8A3A3A 100%);border-radius:18px;padding:22px 20px;color:#FFF8EF;box-shadow:0 14px 32px rgba(110,18,38,.18)}
.supply-hero-kicker{display:inline-block;font-size:10px;letter-spacing:.18em;color:#D9B36C;border:1px solid rgba(217,179,108,.45);border-radius:999px;padding:4px 9px}
.supply-hero h1{margin:12px 0 8px;font-size:26px;line-height:1.4;letter-spacing:.02em}
.supply-hero p{margin:0;font-size:14px;line-height:1.8;color:#F3DFC9}
.supply-hero p strong{font-size:18px;color:#FFD98A}
.supply-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.supply-hero-meta span{font-size:12px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.10);color:#FFE9CF}
.supply-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}
.supply-kpis a{display:block;text-align:center;text-decoration:none;padding:12px 6px;border:1px solid #E7D9CC;border-radius:14px;background:#FFFDF8}
.supply-kpis a strong{display:block;font-size:22px;color:#6E1226;line-height:1.2}
.supply-kpis a span{display:block;margin-top:4px;font-size:11px;color:#7D6668}
.supply-kpis a.is-accent{border-color:rgba(201,160,99,.55);background:#FFF7E8}
.supply-kpis a.is-accent strong{color:#8A5A16}
.supply-panel{margin-top:12px}
.supply-list{display:flex;flex-direction:column;gap:10px}
.supply-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid #EADDD2;border-radius:14px;background:#FFFDF9}
.supply-row-main{min-width:0;flex:1}
.supply-row-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.supply-row-head strong{font-size:16px;color:#4A2E2E}
.supply-state{font-size:11px;line-height:1;padding:5px 7px;border-radius:7px;background:#FBE9E4;color:#8A3A3A;white-space:nowrap}
.supply-row p{margin:5px 0 0;font-size:12px;color:#7D6668;line-height:1.6}
.supply-checklist{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.supply-checklist span{font-size:10px;line-height:1;padding:4px 6px;border-radius:6px;border:1px solid transparent}
.supply-checklist .ok{background:rgba(63,110,78,.10);color:#3F6E4E;border-color:rgba(63,110,78,.18)}
.supply-checklist .todo{background:#FBE9E4;color:#8A3A3A;border-color:rgba(163,55,47,.18)}
.supply-row-actions{display:flex;flex-direction:column;gap:6px;flex-shrink:0;text-align:right}
.supply-primary{display:inline-block;text-decoration:none;font-size:13px;font-weight:700;color:#6E1226;white-space:nowrap}
.supply-secondary{display:inline-block;text-decoration:none;font-size:11px;color:#9B8688}
.supply-note-panel{margin-top:12px}
.supply-note-panel h2{font-size:17px;color:#4A2E2E;margin:0 0 6px}
.supply-note-panel p{margin:0;font-size:13px;line-height:1.8;color:#7D6668}
.supply-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:12px}
.supply-links a{color:#6E1226;text-decoration:none;font-weight:600}
.supply-today{margin-top:12px;padding:12px 14px;border:1px solid #E7D9CC;border-radius:14px;background:#FFFDF8}
.supply-today-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.supply-today strong{font-size:15px;color:#4A2E2E}
.supply-today em{font-style:normal;font-size:12px;color:#7D6668}
.supply-today-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.supply-today-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #F0E5DB}
.supply-today-row:first-child{border-top:0}
.supply-today-row span{font-size:13px;color:#4A2E2E}
.supply-today-row a{font-size:12px;color:#6E1226;text-decoration:none;font-weight:600;white-space:nowrap}
.supply-today-empty{margin:8px 0 0;font-size:12px;line-height:1.7;color:#9B8688}
.supply-auth-hint{margin:8px 0 0;font-size:12px;line-height:1.7;color:#9B8688}
.supply-auth{font-size:10px;line-height:1;padding:5px 7px;border-radius:7px;border:1px solid transparent;white-space:nowrap}
.supply-auth.stage-0{background:#F4ECE3;color:#8A6A4A;border-color:rgba(138,106,74,.18)}
.supply-auth.stage-1{background:#FFF3D8;color:#8A5A16;border-color:rgba(201,160,99,.35)}
.supply-auth.stage-2{background:rgba(63,110,78,.10);color:#3F6E4E;border-color:rgba(63,110,78,.22)}
.supply-auth.stage-3{background:#F0EBEA;color:#8B7B7C;border-color:rgba(139,123,124,.22)}
.supply-auth-actions{min-width:104px}
.supply-auth-actions form{margin:0}
.supply-copy,.supply-linkbtn{background:none;border:0;padding:0;font:inherit;cursor:pointer;text-align:right;white-space:nowrap}
.supply-copy{font-size:12px;font-weight:700;color:#8A5A16}
.supply-linkbtn{font-size:11px;color:#9B8688}
.supply-auth-actions .supply-primary{font-size:12px}
.found-select{flex:1 1 100%;min-height:42px;color:#4A2E2E}
@media (max-width:640px){
  .supply-hero h1{font-size:22px}
  .supply-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supply-row{align-items:flex-start;flex-direction:column}
  .supply-row-actions{flex-direction:row;align-items:center;text-align:left;width:100%;justify-content:flex-end}
  .supply-auth-actions{flex-wrap:wrap;justify-content:flex-start}
}
.mm-foot{margin:26px 0 16px;text-align:center;font-size:11px;line-height:1.8;color:#9B8688}
.note-sla-line{margin:-4px 0 10px;font-size:12px;line-height:1.7;color:#7D6668}
.note-sla{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#8B7375;margin-top:6px}
.note-reply{margin-top:8px;padding:9px 11px;border-radius:10px;background:#FBF3EA;border-left:3px solid #C9A063;font-size:12.5px;line-height:1.7;color:#5B4142;word-break:break-word}
.note-status-form{width:100%}
.note-more{margin:7px 0 4px}
.note-more summary{cursor:pointer;font-size:12px;color:#8B7375;list-style:none}
.note-more summary::-webkit-details-marker{display:none}
.note-more summary:before{content:'＋ ';color:#C9A063;font-weight:700}
.note-more textarea{width:100%;box-sizing:border-box;margin-top:8px;min-height:64px;padding:10px 11px;border:1px solid #E2D2C9;border-radius:10px;background:#FFFDF9;font:inherit;font-size:13px;line-height:1.6;color:#4A2E2E;resize:vertical}
.note-more label{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;color:#8B7375;flex-wrap:wrap}
.note-more input[type=datetime-local]{flex:1 1 190px;min-height:38px;border:1px solid #E2D2C9;border-radius:9px;background:#FFFDF9;padding:5px 8px;font:inherit;font-size:12px;color:#4A2E2E}
.note-actions .note-status-form .btn-mini{margin-top:6px}/* fix: alert-ok */
.alert-ok{border-left-color:#2F7D52;background:rgba(47,125,82,.10);color:#1D5B39;font-weight:600}
.alert-ok::before{content:"✓ ";font-weight:800}
