/* ============================================================
   文山护苗 · 家长端
   高保真离线原型样式表
   ============================================================ */

:root {
  --green: #07C160;
  --green-600: #06AD56;
  --green-700: #05974B;
  --green-deep: #0B5A3C;
  --green-deeper: #073B29;
  --green-ink: #12261D;
  --green-soft: #E9F6EF;
  --green-line: #D5EBDD;
  --gold: #C9A45C;
  --gold-soft: #F4E9D1;
  --paper: #F4F5F1;
  --paper-2: #EEF0EA;
  --card: #FFFFFF;
  --ink: #18251E;
  --ink-2: #32453B;
  --muted: #647469;
  --muted-2: #7E8C83;
  --line: #E3E8E1;
  --line-strong: #D3DBD3;
  --red: #C54646;
  --red-dark: #A53636;
  --red-soft: #FCEEEC;
  --amber: #B8761C;
  --amber-soft: #FBF3E4;
  --amber-line: #EEDCB8;
  --radius: 16px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 8px 24px rgba(20, 45, 32, .05), 0 1px 2px rgba(20, 45, 32, .04);
  --shadow-float: 0 18px 46px rgba(9, 42, 28, .18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #E7EAE4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(7, 193, 96, .5);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

::selection { background: rgba(7, 193, 96, .2); }

.ico { display: block; flex: 0 0 auto; }

.mono { font-family: var(--font-num); letter-spacing: .02em; }

.tone-green { color: var(--green-700); }
.tone-amber { color: var(--amber); }
.tone-red { color: var(--red); }
.tone-muted { color: var(--muted-2); }

/* ============================================================
   Desktop stage
   ============================================================ */

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(760px 620px at 14% 6%, rgba(255, 255, 255, .96), transparent 60%),
    radial-gradient(900px 720px at 90% 94%, rgba(11, 90, 60, .13), transparent 62%),
    linear-gradient(138deg, #F0F2ED 0%, #E7EAE3 48%, #EDF0E9 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 90, 60, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 90, 60, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, black 16%, transparent 78%);
  pointer-events: none;
}

.stage-notes {
  position: absolute;
  left: max(48px, 5vw);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 50px;
  pointer-events: none;
}

.stage-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-seal {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #0D6A47, #073B29);
  color: #F4E9CF;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(7, 59, 41, .26);
}

.stage-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-brand-text strong {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: #354A3E;
  font-weight: 700;
}

.stage-brand-text span {
  font-size: 11px;
  color: #7D8D83;
  letter-spacing: .04em;
}

.stage-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: #6C8A79;
  font-weight: 700;
}

.stage-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 39px;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: #17271F;
  font-weight: 700;
}

.stage-copy > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #6C7B72;
  max-width: 260px;
}

.stage-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #54685C;
}

.stage-points i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex: 0 0 auto;
}

.stage-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-meta span {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .04em;
  color: #5C7165;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  padding: 5px 10px;
}

/* ============================================================
   Device shell
   ============================================================ */

.device-shell {
  position: relative;
  width: 410px;
  height: 864px;
  padding: 10px;
  border-radius: 56px;
  background: linear-gradient(150deg, #283630 0%, #101A15 40%, #22322A 100%);
  box-shadow:
    0 62px 120px rgba(9, 34, 23, .34),
    0 24px 46px rgba(9, 34, 23, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 0 0 3px rgba(0, 0, 0, .36);
  transform-origin: center center;
  z-index: 3;
  flex: 0 0 auto;
}

.device-shell::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 52px;
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.device-key {
  position: absolute;
  background: #17231D;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.device-key--power { right: -3px; top: 214px; width: 3px; height: 74px; border-radius: 0 3px 3px 0; }
.device-key--vol-up { left: -3px; top: 166px; width: 3px; height: 46px; border-radius: 3px 0 0 3px; }
.device-key--vol-down { left: -3px; top: 222px; width: 3px; height: 46px; border-radius: 3px 0 0 3px; }

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 46px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

/* ============================================================
   Status bar
   ============================================================ */

.statusbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(30px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--green-deep);
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
  transition: background .2s ease;
}

.phone[data-tone="reject"] .statusbar { background: #5E2B2B; }
.phone[data-tone="blocked"] .statusbar { background: #1C2721; }

.statusbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.statusbar-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .9;
}

.demo-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
  transition: background .15s ease;
}

.demo-entry:hover { background: rgba(255, 255, 255, .18); }

.demo-entry i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8FE3B4;
}

.app {
  position: absolute;
  inset: 0;
  padding-top: calc(30px + env(safe-area-inset-top));
  overflow: hidden;
}

.view {
  position: relative;
  width: 100%;
  height: 100%;
  animation: pageIn .3s cubic-bezier(.22, .8, .28, 1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.screen::-webkit-scrollbar { display: none; }

.screen--tab { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.screen--action { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }

.page-body { padding: 16px 18px 30px; }
.page-body--tab { padding-top: 12px; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise {
  animation: riseIn .38s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* ============================================================
   Basic type and utilities
   ============================================================ */

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--green-700);
  text-transform: uppercase;
}

.soft-label {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
}

.mini-rule {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 0 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.inline-note .ico { margin-top: 2px; color: var(--green-700); flex: 0 0 auto; }

.page-foot-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.75;
  color: var(--muted-2);
}

.list-foot {
  margin: 18px 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.list-foot .ico { margin-top: 1px; flex: 0 0 auto; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  background: #fff;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.btn:active { transform: scale(.98); }

.btn[disabled] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 7px 18px rgba(7, 193, 96, .22);
}

.btn-green:hover { background: var(--green-600); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-ghost:hover { border-color: #BFCBC1; background: #FBfCFA; }

.btn-soft-green {
  background: var(--green-soft);
  color: var(--green-700);
  border-color: var(--green-line);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(197, 70, 70, .2);
}

.btn-danger-ghost {
  background: #fff;
  border-color: #E9CBC8;
  color: var(--red);
}

.btn-block { width: 100%; }
.btn-small { height: 36px; padding: 0 14px; font-size: 12px; border-radius: 9px; }
.btn-auth { height: 50px; font-size: 14.5px; border-radius: 13px; }

.wechat-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 13px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .02em;
}

.text-link:hover { color: var(--green-700); }

.text-btn {
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.text-btn--danger { color: var(--red); }

.head-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.head-action--ghost { border-color: rgba(255, 255, 255, .18); }

.head-action:hover { background: rgba(255, 255, 255, .2); }

.card-btn {
  height: 31px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.card-btn--primary {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green-700);
}

.card-btn--danger-ghost {
  border-color: #EBD2CF;
  color: var(--red);
}

.outline-add {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.outline-add:hover { border-color: var(--green-line); color: var(--green-700); }

.inline-demo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -4px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted-2);
  font-size: 9.5px;
}

.inline-demo:hover { color: var(--green-700); border-color: var(--green-line); }

/* ============================================================
   Status chips and tags
   ============================================================ */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-chip.tone-green { background: var(--green-soft); color: var(--green-700); border-color: var(--green-line); }
.status-chip.tone-amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.status-chip.tone-red { background: var(--red-soft); color: var(--red); border-color: #EFD3CF; }
.status-chip.tone-muted { background: #F0F2EE; color: var(--muted); border-color: var(--line); }

.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* 家长端只展示学生「疑似」预警，等级标签用琥珀色；
   「高危（high）」是学生以外底库告警，家长端不展示，故不提供对应样式。 */
.level-tag--suspect {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}

/* ============================================================
   Checkboxes
   ============================================================ */

.check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.check-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.check-box {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid #CBD5CC;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}

.check-box .ico { width: 11px; height: 11px; opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; }

.check-input:checked + .check-box {
  background: var(--green);
  border-color: var(--green);
}

.check-input:checked + .check-box .ico { opacity: 1; transform: scale(1); }

.check-input:focus-visible + .check-box { outline: 2px solid rgba(7, 193, 96, .4); outline-offset: 2px; }

.check-text { flex: 1; min-width: 0; }

.check-row.is-error .check-box { border-color: var(--red); }

.legal-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green-700);
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agree-row { margin-top: 2px; }

/* ============================================================
   Notices
   ============================================================ */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  margin-bottom: 13px;
  border-radius: 11px;
  font-size: 10.5px;
  line-height: 1.65;
  border: 1px solid transparent;
}

.notice.tone-green { background: var(--green-soft); color: #316E51; border-color: var(--green-line); }
.notice.tone-amber { background: var(--amber-soft); color: #7C551A; border-color: var(--amber-line); }
.notice.tone-red { background: var(--red-soft); color: #8D3636; border-color: #EFD3CF; }
.notice.tone-muted { background: #EEF0EC; color: var(--muted); border-color: var(--line); }

.notice-ico { margin-top: 1px; flex: 0 0 auto; }
.notice-text { flex: 1; min-width: 0; }
.notice .text-btn { margin-top: 2px; }

/* ============================================================
   Sections, cards, forms
   ============================================================ */

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head-text {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.section-index {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  padding-top: 3px;
  flex: 0 0 auto;
}

.section-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section-head p {
  margin: 3px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.form-card--consent { padding-bottom: 14px; }

.form-intro { padding: 4px 2px 16px; }

.form-intro h1 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 700;
}

.form-intro p:last-child {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field:last-child { margin-bottom: 0; }

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-2);
}

.field-label .req {
  font-size: 8px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .02em;
  background: var(--red-soft);
  border-radius: 3px;
  padding: 1px 4px;
}

.input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #FBFCFA;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.input::placeholder { color: #AFBAB2; font-size: 11.5px; }

.input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .09);
}

.input.is-error { border-color: var(--red); background: #FFFBFB; }

.input--mono { font-family: var(--font-num); letter-spacing: .04em; font-size: 14px; }

.field-hint {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--red);
}

.form-error .ico { margin-top: 1px; }

.form-actions { margin-top: 18px; }

.submit-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 9px 0 0;
  font-size: 9.5px;
  color: var(--muted-2);
}

.submit-hint .ico { flex: 0 0 auto; }

.select-box {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #FBFCFA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
}

.select-box .placeholder { color: #AFBAB2; font-size: 11.5px; }
.select-box .ico { color: #A5B1A9; }
.select-box.is-error { border-color: var(--red); }

/* 学校选择框：主行学校名 + 次行「区县 · 街镇」 */
.select-box--stack {
  height: auto;
  min-height: 45px;
  padding-top: 7px;
  padding-bottom: 7px;
  align-items: center;
}

.select-box-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.select-box-main > span:first-child {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-box-sub {
  font-size: 8.5px;
  line-height: 1.4;
  color: var(--muted-2);
}

.relation-list {
  max-height: 44vh;
  overflow-y: auto;
  margin: 0 -2px;
  padding: 2px;
  scrollbar-width: none;
}

.relation-list::-webkit-scrollbar { display: none; }

.relation-option {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #F1F4F0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  transition: background .15s ease;
}

.relation-option:last-child { border-bottom: 0; }
.relation-option.is-selected { background: var(--green-soft); }

.relation-option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

/* 「其他亲属」角标：提醒需要补备注。 */
.relation-option-tag {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}

/* 备注输入紧跟在关系选择下方，视觉上属于同一组。 */
.relation-note-field { margin-top: -4px; }

.relation-option-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.relation-option.is-selected .relation-option-check {
  background: var(--green);
  border-color: var(--green);
}

.readonly-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.readonly-label { font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.readonly-value { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-left: auto; }

.receipt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F3EF;
  font-size: 11px;
}

.receipt-row:last-child { border-bottom: 0; }

.receipt-row > span { color: var(--muted); flex: 0 0 auto; }

.receipt-row > strong {
  font-weight: 650;
  color: var(--ink-2);
  text-align: right;
  letter-spacing: .01em;
  word-break: break-all;
  line-height: 1.55;
}

.receipt-row > strong.mono { font-size: 11.5px; }

/* ============================================================
   Subhead
   ============================================================ */

.subhead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 7px 14px 10px;
  position: relative;
  z-index: 4;
}

.subhead-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 90, 60, .06);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.back-btn:hover { background: rgba(11, 90, 60, .1); }
.back-btn--light { background: rgba(255, 255, 255, .12); color: #fff; }
.back-btn--light:hover { background: rgba(255, 255, 255, .2); }
.back-btn--dark { background: rgba(18, 38, 29, .06); }

.subhead-titles { flex: 1; min-width: 0; }

.subhead-titles h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--ink);
}

.subhead-titles p {
  margin: 2px 0 0;
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subhead-action { flex: 0 0 auto; }

/* ============================================================
   Tab head
   ============================================================ */

.tab-head {
  position: relative;
  overflow: hidden;
  padding: 15px 20px 21px;
  color: #fff;
  background:
    linear-gradient(150deg, #0D6647 0%, #0B5A3C 52%, #08462F 100%);
}

.tab-head::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  right: -78px;
  top: -118px;
}

.tab-head::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  right: -18px;
  top: -40px;
}

.tab-head-mark {
  position: absolute;
  right: 22px;
  bottom: -23px;
  font-family: var(--font-serif);
  font-size: 92px;
  line-height: 1;
  color: rgba(255, 255, 255, .055);
  pointer-events: none;
}

.tab-head-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tab-kicker {
  margin: 0;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .58);
  text-transform: uppercase;
}

.tab-head-main { position: relative; z-index: 1; margin-top: 12px; }

.tab-head-main h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

.tab-head-main p {
  margin: 7px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .64);
}

.tab-head-rule {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
  opacity: .85;
}

/* ============================================================
   Tab bar
   ============================================================ */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 0 12px env(safe-area-inset-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, .97);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 28px rgba(20, 40, 30, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  z-index: 50;
}

.tab {
  position: relative;
  flex: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #93A097;
  transition: color .16s ease;
}

.tab-ico { position: relative; display: flex; }

.tab-label { font-size: 10px; font-weight: 550; letter-spacing: .03em; }

.tab.is-active { color: var(--green-700); }
.tab.is-active .tab-label { font-weight: 750; }

.tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
}

.tab-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  border: 1.5px solid #fff;
  color: #fff;
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-style: normal;
}

/* ============================================================
   Auth
   ============================================================ */

.auth-screen { background: var(--paper); }

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 424px;
  padding: 24px 24px 30px;
  color: #fff;
  background:
    radial-gradient(420px 300px at 86% 8%, rgba(201, 164, 92, .14), transparent 70%),
    linear-gradient(156deg, #0D6647 0%, #0B5A3C 46%, #063C29 100%);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 82%);
  pointer-events: none;
}

.auth-watermark {
  position: absolute;
  right: -12px;
  bottom: -44px;
  font-family: var(--font-serif);
  font-size: 250px;
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.seal-mark {
  display: grid;
  place-items: center;
  width: var(--seal-size, 46px);
  height: var(--seal-size, 46px);
  border-radius: calc(var(--seal-size, 46px) * .32);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #F1E4C8;
  flex: 0 0 auto;
}

.auth-brand-text { display: flex; flex-direction: column; gap: 3px; }
.auth-brand-text strong { font-size: 11.5px; letter-spacing: .06em; font-weight: 650; color: rgba(255, 255, 255, .92); }
.auth-brand-text span { font-family: var(--font-num); font-size: 8.5px; letter-spacing: .12em; color: rgba(255, 255, 255, .46); }

.auth-hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  max-width: 230px;
}

.auth-serial {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .9;
}

.auth-hero-copy h1 {
  margin: 0 0 11px;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: .04em;
  font-weight: 700;
}

.auth-hero-copy p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .62);
}

.auth-orbits {
  position: absolute;
  right: -36px;
  top: 96px;
  width: 190px;
  height: 190px;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: .75;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .11);
}

.orbit--1 { inset: 0; }
.orbit--2 { inset: 26px; border-style: dashed; border-color: rgba(201, 164, 92, .24); }
.orbit-core { transform: translateY(-2px); }

.auth-facts {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 260px;
}

.auth-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, .62);
}

