:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  --yi-radius-xl: 32px;
  --yi-radius-lg: 24px;
  --yi-radius-md: 18px;
  --yi-bg: #f7f8f4;
  --yi-surface: rgba(255, 255, 255, 0.82);
  --yi-surface-strong: rgba(255, 255, 255, 0.92);
  --yi-border: rgba(218, 226, 220, 0.9);
  --yi-text: #2a2723;
  --yi-muted: #6f776f;
  --yi-ink: #1a1a1a;
  --yi-blue: #5f6f8f;
  --yi-accent-cool: #5f6f8f;
  --yi-accent-sage: #5f7f6f;
  --yi-green: #2f8f78;
  --yi-rose: #c75f70;
  --yi-blur: blur(18px);
  --yi-soft-shadow: 0 16px 40px rgba(15, 23, 42, 0.045);
  --yi-card-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
  background: var(--yi-bg);
  color: var(--yi-text);
}

.field-meter {
  display: block;
  margin-top: 8px;
  color: #8b8175;
  font-size: 13px;
}

.field-meter.is-ok {
  color: #2f8f78;
}

.submit-preview {
  border-radius: 20px;
  border: 1px solid rgba(47, 143, 120, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: #2f352f;
}

.submit-preview strong,
.submit-preview span {
  display: block;
}

.submit-preview span {
  margin-top: 6px;
  color: #6f756d;
  font-size: 14px;
}

.unlock-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.unlock-benefits span,
.unlock-ready {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(222, 213, 201, 0.7);
  padding: 10px 12px;
  color: #41524a;
  font-size: 14px;
}

.unlock-ready {
  margin: 0 0 14px;
}

@media (max-width: 720px) {
  .submit-preview {
    padding: 10px;
  }

  .unlock-benefits {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(225, 239, 235, 0.78) 0%, transparent 36%),
    radial-gradient(circle at 88% 2%, rgba(230, 235, 247, 0.72) 0%, transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--yi-bg) 58%, #eef2ee 100%);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body.account-drawer-open {
  overflow: hidden;
}

body.question-keyboard-active {
  scroll-padding-bottom: 42vh;
}

.page {
  position: relative;
  isolation: isolate;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(95, 127, 111, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 111, 143, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16) 58%, transparent 84%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16) 58%, transparent 84%);
  animation: matrix-scan 18s linear infinite;
}

.hero {
  padding: 22px 0 12px;
}

.legal-page .hero {
  padding-bottom: 8px;
}

