:root {
  --bg: #0c0d0c;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2efe7;
  --muted: #aaa79f;
  --soft: #82817a;   /* 4,98:1 a háttéren — WCAG AA kis szövegre is */
  --accent: #b79cff;
  --accent-ink: #160f25;
  --danger: #d9a09a;
  --clarity: 0;
  /* Térköz-skála (8pt-alapú) és közös mozgásgörbe — a fegyelmezett ritmushoz.
     Új és átdolgozott szabályok ezekből építkeznek; a meglévők fokozatosan állnak át. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --accent-glow: rgba(183, 156, 255, .26);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(122, 84, 210, calc(.07 + var(--clarity) * .07)), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(88, 60, 150, .09), transparent 38%),
    var(--bg);
  font-family: "Instrument Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 900ms ease;
}

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

/* Micro-craft: szövegkijelölés, kurzorszín és diszkrét görgetősáv az akcent hangján. */
::selection { background: rgba(183, 156, 255, .26); color: var(--text); }
textarea, input { caret-color: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: rgba(183, 156, 255, .26) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(183, 156, 255, .2);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(183, 156, 255, .38); background-clip: content-box; }

.grain {
  position: fixed;
  inset: 0;
  opacity: .03;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: calc(.02 + var(--clarity) * .035);
  transition: opacity 900ms ease;
}

.ambient-one { top: -22rem; left: -15rem; background: var(--accent); }
.ambient-two { right: -24rem; bottom: -25rem; background: #7150bd; }

.site-header {
  position: relative;
  z-index: 10;
  padding: 24px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(183, 156, 255, .18);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #09080d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  opacity: .9;
  transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}

.header-brand-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.header-brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: rgba(183, 156, 255, .46);
  opacity: 1;
}

.header-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.header-tools {
  position: static;
  display: flex;
  align-items: center;
  gap: 13px;
}

.sync-status {
  min-height: 34px;
  border: 1px solid rgba(183, 156, 255, .18);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaa4b4;
  background: rgba(17, 16, 21, .72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  backdrop-filter: blur(16px);
  transition: color .25s ease, border-color .25s ease, opacity .25s ease;
}

.sync-status[hidden] { display: none; }

.sync-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 11px rgba(183, 156, 255, .55);
}

.sync-status.is-saving i { animation: sync-pulse 1s ease-in-out infinite; }
.sync-status.is-error { color: #d6a6a1; border-color: rgba(217, 160, 154, .25); }
.sync-status.is-error i { background: var(--danger); box-shadow: none; }

@keyframes sync-pulse {
  0%, 100% { opacity: .35; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1.15); }
}

.clarity-sigil {
  --signal: calc(.28 + var(--clarity) * .72);
  position: relative;
  width: 38px;
  height: 38px;
  opacity: var(--signal);
  transform: scale(calc(.82 + var(--clarity) * .18));
  filter: drop-shadow(0 0 calc(4px + var(--clarity) * 12px) rgba(183, 156, 255, .58));
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}

.clarity-sigil[hidden] { display: none; }

.clarity-sigil span,
.clarity-sigil i {
  position: absolute;
  border-radius: 50%;
}

.clarity-sigil span {
  inset: 2px;
  border: 1px solid rgba(183, 156, 255, .45);
}

.clarity-sigil span:nth-child(2) {
  inset: 7px;
  border-color: rgba(183, 156, 255, .7);
}

.clarity-sigil i {
  inset: 12px;
  background: var(--accent);
}

.clarity-sigil.is-blooming { animation: sigil-bloom .78s cubic-bezier(.2, .85, .3, 1); }

@keyframes sigil-bloom {
  0% { transform: scale(.75); opacity: .35; }
  45% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(calc(.82 + var(--clarity) * .18)); opacity: var(--signal); }
}

