:root {
  /* 亮版 PCB 绿油：背景/按钮可彩色；文字统一墨色 */
  --dxs-ink: #0c3d2e;
  --dxs-ink-soft: rgba(12, 61, 46, 0.62);
  --dxs-on-dark: #ffffff;
  --dxs-navy: #0c3d2e;
  --dxs-navy-deep: #062820;
  --dxs-paper: #eef8f2;
  --dxs-signal: #1ecf8a;
  --dxs-signal-bright: #5dffb0;
  --dxs-seal: #e8a23a;
  --dxs-seal-hover: #f0b45a;
  --dxs-copper: #e8943a;
  --dxs-gold: #f0c84a;
  --dxs-gold-hover: #f5d56a;
  --dxs-cyan: var(--dxs-signal);
  --bg: var(--dxs-paper);
  --card: #ffffff;
  --text: var(--dxs-ink);
  --muted: var(--dxs-ink-soft);
  --primary: var(--dxs-seal);
  --danger: #d94848;
  --line: rgba(12, 61, 46, 0.12);
  --shadow: 0 12px 32px rgba(6, 40, 32, 0.1);
  --dxs-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dxs-radius: 8px;
}

* { box-sizing: border-box; }
html {
  background: var(--dxs-navy-deep);
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(30, 207, 138, 0.28), transparent 55%),
    radial-gradient(80% 50% at 100% 0%, rgba(232, 162, 58, 0.18), transparent 50%),
    linear-gradient(180deg, var(--dxs-navy) 0%, var(--dxs-navy-deep) 28%, var(--dxs-paper) 28%);
  color: var(--text);
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 14px 88px;
}
body.is-report-page #app {
  max-width: 560px;
  width: 100%;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
}
body.is-report-page #reportCard,
#reportCard:has(.report-a4),
body.is-report-page .card:has(.report-a4) {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 12px;
}
body.is-report-page .card > .report-card-head {
  padding: 0 2px 10px;
}
body.is-report-page .report-actions .ghost {
  min-height: 40px;
}
/* 小程序 web-view：隐藏打印等无效能力 */
body.is-mp-webview .report-actions,
body.is-mp-webview #btnPrint {
  display: none !important;
}
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -14px 16px;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dxs-on-dark);
}
.top .brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: inherit; }
.top .logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}
.quota-chip {
  margin-left: auto;
  font-size: 12px;
  color: var(--dxs-on-dark);
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}
.slot {
  border: 1px dashed var(--line);
  border-radius: var(--dxs-radius);
  min-height: 72px;
  padding: 6px 4px;
  font-size: 11px;
  text-align: center;
  background: #fff;
  color: var(--muted);
}
.slot.is-filled {
  border-style: solid;
  border-color: var(--dxs-gold);
  color: var(--dxs-navy);
  font-weight: 600;
}
.wait-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 16, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wait-mask.hidden { display: none; }
.wait-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  max-width: 280px;
}
.wait-title { font-weight: 700; margin: 0 0 8px; }
.shop-soon { width: 100%; margin-top: 10px; opacity: 0.65; cursor: not-allowed; }

