/* ============================================================
   Pierre the Oracle — Void Engine v6
   style.css — Single source of truth for all UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg-deep:     #ffffff;
  --bg-surface:  #ffffff;
  --bg-elevated: #f0f0f0;
  --bg-inverted: #000000;
  --bg-overlay:  rgba(255, 255, 255, 0.95);

  /* Text */
  --text-primary:   #000000;
  --text-secondary: #808080;
  --text-muted:     #808080;
  --text-inverted:  #ffffff;

  /* Borders */
  --border-default: #000000;
  --border-muted:   #808080;

  /* Semantic Cloud — ONLY in cloud component */
  --cloud-alive:   #c4a35a;
  --cloud-dormant: #808080;
  --cloud-ghost:   #d8d8d8;
  --cloud-edge:    #e8e8e8;

  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ── GRID TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 999;
}

/* ── LAYOUT ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.page--centered {
  justify-content: center;
  align-items: center;
}
.page--full {
  padding: 0;
  max-width: none;
}

/* ── TYPOGRAPHY ── */
.display {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 8px;
  line-height: 1.1;
}
@media (min-width: 640px) { .display { font-size: 52px; letter-spacing: 12px; } }

h1, .h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
@media (min-width: 640px) { h1, .h1 { font-size: 36px; } }

h2, .h2 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.body-text { font-family: var(--font-body); font-size: 13px; line-height: 1.6; }
.caption    { font-family: var(--font-body); font-size: 10px; color: var(--text-secondary); }
.label      { font-family: var(--font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 28px;
  height: 44px;
  min-height: 44px;
  border: 2px solid var(--border-default);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.btn--full { width: 100%; }

/* Primary */
.btn--primary { background: var(--bg-inverted); color: var(--text-inverted); border-color: var(--border-default); }
.btn--primary:hover:not(:disabled) { background: var(--bg-surface); color: var(--text-primary); }

/* Secondary */
.btn--secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
.btn--secondary:hover:not(:disabled) { background: var(--bg-inverted); color: var(--text-inverted); }

/* Ghost */
.btn--ghost { background: var(--bg-surface); color: var(--text-secondary); border-color: var(--border-muted); }
.btn--ghost:hover:not(:disabled) { color: var(--text-primary); border-color: var(--border-default); }

/* Disabled */
.btn:disabled,
.btn--disabled {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.btn[aria-disabled="true"] {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-muted);
  cursor: not-allowed;
}

/* Loading state — dots replace label */
.btn--loading .btn__label { display: none; }
.btn--loading { pointer-events: none; }

/* ── TYPING DOTS (button + chat bubble) ── */
@keyframes typing-blink {
  0%, 60%, 100% { opacity: 0.15; }
  30%            { opacity: 1; }
}
.typing-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%; /* exception: dots only */
  background: currentColor;
  animation: typing-blink 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── INPUT ── */
.input-wrap { position: relative; }
.input-wrap + .input-wrap { margin-top: var(--space-md); }

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--text-secondary); }
.input:disabled { background: var(--bg-elevated); color: var(--text-secondary); border-color: var(--border-muted); }

/* Password input with toggle */
.input--password { padding-right: 52px; }
.input-toggle {
  position: absolute;
  right: 0; top: 0;
  width: 44px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
}
.input-toggle:hover { color: var(--text-primary); }

/* ── INLINE MESSAGE ── */
.inline-message {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  margin-top: var(--space-xs);
  line-height: 1.4;
}
.inline-message--error { color: var(--text-primary); }
.inline-message--hint  { color: var(--text-secondary); }
.inline-message--note  { color: var(--text-secondary); }

/* ── OTP INPUT ── */
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.otp-input { margin-bottom: var(--space-lg); }
.otp-input__fields {
  display: flex;
  gap: var(--space-sm);
}
.otp-input.shake .otp-input__fields {
  animation: otp-shake 0.4s ease;
}
.otp-cell {
  width: 48px;
  height: 56px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--border-default);
  border-radius: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.otp-cell:disabled { background: var(--bg-elevated); border-color: var(--border-muted); }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--bg-elevated);
  margin: var(--space-lg) 0;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  width: calc(100% - 48px);
  max-width: 592px;
}
.toast {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  font-family: var(--font-body);
  font-size: 13px;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-default);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.toast--hidden { opacity: 0; }
