:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;
  --secondary: #0f172a;
  --secondary-soft: #1e293b;
  --accent: #60a5fa;
  --success: #16a34a;
  --warning: #ea580c;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #eef4ff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
  --radius-xl: 10px;
  --radius-lg: 10px;
  --radius-md: 10px;
  --radius-sm: 10px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 42%, #f8fafc 100%);
  color: var(--ink);
  font-family: var(--font-base);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 72%);
  pointer-events: none;
  opacity: 0.35;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: 4%;
  right: 2%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(60px);
}

.ambient-two {
  bottom: 10%;
  left: 2%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  filter: blur(60px);
}

.ambient-grid {
  top: 14%;
  left: 8%;
  width: 220px;
  height: 220px;
  opacity: 0.12;
  transform: rotate(10deg);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 32px));
  margin: 8px auto 24px;
}

.topbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 10px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  align-content: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.brand-mark.has-image {
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy .brand-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: none;
}

.brand-copy .brand-title {
  display: none;
}

.brand-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.topnav,
.userbar,
.topbar-actions,
.hero-actions,
.notice-actions,
.test-controls,
.tab-row,
.dashboard-chip-row,
.pill-list,
.mode-card-head,
.result-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-button,
.ghost-button,
.outline-button,
.solid-button,
.tab-button {
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-button,
.ghost-button,
.outline-button,
.solid-button,
.tab-button,
.hero-badge,
.metric-chip,
.category-pill,
.mini-tag,
.bank-tab,
.difficulty-badge,
.ranking-filter-chip,
.ranking-rank-badge,
.ranking-row-rank span,
.user-pill,
.modal-close {
  border-radius: 5px;
}

.nav-button,
.ghost-button,
.outline-button,
.tab-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.nav-button:hover,
.ghost-button:hover,
.outline-button:hover,
.tab-button:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f8fbff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-dropdown {
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f8fbff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-icon {
  display: grid;
  gap: 4px;
  width: 16px;
}

.mobile-menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 60;
  display: grid;
  gap: 6px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav-dropdown-link:hover {
  background: var(--surface-muted);
  color: var(--primary);
  transform: none;
}

.solid-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.solid-button:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.tab-button.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--primary-soft);
  color: var(--primary);
}

.block-button {
  width: 100%;
  justify-content: center;
}

.main-shell {
  display: grid;
  gap: 28px;
}

.view {
  display: grid;
  gap: 15px;
  align-content: start;
  animation: rise-in 0.32s ease;
}

.hidden {
  display: none !important;
}

.glass-card,
.spotlight-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  padding: 28px 30px 20px;
  border: 1px solid #d9e5f6;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-badge-row,
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #bfdbfe;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-badge-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.hero-title {
  margin: 2px 0 0;
  color: var(--secondary-soft);
  max-width: none;
  width: 100%;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.hero-title span {
  color: #1677ff;
}

.hero-desc {
  margin: 2px 0 0;
  max-width: min(46ch, 100%);
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.stat-strip {
  display: none;
}

.stat-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.stat-value,
.summary-metric strong {
  font-variant-numeric: tabular-nums;
}

.stat-value {
  display: block;
  color: #fff;
  font-size: 1.36rem;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.84rem;
}

.hero-side {
  display: flex;
  align-items: center;
}

.hero-side-stack {
  width: 100%;
  display: grid;
}

.hero-panel--module {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: stretch;
}

.hero-side-module {
  align-items: stretch;
}

.hero-panel--module .hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-panel--module .hero-actions {
  margin-top: auto;
  padding-top: clamp(24px, 4vh, 48px);
  transform: translateY(-25px);
}

.hero-panel--module .hero-social {
  margin-top: 18px;
  transform: translateY(-25px);
}

.hero-panel--module .hero-social-copy {
  gap: 14px;
  transform: translateY(5px);
}

.hero-module-band {
  grid-column: 1 / -1;
}

.module-hero-band-shell {
  display: grid;
  gap: 18px;
  margin-top: 2px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
}

.module-hero-band-head {
  display: none;
}

.module-hero-band-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.15;
}

.module-hero-band-head .summary-copy {
  max-width: min(50ch, 100%);
}

.module-hero-overview {
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(238, 245, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.module-hero-feature {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: 188px;
  border-radius: 20px;
  background: #0f172a;
}

.module-hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.74));
}

.module-hero-feature-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-hero-feature-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  color: #fff;
}

.module-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(239, 246, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.module-hero-feature-copy h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.module-hero-feature-copy p {
  margin: 0;
  color: rgba(239, 246, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.7;
}

.module-hero-inline-meta,
.module-hero-pill-row,
.module-hero-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.module-hero-inline-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.module-hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-hero-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: rgba(255, 255, 255, 0.88);
}

.module-hero-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.module-hero-stat strong {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.module-hero-pill,
.module-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.module-hero-pill {
  gap: 8px;
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--ink);
}

.module-hero-pill strong {
  font-size: 0.82rem;
}

.module-hero-pill small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.module-hero-chip {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(191, 219, 254, 0.9);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.module-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-hero-flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.78);
}

.module-hero-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1677ff, #2563eb);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.module-hero-flow-copy {
  display: grid;
  gap: 4px;
}

.module-hero-flow-copy span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.module-hero-flow-copy small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.dashboard-title {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 700;
  color: inherit;
}

.dashboard-copy,
.summary-copy,
.auth-note,
.placeholder-copy,
.review-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-visual-card {
  display: grid;
  width: 100%;
}