.auth-facts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.auth-issuer {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  font-size: 8.5px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .38);
}

.auth-panel {
  position: relative;
  z-index: 2;
  margin-top: -26px;
  padding: 0 16px 26px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  padding: 20px 18px 17px;
  box-shadow: 0 18px 40px rgba(10, 38, 26, .13);
}

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

.auth-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.auth-card-head span {
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted-2);
}

.auth-lead {
  margin: 8px 0 16px;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
}

.auth-agree { margin-bottom: 15px; }

.auth-legal {
  margin: 13px 0 0;
  text-align: center;
  font-size: 8.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.auth-decline { margin-top: 9px; }

.auth-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 8.5px;
  color: var(--muted-2);
}

.decline-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  animation: riseIn .25s ease both;
}

.decline-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7C551A;
}

.decline-box p {
  margin: 7px 0 10px;
  font-size: 9.5px;
  line-height: 1.7;
  color: #84642F;
}

.decline-box .btn { width: 100%; }

/* ============================================================
   Phone binding
   ============================================================ */

.phone-screen { background: var(--paper); }

.phone-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 24px 8px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted-2);
  letter-spacing: .03em;
}

.step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 9px;
  font-style: normal;
  color: var(--muted-2);
}

.step.is-on { color: var(--green-700); font-weight: 650; }

.step.is-on i {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step-line {
  width: 34px;
  height: 1px;
  background: var(--line);
  margin: 0 6px 16px;
}

.step-line.is-on { background: var(--green-line); }

.phone-body { padding: 8px 20px 30px; }

.phone-illustration {
  position: relative;
  height: 154px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.phone-halo {
  position: absolute;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #E2F5E9, #F4F8F2 68%);
  border: 1px solid var(--green-line);
}

.phone-halo::after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px dashed var(--green-line);
}

.phone-device {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 92px;
  border-radius: 15px;
  background: #fff;
  border: 1.5px solid var(--green-line);
  box-shadow: 0 12px 26px rgba(11, 90, 60, .1);
  display: grid;
  place-items: center;
  color: var(--green-700);
}

.phone-device::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-line);
}

.phone-illustration.is-done .phone-halo { background: radial-gradient(circle at 42% 36%, #DDF4E6, #F1F8F3 70%); }

.phone-bubble {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 12px rgba(20, 45, 32, .08);
  color: var(--green-700);
}

.phone-bubble--a { top: 28px; right: 72px; }
.phone-bubble--b { bottom: 26px; left: 76px; color: var(--gold); }

.phone-copy { text-align: left; padding: 4px 2px 16px; }

.phone-copy h1 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -.02em;
}

.phone-copy > p:last-child {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.phone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.phone-mask-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mask-label { font-size: 10.5px; color: var(--muted); }

.phone-mask {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--ink);
}

.phone-mask-row .status-chip { margin-left: 2px; }

.card-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.card-note .ico { margin-top: 1px; flex: 0 0 auto; }

.phone-preview {
  display: flex;
  align-items: center;
  gap: 11px;
}

.phone-preview-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
}

.phone-preview > div { display: flex; flex-direction: column; gap: 2px; }
.phone-preview span:not(.phone-preview-ico):not(.preview-badge) { font-size: 9.5px; color: var(--muted-2); }
.phone-preview strong { font-family: var(--font-num); font-size: 16px; letter-spacing: .06em; }
.preview-badge { margin-left: auto; font-size: 8.5px; color: var(--green-700); background: var(--green-soft); padding: 3px 7px; border-radius: 999px; }

.error-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--red-soft);
  border: 1px solid #EFD3CF;
}

