:root {
  --ink: #16171f;
  --muted: #555966;
  --paper: #fbfbff;
  --panel: #ffffff;
  --line: rgba(22, 23, 31, 0.13);
  --yellow: #ffd166;
  --green: #2fbf83;
  --blue: #35a7d6;
  --pink: #f25f7c;
  --orange: #f28c38;
  --violet: #7157d9;
  --red: #d94646;
  --shadow: 0 22px 58px rgba(22, 23, 31, 0.14);
  --site-header-height: 64px;
  --report-sticky-gap: 8px;
  --inline-report-nav-top: calc(var(--site-header-height) + var(--report-sticky-gap));
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #fbfbff 0%, #edf8f5 44%, #fff8ec 100%);
  color: var(--ink);
  font-family:
    Pretendard,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.58;
}

main {
  min-width: 0;
}

.page-section {
  min-width: 0;
}

.page-section[hidden] {
  display: none !important;
}

.page-section.is-active-page {
  animation: pageFade 160ms ease both;
}

@keyframes pageFade {
  from {
    opacity: 0.82;
  }

  to {
    opacity: 1;
  }
}

.quick-report-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 8px max(12px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px));
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 38px rgba(22, 23, 31, 0.12);
  backdrop-filter: blur(16px);
}

.quick-report-bar button,
.quick-report-bar a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  overflow: hidden;
  white-space: nowrap;
}

.quick-report-bar button:nth-child(2) {
  background: #3b82f6;
}

.quick-report-bar a {
  background: #eef9fd;
  color: #126985;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  word-break: keep-all;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.58);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(128px, max-content) minmax(0, 1fr) minmax(112px, auto) auto auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 255, 0.88);
  backdrop-filter: blur(18px);
}

.site-header > * {
  min-width: 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 950;
}

.brand span:not(.brand-logo) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--yellow);
}

.nav-links {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(max-content, 1fr);
  gap: clamp(8px, 1.3vw, 22px);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  justify-content: stretch;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active-route {
  color: var(--ink);
}

.nav-links a.is-active-route {
  border-bottom-color: var(--yellow);
}

.is-hidden {
  display: none !important;
}

.profile-chip {
  min-height: 36px;
  max-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.profile-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-mode-badge {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(47, 191, 131, 0.24);
  border-radius: 8px;
  background: #eefaf4;
  color: #0f6844;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

body[data-access-mode="paid"] .access-mode-badge {
  border-color: rgba(47, 191, 131, 0.34);
  background: #e7fbf1;
}

body[data-access-mode="counselor"] .access-mode-badge {
  border-color: rgba(113, 87, 217, 0.26);
  background: #f4efff;
  color: #4c3aa3;
}

body[data-access-mode="developer"] .access-mode-badge {
  border-color: rgba(22, 23, 31, 0.18);
  background: #fff9db;
  color: #5c4512;
}

.code-gate-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(22, 23, 31, 0.14);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--yellow);
}

.code-gate-button:focus-visible,
.code-gate-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 1.02fr);
  gap: clamp(14px, 2.4vw, 32px);
  align-items: center;
  padding: clamp(12px, 2.4vw, 28px) clamp(16px, 4vw, 56px) clamp(14px, 2.6vw, 28px);
}

#ambientCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.modal-open #ambientCanvas {
  visibility: hidden;
}

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

.hero-copy {
  min-width: 0;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
strong {
  overflow-wrap: normal;
  word-break: keep-all;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(1.8rem, 3.35vw, 3.05rem);
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 3.35rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
}

.hero-copy .test-version-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(35, 167, 137, 0.22);
  border-radius: 8px;
  background: rgba(237, 250, 246, 0.78);
  color: #236b5f;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-actions,
.profile-actions,
.result-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.home-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
  margin-top: 12px;
}

.home-insight-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(22, 23, 31, 0.06);
}

.home-insight-grid span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.home-insight-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.22;
}

.home-insight-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.34;
}

.home-insight-grid b {
  color: var(--ink);
}

.sample-report-section,
.plan-section,
.trust-section,
.growth-section {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.sample-report-section {
  background: #fff;
}

.plan-section {
  background: #eef9fd;
}

.trust-section {
  background: #fbfbff;
}

.growth-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact-heading {
  display: grid;
  gap: 8px;
  max-width: 920px;
}

.compact-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.compact-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.sample-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
  gap: 12px;
  margin-top: 18px;
}

.growth-strategy-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.growth-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
}

.growth-main-card,
.coverage-card,
.growth-idea-board details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 23, 31, 0.07);
}

.growth-main-card,
.coverage-card {
  padding: 18px;
}

.growth-main-card h3,
.coverage-card h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.growth-main-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.growth-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.growth-focus-grid div {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: #f8fafc;
}

.growth-focus-grid strong,
.growth-focus-grid span {
  display: block;
}

.growth-focus-grid strong {
  font-size: 0.9rem;
}

.growth-focus-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.coverage-grid button {
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fbfbff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.coverage-grid button.is-done {
  border-color: rgba(47, 191, 131, 0.3);
  background: #eefaf4;
}

.coverage-grid strong,
.coverage-grid span {
  display: block;
}

.coverage-grid strong {
  font-size: 0.86rem;
}

.coverage-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
}

.growth-idea-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.growth-idea-board details {
  overflow: hidden;
  box-shadow: none;
}

.growth-idea-board summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  cursor: pointer;
}

.growth-idea-board summary span {
  color: var(--muted);
  font-size: 0.75rem;
}

.growth-idea-board ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 13px 13px 32px;
}

.growth-idea-board li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.growth-idea-board li strong,
.growth-idea-board li span {
  display: block;
}

.growth-idea-board li strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.sample-report-card,
.plan-card,
.trust-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 23, 31, 0.07);
}

.sample-report-card {
  padding: 18px;
}

.sample-report-card.main-preview {
  grid-row: span 2;
  border-top: 6px solid var(--violet);
  background: #f6f3ff;
}

.sample-report-card h3,
.plan-card h3,
.trust-grid h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.sample-report-card p,
.plan-card li,
.trust-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.report-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-preview-list div {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.report-preview-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.report-preview-list strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.28;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

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

.premium-card {
  border-top: 6px solid var(--yellow);
  background: #111827;
  color: #fff;
}

.premium-card li {
  color: rgba(255, 255, 255, 0.9);
}

.premium-card .plan-badge {
  background: var(--yellow);
  color: var(--ink);
}

.plan-badge {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eefaf4;
  color: #19724d;
  font-size: 0.76rem;
  font-weight: 950;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 20px;
  font-weight: 800;
}

.plan-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.plan-card button {
  width: fit-content;
  margin-top: 4px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trust-grid article {
  padding: 16px;
}

.trust-grid span {
  display: inline-grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
}

.trust-grid p {
  margin: 8px 0 0;
}

.button,
.hero-panel button,
.test-card button,
.test-more-card button,
.recommend-card button,
.result-actions button,
.report-actions button,
.category-tabs button,
.icon-button,
.history-item button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button,
.result-actions button,
.report-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.button.primary,
.hero-panel button,
.test-card button,
.test-more-card button,
.recommend-card button,
.result-actions .primary,
.report-actions .primary,
.history-item button {
  background: var(--ink);
  color: #fff;
  box-shadow: 7px 7px 0 var(--yellow);
}

.button.secondary,
.result-actions .secondary,
.report-actions .secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button:hover,
.button:focus-visible,
.hero-panel button:hover,
.hero-panel button:focus-visible,
.test-card button:hover,
.test-card button:focus-visible,
.test-more-card button:hover,
.test-more-card button:focus-visible,
.recommend-card button:hover,
.recommend-card button:focus-visible,
.result-actions button:hover,
.result-actions button:focus-visible,
.report-actions button:hover,
.report-actions button:focus-visible,
.history-item button:hover,
.history-item button:focus-visible {
  transform: translateY(-2px);
}

.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  min-width: 0;
}

.hero-panel {
  grid-column: 1 / -1;
}

.hero-snapshot {
  grid-column: 1;
}

.hero-next-actions {
  grid-column: 2;
}

.hero-panel,
.hero-snapshot,
.hero-next-actions,
.recommend-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel,
.hero-snapshot,
.hero-next-actions {
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(22, 23, 31, 0.1);
}

.hero-panel span,
.card-badge,
.severity-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef9fd;
  color: #126985;
  font-size: 0.76rem;
  font-weight: 950;
}

.ai-badge {
  background: #111827;
  color: #fff;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  line-height: 1.18;
}

.hero-panel p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-panel button,
.recommend-card button {
  width: 100%;
  margin-top: 8px;
}

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

.hero-stat {
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(22, 23, 31, 0.1);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat span,
.hero-stat small,
.mini-board-title span,
.hero-next-actions p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-stat span,
.hero-stat strong,
.hero-stat small,
.mini-board-title strong,
.mini-board-title span,
.mini-signal-head span,
.signal-head span,
.family-graph-row span,
.family-graph-row strong,
.pair-outlook span,
.pair-outlook strong {
  min-width: 0;
}

.mini-board-title strong,
.hero-next-actions strong,
.test-card h3,
.recommend-card h3,
.question-title,
.report-title {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.mini-signal-head span:first-child,
.signal-head span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
  line-height: 1.05;
}

.hero-stat small {
  display: block;
  margin-top: 4px;
}

.mini-signal-board {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mini-board-title,
.mini-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.mini-signal-row {
  display: grid;
  gap: 5px;
}

.mini-signal-head {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.mini-signal-head span:last-child {
  color: var(--muted);
}

.mini-signal-track {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.08);
}

.mini-signal-track span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--color);
}

.hero-next-actions {
  display: grid;
  gap: 12px;
}

.hero-next-actions.is-priority {
  border-color: rgba(113, 87, 217, 0.24);
  background: #f8f5ff;
}

.home-priority-main {
  display: grid;
  gap: 6px;
}

.home-priority-main .card-badge {
  background: #111827;
  color: #fff;
}

.hero-next-actions p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-next-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-next-buttons button {
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.15;
}

.hero-next-buttons button.secondary {
  border: 1px solid rgba(22, 23, 31, 0.12);
  background: #fff;
  color: var(--ink);
}

.home-priority-secondary {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.home-priority-secondary button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.home-priority-secondary span,
.home-priority-secondary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-priority-secondary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.home-priority-secondary strong {
  font-size: 0.82rem;
}

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

.recommend-priority-strip article {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.recommend-priority-strip article.is-primary {
  border-color: rgba(255, 209, 102, 0.5);
  background: #fff8db;
  color: var(--ink);
}

.recommend-priority-strip .card-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.recommend-priority-strip article.is-primary .card-badge {
  background: #16171f;
  color: #fff;
}

.recommend-priority-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.2;
}

.recommend-priority-strip p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommend-priority-strip article.is-primary p {
  color: #4b5563;
}

.recommend-priority-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommend-priority-buttons button {
  min-height: 38px;
  margin-top: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1.15;
}

.recommend-priority-buttons button.secondary {
  border: 1px solid rgba(22, 23, 31, 0.12);
  background: #fff;
  color: var(--ink);
}

.safety-note {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff8ec;
}

.safety-note strong {
  color: #8a4c00;
}

.safety-note p {
  margin: 0;
  color: #5d4b31;
  font-size: 0.9rem;
}

.profile-section,
.family-section,
.translator-section,
.counselor-section,
.test-mode-section,
.recommend-section,
.history-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: clamp(38px, 5vw, 68px) clamp(18px, 5vw, 72px);
}