.showcase-publish {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--dxs-line, #d8dee9) 80%, transparent);
}
.showcase-ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}
.showcase-ul li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--dxs-line, #d8dee9) 70%, transparent);
}
.showcase-ul strong { font-size: 1.05rem; }
.showcase-price { font-weight: 600; color: var(--text); }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.check-row input { width: auto; }
.history-fold > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}
.report-hero {
  display: none;
}
.report-sec-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  margin-right: 6px;
  padding: 0 4px;
  border: 1px solid var(--dxs-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dxs-navy);
}
.fault-code { font-variant-numeric: tabular-nums; color: var(--text); font-size: 12px; }
.top .logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dxs-on-dark);
  line-height: 1;
  text-shadow: none;
}
.top .brand-text strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dxs-on-dark);
}
.top .brand-text p { margin: 2px 0 0; color: var(--dxs-on-dark); font-size: 12px; letter-spacing: 0.08em; }
.top h1 { margin: 0; font-size: 20px; color: var(--dxs-on-dark); }
.top p { margin: 2px 0 0; color: var(--dxs-on-dark); font-size: 13px; }
.top #btnAuth { margin-left: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 10px; font-size: 16px; }
.row { display: flex; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.angles { margin: 0; padding-left: 18px; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 8px;
}
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--dxs-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pick-btn--camera {
  background: var(--dxs-navy);
  color: #fff;
  border: none;
}
.pick-btn--album {
  background: #fff;
  color: var(--dxs-navy);
  border: 1px solid var(--line);
}
.pick-hint { margin: 0 0 8px; }
.preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: #f0f2f5;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-item .preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(5, 16, 24, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
button, .ghost, .primary {
  border-radius: var(--dxs-radius);
  border: 1px solid var(--line);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s var(--dxs-ease), background 0.25s var(--dxs-ease);
}
button:active, .ghost:active, .primary:active { transform: scale(0.98); }
.primary {
  background: linear-gradient(180deg, var(--dxs-signal-bright), var(--dxs-signal));
  color: var(--dxs-ink);
  border: none;
  width: 100%;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(30, 207, 138, 0.35);
}
.primary:hover { background: linear-gradient(180deg, #7dffc0, var(--dxs-signal-bright)); }
.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dxs-on-dark);
  border-color: rgba(255, 255, 255, 0.22);
}
.card .ghost, dialog .ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.primary:disabled { opacity: .6; cursor: not-allowed; }
.hidden { display: none !important; }
.disclaimer {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(12, 61, 46, 0.06);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}
.score {
  font-size: 42px; font-weight: 700; color: var(--text); line-height: 1;
}
.risk { font-size: 14px; color: var(--text); margin: 4px 0 10px; font-weight: 600; }
.defect {
  border-top: 1px dashed var(--line); padding: 8px 0; font-size: 13px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}
.dxs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 420px;
}
.dxs-table--a4 {
  min-width: 0;
  font-size: 12px;
}
.dxs-table th,
.dxs-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.dxs-table th {
  background: rgba(10, 37, 64, 0.06);
  color: var(--dxs-navy);
  font-weight: 600;
  white-space: nowrap;
}
.dxs-table .num {
  font-weight: 700;
  font-size: 18px;
  color: var(--dxs-navy);
}
.dxs-table .risk-cell { color: var(--text); font-weight: 600; }
.dxs-table a {
  color: var(--dxs-navy);
  font-weight: 600;
  text-decoration: none;
}
.dxs-table .btn-mini {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--dxs-navy);
}
.report-card-head { align-items: center; gap: 8px; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-a4 {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 16px 14px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
  overflow: hidden;
  background-color: #f7f6f2;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.65), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='22' fill='none' stroke='%23c9c4b8' stroke-width='0.6' opacity='0.35'/%3E%3Ccircle cx='30' cy='30' r='12' fill='none' stroke='%23c9c4b8' stroke-width='0.5' opacity='0.28'/%3E%3Ccircle cx='0' cy='0' r='22' fill='none' stroke='%23c9c4b8' stroke-width='0.5' opacity='0.22'/%3E%3Ccircle cx='60' cy='0' r='22' fill='none' stroke='%23c9c4b8' stroke-width='0.5' opacity='0.22'/%3E%3Ccircle cx='0' cy='60' r='22' fill='none' stroke='%23c9c4b8' stroke-width='0.5' opacity='0.22'/%3E%3Ccircle cx='60' cy='60' r='22' fill='none' stroke='%23c9c4b8' stroke-width='0.5' opacity='0.22'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.84 0 0 0 0 0.8 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply, multiply;
  border: 1px solid rgba(10, 37, 64, 0.16);
  border-radius: 12px;
  box-shadow:
    0 8px 28px rgba(10, 37, 64, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.report-a4__watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}
.report-a4__watermark img {
  width: min(56%, 280px);
  opacity: 0.18;
  transform: rotate(-14deg);
  filter: grayscale(0.2) contrast(1.08) brightness(1.05);
  mix-blend-mode: multiply;
}
.report-seal-wrap {
  width: min(160px, 42vw);
  height: min(160px, 42vw);
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.report-seal-static {
  display: block;
  width: min(156px, 40vw);
  height: auto;
  opacity: 0.88;
  transform: rotate(-6deg);
  filter: drop-shadow(0.5px 1px 1px rgba(10, 37, 64, 0.12));
  mix-blend-mode: multiply;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.report-a4__watermark span {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(10, 37, 64, 0.08);
  white-space: nowrap;
  padding-left: 0.28em;
}
.report-a4 > *:not(.report-a4__watermark) {
  position: relative;
  z-index: 1;
}
.report-a4__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 3px double var(--dxs-navy);
}
.report-a4__brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.18em;
  line-height: 1.1;
  padding-left: 0.1em;
}
.report-a4__org-en {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.report-a4__doc-title {
  text-align: left;
}
.report-a4__doc-title h1 {
  margin: 0;
  font-size: clamp(18px, 5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--dxs-navy);
  padding-left: 0.1em;
}
.report-a4__doc-title p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.report-a4__meta {
  text-align: left;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.report-a4__meta em {
  font-style: normal;
  color: var(--muted);
  margin-right: 8px;
}
.report-a4__meta strong {
  color: var(--dxs-navy);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.report-verdict {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--dxs-navy);
  background: rgba(10, 37, 64, 0.03);
}
.report-verdict > div {
  padding: 12px 14px;
  border-right: none;
  border-bottom: 1px solid rgba(10, 37, 64, 0.18);
  display: grid;
  gap: 6px;
  align-content: center;
}
.report-verdict > div:last-child {
  border-bottom: none;
}
.report-verdict em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.report-verdict__score strong {
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1;
  color: var(--dxs-navy);
  font-variant-numeric: tabular-nums;
}
.report-verdict__risk strong {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}
.report-verdict__code {
  align-content: start;
}
.report-verdict__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.report-verdict__qr .report-qr {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  padding: 3px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
}
.report-verdict__qr .report-qr img,
.report-verdict__qr .report-qr canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.report-block { margin: 0; }
.report-block--tight h3 { margin-bottom: 8px; }
.report-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--dxs-navy);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.report-evidence__hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.report-evidence__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-evidence__item {
  margin: 0;
  border: 1px solid var(--line);
  background: #f6f8fa;
  overflow: hidden;
}
.report-evidence__item--primary {
  grid-column: 1 / -1;
}
.report-evidence__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #eef1f4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.report-evidence__item--primary img {
  max-height: 280px;
}
.report-evidence__item figcaption {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--dxs-navy);
  border-top: 1px solid var(--line);
  background: #fff;
}
.report-a4__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.report-a4__note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(12, 61, 46, 0.04);
  color: var(--text);
  font-size: 11px;
  line-height: 1.6;
}
.report-a4__authority {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0;
  flex-wrap: wrap;
  min-height: 100px;
  margin-top: -40px;
  padding: 0 4px 4px;
  pointer-events: none;
}
.report-qr-pad,
.report-stamp-pad {
  width: min(168px, 48vw);
  flex-shrink: 0;
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
  position: relative;
}
.report-qr {
  width: 108px;
  height: 108px;
  padding: 4px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}