.error-card-ico { color: var(--red); flex: 0 0 auto; margin-top: 1px; }
.error-card strong { display: block; font-size: 11px; color: #8D3636; }
.error-card p { margin: 4px 0 0; font-size: 9.5px; line-height: 1.65; color: #9C5B5B; }
.error-card .btn { margin-left: auto; flex: 0 0 auto; }

.error-card--page { margin: 4px 0 0; padding: 16px; align-items: center; }
.error-card--page .btn { margin-left: 0; }

.phone-foot { margin: 13px 0 0; text-align: center; font-size: 8.5px; color: var(--muted-2); line-height: 1.6; }

/* ============================================================
   Realname form
   ============================================================ */

.photo-drop {
  width: 100%;
  min-height: 136px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #F8FAF7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  color: var(--muted);
  transition: border-color .15s ease, background .15s ease;
}

.photo-drop:hover { border-color: var(--green); background: #FBFDFB; }
.photo-drop.is-error { border-color: var(--red); background: #FFFAFA; }

.photo-drop-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.photo-drop strong { font-size: 12px; color: var(--ink-2); }
.photo-drop > span:last-child { font-size: 9.5px; color: var(--muted-2); }

.photo-result { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }

.photo-real {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  object-fit: cover;
  background: #EEF2EE;
}

.photo-option .photo-real { aspect-ratio: 220 / 150; max-height: none; }

.id-photo { position: relative; aspect-ratio: 220 / 150; background: #D9D3C5; overflow: hidden; }
.id-photo svg { width: 100%; height: 100%; display: block; }
.id-photo-tag {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 8px;
  font-weight: 700;
  color: #4C4A3F;
  background: rgba(255, 255, 255, .72);
  border-radius: 4px;
  padding: 2px 5px;
  backdrop-filter: blur(4px);
}

.photo-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 9.5px;
  color: var(--green-700);
}

.photo-result-bar > span { display: flex; align-items: center; gap: 5px; }
.photo-result-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.photo-result-bar > div { display: flex; gap: 12px; }
.photo-result-bar .text-btn { font-size: 10px; }

.photo-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.photo-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  transition: border-color .15s ease, transform .12s ease;
}

.photo-option:hover { border-color: var(--green); transform: translateY(-1px); }
.photo-option .id-photo { aspect-ratio: 220 / 150; }
.photo-option .id-photo-tag { display: none; }

/* Portrait / child photo */

.portrait-photo {
  position: relative;
  aspect-ratio: 220 / 150;
  background: #E7ECE6;
  overflow: hidden;
}

.portrait-photo svg { width: 100%; height: 100%; display: block; }
.portrait-photo.is-child { background: #EAF3ED; }

.portrait-photo-tag {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 8px;
  font-weight: 700;
  color: #3C574A;
  background: rgba(255, 255, 255, .78);
  border-radius: 4px;
  padding: 2px 5px;
  backdrop-filter: blur(4px);
}

.photo-option .portrait-photo { aspect-ratio: 220 / 150; }
.photo-option .portrait-photo-tag { display: none; }
.photo-option--child { position: relative; }

.photo-option-label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 650;
  backdrop-filter: blur(4px);
}

.photo-drop--child { min-height: 116px; }

/* CTID camera-only sheet */

.camera-sheet { display: flex; flex-direction: column; gap: 12px; }

.camera-preview {
  position: relative;
  padding: 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0F1915;
}

.camera-preview .portrait-photo { border-radius: 9px; }
.camera-preview .portrait-photo-tag { display: none; }

.camera-reticle {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86px;
  height: 104px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 48% / 42%;
  pointer-events: none;
}

.camera-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  font-size: 9.5px;
  line-height: 1.6;
  color: #316E51;
}

.camera-note .ico { margin-top: 1px; flex: 0 0 auto; }

/* ============================================================
   CTID identity verification (per child)
   ============================================================ */

.form-card--ctid {
  background: linear-gradient(180deg, #FCFEFC 0%, #FFFFFF 46%);
  border-color: var(--green-line);
}

.ctid-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 13px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #F5F7F3;
  border: 1px solid var(--line);
}

.ctid-status-row[data-status="passed"] { background: var(--green-soft); border-color: var(--green-line); }
.ctid-status-row[data-status="failed"] { background: var(--red-soft); border-color: #EFD3CF; }
.ctid-status-row[data-status="timeout"] { background: var(--amber-soft); border-color: var(--amber-line); }

.ctid-provider {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 9px;
  line-height: 1.3;
  color: var(--muted-2);
}

.ctid-provider i {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green-700);
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 4px;
  padding: 2px 4px;
  flex: 0 0 auto;
}

.ctid-status-row .status-chip { flex: 0 0 auto; }

.photo-drop--ctid { min-height: 108px; padding: 14px; }
.photo-drop--ctid .photo-drop-ico { width: 38px; height: 38px; margin-bottom: 0; }

.ctid-verify-btn { margin-top: 2px; }
.ctid-retry { margin-top: 2px; }

.ctid-kept-hint {
  margin: 9px 0 0;
  text-align: center;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted-2);
}

.ctid-agree-row { margin-top: 12px; }
.ctid-agree-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 7px 0 10px;
  font-size: 9px;
  line-height: 1.6;
  color: #A06A2B;
}
.ctid-agree-hint .ico { margin-top: 1px; flex: 0 0 auto; }

.ctid-result { border-radius: 12px; padding: 11px 12px; display: flex; gap: 9px; align-items: flex-start; }
.ctid-result--pass { flex-direction: column; gap: 0; background: linear-gradient(155deg, #F4FBF7 0%, #E9F6EF 100%); border: 1px solid var(--green-line); }
.ctid-result--fail { background: var(--red-soft); border: 1px solid #EFD3CF; margin-bottom: 10px; }

.ctid-result-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
  color: var(--red);
}

.ctid-result-body { flex: 1; min-width: 0; }
.ctid-result-body strong { display: block; font-size: 11.5px; color: #8D3636; }
.ctid-result-body p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.6; color: #9C5B5B; }
.ctid-fail-code { display: inline-block; margin-top: 5px; font-family: var(--font-num); font-size: 8.5px; letter-spacing: .03em; color: #A36A6A; }

.ctid-pass-top { display: flex; align-items: flex-start; gap: 8px; }
.ctid-pass-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px rgba(7, 193, 96, .24);
}
.ctid-pass-top > div { flex: 1; min-width: 0; }
.ctid-pass-top strong { display: block; font-size: 11.5px; color: var(--green-700); }
.ctid-pass-top p { margin: 2px 0 0; font-family: var(--font-num); font-size: 8.5px; color: var(--muted-2); }
.ctid-pass-top .status-chip { flex: 0 0 auto; }

.ctid-pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(7, 193, 96, .25);
}
.ctid-pass-grid > div { min-width: 0; }
.ctid-pass-grid span { display: block; font-size: 8px; color: var(--muted-2); }
.ctid-pass-grid strong { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-2); word-break: break-all; }
.ctid-pass-txn { grid-column: 1 / -1; }
.ctid-pass-txn strong { font-size: 10.5px; }

.ctid-per-child {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 10px 0 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  font-size: 8.8px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ctid-per-child .ico { margin-top: 1px; color: var(--green-700); }

.ctid-id-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 9px 0 0;
  font-size: 8.5px;
  line-height: 1.55;
  color: var(--muted-2);
}
.ctid-id-note .ico { margin-top: 1px; flex: 0 0 auto; }


/* ============================================================
   Status pages
   ============================================================ */

.status-page { min-height: 100%; background: var(--paper); }

.status-hero {
  position: relative;
  overflow: hidden;
  padding: 10px 20px 36px;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, #0D6647 0%, #0B5A3C 54%, #073F2B 100%);
}

.status-hero--pending { background: linear-gradient(155deg, #0D6647 0%, #0B5A3C 54%, #073F2B 100%); }
.status-hero--approved { background: linear-gradient(155deg, #0E704D 0%, #0A5E40 50%, #074630 100%); }
.status-hero--reject { background: linear-gradient(155deg, #63302F 0%, #4E2626 56%, #3A1B1B 100%); }
.status-hero--muted { background: linear-gradient(155deg, #38463F 0%, #283730 54%, #1E2B25 100%); }

.status-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  left: 50%;
  top: -176px;
  transform: translateX(-50%);
}

.status-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .08);
  left: 50%;
  top: -122px;
  transform: translateX(-50%);
}

.status-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  margin-bottom: 20px;
}

.status-topbar > span {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .86);
}

.status-topbar .status-chip { margin-left: auto; }

.status-orb {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .19);
  color: #fff;
  backdrop-filter: blur(8px);
}

.status-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .15);
  animation: spinSlow 18s linear infinite;
}

.status-orb--reject { background: rgba(255, 122, 122, .12); border-color: rgba(255, 150, 150, .4); color: #FFC4C4; }

@keyframes spinSlow { to { transform: rotate(360deg); } }

.status-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

.status-hero p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 290px;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
}

.status-hero-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .13);
  font-size: 9px;
  color: rgba(255, 255, 255, .78);
}

.status-hero-chip--red { background: rgba(255, 120, 120, .14); border-color: rgba(255, 150, 150, .26); color: #FFD0D0; }

.status-body { position: relative; z-index: 3; margin-top: -18px; padding: 0 16px 32px; }

.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-card);
}

.status-card--tight { padding: 9px 16px; }

.status-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  font-size: 10px;
  line-height: 1.68;
  color: #3D6C52;
}

.status-tip .ico { margin-top: 1px; flex: 0 0 auto; color: var(--green-700); }
.status-tip.tone-red { background: var(--red-soft); border-color: #EFD3CF; color: #8D3636; }
.status-tip.tone-red .ico { color: var(--red); }
.status-tip.tone-green { background: var(--green-soft); border-color: var(--green-line); }
.status-tip strong { font-weight: 750; }

.status-actions { display: flex; gap: 9px; margin-top: 16px; }
.status-actions .btn { flex: 1; height: 44px; font-size: 12px; padding: 0 10px; }

.status-note {
  margin: 15px 6px 0;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.opinion-block {
  padding: 12px;
  border-radius: 10px;
  background: #FBF6F4;
  border: 1px solid #F0E0DC;
  margin-bottom: 11px;
}

.opinion-block p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: #6E4744;
}

.fix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.fix-list li { display: flex; align-items: flex-start; gap: 10px; }

.fix-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.fix-list strong { display: block; font-size: 11px; color: var(--ink-2); }
.fix-list p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.65; color: var(--muted-2); }

.cooldown-card {
  padding: 14px;
  margin-bottom: 11px;
  border-radius: var(--radius);
  background: #FBF8F1;
  border: 1px solid var(--amber-line);
}

.cooldown-top { display: flex; align-items: center; gap: 7px; color: var(--amber); font-size: 11px; }
.cooldown-card p { margin: 7px 0 4px; font-size: 9.5px; line-height: 1.65; color: #7E693F; }
.cooldown-time { display: block; font-family: var(--font-num); font-size: 20px; letter-spacing: .04em; color: #8A5C13; }

.consent-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  margin: 11px 0;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
}

.consent-line-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.consent-line > div { flex: 1; min-width: 0; }
.consent-line strong { display: block; font-size: 10.5px; color: var(--ink-2); }
.consent-line span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted-2); }

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid #EFD3CF;
  border-radius: 11px;
  background: #FFFBFB;
}

.danger-zone span { font-size: 9.5px; line-height: 1.6; color: #9A6969; }

/* ============================================================
   Timeline
   ============================================================ */

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

.timeline-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding-bottom: 17px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 1px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
}

.timeline-item.is-done .timeline-dot { background: var(--green); border-color: var(--green); }
.timeline-item.is-current .timeline-dot { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201, 164, 92, .12); }
.timeline-item.is-error .timeline-dot { background: var(--red); border-color: var(--red); }
.timeline-item.is-muted .timeline-dot { background: #F4F5F1; }

.timeline-body { flex: 1; min-width: 0; padding-top: 1px; }
.timeline-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.timeline-top strong { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.timeline-time { font-family: var(--font-num); font-size: 9px; color: var(--muted-2); white-space: nowrap; }
.timeline-body p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.65; color: var(--muted-2); }

/* ============================================================
   Demo panel
   ============================================================ */

.demo-panel {
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .5);
}