.hero-visual-top {
  display: none;
}

.hero-curve-card {
  width: 100%;
  padding: 0;
}

.hero-curve-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border-radius: 999px;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-avatar-a {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.hero-avatar-b {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.hero-avatar-c {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.hero-avatar-d {
  background: linear-gradient(135deg, #ea580c, #fb923c);
}

.hero-social-copy {
  display: grid;
  gap: 4px;
}

.hero-social-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-social-copy span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-panel .solid-button {
  min-width: 200px;
  background: linear-gradient(135deg, #059669, #0f766e);
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.22);
}

.hero-panel .solid-button:hover {
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.28);
}

.dashboard-inline {
  padding: 22px 24px;
  background: #fff;
  color: var(--ink);
}

.dashboard-inline .dashboard-copy,
.dashboard-inline .summary-copy {
  color: var(--muted);
}

.dashboard-stack,
.insight-stack,
.history-stack,
.review-stack,
.category-stack,
.metric-panel {
  display: grid;
  gap: 14px;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-chip,
.category-pill,
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.spotlight-card .metric-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.content-section {
  display: grid;
  gap: 18px;
}

.portal-hero,
.portal-section {
  padding: 24px;
}

.portal-hero {
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.2), transparent 24%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.portal-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.portal-hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.portal-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.portal-desc {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.portal-quick-row,
.portal-nav-row,
.portal-tag-row,
.portal-card-meta,
.portal-card-actions,
.portal-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-nav-row {
  margin-top: -2px;
}

.portal-tag {
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-weight: 700;
}

.portal-tag:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.portal-hero-side {
  display: grid;
  gap: 14px;
}

.portal-stat-card {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.08);
  display: grid;
  gap: 6px;
}

.portal-stat-card span,
.portal-card-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-card-badges-inline {
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: nowrap;
}

.portal-card-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-stat-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.portal-stat-card small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.portal-section {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 18px;
}

.portal-section-head {
  justify-content: space-between;
}

.portal-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.portal-section-head .summary-copy {
  max-width: 520px;
  margin: 0;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-card-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-card-grid-featured .portal-card {
  gap: 12px;
  padding: 18px;
}

.portal-card-grid-featured .portal-card-cover {
  min-height: 116px;
  padding: 16px;
}

.portal-card-grid-featured .portal-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-card-grid-featured .portal-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-card-grid-featured .portal-card-meta {
  font-size: 0.84rem;
}

.portal-card--featured-compact {
  gap: 10px;
  padding: 16px;
}

.portal-card--featured-compact .portal-card-cover {
  min-height: 112px;
  padding: 16px;
}

.portal-card--featured-compact .portal-card-actions {
  margin-top: 2px;
}

.portal-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.portal-card:not(.portal-card--featured-compact),
.portal-latest-card {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 12px;
  column-gap: 12px;
  padding: 20px;
}

.portal-card:hover,
.portal-latest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

.portal-card:hover .portal-card-cover,
.portal-latest-card:hover .portal-card-cover {
  transform: scale(1.01);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
}

.portal-card-cover {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #2563eb, #0f172a);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.portal-card-cover-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  appearance: none;
  text-align: left;
  font: inherit;
}

.portal-card-cover-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.portal-card:not(.portal-card--featured-compact) .portal-card-cover,
.portal-latest-card .portal-card-cover {
  min-height: 124px;
  padding: 16px;
}

.portal-card-cover::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 132px;
  height: 132px;
  border-radius: 26px;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.14);
}

.portal-card-cover-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 72%;
}

.portal-card-cover-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.portal-card-cover-copy strong {
  font-size: 1.28rem;
  line-height: 1.08;
}

.portal-card-cover-copy small {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.portal-card-cover-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.portal-card-thumb {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 44%;
  max-width: 220px;
  height: auto;
  z-index: 0;
  opacity: 0.92;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
  transition: transform 0.3s ease;
}

.portal-card:hover .portal-card-thumb,
.portal-latest-card:hover .portal-card-thumb {
  transform: translateY(-4px) scale(1.03);
}

.result-hero-artwork {
  width: 100%;
  max-width: 360px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(15, 23, 42, 0.14));
}

.portal-card-head {
  display: none;
}

.portal-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.22));
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.portal-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.portal-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-card-title-row h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-card-compact-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.75em;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.portal-card:not(.portal-card--featured-compact) > .portal-card-cover,
.portal-card:not(.portal-card--featured-compact) > h3,
.portal-card:not(.portal-card--featured-compact) > p,
.portal-card:not(.portal-card--featured-compact) > .portal-card-actions,
.portal-latest-card > .portal-card-cover,
.portal-latest-card > h3,
.portal-latest-card > p,
.portal-latest-card > .portal-card-actions {
  grid-column: 1 / -1;
}

.portal-card:not(.portal-card--featured-compact) > .portal-card-meta,
.portal-latest-card > .portal-card-meta {
  grid-column: 1;
  align-self: center;
}

.portal-card:not(.portal-card--featured-compact) > .portal-card-badges,
.portal-latest-card > .portal-card-badges {
  grid-column: 2;
  align-self: center;
  justify-content: flex-end;
  margin-left: auto;
}

.portal-card-theme-iq-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #2563eb, #0f172a);
}

.portal-card-theme-iq-raven .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #1d4ed8, #1e293b);
}

.portal-card-theme-iq-sequence .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f766e, #164e63);
}

.portal-card-theme-iq-logic .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #1d4ed8, #312e81);
}