.profile-section {
  background: #fff;
}

.profile-report-pane {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  scroll-margin-top: 88px;
}

.profile-section.has-active-report .profile-report-pane {
  grid-column: 1 / -1;
  grid-row: 1;
  scroll-margin-top: 12px;
}

.profile-section.has-active-report,
.profile-section.is-inline-report-view {
  padding-top: clamp(10px, 2vw, 22px);
}

.profile-section.has-active-report .profile-copy,
.profile-section.has-active-report > .signal-board,
body[data-inline-report="combined"] .profile-section .profile-copy,
body[data-inline-report="combined"] .profile-section > .signal-board {
  display: none;
}

.profile-section > .signal-board {
  grid-column: 2;
  grid-row: 1;
}

.profile-report-pane:empty {
  display: none;
}

.inline-report-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.inline-report-shell.has-fixed-report-nav {
  padding-top: var(--report-nav-placeholder-height, 76px);
}

.inline-report-shell > *,
.inline-report-shell .report-card,
.inline-report-shell .result-card,
.inline-report-shell .report-block,
.inline-report-shell .report-section-nav {
  max-width: 100%;
  min-width: 0;
}

.inline-report-shell .report-section-nav {
  --report-nav-top: var(--inline-report-nav-top);
  top: var(--report-nav-top);
  z-index: 45;
}

.inline-report-shell .report-section-nav.is-report-nav-fixed {
  position: fixed;
  top: var(--report-nav-fixed-top, 0px) !important;
  left: var(--report-nav-fixed-left, 0px) !important;
  width: var(--report-nav-fixed-width, 100%) !important;
  max-width: calc(100vw - 16px);
  margin: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  z-index: 95;
  transform: translateY(-1px) translateZ(0);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: minmax(126px, max-content) minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand profile mode code"
      "nav nav nav nav";
    row-gap: 8px;
    padding: 9px clamp(14px, 3vw, 34px);
  }

  .brand {
    grid-area: brand;
  }

  .profile-chip {
    grid-area: profile;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .access-mode-badge {
    grid-area: mode;
  }

  .code-gate-button {
    grid-area: code;
  }

  .nav-links {
    grid-area: nav;
    grid-auto-flow: unset;
    grid-auto-columns: initial;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: clamp(6px, 1.5vw, 14px);
    padding-top: 4px;
    border-top: 1px solid rgba(22, 23, 31, 0.08);
  }

  body[data-inline-report="combined"] .inline-report-shell.has-fixed-report-nav .report-section-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0;
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    border-top: 0;
    border-radius: 0;
    z-index: 110;
    transform: translateY(-1px) translateZ(0);
  }
}

.inline-report-shell .report-anchor-section,
.inline-report-shell [data-report-anchor] {
  scroll-margin-top: calc(var(--inline-report-nav-top) + 104px);
}

.family-section {
  background: #eef9fd;
}

.translator-section {
  background: linear-gradient(180deg, #f7fbff, #fffaf3);
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: clamp(18px, 3vw, 36px);
}

.relationship-invite-section {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #f6f3ff, #ffffff);
}

.counselor-section {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.test-mode-section {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.profile-copy p:not(.eyebrow),
.family-copy p:not(.eyebrow),
.translator-copy p:not(.eyebrow),
.counselor-copy p:not(.eyebrow),
.test-mode-copy p:not(.eyebrow),
.recommend-section p,
.history-section p:not(.eyebrow) {
  color: var(--muted);
}

.profile-copy,
.family-copy,
.translator-copy,
.counselor-copy,
.test-mode-copy {
  min-width: 0;
}

.translator-copy {
  display: grid;
  max-width: 1040px;
  gap: 6px;
}

.translator-copy .profile-actions {
  margin-top: 4px;
}

.translator-copy .eyebrow {
  margin-bottom: 0;
}

.translator-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.7rem);
}

.translator-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
}

.family-small {
  margin-top: 18px;
  font-size: 0.95rem;
}

.family-board,
.family-members,
.translator-board,
.counselor-board,
.test-mode-board {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.translator-board {
  width: 100%;
}

.relationship-invite-panel,
.relationship-invite-card,
.personality-guide-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22, 23, 31, 0.07);
}

.relationship-invite-panel {
  display: grid;
  width: min(980px, 100%);
  gap: 14px;
}

.relationship-invite-card,
.personality-guide-card {
  display: grid;
  gap: 12px;
}

.relationship-invite-card h3,
.personality-guide-card h3,
.relationship-invite-panel h2 {
  margin: 4px 0;
}

.relationship-invite-card p,
.personality-guide-card p,
.relationship-invite-panel p {
  margin: 0;
  color: var(--muted);
}

.relationship-invite-actions,
.relationship-invite-tests,
.personality-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relationship-invite-actions button,
.relationship-invite-tests button,
.personality-guide-actions button {
  min-height: 40px;
}

.manual-readiness-grid {
  display: grid;
  gap: 8px;
}

.report-manual-card {
  border-color: rgba(47, 191, 131, 0.24);
}

.report-manual-card.is-compact {
  gap: 10px;
}

.manual-readiness-embed {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.manual-readiness-embed > .severity-badge {
  display: none;
}

.manual-readiness-embed h3 {
  margin: 0;
  font-size: 1rem;
}

.manual-readiness-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1fr) minmax(160px, 0.9fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(47, 191, 131, 0.18);
  border-radius: 8px;
  background: #f7fffb;
}

.manual-readiness-row span,
.manual-readiness-row strong,
.manual-readiness-row small {
  display: block;
}

.manual-readiness-row span,
.manual-readiness-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.32;
}

.manual-readiness-row strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.25;
}

.manual-readiness-row i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcefe8;
}

.manual-readiness-row b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #2fbf83;
}

.manual-readiness-row button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(47, 191, 131, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
}

.translator-manual-action {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(53, 167, 214, 0.2);
  border-radius: 8px;
  background: #f4fbfe;
}

.translator-manual-action h3,
.translator-manual-action p {
  margin: 0;
}

.translator-manual-action h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.28;
}

.translator-manual-action p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.translator-manual-targets {
  display: grid;
  gap: 8px;
}

.translator-manual-targets article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(53, 167, 214, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.translator-manual-targets span,
.translator-manual-targets strong,
.translator-manual-targets small {
  display: block;
  min-width: 0;
}

.translator-manual-targets span,
.translator-manual-targets small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.translator-manual-targets strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.translator-manual-targets i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9eef7;
}

.translator-manual-targets b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #35a7d6;
}

.translator-manual-targets button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(53, 167, 214, 0.26);
  border-radius: 8px;
  background: #fff;
  color: #075985;
  font-size: 0.76rem;
  font-weight: 900;
}

.relationship-invite-tests article {
  min-width: min(100%, 220px);
  flex: 1 1 220px;
  padding: 13px;
  border: 1px solid rgba(113, 87, 217, 0.14);
  border-radius: 8px;
  background: #fbf9ff;
}

.relationship-invite-tests strong,
.relationship-invite-tests span {
  display: block;
}

.relationship-invite-tests span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.family-card,
.family-member {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 23, 31, 0.06);
}

.family-card h3 {
  margin-top: 10px;
}

.family-card p {
  color: var(--muted);
}

.translator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.translator-priority-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 23, 31, 0.06);
}

.translator-priority-strip.is-relationship {
  border-color: rgba(113, 87, 217, 0.26);
  background: #f8f5ff;
}

.translator-priority-strip.is-inbox {
  border-color: rgba(47, 191, 131, 0.28);
  background: #f2fbf6;
}

.translator-priority-strip.is-context {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fff9ed;
}

.translator-priority-strip.is-quota {
  border-color: rgba(217, 70, 70, 0.22);
  background: #fff7f7;
}

.translator-priority-strip.is-guide {
  border-color: rgba(53, 167, 214, 0.26);
  background: #f4fbfd;
}

.translator-priority-strip strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 1.02rem;
  line-height: 1.24;
}

.translator-priority-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.translator-priority-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 148px;
}

.translator-priority-side b {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
}

.translator-priority-side button {
  min-height: 38px;
  white-space: nowrap;
}

.translator-left-panel,
.translator-chat-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.translator-left-panel {
  position: sticky;
  top: 84px;
}

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

.translator-overview-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(22, 23, 31, 0.05);
}

.translator-overview-grid span,
.translator-overview-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.translator-overview-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.translator-thread-rail {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(22, 23, 31, 0.05);
}

.translator-thread-rail > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.translator-thread-rail > div {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.translator-thread-rail button {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 118px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.translator-thread-rail button:hover,
.translator-thread-rail button:focus-visible {
  border-color: rgba(113, 87, 217, 0.32);
  background: #f7f4ff;
}

.translator-thread-rail strong,
.translator-thread-rail small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translator-thread-rail strong {
  font-size: 0.85rem;
}

.translator-thread-rail small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.translator-compose-card,
.translator-inbox-card,
.translator-history-card,
.translator-empty,
.translator-thread-card,
.translator-relationship-action,
.conversation-quota-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 23, 31, 0.06);
}

.translator-compose-card {
  display: grid;
  gap: 12px;
}

.translator-relationship-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 170px);
  gap: 12px;
  align-items: end;
}

.translator-relationship-action.is-priority {
  border-color: rgba(113, 87, 217, 0.26);
  background: #f8f5ff;
}

.translator-relationship-action h3 {
  margin: 6px 0 5px;
}

.translator-relationship-action p,
.translator-relationship-meta span,
.translator-relationship-meta small {
  color: var(--muted);
}

.translator-relationship-action p {
  margin: 0;
}

.translator-relationship-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.translator-relationship-meta strong,
.translator-relationship-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translator-relationship-meta span,
.translator-relationship-meta small {
  font-size: 0.76rem;
  font-weight: 900;
}

.translator-relationship-action button {
  grid-column: 1 / -1;
  width: 100%;
}

.translator-chat-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.translator-chat-panel-head h3 {
  margin: 6px 0 4px;
}

.translator-chat-panel-head p {
  margin: 0;
  color: var(--muted);
}

.translator-chat-panel-stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 7px;
}

.translator-chat-panel-stats span {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.translator-chat-panel-stats strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.translator-side-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.translator-inbox-card,
.translator-history-card {
  display: grid;
  gap: 12px;
}

.translator-compose-card h3,
.translator-inbox-card h3,
.translator-history-card h3,
.translator-thread-card h4 {
  margin: 4px 0;
}

.translator-card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.translator-card-title > strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
}

.translator-compose-card p,
.translator-empty p,
.translator-last-message,
.incoming-message p {
  color: var(--muted);
}