.demo-panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #A1ACA4;
  margin-bottom: 9px;
}

.demo-panel-head i { width: 4px; height: 4px; border-radius: 50%; background: #C3CCC5; }
.demo-links { display: flex; gap: 7px; flex-wrap: wrap; }

.demo-link {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.demo-link:hover { border-color: var(--green-line); background: #FBFDFA; }
.demo-link.is-ok { color: var(--green-700); }
.demo-link.is-no { color: var(--red); }

.demo-hint { margin: 8px 0 0; font-size: 8.5px; line-height: 1.6; color: var(--muted-2); }

/* ============================================================
   Bindings
   ============================================================ */

.binding-groups { display: flex; flex-direction: column; gap: 22px; }
.binding-group { margin-bottom: 2px; }
.card-stack { display: flex; flex-direction: column; gap: 10px; }

.child-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.child-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
  opacity: .8;
}

.child-card.is-pending::before { background: var(--amber); }
.child-card.is-rejected::before { background: var(--red); }
.child-card.is-unbound::before, .child-card.is-graduated::before { background: var(--line-strong); }

.child-card-top { display: flex; align-items: flex-start; gap: 10px; }

.child-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-700);
  flex: 0 0 auto;
}

.child-avatar.tone-amber { background: var(--amber-soft); color: var(--amber); }
.child-avatar.tone-red { background: var(--red-soft); color: var(--red); }
.child-avatar.tone-muted { background: #F0F2EE; color: var(--muted); }

.child-avatar i {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1px dashed currentColor;
  opacity: .2;
}

.child-main { flex: 1; min-width: 0; }

.child-main h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}

.child-relation {
  font-size: 8px;
  font-weight: 600;
  color: var(--muted-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.child-main p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 8.5px;
  color: var(--red);
}

.child-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F4F0;
}

.card-foot-note { font-size: 8.5px; color: var(--muted-2); font-family: var(--font-num); letter-spacing: .01em; }
.card-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.consent-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--green-line);
  border-radius: 11px;
  background: #FBFDFB;
  text-align: left;
}

.consent-entry:hover { border-color: var(--green); background: #F8FCF9; }

.consent-entry-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.consent-entry-text { flex: 1; min-width: 0; }
.consent-entry-text strong { display: block; font-size: 10.5px; color: var(--ink-2); line-height: 1.5; }
.consent-entry-text span { display: block; margin-top: 3px; font-size: 8.5px; color: var(--muted-2); }
.consent-entry > .ico { color: var(--muted-2); }

.consent-signed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.consent-signed-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.consent-signed > div { flex: 1; min-width: 0; }
.consent-signed strong { display: block; font-size: 11px; color: #2F6B4D; }
.consent-signed p { margin: 3px 0 0; font-size: 8.5px; color: #5C876F; }

/* ============================================================
   Guard page
   ============================================================ */

.guard-page { padding: 42px 8px 30px; text-align: center; }

.guard-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle at 40% 35%, #FDF7E8, #F5EDDC);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  display: grid;
  place-items: center;
  position: relative;
}

.guard-orb::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}

.guard-page h1 {
  margin: 0 0 9px;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.3;
}

.guard-copy { margin: 0 auto; max-width: 290px; font-size: 11px; line-height: 1.8; color: var(--muted); }

.guard-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 8px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 10.5px;
  color: var(--muted);
}

.guard-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guard-rule span { font-family: var(--font-num); font-size: 9px; font-weight: 700; color: var(--gold); padding-top: 2px; }
.guard-rule p { margin: 0; font-size: 10px; line-height: 1.65; color: var(--muted); }
.guard-page .btn { margin-top: 22px; }

/* ============================================================
   Consent page
   ============================================================ */

.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.template-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.template-head h2 { margin: 5px 0 0; font-family: var(--font-serif); font-size: 17px; line-height: 1.4; font-weight: 700; }
.version-chip {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--green-700);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 5px;
  padding: 3px 6px;
  flex: 0 0 auto;
}

.template-meta {
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-num);
  font-size: 8px;
  color: var(--muted-2);
}

.hash-line { word-break: break-all; letter-spacing: .02em; color: var(--muted); }

.template-body { padding-top: 12px; }
.template-body h3 { margin: 13px 0 5px; font-size: 10.5px; font-weight: 750; color: var(--ink-2); }
.template-body p { margin: 0 0 8px; font-size: 10px; line-height: 1.85; color: var(--muted); text-align: justify; }
.template-body .template-lead { color: var(--ink-2); font-size: 10.5px; line-height: 1.8; }

.consent-checks { display: flex; flex-direction: column; gap: 11px; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #FBFCFA;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.consent-check.is-checked { border-color: var(--green-line); background: var(--green-soft); }
.consent-check .check-text { font-size: 10px; line-height: 1.65; color: var(--muted); }
.consent-check.is-checked .check-text { color: #37634C; }

/* 签名入口（授权页）：点击进入独立全屏手写页，不再内嵌画布 */
.signature-entry {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 80px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #FBFCFA;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}

.signature-entry:hover { border-color: var(--green-line); background: #fff; }
.signature-entry:active { transform: scale(.995); }

.signature-entry-glyph {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--green-soft);
  color: var(--green-700);
}

.signature-entry-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.signature-entry-copy strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-2);
}

.signature-entry-copy span { font-size: 9.5px; line-height: 1.55; color: var(--muted-2); }

.signature-entry-arrow { flex: 0 0 auto; display: grid; place-items: center; color: #B9C5BC; }

.signature-entry.is-signed {
  border-style: solid;
  border-color: var(--green-line);
  background: #FCFEFC;
  gap: 12px;
}

.signature-entry.is-signed .signature-entry-copy strong {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--green-700);
}

.signature-thumb {
  flex: 0 0 auto;
  width: 118px;
  height: 74px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
}

.signature-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.signature-state { margin: 8px 0 0; font-size: 8.5px; line-height: 1.6; color: var(--muted-2); }

/* ============================================================
   全屏手写签名页（#/consent/sign）
   ============================================================ */

.screen--sign {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
  touch-action: none;
  overscroll-behavior: none;
  background:
    radial-gradient(120% 62% at 50% -8%, #FFFFFF 0%, #F7F8F3 48%, var(--paper) 100%);
}

.sign-head {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 11px;
}

.sign-head::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.sign-head-titles { flex: 1 1 auto; min-width: 0; text-align: center; }

.sign-head-titles h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .06em;
  color: var(--ink);
}

.sign-head-titles p {
  margin: 2px 0 0;
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted-2);
}

.sign-head-spacer { width: 32px; flex: 0 0 auto; }

.sign-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  padding: 10px 14px 12px;
}

.sign-pad {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid #DFE5DE;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 45, 32, .07), 0 1px 2px rgba(20, 45, 32, .05);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#signature-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  z-index: 2;
}

.sign-placeholder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  z-index: 1;
  transition: opacity .18s ease;
}

.sign-placeholder em {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: .2em;
  text-indent: .2em;
  color: #6F8577;
  white-space: nowrap;
}

.sign-placeholder i {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #9AAEA0;
}

.sign-pad.has-ink .sign-placeholder { opacity: 0; }

.sign-baseline {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C3CFC6 9%, #C3CFC6 91%, transparent);
  pointer-events: none;
  z-index: 1;
}

.sign-pad-note {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-family: var(--font-num);
  font-size: 7.5px;
  letter-spacing: .18em;
  color: #AEBDB2;
  pointer-events: none;
  z-index: 1;
}

.sign-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 26px rgba(20, 45, 32, .05);
}

.sign-foot .btn { height: 48px; border-radius: 13px; }
.sign-clear { flex: 0 0 96px; }
.sign-confirm { flex: 1 1 auto; font-size: 14.5px; letter-spacing: .04em; }

/* ============================================================
   Alerts
   ============================================================ */

.alerts-body { padding-top: 12px; }

.service-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}

.service-banner.is-bound { background: var(--green-soft); border-color: var(--green-line); }

.service-banner-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.service-banner.is-bound .service-banner-ico { color: var(--green-700); }
.service-banner > div { flex: 1; min-width: 0; }
.service-banner strong { display: block; font-size: 10px; color: #76551F; line-height: 1.45; }
.service-banner.is-bound strong { color: #2F6B4D; }
.service-banner p { margin: 2px 0 0; font-size: 8.5px; line-height: 1.55; color: #9A7B46; }
.service-banner.is-bound p { color: #5C876F; }
.service-banner .text-btn { color: var(--amber); font-size: 9.5px; }

.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0 10px; }

.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.chip.is-active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; box-shadow: 0 5px 12px rgba(11, 90, 60, .16); }

.filter-note { font-family: var(--font-num); font-size: 8.5px; color: var(--muted-2); white-space: nowrap; }

.degrade-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0 0 10px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.degrade-note .ico { margin-top: 1px; flex: 0 0 auto; }

.alert-list { display: flex; flex-direction: column; gap: 9px; }

.alert-card {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px 13px 12px 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .15s ease, transform .12s ease;
}

.alert-card:hover { border-color: #CBD8CE; transform: translateY(-1px); }
.alert-card.is-unread { border-color: #D9E8DE; background: linear-gradient(180deg, #FFFFFF, #FCFEFC); }

.alert-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line-strong);
}

.alert-card.is-unread .alert-rail { background: var(--green); }

.alert-card-top { display: flex; align-items: center; gap: 8px; }
.alert-time { margin-left: auto; font-family: var(--font-num); font-size: 8.5px; color: var(--muted-2); letter-spacing: .02em; }

.unread-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2.5px rgba(7, 193, 96, .12);
}

.alert-card h3 { margin: 8px 0 0; font-size: 13.5px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }

.alert-address {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 5px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted);
}

.alert-address .ico { margin-top: 1px; flex: 0 0 auto; }

.alert-card-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #F1F4F0;
}

.alert-status {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 650;
}

.alert-status.is-live { background: var(--amber-soft); color: var(--amber); }
.alert-child { font-size: 8.5px; color: var(--muted-2); }
.alert-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; color: var(--muted); }

.skeleton-list { display: flex; flex-direction: column; gap: 9px; }