.toast__close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 16px; line-height: 1; }

/* ── TAROT CARD ── */
.tarot-card {
  position: relative;
  border: 2px solid var(--border-default);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: default;
  flex-shrink: 0;
}
/* Sizes */
.tarot-card--single { width: 100px; height: 143px; }
.tarot-card--triple { width: 70px;  height: 100px; }
.tarot-card--thumb  { width: 48px;  height: 69px;  }
@media (min-width: 640px) {
  .tarot-card--single { width: 140px; height: 200px; }
  .tarot-card--triple { width: 100px; height: 143px; }
}
/* Hover lift — face-up only */
.tarot-card--face-up { cursor: pointer; }
.tarot-card--face-up:hover { transform: translateY(-4px); }

/* Flip */
.tarot-card.flipped { transform: rotateY(180deg); }
.tarot-card.flipped:hover { transform: rotateY(180deg) translateY(-4px); }

.tarot-card__back,
.tarot-card__front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tarot-card__back {
  background: repeating-linear-gradient(
    45deg,
    #ffffff 0px, #ffffff 4px,
    #f0f0f0 4px, #f0f0f0 8px
  );
}
.tarot-card__back-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tarot-card__front {
  background: var(--bg-inverted);
  transform: rotateY(180deg);
  overflow: hidden;
}
.tarot-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tarot-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-top: var(--space-sm);
}
.tarot-card__spread-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  text-align: center;
}

/* Thumbnail — no flip, no hover */
.tarot-card--thumb .tarot-card__back  { display: none; }
.tarot-card--thumb .tarot-card__front { transform: none; backface-visibility: visible; }

/* ── CARD AREA (placeholder before draw) ── */
.card-area {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
}
.card-area--row {
  flex-direction: row;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── SPREAD SELECTOR ── */
.spread-selector {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.spread-option {
  flex: 1;
  min-width: 90px;
  max-width: 160px;
  padding: var(--space-lg) var(--space-md);
  border: 2px solid var(--border-default);
  background: var(--bg-surface);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.spread-option:hover { background: var(--bg-elevated); }
.spread-option[aria-checked="true"] {
  background: var(--bg-inverted);
  color: var(--text-inverted);
}
.spread-option[aria-checked="true"] .spread-option__count,
.spread-option[aria-checked="true"] .spread-option__desc { color: var(--text-secondary); }
.spread-option__title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}
.spread-option__count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.spread-option__desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── CHAT BUBBLES ── */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  flex: 1;
}

/* Pierre bubble */
.chat-bubble {
  max-width: 400px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  border-radius: 0;
}
.chat-bubble--pierre {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  color: var(--text-primary);
  align-self: flex-start;
}
.chat-bubble--user {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  align-self: flex-end;
  border: none;
}
.chat-bubble--system {
  max-width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: center;
  padding: var(--space-sm) 0;
  align-self: center;
}
.chat-bubble--crisis {
  width: 100%;
  max-width: 100%;
  background: var(--bg-inverted);
  color: var(--text-inverted);
  padding: var(--space-lg);
  border: none;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}
/* Typing indicator inside Pierre bubble */
.chat-bubble--typing {
  display: flex;
  align-items: center;
}

/* ── CHAT INPUT ── */
.chat-input {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  padding: var(--space-md) var(--space-lg);
  border-top: 2px solid var(--border-default);
  background: var(--bg-surface);
}
.chat-input--hidden { display: none; }
.chat-input__field {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: 0;
  outline: none;
  resize: none;
  overflow-y: auto;
}
.chat-input__field::placeholder { color: var(--text-secondary); }
.chat-input__field:disabled {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-muted);
}
.chat-input__submit {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  background: var(--bg-inverted);
  color: var(--text-inverted);
  border: 2px solid var(--border-default);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-input__submit:hover:not(:disabled) { background: var(--bg-surface); color: var(--text-primary); }
.chat-input__submit:disabled {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-muted);
  cursor: not-allowed;
}