.conversation-quota-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(22, 23, 31, 0.05);
}

.conversation-quota-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.conversation-quota-card span,
.conversation-quota-card p,
.conversation-quota-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.conversation-quota-card strong {
  font-size: 0.94rem;
}

.conversation-quota-card i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 23, 31, 0.08);
}

.conversation-quota-card i b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.conversation-quota-card.is-blocked {
  border-color: rgba(217, 70, 70, 0.24);
  background: #fff7f7;
}

.conversation-quota-card.is-blocked i b {
  background: var(--red);
}

.conversation-quota-card p {
  margin: 0;
  line-height: 1.42;
}

.conversation-quota-card button {
  width: 100%;
  min-height: 40px;
}

.translator-contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.translator-contact-row button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.translator-contact-row button:hover,
.translator-contact-row button:focus-visible,
.translator-contact-row button.is-selected {
  border-color: rgba(113, 87, 217, 0.32);
  background: #f7f4ff;
}

.translator-contact-row strong,
.translator-contact-row span,
.translator-contact-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translator-contact-row strong {
  font-size: 0.92rem;
}

.translator-contact-row span,
.translator-contact-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.translation-field.compact-select {
  margin-top: -2px;
}

.translation-form-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.translation-form-steps span {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.translation-field,
.translation-reply-box {
  display: grid;
  gap: 7px;
}

.translation-field span,
.translation-reply-box span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
}

.translation-field select,
.translation-field textarea,
.translation-reply-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.translation-field textarea,
.translation-reply-box textarea {
  min-height: 92px;
  resize: vertical;
}

.translator-chat-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.translator-chat-input-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.translator-chat-input-row button {
  flex: 0 0 auto;
  min-width: 86px;
}

.translation-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.translation-template-row button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(113, 87, 217, 0.18);
  border-radius: 8px;
  background: #f7f4ff;
  color: #4c3aa3;
  font-size: 0.82rem;
  font-weight: 850;
}

.conversation-signal-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ecfdf5;
}

.conversation-signal-preview > div:first-child {
  display: grid;
  gap: 3px;
}

.conversation-signal-preview span {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
}

.conversation-signal-preview strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.conversation-signal-preview p,
.conversation-signal-preview small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.conversation-signal-preview.is-empty {
  border-color: rgba(22, 23, 31, 0.08);
  background: #f8fafc;
}

.conversation-signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-signal-chips span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 950;
}

.conversation-scene-chips span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 900;
}

.conversation-mind-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.conversation-mind-check-list article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #fff;
}

.conversation-mind-check-list article > span {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.72rem;
  font-weight: 950;
}

.conversation-mind-check-list article strong {
  font-size: 0.88rem;
}

.conversation-mind-check-list article p,
.conversation-mind-check-list article small {
  line-height: 1.42;
}

.conversation-signal-data,
.conversation-signal-questions {
  display: grid;
  gap: 6px;
}

.conversation-signal-data {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.conversation-signal-data strong {
  color: #0f766e;
}

.conversation-signal-questions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.conversation-signal-questions span {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.conversation-context-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #f0fdfa;
}

.conversation-context-brief span,
.conversation-context-brief small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.conversation-context-brief strong {
  color: #0f766e;
  font-size: 0.86rem;
  text-align: right;
}

.conversation-context-brief small {
  grid-column: 1 / -1;
  line-height: 1.35;
}

.translation-intent-check {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(242, 191, 87, 0.32);
  border-radius: 8px;
  background: #fffaf0;
}

.translation-intent-check h4,
.translation-intent-check p {
  margin: 0;
}

.translation-intent-check h4 {
  color: var(--ink);
}

.translation-intent-check p {
  color: var(--muted);
  line-height: 1.45;
}

.translation-context-meter {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.translation-context-meter div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.translation-context-meter span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
}

.translation-context-meter strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: right;
}

.translation-context-meter p {
  font-size: 0.78rem;
}

.translation-context-meter b {
  display: inline-flex;
  margin: 0 5px 4px 0;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff2d8;
  color: #7c4a03;
  font-size: 0.72rem;
}

.translation-ai-context-review,
.translation-ai-context-hint {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #f0fdfa;
}

.translation-ai-context-review span {
  display: block;
  margin-bottom: 4px;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 950;
}

.translation-ai-context-review p,
.translation-ai-context-hint {
  color: #115e59;
  font-size: 0.79rem;
  line-height: 1.45;
}

.translation-survey.compact {
  gap: 8px;
}

.translation-survey.compact fieldset {
  background: rgba(255, 255, 255, 0.82);
}

.translation-typing-state {
  display: grid;
  gap: 7px;
  min-width: min(220px, 100%);
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 23, 31, 0.08);
}

.translation-typing-state span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.translation-typing-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.translation-typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 16px;
}

.translation-typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f766e;
  animation: translationTypingPulse 900ms ease-in-out infinite;
}

.translation-typing-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.translation-typing-dots i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes translationTypingPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.translation-privacy-note,
.translation-consent-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.translation-privacy-note {
  display: grid;
  gap: 4px;
}

.translation-privacy-note strong,
.translation-consent-option strong {
  color: var(--ink);
}

.translation-privacy-note p,
.translation-consent-option em,
.translation-consent-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.45;
}

.translation-consent-option input {
  margin-top: 4px;
}

.translator-thread-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.translator-thread-card:hover,
.translator-thread-card:focus-visible,
.translator-thread-card:focus-within {
  border-color: rgba(113, 87, 217, 0.24);
  box-shadow: 0 16px 34px rgba(22, 23, 31, 0.1);
}

.translator-thread-card:focus-visible {
  outline: 3px solid rgba(113, 87, 217, 0.24);
  outline-offset: 2px;
}

.translator-thread-body {
  display: grid;
  gap: 12px;
}

.translator-thread-mobile-preview {
  display: none;
}

.translator-chat-bubble-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.translator-chat-bubble-row.mine {
  justify-content: flex-end;
}

.translator-chat-bubble-row.theirs {
  justify-content: flex-start;
}

.translator-chat-bubble {
  max-width: min(560px, 92%);
  padding: 12px 13px;
  border-radius: 8px;
  background: #fff7d8;
  box-shadow: 0 8px 18px rgba(22, 23, 31, 0.05);
}

.translator-chat-bubble span {
  display: block;
  margin-bottom: 5px;
  color: #7a5a00;
  font-size: 0.76rem;
  font-weight: 950;
}

.translator-chat-bubble p {
  margin: 0;
  color: var(--ink);
  font-weight: 820;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.translator-chat-bubble.incoming-message {
  max-width: min(620px, 94%);
  border-radius: 8px 8px 8px 2px;
  background: #f3f6fb;
}

.translator-chat-bubble.mine-message {
  border-radius: 8px 8px 2px 8px;
  background: #111827;
  color: #fff;
}

.translator-chat-bubble.mine-message span,
.translator-chat-bubble.mine-message p {
  color: #fff;
}

.translator-chat-bubble.mine-message .translation-typing-state {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.translator-chat-bubble.mine-message .translation-typing-state span,
.translator-chat-bubble.mine-message .translation-typing-state p {
  color: rgba(255, 255, 255, 0.86);
}

.translator-chat-bubble.mine-message .translation-typing-dots i {
  background: #ffd166;
}

.translator-chat-time {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.translator-chat-bubble-row.mine .translator-chat-time {
  text-align: right;
}

.translator-chat-window-mini {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.07);
  border-radius: 8px;
  background: #fbfcff;
}

.translation-original-note {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 7px;
}

.translation-original-note summary {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.translation-original-note p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 700;
}

.translator-thread-card.needs-response {
  border-color: rgba(242, 95, 124, 0.28);
  background: linear-gradient(180deg, #fff7fa, #fff);
}

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

.translator-thread-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.translator-thread-actions .tiny {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  box-shadow: none;
}

.translator-thread-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.translator-thread-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  line-height: 1.3;
}

.translator-status-pill {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.translator-status-pill.needs-action {
  border-color: rgba(242, 95, 124, 0.25);
  background: #fff0f3;
  color: #a03149;
}

.translator-status-pill.waiting {
  border-color: rgba(113, 87, 217, 0.18);
  background: #f7f4ff;
  color: #4c3aa3;
}

.translator-status-pill.done {
  border-color: rgba(20, 143, 112, 0.22);
  background: #eefcf6;
  color: #0f766e;
}

.incoming-message {
  padding: 13px;
  border-radius: 8px;
  background: #f8fafc;
}

.incoming-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.translation-survey {
  display: grid;
  gap: 10px;
}

.translation-survey fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fff;
}

.translation-survey legend {
  padding: 0 4px;
  font-weight: 950;
}

.translation-survey label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.translation-survey input {
  margin-top: 3px;
}

.translation-response-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.translation-response-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.translation-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.translation-chat-composer .translation-reply-box {
  gap: 5px;
}

.translation-chat-composer .translation-reply-box span {
  padding-left: 4px;
}

.translation-chat-composer textarea {
  min-height: 46px;
  max-height: 140px;
  resize: vertical;
  border-radius: 8px;
  background: #fff;
}

.translation-chat-composer button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
}

.translation-analysis {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f7fbff;
}

.conversation-signal-card {
  display: grid;
  gap: 12px;
}

.conversation-signal-list {
  display: grid;
  gap: 10px;
}

.conversation-signal-list article {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #fff;
}

.conversation-signal-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.conversation-signal-list strong,
.conversation-signal-list span,
.conversation-signal-list small {
  min-width: 0;
}

.conversation-signal-list article > div:first-child span,
.conversation-signal-list small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
}

.conversation-signal-list p {
  margin: 0;
  color: var(--muted);
}

.conversation-cause-list {
  display: grid;
  gap: 8px;
}