.report-qr img,
.report-qr canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.report-qr-pad span,
.report-stamp-pad span,
.report-a4__qr span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.report-stamp-pad__org {
  display: none;
}
@media (min-width: 720px) {
  .report-a4__head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .report-a4__doc-title { text-align: center; }
  .report-a4__meta { text-align: right; }
  .report-verdict {
    grid-template-columns: 0.85fr 1fr 1.35fr;
  }
  .report-verdict > div {
    border-right: 1px solid rgba(10, 37, 64, 0.18);
    border-bottom: none;
  }
  .report-verdict > div:last-child { border-right: none; }
  .report-seal-wrap {
    width: 200px;
    height: 200px;
  }
  .report-seal-static { width: 196px; }
  .report-a4__authority {
    min-height: 120px;
    margin-top: -64px;
  }
  .report-qr-pad,
  .report-stamp-pad { width: 200px; }
}
@media (max-width: 719px) {
  .report-a4 { box-shadow: none; }
  .report-verdict__qr { justify-content: flex-start; }
  .report-a4__watermark img { width: 70%; opacity: 0.08; }
  .dxs-table--a4 th,
  .dxs-table--a4 td { padding: 6px 8px; font-size: 11px; }
  .dxs-table--a4 .num { font-size: 16px; }
}
@page {
  size: A4;
  margin: 10mm;
}
@media print {
  body {
    background: #fff !important;
  }
  .top,
  .foot,
  .tabbar,
  #tabbarMount,
  .report-card-head,
  .report-actions,
  .quota-chip,
  #historyCard,
  #shootCard,
  dialog,
  .card:not(#reportCard) {
    display: none !important;
  }
  .report-a4__head {
    grid-template-columns: 1fr auto;
  }
  .report-a4__doc-title { text-align: center; }
  .report-a4__meta { text-align: right; }
  .report-verdict {
    grid-template-columns: 0.85fr 1fr 1.35fr;
  }
  .report-verdict > div {
    border-right: 1px solid rgba(10, 37, 64, 0.18);
    border-bottom: none;
  }
  .report-verdict > div:last-child { border-right: none; }
  .report-seal-wrap {
    width: 220px;
    height: 220px;
  }
  .report-seal-static { width: 216px; }
  #app,
  #reportCard {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .report-a4 {
    width: 190mm;
    min-height: 277mm;
    margin: 0 auto;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
  }
  .report-a4__watermark img {
    opacity: 0.12;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-seal-static {
    opacity: 0.88;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-evidence__item img {
    max-height: 190px;
  }
  .report-evidence__item--primary img {
    max-height: 240px;
  }
}
.cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.cta-stack .primary {
  min-height: 52px;
  font-size: 16px;
}
.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
.auth-actions .primary,
.auth-actions .ghost {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

dialog {
  border: none; border-radius: 16px; padding: 0; width: min(92vw, 360px); box-shadow: var(--shadow);
}
.auth { padding: 18px; display: grid; gap: 10px; }
.auth label { display: grid; gap: 4px; font-size: 13px; }
.auth input {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 15px;
}
.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lead-form h3 { margin: 0; font-size: 16px; }
.lead-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.lead-form input, .lead-form select, .lead-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--text);
}
.lead-form textarea { min-height: 72px; resize: vertical; }

.foot {
  margin: 16px 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}
.foot a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.72;
}
.foot a:hover {
  opacity: 1;
  text-decoration: underline;
}