.wordmark {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.wordmark span { color: var(--soft); font-weight: 400; }

main { min-height: 0; }

.screen {
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  padding: 44px 24px 68px;
  display: none;
  /* Gépen a tartalom függőlegesen középen; a `safe` megőrzi a görgethetőséget,
     ha egy képernyő magasabb a viewportnál. Mobilon a 640px-es blokk felülre igazít. */
  align-items: center;
  align-items: safe center;
  justify-content: center;
  opacity: 0;
}

.screen.is-active {
  display: flex;
  animation: enter .5s var(--ease) forwards;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orchesztrált belépő: az eyebrow és a fejléc egymás után emelkedik be,
   nem egyetlen tömbként. Egyszeri, a képernyőre lépéskor. */
.screen.is-active .kicker,
.screen.is-active h1,
.screen.is-active h2 {
  animation: rise .55s var(--ease) both;
}
.screen.is-active .kicker { animation-delay: .05s; }
.screen.is-active h1,
.screen.is-active h2 { animation-delay: .13s; }

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

.shell { width: min(100%, 760px); margin: 0 auto; }
.hero { width: min(100%, 1040px); text-align: center; }
.focus-shell { width: min(100%, 880px); }

#captureScreen .focus-shell {
  width: min(100%, 920px);
}

.onboarding-shell { width: min(100%, 780px); }
.onboarding-actions { margin-top: 22px; }

.landing-auth {
  width: min(100%, 520px);
  margin: 30px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.landing-auth label {
  color: #c9c4d0;
  font-size: 12px;
  font-weight: 600;
}

.landing-auth-actions {
  display: grid;
  gap: 13px;
  margin-top: 2px;
  text-align: center;
}

.landing-auth-actions .button { justify-self: stretch; }
.landing-resume { justify-self: center; }
.landing-resume:disabled { opacity: .38; cursor: not-allowed; }
.landing-auth .auth-input:disabled { opacity: .62; cursor: not-allowed; }
.landing-auth-feedback { margin: 10px auto 0; text-align: center; }

.auth-input {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  outline: none;
  padding: 0 19px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  font-size: 18px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-input::placeholder { color: #6e6b74; }
.auth-input:focus {
  border-color: rgba(183, 156, 255, .56);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 0 4px rgba(183, 156, 255, .06);
}

.auth-feedback {
  min-height: 20px;
  max-width: 610px;
  margin: 13px 0 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

.auth-feedback.is-error { color: var(--danger); }
.landing-logout { display: block; margin: 10px auto 0; font-size: 12px; }
.landing-logout[hidden] { display: none; }

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.kicker.is-spacer { visibility: hidden; }

h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

h1 { font-size: clamp(52px, 6.6vw, 86px); }
h2 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.hero-title-line { display: block; white-space: nowrap; }

.hero-copy, .question-help {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy { width: min(100%, 570px); margin: 30px auto 0; }
.question-help { margin: 22px 0 30px; max-width: 760px; }

.guide-message {
  max-width: 780px;
  margin: -5px 0 20px;
  color: #d4c7f5;
  font-size: 15px;
  line-height: 1.55;
}

.guide-message::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 10px 4px 0;
  background: var(--accent);
  opacity: .65;
}

.chapter-progress {
  width: 100%;
  min-height: 92px;
  margin: 0 0 34px;
  padding: 15px 18px;
  border: 1px solid rgba(183, 156, 255, .2);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 1.55fr) auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(183, 156, 255, .065), rgba(255, 255, 255, .018));
  box-shadow: inset 0 0 28px rgba(119, 77, 211, .025);
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.chapter-progress[hidden] { display: none; }

.chapter-thread > span,
.chapter-phase {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chapter-thread {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.chapter-thread > span { color: var(--soft); }

.chapter-name {
  display: block;
  max-width: 310px;
  overflow: hidden;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chapter-phase { margin-left: auto; color: var(--soft); }

.chapter-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.chapter-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #706c75;
  transition: color .3s ease, transform .3s ease;
}

.chapter-node:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(50% + 14px);
  top: 13px;
  width: calc(100% - 20px);
  height: 2px;
  background: linear-gradient(90deg, rgba(183, 156, 255, .22), rgba(183, 156, 255, .07));
  transition: background .3s ease, box-shadow .3s ease;
}

.chapter-node i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(183, 156, 255, .34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #15131b;
  color: #77717f;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.chapter-node span {
  max-width: 112px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-node.is-lit { color: #cfc6df; }

.chapter-node.is-lit i {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 16px rgba(183, 156, 255, .5);
}

.chapter-node.is-lit:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(183, 156, 255, .8), rgba(183, 156, 255, .32));
  box-shadow: 0 0 10px rgba(183, 156, 255, .14);
}

.chapter-node.is-pending i {
  border-color: rgba(183, 156, 255, .8);
  animation: chapter-pending 1.15s ease-in-out infinite;
}

.chapter-node.is-new i { animation: chapter-node-unlock .72s cubic-bezier(.2, .9, .25, 1.35) both; }

.chapter-progress.is-celebrating {
  border-color: rgba(183, 156, 255, .58);
  background: rgba(183, 156, 255, .09);
  box-shadow: 0 0 32px rgba(116, 78, 204, .14), inset 0 0 28px rgba(119, 77, 211, .08);
}

@keyframes chapter-pending {
  0%, 100% { transform: scale(.78); box-shadow: 0 0 0 0 rgba(183, 156, 255, 0); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(183, 156, 255, .09); }
}

@keyframes chapter-node-unlock {
  0% { opacity: .2; transform: scale(.35); }
  55% { transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

.domain-select-shell { width: min(100%, 920px); }

.start-thought { margin-top: 30px; }

.start-thought textarea {
  min-height: 132px;
  border-color: rgba(183, 156, 255, .26);
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(183, 156, 255, .035));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .13);
}

.start-actions { margin-top: 16px; }

.start-feedback { min-height: 20px; margin: 12px 0 0; }

.start-thought textarea.has-error {
  border-color: rgba(242, 142, 158, .72);
  animation: input-nudge .28s ease both;
}

@keyframes input-nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(3px); }
}

.domain-help-panel {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  animation: domain-help-enter .36s ease both;
}

.domain-help-panel[hidden] { display: none; }

.domain-help-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes domain-help-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.domain-options button {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 19px 21px;
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.domain-options button::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .22s ease, transform .22s ease;
}

.domain-options button:hover,
.domain-options button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, .48);
  background: rgba(183, 156, 255, .075);
  box-shadow: 0 16px 45px rgba(23, 15, 41, .24);
  outline: none;
}

.domain-options button:hover::after,
.domain-options button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.domain-options button span {
  display: block;
  padding-right: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.02em;
}

.domain-options button small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.domain-options button.is-completed::before {
  content: "✓  ELSŐ KÖR KÉSZ";
  position: absolute;
  right: 20px;
  bottom: 14px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: rgba(183, 156, 255, .8);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.domain-options button.is-completed small { padding-right: 120px; }

.domain-other { margin-top: 18px; }
.domain-gate-actions { align-items: center; }
.domain-gate-step[hidden] { display: none; }
.domain-gate-step:not([hidden]) { animation: gate-step-enter .3s cubic-bezier(.22, .8, .3, 1) both; }
.domain-gate-paths .text-button { margin-left: 3px; }

@keyframes gate-step-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-seal {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 0 27px;
  filter: drop-shadow(0 0 22px rgba(183, 156, 255, .28));
  animation: chapter-seal-enter .82s cubic-bezier(.18, .9, .25, 1.2) both;
}

.chapter-seal span,
.chapter-seal i {
  position: absolute;
  border-radius: 50%;
}

.chapter-seal span {
  inset: 0;
  border: 1px solid rgba(183, 156, 255, .22);
  animation: chapter-seal-ring 2.8s ease-out infinite;
}

.chapter-seal span:nth-child(2) { inset: 9px; animation-delay: .22s; }
.chapter-seal span:nth-child(3) { inset: 18px; animation-delay: .44s; }

.chapter-seal i {
  inset: 26px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(183, 156, 255, .42);
}

@keyframes chapter-seal-enter {
  from { opacity: 0; transform: scale(.55) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes chapter-seal-ring {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: .9; transform: scale(1.04); }
}

.capture-stage {
  display: grid;
  align-items: start;
  transition: height .36s cubic-bezier(.22, .8, .3, 1);
}

.question-state {
  min-width: 0;
}

#questionTitle {
  max-width: 100%;
  margin-bottom: 30px;
  font-size: clamp(40px, 4.8vw, 58px);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

#questionTitle + .question-help {
  margin-top: 0;
}

.capture-stage > .question-state,
.capture-stage > .attune-state {
  grid-area: 1 / 1;
  min-width: 0;
}

.question-state[hidden],
.attune-state[hidden] { display: none; }

.question-state.is-inactive {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.question-state.is-entering { animation: question-enter .42s cubic-bezier(.22, .8, .3, 1) both; }
.question-state.is-leaving { animation: question-leave .18s ease both; }

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

@keyframes question-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}

.attune-state {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  animation: attune-enter .32s ease both;
}

.attune-state.is-leaving { animation: attune-leave .18s ease both; }

.attune-state.is-quiet { align-items: center; }
.attune-state.has-reward { align-items: center; text-align: center; }

.attune-mark {
  position: relative;
  width: 68px;
  height: 68px;
}

.attune-mark span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(183, 156, 255, .5);
  border-radius: 50%;
  opacity: 0;
  animation: attune-ring 2.4s ease-out infinite;
}

.attune-mark span:nth-child(2) { animation-delay: .65s; }
.attune-mark span:nth-child(3) { animation-delay: 1.3s; }

.attune-mark i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(183, 156, 255, .55);
  animation: attune-core 1.7s ease-in-out infinite;
}