.skeleton-card {
  position: relative;
  overflow: hidden;
  height: 114px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.sk {
  display: block;
  border-radius: 4px;
  background: #EEF1ED;
  position: relative;
  overflow: hidden;
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.sk--line-sm { width: 52px; height: 8px; }
.sk--title { width: 62%; height: 14px; margin-top: 12px; }
.sk--line { width: 86%; height: 8px; margin-top: 9px; }
.sk--foot { width: 40%; height: 8px; margin-top: 15px; }

/* ============================================================
   Alert detail
   ============================================================ */

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 28px;
  color: #fff;
  background: linear-gradient(152deg, #143D2E 0%, #0B2F22 60%, #07251A 100%);
}

.detail-hero::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  right: -86px;
  top: -110px;
}

.detail-hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-hero .level-tag--suspect { background: rgba(214, 158, 62, .18); border-color: rgba(240, 196, 120, .34); color: #FFDB9E; }
.detail-time { font-family: var(--font-num); font-size: 8.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .5); }

.detail-hero h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0 7px;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.detail-hero p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: 9.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .55);
}

.detail-hero p .ico { margin-top: 1px; flex: 0 0 auto; }

.detail-body { margin-top: -14px; position: relative; z-index: 2; }

.detail-scene {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-card);
}

.scene-art { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #14201C; }
.scene-art svg { width: 100%; height: 100%; display: block; }

.scene-mask {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(8, 20, 15, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .65);
  font-size: 7.5px;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}

.scene-mask i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.detail-scene-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 8px 3px 0;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.detail-scene-note .ico { margin-top: 1px; flex: 0 0 auto; }

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-card);
}

.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  margin-bottom: 14px;
}

.privacy-ico { color: var(--green-700); flex: 0 0 auto; margin-top: 1px; }
.privacy-card strong { font-size: 10.5px; color: #2F6B4D; }
.privacy-card p { margin: 4px 0 0; font-size: 9px; line-height: 1.7; color: #5C876F; }

.detail-actions { display: flex; gap: 9px; }
.detail-actions .btn { flex: 1; height: 44px; font-size: 12px; }

.denied-card {
  margin: 34px 4px 0;
  padding: 28px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.denied-ico {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.denied-card h2 { margin: 0 0 7px; font-family: var(--font-serif); font-size: 20px; }
.denied-card p { margin: 0 0 18px; font-size: 10.5px; line-height: 1.75; color: var(--muted); }

/* ============================================================
   Consent management
   ============================================================ */

.update-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}

.update-ico { color: var(--amber); flex: 0 0 auto; margin-top: 1px; }
.update-banner > div { flex: 1; min-width: 0; }
.update-banner strong { display: block; font-size: 10.5px; color: #76551F; }
.update-banner p { margin: 3px 0 0; font-size: 9px; line-height: 1.65; color: #997A46; }
.update-banner .text-btn { color: var(--amber); }

.protocol-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
}

.protocol-strip-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.protocol-strip > div { flex: 1; min-width: 0; }
.protocol-strip strong { display: block; font-size: 10px; color: var(--ink-2); }
.protocol-strip span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }

.consent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.consent-card.is-revoked { background: #FCFCFB; }

.consent-card-top { display: flex; align-items: flex-start; gap: 10px; }
.consent-card-main { flex: 1; min-width: 0; }
.consent-card-main h3 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 750; }
.consent-card-main p { margin: 4px 0 0; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.consent-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #F8FAF7;
  border: 1px solid #EEF2ED;
}

.consent-facts > div:nth-child(3) { grid-column: 1 / -1; }
.consent-facts span { display: block; font-size: 8px; color: var(--muted-2); }
.consent-facts strong { display: block; margin-top: 2px; font-size: 10px; font-weight: 650; color: var(--ink-2); }
.consent-facts strong.hash-short { font-size: 8.5px; color: var(--muted); word-break: break-all; }

.consent-revoked-note,
.consent-outdated-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 8.5px;
  line-height: 1.6;
}

.consent-revoked-note { background: var(--red-soft); color: #8D3636; }
.consent-outdated-note { background: var(--amber-soft); color: #7C551A; }
.consent-revoked-note .ico, .consent-outdated-note .ico { margin-top: 1px; flex: 0 0 auto; }

.consent-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #F1F4F0;
}

.pending-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pending-consent > div { flex: 1; min-width: 0; }
.pending-consent.is-invalid { background: #FCFCFB; }
.pending-consent strong { display: block; font-size: 11px; color: var(--ink-2); }
.pending-consent p { margin: 3px 0 0; font-size: 8.5px; color: var(--muted-2); }

.empty-inline {
  padding: 14px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .55);
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-2);
  text-align: center;
}

.history-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border-bottom: 1px solid #F1F4F0;
}

.history-row:last-child { border-bottom: 0; }
.history-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: 0 0 auto; }
.history-row > div { flex: 1; min-width: 0; }
.history-row strong { display: block; font-size: 10.5px; color: var(--ink-2); }
.history-row span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }

/* ============================================================
   Me
   ============================================================ */

/* 「我的」头部：单屏高度控制在 ~185px（390×844 约 22%），
   状态只留一条轻量提示，完整状态与时间交给下方账号资料卡片。 */
.me-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 20px 18px;
  color: #fff;
  background: linear-gradient(150deg, #0D6647 0%, #0B5A3C 50%, #073F2B 100%);
}

.me-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09);
  right: -92px;
  top: -130px;
}

.me-hero::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -52px;
  font-family: var(--font-serif);
  font-size: 170px;
  line-height: 1;
  color: rgba(255, 255, 255, .04);
}

.me-hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 轻量状态提示：文字本身说明状态，圆点只做辅助色，不单靠颜色传达。 */
.me-verify-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
}

.me-verify-note i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); flex: 0 0 auto; }
.me-verify-note.is-approved i { background: #7FE0AE; }
.me-verify-note.is-pending i { background: #EBC98A; }
.me-verify-note.is-rejected i { background: #F0A9A2; }
.me-verify-note.is-none i { background: rgba(255, 255, 255, .4); }

.me-profile { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 15px; }

.me-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 23px;
  color: #F2E5C9;
  flex: 0 0 auto;
}

.me-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid #0B5A3C;
}

.me-name h1 { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.25; letter-spacing: .02em; }
.me-name p { margin: 4px 0 0; font-family: var(--font-num); font-size: 9.5px; letter-spacing: .03em; color: rgba(255, 255, 255, .56); }

.me-stats {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 15px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.me-stats > div { flex: 1; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.me-stats > div:last-child { border-right: 0; }
.me-stats strong {
  display: block;
  font-family: var(--font-num);
  font-size: 19px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
/* 第三项是文字状态，压到 12px 并降低对比，视觉权重明确低于前两个数字。 */
.me-stats strong.is-word { font-size: 12px; line-height: 22px; letter-spacing: .16em; font-weight: 600; color: rgba(198, 233, 214, .82); }
.me-stats strong.is-word.is-off { color: rgba(239, 215, 172, .82); letter-spacing: .16em; }
.me-stats span { display: block; margin-top: 1px; font-size: 8.5px; line-height: 1.35; color: rgba(255, 255, 255, .5); }

.verify-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 13px;
  box-shadow: var(--shadow-card);
}

.verify-card.is-approved { border-color: var(--green-line); }

.verify-card-top { display: flex; align-items: flex-start; gap: 10px; }

.verify-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.verify-card-top > div { flex: 1; min-width: 0; }
.verify-card-top strong { display: block; font-size: 11.5px; color: var(--ink-2); }
.verify-card-top p { margin: 3px 0 0; font-size: 9px; line-height: 1.6; color: var(--muted-2); }

.verify-remark {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 9px 0 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: var(--red-soft);
  font-size: 8.5px;
  line-height: 1.6;
  color: #8D3636;
}

.verify-remark .ico { margin-top: 1px; flex: 0 0 auto; }

.verify-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #F1F4F0;
  font-size: 8.5px;
  color: var(--muted-2);
}

.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.menu-card--plain { box-shadow: none; }

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #F1F4F0;
  background: #fff;
  text-align: left;
}

.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: #FBFCFA; }

.menu-ico {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.menu-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--red);
  border: 1.5px solid #fff;
  color: #fff;
  font-family: var(--font-num);
  font-size: 7.5px;
  font-style: normal;
  display: grid;
  place-items: center;
}

.menu-label { flex: 1; min-width: 0; }
.menu-label strong { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.menu-label span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }
.menu-row > .ico { color: #B4BEB7; }
.menu-row--danger .menu-ico { background: var(--red-soft); color: var(--red); }
.menu-row--danger .menu-label strong { color: var(--red); }

.about-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 0;
  font-family: var(--font-num);
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: .03em;
}

/* ============================================================
   Account
   ============================================================ */

.danger-card {
  background: #FFFDFC;
  border: 1px solid #EFD9D5;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 15px;
}