.legal-page h2 {
  margin-top: 24px;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.eyebrow {
  color: #6e7d91;
  font-weight: 700;
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 44px;
  margin-bottom: 8px;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
}

.subtitle {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.hero-description {
  max-width: 760px;
  margin-bottom: 12px;
  color: #49534f;
  font-size: 16px;
  line-height: 1.75;
}

.hero-tagline {
  margin-bottom: 8px;
  color: var(--yi-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.hero .notice {
  max-width: 640px;
  margin-bottom: 0;
  color: #7a8493;
  font-size: 14px;
  line-height: 1.55;
}

@keyframes matrix-scan {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 0 72px, 72px 0;
  }
}

@keyframes tech-card-sheen {
  0%,
  62% {
    transform: translateX(-140%);
  }

  100% {
    transform: translateX(140%);
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes progress-signal {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(130%);
  }
}

.notice,
.message,
.empty,
footer,
.legal {
  color: var(--yi-muted);
  line-height: 1.7;
}

.panel {
  background: var(--yi-surface);
  border: 1px solid var(--yi-border);
  border-radius: var(--yi-radius-xl);
  padding: 18px;
  margin: 12px 0;
  box-shadow: var(--yi-soft-shadow);
  backdrop-filter: var(--yi-blur);
  -webkit-backdrop-filter: var(--yi-blur);
}

.start-panel {
  margin: 0;
}

.assessment-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f5f2ec;
}

.assessment-panel > h2 {
  margin-bottom: 14px;
  color: #8b8376;
  font-size: 15px;
}

.quiz-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 960px;
  margin: 10px auto 0;
}

.decision-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex: 0 0 240px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #f0ece6;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(38, 30, 18, 0.012);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.terminal-brand,
.mobile-terminal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.terminal-brand strong {
  color: var(--yi-text);
  font-size: 15px;
}

.mobile-terminal-brand {
  display: none;
  margin-bottom: 20px;
}

.mobile-terminal-brand strong {
  color: #a8a297;
  font-size: 13px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--yi-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.sidebar-divider {
  height: 1px;
  margin: 16px 0;
  background: #f5f2ec;
}

.decision-sidebar small {
  margin-bottom: 5px;
  color: #a8a297;
  font-size: 14px;
}

.decision-sidebar > strong {
  color: var(--yi-text);
  font-size: 17px;
  line-height: 1.45;
}

.decision-sidebar > span {
  margin-top: 8px;
  color: var(--yi-muted);
  font-size: 14px;
}

.quiz-main-card {
  position: relative;
  width: min(640px, 100%);
  overflow: hidden;
  padding: 26px;
  border: 1px solid #f0ece6;
  border-radius: var(--yi-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(38, 30, 18, 0.015);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quiz-main-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(118deg, transparent 4%, rgba(95, 127, 111, 0.075) 38%, rgba(255, 255, 255, 0.7) 48%, rgba(95, 111, 143, 0.06) 56%, transparent 68%);
  transform: translateX(-140%);
  animation: tech-card-sheen 7s ease-in-out infinite;
}

.quiz-main-card > * {
  position: relative;
}

.matrix-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 18px;
}

.matrix-status-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid rgba(211, 221, 214, 0.84);
  border-radius: 999px;
  background: rgba(249, 250, 246, 0.72);
  color: #5b665e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.matrix-status-strip span::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yi-green);
  box-shadow: 0 0 0 5px rgba(47, 143, 120, 0.11), 0 0 18px rgba(47, 143, 120, 0.34);
  animation: signal-pulse 1.8s ease-in-out infinite;
}

.section-helper {
  margin-bottom: 16px;
  color: #a8a297;
  font-size: 14px;
  line-height: 1.6;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(205, 213, 224, 0.86);
  border-radius: var(--yi-radius-md);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--yi-text);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #d0c9bc;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(208, 201, 188, 0.25);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

textarea::placeholder {
  color: #a8a297;
  font-size: 14px;
  font-weight: 400;
}

button {
  border: 0;
  border-radius: 18px;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--yi-ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 12px 24px rgba(16, 24, 32, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(16, 24, 32, 0.14);
}

button:active {
  transform: translateY(0) scale(0.99);
}

button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--yi-text);
  border: 1px solid rgba(213, 220, 231, 0.86);
  box-shadow: none;
}

button.danger {
  background: #f4dddd;
  color: #8f2424;
}

.account-avatar-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(218, 226, 220, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--yi-text);
  box-shadow: 0 14px 34px rgba(38, 30, 18, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.account-avatar-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yi-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.account-avatar-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-avatar-copy strong {
  font-size: 13px;
  line-height: 1.1;
}

.account-avatar-copy small {
  color: var(--yi-muted);
  font-size: 11px;
  line-height: 1.1;
}

.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  justify-items: end;
  pointer-events: auto;
  visibility: visible;
}

.account-drawer[aria-hidden="true"] {
  pointer-events: none;
  visibility: hidden;
}

.account-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.24);
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.account-drawer-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(560px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  margin: 12px;
  overflow: auto;
  padding: 22px;
  border: 1px solid #f0ece6;
  border-radius: var(--yi-radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(38, 30, 18, 0.16);
  transform: translateX(0);
  opacity: 1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.account-drawer[aria-hidden="true"] .account-drawer-backdrop {
  opacity: 0;
}

.account-drawer[aria-hidden="true"] .account-drawer-panel {
  transform: translateX(22px);
  opacity: 0;
}

.account-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-drawer-head span {
  display: grid;
  gap: 4px;
}

.account-drawer-head strong {
  font-size: 22px;
}

.account-drawer-head small,
.account-lite-summary span {
  color: var(--yi-muted);
  line-height: 1.55;
}

.account-close-button {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}

.account-lite-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(218, 226, 220, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(135deg, rgba(247, 248, 244, 0.92), rgba(255, 252, 247, 0.78));
}

.account-profile-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--yi-ink);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  place-items: center;
}