.portal-card-theme-iq-verbal .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #7c3aed, #1e1b4b);
}

.portal-card-theme-iq-spatial .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f766e, #155e75);
}

.portal-card-theme-iq-figure .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #ea580c, #7c2d12);
}

.portal-card-theme-love-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #e11d48, #7f1d1d);
}

.portal-card-theme-love-commitment .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #be123c, #9f1239);
}

.portal-card-theme-love-cognition .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #f97316, #c2410c);
}

.portal-card-theme-love-structure .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #7c3aed, #5b21b6);
}

.portal-card-theme-love-interaction .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f766e, #115e59);
}

.portal-card-theme-social-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #0f766e, #1e293b);
}

.portal-card-theme-social-start .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #059669, #2563eb);
}

.portal-card-theme-social-maintain .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #c2410c, #7c3aed);
}

.portal-card-theme-social-adjust .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f4c81, #1e293b);
}

.portal-card-theme-family-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #b45309, #7c2d12);
}

.portal-card-theme-family-foundation .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #c2410c, #be185d);
}

.portal-card-theme-family-roles .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #7c3aed, #1d4ed8);
}

.portal-card-theme-family-balance .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f766e, #1e293b);
}

.portal-card-theme-study-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #1d4ed8, #312e81);
}

.portal-card-theme-study-launch .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #2563eb, #0f766e);
}

.portal-card-theme-study-execution .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #7c3aed, #1e3a8a);
}

.portal-card-theme-study-consolidation .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f766e, #164e63);
}

.portal-card-theme-lifestyle-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #0f766e, #115e59);
}

.portal-card-theme-lifestyle-rhythm .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0891b2, #1d4ed8);
}

.portal-card-theme-lifestyle-care .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #059669, #b45309);
}

.portal-card-theme-lifestyle-living .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0f4c81, #374151);
}

.portal-card-theme-consume-prime .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #be123c, #4c1d95);
}

.portal-card-theme-consume-planning .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #1d4ed8, #0f766e);
}

.portal-card-theme-consume-driving .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #db2777, #7c2d12);
}

.portal-card-theme-consume-calibration .portal-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #4c1d95, #1e293b);
}

.portal-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.portal-editorial-block {
  display: grid;
  gap: 14px;
}

.portal-editorial-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.portal-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-range-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-range-chip.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--primary-soft);
  color: var(--primary);
}

.portal-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-latest-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.portal-ranking-list {
  display: grid;
  gap: 12px;
}

.portal-ranking-item {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 251, 255, 0.94);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.portal-ranking-index {
  min-width: 64px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-ranking-copy {
  display: grid;
  gap: 4px;
}

.portal-ranking-copy strong {
  font-size: 1rem;
}

.portal-ranking-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-featured-strip {
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  padding-top: 18px;
}

.portal-love-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-love-summary-card,
.emotion-group-summary-card {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 251, 255, 0.92);
  display: grid;
  gap: 6px;
}

.portal-love-summary-card span,
.emotion-group-summary-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.portal-love-summary-card strong,
.emotion-group-summary-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.portal-love-summary-card small,
.emotion-group-summary-card small,
.emotion-group-summary-card em {
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.55;
}

.emotion-group-summary-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.emotion-group-summary-artwork {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
}

.portal-love-group {
  display: grid;
  gap: 14px;
}

.portal-love-group-head h3 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.7;
}

.portal-card-grid-love {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card-grid-love--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card-grid-love--1 {
  grid-template-columns: minmax(0, 1fr);
}

.emotion-group-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.emotion-sampling-card {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 251, 255, 0.92);
  display: grid;
  gap: 14px;
}

.emotion-sampling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.emotion-sampling-item {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: #fff;
  display: grid;
  gap: 6px;
}

.emotion-sampling-item strong {
  font-size: 0.96rem;
}

.emotion-sampling-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.emotion-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.emotion-plan-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 251, 255, 0.92);
  display: grid;
  gap: 10px;
}

.emotion-plan-card strong {
  font-size: 0.96rem;
}

.emotion-plan-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.emotion-plan-artwork {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.emotion-plan-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.emotion-plan-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.emotion-focus-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}

.emotion-focus-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.emotion-focus-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
  font-size: 0.82rem;
  font-weight: 800;
}

.emotion-focus-note {
  margin: 2px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.strategy-home {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.strategy-home-head h3 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
}

.strategy-home-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.strategy-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quick-card h4,
.benefit-card h4,
.split-panel h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-heading.compact h3 {
  font-size: 1.35rem;
}

.mode-grid,
.dimension-grid,
.timeline-grid,
.result-grid {
  display: grid;
  gap: 18px;
}

#modes-section {
  margin: 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.focus-card h4 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.focus-card-primary {
  border: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.08)),
    #fff;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.split-panel {
  padding: 26px;
}

.split-panel-dark {
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 24%),
    linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.split-panel-dark .eyebrow {
  color: #93c5fd;
}

.split-panel-dark h4 {
  color: #fff;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #dbeafe;
  line-height: 1.75;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #60a5fa;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.emotion-mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.emotion-mode-stage {
  display: grid;
  gap: 18px;
}

.emotion-mode-stage-head {
  display: none;
}

.emotion-mode-stage-head h3 {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 800;
}

.emotion-mode-stage-head .summary-copy {
  max-width: min(44ch, 100%);
}

.emotion-mode-groups {
  display: grid;
  gap: 18px;
}

.emotion-mode-group {
  padding: 24px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 30%),
    #fff;
}