.capture-reward {
  width: min(100%, 680px);
  animation: reward-enter .58s cubic-bezier(.16, .9, .25, 1) both;
}

.capture-reward[hidden] { display: none; }

.reward-stack {
  position: relative;
  width: 76px;
  height: 62px;
  margin: 0 auto 24px;
}

.reward-stack span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 60px;
  height: 42px;
  border: 1px solid rgba(183, 156, 255, .34);
  border-radius: 13px;
  background: rgba(183, 156, 255, .06);
  box-shadow: 0 12px 35px rgba(41, 25, 78, .18);
}

.reward-stack span:nth-child(1) { transform: translate(-7px, 7px) rotate(-8deg); opacity: .42; }
.reward-stack span:nth-child(2) { transform: translate(7px, 5px) rotate(7deg); opacity: .62; }
.reward-stack span:nth-child(3) { border-color: rgba(183, 156, 255, .7); background: rgba(183, 156, 255, .13); }
.reward-stack[data-layers="1"] span:nth-child(1),
.reward-stack[data-layers="1"] span:nth-child(2),
.reward-stack[data-layers="2"] span:nth-child(1) { opacity: 0; }

.reward-stack i {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(183, 156, 255, .46);
  animation: reward-check .52s .16s cubic-bezier(.2, .9, .25, 1.35) both;
}

.reward-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.capture-reward strong {
  display: block;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4.1vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.capture-reward small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.thread-artifact {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(183, 156, 255, .42);
  border-radius: 22px;
  padding: 20px 22px;
  text-align: left;
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 156, 255, .13), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(183, 156, 255, .045));
  box-shadow: 0 18px 58px rgba(37, 21, 68, .2), inset 0 1px rgba(255, 255, 255, .04);
}

.thread-artifact[hidden] { display: none; }

.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.artifact-head span,
.artifact-direction > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.artifact-head i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(183, 156, 255, .42);
  animation: artifact-lock .56s .12s cubic-bezier(.2, .9, .25, 1.35) both;
}

.thread-artifact > p {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
  text-wrap: balance;
}

.artifact-direction {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(183, 156, 255, .2);
  display: grid;
  gap: 7px;
  animation: artifact-direction-enter .58s .18s cubic-bezier(.2, .85, .25, 1) both;
}

.artifact-direction[hidden] { display: none; }

.artifact-direction strong {
  color: #ded8e8;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.artifact-connection {
  border-top-color: rgba(183, 156, 255, .32);
}

.artifact-connection small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.reward-artifact {
  width: min(100%, 590px);
  margin: 24px auto 0;
  animation: artifact-card-enter .72s cubic-bezier(.16, .9, .25, 1) both;
}

.gate-artifact {
  width: min(100%, 650px);
  margin-bottom: 31px;
  animation: artifact-card-enter .72s cubic-bezier(.16, .9, .25, 1) both;
}

@keyframes artifact-card-enter {
  from { opacity: 0; transform: translateY(16px) rotate(-1.2deg) scale(.96); filter: blur(5px); }
  65% { transform: translateY(-2px) rotate(.35deg) scale(1.01); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: blur(0); }
}

