﻿:root {
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --ink: #1f2522;
  --muted: #6f766f;
  --line: #ded5c7;
  --accent: #0d6b5f;
  --accent-2: #9c5b35;
  --soft: #e9f4ef;
  --warning: #f8e3c3;
  --shadow: 0 18px 50px rgba(42, 33, 23, 0.11);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(13, 107, 95, 0.08), transparent 32%),
    linear-gradient(230deg, rgba(156, 91, 53, 0.1), transparent 34%),
    var(--paper);
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.top-brand {
  display: grid;
  gap: 2px;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  color: #fff;
  background: var(--accent);
  text-align: left;
}

.top-brand strong,
.top-brand span {
  display: block;
}

.top-brand strong {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
}

.top-brand span {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0.92;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.top-nav-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
}

.top-nav-button:hover,
.top-nav-button.active {
  border-color: rgba(13, 107, 95, 0.25);
  color: var(--accent);
  background: var(--soft);
}

.owner-mode-button {
  border-color: rgba(156, 91, 53, 0.24);
  color: #6d3f24;
  background: #fff4e7;
}

.owner-side-button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid rgba(156, 91, 53, 0.24);
  border-radius: 8px;
  color: #6d3f24;
  background: #fff4e7;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.side-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 142px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.12;
  text-align: center;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: grid;
  gap: 8px;
}

.back-button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
  text-align: left;
  padding: 0 14px;
}

.back-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 8px 20px rgba(42, 33, 23, 0.04);
}

.step span {
  color: var(--ink);
  font-weight: 750;
}

.step:hover,
.step.active {
  border-color: rgba(13, 107, 95, 0.25);
  background: var(--soft);
  color: var(--accent);
}

.status-card {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 99px;
  background: #33a36f;
  box-shadow: 0 0 0 5px rgba(51, 163, 111, 0.13);
}

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-left: 300px;
  padding: 20px 34px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.footer-legal-details {
  display: grid;
  gap: 4px;
  margin: 0;
}

.footer-legal-details div {
  display: grid;
  grid-template-columns: 150px minmax(260px, 1fr);
  gap: 8px;
  align-items: start;
}

.footer-legal-details dt,
.footer-legal-details dd {
  margin: 0;
}

.footer-legal-details a {
  white-space: nowrap;
}

.footer-legal-details dt {
  color: var(--ink);
  font-weight: 750;
}

.footer-legal-details dd {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-start;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.method-panel,
.principles article,
.selection-bar,
.diagnostic-card,
.question-group,
.report-section,
.history-item,
.offer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 58px);
  min-width: 0;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.hero-title {
  display: grid;
  gap: 2px;
}

.hero-title span {
  display: block;
  min-width: 0;
}

.title-nowrap {
  white-space: nowrap;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #48514b;
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary,
.secondary,
.danger,
.icon-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
}