.conversation-cause-list section {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.conversation-cause-list section strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.conversation-cause-list section p,
.conversation-cause-list section small {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

.translation-self-review {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  border: 1px solid rgba(22, 23, 31, 0.08);
}

.translation-self-review.is-busy,
.translation-analysis.is-busy {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: #ecfdf5;
}

.translation-analysis-head {
  display: grid;
  gap: 6px;
}

.translation-analysis-head > span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.translation-analysis-head h4,
.translation-analysis-head p {
  margin: 0;
}

.translation-analysis-head p {
  color: var(--muted);
}

.translation-mind-check {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #ecfdf5;
}

.translation-mind-check > div:first-child {
  display: grid;
  gap: 3px;
}

.translation-mind-check > div:first-child span,
.translation-mind-check-list article > span {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
}

.translation-mind-check > div:first-child strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.translation-mind-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.translation-mind-check-list article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: #fff;
}

.translation-mind-check-list article strong {
  color: var(--ink);
  line-height: 1.32;
}

.translation-mind-check-list article p,
.translation-mind-check-list article small {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

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

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

.translation-analysis-grid article {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.translation-self-grid article {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(22, 23, 31, 0.07);
}

.translation-self-grid article.tone-alert {
  border-color: rgba(242, 191, 87, 0.34);
  background: #fffaf0;
}

.translation-analysis-grid strong {
  display: block;
  margin-bottom: 4px;
}

.translation-self-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.translation-analysis-grid p,
.translation-self-grid p,
.translation-next-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.translation-analysis-grid article:first-child {
  grid-column: 1 / -1;
  border: 1px solid rgba(242, 191, 87, 0.3);
  background: #fffaf0;
}

.translation-reply-highlight,
.translation-reason-box {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(113, 87, 217, 0.16);
  background: #fff;
}

.translation-reply-highlight span,
.translation-reason-box > strong {
  display: block;
  margin-bottom: 6px;
  color: #4c3aa3;
  font-size: 0.82rem;
  font-weight: 950;
}

.translation-reply-highlight p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.5;
}

.translation-pair-insights,
.translation-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.translation-pair-insights article,
.translation-evidence-grid article,
.translation-ai-panel {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(22, 23, 31, 0.08);
}

.translation-pair-insights strong,
.translation-evidence-section > strong,
.translation-ai-panel strong {
  display: block;
  margin-bottom: 5px;
}

.translation-pair-insights p,
.translation-pair-insights small,
.translation-evidence-grid p,
.translation-evidence-grid small,
.translation-evidence-grid em,
.translation-ai-panel p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: normal;
}

.translation-evidence-section {
  display: grid;
  gap: 8px;
}

.translation-evidence-disclosure {
  min-width: 0;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.translation-evidence-disclosure summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 950;
}

.translation-evidence-disclosure .translation-evidence-section {
  padding: 0 12px 12px;
}

.translation-evidence-grid span {
  display: block;
  margin-bottom: 5px;
  color: #4c3aa3;
  font-size: 0.76rem;
  font-weight: 950;
}

.translation-evidence-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.workspace-card,
.client-card,
.chip-lab-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 23, 31, 0.06);
}

.workspace-card,
.client-card,
.chip-lab-card {
  display: grid;
  gap: 12px;
}

.workspace-card h3,
.client-card h3,
.chip-lab-card h3 {
  margin: 0;
}

.workspace-card p,
.client-card p,
.chip-lab-card p {
  color: var(--muted);
}

.workspace-stat-grid,
.client-grid,
.chip-synthesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chip-bridge-list {
  display: grid;
  gap: 8px;
}

.chip-empty-state,
.chip-pattern-list,
.chip-scenario-grid,
.chip-enrichment-list,
.chip-quality-grid {
  display: grid;
  gap: 8px;
}

.chip-empty-state {
  padding: 12px;
  border: 1px dashed rgba(22, 23, 31, 0.16);
  border-radius: 8px;
  background: #f8fafc;
}

.chip-empty-state strong {
  color: var(--ink);
}

.chip-empty-state p {
  margin: 4px 0 0;
}

.chip-pattern-list article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(47, 191, 131, 0.24);
  border-radius: 8px;
  background: #f3fbf7;
}

.chip-pattern-list article > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.chip-pattern-list strong,
.chip-scenario-grid span,
.chip-enrichment-list strong {
  display: block;
  color: var(--ink);
}

.chip-pattern-list span,
.chip-enrichment-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.chip-pattern-list p,
.chip-scenario-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chip-pattern-list small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.chip-pattern-list em,
.chip-report-patterns em {
  display: block;
  margin-top: 7px;
  color: #0f766e;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.45;
}

.chip-next-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chip-next-tests button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(47, 191, 131, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: #0f6844;
  font-size: 0.8rem;
  font-weight: 900;
}

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

.chip-scenario-grid article,
.chip-enrichment-list div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.chip-scenario-grid span {
  color: #4c3aa3;
  font-size: 0.78rem;
  font-weight: 950;
}

.chip-enrichment-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.chip-enrichment-list span {
  display: block;
  margin-top: 4px;
}

.chip-report-card {
  display: grid;
  gap: 14px;
}

.chip-report-score {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
}

.chip-report-score div,
.chip-quality-grid article,
.chip-variant-list article,
.chip-report-patterns article,
.chip-report-bridges section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.chip-report-score span,
.chip-quality-grid span,
.chip-variant-list span,
.chip-report-patterns span,
.chip-report-bridges small,
.report-sublead span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.chip-report-score strong,
.chip-quality-grid strong,
.chip-variant-list strong,
.chip-report-patterns strong,
.chip-report-bridges strong {
  display: block;
  color: var(--ink);
}

.chip-quality-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.chip-report-patterns,
.chip-variant-list,
.chip-report-bridges {
  display: grid;
  gap: 10px;
}

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

.chip-report-patterns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.chip-report-patterns p,
.chip-report-patterns small,
.chip-report-patterns em,
.chip-variant-list p,
.chip-variant-list small,
.chip-report-bridges p,
.chip-report-bridges small,
.report-sublead p {
  margin: 6px 0 0;
  color: var(--muted);
}

.report-sublead {
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.chip-bridge-list article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.chip-bridge-list strong,
.chip-bridge-list small {
  display: block;
}

.chip-bridge-list p {
  margin: 5px 0;
}

.chip-bridge-list small {
  color: var(--muted);
  font-weight: 850;
}

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

.counselor-variant-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #f7fffb;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.counselor-variant-list b {
  color: #0f766e;
}

.workspace-stat,
.client-summary-pill,
.chip-synthesis-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.workspace-stat span,
.client-summary-pill span,
.chip-synthesis-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.workspace-stat strong,
.client-summary-pill strong,
.chip-synthesis-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.client-list {
  display: grid;
  gap: 10px;
}

.counselor-formulation-card {
  gap: 14px;
}

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

.counselor-formulation-grid section,
.counselor-question-grid section,
.counselor-hypothesis-list article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.counselor-formulation-grid span,
.counselor-hypothesis-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.counselor-formulation-grid strong,
.counselor-question-grid strong,
.counselor-hypothesis-list strong {
  display: block;
  color: var(--ink);
}

.counselor-hypothesis-list {
  display: grid;
  gap: 8px;
}

.counselor-quality-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.counselor-quality-strip span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 950;
}

.counselor-quality-strip b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.counselor-hypothesis-list p {
  margin: 6px 0;
  color: var(--muted);
}