@keyframes artifact-direction-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes artifact-lock {
  from { opacity: 0; transform: scale(.25) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.reward-items {
  width: min(100%, 620px);
  margin: 0 auto 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-items[hidden] { display: none; }

.reward-items span {
  min-height: 68px;
  border: 1px solid rgba(183, 156, 255, .42);
  border-radius: 17px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(183, 156, 255, .075);
  font-size: 14px;
  line-height: 1.42;
  /* Lépcsőzetes kibontás: a tételek egyesével válnak le a mondatról, nem egyszerre.
     A hosszabb késleltetés szándékos — így a várakozás olvasható folyamat lesz. */
  animation: reward-card-split .58s cubic-bezier(.16, .9, .25, 1) both;
  animation-delay: calc(var(--i, 0) * 260ms);
}

@keyframes reward-card-split {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reward-enter {
  from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes reward-check {
  from { opacity: 0; transform: scale(.35) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes attune-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes attune-leave {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.96); }
}

@keyframes attune-ring {
  0% { opacity: 0; transform: scale(.18); }
  18% { opacity: .7; }
  75%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes attune-core {
  0%, 100% { opacity: .72; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-actions, .focus-actions, .choice-actions, .overview-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-actions { justify-content: center; margin-top: 38px; }
.focus-actions { margin-top: 20px; }
.choice-actions { margin-top: 34px; }
.overview-actions { margin-top: 36px; }

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 25px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}

.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: wait; transform: none; box-shadow: none; }
.button-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .38) inset, 0 12px 30px -10px var(--accent-glow);
}
.button-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -10px var(--accent-glow); }
.button-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  padding: 12px 14px;
  margin-inline: -14px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.text-button:hover { color: var(--text); text-decoration-color: currentColor; }
.text-button.danger { color: var(--danger); }

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 22px;
  outline: none;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 22px 24px;
  font-size: 18px;
  line-height: 1.55;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

textarea::placeholder { color: #6e6d67; }
textarea:focus {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 4px rgba(183, 156, 255, .06);
}

.feedback {
  height: 22px;
  margin: 20px 0 0;
  color: var(--accent);
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s ease;
}

.feedback.is-visible { opacity: 1; }
.feedback.is-error { color: var(--danger); }

.question-helper-trigger {
  position: fixed;
  z-index: 31;
  right: 34px;
  bottom: 40px;
  min-height: 52px;
  border: 1px solid rgba(183, 156, 255, .6);
  border-radius: 999px;
  padding: 0 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #efe9ff;
  background: linear-gradient(135deg, rgba(96, 70, 158, .5), rgba(34, 28, 48, .92));
  box-shadow: 0 16px 46px rgba(0, 0, 0, .34), 0 0 0 1px rgba(183, 156, 255, .12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.question-helper-trigger[hidden] { display: none; }
.question-helper-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, .85);
  background: linear-gradient(135deg, rgba(116, 86, 186, .62), rgba(44, 36, 62, .96));
}

.question-helper-trigger i {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(183, 156, 255, .4);
}

/* Kontextusos, mező-alatti segítő-trigger a capture és a kijárat akció-sorában. */
.helper-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.helper-inline[hidden] { display: none; }
.helper-inline i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(183, 156, 255, .16);
  border: 1px solid rgba(183, 156, 255, .42);
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.helper-inline:hover { color: var(--text); text-decoration-color: currentColor; }
.helper-inline:hover i { background: rgba(183, 156, 255, .3); }

.question-helper {
  position: fixed;
  z-index: 32;
  right: 30px;
  bottom: 86px;
  width: min(390px, calc(100vw - 40px));
  max-height: min(610px, calc(100vh - 120px));
  border: 1px solid rgba(183, 156, 255, .32);
  border-radius: 24px;
  padding: 19px;
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 156, 255, .13), transparent 42%),
    rgba(17, 16, 21, .96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(24px);
  animation: helper-enter .28s cubic-bezier(.16, .9, .25, 1) both;
}

.question-helper[hidden] { display: none; }

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

.question-helper-head > div { display: grid; gap: 5px; }
.question-helper-head span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.question-helper-head strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.question-helper-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.question-helper-context {
  margin: 17px 0 16px;
  padding: 13px 14px;
  border-left: 2px solid rgba(183, 156, 255, .55);
  color: #c9c5d0;
  background: rgba(183, 156, 255, .045);
  font-size: 13px;
  line-height: 1.48;
}

.question-helper-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.question-helper-actions[hidden] { display: none; }
.question-helper-actions button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  padding: 0 13px;
  color: #d7d2df;
  background: rgba(255, 255, 255, .028);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease;
}
.question-helper-actions button:hover { border-color: rgba(183, 156, 255, .45); background: rgba(183, 156, 255, .07); }

.question-helper-messages {
  max-height: 245px;
  margin: 0 0 13px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.question-helper-messages[hidden] { display: none; }
.question-helper-message-shell {
  max-width: 88%;
  display: grid;
  gap: 7px;
}
.question-helper-message-shell.is-user { justify-self: end; }
.question-helper-message-shell.is-assistant { justify-self: start; }
.question-helper-message {
  border-radius: 15px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
  animation: helper-message-enter .24s ease both;
}
.question-helper-message.is-user {
  justify-self: end;
  color: #e8e0fb;
  background: rgba(183, 156, 255, .13);
}
.question-helper-message.is-assistant {
  color: #d2cfd6;
  background: rgba(255, 255, 255, .055);
}

.question-helper-accept {
  width: max-content;
  min-height: 34px;
  border: 1px solid rgba(183, 156, 255, .34);
  border-radius: 999px;
  padding: 0 12px;
  color: #e4d9ff;
  background: rgba(183, 156, 255, .09);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.question-helper-accept:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 156, 255, .65);
  background: rgba(183, 156, 255, .15);
}
.question-helper-accept span { margin-left: 4px; }

#answerInput.is-helper-filled,
#exitInput.is-helper-filled {
  animation: helper-fill .55s ease both;
}

.question-helper-compose {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  padding: 5px 5px 5px 13px;
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .035);
}
.question-helper-compose:focus-within { border-color: rgba(183, 156, 255, .5); }
.question-helper-compose input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}
.question-helper-compose input::placeholder { color: #716e77; }
.question-helper-compose button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
.question-helper-compose button:disabled { opacity: .5; cursor: wait; }
.question-helper-feedback {
  min-height: 16px;
  margin: 8px 2px 0;
  color: var(--soft);
  font-size: 11px;
}

@keyframes helper-enter {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes helper-message-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes helper-fill {
  0% { border-color: rgba(183, 156, 255, .95); box-shadow: 0 0 0 1px rgba(183, 156, 255, .2), 0 0 30px rgba(130, 83, 224, .13); }
  100% { border-color: var(--line-strong); box-shadow: none; }
}

.choice-shell { text-align: left; }

.thread-choice-shell { width: min(100%, 820px); }

.thread-choice-shell .question-help {
  margin-bottom: 0;
}

.thread-choice-options {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.thread-choice-options button {
  position: relative;
  width: 100%;
  min-height: 94px;
  border: 1px solid rgba(183, 156, 255, .2);
  border-radius: 20px;
  padding: 19px 58px 18px 21px;
  display: grid;
  gap: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: thread-choice-enter .48s cubic-bezier(.16, .9, .25, 1) forwards;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.thread-choice-options button:nth-child(2) { animation-delay: .08s; }
.thread-choice-options button:nth-child(3) { animation-delay: .16s; }
.thread-choice-options button:nth-child(4) { animation-delay: .24s; }

@keyframes thread-choice-enter {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.thread-choice-options button:hover,
.thread-choice-options button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, .52);
  background: rgba(183, 156, 255, .075);
  box-shadow: 0 16px 45px rgba(23, 15, 41, .24);
  outline: none;
}

.thread-choice-options button > span {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.thread-choice-options button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.thread-choice-options button i {
  position: absolute;
  right: 22px;
  top: 50%;
  color: var(--accent);
  font-style: normal;
  transform: translateY(-50%);
}

.review-kind,
.overview-kind {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(183, 156, 255, .22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(183, 156, 255, .07);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.review-kind {
  margin: 28px 0 -14px;
}

.review-kind[hidden] { display: none; }

.review-input {
  margin-top: 30px;
  min-height: 120px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
}

.review-type-control {
  margin: 22px 0 4px;
  display: grid;
  gap: 10px;
}

.review-type-control > span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.segmented-control {
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, .025);
}

.segmented-control button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.segmented-control button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(183, 156, 255, .18);
}

.review-children {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.review-children[hidden] { display: none; }

.review-child {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(183, 156, 255, .16);
  border-radius: 14px;
  background: rgba(183, 156, 255, .035);
}

.review-child span,
.overview-child span,
.overview-domain {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.review-child p,
.overview-child p { margin: 0; line-height: 1.45; }

/* A megoldott „következő mozdulat" a payoff — akcentes címke, kiemelt érték. */
.overview-child--move span,
.overview-child--outcome span { color: var(--accent); }
.overview-child--move p,
.overview-child--outcome p { color: var(--text); font-weight: 500; }

.overview-wrap { width: min(100%, 920px); align-self: flex-start; margin-top: 6vh; }

.overview-reframe {
  margin: 22px 0 4px;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Önbizalom-reflexió: csendes, bizonyíték-alapú sáv a saját végigvitt dolgokról. */
.start-known {
  width: min(100%, 640px);
  margin: 4px auto 18px;
  padding: 14px 18px 12px;
  border: 1px solid rgba(183, 156, 255, .18);
  border-radius: 16px;
  background: rgba(183, 156, 255, .05);
  text-align: left;
}
.start-known-label { color: #c9c4d0; font-size: 12px; font-weight: 600; margin: 0 0 8px; letter-spacing: .04em; text-transform: uppercase; }
.start-known-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.start-known-list li { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-size: 15px; }
.start-known-list i { color: #b79cff; font-style: normal; font-size: 13px; }
.start-known-more { color: var(--soft); font-size: 13px; margin: 8px 0 0; }

.overview-keep {
  width: min(100%, 560px);
  margin: 22px auto 0;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  text-align: left;
}
.overview-keep-kicker { color: #c9c4d0; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.overview-keep-body { color: var(--soft); font-size: 15px; margin: 0 0 12px; }
.overview-keep-form { display: grid; gap: 10px; }
.overview-keep-form .auth-input { min-height: 54px; font-size: 16px; }
.overview-keep-form .button { justify-self: start; }
.overview-keep .feedback { min-height: 0; margin-top: 6px; }

.overview-reflection {
  margin: 22px 0 8px;
  padding: 16px 20px;
  border-left: 2px solid rgba(183, 156, 255, .5);
  background: linear-gradient(90deg, rgba(183, 156, 255, .05), transparent 70%);
  border-radius: 0 14px 14px 0;
}
.overview-reflection[hidden] { display: none; }
.overview-reflection-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.overview-reflection-body { margin: 0 0 6px; color: var(--text); font-size: 16px; line-height: 1.5; }
.overview-reflection-body strong { color: var(--accent); font-weight: 600; }
.overview-reflection-note { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.5; }

/* Passzív utánkövetés: egy lejárt mozdulat visszatérő, nyomásmentes kérdése. */
.overview-checkin {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(183, 156, 255, .28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(183, 156, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: 0 18px 50px -24px rgba(116, 78, 204, .3);
}
.overview-checkin[hidden] { display: none; }
.overview-checkin-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.overview-checkin h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.overview-checkin-move { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.overview-checkin-move strong { color: var(--text); font-weight: 500; }
.overview-checkin-q { margin: 0 0 16px; color: var(--text); font-size: 15px; }
.overview-checkin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.overview-checkin-actions .button { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* „Mára — egy dolog" fókusz-kártya: a rekord orientáló hőse. */
.overview-focus {
  margin: 26px 0 8px;
  padding: 30px 30px 28px;
  border: 1px solid rgba(183, 156, 255, .3);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(183, 156, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: 0 26px 70px -30px rgba(116, 78, 204, .4);
}
.overview-focus[hidden] { display: none; }
.overview-focus-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.overview-focus h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.overview-focus-move { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; }
.overview-focus-move span { color: var(--accent); font-size: 18px; }
.overview-focus-move p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; font-weight: 500; }
.overview-focus-when { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.overview-focus-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.overview-list {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

/* A `display: grid` erősebb a hidden attribútumnál, ezért külön kell kikapcsolni —
   enélkül a témák-lista az összefüggések nézetben is látszik. */
.overview-list[hidden] { display: none; }

.overview-view-switch {
  width: fit-content;
  margin: 26px 0 8px;
  padding: 4px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
}

.overview-view-switch[hidden] { display: none; }

.overview-view-switch button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--muted);
  background: transparent;
  font: 600 12px/1 "Instrument Sans", sans-serif;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.overview-view-switch button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.overview-theme-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.overview-theme-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}

.overview-theme-group > header span,
.connection-map-intro > span,
.loose-threads > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.overview-theme-group > header small { color: var(--muted); }

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

.overview-thread.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(183, 156, 255, .25), 0 20px 60px rgba(85, 55, 140, .22);
}

.connection-map {
  margin-top: 34px;
  display: grid;
  gap: 20px;
}

.connection-map[hidden] { display: none; }

.connection-map-intro {
  max-width: 720px;
}

.connection-map-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.connection-clusters {
  display: grid;
  gap: 18px;
}

.connection-cluster {
  border: 1px solid rgba(183, 156, 255, .34);
  border-radius: 24px;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(183, 156, 255, .1), transparent 48%), rgba(255, 255, 255, .02);
}

.connection-nodes {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 34px;
}

.connection-nodes::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 156, 255, .65) 16%, rgba(183, 156, 255, .65) 84%, transparent);
}

.connection-node {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  max-width: 280px;
  min-height: 104px;
  border: 1px solid rgba(183, 156, 255, .5);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 7px;
  color: var(--text);
  text-align: left;
  background: rgba(18, 17, 22, .94);
  cursor: pointer;
}

.connection-node span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.connection-node strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.08;
}

.connection-cluster > p {
  width: min(100%, 720px);
  margin: 22px auto 0;
  color: #ded8e8;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.loose-threads {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.loose-threads > div {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loose-threads button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

@media (max-width: 700px) {
  .overview-view-switch {
    width: 100%;
  }

  .overview-view-switch button {
    flex: 1 1 0;
  }

  .overview-theme-items {
    grid-template-columns: 1fr;
  }

  .connection-cluster {
    padding: 20px 16px;
  }

  .connection-nodes {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .connection-nodes::before {
    top: 8%;
    bottom: 8%;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(183, 156, 255, .65) 16%, rgba(183, 156, 255, .65) 84%, transparent);
  }

  .connection-node {
    width: 100%;
    max-width: none;
    min-height: 88px;
  }
}

.overview-thread {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(183, 156, 255, .035));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}

.overview-thread::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--accent), rgba(183, 156, 255, .12));
}

.overview-thread h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.overview-children {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.overview-child {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 13px;
  color: #c9c6c1;
  font-size: 14px;
}

.overview-utilities {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.overview-exit-plan {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(183, 156, 255, .24);
  border-radius: 16px;
  background: rgba(183, 156, 255, .055);
}

.overview-exit-plan span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.overview-exit-plan strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.overview-exit-plan small { color: var(--muted); line-height: 1.45; }

.exit-wrap {
  width: min(100%, 1080px);
  align-self: flex-start;
  margin-top: 3vh;
}

.exit-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 38px;
  padding: 0 4px;
}

.exit-progress span {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f6c72;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .35s ease;
}

.exit-progress span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 33px;
  right: 18px;
  top: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .1);
  transition: background .45s ease;
}

.exit-progress i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  color: #77727e;
  background: var(--bg);
  font-style: normal;
  letter-spacing: 0;
  transition: color .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.exit-progress span.is-active { color: #c9bcf3; }
.exit-progress span.is-active i {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 22px rgba(183, 156, 255, .28);
}
.exit-progress span.is-complete { color: var(--accent); }
.exit-progress span.is-complete i { color: var(--accent); border-color: rgba(183, 156, 255, .65); }
.exit-progress span.is-complete:not(:last-child)::after { background: rgba(183, 156, 255, .45); }

.exit-thread-context {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
  padding: 17px 20px;
  border: 1px solid rgba(183, 156, 255, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(183, 156, 255, .075), rgba(255, 255, 255, .025));
}

.exit-thread-context[hidden] { display: none; }

.exit-thread-context span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.exit-thread-context h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
}

.exit-content { width: min(100%, 980px); }
.exit-content.is-entering { animation: exit-step-enter .38s ease both; }

@keyframes exit-step-enter {
  from { opacity: .25; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.exit-content h2 {
  max-width: 1000px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: .98;
}

.exit-content > .question-help { max-width: 760px; }

.exit-input {
  width: min(100%, 900px);
  min-height: 150px;
  margin-top: 28px;
}

.exit-input[hidden] { display: none; }

.exit-options {
  display: grid;
  gap: 12px;
  width: min(100%, 980px);
  margin-top: 30px;
}

.exit-options button {
  border: 1px solid rgba(255, 255, 255, .11);
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(183, 156, 255, .028));
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.exit-options button:hover,
.exit-options button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, .48);
  background: rgba(183, 156, 255, .065);
  outline: none;
}

.exit-thread-options,
.exit-route-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.exit-thread-option,
.exit-route-option {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: 20px;
  padding: 20px 22px;
  text-align: left;
}

.exit-thread-option > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.exit-thread-option strong,
.exit-route-option strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

.exit-thread-option small,
.exit-route-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.exit-more-option,
.exit-other-thread {
  min-height: 54px;
  border-radius: 16px;
  padding: 12px 18px;
  color: var(--muted) !important;
  background: transparent !important;
}

.exit-anchor-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
}

.exit-anchor-options button {
  min-height: 64px;
  border-radius: 16px;
  padding: 13px 16px;
}

.exit-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.exit-feedback { min-height: 20px; margin-top: 12px; }

.exit-artifact-wrap { width: min(100%, 900px); }

.exit-artifact {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(183, 156, 255, .36);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(183, 156, 255, .105), rgba(255, 255, 255, .035));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .25);
}

.exit-artifact > div {
  display: grid;
  gap: 7px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.exit-artifact > div:last-child { border-bottom: 0; }
.exit-artifact > div.is-primary { padding-top: 22px; padding-bottom: 22px; background: rgba(183, 156, 255, .055); }

.exit-artifact span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.exit-artifact strong,
.exit-artifact p { margin: 0; line-height: 1.42; }
.exit-artifact strong { font-size: 18px; font-weight: 520; }
.exit-artifact .is-primary strong { font-family: "Cormorant Garamond", serif; font-size: 31px; font-weight: 400; line-height: 1.08; }
.exit-artifact p { color: #cecbc5; }

footer {
  position: relative;
  z-index: 9;
  width: 100%;
  min-height: 52px;
  padding: 0 30px 22px;
  display: flex;
  align-items: flex-end;
}

.footer-version {
  color: #55564f;
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .82;
}

@media (max-width: 640px) {
  main { min-height: 0; }
  .site-header {
    padding: 16px 20px 0;
    background: transparent;
  }
  .header-brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .header-brand-name { font-size: 10px; letter-spacing: .14em; }
  .header-tools { position: static; gap: 9px; }
  .sync-status { min-height: 32px; padding: 0 10px; }
  .screen {
    min-height: calc(100vh - 108px);
    min-height: calc(100svh - 108px - env(safe-area-inset-bottom));
    padding: 30px 20px 48px;
    align-items: flex-start;
  }
  #captureScreen {
    padding-top: 24px;
    padding-bottom: 116px;
    align-items: flex-start;
  }
  h1 { font-size: clamp(28px, 7.5vw, 50px); }
  h2 { font-size: clamp(38px, 10.5vw, 50px); }
  .hero-copy, .question-help { font-size: 15px; }
  .hero-actions, .focus-actions, .choice-actions, .overview-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-button { align-self: center; }
  textarea { min-height: 140px; border-radius: 18px; padding: 18px; font-size: 16px; }
  .review-input { font-size: 30px; }
  .review-child,
  .overview-child { grid-template-columns: 1fr; gap: 5px; }
  .overview-thread { padding: 20px; }
  .overview-utilities { flex-direction: column; gap: 14px; }
  .exit-wrap { margin-top: 0; }
  .exit-progress { margin-bottom: 26px; padding: 0; }
  .exit-progress span { min-height: 36px; gap: 6px; font-size: 8px; letter-spacing: .08em; }
  .exit-progress i { width: 24px; height: 24px; }
  .exit-progress span:not(:last-child)::after { left: 28px; right: 8px; top: 17px; }
  .exit-content h2 { font-size: clamp(38px, 10.5vw, 52px); }
  .exit-thread-context { margin-bottom: 24px; padding: 15px 17px; }
  .exit-thread-options,
  .exit-route-options,
  .exit-anchor-options { grid-template-columns: 1fr; }
  .exit-thread-option,
  .exit-route-option { min-height: 94px; padding: 17px 18px; }
  .exit-thread-option strong,
  .exit-route-option strong { font-size: 24px; }
  .exit-options { margin-top: 24px; }
  .exit-input { min-height: 132px; margin-top: 23px; }
  .exit-actions { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 24px; }
  .exit-artifact > div { padding: 16px 18px; }
  .exit-artifact .is-primary strong { font-size: 27px; }
  .attune-state { min-height: 300px; align-items: center; text-align: center; }
  .capture-reward strong { font-size: 32px; }
  .chapter-progress {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 13px 14px;
    border-radius: 20px;
  }
  .chapter-thread { gap: 5px; }
  .chapter-name { max-width: 100%; font-size: 20px; }
  .chapter-phase { display: none; }
  .chapter-nodes { width: 100%; }
  .chapter-node span { font-size: 9px; }
  .chapter-node:not(:last-child)::after { width: calc(100% - 17px); }
  .domain-options { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .domain-options button { min-height: 78px; padding: 16px 18px; }
  .domain-options button span { font-size: 24px; }
  .domain-options button small { margin-top: 7px; }
  .start-thought { margin-top: 24px; }
  .start-thought textarea { min-height: 126px; }
  .domain-help-panel { margin-top: 30px; padding-top: 24px; }
  .reward-items { grid-template-columns: 1fr; }
  .reward-items span { min-height: 58px; }
  .thread-artifact { padding: 17px 18px; border-radius: 19px; }
  .thread-artifact > p { font-size: 27px; }
  .thread-choice-options button { min-height: 84px; padding: 17px 50px 16px 18px; }
  .thread-choice-options button > span { font-size: 24px; }
  .question-helper-trigger {
    right: 16px;
    bottom: calc(58px + env(safe-area-inset-bottom));
  }
  .question-helper {
    right: 12px;
    bottom: calc(116px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100vh - 138px - env(safe-area-inset-bottom));
    border-radius: 21px;
  }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; padding: 0 10px; }
  .auth-input { min-height: 60px; border-radius: 16px; font-size: 16px; }
  footer {
    z-index: 2;
    min-height: calc(56px + env(safe-area-inset-bottom));
    padding: 0 20px calc(16px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-end;
  }
  .footer-version { line-height: 1; }
}

/* ===== 0.22.0 — teher-csökkentés: ownership, kijárat-javaslat, emlékeztető ===== */

.landing-auth-note {
  margin: -4px 0 4px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* A módszertani keret egy sor a kérdés alatt, nem külön képernyő. */
.start-frame {
  margin: var(--space-2) 0 var(--space-3);
  max-width: 58ch;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Ownership check (framework/06 II.4) ---- */
.ownership-subject {
  display: grid;
  gap: 6px;
  margin: 0 0 var(--space-3);
  max-width: 46ch;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
}
.ownership-subject > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ownership-subject > strong { color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.45; }

.ownership-options {
  display: grid;
  gap: 12px;
  margin: var(--space-3) 0 0;
  max-width: 46ch;
}
.ownership-options > button {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.ownership-options > button:hover {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .07);
  transform: translateY(-1px);
}
.ownership-options > button strong { font-size: 16px; font-weight: 600; }
.ownership-options > button small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ownership-options > button:last-child strong { color: var(--accent); }
.ownership-shell > .text-button { margin-top: var(--space-3); }

/* ---- Kijárat-javaslat: egy tipizált út, indoklással ---- */
.exit-route-option.is-suggested {
  grid-column: 1 / -1;
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .08);
  box-shadow: 0 22px 56px -34px var(--accent-glow);
}
.exit-route-reason {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.5;
}

/* ---- Ellenőrizhető kapcsolat-hipotézis (framework/07) ---- */
.connection-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.connection-check > span { color: var(--soft); font-size: 13px; }
.connection-check > button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.connection-check > button:hover { border-color: rgba(183, 156, 255, .5); color: var(--text); }
.connection-verdict {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
}

/* ---- Összkép: egy dolog, a többi kapcsoló mögött ---- */
.overview-expand {
  display: block;
  margin: var(--space-3) auto 0;
}
.overview-detail[hidden] { display: none; }
.overview-detail { margin-top: var(--space-3); }

.overview-released { opacity: .78; }
.overview-thread.is-released h3 { text-decoration: line-through; text-decoration-color: var(--soft); color: var(--muted); }
.overview-thread.is-released .overview-kind { color: var(--accent); }

/* ---- Emlékeztető-felajánlás a payoff után ---- */
.follow-up-move {
  display: grid;
  gap: 6px;
  margin: 0 0 var(--space-3);
  max-width: 44ch;
  padding: 18px 22px;
  border: 1px solid rgba(183, 156, 255, .35);
  border-radius: 18px;
  background: rgba(183, 156, 255, .07);
  text-align: left;
}
.follow-up-move[hidden] { display: none; }
.follow-up-move > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.follow-up-move > strong { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.45; }
.follow-up-move > small { color: var(--muted); font-size: 13px; }

.follow-up-name {
  display: grid;
  gap: 8px;
  margin: var(--space-3) 0 0;
  max-width: 32ch;
  text-align: left;
}
.follow-up-name label { color: var(--soft); font-size: 13px; }
.follow-up-name label em { font-style: normal; opacity: .7; }
.follow-up-name input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.follow-up-name input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .exit-route-option.is-suggested { min-height: 0; }
  .ownership-options > button { padding: 16px 18px; }
}


/* ===== 0.23.0 — a kör mint termék ========================================== */

/* ---- Belépési állapot: felismerés, nem űrlap ---- */
.state-options {
  display: grid;
  gap: 12px;
  margin-top: var(--space-3);
  max-width: 52ch;
}
.state-options > button {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.state-options > button:hover {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .07);
  transform: translateY(-1px);
}
.state-options strong { font-size: 17px; font-weight: 500; line-height: 1.45; }

/* ---- A lépés mérete: a fő beavatkozás az el nem induló tervek ellen ---- */
.exit-size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exit-size-option {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 20px;
  text-align: left;
}
.exit-size-option strong { font-size: 17px; font-weight: 600; }
.exit-size-option small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---- A kör bezárása ---- */
.close-loop-move {
  display: grid;
  gap: 6px;
  margin: var(--space-3) 0;
  max-width: 46ch;
  padding: 18px 22px;
  border: 1px solid rgba(183, 156, 255, .32);
  border-radius: 18px;
  background: rgba(183, 156, 255, .06);
  text-align: left;
}
.close-loop-move[hidden] { display: none; }
.close-loop-move > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.close-loop-move > strong { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.45; }

.close-loop-options {
  display: grid;
  gap: 12px;
  margin: var(--space-3) 0 0;
  max-width: 46ch;
}
.close-loop-options > button {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.close-loop-options > button:hover {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .07);
  transform: translateY(-1px);
}
.close-loop-options > button.is-primary {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .1);
}
.close-loop-options strong { font-size: 16px; font-weight: 500; }
.close-loop-anchors { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.close-loop-input {
  width: 100%;
  max-width: 46ch;
  margin-top: var(--space-3);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.close-loop-input[hidden] { display: none; }
.close-loop-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Mintajelölt a súrlódás pillanatában ---- */
.start-hypothesis {
  margin-top: var(--space-3);
  padding: 18px 22px;
  border: 1px solid rgba(183, 156, 255, .3);
  border-radius: 18px;
  background: rgba(183, 156, 255, .05);
  text-align: left;
}
.start-hypothesis[hidden] { display: none; }
.start-hypothesis-body { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.start-hypothesis-note { margin: 10px 0 0; color: var(--accent); font-size: 13px; }
.start-hypothesis .connection-check { margin-top: 12px; padding-top: 12px; }

/* ---- Lezárt körök: köröket számol, nem napokat (B mechanika, pilotban) ---- */
.overview-loop-dots {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: .28em;
}

/* ---- Kiérdemelt Mirror-pillanat ---- */
.overview-mirror {
  margin-top: var(--space-3);
  padding: 24px 26px;
  border: 1px solid rgba(183, 156, 255, .34);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(183, 156, 255, .09), rgba(255, 255, 255, .02));
  text-align: left;
}
.overview-mirror[hidden] { display: none; }
.overview-mirror-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.overview-mirror h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; line-height: 1.45; }
.overview-mirror p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.overview-mirror small { display: block; margin-top: 12px; color: var(--soft); font-size: 12.5px; }

@media (max-width: 640px) {
  .exit-size-options { grid-template-columns: 1fr; }
  .exit-size-option { min-height: 0; }
  .state-options > button { padding: 16px 18px; }
}


/* ===== 0.24.0 — review-vászon, visszavonás, mobil ========================== */

/* ---- Review-vászon: minden tétel egyszerre, közvetlen szerkesztéssel ---- */
.review-canvas { padding-bottom: 140px; }

.review-list {
  display: grid;
  gap: 12px;
  margin-top: var(--space-3);
}

.review-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 220ms var(--ease), opacity 220ms var(--ease);
}
.review-card.needs-ownership { border-color: rgba(183, 156, 255, .38); }

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.review-card-domain {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.review-card-tools { display: flex; gap: 4px; }

.review-icon {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.review-icon:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.review-icon.danger:hover { color: var(--danger); }

/* A cím maga a beviteli mező: nincs külön „szerkesztés” mód.
   A globális textarea-szabály 150px min-height-ot ad — itt a tartalom dönt. */
.review-card-title {
  width: 100%;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 2px 0 6px;
  background: transparent;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
}
.review-card-title:hover { border-bottom-color: var(--line); }
.review-card-title:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}

.review-card-children { display: grid; gap: 6px; margin-top: 10px; }
.review-card-child { display: flex; gap: 10px; align-items: baseline; }
.review-card-child > span {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.review-card-child > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.review-link {
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.review-link.quiet { color: var(--soft); }
.review-link.quiet:hover { color: var(--accent); }

.review-card-ownership { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.review-card-ownership.is-set { color: var(--accent); }

.review-ownership { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.review-ownership-lead { margin: 0 0 10px; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.review-ownership-options { display: flex; flex-wrap: wrap; gap: 8px; }
.review-ownership-options > button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.review-ownership-options > button:hover { border-color: rgba(183, 156, 255, .5); color: var(--text); }
.review-ownership-options > button:last-child:hover { border-color: rgba(217, 160, 154, .5); color: var(--danger); }

/* A fő akció a hüvelykujj-zónában marad, bármilyen hosszú a lista. */
.review-actions {
  position: sticky;
  bottom: 0;
  margin-top: var(--space-3);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}
.review-actions .button { width: 100%; max-width: 340px; }

/* ---- Provizórikus kaptár: látszik, hogy még pontosodik ---- */
.attune-state.is-provisional .capture-reward { opacity: .72; }
.attune-state.is-provisional .reward-label::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: provisional-pulse 1.1s ease-in-out infinite;
}
@keyframes provisional-pulse {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

/* ---- Visszavonás ---- */
.undo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 460px);
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #17161b;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
  color: var(--text);
  font-size: 14px;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.undo-toast[hidden] { display: none; }
.undo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.undo-toast > span { flex: 1; min-width: 0; }
.undo-toast > button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---- Okos alapértelmezések jelzése ---- */
.exit-anchor-options button.is-unlikely small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.4;
}
.exit-size-option.is-suggested {
  border-color: rgba(183, 156, 255, .5);
  background: rgba(183, 156, 255, .08);
}

/* ---- Fókusz: a képernyőcímre vitt fókusz ne rajzoljon keretet ---- */
h1[tabindex="-1"]:focus-visible,
h2[tabindex="-1"]:focus-visible { outline: none; }

@media (max-width: 640px) {
  .review-canvas { padding-bottom: 120px; }
  .review-card { padding: 16px 16px; }
  .review-card-title { font-size: 19px; }
  .review-ownership-options { flex-direction: column; }
  .review-ownership-options > button { width: 100%; text-align: left; }
  .undo-toast { left: 16px; right: 16px; max-width: none; transform: translateY(12px); }
  .undo-toast.is-visible { transform: translateY(0); }
}


/* ===== 0.25.0 — egy képernyő, egy akció =================================== */

/* A megnyugvás nem gomboktól jön: a záró sor megadja az engedélyt a távozásra,
   anélkül hogy döntést kérne. (Korábban ez egy gomb volt, ami semmit nem csinált.) */
.overview-rest {
  margin: var(--space-4) 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* A fókuszkártya az egyetlen elsődleges akció helye — ezért kap teret. */
.overview-focus-actions {
  align-items: center;
  gap: 18px;
}
.overview-focus-actions .text-button { font-size: 14px; }

/* A szerkesztés és a törlés a kinyitott lista alján él, halkan. */
.overview-detail .overview-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .overview-rest { margin-top: var(--space-3); }
  .overview-detail .overview-utilities { gap: 12px; }
}


/* ===== 0.26.0 — a kibontás látható folyamat =============================== */

/* A nyers mondat fent marad, amíg a tételek leválnak róla. Amíg az AI dolgozik,
   egy halk pásztázó fény fut végig rajta — a várakozás így nem üres idő. */
.reward-source {
  width: min(100%, 620px);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.reward-source[hidden] { display: none; }

.attune-state.is-provisional .reward-source::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(183, 156, 255, .14) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: source-scan 2.1s ease-in-out infinite;
}
@keyframes source-scan {
  to { transform: translateX(100%); }
}

/* Ötnél több tételnél is olvasható maradjon a rács. */
.reward-items { grid-auto-rows: minmax(68px, auto); }

/* Amikor az AI válasza megérkezik, a véglegesített tételek rövid nyugtázást kapnak. */
.attune-state:not(.is-provisional) .reward-items span { animation-delay: calc(var(--i, 0) * 90ms); }

@media (max-width: 640px) {
  .reward-source { font-size: 13.5px; padding: 12px 14px; }
  .reward-items { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 0.28: a „Nagyobb ez tíz percnél" halk link a mozdulat-képernyőn — a méretkapu
   beolvadt a súgósorba, a kicsinyítés opt-in maradt. A kártya-stílust nem örökli. */
.exit-options .exit-shrink-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  justify-self: start;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.exit-options .exit-shrink-link:hover,
.exit-options .exit-shrink-link:focus-visible {
  transform: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration-color: currentColor;
}