.primary {
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary {
  padding: 0 18px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.danger {
  padding: 0 16px;
  color: #7b2c22;
  border-color: rgba(123, 44, 34, 0.24);
  background: #fff0ed;
}

.small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.icon-button {
  width: 44px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  font-size: 22px;
}

.method-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  min-width: 0;
}

.metric {
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.metric span {
  display: block;
  color: var(--accent);
  font-size: 46px;
  font-weight: 850;
}

.metric p {
  margin: 8px 0 0;
  color: #3d4942;
  line-height: 1.45;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.principles article {
  padding: 20px;
}

.principles p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.screen-head,
.selection-bar,
.sticky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.screen-head {
  margin-bottom: 18px;
}

.screen-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.selection-bar {
  position: sticky;
  top: 16px;
  z-index: 4;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.selection-bar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

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

.deck-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.deck-card.active {
  border-color: rgba(13, 107, 95, 0.35);
  background: var(--soft);
}

.deck-card.locked {
  background: rgba(255, 253, 248, 0.68);
}

.deck-card-head {
  display: flex;
  min-height: 64px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deck-card h3,
.deck-card p {
  margin: 0;
}

.deck-card p {
  color: var(--muted);
  line-height: 1.5;
}

.deck-lock {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff4e7;
  font-size: 16px;
}

.deck-access-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.deck-access-message {
  margin-bottom: 16px;
  border-color: rgba(156, 91, 53, 0.24);
  background: #fff4e7;
}

.tariffs-head {
  align-items: flex-start;
}

.tariff-soft-prompt {
  margin-bottom: 16px;
  color: var(--accent);
  background: var(--soft);
}

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

.tariff-plan {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.tariff-plan.is-vip {
  border-color: rgba(156, 91, 53, 0.42);
  background: linear-gradient(180deg, #fff7e8, rgba(255, 253, 248, 0.96) 42%);
}

.tariff-card-head {
  display: flex;
  min-height: 70px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tariff-badge,
.tariff-period em {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #684018;
  background: #f7e4bd;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  line-height: 1.12;
}

.tariff-badge {
  flex: 0 0 92px;
  max-width: 92px;
  white-space: normal;
}

.tariff-description {
  min-height: 74px;
  margin: 12px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tariff-price {
  margin: 0 0 16px;
  font-size: 25px;
  font-weight: 850;
}

.tariff-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.tariff-features {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tariff-features li {
  position: relative;
  padding-left: 20px;
  color: #3d4942;
  font-size: 14px;
  line-height: 1.35;
}

.tariff-features li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 850;
}

.tariff-periods {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.tariff-period {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.tariff-period:hover,
.tariff-period.active {
  border-color: var(--accent);
  background: var(--soft);
}

.tariff-period span {
  font-weight: 850;
}

.tariff-period small {
  color: var(--muted);
  font-size: 13px;
}

.tariff-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.tariff-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tariff-summary-row strong {
  color: var(--ink);
  text-align: right;
}

.tariff-choice-note {
  min-height: 42px;
  margin: 12px 0 14px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
}

.tariff-legal-note {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tariff-legal-note .text-link {
  font-size: inherit;
}

.tariff-select {
  width: 100%;
}

.subscription-status {
  border-color: rgba(13, 107, 95, 0.22);
  background: linear-gradient(180deg, var(--soft), rgba(255, 253, 248, 0.94));
}

.diagnostic-card {
  min-height: 300px;
  padding: 16px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.diagnostic-card:hover {
  transform: translateY(-2px);
}

.diagnostic-card.selected {
  border-color: var(--accent);
  background: var(--soft);
}

.diagnostic-card.like {
  border-color: #2f8f6b;
  background: #edf8f2;
}

.diagnostic-card.dislike {
  border-color: #b85c5c;
  background: #fff1ef;
}

.module-brief {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.module-brief h3,
.module-brief h4 {
  margin: 4px 0 10px;
}

.module-brief p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.geometry-story details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.geometry-story summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
}

.story-content {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-width: 880px;
}

.story-content h4 {
  margin: 12px 0 0;
}

.answer-reminder {
  margin-bottom: 4px;
}

.geometry-order-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(13, 107, 95, 0.22);
  border-radius: 8px;
  background: var(--soft);
}

.geometry-order-panel h4,
.geometry-order-panel p {
  margin: 0 0 6px;
}

.brand-preorder-card {
  border-color: rgba(13, 107, 95, 0.28);
  background: linear-gradient(180deg, var(--soft), rgba(255, 253, 248, 0.96));
}

.brand-preorder-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.brand-preorder-card button {
  margin-top: 12px;
  width: 100%;
}

.geometry-count-screen {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.geometry-count-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.geometry-card {
  gap: 10px;
}

.geometry-gallery-head {
  margin-bottom: 4px;
}

.geometry-research {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.geometry-card-view,
.geometry-answer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.geometry-card-view {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: start;
  overflow: auto;
  padding: 18px;
  max-height: calc(100vh - 150px);
}

.geometry-card-view img {
  justify-self: start;
  width: calc(100% * var(--card-zoom, 1));
  min-width: 220px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: width 160ms ease;
}

.geometry-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.geometry-answer-panel {
  padding: 18px;
}

.geometry-answer-panel textarea {
  min-height: 300px;
}

.geometry-prompts {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.geometry-prompts p {
  margin: 0;
}

.autosave-note {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.geometry-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.geometry-report-cards figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.geometry-report-cards img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.geometry-report-cards figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.face-choice-card {
  display: grid;
}

.face-subdeck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.face-subdeck {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.face-subdeck.active {
  border-color: var(--accent);
  background: var(--soft);
}

.face-subdeck:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.face-subdeck span {
  color: var(--muted);
  font-size: 13px;
}

.face-pick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.face-pick-actions button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.faces-stage-two {
  display: grid;
  gap: 12px;
}

.mini-face-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.mini-face-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  text-align: left;
}

.mini-face-card.selected {
  border-color: var(--accent);
  background: var(--soft);
}

.mini-face-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 6px;
  background: #f4efe6;
}

.faces-question-group small {
  display: block;
  margin: 6px 0 8px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  border-radius: 6px;
  object-fit: contain;
  background: #f4efe6;
}

.card-image.placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 38px;
  font-weight: 850;
}

.card-number {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
}

.card-title {
  display: block;
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.card-category {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.answers-form {
  display: grid;
  gap: 16px;
}

.diary-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.diary-form label {
  display: grid;
  gap: 8px;
  color: #3d4942;
  font-weight: 700;
}

.consent-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.auth-code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 8px;
  background: var(--soft);
}

.auth-code-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recovery-form {
  border-color: rgba(156, 91, 53, 0.25);
  background: rgba(248, 227, 195, 0.35);
}

.text-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-screen {
  max-width: 920px;
}

.legal-document {
  display: grid;
  gap: 14px;
  line-height: 1.65;
}

.legal-document h3 {
  margin-top: 8px;
  font-size: 18px;
}

.legal-document p {
  margin: 0;
}

.legal-document a,
.site-footer a {
  color: var(--accent);
  font-weight: 750;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(720px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.cabinet-grid .report-section:first-child {
  grid-column: 1 / -1;
}

.client-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  max-width: 100%;
  overflow: hidden;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #3f4943;
  font-size: 13px;
}

.client-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.client-row span {
  overflow-wrap: anywhere;
}

.client-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.owner-password-panel {
  grid-column: 1 / -1;
}

.owner-password-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.owner-password-form label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}

.owner-password-form input {
  width: 100%;
}

.owner-password-form p {
  margin: 0;
  color: var(--muted);
}

.owner-password-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.client-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 2px solid rgba(13, 107, 95, 0.22);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 30px;
  font-weight: 850;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  margin-top: 10px;
}

.avatar-upload input {
  display: none;
}

.question-group {
  padding: 20px;
}

.compact-question {
  padding: 14px 18px;
}

.question-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.answer-card-image {
  width: 92px;
  height: 116px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f4efe6;
}

.question-group label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #3d4942;
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

.sticky-actions {
  position: sticky;
  bottom: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
}

.report-content {
  display: grid;
  gap: 16px;
}

.report-section {
  padding: 22px;
}

.report-section p {
  color: #3f4943;
  line-height: 1.65;
}

.report-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #3f4943;
  line-height: 1.7;
}

.dashboard-section {
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe5 100%);
}

.dashboard-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dashboard-gauge-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 282px;
  padding: 14px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 26px rgba(42, 60, 52, 0.08);
  text-align: center;
}

.dashboard-gauge-total {
  width: 100%;
  color: #26352e;
  font-size: 19px;
  line-height: 1.15;
}

.dashboard-gauge-arc {
  position: relative;
  width: 150px;
  height: 78px;
  overflow: hidden;
  border-radius: 150px 150px 0 0;
  background:
    conic-gradient(from 270deg at 50% 100%, var(--accent) calc(var(--score) * 1.8deg), #e6ded1 0 180deg, transparent 0);
}

.dashboard-gauge-arc::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 50px;
  border-radius: 80px 80px 0 0;
  background: #fffdf8;
}

.dashboard-gauge-arc span {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 1;
  color: #26352e;
  font-size: 24px;
  font-weight: 900;
}

.dashboard-gauge-body {
  display: grid;
  gap: 5px;
  width: 100%;
}

.dashboard-gauge-body strong {
  color: #26352e;
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-gauge-body span {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: #526158;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-gauge-body small {
  color: #7b7065;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-gauge-card h4 {
  align-self: end;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.dashboard-gauge-card em {
  color: #7b7065;
  font-size: 11px;
  font-style: normal;
}

.dashboard-gauge-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-gauge-card.is-clickable:hover,
.dashboard-gauge-card.is-clickable:focus {
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(42, 60, 52, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.platform-dashboard-grid .dashboard-gauge-card {
  min-height: 300px;
}

.dashboard-detail-target {
  display: grid;
  gap: 14px;
}

.dashboard-detail-placeholder {
  border-style: dashed;
}

.dashboard-detail-panel h4 {
  margin: 18px 0 10px;
}

.dashboard-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.dashboard-detail-summary article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.dashboard-detail-summary span {
  color: #6f766f;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.dashboard-detail-summary strong {
  color: #26352e;
  line-height: 1.25;
}

.dashboard-detail-note {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(13, 107, 95, 0.16);
  border-radius: 8px;
  background: rgba(248, 255, 251, 0.78);
}

.dashboard-detail-note p {
  margin: 0;
}

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

.dashboard-detail-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 0.9fr) minmax(100px, 0.7fr) minmax(92px, 0.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.dashboard-detail-row.head {
  color: #526158;
  background: #f5efe5;
}

.dashboard-detail-row span {
  min-width: 0;
  color: #3f4943;
  line-height: 1.35;
}

.module-process-dashboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 239, 229, 0.88));
}

.module-process-dashboard h3,
.module-process-dashboard p {
  margin: 0 0 6px;
}

.module-process-dashboard p {
  color: #526158;
  line-height: 1.55;
}

.process-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.process-metric-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.process-metric-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) calc(var(--score) * 1%), #e6ded1 0);
}

.process-metric-card strong {
  color: #26352e;
  font-size: 24px;
  line-height: 1.05;
}

.process-metric-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.process-metric-card small {
  color: #6f766f;
  font-size: 12px;
  line-height: 1.35;
}

.platform-module-grid,
.dashboard-history-strip {
  display: grid;
  gap: 12px;
}

.platform-module-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.platform-module-card,
.dashboard-history-strip article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.platform-module-card span,
.dashboard-history-strip span {
  color: #526158;
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-history-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.archetype-algorithm-grid,
.archetype-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.archetype-algorithm-grid article,
.archetype-history-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.archetype-algorithm-grid span,
.archetype-history-card span {
  color: #6f766f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.archetype-algorithm-grid strong,
.archetype-history-card strong {
  color: #26352e;
  font-size: 20px;
  line-height: 1.2;
}


.personal-algorithm-subnav {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 14px 0 0;
}

.algorithm-subnav-button,
.algorithm-substep {
  border: 1px solid rgba(13, 107, 95, 0.24);
  border-radius: 8px;
  color: #26352e;
  background:
    linear-gradient(135deg, rgba(244, 185, 66, 0.28), rgba(0, 212, 166, 0.18)),
    #fffdf8;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  box-shadow: 0 10px 22px rgba(13, 107, 95, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.algorithm-subnav-button {
  width: min(100%, 320px);
  padding: 9px 12px;
}

.algorithm-substep {
  margin-left: 14px;
  padding: 8px 10px;
}

.algorithm-subnav-button:hover,
.algorithm-substep:hover {
  border-color: rgba(0, 119, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(244, 185, 66, 0.38), rgba(0, 212, 166, 0.28)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(0, 119, 255, 0.12);
  transform: translateY(-1px);
}

.money-meanings-algorithm-block {
  display: grid;
  gap: 18px;
}

.money-meanings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.money-meanings-head h3,
.money-meanings-head p {
  margin-bottom: 0;
}

.money-meanings-head > span {
  border: 1px solid rgba(13, 107, 95, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent);
  background: rgba(248, 255, 251, 0.9);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}


.money-meanings-algorithm-block.is-preview {
  border-color: rgba(176, 111, 45, 0.26);
}

.money-tariff-lock {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border: 1px dashed rgba(176, 111, 45, 0.42);
  border-radius: 8px;
  background: #fff8eb;
}

.money-tariff-lock span {
  color: #775c36;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.money-tariff-lock strong {
  color: #26352e;
  font-size: 20px;
  line-height: 1.2;
}

.money-tariff-lock p {
  margin: 0;
  color: #526158;
  line-height: 1.45;
}


.money-meaning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.money-depth-card,
.money-algorithm-index-card,
.money-insight-grid article,
.money-conclusion {
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.money-depth-card {
  padding: 15px;
}

.money-depth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.money-depth-card-head span,
.money-algorithm-index-card span,
.money-insight-grid span {
  color: #6f766f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.money-depth-card-head strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}


.money-depth-card-lead {
  max-width: 760px;
  margin: -4px 0 16px;
  color: #526158;
  line-height: 1.5;
}

.money-depth-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.money-depth-mini {
  --level-a: #0d6b5f;
  --level-b: #f4b942;
  --level-c: #ffffff;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 18px 36px rgba(38, 53, 46, 0.12);
}

.money-depth-mini-chart {
  width: min(100%, 168px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, var(--level-a) 0deg, var(--level-b) var(--level-angle), rgba(33, 43, 38, 0.12) 0deg),
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.76),
    0 16px 28px rgba(38, 53, 46, 0.18);
}

.money-depth-mini-chart-core {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(42, 60, 52, 0.1);
}

.money-depth-mini-chart-core strong {
  color: #26352e;
  font-size: 28px;
  line-height: 1;
}

.money-depth-mini-chart-core span {
  color: #526158;
  font-size: 12px;
  font-weight: 900;
}

.money-depth-mini-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.money-depth-mini-copy span {
  width: fit-content;
  justify-self: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--level-a), var(--level-b));
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.money-depth-mini-copy h4 {
  margin: 0;
  color: #26352e;
  font-size: 21px;
  line-height: 1.08;
}

.money-depth-mini-copy p {
  margin: 0;
  color: #526158;
  font-size: 13px;
  line-height: 1.4;
}

.money-depth-mini--object {
  --level-a: #ff7a18;
  --level-b: #ffcf24;
}

.money-depth-mini--function {
  --level-a: #0077ff;
  --level-b: #00d4a6;
}

.money-depth-mini--emotion {
  --level-a: #ff3d77;
  --level-b: #9b5cff;
}

.money-depth-mini--existence {
  --level-a: #00a676;
  --level-b: #d7f72a;
}

@media (max-width: 1120px) {
  .money-depth-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .money-depth-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .money-depth-mini {
    min-height: 250px;
  }
}

.money-depth-bars {
  display: grid;
  gap: 12px;
}

.money-depth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px 12px;
  align-items: center;
}

.money-depth-row span {
  display: block;
  font-weight: 900;
}

.money-depth-row small {
  display: block;
  margin-top: 4px;
  color: #6f766f;
  line-height: 1.35;
}

.money-depth-row strong {
  text-align: right;
}

.money-depth-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9dfd2;
}

.money-depth-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #b06f2d);
}

.money-index-grid,
.money-insight-grid {
  display: grid;
  gap: 12px;
}

.money-index-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.money-algorithm-index-card,
.money-insight-grid article,
.money-conclusion {
  padding: 14px;
}

.money-algorithm-index-card strong {
  display: block;
  margin-top: 8px;
  color: #26352e;
  font-size: 24px;
}

.money-algorithm-index-card p,
.money-insight-grid p,
.money-conclusion p,
.money-conclusion span {
  margin: 8px 0 0;
  color: #526158;
  line-height: 1.45;
}

.money-answers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.money-answer-chip {
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.money-answer-chip.object { color: #775c36; background: #fff6e3; }
.money-answer-chip.function { color: #0d6b5f; background: #e8f5f1; }
.money-answer-chip.emotion { color: #8b4d67; background: #fff0f5; }
.money-answer-chip.existence { color: #546f28; background: #eef6dd; }

.money-insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.money-conclusion strong {
  color: #26352e;
  font-size: 18px;
}

@media (max-width: 1400px) {
  .money-depth-dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .money-depth-mini {
    min-height: 260px;
  }

  .money-depth-mini-chart {
    width: min(100%, 142px);
  }

  .money-depth-mini-chart-core strong {
    font-size: 24px;
  }

  .money-depth-mini-copy h4 {
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  .money-meaning-layout,
  .money-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .money-meanings-head {
    flex-direction: column;
  }

  .money-index-grid {
    grid-template-columns: 1fr;
  }
}



.relationship-map-block {
  --relationship-a: #ff3d77;
  --relationship-b: #0077ff;
  --relationship-c: #00d4a6;
}

.relationship-map-panel,
.relationship-diagnostic-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 61, 119, 0.13), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(0, 212, 166, 0.16), transparent 30%),
    #fffdf8;
}

.relationship-map-intro span,
.relationship-diagnostic-head span,
.relationship-word-group span {
  color: #6f766f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.relationship-map-intro h4,
.relationship-diagnostic-head h4 {
  margin: 6px 0;
  color: #26352e;
  font-size: 24px;
  line-height: 1.15;
}

.relationship-map-intro p,
.relationship-diagnostic-head p,
.relationship-word-group p {
  margin: 0;
  color: #526158;
  line-height: 1.45;
}

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

.relationship-word-group {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.relationship-word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relationship-word-pill {
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 999px;
  padding: 8px 11px;
  color: #26352e;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.relationship-word-pill:hover,
.relationship-word-pill.is-selected {
  border-color: rgba(255, 61, 119, 0.36);
  color: #ffffff;
  background: linear-gradient(135deg, var(--relationship-a), var(--relationship-b));
  box-shadow: 0 12px 24px rgba(255, 61, 119, 0.16);
  transform: translateY(-1px);
}

.relationship-diagnostic-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.relationship-diagnostic-head strong {
  flex: 0 0 auto;
  color: var(--relationship-a);
  font-size: 32px;
  line-height: 1;
}

.relationship-answer-list {
  display: grid;
  gap: 8px;
}

.relationship-answer-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(42, 60, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.relationship-answer-row span {
  color: #26352e;
  font-size: 13px;
  font-weight: 900;
}

.relationship-answer-row input {
  min-width: 0;
  border: 1px solid rgba(42, 60, 52, 0.16);
  border-radius: 8px;
  padding: 10px 11px;
  color: #26352e;
  background: #ffffff;
  font: inherit;
}

.relationship-mic-button {
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 119, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.14), rgba(0, 212, 166, 0.16));
  cursor: pointer;
}

.relationship-diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.relationship-diagnostic-actions span {
  color: #526158;
  font-size: 13px;
  font-weight: 800;
}

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

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

@media (max-width: 980px) {
  .relationship-word-groups,
  .relationship-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .relationship-answer-row {
    grid-template-columns: 1fr 42px;
  }

  .relationship-answer-row span {
    grid-column: 1 / -1;
  }

  .relationship-diagnostic-head {
    flex-direction: column;
  }
}



.relationship-full-report {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 185, 66, 0.18), transparent 30%),
    radial-gradient(circle at 95% 5%, rgba(0, 212, 166, 0.14), transparent 32%),
    #ffffff;
  box-shadow: 0 18px 36px rgba(38, 53, 46, 0.1);
}

.relationship-full-report.is-locked {
  border-style: dashed;
  background: #fff8eb;
}

.relationship-report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.relationship-report-head span,
.relationship-report-sections span {
  color: #6f766f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.relationship-report-head h4 {
  margin: 6px 0;
  color: #26352e;
  font-size: 24px;
  line-height: 1.15;
}

.relationship-report-head p,
.relationship-report-sections p,
.relationship-full-report.is-locked p {
  margin: 0;
  color: #526158;
  line-height: 1.5;
}

.relationship-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.relationship-report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  text-decoration: none;
}

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

.relationship-report-sections section {
  padding: 12px;
  border: 1px solid rgba(42, 60, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 760px) {
  .relationship-report-head {
    flex-direction: column;
  }

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

  .relationship-report-sections {
    grid-template-columns: 1fr;
  }
}

.archetype-formula {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(13, 107, 95, 0.2);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(248, 255, 251, 0.88);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.archetype-card-section > p {
  max-width: 760px;
}

.archetype-card-stage {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.archetype-visual-card {
  width: min(100%, 520px);
  min-height: 650px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
  padding: 30px;
  overflow: visible;
  border: 1px solid rgba(42, 60, 52, 0.12);
  border-radius: 8px;
  color: #202722;
  background:
    linear-gradient(135deg, rgba(176, 111, 45, 0.09), transparent 36%),
    linear-gradient(180deg, #fffdf8 0%, #f6f0e6 100%);
  box-shadow: 0 26px 70px rgba(42, 60, 52, 0.13);
}

.archetype-visual-card[data-open-archetype-card] {
  cursor: zoom-in;
}

.archetype-visual-card[data-open-archetype-card]:focus-visible {
  outline: 3px solid rgba(13, 107, 95, 0.28);
  outline-offset: 4px;
}

.archetype-card-hint {
  align-self: end;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.archetype-card-modal[hidden] {
  display: none;
}

.archetype-card-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 26px;
}

.archetype-card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 39, 34, 0.48);
  backdrop-filter: blur(8px);
}

.archetype-card-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 52px);
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow-y: auto;
  padding: 12px;
}

.archetype-card-close {
  justify-self: end;
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
  color: #26352e;
  background: #fffdf8;
  font-weight: 850;
  cursor: pointer;
}

.archetype-visual-card-full {
  width: min(100%, 620px);
  min-height: auto;
  cursor: default;
}

body.modal-open {
  overflow: hidden;
}

.archetype-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.archetype-card-kicker {
  max-width: 220px;
  color: #7a756c;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.archetype-card-symbol {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 253, 248, 0.72);
  font-size: 34px;
  font-weight: 500;
}

.archetype-visual-card h3 {
  margin: 0;
  color: #202722;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.98;
}

.archetype-card-motto {
  max-width: 360px;
  margin: 10px 0 0;
  color: #5d625c;
  font-size: 17px;
  line-height: 1.38;
}

.archetype-card-meter {
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid rgba(42, 60, 52, 0.12);
  border-bottom: 1px solid rgba(42, 60, 52, 0.12);
}

.archetype-card-meter > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.archetype-card-meter span,
.archetype-card-meter small {
  color: #7a756c;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.archetype-card-meter strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.archetype-card-strength {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(42, 60, 52, 0.12);
}

.archetype-card-strength span {
  display: block;
  width: calc(var(--level) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bba581, #0d6b5f);
}

.archetype-card-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.archetype-card-facts div {
  display: grid;
  gap: 4px;
}

.archetype-card-facts dt {
  color: #81796d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.archetype-card-facts dd {
  margin: 0;
  color: #2d352f;
  font-size: 13px;
  line-height: 1.34;
}

.archetype-wheel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.archetype-wheel::before {
  content: "12 архетипов";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 253, 248, 0.92);
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
}

.archetype-sector {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(13, 107, 95, 0.16) calc(var(--level) * 1%), transparent 0),
    #fffdf8;
}

.archetype-sector span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.archetype-sector strong {
  color: #26352e;
  line-height: 1.25;
}

.archetype-sector small,
.archetype-history-card small {
  color: #6f766f;
  line-height: 1.35;
}

.archetype-scale {
  color: #6f766f;
  font-size: 13px;
}

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

.archetype-score-list article {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(200px, 1fr) 54px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.archetype-score-list article div:first-child {
  display: grid;
  gap: 3px;
}

.archetype-score-list span {
  color: #6f766f;
  font-size: 12px;
  line-height: 1.35;
}

.archetype-score-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ded1;
}

.archetype-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.archetype-score-list b {
  color: #26352e;
  text-align: right;
}

.archetype-trend-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(42, 60, 52, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.archetype-trend-chart {
  width: 100%;
  min-height: 220px;
}

.archetype-trend-chart line {
  stroke: rgba(42, 60, 52, 0.13);
  stroke-width: 1;
}

.archetype-trend-chart polyline {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archetype-trend-chart text {
  fill: #6f766f;
  font-size: 16px;
  font-weight: 800;
}

.trend-leading {
  stroke: var(--accent);
  background: var(--accent);
}

.trend-companion {
  stroke: #b06f2d;
  background: #b06f2d;
}

.trend-shadow {
  stroke: #7b5ea7;
  background: #7b5ea7;
}

.archetype-trend-legend,
.archetype-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.archetype-trend-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #26352e;
  font-size: 13px;
  font-weight: 850;
}

.archetype-trend-legend i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.archetype-year-grid {
  margin-top: 12px;
}

.archetype-year-grid article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.archetype-year-grid strong {
  color: var(--accent);
  font-size: 20px;
}

.archetype-year-grid span {
  color: #6f766f;
  font-size: 13px;
  line-height: 1.35;
}

.resource-final {
  border-color: rgba(13, 107, 95, 0.24);
  background: linear-gradient(180deg, #f8fffb, var(--surface));
}

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

.report-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.report-card-images figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-card-images img,
.image-fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: contain;
  background: #f4efe6;
}

.image-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 34px;
  font-weight: 850;
}

.report-card-images figcaption {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.kpi {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.memory-panel {
  border-color: rgba(13, 107, 95, 0.28);
  background: linear-gradient(180deg, rgba(233, 244, 239, 0.88), rgba(255, 253, 248, 0.92));
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.memory-block {
  padding: 13px;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 8px;
  background: #fff;
}

.memory-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.memory-block strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 20px;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.signal-list span {
  padding: 7px 10px;
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #3f4943;
  font-size: 13px;
  font-weight: 700;
}

.offer-panel {
  padding: 22px;
  background: #173c38;
  color: #fff;
}

.offer-panel p {
  color: rgba(255, 255, 255, 0.82);
}

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

.offer-actions .secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.history-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.calendar-list {
  display: grid;
  gap: 16px;
}

.calendar-day {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.calendar-day > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.calendar-day > header span {
  color: var(--muted);
}

.calendar-events {
  display: grid;
  gap: 10px;
}

.calendar-event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-event time {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.calendar-event span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.history-item {
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.history-item header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 10px;
}

.history-item header > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.history-item p {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: clamp(32px, 5.5vw, 58px);
  }
}

@media (max-width: 900px) {
  .top-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }

  .top-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav-button {
    flex: 0 0 auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding: 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-legal-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .side-panel {
    position: static;
    height: auto;
    padding: 16px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .back-button {
    margin-bottom: 12px;
  }

  .step {
    min-width: 112px;
    justify-content: center;
    text-align: center;
  }

  .step span {
    display: inline;
  }

  .status-card {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .hero-grid,
  .principles,
  .report-kpis,
  .report-card-images,
  .memory-grid,
  .cabinet-grid,
  .module-process-dashboard,
  .platform-module-grid,
  .dashboard-history-strip,
  .dashboard-detail-summary,
  .dashboard-detail-row,
  .archetype-algorithm-grid,
  .archetype-history-grid,
  .archetype-wheel,
  .archetype-trend-legend,
  .archetype-year-grid,
  .tariff-plans-grid,
  .deck-grid {
    grid-template-columns: 1fr;
  }

  .archetype-wheel::before {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    min-height: 70px;
    margin-bottom: 10px;
  }

  .archetype-score-list article {
    grid-template-columns: 1fr;
  }

  .archetype-score-list b {
    text-align: left;
  }

  .archetype-visual-card {
    aspect-ratio: auto;
    min-height: auto;
    padding: 24px;
  }

  .archetype-card-symbol {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .archetype-card-modal {
    padding: 12px;
  }

  .archetype-card-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 6px;
  }

  .dashboard-detail-row.head {
    display: none;
  }

  .tariff-plan {
    min-height: auto;
  }

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

  .client-profile-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .calendar-event {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(30px, 8.4vw, 54px);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(27px, 7.8vw, 34px);
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding: 24px;
  }

  .screen-head,
  .selection-bar,
  .question-group header {
    align-items: stretch;
    flex-direction: column;
  }

  .answer-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

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

  .consent-check {
    grid-template-columns: 1fr;
  }

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

  .auth-actions button,
  .auth-code-panel button {
    width: 100%;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    width: 100%;
  }
}

.archetype-library-section > p {
  max-width: 820px;
}

.archetype-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.archetype-library-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(87, 75, 60, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  box-shadow: 0 14px 34px rgba(42, 33, 23, 0.07);
}

.archetype-library-card-head {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(87, 75, 60, 0.12);
}

.archetype-library-card-head span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  color: #6d3f24;
  background: #fff4e7;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.archetype-library-card h4 {
  margin: 0;
  color: #202722;
  font-size: 22px;
  line-height: 1.12;
}

.archetype-library-card p {
  margin: 0;
  color: #4f5a52;
  line-height: 1.48;
}

.archetype-library-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.archetype-library-facts div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(42, 60, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.archetype-library-facts dt {
  color: #81796d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.archetype-library-facts dd {
  margin: 0;
  color: #2d352f;
  font-size: 13px;
  line-height: 1.38;
}

@media (max-width: 720px) {
  .archetype-library-grid {
    grid-template-columns: 1fr;
  }

  .archetype-library-card {
    padding: 15px;
  }
}

.start-capsule-hero {
  border-color: rgba(156, 91, 53, 0.18);
  background: linear-gradient(180deg, #fffdf8, #f8efe2);
}

.start-capsule-form {
  gap: 16px;
}

.start-capsule-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.start-capsule-type-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(87, 75, 60, 0.16);
  border-radius: 8px;
  background: #fffdf8;
}

.start-capsule-type-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.start-capsule-type-card span {
  display: grid;
  gap: 6px;
}

.start-capsule-type-card small,
.start-capsule-type-card em,
.start-capsule-materials small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.start-capsule-type-card em {
  font-style: normal;
  font-weight: 750;
}

.start-capsule-materials {
  display: grid;
  gap: 12px;
}

.start-capsule-warning {
  padding: 14px;
  border: 1px solid rgba(156, 91, 53, 0.24);
  border-radius: 8px;
  background: rgba(248, 227, 195, 0.42);
}

.start-capsule-warning p {
  margin: 6px 0 0;
  color: #4f5a52;
  line-height: 1.55;
}

.start-capsule-history,
.start-capsule-media-list {
  display: grid;
  gap: 12px;
}

.start-capsule-history article,
.start-capsule-media-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(42, 60, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.75);
}

.start-capsule-history span,
.start-capsule-history small {
  color: var(--muted);
  font-size: 12px;
}

.start-capsule-media-list video,
.start-capsule-media-list audio {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
}
.platform-live-statistics {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(49, 42, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 18px 48px rgba(57, 45, 31, 0.12);
}

.platform-live-statistics__header,
.platform-live-statistics__events-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.platform-live-statistics h2,
.platform-live-statistics h3 { margin: 0; }

.platform-live-statistics h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.06;
}

.platform-live-statistics__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(49, 42, 33, 0.12);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--muted, #746c61);
  font-size: 0.92rem;
  white-space: nowrap;
}

.platform-live-statistics__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6f806f;
  box-shadow: 0 0 0 5px rgba(111, 128, 111, 0.16);
}

.platform-live-statistics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.platform-live-statistics__card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(49, 42, 33, 0.12);
  border-radius: 8px;
  background: #ffffff;
  animation: live-card-in 520ms ease both;
}

.platform-live-statistics__card:nth-child(3n + 1) { background: linear-gradient(180deg, #ffffff, #e6ece3); }
.platform-live-statistics__card:nth-child(3n + 2) { background: linear-gradient(180deg, #ffffff, #f6eadf); }
.platform-live-statistics__card:nth-child(3n) { background: linear-gradient(180deg, #ffffff, #d9e8ef); }

.platform-live-statistics__value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.platform-live-statistics__label {
  color: var(--muted, #746c61);
  font-size: 0.95rem;
  line-height: 1.4;
}

.platform-live-statistics__events {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(49, 42, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.platform-live-statistics__events-head span {
  color: #6f806f;
  font-size: 0.9rem;
}

.platform-live-statistics__events ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.platform-live-statistics__events li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--muted, #746c61);
  line-height: 1.4;
  animation: live-event-in 420ms ease both;
}

.platform-live-statistics__events li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8b35a;
}

@keyframes live-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes live-event-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .platform-live-statistics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .platform-live-statistics { padding: 20px; }
  .platform-live-statistics__header,
  .platform-live-statistics__events-head { align-items: stretch; flex-direction: column; }
  .platform-live-statistics__status { justify-content: center; width: 100%; }
  .platform-live-statistics__grid { grid-template-columns: 1fr; }
}
/* live statistics sidebar layout v2 */
@media (min-width: 1181px) {
  #intro.screen.active {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
  }

  #intro .hero-grid {
    grid-column: 1;
    grid-template-columns: minmax(0, 1.2fr) 300px;
  }

  #intro .platform-live-statistics {
    position: sticky;
    top: 86px;
    grid-column: 2;
    grid-row: 1 / span 2;
    max-height: calc(100vh - 108px);
    margin-top: 0;
    overflow: auto;
  }

  #intro .principles {
    grid-column: 1;
    margin-top: 0;
  }
}

.platform-live-statistics {
  padding: 16px;
}

.platform-live-statistics__header,
.platform-live-statistics__events-head {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.platform-live-statistics h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.platform-live-statistics__status {
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.platform-live-statistics__grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.platform-live-statistics__card {
  min-height: 74px;
  padding: 12px;
}

.platform-live-statistics__value {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.platform-live-statistics__label {
  font-size: 0.82rem;
  line-height: 1.3;
}

.platform-live-statistics__events {
  margin-top: 10px;
  padding: 12px;
}

.platform-live-statistics__events h3 {
  font-size: 0.95rem;
}

.platform-live-statistics__events ul {
  gap: 8px;
  margin-top: 10px;
}

.platform-live-statistics__events li {
  min-height: 30px;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .platform-live-statistics {
    margin-top: 18px;
  }
}
/* end live statistics sidebar layout */


/* compact method panel v3 */
@media (min-width: 1181px) {
  #intro .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #intro .hero-copy {
    padding: clamp(28px, 4vw, 52px);
  }

  #intro .method-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 12px;
  }

  #intro .metric {
    min-height: 104px;
    padding: 12px;
  }

  #intro .metric span {
    font-size: 30px;
    line-height: 1;
  }

  #intro .metric p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.28;
  }
}
/* end compact method panel */

.geometry-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.geometry-module {
  width: 100%;
}

.geometry-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.geometry-count-option {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 14px;
  font-weight: 700;
}

.geometry-count-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.geometry-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

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

.geometry-gallery-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.geometry-gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.geometry-research-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.geometry-card-view,
.geometry-answer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.geometry-card-view {
  display: grid;
  gap: 16px;
  justify-items: start;
  align-content: start;
  overflow: auto;
  max-height: calc(100vh - 150px);
}

.geometry-card-view img {
  justify-self: start;
  width: calc(100% * var(--card-zoom, 1));
  min-width: 220px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: width 0.18s ease;
  background: #fff;
  border-radius: 6px;
}

.geometry-answer-panel textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
}

.card-description-save-status {
  display: block;
  min-height: 22px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: right;
}

.card-description-save-status[data-status="saved"] {
  color: #227447;
}

.card-description-save-status[data-status="saving"],
.card-description-save-status[data-status="loading"] {
  color: #8a5a00;
}

.card-description-save-status[data-status="error"],
.card-description-save-status[data-status="offline"],
.card-description-save-status[data-status="local"] {
  color: #a33a2b;
}

.geometry-prompts {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.geometry-prompts p,
.autosave-note {
  margin: 0;
}

.autosave-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.geometry-result-cards,
.geometry-history-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.geometry-result-cards figure {
  margin: 0;
  width: 118px;
}

.geometry-result-cards img,
.geometry-history-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.geometry-history-thumbs img {
  width: 54px;
}

@media (max-width: 860px) {
  .geometry-entry,
  .geometry-research-layout {
    grid-template-columns: 1fr;
  }

  .geometry-entry {
    display: grid;
  }
}


.geometry-card-controls {
  position: sticky;
  bottom: 0;
  z-index: 3;
  width: 100%;
  justify-content: center;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.72), var(--surface) 34%);
}


.geometry-card-view {
  cursor: grab;
  overscroll-behavior: contain;
}

.geometry-card-view.is-dragging {
  cursor: grabbing;
}

.geometry-card-view img {
  user-select: none;
}


.closed-test-nav-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.closed-test-access-panel {
  border-color: rgba(13, 107, 95, 0.18);
  background: linear-gradient(135deg, #ffffff, #edf7f2);
}

.closed-test-principles article {
  min-height: 142px;
}

.closed-test-actions {
  margin-top: 18px;
}
