/* ═══════════════════════════════════════════════════
   AXIS LIFE — styles.css
═══════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg:          #111111;
  --surface:     #1A1A1A;
  --surface-2:   #222222;
  --border:      #2C2C2C;
  --text:        #F0EBE3;
  --text-muted:  #7A7067;
  --text-soft:   #B8AFA7;
  --accent:      #C4956A;
  --accent-light:#E8C9A0;
  --accent-dim:  rgba(196,149,106,0.15);
  --danger:      #C4626A;
  --radius:      14px;
  --radius-sm:   8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow: hidden;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════
   INTRO SCREEN
══════════════════════════════════════════ */
#screen-intro {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.intro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Emblem */
.intro-emblem {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

.ring-outer {
  width: 80px;
  height: 80px;
  opacity: 0.25;
  animation: pulse-ring 3s ease-in-out infinite;
}

.ring-mid {
  width: 52px;
  height: 52px;
  opacity: 0.45;
  animation: pulse-ring 3s ease-in-out infinite 0.5s;
}

.emblem-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.06); opacity: 0.5; }
}

.spinning { animation: spin 8s linear infinite !important; }
.spinning-reverse { animation: spin-reverse 6s linear infinite !important; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Wordmark */
.intro-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.wm-axis {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  line-height: 1;
}

.wm-life {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  align-self: center;
  padding-bottom: 2px;
}

.intro-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 48px;
  font-style: italic;
}

.btn-begin {
  width: 100%;
  padding: 16px 32px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 16px;
}

.btn-begin:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-begin:active { transform: translateY(0); }

.intro-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   QUIZ SCREEN
══════════════════════════════════════════ */
#screen-quiz {
  background: var(--bg);
  overflow-y: auto;
}

.quiz-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 56px 24px 40px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* Progress */
.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.qp-dots {
  display: flex;
  gap: 8px;
}

.qp-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s, width 0.3s;
}

.qp-dot.active {
  background: var(--accent);
  width: 40px;
}

.qp-dot.done {
  background: var(--accent);
  opacity: 0.4;
}

.qp-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Questions */
.questions-container {
  position: relative;
  flex: 1;
}

.question {
  display: none;
  flex-direction: column;
  gap: 0;
  animation: q-fadein 0.4s ease;
}

.question.active {
  display: flex;
}

@keyframes q-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-number {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-style: italic;
}

.q-text {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.q-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

/* Options */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.q-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.q-opt:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.q-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.opt-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.opt-label {
  flex: 1;
  line-height: 1.4;
}

/* Feeling input (Q4) */
.q-feeling-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.q-feeling-input {
  width: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s;
}

.q-feeling-input::placeholder {
  color: var(--text-muted);
  font-size: 16px;
}

.q-feeling-input:focus {
  border-color: var(--accent);
}

.btn-continue {
  padding: 16px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-continue:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-continue:not(:disabled):hover {
  background: var(--accent-light);
}

/* ══════════════════════════════════════════
   PREPARE SCREEN
══════════════════════════════════════════ */
#screen-prepare {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.prepare-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.prepare-emblem {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prepare-label {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-soft);
}

.prepare-sub {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   CHAT SCREEN
══════════════════════════════════════════ */
#screen-chat {
  background: var(--bg);
  flex-direction: column;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.ch-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ch-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  flex-shrink: 0;
}

.che-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.ch-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ch-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ch-mode {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-new-session {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-new-session:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message bubbles */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: msg-in 0.3s ease;
  flex-shrink: 0;
}

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

.msg--coach {
  align-self: flex-start;
}

.msg--user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.65;
}

.msg--coach .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.msg--user .msg-bubble {
  background: var(--accent-dim);
  border: 1px solid rgba(196,149,106,0.3);
  border-bottom-right-radius: 4px;
  color: var(--text);
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.msg--user .msg-time { text-align: right; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input area */
.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
}

.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--accent); }

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.btn-send:hover { background: var(--accent-light); transform: scale(1.05); }
.btn-send:active { transform: scale(0.97); }
.btn-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════
   API KEY MODAL
══════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.api-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-modal-header {
  display: flex;
  justify-content: center;
}

.api-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.api-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  text-align: center;
}

.api-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.api-link:hover { background: var(--accent-dim); }

.api-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.api-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.api-input:focus { border-color: var(--accent); }
.api-input::placeholder { color: var(--text-muted); }

.btn-api-save {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-api-save:hover { background: var(--accent-light); }

.api-privacy {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   AUTH SCREEN
══════════════════════════════════════════ */
#screen-auth {
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow-y: auto;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 40px;
  max-width: 400px;
  width: 100%;
}

.auth-emblem {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 36px;
  text-align: center;
}

.auth-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: 100%;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--accent);
  color: #111;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.auth-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--text-muted); }

.auth-error {
  font-size: 13px;
  color: var(--danger);
  text-align: center;
  min-height: 18px;
  line-height: 1.4;
}

.btn-auth {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}

.btn-auth:hover { background: var(--accent-light); }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════
   CHAT HEADER — right side buttons
══════════════════════════════════════════ */
.ch-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-history {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-history:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════
   SESSIONS SCREEN
══════════════════════════════════════════ */
#screen-sessions {
  background: var(--bg);
  flex-direction: column;
}

.sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-sessions-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-sessions-back:hover { border-color: var(--accent); color: var(--accent); }

.sessions-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-sign-out {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.btn-sign-out:hover { color: var(--danger); border-color: var(--danger); }

.sessions-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sessions-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  margin-top: 40px;
}

.sessions-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 60px;
  line-height: 1.8;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-card-mode {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.session-card-date {
  font-size: 11px;
  color: var(--text-muted);
}

.session-card-feeling {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text-soft);
}

.session-card-preview {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.sessions-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-new-from-sessions {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-new-from-sessions:hover { background: var(--accent-light); }

/* ══════════════════════════════════════════
   WRAP UP BUTTON
══════════════════════════════════════════ */
.btn-wrap-up {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-wrap-up:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-wrap-up:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════
   SESSION SUMMARY CARD
══════════════════════════════════════════ */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  animation: msg-in 0.4s ease;
  margin: 8px 0;
  flex-shrink: 0;
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.summary-card-emblem {
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}

.summary-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.summary-card-body {
  padding: 8px 0;
}

.summary-section {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.summary-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.summary-action-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.btn-save-commitment {
  flex-shrink: 0;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-save-commitment:hover {
  background: var(--accent-dim);
}

.btn-save-commitment.saved {
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
}

.chat-session-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-session-end-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-new-session-end {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-new-session-end:hover {
  background: var(--accent-dim);
}

/* ══════════════════════════════════════════
   COMMITMENTS CHECK SCREEN
══════════════════════════════════════════ */
#screen-commitments {
  background: var(--bg);
  flex-direction: column;
}

.commitments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-commitments-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-commitments-back:hover { border-color: var(--accent); color: var(--accent); }

.commitments-header-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-commitments-skip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.btn-commitments-skip:hover { color: var(--text-soft); }

.commitments-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.commitments-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.commitments-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.commitments-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.commitments-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commitment-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.commitment-item.done {
  opacity: 0.45;
}

.commitment-item.done .commitment-item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.commitment-check-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.commitment-check-btn.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.commitment-check-btn.checked::after {
  content: '✓';
  font-size: 11px;
  color: #111;
  font-weight: 700;
}

.commitment-item-text {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.5;
  flex: 1;
}

.commitments-footer {
  padding: 16px 24px 32px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.btn-commitments-continue {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-commitments-continue:hover { background: var(--accent-light); }

/* ── UTILITIES ── */
.hidden { display: none !important; }