.account-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-profile-copy strong {
  color: var(--yi-text);
  font-size: 18px;
  line-height: 1.25;
}

.visitor-start-button {
  flex: 0 0 auto;
  min-width: 132px;
}

.account-eyebrow {
  color: #aaa299;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.account-panel-body {
  display: grid;
  gap: 14px;
}

.account-section,
.account-fold {
  border: 1px solid rgba(218, 226, 220, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.account-section,
.account-fold {
  padding: 16px;
}

.account-section-head,
.account-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-section-head span,
.account-fold summary span {
  display: grid;
  gap: 4px;
}

.account-section-head strong,
.account-fold summary strong {
  color: var(--yi-text);
  font-size: 17px;
}

.account-section-head small,
.account-fold summary small {
  color: var(--yi-muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-fold summary {
  cursor: pointer;
  list-style: none;
}

.account-fold summary::-webkit-details-marker {
  display: none;
}

.account-fold summary::after {
  content: "展开";
  flex: 0 0 auto;
  min-width: 46px;
  padding: 7px 10px;
  border: 1px solid rgba(218, 226, 220, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--yi-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.account-fold[open] summary::after {
  content: "收起";
  color: var(--yi-text);
}

.account-form-stack,
.account-subform {
  margin-top: 14px;
}

.account-form-stack {
  grid-template-columns: 1fr;
}

.account-form-actions,
.account-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.account-danger-zone {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-history-toolbar {
  margin-top: 14px;
}

.account-history-section .history-grid {
  grid-template-columns: 1fr;
}

.account-history-section .history-card {
  min-height: auto;
  padding: 12px;
  border-radius: 18px;
  box-shadow: none;
}

.account-history-section .history-card p {
  -webkit-line-clamp: 2;
}

.account-history-section .history-pagination {
  margin-top: 8px;
}

.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 75;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(330px, calc(100vw - 28px));
  padding: 5px;
  border: 1px solid rgba(218, 226, 220, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(38, 30, 18, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-bottom-nav button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #5a5449;
  box-shadow: none;
  font-size: 13px;
}

.mobile-bottom-nav button:last-child {
  background: var(--yi-ink);
  color: #fff;
}

body.account-drawer-open .mobile-bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

button.table-action {
  min-height: 34px;
  padding: 7px 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.actions,
.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions.account-form-actions,
.account-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.account-danger-zone {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4ded5;
}

.account-subform {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4ded5;
}

.account-management-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(218, 226, 220, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--yi-text);
  box-shadow: none;
  text-align: left;
}

.account-setting-row:hover {
  border-color: rgba(208, 201, 188, 0.92);
  background: rgba(251, 249, 246, 0.94);
  box-shadow: none;
  transform: none;
}

.account-setting-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-setting-row strong {
  color: var(--yi-text);
  font-size: 15px;
  line-height: 1.25;
}

.account-setting-row small {
  color: var(--yi-muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-setting-row em {
  flex: 0 0 auto;
  color: #aaa299;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.account-setting-row.danger {
  border-color: rgba(181, 67, 67, 0.2);
  background: rgba(245, 220, 220, 0.6);
}

.account-setting-row.danger strong,
.account-setting-row.danger em {
  color: #9f2f2f;
}

.account-flow-panel {
  display: grid;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 14px;
  border: 1px solid rgba(218, 226, 220, 0.8);
  border-radius: 16px;
  background: rgba(251, 249, 246, 0.7);
}

.account-flow-panel.hidden {
  display: none;
}

.account-flow-panel .account-form-actions {
  margin-top: 2px;
}

.account-flow-panel input {
  background: rgba(255, 255, 255, 0.82);
}

.account-session-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.account-session-summary {
  margin: 0;
  color: var(--yi-muted);
  font-size: 12px;
}

.account-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(218, 226, 220, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.account-session-row span {
  display: grid;
  gap: 2px;
}

.account-session-row strong {
  color: var(--yi-text);
  font-size: 13px;
}

.account-session-row small,
.account-session-row em {
  color: var(--yi-muted);
  font-size: 12px;
  font-style: normal;
}

.account-panel {
  margin-top: 24px;
}

.account-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.account-panel summary::-webkit-details-marker {
  display: none;
}

.account-panel summary span:first-child {
  display: grid;
  gap: 5px;
}

.account-panel summary strong {
  color: var(--yi-text);
  font-size: 18px;
}

.account-panel summary small {
  color: var(--yi-muted);
  line-height: 1.5;
}

.summary-action {
  min-width: 54px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 220, 231, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4e6078;
  font-size: 13px;
  font-weight: 800;
}

.account-panel[open] .summary-action {
  color: var(--yi-text);
}

.account-panel[open] .summary-action::before {
  content: "收起";
}

.account-panel[open] .summary-action {
  font-size: 0;
}

.account-panel[open] .summary-action::before {
  font-size: 13px;
}

.account-panel-body {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.history-card {
  border: 1px solid var(--yi-border);
  border-radius: var(--yi-radius-lg);
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.type-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(240, 236, 230, 0.92);
  border-radius: 24px;
  background: rgba(251, 249, 246, 0.72);
}

.type-option {
  display: grid;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #5a5449;
  box-shadow: none;
  place-items: center;
}

.type-option:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  transform: none;
}

.type-option.active {
  background: #efece6;
  border-color: #d0c9bc;
  color: var(--yi-ink);
  box-shadow: inset 0 0 0 1px rgba(208, 201, 188, 0.38);
}

.type-option strong {
  font-size: 15px;
  line-height: 1;
}

.type-option-index {
  color: currentColor;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.58;
}

.type-summary {
  display: grid;
  gap: 4px;
  min-height: 54px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 236, 230, 0.9);
  border-radius: var(--yi-radius-lg);
  background: rgba(251, 249, 246, 0.72);
}

.type-summary strong {
  color: var(--yi-text);
  font-size: 14px;
}

.type-summary span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--yi-muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.type-summary small {
  display: -webkit-box;
  overflow: hidden;
  color: #aaa299;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.history-card span {
  display: block;
  margin-top: 6px;
  color: var(--yi-muted);
  line-height: 1.45;
}

.history-card {
  flex: 1 1 260px;
}

.history-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}

.history-meta {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--yi-muted);
  font-size: 13px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.history-card {
  display: grid;
  gap: 9px;
  min-height: 172px;
}

.history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #4f5d54;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.history-status {
  min-width: 52px;
  margin-top: 0;
  color: var(--yi-accent-sage);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.history-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.history-card-actions button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
}

.history-pagination span {
  min-width: 56px;
  color: var(--yi-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.history-pagination button {
  min-width: 88px;
}

.hidden {
  display: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 0 4px;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.68;
}

footer a {
  color: #a8a297;
  text-decoration: none;
}

footer a:hover {
  color: #5a5449;
}

.legal {
  max-width: 620px;
  margin: 0 auto 12px;
  padding: 0 8px 18px;
  color: #aaa299;
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
  opacity: 0.66;
}

.legal h2 {
  margin: 0 0 4px;
  color: #b8b1a5;
  font-size: 10.5px;
  font-weight: 800;
}

.legal p {
  margin: 2px 0;
}

a {
  color: #2f6f9f;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.stat-card {
  border: 1px solid var(--yi-border);
  border-radius: var(--yi-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
  backdrop-filter: var(--yi-blur);
  -webkit-backdrop-filter: var(--yi-blur);
}

.stat-card-good {
  border-color: rgba(47, 143, 120, 0.18);
  background: rgba(232, 247, 242, 0.9);
}

.stat-card-accent {
  border-color: rgba(79, 124, 255, 0.18);
  background: rgba(235, 243, 255, 0.92);
}

.stat-card-warn {
  border-color: rgba(183, 121, 31, 0.22);
  background: rgba(255, 247, 223, 0.9);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.stat-card span {
  color: #666;
  font-size: 13px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid rgba(216, 224, 235, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6e7d91;
  font-size: 14px;
  font-weight: 800;
}

.question-flow-card {
  display: grid;
  gap: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.question-flow-head {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #a8a297;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.matrix-code,
.matrix-count {
  white-space: nowrap;
}

.matrix-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3efe9;
}

.matrix-progress span {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yi-ink), #6a6254);
  box-shadow: 0 0 16px rgba(95, 127, 111, 0.24);
  transition: width 220ms ease;
}

.matrix-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: translateX(-120%);
  animation: progress-signal 2.4s ease-in-out infinite;
}

.question-label {
  gap: 12px;
  color: var(--yi-text);
  font-size: 26px;
  line-height: 1.25;
}

.question-label span {
  max-width: 460px;
  color: var(--yi-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.question-label textarea {
  min-height: 150px;
  border-radius: 20px;
  background: rgba(251, 249, 246, 0.82);
  scroll-margin-bottom: 42vh;
}

.question-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(215, 222, 232, 0.62);
}

.question-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a1a1a, var(--yi-accent-cool));
  transition: width 180ms ease;
}

.question-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.question-actions button {
  flex: 1;
  border-radius: 16px;
}

.report-free-grid,
.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.report-free-grid article,
.report-detail-grid article,
.case-card {
  border: 1px solid rgba(216, 224, 235, 0.78);
  border-radius: var(--yi-radius-lg);
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.report-free-grid span,
.report-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.report-free-grid strong,
.case-card strong {
  display: block;
  margin-bottom: 4px;
}

.report-free-grid p,
.report-detail-grid p,
.case-card p,
.poster-phrase {
  margin: 0;
  line-height: 1.65;
}

.paywall-preview {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: 260px;
  min-height: 220px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 236, 230, 0.94);
  border-radius: var(--yi-radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 242, 236, 0.94), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 249, 246, 0.82));
  padding: 18px;
  box-shadow: var(--yi-soft-shadow);
}

.paywall-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 6px;
  max-width: 560px;
}

.paywall-copy strong {
  font-size: 18px;
}

.paywall-copy span {
  color: var(--yi-muted);
  line-height: 1.65;
}

.paywall-content {
  display: grid;
  gap: 10px;
  padding: 12px 2px 80px;
  color: #4d5967;
}

.paywall-content h3,
.report-deep-content h3 {
  margin: 8px 0 0;
}

.paywall-content.is-locked {
  max-height: 140px;
  overflow: hidden;
  filter: blur(4px);
  user-select: none;
  opacity: 0.76;
}

.paywall-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.paywall-unlock-card {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border: 1px solid rgba(240, 236, 230, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.paywall-unlock-card span {
  color: #8a93a0;
  font-size: 13px;
  font-weight: 800;
}

.paywall-unlock-card strong {
  font-size: 16px;
}

.paywall-unlock-card button {
  min-height: 42px;
}

.native-pay-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(222, 214, 202, 0.92);
  border-radius: var(--yi-radius-xl);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 229, 173, 0.38), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 239, 0.88));
  box-shadow: var(--yi-soft-shadow);
}

.native-pay-panel[hidden] {
  display: none;
}

.native-pay-copy {
  display: grid;
  gap: 8px;
}

.native-pay-copy span {
  color: #8f7b57;
  font-size: 13px;
  font-weight: 900;
}

.native-pay-copy strong {
  font-size: 20px;
}

.native-pay-copy p {
  margin: 0;
  color: var(--yi-muted);
  line-height: 1.7;
}

.native-pay-qr {
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  padding: 12px;
  border: 1px solid rgba(224, 218, 207, 0.96);
  border-radius: 28px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.native-pay-qr svg {
  width: 100%;
  height: 100%;
}

.native-pay-code {
  grid-column: 1 / -1;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #7b756d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-pay-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.report-deep-content {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(216, 224, 235, 0.82);
  border-radius: var(--yi-radius-xl);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: var(--yi-blur);
  -webkit-backdrop-filter: var(--yi-blur);
}

.table-wrap {
  overflow-x: auto;
}

.table-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed rgba(198, 207, 218, 0.9);
  border-radius: var(--yi-radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(235, 243, 255, 0.72), transparent 42%),
    rgba(255, 255, 255, 0.56);
  color: var(--yi-muted);
  text-align: center;
}

.table-state strong {
  color: var(--yi-text);
  font-size: 15px;
}

.stats-grid > .table-state {
  grid-column: 1 / -1;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid #e4ded5;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 253, 250, 0.94);
  color: #5b4d3f;
  font-size: 13px;
  backdrop-filter: var(--yi-blur);
  -webkit-backdrop-filter: var(--yi-blur);
}

td {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .page {
    padding: 14px 12px 96px;
  }

  body.question-keyboard-active .page {
    padding-bottom: max(42vh, 300px);
  }

  .account-avatar-button {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 5px;
  }

  .account-avatar-copy {
    display: none;
  }

  .account-avatar-mark {
    width: 28px;
    height: 28px;
  }

  .account-drawer {
    align-items: end;
    justify-items: center;
  }

  .account-drawer-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 28px);
    height: auto;
    margin: 8px;
    padding: 16px;
    border-radius: 28px;
  }

  .account-lite-summary {
    align-items: flex-start;
    padding: 14px;
    border-radius: 22px;
  }

  .account-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .account-section-head,
  .account-fold summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .account-section-head,
  .account-fold summary {
    flex-direction: column;
  }

  .account-section,
  .account-fold {
    padding: 14px;
    border-radius: 22px;
  }

  .account-row-actions,
  .account-danger-zone,
  .actions.account-form-actions,
  .account-form-actions {
    grid-template-columns: 1fr;
  }

  .account-history-section .history-card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-bottom-nav {
    display: grid;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero {
    padding-top: 18px;
  }

  .subtitle {
    font-size: 17px;
  }

  .hero .notice {
    max-width: 340px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-panel summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-action {
    width: 100%;
  }

  .actions,
  .history-list {
    flex-direction: column;
  }

  .actions button,
  .history-card {
    width: 100%;
  }

  .history-toolbar {
    grid-template-columns: 1fr;
  }

  .history-card-actions {
    grid-template-columns: 1fr;
  }

  .history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .history-pagination span {
    width: 100%;
  }

  .panel {
    padding: 16px;
    border-radius: 26px;
  }

  .quiz-shell {
    display: block;
    margin-top: 6px;
  }

  .decision-sidebar {
    display: none;
  }

  .quiz-main-card {
    width: 100%;
    padding: 18px;
    border-radius: 28px;
  }

  .mobile-terminal-brand {
    display: flex;
  }

  .matrix-status-strip {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 16px;
  }

  .matrix-status-strip span {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .start-panel h2 {
    font-size: 23px;
  }

  .section-helper {
    margin-bottom: 14px;
  }

  .assessment-panel {
    margin-top: 18px;
    padding-top: 16px;
  }

  .type-option {
    min-height: 46px;
    border-radius: 17px;
  }

  .type-summary {
    min-height: 0;
    padding: 9px 11px;
  }

  .type-summary span {
    -webkit-line-clamp: 1;
  }

  .type-summary small {
    display: none;
  }

  .question-flow-card {
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  .question-label {
    font-size: 23px;
  }

  .question-label textarea {
    min-height: 132px;
  }

  .question-actions {
    flex-direction: column;
  }

  .paywall-preview {
    border-radius: 28px;
  }

  .paywall-blur-overlay {
    padding: 14px;
  }

  .native-pay-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px;
  }

  .native-pay-copy,
  .native-pay-actions {
    width: 100%;
  }

  .native-pay-qr {
    width: min(72vw, 220px);
    height: min(72vw, 220px);
  }

  .native-pay-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