.counselor-hypothesis-list small {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.client-card.is-selected {
  border-color: rgba(113, 87, 217, 0.36);
  background: linear-gradient(180deg, #fbf9ff, #fff);
}

.client-card button,
.question-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.question-chip.is-selected {
  border-color: rgba(113, 87, 217, 0.34);
  background: #f4efff;
  color: #4c3aa3;
}

.question-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-note {
  padding: 12px;
  border-radius: 8px;
  background: #fff9db;
  color: #5c4512;
  font-size: 0.92rem;
  font-weight: 750;
}

.report-overview-board {
  display: grid;
  gap: 14px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.comparison-chart,
.overview-table {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.48fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.comparison-row div {
  min-width: 0;
}

.comparison-row strong,
.comparison-row span {
  display: block;
}

.comparison-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.comparison-row i {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.comparison-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35a7d6, #7157d9);
}

.comparison-row.is-elevated b,
.comparison-row.is-watch b {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
}

.comparison-row.is-strength b {
  background: linear-gradient(90deg, #14b8a6, #22c55e);
}

.comparison-row.is-style b {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.comparison-row em {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #111827;
  opacity: 0.7;
}

.overview-table {
  overflow: hidden;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.overview-table-head,
.overview-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 72px minmax(110px, 0.9fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
}

.overview-table-head {
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.overview-table-row {
  border-top: 1px solid rgba(22, 23, 31, 0.08);
  font-size: 0.88rem;
}

.overview-table-row > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.overview-reference-grid div,
.clinical-reference-panel {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.overview-reference-grid strong,
.overview-reference-grid span,
.overview-reference-grid small {
  display: block;
}

.overview-reference-grid strong {
  font-size: 0.88rem;
}

.overview-reference-grid span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.38;
}

.overview-reference-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.34;
}

.clinical-reference-panel {
  display: grid;
  gap: 8px;
  background: #fbfbff;
}

.clinical-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: start;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
}

.clinical-reference-row strong,
.clinical-reference-row span,
.clinical-reference-row small {
  min-width: 0;
}

.clinical-reference-row span {
  font-weight: 950;
  white-space: nowrap;
}

.clinical-reference-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.34;
}

.overview-kind-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.overview-kind-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.overview-kind-grid span,
.overview-kind-grid strong {
  display: block;
}

.overview-kind-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.translation-evidence-grid small {
  margin-bottom: 6px;
}

.translation-ai-panel {
  display: grid;
  gap: 10px;
  background: #fbfbff;
}

.translator-empty.compact {
  padding: 14px;
  box-shadow: none;
  background: #f8fafc;
}

.family-priority-card {
  border-top: 6px solid var(--result-color, var(--violet));
  background: linear-gradient(180deg, var(--result-soft, #f6f3ff), #fff);
}

.family-priority-card h3 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.15;
}

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

.family-priority-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.family-priority-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.family-priority-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.relationship-compat-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.15;
}

.relationship-compat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.relationship-compat-grid div {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.relationship-compat-grid span,
.relationship-compat-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.relationship-compat-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  line-height: 1.25;
}

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

.family-member strong {
  display: block;
}

.family-member span {
  color: var(--muted);
  font-size: 0.9rem;
}

.member-status {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff8ec;
  color: #8a4c00 !important;
  font-weight: 950;
}

.member-status.is-linked {
  background: #eefaf4;
  color: #19724d !important;
}

.location-result {
  display: grid;
  gap: 12px;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-actions a,
.inline-test-actions button {
  min-height: 42px;
}

.inline-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-test-actions button {
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.signal-board {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 900;
}

.signal-head span:last-child {
  color: var(--muted);
}

.signal-track {
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.08);
}

.signal-track span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--color);
}

.finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px clamp(18px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.test-entry-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.46fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.test-entry-shell h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.12;
}

.test-entry-shell p:not(.eyebrow) {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.test-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.test-entry-grid button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  color: var(--ink);
  text-align: left;
}

.test-entry-grid button strong,
.test-entry-grid button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-entry-grid button strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.test-entry-grid button span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.test-entry-grid button.is-active,
.test-entry-grid button:hover,
.test-entry-grid button:focus-visible {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.test-entry-grid button.is-active span,
.test-entry-grid button:hover span,
.test-entry-grid button:focus-visible span {
  color: rgba(255, 255, 255, 0.82);
}

.test-journey-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 13px;
  border: 1px solid rgba(53, 167, 214, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fdff, #fbfbff);
}

.journey-copy {
  display: grid;
  align-content: center;
  gap: 5px;
}

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

.journey-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.journey-steps article {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.journey-steps span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.journey-steps strong {
  font-size: 0.9rem;
}

.journey-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.34;
}

.journey-steps button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.76rem;
  box-shadow: none;
}

.search-field span {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  color: var(--ink);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.category-tabs button.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.test-section {
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 18px;
}

.test-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.test-card,
.test-more-card {
  min-width: 0;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(22, 23, 31, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.test-card:hover,
.test-more-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.test-meta span {
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.test-card h3 {
  font-size: 1.08rem;
}

.test-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.test-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.test-card li {
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.test-card-insight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.test-card-insight div {
  min-width: 0;
}

.test-card-insight span,
.test-card-insight strong {
  display: block;
}

.test-card-insight span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.test-card-insight strong {
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.test-card .test-card-insight p {
  grid-column: 1 / -1;
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.34;
  -webkit-line-clamp: unset;
}

.test-card button {
  width: 100%;
  margin-top: 4px;
}

.test-more-card {
  border-style: dashed;
  border-top-color: var(--blue);
  background: #eef9fd;
  box-shadow: none;
}

.test-more-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.test-more-card button {
  width: 100%;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 46px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.recommend-section {
  background: #16171f;
  color: #fff;
}

.recommend-section .eyebrow {
  color: var(--yellow);
}

.recommend-section p {
  color: rgba(255, 255, 255, 0.88);
}

.recommend-list {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.recommend-card {
  color: var(--ink);
}

.recommend-card p {
  color: var(--muted);
}

.history-section {
  background: #fff;
}

.history-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.legal-section {
  padding: clamp(32px, 5vw, 66px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.legal-shell {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.legal-hero {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow);
  border-radius: 8px;
  background: #fbfbff;
  box-shadow: 0 16px 38px rgba(22, 23, 31, 0.08);
}

.legal-hero h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.legal-hero p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-meta {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff8ec;
  color: #8a4c00;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.legal-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 23, 31, 0.05);
}

.legal-card h3 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.legal-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 950;
  content: "•";
}

.legal-highlight {
  border-top: 5px solid var(--red);
  background: #fff8ec;
}

.legal-highlight h3 {
  color: #7a1f1f;
}

.history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
}

.history-item strong {
  display: block;
}

.history-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.history-item button {
  min-height: 40px;
  padding: 0 12px;
  box-shadow: none;
}

.quiz-dialog,
.report-dialog,
.identity-dialog {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.report-dialog {
  width: min(1120px, calc(100% - 20px));
}

.quiz-dialog::backdrop,
.report-dialog::backdrop,
.identity-dialog::backdrop {
  background: rgba(22, 23, 31, 0.66);
}

.report-dialog::backdrop {
  backdrop-filter: none;
}

.quiz-shell,
.report-shell,
.identity-shell {
  position: relative;
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

.code-gate-shell {
  display: grid;
  gap: 14px;
}

.code-gate-input {
  display: grid;
  gap: 7px;
}

.code-gate-input span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.code-gate-input input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(22, 23, 31, 0.16);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.code-gate-presets,
.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-gate-presets button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

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

.code-mode-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.code-mode-grid span,
.code-mode-grid strong {
  display: block;
}

.code-mode-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.code-mode-grid strong {
  margin-top: 5px;
  color: var(--ink);
}

.code-mode-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quiz-shell {
  display: flex;
  flex-direction: column;
}

.report-shell {
  max-height: min(94dvh, 1020px);
  padding: clamp(14px, 2vw, 22px);
  scrollbar-gutter: stable;
  scroll-padding-top: 108px;
}

.identity-shell {
  margin: 0;
}

.identity-shell p:not(.eyebrow) {
  color: var(--muted);
}

.identity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.identity-fields label {
  min-width: 0;
}

.identity-progress-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.identity-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.identity-progress-head span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.identity-progress-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: right;
}

.identity-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.identity-progress-steps article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #fff;
}

.identity-progress-steps article.is-current {
  border-color: rgba(47, 191, 131, 0.42);
  background: #eefaf4;
}

.identity-progress-steps article.is-done {
  border-color: rgba(22, 23, 31, 0.12);
  background: #f3f4f6;
}

.identity-progress-steps span {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.identity-progress-steps strong,
.identity-progress-steps p {
  display: block;
  min-width: 0;
}

.identity-progress-steps strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.identity-progress-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.identity-fields label.is-emphasis input {
  border-color: rgba(47, 191, 131, 0.5);
  background: #eefaf4;
  box-shadow: inset 0 0 0 1px rgba(47, 191, 131, 0.12);
}

.identity-fields label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.identity-fields input,
.identity-fields select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  color: var(--ink);
}

.identity-fields input:disabled,
.identity-fields select:disabled {
  cursor: not-allowed;
  background: rgba(22, 23, 31, 0.06);
  color: rgba(22, 23, 31, 0.48);
}

.identity-fields .auto-field select:disabled {
  border-color: rgba(47, 191, 131, 0.28);
  background: #eefaf4;
  color: #19724d;
  font-weight: 950;
  opacity: 1;
}

.disabled-field {
  grid-column: 1 / -1;
}

.identity-hint {
  padding: 12px;
  border-radius: 8px;
  background: #fff8ec;
  color: #5d4b31 !important;
}

.pin-hint {
  background: #eef9fd;
  color: #126985 !important;
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: #3f4350;
  font-size: 1.6rem;
  line-height: 1;
}

.report-shell > .icon-button,
.identity-shell > .icon-button {
  position: sticky;
  z-index: 35;
  top: 10px;
  right: auto;
  float: right;
  margin: 0 0 8px auto;
  box-shadow: 0 8px 22px rgba(22, 23, 31, 0.1);
}

.quiz-top {
  padding-right: 50px;
}

.quiz-top span {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
}

.quiz-top strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.22rem, 3vw, 1.9rem);
  line-height: 1.1;
}

.quiz-top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.08);
}

.progress-track:focus {
  outline: none;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--pink), var(--yellow));
  transition: width 180ms ease;
}

.quiz-body {
  min-height: 0;
  margin-top: 16px;
  overflow: visible;
}

.quiz-dialog.is-result .quiz-top {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.quiz-dialog.is-result .quiz-body {
  margin-top: 0;
}

.question-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.inkblot-visual {
  display: grid;
  width: min(100%, 620px);
  min-height: 220px;
  margin: 10px auto 14px;
  padding: 14px;
  place-items: center;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f7f8fb 48%, #eef2f7 100%);
  box-shadow: 0 18px 42px rgba(22, 23, 31, 0.11);
  overflow: hidden;
}

.inkblot-visual svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 13 / 7;
  filter: drop-shadow(0 12px 18px rgba(22, 23, 31, 0.08));
}

.question-title {
  margin-top: 5px;
  font-size: clamp(1rem, 2.2vw, 1.42rem);
  line-height: 1.22;
}

.question-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.question-tip {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff8ec;
  color: #5d4b31;
  font-size: 0.84rem;
  font-weight: 800;
}

.question-story-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.question-story-strip span,
.question-story-strip small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
}

.question-story-strip strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.question-expert-cue {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 7px 9px;
  border: 1px solid rgba(53, 167, 214, 0.18);
  border-radius: 8px;
  background: #f0f9ff;
  color: #126985;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.38;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.answer-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  color: var(--ink);
  text-align: left;
}

.answer-key {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef9fd;
  color: #126985;
  font-size: 0.78rem;
  font-weight: 950;
}

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

.answer-button strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}

.answer-button .answer-copy > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.32;
}

.answer-button:hover,
.answer-button:focus-visible {
  border-color: rgba(53, 167, 214, 0.56);
  background: #eef9fd;
}

.result-panel,
.report-block {
  display: grid;
  gap: 12px;
}

.report-section-nav {
  position: sticky;
  top: var(--report-nav-top, 0px);
  z-index: 45;
  display: block;
  align-self: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 0 #fff,
    0 14px 30px rgba(22, 23, 31, 0.14);
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.report-section-nav::before {
  display: none;
}

.inline-report-shell .report-section-nav {
  --report-nav-top: var(--inline-report-nav-top);
}

.report-nav-status {
  display: none;
}

.report-nav-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  padding: 2px 2px 5px;
  scroll-padding-inline: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.report-section-nav button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: none;
  scroll-snap-align: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.report-section-nav button:hover,
.report-section-nav button:focus-visible,
.report-section-nav button.is-active,
.report-section-nav button[aria-current="true"] {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.report-section-nav button.is-active,
.report-section-nav button[aria-current="true"] {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 23, 31, 0.18);
}

.report-anchor-section,
[data-report-anchor] {
  scroll-margin-top: calc(var(--report-nav-top, 0px) + 104px);
}

.report-reading-guide {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(53, 167, 214, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fdff, #fbfbff);
}

.report-reading-guide > span {
  color: #126985;
  font-size: 0.78rem;
  font-weight: 950;
}

.report-reading-guide div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-reading-guide button {
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.report-reading-guide strong,
.report-reading-guide small {
  display: block;
}

.report-reading-guide strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.report-reading-guide small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.36;
}

.result-card,
.report-card {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--result-color, var(--blue));
  border-radius: 8px;
  background: var(--result-soft, #fbfbff);
}

.result-title,
.report-title {
  margin-top: 10px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.12;
}

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

.result-summary-strip div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.result-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
}

.result-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.24;
}

.result-evidence-strip {
  display: grid;
  gap: 9px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.result-evidence-head {
  display: grid;
  gap: 3px;
}

.result-evidence-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.result-evidence-head strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.result-evidence-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.result-evidence-items div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(22, 23, 31, 0.07);
  border-radius: 8px;
  background: #fff;
}

.result-evidence-items span,
.result-evidence-items small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.result-evidence-items strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
}

.result-evidence-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.result-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.result-insight-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.result-insight-grid span {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.result-insight-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.24;
}

.result-insight-grid p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.38;
}

.result-card p,
.report-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.deep-report .report-lead {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.report-note {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

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

.chatgpt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatgpt-actions button,
.chatgpt-input-label + .report-actions button {
  min-height: 44px;
}

.chatgpt-deep-output {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #fff;
}

.chatgpt-deep-output.is-stale {
  border-color: rgba(242, 95, 124, 0.32);
  background: #fff7f9;
}

.chatgpt-deep-output > span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef9fd;
  color: #126985;
  font-size: 0.75rem;
  font-weight: 950;
}

.chatgpt-deep-output h4 {
  margin: 0;
  font-size: 1.08rem;
}

.chatgpt-deep-output div,
.chatgpt-message p {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
}

.chatgpt-thread {
  display: grid;
  gap: 9px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.chatgpt-message {
  max-width: min(92%, 760px);
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.chatgpt-message.is-user {
  justify-self: end;
  background: #111827;
}

.chatgpt-message span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.chatgpt-message.is-user span,
.chatgpt-message.is-user p {
  color: #fff;
}

.chatgpt-input-label {
  display: grid;
  gap: 7px;
}

.chatgpt-input-label span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.chatgpt-input-label textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.report-flow {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #fff;
}

.report-flow > div span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.report-flow > div strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.26;
}

.report-flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-flow li {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
}

.report-flow li strong,
.report-flow li span {
  display: block;
}

.report-flow li strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.report-flow li span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.34;
}

.report-glance {
  background: #111827;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.report-glance p,
.report-glance .report-note {
  color: rgba(255, 255, 255, 0.9);
}

.report-glance .severity-badge {
  background: var(--yellow);
  color: var(--ink);
}

.report-glance-grid,
.daily-friction-grid,
.report-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.report-glance-grid div,
.daily-friction-grid article,
.report-quality-grid article {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.report-glance-grid div {
  background: rgba(255, 255, 255, 0.1);
}

.report-glance-grid span,
.daily-friction-grid span,
.report-quality-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
}

.report-glance-grid span {
  color: rgba(255, 255, 255, 0.84);
}

.report-glance-grid strong,
.daily-friction-grid strong,
.report-quality-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.report-glance-grid strong {
  color: #fff;
}

.report-insight-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.88fr);
  gap: 9px;
  margin-top: 12px;
}

.report-insight-cockpit > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.report-mini-bars {
  grid-row: span 2;
  display: grid;
  gap: 8px;
}

.report-mini-bars > span,
.report-evidence-mix > span,
.report-interest-points > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 950;
}