.danger-card-head { display: flex; align-items: flex-start; gap: 9px; }
.danger-card-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.danger-card-head strong { display: block; font-size: 11.5px; color: #8D3636; }
.danger-card-head p { margin: 3px 0 0; font-size: 9px; line-height: 1.6; color: #A06B6B; }
.danger-card .btn { margin-top: 12px; }

.danger-hint { margin: 8px 0 0; text-align: center; font-size: 8.5px; color: #AD8484; }

.accepted-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.accepted-ico {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.accepted-box strong { font-size: 10.5px; color: #2F6B4D; }
.accepted-box p { margin: 3px 0 0; font-size: 8.5px; line-height: 1.6; color: #5C876F; }
.accepted-box p .mono { font-size: 9px; }
.accepted-note { opacity: .8; }

/* ============================================================
   Sheet
   ============================================================ */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.sheet-layer.is-open { pointer-events: auto; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 20, .46);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px rgba(9, 38, 25, .22);
  display: flex;
  flex-direction: column;
  animation: sheetUp .3s cubic-bezier(.2, .82, .24, 1) both;
  overflow: hidden;
}

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-grip { width: 36px; height: 4px; border-radius: 3px; background: #E1E6E0; margin: 9px auto 2px; flex: 0 0 auto; }

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  flex: 0 0 auto;
}

.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.sheet-head p { margin: 4px 0 0; font-size: 9.5px; color: var(--muted-2); line-height: 1.5; }

.sheet--danger .sheet-head h2 { color: var(--red); }
.sheet--danger .sheet-grip { background: #EED5D2; }

.sheet-close {
  margin-left: auto;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 0;
  background: #F2F5F1;
  color: #8C9A91;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sheet-body { padding: 0 18px 18px; overflow-y: auto; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-foot {
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #F0F3EF;
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  background: #fff;
}

.sheet-foot .btn { flex: 1; height: 46px; }

/* Demo sheet */

.demo-sheet { padding-bottom: 4px; }

.demo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.demo-summary > div { background: #FBFCFA; padding: 9px 7px; text-align: center; }
.demo-summary span { display: block; font-size: 7.5px; color: var(--muted-2); }
.demo-summary strong { display: block; margin-top: 3px; font-size: 9.5px; color: var(--ink-2); }

.demo-group { margin-bottom: 16px; }
.demo-group-title { margin-bottom: 7px; font-size: 9.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }

.demo-chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.demo-chip-row::-webkit-scrollbar { display: none; }
.demo-chip-row--wrap { flex-wrap: wrap; overflow: visible; }

.demo-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.demo-chip.is-active {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-700);
  box-shadow: 0 0 0 2px rgba(7, 193, 96, .05);
}

.demo-tip {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.demo-tip .ico { margin-top: 1px; flex: 0 0 auto; }

/* Pickers */

.picker-list { display: flex; flex-direction: column; }

.picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid #F3F5F2;
  background: none;
  text-align: left;
}

.picker-item:last-child { border-bottom: 0; }

.picker-item-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.picker-item-text { flex: 1; min-width: 0; }
.picker-item-text strong { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-item-text span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }
.picker-check { color: var(--green); opacity: 0; flex: 0 0 auto; }
.picker-item.is-selected .picker-check { opacity: 1; }
.picker-item.is-selected .picker-item-text strong { color: var(--green-700); }

.picker-note { margin: 10px 0 0; font-size: 8.5px; line-height: 1.65; color: var(--muted-2); }

.picker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 30px 14px 26px;
  text-align: center;
  color: var(--muted-2);
}

.picker-empty .ico { color: #B6C2B9; }
.picker-empty strong { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.picker-empty p { margin: 0; max-width: 252px; font-size: 9.5px; line-height: 1.7; color: var(--muted-2); }

/* School picker: 区县 → 街镇 → 学校名 */

.school-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--green-line);
  border-radius: 11px;
  background: var(--green-soft);
}

.school-location.is-muted {
  border-color: var(--line);
  background: var(--paper);
}

.school-location-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
}

.school-location-main { min-width: 0; flex: 1; }
.school-location-main strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #2F6B4D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.school-location.is-muted .school-location-main strong { color: var(--muted-2); }
.school-location-main span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.4;
  color: #6E8B7B;
}
.school-location .text-btn { flex: 0 0 auto; font-size: 9px; }

.school-group-current {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.school-search {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 0 2px;
  padding: 2px 0 10px;
  background: linear-gradient(#fff 78%, rgba(255, 255, 255, 0));
}

.school-search-field { position: relative; }

.school-search-input {
  height: 45px;
  padding-left: 38px;
  padding-right: 42px;
  border-radius: 10px;
  background: #FBFCFA;
  font-size: 13px;
}

.school-search-input::placeholder { font-size: 11.5px; }

.school-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #9AA8A0;
  pointer-events: none;
}

.school-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #EDF1EC;
  color: #7C8A82;
  display: grid;
  place-items: center;
}

.school-search-clear[hidden] { display: none; }
.school-search-clear:active { background: #E2E8E0; }

.school-results { display: flex; flex-direction: column; }

.school-group { margin-bottom: 7px; }
.school-group:last-of-type { margin-bottom: 0; }

.school-group-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 1px;
  padding: 9px 2px 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #4C7A63;
}

.school-group-head::before {
  content: "";
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--green);
  opacity: .55;
  margin-right: 4px;
  flex: 0 0 auto;
}

.school-group-head i { font-style: normal; color: #A9B7AE; }
.school-group-head em {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper);
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.school-group .picker-item { padding-left: 2px; padding-right: 2px; }
.school-group .picker-item-text strong { font-size: 12px; }

/* Candidate */

.candidate-intro { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 10px; background: var(--green-soft); border: 1px solid var(--green-line); }
.candidate-ico { color: var(--green-700); flex: 0 0 auto; margin-top: 1px; }
.candidate-intro strong { font-size: 10.5px; color: #2F6B4D; }
.candidate-intro p { margin: 3px 0 0; font-size: 8.5px; line-height: 1.6; color: #5C876F; }

.candidate-info { display: flex; align-items: center; gap: 6px; margin: 11px 2px; font-size: 8.5px; color: var(--muted); }
.candidate-info i { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }

.candidate-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }

.candidate-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #F2F4F1;
  background: #fff;
  text-align: left;
}

.candidate-item:last-child { border-bottom: 0; }
.candidate-item.is-selected { background: var(--green-soft); }

.candidate-radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.candidate-item.is-selected .candidate-radio { background: var(--green); border-color: var(--green); }
.candidate-name { flex: 1; min-width: 0; }
.candidate-name strong { display: block; font-size: 12px; color: var(--ink-2); }
.candidate-name span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }
.candidate-no { font-family: var(--font-num); font-size: 8px; color: var(--muted-2); letter-spacing: .03em; }

/* Danger sheets */

.danger-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 11px;
  background: var(--red-soft);
  border: 1px solid #EFD3CF;
  color: var(--red);
}

.danger-warning > div { flex: 1; }
.danger-warning strong { display: block; font-size: 11px; color: #8D3636; }
.danger-warning p { margin: 4px 0 0; font-size: 9.5px; line-height: 1.7; color: #9C5B5B; }

.danger-list { margin: 12px 0 13px; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.danger-list li { font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.danger-list li::marker { color: var(--red); }

.confirm-check {
  padding: 10px 11px;
  border-radius: 9px;
  background: #FBF7F6;
  border: 1px solid #F0E1DE;
}

.sheet-field { margin: 15px 0 13px; }
.sheet-field-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 650; color: var(--ink-2); }
.sheet-field-label i { font-style: normal; font-weight: 400; color: var(--muted-2); font-size: 8.5px; }

.reason-list { display: flex; flex-direction: column; gap: 2px; }

.reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  font-size: 10.5px;
  color: var(--muted);
  cursor: pointer;
}

.reason-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}

.reason-option input:checked + .reason-radio { border-color: var(--green); }
.reason-option input:checked + .reason-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
}

.reason-option input:checked ~ span:last-child { color: var(--ink-2); font-weight: 600; }

.input--sheet { height: 38px; margin-top: 5px; font-size: 11px; }

/* Legal and template sheets */

.legal-sheet { padding-bottom: 3px; }
.legal-date { margin: 0 0 13px; font-family: var(--font-num); font-size: 8.5px; color: var(--muted-2); }
.legal-sheet h4 { margin: 14px 0 5px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.legal-sheet p { margin: 0 0 6px; font-size: 9.5px; line-height: 1.8; color: var(--muted); text-align: justify; }
.legal-foot { margin-top: 16px !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted-2) !important; }

.template-sheet .template-meta { margin-bottom: 10px; }
.template-sheet h4 { margin: 13px 0 5px; font-size: 10.5px; color: var(--ink-2); }
.template-sheet p { margin: 0 0 7px; font-size: 9.5px; line-height: 1.8; color: var(--muted); }

.contact-card { border: 1px solid var(--line); border-radius: 11px; padding: 5px 12px; }
.contact-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1F4F0; font-size: 10.5px; }
.contact-row:last-child { border-bottom: 0; }
.contact-row span { color: var(--muted); }
.contact-row strong { text-align: right; color: var(--ink-2); font-weight: 650; }

/* Messages */

.message-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.message-item { display: flex; align-items: flex-start; gap: 9px; padding: 12px; background: #fff; }
.message-item.is-unread { background: #FCFEFC; }
.message-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--line-strong); }
.message-dot.tone-green { background: var(--green); }
.message-dot.tone-amber { background: var(--amber); }
.message-item > div { flex: 1; }
.message-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.message-top strong { font-size: 10.5px; color: var(--ink-2); }
.message-top span { font-family: var(--font-num); font-size: 8px; color: var(--muted-2); white-space: nowrap; }
.message-item p { margin: 4px 0 0; font-size: 9.5px; line-height: 1.65; color: var(--muted); }

/* Signature view */

.signature-view .signature-paper {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FBFCFA;
}

.signature-art { width: 100%; height: auto; display: block; }

.signature-img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
}

/* ============================================================
   Toast
   ============================================================ */

.toast-layer {
  position: absolute;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: calc(30px + env(safe-area-inset-top) + 62px) 20px 0;
}

.toast {
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(17, 36, 26, .92);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(8, 30, 19, .24);
  backdrop-filter: blur(8px);
  animation: toastIn .24s cubic-bezier(.2, .8, .3, 1) both;
}

.toast.is-out { animation: toastOut .22s ease both; }
.toast-ico { margin-top: 1px; flex: 0 0 auto; opacity: .85; }
.toast--ok { background: rgba(6, 110, 65, .95); }
.toast--warn { background: rgba(125, 85, 22, .95); }
.toast--error { background: rgba(140, 50, 50, .95); }

@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px); } }

/* ============================================================
   Blocked / login refused
   ============================================================ */

.blocked-view { background: #18231D; }
.blocked-screen { background: #18231D; color: #fff; }

.blocked-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.blocked-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .78); }
.blocked-brand .seal-mark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.blocked-code { font-family: var(--font-num); font-size: 7.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .3); }

.blocked-main { padding: 54px 26px 30px; }

.blocked-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(197, 70, 70, .12);
  border: 1px solid rgba(255, 140, 140, .22);
  color: #FFB8B8;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  position: relative;
}

.blocked-orb::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(255, 150, 150, .14); }

.blocked-main .eyebrow { color: rgba(255, 150, 150, .62); }
.blocked-main h1 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 33px; line-height: 1.25; letter-spacing: -.01em; }
.blocked-copy { margin: 0; max-width: 300px; font-size: 11px; line-height: 1.85; color: rgba(255, 255, 255, .48); }

.blocked-card { margin-top: 24px; padding: 7px 14px; border-radius: 12px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); }
.blocked-card .receipt-row { border-bottom-color: rgba(255, 255, 255, .07); }
.blocked-card .receipt-row > span { color: rgba(255, 255, 255, .4); }
.blocked-card .receipt-row > strong { color: rgba(255, 255, 255, .78); }
.blocked-card .receipt-row > strong.tone-red { color: #FFA9A9; }

.blocked-actions { display: flex; gap: 9px; margin-top: 22px; }
.blocked-actions .btn { flex: 1; height: 44px; font-size: 12px; }
.blocked-actions .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); }
.blocked-actions .btn-green { box-shadow: none; }

.blocked-note { margin: 18px 0 0; font-size: 9px; line-height: 1.7; color: rgba(255, 255, 255, .3); }

.blocked-foot {
  display: flex;
  justify-content: space-between;
  padding: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-num);
  font-size: 8px;
  color: rgba(255, 255, 255, .22);
  letter-spacing: .04em;
}

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  padding: 26px 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, .62);
}