.emotion-mode-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.emotion-mode-group-head .eyebrow {
  margin: 0;
  flex: 0 0 auto;
}

.emotion-mode-group-head h3 {
  flex: 1 1 420px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  margin-left: auto;
  max-width: min(56ch, 100%);
  text-align: right;
}

.emotion-mode-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.emotion-mode-group-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emotion-mode-group-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.emotion-mode-card {
  justify-items: start;
  text-align: left;
  gap: 12px;
}

.emotion-mode-card p {
  display: block;
}

.module-thumb-card {
  min-height: 100%;
}

.module-thumb-card .portal-card-cover {
  min-height: 136px;
}

.module-thumb-card .portal-card-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.module-thumb-card .solid-button {
  width: 100%;
}

.module-thumb-card-primary .portal-card-cover {
  min-height: 150px;
}

.mode-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 22px 18px 16px;
  border-radius: 10px;
  grid-template-rows: auto auto auto;
  text-align: center;
}

.mode-card-primary {
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.08)),
    #fff;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.14);
}

.mode-card-primary .mini-tag {
  background: rgba(255, 255, 255, 0.76);
}

.mode-card-primary .metric-chip {
  background: rgba(255, 255, 255, 0.72);
}

.mode-card-primary .solid-button {
  background: linear-gradient(135deg, var(--primary), #1677ff);
}

.mode-icon-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.mode-icon {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.mode-card h4,
.dimension-card h4,
.timeline-card h4,
.result-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.mode-card p,
.dimension-card p,
.timeline-card p,
.notice-panel p,
.insight-block p,
.review-meta,
.history-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.mode-card p {
  display: none;
}

.guide-shell {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.raven-shell {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.raven-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.raven-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.raven-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.raven-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.raven-card {
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  align-content: start;
  gap: 12px;
}

.raven-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.raven-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.guide-hero-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.guide-hero-side {
  display: grid;
  gap: 14px;
}

.guide-hero-art {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.92));
}

.guide-hero-artwork {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(15, 23, 42, 0.14));
}

.guide-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-stat-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 6px;
}

.guide-stat-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-stat-card strong {
  font-size: 1.18rem;
  line-height: 1.1;
}

.guide-stat-card-wide {
  grid-column: 1 / -1;
}

.guide-topic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-shell-emotion .guide-card-highlight,
.guide-shell-emotion .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(251, 113, 133, 0.08)),
    #fff;
}

.guide-shell-personality .guide-card-highlight,
.guide-shell-personality .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08)),
    #fff;
}

.guide-shell-career .guide-card-highlight,
.guide-shell-career .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(34, 197, 94, 0.08)),
    #fff;
}

.guide-shell-eq .guide-card-highlight,
.guide-shell-eq .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.08)),
    #fff;
}

.guide-shell-anxiety .guide-card-highlight,
.guide-shell-anxiety .guide-stat-card-wide,
.guide-shell-emotion_stability .guide-card-highlight,
.guide-shell-emotion_stability .guide-stat-card-wide,
.guide-shell-resilience .guide-card-highlight,
.guide-shell-resilience .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.08)),
    #fff;
}

.guide-shell-sleep .guide-card-highlight,
.guide-shell-sleep .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(56, 189, 248, 0.08)),
    #fff;
}

.guide-shell-procrastination .guide-card-highlight,
.guide-shell-procrastination .guide-stat-card-wide,
.guide-shell-discipline .guide-card-highlight,
.guide-shell-discipline .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(59, 130, 246, 0.08)),
    #fff;
}

.guide-shell-decision_style .guide-card-highlight,
.guide-shell-decision_style .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(244, 63, 94, 0.08)),
    #fff;
}

.guide-shell-burnout .guide-card-highlight,
.guide-shell-burnout .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(249, 115, 22, 0.08)),
    #fff;
}

.guide-shell-attachment_style .guide-card-highlight,
.guide-shell-attachment_style .guide-stat-card-wide,
.guide-shell-relationship_boundary .guide-card-highlight,
.guide-shell-relationship_boundary .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(251, 113, 133, 0.08)),
    #fff;
}

.guide-shell-social .guide-card-highlight,
.guide-shell-social .guide-stat-card-wide,
.guide-shell-family .guide-card-highlight,
.guide-shell-family .guide-stat-card-wide,
.guide-shell-study .guide-card-highlight,
.guide-shell-study .guide-stat-card-wide,
.guide-shell-lifestyle .guide-card-highlight,
.guide-shell-lifestyle .guide-stat-card-wide,
.guide-shell-consumption .guide-card-highlight,
.guide-shell-consumption .guide-stat-card-wide,
.guide-shell-parenting .guide-card-highlight,
.guide-shell-parenting .guide-stat-card-wide,
.guide-shell-friendship .guide-card-highlight,
.guide-shell-friendship .guide-stat-card-wide,
.guide-shell-growth .guide-card-highlight,
.guide-shell-growth .guide-stat-card-wide,
.guide-shell-execution .guide-card-highlight,
.guide-shell-execution .guide-stat-card-wide,
.guide-shell-stress .guide-card-highlight,
.guide-shell-stress .guide-stat-card-wide,
.guide-shell-time .guide-card-highlight,
.guide-shell-time .guide-stat-card-wide,
.guide-shell-communication .guide-card-highlight,
.guide-shell-communication .guide-stat-card-wide,
.guide-shell-money .guide-card-highlight,
.guide-shell-money .guide-stat-card-wide,
.guide-shell-leadership .guide-card-highlight,
.guide-shell-leadership .guide-stat-card-wide,
.guide-shell-teamwork .guide-card-highlight,
.guide-shell-teamwork .guide-stat-card-wide {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08)),
    #fff;
}