/* ── CONVERSION PROMPT ── */
.conversion-prompt {
  border: 2px solid var(--border-default);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
.conversion-prompt__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ── RATE LIMIT CARD ── */
.rate-limit-card {
  border: 2px solid var(--border-default);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}
.rate-limit-card__message {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.rate-limit-card__timer {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── TAG ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border: 2px solid var(--border-default);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  background: var(--bg-surface);
}
.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-inverted);
  flex-shrink: 0;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ── SESSION HISTORY ROW ── */
.session-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-surface);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.session-row:hover { background: var(--bg-elevated); }
.session-row__meta { flex: 1; min-width: 0; }
.session-row__date {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.session-row__format {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.session-row__theme {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-row__cards {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}
.session-row__more {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.session-row__chevron {
  color: var(--text-secondary);
  font-size: 14px;
  flex-shrink: 0;
}

/* ── SEMANTIC CLOUD ── */
.cloud-canvas {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.cloud-canvas svg {
  position: absolute;
  inset: 0;
}
.cloud-node {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.cloud-node:hover { transform: translate(-50%, -50%) scale(1.05); }
.cloud-node--alive   { background: var(--cloud-alive);   color: var(--text-inverted); }
.cloud-node--dormant { background: var(--cloud-dormant); color: var(--text-inverted); border-color: var(--border-default); }
.cloud-node--ghost   { background: var(--cloud-ghost);   color: var(--text-primary);  border-color: var(--border-muted); }
.cloud-node__label {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  padding: 4px;
  line-height: 1.2;
  pointer-events: none;
}

/* Cloud detail panel */
.cloud-detail {
  border: 2px solid var(--border-default);
  background: var(--bg-surface);
  padding: var(--space-lg);
  margin-top: var(--space-md);
  display: none;
}
.cloud-detail.visible { display: block; }
.cloud-detail__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.cloud-detail__meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.cloud-detail__quotes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.cloud-detail__quote {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-primary);
}
.cloud-detail__quote::before { content: '"'; }
.cloud-detail__quote::after  { content: '"'; }
.cloud-detail__close {
  float: right;
  margin-top: -4px;
}

/* ── ABANDON PROMPT ── */
.abandon-prompt {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.abandon-prompt.visible { display: flex; }
.abandon-prompt__backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
}
.abandon-prompt__dialog {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: var(--space-xl);
  max-width: 320px;
  width: 100%;
  z-index: 1;
}
.abandon-prompt__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.abandon-prompt__body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}
.abandon-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── PULL CARD BUTTON ── */
.pull-card-btn {
  margin: 0 var(--space-lg) var(--space-md);
}
.pull-card-btn--hidden { display: none; }

/* ── NAV HEADER ── */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--border-default);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-header__wordmark {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.nav-header__profile {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-header__profile:hover { color: var(--text-primary); }
.nav-header__back {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-header__back:hover { color: var(--text-primary); }

/* ── TEXT LINK ── */
.text-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline;
}
.text-link:hover { color: var(--text-primary); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ── EMPTY STATE ── */
.empty-state {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  padding: var(--space-xl) 0;
  text-align: center;
}

/* ── PIERRE OBSERVATION (standalone readings) ── */
.pierre-observation {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ── SESSION SCREEN LAYOUT ── */
.session-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 640px;
  margin: 0 auto;
}
.session-page__cards {
  padding: var(--space-lg) var(--space-lg) 0;
  border-bottom: 1px solid var(--bg-elevated);
}
.session-page__chat {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
}
.session-page__input { flex-shrink: 0; }

/* ── PROFILE PAGE LAYOUT ── */
.profile-section {
  padding: var(--space-xl) var(--space-lg);
}
.profile-section + .profile-section {
  border-top: 2px solid var(--border-default);
}

/* ── UTILITY ── */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