.empty-art { width: 132px; height: 92px; margin: 0 auto 4px; }
.empty-art svg { width: 100%; height: 100%; display: block; }

.empty-state h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.empty-state p { margin: 0 auto; max-width: 270px; font-size: 10px; line-height: 1.7; color: var(--muted-2); }
.empty-state .btn { margin-top: 14px; }

/* ============================================================
   Appeals (R-13)
   ============================================================ */

.appeal-page-notice { margin-bottom: 11px; }

.appeal-list { display: flex; flex-direction: column; gap: 10px; }

.appeal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.appeal-card.is-inflight { border-left: 2.5px solid var(--amber-line); }

.appeal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.appeal-card-no {
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: .03em;
  white-space: nowrap;
}

.appeal-card h3 {
  margin: 9px 0 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.appeal-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FBFCFA;
}

.appeal-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.appeal-facts > div:last-child { border-bottom: 0; }
.appeal-facts span { flex: 0 0 auto; font-size: 9px; color: var(--muted); }
.appeal-facts strong { font-size: 9.5px; font-weight: 650; color: var(--ink-2); text-align: right; }
.appeal-facts strong.mono { font-size: 9px; }

.appeal-reason,
.appeal-result {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #F7F8F5;
  border: 1px solid var(--line);
}

.appeal-reason > span,
.appeal-result > span {
  display: block;
  margin-bottom: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted-2);
}

.appeal-reason p,
.appeal-result p { margin: 0; font-size: 10px; line-height: 1.7; color: var(--ink-2); word-break: break-word; }

.appeal-result { background: var(--green-soft); border-color: var(--green-line); }
.appeal-result > span { color: #5C876F; }
.appeal-result p { color: #2F6B4D; }

.appeal-card .demo-panel { margin-top: 11px; }

.appeal-summary-card .receipt-row > strong { font-size: 10.5px; }

.textarea {
  height: auto;
  min-height: 118px;
  padding: 11px 13px;
  line-height: 1.7;
  resize: vertical;
}

.appeal-reason-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: var(--muted-2);
}

.appeal-reason-foot .mono { font-size: 9px; }

.appeal-entry .section-head { margin-bottom: 10px; }

.appeal-entry-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border-radius: 11px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}