.report-mini-bar-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.36fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.report-mini-bar-row strong,
.report-mini-bar-row small {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.25;
}

.report-mini-bar-row i {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.report-mini-bar-row b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--axis-color);
}

.report-evidence-mix,
.report-interest-points {
  display: grid;
  gap: 8px;
}

.report-evidence-stack {
  display: flex;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.report-evidence-stack i {
  flex: 0 0 var(--basis);
  min-width: 10px;
  background: var(--mix-color);
}

.report-evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.report-evidence-legend small {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 850;
}

.report-evidence-legend b {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--mix-color);
}

.report-interest-points strong {
  display: block;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.34;
}

.daily-friction-grid p,
.report-quality-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.report-meta-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(22, 23, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.report-meta-grid span,
.signal-summary-row span,
.deep-section > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.report-meta-grid strong,
.signal-summary-row strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

.report-meta-grid .analyst-meta {
  border-color: rgba(255, 209, 102, 0.36);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 255, 255, 0.76));
}

.report-glance-grid .analyst-meta {
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.report-glance-grid .analyst-meta strong,
.report-meta-grid .analyst-meta strong {
  font-size: 1.05rem;
}

.report-glance-grid .analyst-meta small,
.report-meta-grid .analyst-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.3;
}

.report-glance-grid .analyst-meta small {
  color: rgba(255, 255, 255, 0.82);
}

.signal-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.signal-summary-row,
.deep-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.signal-summary-row p,
.deep-section p {
  color: var(--muted);
}

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

.deep-section h4 {
  margin: 8px 0 10px;
  font-size: 1.08rem;
}

.report-checklist,
.source-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.report-checklist li,
.source-list li {
  position: relative;
  padding: 8px 9px 8px 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.deep-section .report-checklist li,
.source-list li {
  background: #fbfbff;
}

.report-checklist li::before,
.source-list li::before {
  position: absolute;
  top: 10px;
  left: 11px;
  color: var(--green);
  content: "•";
}

.source-report h3 {
  margin-top: 12px;
}

.source-list .evidence-item {
  display: grid;
  gap: 3px;
  font-weight: 700;
}

.source-list .evidence-card {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(22, 23, 31, 0.06);
}

.source-list .evidence-card::before {
  content: none;
}

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

.evidence-card-head span {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
}

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

.evidence-card-grid div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #fbfbff;
}

.source-list .evidence-card-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.source-list .evidence-card-grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.source-list .evidence-limit {
  padding-top: 8px;
  border-top: 1px solid rgba(22, 23, 31, 0.08);
}

.missing-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.missing-test-grid article {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.missing-test-grid span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.missing-test-grid strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}

.missing-test-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.5;
}

.missing-test-grid button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.source-list .evidence-item strong {
  font-size: 0.94rem;
}

.source-list .evidence-item span,
.source-list .evidence-item small,
.source-list .evidence-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.source-list .evidence-card-head span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
}

.source-list .evidence-card-head strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.source-list .evidence-card p {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.5;
}

.source-list .evidence-card .evidence-limit {
  color: var(--muted);
}

.evidence-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.evidence-matrix article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.evidence-matrix strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.evidence-matrix span,
.evidence-matrix small,
.evidence-matrix p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.48;
}

.logic-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.logic-item {
  padding: 13px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.logic-item span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 950;
}

.logic-item h4 {
  margin: 8px 0 8px;
  font-size: 1.02rem;
}

.logic-item button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.ai-report-card,
.ai-action-card,
.ai-status-card {
  border-color: rgba(17, 24, 39, 0.22);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.1);
}

.ai-report-card .report-lead {
  color: var(--ink);
  font-weight: 850;
}

.ai-logic-list .logic-item {
  background: #fff;
}

.ai-logic-list .logic-item span {
  background: #111827;
  color: #fff;
}

.ai-section {
  border-color: rgba(17, 24, 39, 0.14);
  background: #f8fafc;
}

.ai-section > span {
  color: #111827;
}

.ai-status-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-status-steps div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.ai-status-steps span {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.ai-status-steps strong,
.ai-status-steps small {
  display: block;
}

.ai-status-steps strong {
  margin-top: 7px;
  font-size: 0.9rem;
}

.ai-status-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.32;
}

.professional-care {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
}

.professional-care span {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 950;
}

.professional-care p,
.professional-care strong {
  margin: 0;
}

.professional-card > button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  font-weight: 950;
}

.pair-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.pair-card {
  padding: 16px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fff;
}

.pair-card > span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
}

.pair-card h4,
.pair-card h5 {
  margin: 10px 0 8px;
}

.pair-card h4 {
  font-size: 1.22rem;
}

.pair-card h5 {
  font-size: 1.02rem;
}

.pair-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.pair-member-grid div {
  padding: 12px;
  border-radius: 8px;
  background: #fbfbff;
}

.pair-member-grid strong,
.pair-member-grid small {
  display: block;
}

.pair-member-grid p {
  margin: 6px 0;
}

.pair-member-grid small {
  color: var(--muted);
  font-weight: 800;
}

.family-consent-card {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff7f7;
}

.minor-safety-note {
  margin-bottom: 12px;
}

.family-safety-card {
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.family-safety-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.family-safety-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.family-safety-list span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.76rem;
  font-weight: 950;
}

.family-safety-list strong,
.family-safety-list p {
  margin: 0;
}

.family-ask-card {
  display: grid;
  gap: 14px;
}

.family-question-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-question-suggestions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 850;
}

.family-question-box {
  display: grid;
  gap: 7px;
}

.family-question-box span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

.family-question-box textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.family-question-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.ai-caveat {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #f8fafc;
}

.caveat-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.06);
}

.caveat-box p {
  margin: 0;
  color: var(--muted);
}

.result-tags,
.report-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.result-tags li,
.report-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.share-card-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
}

.share-card-panel[hidden] {
  display: none;
}

.share-card-preview {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  min-width: 0;
  padding: clamp(18px, 5vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-top: 8px solid var(--share-accent, var(--violet));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.28), transparent 42%),
    #fff;
  box-shadow: 0 18px 42px rgba(22, 23, 31, 0.12);
}

.share-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.share-card-brand strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.share-card-brand span,
.share-card-kicker,
.share-card-disclaimer {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.share-card-kicker {
  margin: 6px 0 0;
}

.share-card-preview h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 5vw, 2.05rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.share-card-metric {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  line-height: 1.25;
}

.share-card-preview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.share-card-preview li {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.share-card-disclaimer,
.share-card-cta {
  margin: 0;
}

.share-card-cta {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.share-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-card-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.print-privacy-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.print-privacy-control > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
}

.print-privacy-control button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.print-privacy-control button.is-selected {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.print-mobile-note {
  display: none;
}

.print-report-sheet {
  display: none;
}

.print-private-name,
.print-mode-private {
  display: none;
}

body.print-name-hidden .print-real-name,
body.print-name-hidden .print-mode-private {
  display: none;
}

body.print-name-hidden .print-private-name,
body.print-name-hidden .print-mode-share {
  display: inline;
}

body.print-name-visible .print-real-name,
body.print-name-visible .print-mode-private {
  display: inline;
}

body.print-name-visible .print-private-name,
body.print-name-visible .print-mode-share {
  display: none;
}

.clinical-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.clinical-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.clinical-row span {
  color: var(--muted);
  font-weight: 900;
}

.family-outlook-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  margin-top: 18px;
}

.family-outlook-main,
.family-graph-list,
.pair-outlook {
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.family-outlook-main span,
.family-graph-row span,
.pair-outlook span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.family-outlook-main strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
}

.family-outlook-main p,
.pair-outlook p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.family-outlook-main i,
.family-graph-row i,
.pair-outlook i {
  display: block;
  height: 8px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(22, 23, 31, 0.09);
}

.family-outlook-main b,
.family-graph-row b,
.pair-outlook b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--result-color, #3b82f6);
}

.family-graph-list {
  display: grid;
  gap: 10px;
}

.family-graph-row div,
.pair-outlook div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.family-graph-row strong,
.pair-outlook strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.family-graph-row b {
  background: var(--color);
}

.risk-alert {
  padding: 16px;
  border: 1px solid rgba(217, 70, 70, 0.32);
  border-radius: 8px;
  background: #fff1f1;
  color: #7a1f1f;
}

.safety-bottom-alert {
  margin-top: 18px;
  font-size: 0.9rem;
}

.safety-corner-note {
  justify-self: start;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.82rem;
}

.safety-corner-note summary {
  cursor: pointer;
  font-weight: 900;
}

.safety-corner-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: min(380px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 8px;
  background: #16171f;
  color: #fff;
  text-align: center;
  font-weight: 850;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.access-admission-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(12px);
}

.access-admission-overlay[hidden] {
  display: none;
}

.access-admission-card {
  width: min(520px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(22, 23, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-admission-card > span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef9fd;
  color: #126985;
  font-size: 0.76rem;
  font-weight: 950;
}

.access-admission-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.access-admission-card p {
  margin: 0;
  color: var(--muted);
}

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

.access-admission-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fc;
}

.access-admission-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.access-admission-grid strong {
  font-size: 1.35rem;
}

.access-admission-card button {
  width: 100%;
}

body.access-waiting {
  overflow: hidden;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #101119;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 850;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a.is-active-route {
  color: var(--yellow);
}

.payment-checkout {
  gap: 14px;
}

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

.payment-product-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-product-card.is-selected {
  border-color: rgba(53, 167, 214, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 167, 214, 0.13);
}

.payment-product-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef9fd;
  color: #126985;
  font-size: 0.74rem;
  font-weight: 950;
}

.payment-product-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.payment-product-card strong {
  font-size: 1.12rem;
}

.payment-product-card p,
.payment-provider-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-product-card button {
  width: 100%;
  margin-top: 2px;
}

.payment-provider-note {
  padding: 12px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #fbfbff;
}

.payment-provider-note strong {
  display: block;
  margin-bottom: 4px;
}

.payment-provider-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(22, 23, 31, 0.08);
}

.payment-test-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(53, 167, 214, 0.22);
  border-radius: 8px;
  background: #f4fbfd;
}

.payment-test-access > div:first-child {
  min-width: 0;
}