.guide-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  align-content: start;
  gap: 12px;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.guide-card-highlight {
  border: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.08)),
    #fff;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
}

.guide-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.dimension-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bank-shell {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.bank-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.bank-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.bank-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bank-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.bank-search {
  flex: 1;
  min-width: min(100%, 320px);
}

.bank-search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.bank-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

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

.bank-tab {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
}

.bank-tab.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--primary-soft);
  color: var(--primary);
}

.bank-list {
  display: grid;
  gap: 14px;
}

.bank-item {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  overflow: hidden;
}

.bank-summary {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.bank-summary::-webkit-details-marker {
  display: none;
}

.bank-summary-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-summary-title {
  font-size: 1.02rem;
  line-height: 1.65;
}

.bank-body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.bank-prompt-html {
  color: var(--ink-soft);
  line-height: 1.8;
}

.bank-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bank-option {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.bank-option.is-correct {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(240, 253, 244, 0.9);
}

.bank-option-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-page-label {
  color: var(--muted);
  font-weight: 700;
}

.bank-editor-card {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.bank-editor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.bank-editor-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.bank-editor-hero-art img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.bank-editor-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bank-editor-meta {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 251, 255, 0.92);
  display: grid;
  gap: 4px;
}

.bank-editor-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.bank-editor-meta strong {
  font-size: 1rem;
}

.bank-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-editor-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-editor-status {
  color: var(--muted);
  font-weight: 700;
}

.bank-editor-issues {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.bank-editor-issues ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.bank-editor-list {
  display: grid;
  gap: 14px;
}

.bank-editor-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.bank-editor-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-editor-chip-row,
.bank-editor-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bank-editor-field {
  display: grid;
  gap: 8px;
}

.bank-editor-field span {
  color: var(--ink-soft);
  font-weight: 700;
}

.bank-editor-field input,
.bank-editor-field select,
.bank-editor-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.bank-editor-field input::placeholder,
.bank-editor-field textarea::placeholder {
  color: #94a3b8;
}

.bank-editor-field textarea {
  min-height: 92px;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
}

.bank-editor-field input:focus,
.bank-editor-field select:focus,
.bank-editor-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.bank-editor-field-check {
  align-content: center;
}

.bank-editor-field-check input {
  width: 20px;
  height: 20px;
  padding: 0;
}

.bank-editor-preview {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.bank-editor-preview summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}

.bank-editor-preview pre {
  margin: 0;
  padding: 0 16px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.dimension-card,
.timeline-card,
.result-card,
.notice-panel,
.status-card,
.question-card,
.lock-card,
.auth-card,
.result-summary {
  padding: 26px;
}

.dimension-card,
.timeline-card,
.mode-card,
.result-card,
.status-card,
.question-card,
.lock-card,
.auth-card,
.result-summary {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.dimension-card:hover,
.timeline-card:hover,
.mode-card:hover,
.result-card:hover,
.status-card:hover,
.question-card:hover,
.lock-card:hover,
.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dimension-badge,
.timeline-index {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-soft), #eff6ff);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.notice-panel {
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(96, 165, 250, 0.05)),
    #fff;
}

.notice-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.test-layout,
.gate-layout {
  display: grid;
  gap: 15px;
}

.test-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.gate-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 430px);
}

.status-card {
  position: sticky;
  top: 108px;
  height: fit-content;
}

.mode-banner {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  border: 1px solid #dbeafe;
}

.mode-banner-copy {
  color: var(--muted);
  line-height: 1.72;
}

.progress-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.meta-label,
.question-id,
.history-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.progress-meta strong {
  font-size: 1.15rem;
}

.progress-track,
.bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
}

.progress-text {
  margin: 0 0 18px;
  color: var(--muted);
}

.question-map-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.question-map-card summary,
.review-item summary {
  cursor: pointer;
  font-weight: 700;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.map-button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--ink-soft);
}

.map-button.is-answered {
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--primary-soft);
  color: var(--primary);
}

.map-button.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.question-card {
  min-height: 560px;
  display: grid;
  align-content: start;
}

.question-topbar,
.category-header,
.history-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.question-category {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
}

.difficulty-badge {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.question-prompt {
  margin: 0 0 14px;
  font-size: 1.12rem;
  line-height: 1.82;
}

.question-prompt:empty,
.question-stimulus:empty {
  display: none;
}

.question-stimulus {
  margin: 0 0 24px;
}

.stimulus-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.stimulus-sequence {
  justify-content: flex-start;
}

.stimulus-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 228px;
}

.stimulus-matrix-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 348px;
}

.stimulus-tile {
  display: grid;
  place-items: center;
}

.stimulus-divider {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 800;
}

.figure-svg {
  display: block;
  width: 96px;
  height: 96px;
}

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

.option-grid.option-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-button {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.option-button:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow-sm);
}

.option-button.is-selected {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.7), rgba(239, 246, 255, 0.9));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.option-index {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  flex: none;
}

.option-body {
  flex: 1;
  display: grid;
  gap: 10px;
}

.option-body.is-figure {
  align-items: start;
}

.option-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.option-copy {
  color: var(--ink-soft);
  line-height: 1.7;
}

.test-controls {
  margin-top: 26px;
  justify-content: space-between;
}

.lock-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
    #fff;
}

