/* ============================================================
   ANCHOR — app.css
   Dark mode is the default. Light mode via [data-theme="light"].
   ============================================================ */


/* ── Custom Properties ─────────────────────────────────────── */

:root {
  --bg:         #1a1814;
  --surface:    #242018;
  --surface-2:  #2e2a24;
  --border:     #3a342c;
  --text:       #e8e0d4;
  --text-muted: #8a7e70;
  --accent:     #c4a97a;
  --accent-dim: #7a6545;

  --nav-height:  60px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius:      12px;
  --radius-sm:   8px;
}

[data-theme="light"] {
  --bg:         #f5f0e8;
  --surface:    #ede8df;
  --surface-2:  #e5dfd4;
  --border:     #d4ccc0;
  --text:       #2a2520;
  --text-muted: #6a6058;
  --accent:     #8a6a40;
  --accent-dim: #a07848;
}


/* ── Reset ─────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
               'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


/* ── App Shell ──────────────────────────────────────────────── */

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}


/* ── Screens ────────────────────────────────────────────────── */

#screens {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(24px + var(--safe-top)) 20px 24px;
  display: none;
}

.screen.active {
  display: block;
}


/* ── Bottom Navigation ──────────────────────────────────────── */

#bottom-nav {
  display: flex;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  transition: color 0.15s ease;
  min-width: 0;
  padding: 0;
}

.nav-item.active {
  color: var(--accent);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}


/* ── Screen Header ──────────────────────────────────────────── */

.screen-header {
  margin-bottom: 28px;
}

.screen-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}


/* ── Placeholder screens (Phase 1) ─────────────────────────── */

.placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.placeholder-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.placeholder-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.placeholder-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 4px;
}


/* ── Settings ───────────────────────────────────────────────── */

.settings-section {
  margin-bottom: 32px;
}

.settings-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.settings-list {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-label {
  font-size: 15px;
  color: var(--text);
}

.settings-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ── Toggle Switch ──────────────────────────────────────────── */

.toggle {
  width: 44px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle.on {
  background: var(--accent);
}

.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.toggle.on .toggle-thumb {
  transform: translateX(18px);
}


/* ── Home Screen ────────────────────────────────────────────── */

.home-header {
  margin-bottom: 32px;
}

.home-greeting {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.home-subheading {
  font-size: 15px;
  color: var(--text-muted);
}


/* ── Check-in Slots ─────────────────────────────────────────── */

.checkin-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  text-align: left;
}

.slot--open {
  cursor: pointer;
  transition: background 0.15s ease;
}

.slot--open:active {
  background: var(--surface-2);
}

.slot--current {
  border-color: var(--accent-dim);
}

.slot--complete {
  opacity: 0.65;
}

.slot-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.slot-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot--current .slot-time {
  color: var(--accent);
}

.slot-open-label {
  font-size: 16px;
  color: var(--text);
}

.slot-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.slot-mood-score {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.slot-tags {
  font-size: 13px;
  color: var(--text-muted);
}

.slot-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

.slot-check {
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 12px;
}


/* ── Bottom Sheet ───────────────────────────────────────────── */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 101;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px calc(28px + var(--safe-bottom));
  flex: 1;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.sheet-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.sheet-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color 0.15s ease;
}

.sheet-close:active {
  color: var(--text);
}


/* ── Check-in Form ──────────────────────────────────────────── */

.checkin-step {
  margin-bottom: 28px;
}

.checkin-prompt {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}

.prompt-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}


/* ── Mood Scale ─────────────────────────────────────────────── */

.mood-scale {
  display: flex;
  gap: 8px;
}

.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.mood-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
}

.mood-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.mood-btn.selected .mood-num {
  color: #1a1814;
}

.mood-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.mood-btn.selected .mood-label {
  color: rgba(26, 24, 20, 0.65);
}


/* ── Tags ───────────────────────────────────────────────────── */

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

.tag-btn {
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
}


/* ── Note Field ─────────────────────────────────────────────── */

.note-field {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 14px;
  resize: none;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
}

.note-field::placeholder {
  color: var(--text-muted);
}

.note-field:focus {
  border-color: var(--accent-dim);
}


/* ── Save Button ────────────────────────────────────────────── */

.save-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #1a1814;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
}

.save-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.save-btn:not(:disabled):active {
  opacity: 0.8;
}


/* ── Home — Spiral shortcut ─────────────────────────────────── */

.home-spiral-row {
  margin-top: 20px;
}

.home-spiral-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: background 0.15s ease;
}

.home-spiral-btn:active {
  background: var(--surface-2);
}

.home-spiral-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-spiral-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.home-spiral-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ── Spiral Interrupter ─────────────────────────────────────── */