.payment-test-access strong {
  display: block;
  margin: 5px 0 4px;
}

.payment-test-access p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-test-access-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payment-test-access-buttons button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(22, 23, 31, 0.13);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.payment-test-access-buttons button:hover,
.payment-test-access-buttons button:focus-visible {
  border-color: rgba(53, 167, 214, 0.64);
  box-shadow: 0 0 0 3px rgba(53, 167, 214, 0.13);
}

.payment-phone-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 23, 31, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.payment-phone-check.is-verified {
  border-color: rgba(47, 191, 131, 0.32);
  background: #eefaf4;
}

.payment-phone-check > div {
  min-width: 0;
}

.payment-phone-check span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.payment-phone-check strong {
  display: block;
  margin-bottom: 4px;
}

.payment-phone-check p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-phone-check label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.payment-phone-check input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-status-card.succeeded {
  border-top-color: var(--green);
}

.payment-status-card.failed {
  border-top-color: var(--red);
}

.payment-status-card.canceled {
  border-top-color: var(--orange);
}

@media (max-width: 1060px) {
  .payment-product-grid {
    grid-template-columns: 1fr;
  }

  .payment-phone-check {
    grid-template-columns: 1fr;
  }

  .payment-test-access {
    grid-template-columns: 1fr;
  }

  .payment-test-access-buttons {
    justify-content: flex-start;
  }

  .hero,
  .profile-section,
  .family-section,
  .translator-section,
  .counselor-section,
  .test-mode-section,
  .recommend-section,
  .history-section,
  .finder {
    grid-template-columns: 1fr;
  }

  .profile-report-pane,
  .profile-section > .signal-board {
    grid-column: 1;
    grid-row: auto;
  }

  .profile-section.has-active-report .profile-report-pane {
    grid-column: 1;
    grid-row: 1;
  }

  .profile-section.has-active-report .profile-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .profile-section.has-active-report > .signal-board {
    grid-column: 1;
    grid-row: 3;
  }

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

  .sample-report-grid,
  .plan-grid,
  .growth-overview,
  .translator-layout {
    grid-template-columns: 1fr;
  }

  .translator-left-panel,
  .translator-compose-card {
    position: static;
  }

  .translator-priority-strip {
    grid-template-columns: 1fr;
  }

  .translator-priority-side {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    min-width: 0;
  }

  .translator-priority-side button {
    width: 100%;
    white-space: normal;
  }

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

  .sample-report-card.main-preview {
    grid-row: auto;
  }

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

@media (min-width: 701px) and (max-width: 1060px) {
  .site-header {
    --tablet-header-nav-ready: 1;
  }

  .translator-section {
    padding-right: clamp(18px, 4vw, 42px);
    padding-left: clamp(18px, 4vw, 42px);
  }

  .translator-copy,
  .translator-board {
    width: min(860px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

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

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

	  .translator-manual-targets article {
	    grid-template-columns: 1fr;
	  }

  .translator-thread-card,
  .translator-compose-card {
    padding: 16px;
  }

  .translator-left-panel {
    position: static;
  }

  .inline-report-shell .report-section-nav {
    --report-nav-top: 0px;
    top: var(--report-nav-top);
  }

  .inline-report-shell .report-section-nav.is-report-nav-fixed {
    left: 0;
    width: 100vw;
    max-width: 100vw;
    top: 0 !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    border-top: 0;
    border-radius: 0;
    transform: translateY(-1px) translateZ(0);
  }

  .quiz-dialog {
    width: min(760px, calc(100% - 32px));
  }

  .quiz-shell {
    padding: 22px;
  }

  .quiz-body {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .question-title {
    max-width: 34em;
    font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  }

  .question-help,
  .question-tip {
    max-width: 48em;
  }

  .answer-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .answer-button {
    min-height: 64px;
  }

}

@media (max-width: 700px) {
  .access-admission-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 14px;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  .nav-links {
    order: 4;
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding-top: 2px;
    padding-bottom: 0;
    border-top: 0;
  }

  .nav-links a {
    display: grid;
    min-width: 0;
    min-height: 34px;
    place-items: center;
    padding: 7px 4px;
    border: 1px solid rgba(22, 23, 31, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .nav-links a.is-active-route {
    border-color: rgba(255, 209, 102, 0.78);
    background: #fff8db;
  }

  .profile-chip {
    order: 2;
    width: auto;
    max-width: none;
    flex: 1 1 118px;
    min-height: 36px;
    margin-left: 0;
    font-size: 0.82rem;
  }

  .access-mode-badge {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .code-gate-button {
    order: 2;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .workspace-stat-grid,
  .client-grid,
  .code-mode-grid,
  .counselor-formulation-grid,
  .counselor-question-grid,
  .chip-synthesis-grid,
  .chip-report-score,
  .chip-quality-grid,
  .counselor-quality-strip,
  .counselor-variant-list,
  .chip-variant-list,
  .chip-report-patterns,
  .chip-report-bridges,
  .chip-scenario-grid,
  .chip-enrichment-list,
  .overview-layout,
  .overview-reference-grid,
  .overview-kind-grid {
    grid-template-columns: 1fr;
  }

  .translator-section {
    gap: 12px;
    padding: 18px 12px 28px;
  }

  .translator-copy {
    gap: 6px;
  }

  .translator-copy h2 {
    font-size: clamp(1.42rem, 7vw, 2rem);
  }

  .translator-copy p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .translator-copy .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .translator-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

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

	  .translator-manual-targets article {
	    grid-template-columns: 1fr;
	  }

  .translator-overview-grid article {
    padding: 9px 7px;
  }

  .translator-overview-grid span,
  .translator-overview-grid small {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .translator-overview-grid strong {
    font-size: 0.86rem;
    line-height: 1.18;
  }

  .translator-thread-rail {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px;
  }

  .translator-thread-rail > div {
    margin-right: -4px;
    margin-left: -4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .translator-thread-rail button {
    min-width: 104px;
  }

  .translator-thread-card {
    gap: 9px;
    padding: 12px;
  }

  .translator-chat-panel-head {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .translator-chat-panel-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .translator-layout.has-inbox-priority .translator-chat-panel,
  .translator-layout.has-inbox-priority .translator-side-stack {
    order: -1;
  }

  .translator-thread-card:not(.is-expanded) .translator-thread-body {
    display: none;
  }

  .translator-thread-card.is-expanded {
    border-color: rgba(17, 24, 39, 0.22);
    box-shadow: 0 16px 34px rgba(22, 23, 31, 0.12);
  }

  .translator-thread-mobile-preview {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
  }

  .translator-thread-card.is-expanded .translator-thread-mobile-preview {
    display: none;
  }

  .translator-thread-mobile-preview p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 820;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .translator-thread-mobile-preview small {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 900;
    line-height: 1.3;
  }

  .hero {
    min-height: auto;
    gap: 8px;
    padding: 10px 14px 8px;
  }

  .growth-section {
    padding: 24px 14px;
  }

  .growth-focus-grid,
  .coverage-grid,
  .growth-idea-board {
    grid-template-columns: 1fr;
  }

  .test-journey-panel {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .hero-copy p:not(.eyebrow) {
    display: block;
    overflow: visible;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-line-clamp: unset;
  }

  .home-insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .home-insight-grid article {
    padding: 8px;
  }

  .home-insight-grid span {
    width: 21px;
    height: 21px;
    font-size: 0.7rem;
  }

  .home-insight-grid strong {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.18;
  }

  .hero-copy .home-insight-grid p {
    display: none;
  }

  .hero-actions,
  .profile-actions,
  .result-actions,
  .report-actions {
    gap: 8px;
    margin-top: 9px;
  }

  .hero-actions,
  .profile-actions,
  .button {
    width: 100%;
  }

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

  .hero-actions .button {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .hero-panel,
  .hero-snapshot,
  .hero-next-actions {
    grid-column: auto;
    padding: 9px;
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-panel strong {
    font-size: 1rem;
  }

  .hero-panel p {
    display: none;
  }

  .hero-panel button {
    min-height: 36px;
  }

  .hero-snapshot {
    display: none;
  }

  .recommend-priority-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .recommend-priority-strip article {
    padding: 12px;
  }

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

  .recommend-priority-buttons button {
    min-height: 36px;
    font-size: 0.76rem;
  }

  .hero-stats {
    gap: 7px;
  }

  .hero-stat {
    padding-right: 7px;
  }

  .hero-stat strong {
    font-size: 1.02rem;
  }

  .hero-stat small {
    display: none;
  }

  .mini-signal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .mini-board-title {
    grid-column: 1 / -1;
  }

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

  .hero-next-actions p {
    display: none;
  }

  .hero-next-buttons button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .safety-note {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 16px;
  }

  .profile-section,
  .family-section,
  .translator-section,
  .counselor-section,
  .test-mode-section,
  .recommend-section,
  .history-section,
  .legal-section,
  .sample-report-section,
  .plan-section,
  .trust-section,
  .finder,
  .test-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-section,
  .family-section,
  .translator-section,
  .counselor-section,
  .test-mode-section,
  .recommend-section,
  .history-section,
  .legal-section,
  .sample-report-section,
  .plan-section,
  .trust-section {
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .compact-heading {
    gap: 6px;
  }

  .compact-heading h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .compact-heading p:not(.eyebrow),
  .sample-report-card p,
  .plan-card li,
  .trust-grid p {
    font-size: 0.86rem;
  }

  .sample-report-grid,
  .plan-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .sample-report-card,
  .plan-card,
  .trust-grid article {
    padding: 14px;
  }

  .landing-actions,
  .landing-actions .button,
  .plan-card button {
    width: 100%;
  }

  .legal-shell {
    gap: 12px;
  }

  .legal-hero,
  .legal-card {
    padding: 14px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.88rem;
  }

  .legal-meta {
    display: flex;
    width: fit-content;
    max-width: 100%;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finder {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .test-entry-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .test-entry-shell h2 {
    font-size: 1.38rem;
  }

  .test-entry-shell p:not(.eyebrow) {
    font-size: 0.84rem;
  }

  .test-entry-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .test-entry-grid::-webkit-scrollbar {
    display: none;
  }

  .test-entry-grid button {
    flex: 0 0 112px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .category-tabs button {
    flex: 0 0 auto;
  }

  .test-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .test-card,
  .test-more-card {
    min-height: auto;
    padding: 14px;
  }

  .test-card p {
    -webkit-line-clamp: 2;
  }

  .test-card button {
    min-height: 40px;
  }

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

  .signal-row {
    padding: 10px;
  }

  .signal-head {
    gap: 6px;
    font-size: 0.8rem;
  }

  .history-item,
  .family-member,
  .translator-layout,
  .translation-analysis-grid,
  .translation-self-grid,
  .translation-mind-check-list,
  .clinical-row,
  .family-outlook-grid,
  .report-meta-grid,
  .signal-summary-list,
  .report-section-grid,
  .pair-member-grid,
  .identity-fields {
    grid-template-columns: 1fr;
  }

  .report-title {
    font-size: clamp(1.22rem, 6vw, 1.65rem);
  }

  .report-shell {
    width: 100%;
    max-height: min(94dvh, 1000px);
    padding: 12px;
  }

  .report-glance-grid,
  .report-insight-cockpit,
  .daily-friction-grid,
  .report-quality-grid,
  .result-summary-strip,
  .result-insight-grid,
  .result-evidence-items,
  .report-flow ol,
  .ai-status-steps {
    grid-template-columns: 1fr;
  }

  .report-mini-bars {
    grid-row: auto;
  }

  .report-mini-bar-row {
    grid-template-columns: minmax(78px, 0.4fr) minmax(0, 1fr) auto;
  }

  .signal-summary-row,
  .deep-section,
  .report-card {
    padding: 16px;
  }

  .map-actions,
  .map-actions a,
  .inline-test-actions,
  .inline-test-actions button {
    width: 100%;
  }

  .print-mobile-note {
    display: block;
  }

  .quiz-dialog {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
  }

  .report-dialog,
  .identity-dialog {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
  }

  .quiz-dialog::backdrop {
    background: #fff;
    backdrop-filter: none;
  }

  .report-dialog::backdrop,
  .identity-dialog::backdrop {
    background: #fff;
    backdrop-filter: none;
  }

  .quiz-shell {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .report-shell,
  .identity-shell {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 16px calc(112px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .identity-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .identity-fields {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .identity-progress-head {
    display: grid;
    justify-content: stretch;
  }

  .identity-progress-head strong {
    text-align: left;
  }

  .identity-progress-steps {
    grid-template-columns: 1fr;
  }

  .identity-hint {
    margin: 0;
  }

  .identity-shell > .button[type="submit"] {
    flex: 0 0 auto;
    position: sticky;
    z-index: 25;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    box-shadow: 0 14px 28px rgba(22, 23, 31, 0.18);
  }

  .profile-report-pane,
  .profile-section > .signal-board {
    grid-column: 1;
    grid-row: auto;
  }

  .profile-section {
    gap: 14px;
    padding-top: 18px;
  }

  .profile-copy {
    display: grid;
    gap: 8px;
  }

  .profile-copy .eyebrow {
    margin-bottom: 0;
  }

  .profile-copy h2 {
    margin: 0;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .profile-copy p:not(.eyebrow) {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .profile-actions {
    gap: 7px;
  }

  .profile-actions .button,
  .profile-actions button,
  .profile-actions a,
  .relationship-invite-actions button,
  .relationship-invite-tests button,
  .personality-guide-actions button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .relationship-invite-actions,
  .personality-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .family-priority-grid {
    grid-template-columns: 1fr;
  }

  .relationship-compat-grid {
    grid-template-columns: 1fr;
  }

  .translation-analysis-grid,
  .translation-self-grid,
  .translation-mind-check-list,
  .translation-pair-insights,
  .translation-evidence-grid {
    grid-template-columns: 1fr;
  }

  .translator-left-panel,
  .translator-compose-card {
    position: static;
  }

  .translator-thread-head {
    display: grid;
    gap: 8px;
  }

  .translator-thread-actions {
    justify-content: flex-start;
  }

  .translator-status-pill {
    justify-self: start;
  }

  .translator-card-title {
    align-items: center;
  }

  .translation-form-steps {
    grid-template-columns: 1fr;
  }

  .translation-chat-composer {
    grid-template-columns: 1fr;
  }

  .translation-chat-composer button {
    width: 100%;
  }

  .translation-intent-check {
    padding: 11px;
  }

  .translation-context-meter div {
    display: grid;
    justify-content: stretch;
  }

  .translation-context-meter strong {
    text-align: left;
  }

  .quiz-top {
    padding-right: 46px;
  }

  .inkblot-visual {
    width: min(100%, 420px);
    min-height: 150px;
    margin: 8px auto 10px;
    padding: 10px;
  }

  .inkblot-visual svg {
    max-width: 390px;
  }

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

  .report-section-nav {
    padding: 7px 6px;
    margin-bottom: 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .inline-report-shell .report-section-nav {
    --report-nav-top: 0px;
    top: var(--report-nav-top);
    z-index: 45;
  }

  .inline-report-shell .report-section-nav.is-report-nav-fixed {
    left: 0;
    width: 100vw;
    max-width: 100vw;
    top: 0 !important;
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    border-top: 0;
    border-radius: 0;
    transform: translateY(-1px) translateZ(0);
  }

  .inline-report-shell.has-fixed-report-nav {
    padding-top: var(--report-nav-placeholder-height, 58px);
  }

  body[data-inline-report="combined"] .profile-section {
    padding-top: 8px;
  }

  .report-section-nav button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .report-anchor-section,
  [data-report-anchor] {
    scroll-margin-top: 74px;
  }

  .inline-report-shell .report-anchor-section,
  .inline-report-shell [data-report-anchor] {
    scroll-margin-top: 62px;
  }

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

  .report-reading-guide button {
    min-height: 68px;
  }

  .quick-report-bar {
    gap: 6px;
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
  }

  .quick-report-bar button,
  .quick-report-bar a {
    min-height: 40px;
    padding: 0 5px;
    font-size: 0.82rem;
    line-height: 1.12;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 9px;
    padding: 12px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand span:not(.brand-logo) {
    max-width: 112px;
  }

  .profile-chip {
    flex-basis: 96px;
    max-width: none;
    padding: 0 9px;
  }

  .access-mode-badge {
    min-height: 26px;
    padding: 0 7px;
    font-size: 0.7rem;
  }

  .code-gate-button {
    padding: 0 9px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    min-height: 32px;
    padding: 6px 3px;
    font-size: 0.7rem;
  }

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

  .recommend-priority-buttons {
    grid-template-columns: 1fr;
  }

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

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

  .workspace-stat-grid,
  .client-grid,
  .chip-synthesis-grid,
  .chip-report-score,
  .chip-quality-grid,
  .counselor-quality-strip,
  .counselor-variant-list,
  .chip-variant-list,
  .chip-report-patterns,
  .chip-report-bridges,
  .chip-scenario-grid,
  .chip-enrichment-list,
  .translation-evidence-grid,
  .overview-layout,
  .overview-reference-grid,
  .overview-kind-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row,
  .clinical-reference-row,
  .overview-table-head,
  .overview-table-row {
    grid-template-columns: 1fr;
  }

  .clinical-reference-row span {
    white-space: normal;
  }

  .home-insight-grid article {
    display: block;
  }

  .home-insight-grid strong {
    margin-top: 5px;
    font-size: 0.72rem;
  }

  .signal-board,
  .mini-signal-board {
    grid-template-columns: 1fr;
  }

  .quick-report-bar {
    gap: 5px;
  }

  .quick-report-bar button,
  .quick-report-bar a {
    font-size: 0.76rem;
  }

  .evidence-card-head {
    display: grid;
  }

  .evidence-card-grid {
    grid-template-columns: 1fr;
  }

  .missing-test-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  .quiz-shell {
    max-height: calc(100vh - 14px);
    padding: 12px;
  }

  .quiz-top {
    padding-right: 42px;
  }

  .quiz-top strong {
    font-size: 1.08rem;
  }

  .quiz-top p {
    display: none;
  }

  .progress-track {
    height: 5px;
    margin-top: 8px;
  }

  .quiz-body {
    margin-top: 10px;
  }

  .question-help,
  .question-tip {
    font-size: 0.8rem;
  }

  .question-title {
    margin-top: 3px;
    font-size: 1rem;
  }

  .question-help,
  .question-tip {
    margin-top: 5px;
  }

  .question-count {
    font-size: 0.78rem;
  }

  .inkblot-visual {
    min-height: 160px;
    margin: 6px auto 8px;
    padding: 8px;
  }

  .inkblot-visual svg {
    max-width: 380px;
  }

  .answer-list {
    gap: 6px;
    margin-top: 8px;
  }

  .answer-button {
    min-height: 42px;
    padding: 7px 9px;
  }

  .answer-button strong {
    font-size: 0.88rem;
  }

  .answer-button .answer-copy > span {
    margin-top: 1px;
    font-size: 0.78rem;
  }
}

@media (max-width: 700px) and (max-height: 760px) {
  .quiz-shell {
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #ambientCanvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 13mm;
  }

  html,
  body {
    width: auto;
    max-width: none;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111827 !important;
    font-family:
      Pretendard,
      "Segoe UI",
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      sans-serif;
  }

  body * {
    visibility: hidden !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .print-report-sheet,
  .print-report-sheet * {
    visibility: visible !important;
  }

  .print-report-sheet {
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
    width: 100%;
    padding: 0;
    background: #fff;
    color: #111827;
    font-size: 10.2pt;
    line-height: 1.45;
  }

  .print-report-header,
  .print-report-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    border-color: #111827;
  }

  .print-report-header {
    padding-bottom: 10px;
    border-bottom: 2px solid #111827;
  }

  .print-report-header strong {
    display: block;
    font-size: 17pt;
    letter-spacing: 0;
  }

  .print-report-header span,
  .print-report-footer span,
  .print-muted {
    color: #4b5563;
  }

  .print-report-mode {
    font-weight: 900;
    text-align: right;
  }

  .print-report-title {
    padding: 14px 0 8px;
    break-inside: avoid;
  }

  .print-report-title > p:first-child,
  .print-report-section h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 10pt;
    font-weight: 950;
  }

  .print-report-title h1 {
    margin: 0 0 10px;
    font-size: 22pt;
    line-height: 1.18;
  }

  .print-report-title p {
    margin: 7px 0 0;
  }

  .print-report-title dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
  }

  .print-report-title dl div {
    padding: 7px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
  }

  .print-report-title dt {
    color: #6b7280;
    font-size: 8pt;
    font-weight: 900;
  }

  .print-report-title dd {
    margin: 2px 0 0;
    font-weight: 950;
  }

  .print-report-section {
    padding: 10px 0;
    border-top: 1px solid #d1d5db;
    break-inside: avoid;
    page-break-inside: avoid;
  }

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

  .print-score-grid article,
  .print-insight-list article {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    break-inside: avoid;
  }

  .print-score-grid span {
    display: block;
    color: #4b5563;
    font-size: 8pt;
    font-weight: 900;
  }

  .print-score-grid strong {
    display: block;
    margin-top: 2px;
    font-size: 12pt;
  }

  .print-score-grid i {
    display: block;
    height: 5px;
    margin: 5px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
  }

  .print-score-grid b {
    display: block;
    height: 100%;
    background: #111827;
  }

  .print-score-grid p,
  .print-insight-list p {
    margin: 4px 0 0;
  }

  .print-insight-list {
    display: grid;
    gap: 7px;
  }

  .print-report-section ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 17px;
  }

  .print-risk {
    padding: 8px;
    border: 1px solid #991b1b;
    border-radius: 6px;
    color: #7f1d1d;
    font-weight: 900;
  }

  .print-caveat-section {
    font-size: 9.4pt;
  }

  .print-report-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #111827;
    font-size: 8.5pt;
  }

  .print-report-sheet button,
  .print-report-sheet .report-actions {
    display: none !important;
  }
}