.lock-card h3,
.auth-card h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.summary-strip,
.summary-grid {
  display: grid;
  gap: 12px;
}

.summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-strip + .summary-grid {
  margin-top: 10px;
}

.summary-metric {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.summary-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-metric strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.3;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

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

.auth-form.has-error .input-row input,
.auth-form.has-error .input-row select {
  border-color: rgba(217, 45, 32, 0.45);
}

.input-row {
  display: grid;
  gap: 8px;
}

.input-row span {
  font-weight: 700;
}

.input-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.input-row-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

.input-row input,
.input-row select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.input-row input:focus,
.input-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.auth-form.has-error .input-row input:focus,
.auth-form.has-error .input-row select:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}

.auth-feedback {
  margin: -2px 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-feedback.warn {
  border-color: rgba(217, 45, 32, 0.18);
  background: rgba(217, 45, 32, 0.08);
  color: #b42318;
}

.auth-feedback.success {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.auth-captcha-stack {
  display: grid;
  gap: 12px;
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-captcha-preview {
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 52px;
  display: grid;
  place-items: center;
}

.auth-captcha-preview svg {
  display: block;
  width: 180px;
  height: 52px;
}

.auth-captcha-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-captcha-refresh {
  min-height: 42px;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.text-button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.profile-shell,
.profile-shell-empty {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.profile-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid-dual {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

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

.recovery-shell {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.recovery-step-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.recovery-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.recovery-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.recovery-step strong {
  font-size: 0.95rem;
}

.recovery-step.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.recovery-step.is-done {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.recovery-card {
  min-height: 100%;
}

.recovery-card-locked {
  border-style: dashed;
  opacity: 0.92;
}

.recovery-placeholder {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
}

.recovery-placeholder strong {
  color: var(--ink);
}

.profile-kv-list {
  display: grid;
  gap: 12px;
}

.profile-kv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.profile-kv-item span {
  color: var(--muted);
}

.profile-kv-item strong {
  color: var(--ink);
  text-align: right;
}

.profile-shell-empty .hero-actions {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .profile-summary-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-kv-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.result-summary {
  display: grid;
  gap: 18px;
}

.result-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.result-hero-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.score-hero {
  padding: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.score-hero p,
.result-kicker {
  margin: 0 0 10px;
  color: rgba(219, 234, 254, 0.8);
}

.score-hero h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.score-hero strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
}

.score-hero-meta {
  display: inline-block;
  margin-top: 16px;
  color: rgba(226, 232, 240, 0.84);
}

.result-hero-aside {
  display: grid;
  gap: 14px;
}

.result-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result-metric-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.result-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.result-metric-card strong {
  font-size: 1.2rem;
}

.result-summary-copy {
  line-height: 1.8;
}

.result-note-card {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.difficulty-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.difficulty-stack {
  display: grid;
  gap: 12px;
}

.difficulty-row {
  display: grid;
  gap: 8px;
}

.difficulty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.raven-summary-card,
.offer-card {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.report-paywall-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(96, 165, 250, 0.08)),
    #fff;
}

.ranking-shell {
  display: grid;
  gap: 15px;
  padding: 10px;
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 26%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.96));
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ranking-hero-copy {
  display: grid;
  gap: 10px;
}

.ranking-hero-copy .guide-title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.ranking-hero-copy .summary-copy {
  max-width: 76ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.ranking-hero-actions {
  justify-content: flex-end;
}

#ranking-view .hero-actions {
  display: none;
}

.ranking-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.ranking-filter-group {
  display: grid;
  gap: 14px;
  min-height: 152px;
  align-content: start;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
  box-shadow: var(--shadow-sm);
}

.ranking-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-filter-head strong {
  font-size: 1rem;
}

.ranking-filter-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ranking-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ranking-filter-chip {
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ranking-filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.ranking-summary-card {
  display: grid;
}

.ranking-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 16px;
}

.ranking-stat-card,
.ranking-refresh-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94));
  box-shadow: var(--shadow-sm);
}

.ranking-stat-card-primary {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.04)),
    rgba(255, 255, 255, 0.96);
}

.ranking-stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ranking-stat-card strong,
.ranking-refresh-card strong {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.ranking-refresh-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.ranking-refresh-card strong {
  font-size: 1.16rem;
  line-height: 1.3;
}

.ranking-board {
  display: grid;
  gap: 20px;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ranking-podium-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 255, 0.96));
  box-shadow: var(--shadow-sm);
}

.ranking-podium-card h3 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
}

.ranking-podium-card strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.ranking-podium-1 {
  border-color: rgba(234, 179, 8, 0.34);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 219, 0.96), rgba(255, 255, 255, 0.97));
  box-shadow: 0 20px 46px rgba(234, 179, 8, 0.14);
}

.ranking-podium-2 {
  border-color: rgba(59, 130, 246, 0.18);
}

.ranking-podium-3 {
  border-color: rgba(148, 163, 184, 0.2);
}

.ranking-podium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.ranking-rank-badge-1 {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.28), rgba(255, 255, 255, 0.88));
  color: #8a5a00;
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.2);
}

.ranking-rank-badge-2 {
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.46), rgba(255, 255, 255, 0.9));
}

.ranking-rank-badge-3 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.48), rgba(255, 255, 255, 0.9));
}

.ranking-user-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.ranking-user-copy {
  display: grid;
  gap: 6px;
}

.ranking-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ranking-user-meta .summary-copy {
  margin: 0;
}

.ranking-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.ranking-avatar-1 {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #3f2d00;
}

