:root {
  --bg: #100f18;
  --bg-soft: #171522;
  --surface: rgba(32, 29, 45, 0.82);
  --surface-strong: #242032;
  --surface-light: rgba(255, 255, 255, 0.075);
  --text: #fbf7f2;
  --muted: #b9b2c2;
  --faint: #827b8e;
  --accent: #ff8e70;
  --accent-strong: #ff7059;
  --accent-soft: rgba(255, 142, 112, 0.14);
  --violet: #b79cff;
  --violet-soft: rgba(183, 156, 255, 0.14);
  --teal: #74d8ca;
  --gold: #f3c978;
  --danger: #ff8892;
  --success: #7fdbc1;
  --border: rgba(255, 255, 255, 0.105);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, rgba(183, 156, 255, 0.14), transparent 38%),
    radial-gradient(circle at 100% 25%, rgba(255, 112, 89, 0.11), transparent 34%),
    linear-gradient(165deg, #100f18 0%, #13111d 48%, #0f0e16 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(183, 156, 255, 0.55);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: -120px;
  left: -140px;
  background: var(--violet);
}

.ambient-two {
  right: -160px;
  bottom: 12%;
  background: var(--accent);
}

.app-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px calc(96px + var(--safe-bottom));
}

.screen {
  animation: screen-in 380ms ease both;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 142, 112, 0.2), rgba(183, 156, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg,
.nav-item svg,
.mini-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome {
  display: grid;
  min-height: calc(100vh - 40px);
  align-items: center;
  padding: 36px 0;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(24, 21, 34, 0.88);
  box-shadow: var(--shadow);
}

.welcome-card::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.018), 0 0 0 82px rgba(255, 255, 255, 0.012);
  content: "";
}

.wordmark {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 12vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.wordmark-dot {
  color: var(--accent);
}

.welcome h1,
.page-title {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.06;
}

.welcome-copy,
.page-copy {
  max-width: 640px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #1c1314;
  background: linear-gradient(135deg, #ff9d80, #ff795f);
  box-shadow: 0 12px 30px rgba(255, 112, 89, 0.18);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.055);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.button-small {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.button-block {
  width: 100%;
}

.setup {
  width: min(100%, 720px);
  margin: 0 auto;
  padding-top: 12px;
}

.progress-wrap {
  margin: 22px 0 34px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 0.82rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transition: width 260ms ease;
}

.panel {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.panel h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel-intro {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.field label,
.field-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(7, 6, 12, 0.3);
}

.field select option {
  color: #15121d;
}

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

.choice-card,
.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: 160ms ease;
}

.choice-card {
  display: flex;
  min-height: 94px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 17px;
  text-align: left;
}

.choice-card:hover,
.chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.choice-card.selected,
.chip.selected {
  border-color: rgba(255, 142, 112, 0.55);
  background: var(--accent-soft);
}

.choice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-light);
  font-size: 1.05rem;
}

.choice-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.35;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.9rem;
}

.chip.selected {
  color: var(--text);
}

.setup-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.handoff {
  display: grid;
  min-height: 310px;
  place-items: center;
  text-align: center;
}

.handoff-orb {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--violet-soft));
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.018);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  padding: 13px 15px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.83rem;
  line-height: 1.5;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: 18px;
  margin: 14px 0 32px;
}

.hero-copy,
.hero-action {
  min-height: 250px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 88% 16%, rgba(183, 156, 255, 0.21), transparent 32%),
    linear-gradient(135deg, rgba(255, 142, 112, 0.08), transparent 50%),
    var(--surface);
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-copy p {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, #ff967a, #f47966);
  color: #231416;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease;
}

.hero-action:hover {
  transform: translateY(-3px);
}

.hero-action .arrow {
  align-self: flex-end;
  font-size: 2.2rem;
}

.hero-action strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.hero-action span {
  line-height: 1.4;
  opacity: 0.76;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 15px;
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.026em;
}

.section-head p {
  max-width: 520px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.mode-card {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  padding: 21px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.mode-card::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-glow, var(--accent));
  filter: blur(44px);
  opacity: 0.17;
  content: "";
}

.mode-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 1.15rem;
}

.mode-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.trail-list {
  display: grid;
  gap: 11px;
}