.appeal-entry-note.is-muted { background: #F4F5F1; border-color: var(--line); }
.appeal-entry-note > div { flex: 1; min-width: 0; }
.appeal-entry-note strong { display: block; font-size: 10.5px; color: #7C551A; }
.appeal-entry-note.is-muted strong { color: var(--muted); }
.appeal-entry-note p { margin: 3px 0 0; font-size: 9px; line-height: 1.65; color: #8A6A38; }
.appeal-entry-note.is-muted p { color: var(--muted-2); }
.appeal-entry-note .text-btn { flex: 0 0 auto; margin-top: 1px; }

.appeal-entry-ico { flex: 0 0 auto; margin-top: 1px; color: var(--amber); }
.appeal-entry-note.is-muted .appeal-entry-ico { color: var(--muted-2); }

.appeal-entry-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 9px 1px 0;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.appeal-entry-hint .ico { margin-top: 1px; flex: 0 0 auto; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .stage-notes { display: none; }
}

@media (max-width: 600px) {
  body { background: var(--paper); }
  .stage { background: var(--paper); }
  .stage::before { display: none; }
  .stage-notes { display: none; }
  .device-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--paper);
  }
  .device-shell::after { display: none; }
  .device-key { display: none; }
  .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  .statusbar { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .stage { height: 100vh; height: 100dvh; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea,
  select { font-size: 16px; }
}

@media (max-height: 800px) and (min-width: 601px) {
  .stage-notes { display: none; }
}

@media (max-height: 760px) {
  .auth-hero { min-height: 386px; padding-top: 20px; }
  .auth-hero-copy { margin-top: 28px; }
  .auth-hero-copy h1 { font-size: 37px; }
  .auth-orbits { width: 160px; height: 160px; top: 88px; }
  .auth-facts { margin-top: 18px; }
  .auth-panel { margin-top: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   会议纪要对齐 · 县区 / 账号级 CTID / 人工审核 / 大讲堂
   ============================================================ */

/* 5 个 Tab：在 390px 下保持可点、不换行 */
.tabbar { padding: 0 8px; }
.tab { padding: 0 2px; }
.tab-label { font-size: 9.5px; letter-spacing: 0; }

/* 账号水印：覆盖在 view 上，不占布局、不挡点击 */
.account-watermark {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
}
.account-watermark.is-with-tab { bottom: calc(70px + env(safe-area-inset-bottom)); }
.account-watermark-grid {
  position: absolute;
  inset: -14%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 10px;
  align-content: space-around;
  justify-items: center;
  transform: rotate(-24deg);
}
.account-watermark span {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* 县区选择 */
.county-screen {
  background:
    radial-gradient(460px 320px at 100% 0%, rgba(7, 193, 96, .1), transparent 66%),
    linear-gradient(180deg, #F7F9F4 0%, #FFFFFF 42%);
}
.county-body { padding: 8px 20px 30px; }
.county-hero { position: relative; padding: 16px 0 20px; }
.county-hero-mark {
  position: absolute;
  right: 2px;
  top: 6px;
  font-family: var(--font-serif);
  font-size: 76px;
  line-height: 1;
  color: rgba(11, 90, 60, .07);
  pointer-events: none;
}
.county-hero .eyebrow { margin: 0 0 8px; font-size: 9px; letter-spacing: .16em; color: var(--green-700); font-weight: 700; }
.county-hero h1 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.county-hero > p:last-child { margin: 0; max-width: 290px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.county-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.county-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #FFFFFF;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.county-card:active { transform: scale(.992); }
.county-card.is-selected { border-color: var(--green); background: linear-gradient(180deg, #F7FCF9, #FFFFFF); }
.county-card-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #F0F5EF;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  border: 1px solid #E5EDE3;
}
.county-card.is-selected .county-card-mark { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.county-card-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.county-card-body strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.county-card-body span { font-size: 9.5px; color: var(--muted-2); line-height: 1.5; }
.county-card-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: transparent;
  display: grid;
  place-items: center;
}
.county-card.is-selected .county-card-check { background: var(--green); border-color: var(--green); color: #fff; }

/* 账号级 CTID */
.guardian-ctid-card { border-color: #DDE9DF; }
.guardian-ctid-card.is-passed { border-color: var(--green-line); background: linear-gradient(180deg, #F7FCF8, #fff 70%); }
.guardian-ctid-card.is-failed, .guardian-ctid-card.is-timeout { border-color: #EFD3CF; }
.guardian-ctid-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.guardian-ctid-provider { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); }
.guardian-ctid-provider i {
  font-style: normal;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  color: var(--green-deep);
  background: #EAF3EA;
  border: 1px solid #DCE8DC;
  border-radius: 5px;
  padding: 3px 5px;
}
.guardian-verified-compact { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #F6FAF5; border: 1px solid #E1EDE1; }
.guardian-verified-ico {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: #fff;
}
.guardian-verified-compact strong { display: block; font-size: 11.5px; color: var(--ink-2); }
.guardian-verified-compact p { margin: 3px 0 0; font-size: 9px; color: var(--muted-2); line-height: 1.55; }
.guardian-verified-compact .guardian-verified-note { color: var(--green-700); }
.guardian-ctid-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10.5px;
}
.guardian-ctid-fail { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #FFF7F6; border: 1px solid #F4DCD9; }
.guardian-ctid-fail .guardian-verified-ico { background: var(--red); }
.guardian-ctid-fail strong { display: block; font-size: 11px; color: var(--red-dark); }
.guardian-ctid-fail p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.55; color: var(--red); }
.guardian-ctid-empty { margin: 0; padding: 12px; border-radius: 12px; background: #F7F8F5; font-size: 10px; line-height: 1.7; color: var(--muted); }
.guardian-ctid-btn { margin-top: 12px; height: 44px; }
.guardian-verified-hint { display: flex; align-items: flex-start; gap: 5px; margin: 10px 0 0; font-size: 9px; line-height: 1.55; color: var(--green-700); }
.guardian-ctid-hint { display: flex; align-items: flex-start; gap: 5px; margin: 10px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--muted-2); }

/* 绑定页紧凑监护人卡 */
.guardian-verified-card.is-blocked { border-color: #EFDCC4; background: #FFFDF8; }
.guardian-verified-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: #F6FAF5; border: 1px solid #E1EDE1; }
.guardian-verified-copy { flex: 1; min-width: 0; }
.guardian-verified-copy strong { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.guardian-verified-copy p { margin: 3px 0 0; font-size: 9px; line-height: 1.5; color: var(--muted-2); }
.guardian-verified-hint { display: flex; align-items: flex-start; gap: 5px; }
.guardian-blocked-row { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--amber-soft); border: 1px solid var(--amber-line); margin-bottom: 10px; }
.guardian-blocked-row .guardian-verified-ico { background: var(--amber); }
.guardian-blocked-row strong { display: block; font-size: 11px; color: var(--amber); }
.guardian-blocked-row p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.6; color: #8C6528; }

.county-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #F1F6EF;
  border: 1px solid #E2EADF;
  font-size: 9px;
  color: var(--green-700);
}

/* 草稿提示 */
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 11px;
  border: 1px dashed #CFE1D0;
  border-radius: 10px;
  background: #F8FBF6;
  font-size: 9.5px;
  color: var(--green-700);
}
.draft-banner-text { display: inline-flex; align-items: center; gap: 5px; }
.draft-banner .text-btn { font-size: 9px; }
.draft-sheet-body { padding-top: 2px; }
.draft-sheet-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #F0F5EF; color: var(--green-deep); margin-bottom: 10px; }
.draft-sheet-body p { margin: 0 0 10px; font-size: 10.5px; line-height: 1.75; color: var(--muted); }
.draft-sheet-list { margin: 0; padding-left: 16px; font-size: 9.5px; line-height: 1.8; color: var(--muted-2); }

/* 学生表单：人工审核 */
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field-row .field { min-width: 0; }
.manual-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFA;
  text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.manual-toggle.is-on { border-color: #E8C98E; background: #FFFCF5; }
.manual-toggle-ico { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: #F0F4EE; color: var(--green-deep); }
.manual-toggle.is-on .manual-toggle-ico { background: var(--amber-soft); color: var(--amber); }
.manual-toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.manual-toggle-text strong { font-size: 10.5px; font-weight: 650; color: var(--ink-2); }
.manual-toggle-text span { font-size: 8.5px; line-height: 1.5; color: var(--muted-2); }
.switch {
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #DCE2DC;
  border: 1px solid #D2D9D1;
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}
.switch i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 45, 32, .2);
  transition: transform .18s ease;
}
.switch.is-on { background: var(--amber); border-color: var(--amber); }
.switch.is-on i { transform: translateX(14px); }

.manual-review-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #EADBBB;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFFDF8, #FFFFFF 42%);
}
.manual-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.manual-review-head > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.manual-review-lead { margin: 0 0 13px; font-size: 9px; line-height: 1.65; color: var(--muted-2); }
.manual-review-box .field:last-of-type { margin-bottom: 4px; }
.age-gap-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 8px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #F7F8F5;
}
.age-gap-note.tone-red { border-color: #F0D4D0; background: #FFF7F6; }
.age-gap-note.tone-green { border-color: #D8E9D8; background: #F6FAF5; }
.age-gap-ico { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
.age-gap-note.tone-red .age-gap-ico { color: var(--red); }
.age-gap-note.tone-green .age-gap-ico { color: var(--green-700); }
.age-gap-note strong { display: block; font-size: 10.5px; color: var(--ink-2); }
.age-gap-note.tone-red strong { color: var(--red-dark); }
.age-gap-note.tone-green strong { color: var(--green-700); }
.age-gap-note p { margin: 2px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--muted-2); }
.age-gap-check { margin: 2px 0 8px; }
.manual-submit-hint { margin: 4px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--muted-2); }
.sla-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #FBF3E4;
  border: 1px solid var(--amber-line);
  color: var(--amber);
  font-size: 8px;
  font-weight: 600;
}
.sla-chip.is-over { background: #FCEEEC; border-color: #EFD3CF; color: var(--red); }
.manual-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #F2F5F0;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}
.manual-review-card { border-color: #EADBBB; }
.manual-review-card .section-index { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.manual-review-warn { display: flex; align-items: flex-start; gap: 5px; margin: 9px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--red); }
.consent-pdf-btn { margin-top: 10px; }

/* 服务权益占位 */
.entitlement-card {
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FCFDFB;
  box-shadow: var(--shadow-card);
}
.entitlement-head { display: flex; align-items: center; gap: 7px; }
.entitlement-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #EEF4EC; color: var(--green-deep); }
.entitlement-head strong { flex: 1; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.entitlement-card > p { margin: 7px 0 8px; font-size: 9px; color: var(--muted-2); }
.entitlement-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #F1F4F0; }
.entitlement-foot span { font-size: 8.5px; color: var(--muted-2); }
.entitlement-foot .text-btn { font-size: 8.5px; }

/* 安全大讲堂 */
.lecture-lead { padding: 4px 2px 14px; }
.lecture-lead .eyebrow { margin: 0 0 5px; font-size: 8.5px; letter-spacing: .16em; font-weight: 700; color: var(--green-700); }
.lecture-lead h2 { margin: 0 0 5px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.lecture-lead p:last-child { margin: 0; max-width: 310px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.lecture-list { display: flex; flex-direction: column; gap: 10px; }
.lecture-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, border-color .16s ease;
}
.lecture-card:active { transform: scale(.992); }
.lecture-art {
  position: relative;
  min-height: 104px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  isolation: isolate;
}
.lecture-art--water { background: linear-gradient(145deg, #2E7D66, #16533F); }
.lecture-art--teen { background: linear-gradient(145deg, #C39A55, #8B6120); }
.lecture-art--online { background: linear-gradient(145deg, #647A93, #35485D); }
.lecture-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 20% 10%, rgba(255, 255, 255, .24), transparent 62%);
}
.lecture-art .ico { position: relative; z-index: 1; opacity: .9; }
.lecture-art-num { position: absolute; right: 7px; bottom: 1px; z-index: 1; font-family: var(--font-num); font-size: 32px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .2); }
.lecture-art i { position: absolute; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); }
.lecture-art i:nth-of-type(1) { width: 76px; height: 76px; left: -30px; top: -24px; }
.lecture-art i:nth-of-type(2) { width: 44px; height: 44px; right: -10px; bottom: 16px; }
.lecture-card-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 2px 0; }
.lecture-card-kicker { font-size: 8px; font-weight: 650; letter-spacing: .06em; color: var(--green-700); }
.lecture-card-body strong { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.lecture-card-summary { font-size: 9px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lecture-card-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 8px; color: var(--muted-2); }
.ad-slot {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: repeating-linear-gradient(135deg, #FAFBF8, #FAFBF8 8px, #F6F8F3 8px, #F6F8F3 16px);
}
.ad-slot-label { display: inline-block; font-size: 7.5px; letter-spacing: .12em; color: var(--muted-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 5px; }
.ad-slot strong { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }
.ad-slot p { margin: 4px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--muted-2); }
.lecture-article { padding: 0 0 26px; }
.lecture-article-hero {
  position: relative;
  margin: 12px 16px 0;
  padding: 22px 18px 18px;
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
}
.lecture-article-hero.lecture-art--water { background: linear-gradient(150deg, #2E7D66, #143F31); }
.lecture-article-hero.lecture-art--teen { background: linear-gradient(150deg, #C39A55, #754E15); }
.lecture-article-hero.lecture-art--online { background: linear-gradient(150deg, #647A93, #2B3B4E); }
.lecture-article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 88% 4%, rgba(255, 255, 255, .2), transparent 60%);
}
.lecture-article-mark { position: absolute; right: 16px; top: 18px; opacity: .35; }
.lecture-article-hero .eyebrow { position: relative; z-index: 1; margin: 0 0 9px; font-size: 8.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .72); }
.lecture-article-hero h1 { position: relative; z-index: 1; margin: 0 0 8px; max-width: 250px; font-family: var(--font-serif); font-size: 25px; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; }
.lecture-article-hero > p { position: relative; z-index: 1; margin: 0; max-width: 280px; font-size: 10px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.lecture-article-meta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; margin-top: 13px; font-size: 8.5px; color: rgba(255, 255, 255, .7); }
.lecture-article-body { padding: 18px 20px 0; }
.lecture-section { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #F1F4F0; }
.lecture-section:last-of-type { border-bottom: 0; }
.lecture-section h2 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.lecture-section p { margin: 0; font-size: 11px; line-height: 1.9; color: var(--ink-2); }
.lecture-resource { height: 44px; margin-top: 2px; }
.lecture-disclaimer { display: flex; align-items: flex-start; gap: 5px; margin-top: 10px; font-size: 8.5px; line-height: 1.55; color: var(--muted-2); }

/* 电子授权书 PDF 预览 */
.consent-pdf-wrap { padding-top: 2px; }
.consent-pdf-paper {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 14px;
  border: 1px solid #E7E1D4;
  border-radius: 7px;
  background: linear-gradient(180deg, #FFFEFB, #FFFDF8);
  box-shadow: 0 10px 26px rgba(46, 37, 20, .08);
  font-family: var(--font-serif);
  color: #2C2A24;
}
.consent-pdf-watermark {
  position: absolute;
  inset: -10%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: rotate(-25deg);
  pointer-events: none;
  opacity: .055;
}
.consent-pdf-watermark span { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #1F4B3A; white-space: nowrap; }
.consent-pdf-head { position: relative; display: flex; align-items: flex-start; gap: 9px; padding-bottom: 11px; border-bottom: 2px solid #37483E; }
.consent-pdf-seal { color: var(--green-deep); flex: 0 0 auto; }
.consent-pdf-head > div { flex: 1; min-width: 0; }
.consent-pdf-head p { margin: 1px 0 3px; font-family: var(--font-sans); font-size: 7.5px; letter-spacing: .08em; color: #6F746C; }
.consent-pdf-head h2 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: .02em; }
.consent-pdf-no { font-family: var(--font-num); font-size: 7px; color: #6F746C; white-space: nowrap; padding-top: 2px; }
.consent-pdf-meta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 12px; padding: 11px 0; border-bottom: 1px solid #E9E4D8; }
.consent-pdf-meta div { min-width: 0; }
.consent-pdf-meta span { display: block; font-family: var(--font-sans); font-size: 7px; color: #8A897F; }
.consent-pdf-meta strong { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 8.5px; font-weight: 650; color: #2C2A24; line-height: 1.4; word-break: break-all; }
.consent-pdf-body { position: relative; padding-top: 11px; }
.consent-pdf-lead { margin: 0 0 9px; font-size: 8.5px; line-height: 1.7; color: #55534B; }
.consent-pdf-body h4 { margin: 10px 0 4px; font-size: 9.5px; font-weight: 700; color: #23221D; }
.consent-pdf-body p { margin: 0 0 6px; font-size: 8px; line-height: 1.8; color: #55534B; text-align: justify; }
.consent-pdf-foot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #E9E4D8; }
.consent-pdf-foot > div { min-width: 0; }
.consent-pdf-foot span { display: block; font-family: var(--font-sans); font-size: 7px; color: #8A897F; margin-bottom: 5px; }
.consent-pdf-signature-img { width: 100%; max-height: 54px; object-fit: contain; border-bottom: 1px solid #BFB9AA; }
.consent-pdf-sign-placeholder { display: grid; place-items: center; height: 42px; border-bottom: 1px solid #BFB9AA; font-family: var(--font-sans); font-size: 7.5px; color: #B2AEA2; }
.consent-pdf-stamp strong { display: block; font-family: var(--font-sans); font-size: 8.5px; color: #2C2A24; line-height: 1.45; }
.consent-pdf-stamp small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 6.5px; color: #8A897F; }
.consent-pdf-note { position: relative; margin: 12px 0 0; padding-top: 8px; border-top: 1px dashed #DDD7C9; font-family: var(--font-sans); font-size: 6.5px; line-height: 1.5; color: #8A897F; }
.consent-pdf-print-note { margin: 9px 0 0; text-align: center; font-size: 8px; color: var(--muted-2); }
.consent-pdf-wrap + .consent-pdf-print-note { padding-bottom: 2px; }

@media print {
  body * { visibility: hidden; }
  .consent-pdf-paper, .consent-pdf-paper * { visibility: visible; }
  .sheet-layer,
  .sheet,
  .sheet-body {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .sheet-body { padding: 0 !important; }
  .sheet-head,
  .sheet-foot,
  .sheet-grip,
  .sheet-backdrop { display: none !important; }
  .consent-pdf-paper {
    position: static !important;
    width: 100% !important;
    border: 0;
    box-shadow: none;
  }
  .account-watermark { display: none !important; }
}

.sheet-foot .consent-pdf-print-btn {
  white-space: nowrap;
  font-size: 12.5px;
  padding: 0 10px;
}