.ranking-avatar-2 {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  color: #334155;
}

.ranking-avatar-3 {
  background: linear-gradient(135deg, #c2410c, #fdba74);
  color: #7c2d12;
}

.ranking-avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: none;
}

.ranking-medal-icon {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.14));
}

.ranking-score-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-score-row span {
  color: var(--ink-soft);
  font-weight: 700;
}

.ranking-podium-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ranking-inline-metric {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.ranking-inline-metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-inline-metric strong {
  font-size: 1.08rem;
}

.ranking-list-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96));
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-list-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.2fr) minmax(180px, 0.9fr) 136px;
  gap: 14px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ranking-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.2fr) minmax(180px, 0.9fr) 136px;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ranking-row.is-top {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(96, 165, 250, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.ranking-row-rank {
  display: grid;
  place-items: center;
}

.ranking-row-rank span {
  min-width: 60px;
  min-height: 60px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.ranking-row-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ranking-row-location {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-row-location span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ranking-row-location strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.98rem;
}

.ranking-row-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ranking-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-row-copy strong {
  font-size: 1.02rem;
}

.ranking-row-copy .history-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.ranking-row-meta .metric-chip {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #f8fbff;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.ranking-row-score {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.ranking-row-score span,
.ranking-row-score small {
  color: var(--muted);
}

.ranking-row-score strong {
  font-size: 1.78rem;
  line-height: 1;
}

.payment-status-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(96, 165, 250, 0.08));
}

.native-pay-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.native-pay-panel-inline {
  margin-top: 8px;
}

.native-pay-code {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.native-pay-code img {
  width: min(280px, 100%);
  height: auto;
  display: block;
}

.raven-summary-card {
  display: grid;
  gap: 14px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.offer-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.offer-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.offer-card-premium {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(96, 165, 250, 0.1));
}

.rights-table-card,
.orders-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.rights-table {
  display: grid;
  gap: 8px;
}

.rights-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 120px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.rights-head {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(96, 165, 250, 0.1));
  border-color: rgba(37, 99, 235, 0.14);
}

.rights-row span {
  color: var(--ink-soft);
}

.orders-stack {
  display: grid;
  gap: 12px;
}

.order-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

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

.category-row {
  display: grid;
  gap: 8px;
}

.result-card-head,
.review-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.breakdown-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.breakdown-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.breakdown-pill span {
  color: var(--muted);
  font-size: 0.84rem;
}

.breakdown-pill strong {
  font-size: 1.08rem;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
}

.insight-block,
.history-item,
.review-item,
.placeholder-card,
.locked-report-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.locked-report-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(96, 165, 250, 0.08)),
    #fff;
}

.locked-report-actions {
  display: flex;
  justify-content: flex-start;
}

.unlock-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.unlock-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
}

.price-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.price-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.price-card strong {
  font-size: 2rem;
  line-height: 1;
}

.price-card small {
  color: var(--muted);
}

.history-item button {
  all: unset;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.history-item.is-active {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--primary-soft);
}

.history-item strong {
  display: block;
  margin-bottom: 8px;
}

.comparison-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 0;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(96, 165, 250, 0.08));
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.comparison-metric {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.comparison-metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.comparison-metric strong {
  font-size: 1.18rem;
}

.review-item {
  padding: 0;
  overflow: hidden;
}

.review-item summary {
  padding: 16px;
  list-style: none;
}

.review-item summary::-webkit-details-marker {
  display: none;
}

.review-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

#review-panel {
  min-height: 100%;
}

.review-stimulus {
  display: grid;
  justify-content: start;
}

.review-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-answer-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.review-answer-box strong {
  font-size: 0.95rem;
}

.result-mini-option {
  display: grid;
  gap: 8px;
}

.result-mini-option .option-visual {
  width: fit-content;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.toast-layer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: rise-in 0.22s ease;
}