.trail-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: 170ms ease;
}

.trail-card:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.055);
}

.trail-cover {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--trail-a), var(--trail-b));
  color: #17111a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.trail-card strong {
  display: block;
  margin-bottom: 5px;
}

.trail-card p,
.trail-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.trail-meta {
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(calc(100% - 24px), 560px);
  min-height: 67px;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto max(10px, env(safe-area-inset-bottom));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(22, 19, 31, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.nav-item {
  display: grid;
  min-width: 62px;
  gap: 3px;
  place-items: center;
  padding: 6px 9px;
  color: var(--faint);
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
}

.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.page-head {
  padding: 18px 0 26px;
}

.page-head .page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.page-head .page-copy {
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.filter-pill.active {
  color: #1f1517;
  border-color: transparent;
  background: var(--accent);
}

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

.library-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
}

.library-card:hover {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.055);
}

.library-tag {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  color: var(--tag-color, var(--violet));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-card h3 {
  margin: 28px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.library-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.session-setup {
  width: min(100%, 660px);
  margin: 0 auto;
}

.setup-section {
  margin-top: 24px;
}

.setup-section h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.segment {
  min-height: 42px;
  padding: 0 8px;
  color: var(--muted);
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
}

.segment.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.session {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-top: 10px;
}

.session-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.session-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.session-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transition: width 240ms ease;
}

.session-count {
  color: var(--faint);
  font-size: 0.8rem;
}

.experience-card {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, var(--experience-glow, rgba(183, 156, 255, 0.18)), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #1b1826;
  box-shadow: var(--shadow);
}

.experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.depth-dots {
  display: flex;
  gap: 5px;
}

.depth-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

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

.prompt-wrap {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
}

.card-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.prompt {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.knowledge-copy,
.instruction-copy {
  margin: 20px 0 0;
  padding: 16px 17px;
  color: var(--muted);
  border-left: 2px solid var(--violet);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.58;
}

.session-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.session-actions .button {
  min-height: 48px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.followup-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(183, 156, 255, 0.22);
  border-radius: 16px;
  background: var(--violet-soft);
  animation: screen-in 220ms ease both;
}

.followup-box span {
  display: block;
  margin-bottom: 7px;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.followup-box p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.session-hint {
  margin: 14px 4px 0;
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.summary {
  width: min(100%, 680px);
  margin: 0 auto;
  padding-top: 24px;
}

.summary-orb {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  color: #1c1420;
  font-size: 2rem;
}

.summary h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.summary p {
  color: var(--muted);
  line-height: 1.6;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.stat {
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.stat span {
  color: var(--faint);
  font-size: 0.75rem;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 11px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--violet-soft));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card small {
  margin-top: 4px;
  color: var(--muted);
}

.profile-card .icon-button {
  margin-left: auto;
}

.settings-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.settings-item {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
}

.settings-item.danger {
  color: var(--danger);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: calc(88px + var(--safe-bottom));
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #292437;
  box-shadow: var(--shadow);
  animation: toast-in 220ms ease both;
  font-size: 0.86rem;
}

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

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

.noscript {
  margin: 30px;
  padding: 20px;
  color: white;
  background: #281c2a;
}

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

  .hero-copy,
  .hero-action {
    min-height: 210px;
  }

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

@media (max-width: 560px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    min-height: 66px;
  }

  .welcome {
    align-items: stretch;
    padding: 14px 0;
  }

  .welcome-card {
    display: flex;
    min-height: calc(100vh - 28px);
    flex-direction: column;
    justify-content: center;
  }

  .field-grid,
  .choice-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .mode-card {
    min-height: 175px;
    padding: 17px;
  }

  .mode-icon {
    margin-bottom: 22px;
  }

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

  .trail-meta {
    display: none;
  }

  .bottom-nav {
    width: calc(100% - 18px);
    border-radius: 20px;
  }

  .nav-item {
    min-width: 55px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .experience-card {
    min-height: calc(100vh - 135px);
    border-radius: 25px;
  }

  .prompt-wrap {
    min-height: 52vh;
  }

  .session-actions {
    grid-template-columns: 1fr;
  }

  .session-actions .button {
    min-height: 46px;
  }

  .summary-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