.spiral-section {
  margin-bottom: 28px;
}

.spiral-prompt {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}

.spiral-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.spiral-result-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.spiral-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.spiral-action-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.spiral-result-sub {
  font-size: 14px;
  color: var(--text-muted);
}


/* ── Journal ────────────────────────────────────────────────── */

.journal-empty {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.journal-day-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.journal-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.journal-entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.journal-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journal-mood {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.journal-tags {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* ── Coping List Editor (Settings) ─────────────────────────── */

.settings-section-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: -6px;
}

.cl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-empty {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}

.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.cl-item--editing {
  flex-direction: column;
  gap: 10px;
}

.cl-item-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cl-item-text:active {
  color: var(--accent);
}

.cl-remove-btn {
  flex-shrink: 0;
  color: var(--text-muted);
  padding: 2px;
  margin-top: 2px;
  transition: color 0.15s ease;
}

.cl-remove-btn:active {
  color: var(--text);
}

.cl-edit-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 12px;
  resize: none;
  outline: none;
  -webkit-appearance: none;
}

.cl-edit-actions {
  display: flex;
  gap: 8px;
}

.cl-save-btn {
  flex: 1;
  padding: 10px;
  background: var(--accent);
  color: #1a1814;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease;
}

.cl-save-btn:active {
  opacity: 0.8;
}

.cl-cancel-btn {
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.cl-cancel-btn:active {
  color: var(--text);
}

.cl-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}


/* ── Data actions (Settings) ────────────────────────────────── */

.data-action-btn {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.data-action-btn:active {
  background: var(--surface);
}

.import-confirm {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.import-confirm-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
}

.import-feedback {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.import-feedback--error {
  color: #c47a7a;
}


/* ── Onboarding ─────────────────────────────────────────────── */

#onboarding {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  transition: opacity 0.38s ease;
}

#onboarding.ob--fading {
  opacity: 0;
  pointer-events: none;
}

.ob-content {
  padding: calc(64px + var(--safe-top)) 24px calc(56px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.ob-wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.ob-heading {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.ob-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.ob-body p,
.ob-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.ob-sub {
  margin-bottom: 20px;
}

.ob-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #1a1814;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-top: 24px;
  transition: opacity 0.15s ease;
}

.ob-btn:active {
  opacity: 0.8;
}

/* Coping list */

.ob-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-list-empty {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}

.ob-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ob-list-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.ob-list-remove {
  flex-shrink: 0;
  color: var(--text-muted);
  padding: 3px;
  margin-top: 1px;
  transition: color 0.15s ease;
}

.ob-list-remove:active {
  color: var(--text);
}

/* Add row */

.ob-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.ob-add-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
}

.ob-add-input::placeholder {
  color: var(--text-muted);
}

.ob-add-input:focus {
  border-color: var(--accent-dim);
}

.ob-add-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.ob-add-btn:active {
  background: var(--surface);
}


/* ── Journal ─────────────────────────────────────────────────── */

.journal-note {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}


/* ── Pattern Insights (Journal screen) ──────────────────────── */

.pi-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pi-header {
  margin-bottom: 12px;
}

.pi-no-data {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.pi-instructions {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 12px 0 10px;
}

.pi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}

.pi-card-noticed {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}

.pi-card-try {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 12px;
}

.pi-card-try-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pi-card-try-text {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.55;
}

.pi-card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* shared across PI and Sessions */
.sess-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  resize: none;
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}

.sess-textarea::placeholder {
  color: var(--text-muted);
}

.sess-textarea:focus {
  border-color: var(--accent-dim);
}


/* ── Sessions screen ─────────────────────────────────────────── */

.sess-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sess-card {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  transition: background 0.15s ease;
}

.sess-card:active {
  background: var(--surface-2);
}

.sess-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.sess-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sess-card-insight {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;

  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sess-empty {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.sess-new-row {
  margin-top: 20px;
}

.sess-header--back {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sess-back-btn {
  color: var(--accent);
  display: flex;
  align-items: center;
  padding: 4px;
  margin-left: -4px;
  flex-shrink: 0;
}

.sess-section {
  margin-bottom: 28px;
}

.sess-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sess-section-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2px;
}

.sess-copied-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 10px;
}

.sess-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sess-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sess-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sess-detail-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

.sess-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.sess-step {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}


/* ── Follow-up banner (Home) ─────────────────────────────────── */

.followup-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.followup-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}

.followup-step {
  display: block;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 4px;
}

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

.followup-btn {
  padding: 9px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: background 0.15s ease;
}

.followup-btn:active {
  background: var(--border);
}


/* ── Spiral session hint ─────────────────────────────────────── */

.spiral-session-hint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.spiral-session-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spiral-session-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