.toast.info {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.toast.warn {
  background: linear-gradient(135deg, #f97316, var(--warning));
}

.toast.success {
  background: linear-gradient(135deg, #16a34a, var(--success));
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.modal-shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  padding: 22px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-card-compact {
  width: min(420px, calc(100vw - 24px));
  justify-items: center;
  text-align: center;
}

.modal-card-strategy {
  width: min(760px, calc(100vw - 24px));
}

.modal-card-confirm {
  width: min(520px, calc(100vw - 24px));
  gap: 16px;
}

.confirm-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.confirm-actions {
  justify-content: flex-end;
}

.strategy-group {
  display: grid;
  gap: 12px;
}

.strategy-label {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.strategy-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategy-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  color: var(--ink-soft);
}

.strategy-chip span {
  font-weight: 800;
}

.strategy-chip small {
  font-size: 0.85rem;
  color: var(--muted);
}

.strategy-chip.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--primary-soft);
  color: var(--primary);
}

.modal-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .portal-hero-main,
  .portal-editorial-layout,
  .portal-card-grid,
  .portal-card-grid-featured,
  .portal-card-grid-love,
  .portal-latest-grid,
  .emotion-mode-group-grid,
  .emotion-group-summary,
  .emotion-sampling-grid,
  .emotion-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-editor-hero,
  .bank-editor-meta-grid {
    grid-template-columns: 1fr;
  }

  .portal-card-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-hero,
  .portal-section {
    padding: 18px;
  }

  .portal-hero-main,
  .portal-editorial-layout,
  .portal-card-grid,
  .portal-card-grid-featured,
  .portal-card-grid-love,
  .portal-latest-grid,
  .emotion-mode-group-grid,
  .emotion-group-summary,
  .emotion-sampling-grid,
  .emotion-plan-grid,
  .portal-love-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-ranking-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .portal-section-head {
    align-items: flex-start;
  }

  .portal-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card-actions .solid-button,
  .portal-card-actions .ghost-button {
    width: 100%;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.site-footer {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 8px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer-desktop {
  display: block;
}

.site-footer-mobile {
  display: none;
}

.site-footer-separator {
  margin: 0 0.15em;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .mode-grid,
  .dimension-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-hero-flow {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raven-grid {
    grid-template-columns: 1fr;
  }

  .raven-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-footer-desktop {
    display: none;
  }

  .site-footer-mobile {
    display: block;
  }
}

@media (max-width: 1024px) {
  .hero-panel,
  .gate-layout,
  .result-hero-layout,
  .test-layout,
  .bank-topbar,
  .split-layout,
  .guide-hero,
  .raven-hero,
  .timeline-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel--module .hero-copy {
    min-height: 0;
  }

  .hero-panel--module .hero-actions {
    margin-top: 0;
    padding-top: 0;
    transform: none;
  }

  .hero-panel--module .hero-social {
    transform: none;
  }

  .hero-panel--module .hero-social-copy {
    gap: 4px;
    transform: none;
  }

  .hero-side {
    min-height: 0;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .result-metric-grid,
  .breakdown-callout,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-refresh-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }

  .ranking-list-head {
    display: none;
  }

  .ranking-row-location {
    grid-column: 2 / 4;
  }

  .ranking-row-score {
    grid-column: 2 / 4;
    justify-items: start;
    text-align: left;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emotion-mode-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-home-grid,
  .unlock-list {
    grid-template-columns: 1fr;
  }

  .bank-stat-grid,
  .bank-option-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    position: static;
  }

  .map-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    margin: 8px auto 28px;
  }

  .topbar {
    top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px;
    border-radius: 10px;
  }

  .brand-block {
    width: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy .brand-kicker,
  .brand-note {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 12px;
  }

  .topbar.is-mobile-menu-open .mobile-menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.is-mobile-menu-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-mobile-menu-open .mobile-menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.82);
    overflow: visible;
  }

  .topbar.is-mobile-menu-open .topbar-actions {
    display: grid;
  }

  .topnav,
  .userbar {
    display: contents;
  }

  .topnav > .nav-button,
  .userbar > *,
  .topnav > .nav-dropdown {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    flex: none;
    white-space: nowrap;
  }

  .topnav .nav-button,
  .topnav .tab-button,
  .userbar > * {
    padding: 10px 8px;
    font-size: 0.88rem;
    line-height: 1.1;
    text-align: center;
    justify-content: center;
  }

  .user-pill {
    grid-column: 1 / -1;
    min-height: 38px;
    max-width: 100%;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bank-editor-grid {
    grid-template-columns: 1fr;
  }

  .ranking-hero,
  .ranking-summary-card {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-shell {
    padding: 20px;
  }

  .ranking-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ranking-hero-copy .guide-title {
    max-width: none;
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .ranking-filters,
  .ranking-summary-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-row-rank {
    justify-content: start;
  }

  .ranking-row-location,
  .ranking-row-user {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ranking-row-location {
    grid-column: auto;
  }

  .ranking-row-score {
    grid-column: auto;
  }

  .nav-dropdown {
    display: block;
    position: relative;
  }

  .nav-dropdown > .nav-button {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    max-height: min(52vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    display: grid;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-panel,
  .mode-card,
  .dimension-card,
  .timeline-card,
  .focus-card,
  .guide-shell,
  .guide-card,
  .notice-panel,
  .status-card,
  .question-card,
  .lock-card,
  .auth-card,
  .result-card,
  .profile-shell,
  .profile-shell-empty,
  .profile-card,
  .recovery-shell,
  .bank-shell,
  .result-summary {
    padding: 20px;
  }

  .guide-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .stat-strip,
  .summary-strip,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-grid,
  .dimension-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .map-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .test-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-answer-grid {
    grid-template-columns: 1fr;
  }

  #submit-button {
    grid-column: 1 / -1;
  }

  .module-hero-overview {
    padding: 16px;
  }

  .module-hero-band-shell {
    padding: 16px;
  }

  .module-hero-feature {
    min-height: 168px;
  }

  .module-hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .module-hero-flow {
    grid-template-columns: 1fr;
  }

  .emotion-mode-stage-head {
    align-items: start;
  }

  .emotion-mode-group-grid,
  .emotion-mode-group-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.72rem;
  }

  .stat-strip,
  .summary-strip,
  .summary-grid,
  .progress-meta,
  .test-controls {
    grid-template-columns: 1fr;
  }

  .result-metric-grid,
  .breakdown-callout,
  .offer-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .guide-stat-grid {
    grid-template-columns: 1fr;
  }

  .ranking-podium-metrics,
  .ranking-row-user {
    grid-template-columns: 1fr;
  }

  .ranking-row-score strong {
    font-size: 1.56rem;
  }

  .rights-row {
    grid-template-columns: 1fr;
  }

  .bank-editor-actions {
    align-items: stretch;
  }

  .bank-editor-actions > button {
    width: 100%;
  }

  .map-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .option-button {
    padding: 14px;
  }

  .option-grid.option-grid-wide {
    grid-template-columns: 1fr;
  }

  .stimulus-shell {
    padding: 12px;
  }

  .figure-svg {
    width: 80px;
    height: 80px;
  }
}
