:root {
  --ink: #fffaf4;
  --muted: #bbb4c2;
  --faint: #96909e;
  --night: #131119;
  --panel: #1a1720;
  --card: #211d28;
  --card-hover: #28222f;
  --line: rgba(239, 225, 255, 0.16);
  --line-strong: rgba(239, 225, 255, 0.25);
  --violet: #cdb0ff;
  --violet-bright: #e4d2ff;
  --rose: #ffaaa9;
  --gold: #f0ca75;
  --blue: #9bc8ff;
  --green: #9ed6b2;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
}

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

.settings-page {
  margin: 0 auto;
  max-width: 900px;
  padding: 64px 24px;
  width: 100%;
}

.settings-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 0 auto;
  max-width: 640px;
  padding: 32px;
}

.settings-card.wide { max-width: 900px; }
.settings-card h1 { font-family: var(--serif); }
.settings-card h2 { font-size: 16px; margin-top: 24px; }
.settings-card hr { border-color: var(--line); margin-top: 28px; }
.settings-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-card select { background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 12px; }
.user-list { display: grid; gap: 10px; margin-top: 24px; }
.user-row { align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; grid-template-columns: minmax(180px, 1fr) auto auto auto; padding: 16px; }
.user-row div { display: flex; flex-direction: column; }
.user-row small { color: var(--muted); }
.user-row label { white-space: nowrap; }
.dream-analysis { margin-top: 18px; }
.dream-analysis .oracle-answer { white-space: pre-wrap; }

@media (max-width: 700px) {
  .user-row { align-items: start; grid-template-columns: 1fr; }
  .settings-card { padding: 22px; }
}

a {
  color: inherit;
  text-decoration: none;
}

.welcome-body {
  background:
    radial-gradient(circle at 50% 28%, rgba(100, 71, 132, 0.16), transparent 34%),
    radial-gradient(circle at 14% 80%, rgba(91, 65, 117, 0.08), transparent 28%),
    #100e15;
}

.welcome-cover {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: 72px 28px 54px;
  position: relative;
  text-align: center;
  width: 100%;
}

.welcome-stars {
  color: rgba(215, 191, 248, 0.3);
  font: 14px var(--serif);
  left: 8%;
  letter-spacing: 1.6em;
  position: absolute;
  top: 18%;
}

.welcome-stars span { color: rgba(215, 191, 248, 0.15); }

.welcome-sigil {
  align-items: center;
  border: 1px solid rgba(205, 176, 255, 0.3);
  border-radius: 50%;
  color: var(--violet-bright);
  display: flex;
  height: 74px;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  width: 74px;
}

.welcome-sigil::before,
.welcome-sigil::after,
.welcome-sigil span {
  border: 1px solid rgba(205, 176, 255, 0.14);
  border-radius: 50%;
  height: 54px;
  position: absolute;
  transform: rotate(-32deg) scaleY(0.45);
  width: 94px;
}

.welcome-sigil::before { content: ""; transform: rotate(32deg) scaleY(0.45); }
.welcome-sigil::after { content: ""; height: 88px; transform: none; width: 88px; }
.welcome-sigil i { font-size: 23px; }

.welcome-cover h1 {
  font: 400 clamp(42px, 7vw, 68px)/1.08 var(--serif);
  letter-spacing: -0.035em;
  margin: 14px 0 22px;
}

.welcome-cover h1 em { color: #d9c2f5; font-weight: 400; }

.welcome-lede {
  color: #a9a2b0;
  font: 15px/1.8 var(--sans);
  margin: 0 auto;
  max-width: 585px;
}

.welcome-actions {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 34px;
}

.welcome-enter {
  align-items: center;
  background: #e2d5f2;
  border-radius: 10px;
  color: #1b1421;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  padding: 13px 18px;
  transition: 160ms ease;
}

.welcome-enter:hover { background: #f2e9fd; color: #1b1421; transform: translateY(-2px); }
.welcome-return { border-bottom: 1px solid rgba(205, 176, 255, 0.28); color: var(--muted); font-size: 12px; padding: 7px 0; }
.welcome-return:hover { border-color: var(--violet); color: var(--ink); }

.welcome-vow {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 58px;
  padding-top: 22px;
  width: min(420px, 100%);
}

.welcome-vow > i { color: #88789a; font-size: 12px; }
.welcome-vow p { display: flex; flex-direction: column; margin: 0; text-align: left; }
.welcome-vow strong { color: #bbb3c3; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.welcome-vow span { color: #77717e; font-size: 10px; margin-top: 3px; }
.welcome-footnote { color: #5e5964; font: italic 12px var(--serif); margin: 23px 0 0; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: var(--night);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 3000;
}

.skip-link:focus {
  top: 1rem;
}

/* Top bar */
.book-navbar {
  background: rgba(19, 17, 25, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.book-navbar-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 230px minmax(260px, 540px) 1fr;
  height: 100%;
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 28px;
}

.book-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  width: max-content;
}

.brand-sigil {
  align-items: center;
  border: 1px solid rgba(188, 160, 232, 0.45);
  border-radius: 50%;
  color: var(--violet-bright);
  display: inline-flex;
  height: 39px;
  justify-content: center;
  position: relative;
  width: 39px;
}

.brand-sigil i {
  font-size: 15px;
}

.sigil-orbit {
  border: 1px solid rgba(188, 160, 232, 0.22);
  border-radius: 50%;
  height: 29px;
  position: absolute;
  transform: rotate(-35deg) scaleY(0.55);
  width: 43px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.brand-copy small {
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.28em;
  margin-top: 6px;
}

.archive-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  height: 40px;
  padding: 0 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.archive-search:focus-within {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(188, 160, 232, 0.38);
}

.archive-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 10px;
  width: 100%;
}

.archive-search input::placeholder {
  color: #6f6b76;
}

.archive-search kbd {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #77727e;
  font: 9px var(--sans);
  padding: 3px 5px;
  white-space: nowrap;
}

.navbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.privacy-state {
  align-items: center;
  color: #716d78;
  font-size: 9px;
  gap: 5px;
  letter-spacing: 0.12em;
  margin-right: 5px;
  text-transform: uppercase;
}

.icon-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  height: 36px;
  justify-content: center;
  transition: 160ms ease;
  width: 36px;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.new-entry-button {
  align-items: center;
  background: #dfd1f2;
  border: 0;
  border-radius: 9px;
  color: #1c1423;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  height: 37px;
  padding: 0 15px;
  transition: background 160ms ease, transform 160ms ease;
}

.new-entry-button:hover {
  background: #efe5fd;
  color: #1c1423;
  transform: translateY(-1px);
}

.user-seal {
  align-items: center;
  background: linear-gradient(145deg, #2f2838, #1d1923);
  border: 1px solid rgba(188, 160, 232, 0.3);
  border-radius: 50%;
  color: #d4c2e8;
  display: inline-flex;
  font: italic 17px var(--serif);
  height: 36px;
  justify-content: center;
  width: 36px;
  padding: 0;
}

.install-app-button:not([hidden]) {
  display: inline-flex;
}

.install-modal .modal-content {
  background: #19161f;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: var(--ink);
}

.install-modal .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 26px 18px;
}

.install-modal .modal-title {
  font: 400 29px var(--serif);
}

.install-guide {
  color: var(--muted);
  line-height: 1.65;
  padding: 25px 26px 28px;
}

.install-app-mark {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding: 13px;
}

.install-app-mark img {
  border-radius: 13px;
  height: 58px;
  width: 58px;
}

.install-app-mark div { display: flex; flex-direction: column; }
.install-app-mark strong { color: var(--ink); font: 400 20px var(--serif); }
.install-app-mark small { color: var(--faint); font-size: 11px; }
.install-guide ol { display: grid; gap: 10px; padding-left: 22px; }
.install-privacy { border-top: 1px solid var(--line); font-size: 11px; margin: 22px 0 0; padding-top: 18px; }

.app-toast {
  background: #e6d9f7;
  border-radius: 10px;
  bottom: max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  color: #1c1423;
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2100;
}

@media (display-mode: standalone) {
  .book-navbar { padding-top: env(safe-area-inset-top); height: calc(76px + env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

.auth-nav-link {
  color: #aaa3af;
  font-size: 11px;
  padding: 9px 5px;
}

.auth-nav-link:hover {
  color: var(--ink);
}

.account-menu {
  background: #18161e;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  margin-top: 9px !important;
  min-width: 220px;
  padding: 8px;
}

.account-summary {
  display: flex;
  flex-direction: column;
  padding: 7px 8px;
}

.account-summary strong {
  font: 400 15px var(--serif);
}

.account-summary small {
  color: var(--faint);
  font-size: 9px;
  margin-top: 3px;
}

.account-menu .dropdown-divider {
  border-color: var(--line);
}

.account-menu .dropdown-item {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #9e97a3;
  font-size: 10px;
  padding: 8px;
}

.account-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.account-menu .dropdown-item i {
  margin-right: 6px;
}

/* Main application grid */
.journal-app {
  min-height: 100vh;
  overflow-x: hidden;
}

.book-layout {
  display: grid;
  grid-template-columns: 232px minmax(540px, 1fr) 318px;
  margin: 0 auto;
  max-width: 1600px;
  min-height: calc(100vh - 76px);
}

.library-panel,
.oracle-panel {
  background: #18151d;
  min-width: 0;
}

.library-panel {
  border-right: 1px solid var(--line);
}

.panel-scroll,
.oracle-inner {
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  position: sticky;
  scrollbar-color: #2d2933 transparent;
  scrollbar-width: thin;
  top: 76px;
}

.panel-scroll {
  padding: 34px 20px 25px;
}

.side-label,
.section-eyebrow {
  color: #9f95aa;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 10px 12px;
  text-transform: uppercase;
}

.entry-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.entry-nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b5adbb;
  display: flex;
  font-size: 11px;
  height: 37px;
  justify-content: space-between;
  padding: 0 10px;
  transition: 150ms ease;
}

.entry-nav-link span {
  align-items: center;
  display: flex;
  gap: 11px;
}

.entry-nav-link i {
  color: #9d94a5;
  font-size: 13px;
  text-align: center;
  width: 17px;
}

.entry-nav-link em {
  color: #918997;
  font-size: 9px;
  font-style: normal;
}

.entry-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0e9f4;
}

.entry-nav-link.active {
  background: rgba(205, 176, 255, 0.16);
  border-color: rgba(205, 176, 255, 0.3);
  color: #e4d8f2;
}

.entry-nav-link.active i {
  color: var(--violet-bright);
}

.side-divider {
  background: var(--line);
  height: 1px;
  margin: 25px 8px;
}

.new-dot {
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--violet);
  height: 5px;
  width: 5px;
}

.cycle-card {
  background: linear-gradient(145deg, rgba(188, 160, 232, 0.075), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(188, 160, 232, 0.12);
  border-radius: 11px;
  margin: 30px 2px 18px;
  padding: 14px;
}

.cycle-card-top {
  align-items: center;
  display: flex;
  gap: 10px;
}

.cycle-card-top > span:last-child {
  display: flex;
  flex-direction: column;
}

.cycle-card small,
.streak-row small {
  color: #625e69;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cycle-card strong {
  color: #bbb4c3;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.mini-moon {
  background: #c8b8dc;
  border-radius: 50%;
  box-shadow: inset -8px 0 0 #312c39, 0 0 12px rgba(188, 160, 232, 0.2);
  height: 27px;
  width: 27px;
}

.cycle-progress {
  background: #29262e;
  border-radius: 10px;
  height: 3px;
  margin: 14px 0 8px;
  overflow: hidden;
}

.cycle-progress span {
  background: linear-gradient(90deg, #8e74ad, #c7b2df);
  display: block;
  height: 100%;
  width: 34%;
}

.cycle-card p {
  color: #625e69;
  font-size: 8px;
  margin: 0;
}

.cycle-card p strong {
  color: #817b88;
  font-family: var(--sans);
  font-size: inherit;
}

.streak-row {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 8px 7px;
}

.streak-row > span:last-child {
  display: flex;
  flex-direction: column;
}

.streak-row strong {
  color: #8f8996;
  font-size: 9px;
  font-weight: 600;
}

.streak-flame {
  align-items: center;
  background: rgba(217, 186, 117, 0.07);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  height: 29px;
  justify-content: center;
  width: 29px;
}

/* Center journal */
.journal-main {
  background:
    radial-gradient(circle at 50% 0, rgba(141, 99, 196, 0.14), transparent 420px),
    #1b1820;
  min-width: 0;
}

.main-column {
  margin: 0 auto;
  max-width: 760px;
  padding: 51px 48px 100px;
}

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

.day-kicker {
  color: #aaa0b4;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.daily-header h1 {
  color: #eee8ef;
  font: 400 clamp(28px, 3vw, 36px)/1.1 var(--serif);
  letter-spacing: -0.018em;
  margin: 0 0 6px;
}

.daily-header h1 em {
  color: #baa3d1;
  font-weight: 400;
}

.daily-header > div:first-child > p:last-child {
  color: #aaa2ae;
  font: italic 13px var(--serif);
  margin: 0;
}

.header-glyph {
  align-items: center;
  color: #9b81bc;
  display: flex;
  height: 62px;
  justify-content: center;
  position: relative;
  width: 62px;
}

.header-glyph span {
  border: 1px solid rgba(188, 160, 232, 0.2);
  border-radius: 50%;
  height: 48px;
  position: absolute;
  transform: rotate(40deg) scaleY(0.45);
  width: 70px;
}

.header-glyph i {
  font-size: 18px;
}

.quick-capture {
  align-items: center;
  background: #25212b;
  border: 1px solid rgba(205, 176, 255, 0.3);
  border-radius: 13px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
  display: flex;
  min-height: 67px;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quick-capture:focus-within {
  border-color: rgba(188, 160, 232, 0.38);
  box-shadow: 0 17px 48px rgba(0, 0, 0, 0.22);
}

.capture-mark {
  align-items: center;
  background: rgba(188, 160, 232, 0.08);
  border-radius: 9px;
  color: var(--violet);
  display: flex;
  flex: 0 0 auto;
  height: 39px;
  justify-content: center;
  margin-right: 12px;
  width: 39px;
}

.quick-capture textarea {
  background: transparent;
  border: 0;
  color: #d8d1dc;
  font: italic 14px var(--serif);
  max-height: 130px;
  min-height: 28px;
  outline: 0;
  padding: 5px 4px;
  resize: none;
  width: 100%;
}

.quick-capture textarea::placeholder {
  color: #77707e;
}

.capture-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.capture-type {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  padding-right: 10px;
  position: relative;
}

.capture-type select {
  appearance: none;
  background: transparent;
  border: 0;
  color: #89838e;
  cursor: pointer;
  font-size: 9px;
  outline: 0;
  padding: 4px 14px 4px 4px;
}

.capture-type i {
  font-size: 8px;
  pointer-events: none;
  position: absolute;
  right: 10px;
}

.capture-actions button {
  align-items: center;
  background: #bda8d6;
  border: 0;
  border-radius: 8px;
  color: #1c1722;
  display: flex;
  height: 34px;
  justify-content: center;
  transition: 150ms ease;
  width: 34px;
}

.capture-actions button:hover {
  background: #ddcaef;
  transform: translateY(-1px);
}

.prompt-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 2px 31px;
}

.prompt-row span {
  color: #a39aa9;
  font-size: 8px;
  margin-right: 1px;
  text-transform: uppercase;
}

.prompt-row span i {
  color: var(--gold);
  font-size: 8px;
}

.prompt-row button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #aca4b1;
  font-size: 8px;
  padding: 5px 9px;
  transition: 150ms ease;
}

.prompt-row button:hover {
  border-color: rgba(188, 160, 232, 0.27);
  color: #bbb0c3;
}

.demo-note {
  align-items: center;
  background: rgba(143, 173, 212, 0.045);
  border: 1px solid rgba(143, 173, 212, 0.1);
  border-radius: 9px;
  color: #777583;
  display: flex;
  font-size: 9px;
  gap: 10px;
  margin-bottom: 27px;
  padding: 9px 12px;
}

.demo-note i {
  color: var(--blue);
}

.demo-note strong {
  color: #9694a3;
  font-weight: 600;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 21px;
}

.section-eyebrow {
  margin: 0 0 6px;
}

.section-heading h2 {
  color: #cfc8d2;
  font: 400 21px var(--serif);
  margin: 0;
}

.heading-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

.heading-actions a {
  color: #82788d;
  font-size: 9px;
}

.heading-actions a:hover {
  color: var(--violet);
}

.heading-actions button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #77717d;
  height: 30px;
  width: 30px;
}

.mobile-search {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  margin-bottom: 16px;
  padding: 0 10px;
}

.mobile-search input {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  height: 40px;
  outline: none;
  padding-left: 8px;
  width: 100%;
}

.entry-timeline {
  display: flex;
  flex-direction: column;
}

.entry-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  position: relative;
}

.entry-rail {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.entry-type-icon {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  margin-top: 19px;
  width: 34px;
  z-index: 1;
}

.rail-line {
  background: linear-gradient(var(--line-strong), var(--line));
  height: 100%;
  width: 1px;
}

.entry-content {
  border-bottom: 1px solid var(--line);
  margin-left: 12px;
  padding: 17px 2px 24px 4px;
}

.entry-card:first-child .entry-content {
  padding-top: 16px;
}

.entry-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.entry-kind {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.meta-separator {
  background: #4d4853;
  border-radius: 50%;
  height: 2px;
  width: 2px;
}

.entry-meta time,
.mood {
  color: #aaa2ae;
  font-size: 8px;
}

.mood {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin-left: auto;
}

.mood i {
  color: #6d8a79;
  font-size: 4px;
}

.entry-content h3 {
  color: #d9d2dc;
  font: 400 18px/1.3 var(--serif);
  margin: 0 0 7px;
}

.entry-open-link,
.entry-preview-link {
  color: inherit;
  display: block;
}

.entry-open-link:hover {
  color: #eee5f2;
}

.entry-preview-link:hover {
  color: #d0c6d4;
}

.entry-content > p {
  color: #b9b2be;
  font: 400 11px/1.75 var(--sans);
  margin: 0;
  max-width: 95%;
}

.entry-footer {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-top: 13px;
  min-height: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-right: auto;
}

.tag-list a,
.insight-card > div:last-child a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #a9a0af;
  font-size: 7px;
  padding: 3px 7px;
}

.tag-list a:hover,
.insight-card > div:last-child a:hover {
  border-color: rgba(188, 160, 232, 0.24);
  color: #a699af;
}

.entry-footer form {
  margin: 0;
}

.star-button {
  background: transparent;
  border: 0;
  color: #514c57;
  display: inline-block;
  font-size: 11px;
  padding: 3px 5px;
}

.star-button:hover,
.star-button.active {
  color: var(--gold);
}

.entry-edit-link {
  color: #625c69;
  font-size: 10px;
  padding: 3px 5px;
}

.entry-edit-link:hover {
  color: var(--violet);
}

.entry-card.newly-created .entry-content {
  animation: new-entry-glow 1.8s ease;
}

@keyframes new-entry-glow {
  0%, 100% { background: transparent; }
  35% { background: rgba(188, 160, 232, 0.07); }
}

.empty-state {
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  padding: 55px 25px;
  text-align: center;
}

.empty-state > span {
  color: var(--violet);
  font-size: 25px;
}

.empty-state h3 {
  font: 20px var(--serif);
  margin: 12px 0 5px;
}

.empty-state p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 18px;
  max-width: 340px;
}

.empty-state button {
  background: rgba(188, 160, 232, 0.12);
  border: 1px solid rgba(188, 160, 232, 0.23);
  border-radius: 7px;
  color: var(--violet-bright);
  font-size: 10px;
  padding: 8px 13px;
}

/* Oracle */
.oracle-panel {
  border-left: 1px solid var(--line);
}

.oracle-inner {
  padding: 33px 24px 50px;
}

.oracle-heading {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 36px 1fr auto;
}

.oracle-eye {
  align-items: center;
  color: var(--violet);
  display: flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.oracle-eye::before,
.oracle-eye::after {
  border: 1px solid rgba(188, 160, 232, 0.35);
  border-radius: 50% 0 50% 0;
  content: "";
  height: 24px;
  position: absolute;
  transform: rotate(45deg);
  width: 24px;
}

.oracle-eye::after {
  height: 31px;
  opacity: 0.22;
  width: 31px;
}

.oracle-eye i {
  font-size: 11px;
}

.oracle-heading p {
  color: #827292;
  font-size: 7px;
  letter-spacing: 0.22em;
  margin: 0 0 4px;
}

.oracle-heading h2 {
  color: #c9c1cd;
  font: 400 17px var(--serif);
  margin: 0;
}

.oracle-live {
  background: #799e88;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(121, 158, 136, 0.8);
  height: 5px;
  width: 5px;
}

.oracle-intro {
  color: #aaa2ae;
  font: italic 10px/1.6 var(--serif);
  margin: 16px 0 12px;
}

.moon-map {
  align-items: center;
  display: flex;
  height: 142px;
  justify-content: center;
  margin: 2px auto 9px;
  position: relative;
  width: 170px;
}

.moon-map .orbit {
  border: 1px solid rgba(188, 160, 232, 0.12);
  border-radius: 50%;
  position: absolute;
}

.orbit-one {
  height: 92px;
  width: 92px;
}

.orbit-two {
  height: 55px;
  transform: rotate(-22deg) scaleY(0.45);
  width: 145px;
}

.moon-core {
  align-items: center;
  background: radial-gradient(circle at 35% 35%, #c4b0dd, #78688e 65%, #312b39 68%);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(188, 160, 232, 0.13);
  color: rgba(255, 255, 255, 0.15);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.star-point {
  color: #74677f;
  font-style: normal;
  position: absolute;
}

.point-one { left: 23px; top: 38px; }
.point-two { right: 20px; top: 57px; }
.point-three { bottom: 23px; right: 43px; }

.moon-map small {
  bottom: 4px;
  color: #4f4a55;
  font-size: 5px;
  letter-spacing: 0.18em;
  position: absolute;
  text-align: center;
}

.moon-map small strong {
  color: #777080;
  font-size: 6px;
  font-weight: 500;
}

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

.insight-card,
.quiet-pattern {
  background: linear-gradient(145deg, rgba(205, 176, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(205, 176, 255, 0.22);
  border-radius: 10px;
  padding: 14px;
}

.insight-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.insight-icon {
  align-items: center;
  background: rgba(188, 160, 232, 0.08);
  border-radius: 6px;
  color: #aa8fc9;
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.connection-count {
  color: #675d71;
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-card h3,
.quiet-pattern h3 {
  color: #c1b8c6;
  font: 400 14px var(--serif);
  margin: 0 0 5px;
}

.insight-card p,
.quiet-pattern p {
  color: #aaa2ae;
  font-size: 8px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.insight-card > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quiet-pattern {
  text-align: center;
}

.quiet-pattern > i {
  color: var(--violet);
  display: block;
  margin-bottom: 6px;
}

.oracle-question {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 17px;
}

.oracle-question label {
  color: #8f8498;
  display: block;
  font: 400 11px var(--serif);
  margin-bottom: 8px;
}

.oracle-question label i {
  color: var(--violet);
  font-size: 8px;
  margin-right: 4px;
}

.oracle-question > div {
  align-items: center;
  background: #242029;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  padding: 3px;
}

.oracle-question input {
  background: transparent;
  border: 0;
  color: #bcb5c1;
  font: italic 10px var(--serif);
  height: 29px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
  width: 100%;
}

.oracle-question button {
  align-items: center;
  background: #2b2631;
  border: 0;
  border-radius: 6px;
  color: #aa96bc;
  display: flex;
  height: 27px;
  justify-content: center;
  width: 29px;
}

.oracle-question > small {
  color: #4f4a54;
  display: block;
  font-size: 6px;
  margin-top: 7px;
  text-align: center;
}

.oracle-answer {
  color: #8d8196;
  display: none;
  font: italic 10px/1.55 var(--serif);
  margin: 9px 2px 0;
}

.oracle-answer.visible {
  display: block;
}

/* Entry modal */
.entry-modal .modal-dialog {
  max-width: 720px;
}

.entry-modal .modal-content {
  background: #151319;
  border: 1px solid rgba(188, 160, 232, 0.19);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  color: var(--ink);
  overflow: hidden;
}

.modal-backdrop.show {
  opacity: 0.75;
}

.entry-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 24px 27px 20px;
}

.entry-modal .modal-title {
  color: #e6dfe8;
  font: 400 25px var(--serif);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 0;
  color: #79727f;
  padding: 5px;
}

.entry-modal .modal-body {
  padding: 22px 27px 10px;
}

.type-picker {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.type-picker legend,
.field-group > span {
  color: #8d8692;
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.type-picker > div {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, 1fr);
}

.type-picker label {
  cursor: pointer;
  position: relative;
}

.type-picker input {
  opacity: 0;
  position: absolute;
}

.type-picker label > span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 48px;
  justify-content: center;
  transition: 150ms ease;
}

.type-picker label > em {
  color: #726c78;
  display: block;
  font-size: 8px;
  font-style: normal;
  margin-top: 5px;
  text-align: center;
}

.type-picker input:checked + span {
  border-color: rgba(188, 160, 232, 0.52);
  box-shadow: inset 0 0 0 1px rgba(188, 160, 232, 0.12);
}

.type-picker input:checked ~ em {
  color: #c6b7d0;
}

.field-group {
  display: block;
  margin-bottom: 15px;
}

.field-group > span small {
  color: #56515b;
  font-size: 8px;
  font-weight: 400;
  margin-left: 5px;
}

.field-group input,
.field-group select,
.field-group textarea {
  background: #0f0e13;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d4cdd8;
  outline: 0;
  padding: 10px 12px;
  transition: 150ms ease;
  width: 100%;
}

.field-group input,
.field-group select {
  font-size: 11px;
  height: 41px;
}

.field-group textarea {
  font: 400 14px/1.6 var(--serif);
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(188, 160, 232, 0.4);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #59545f;
}

.field-row {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
}

.entry-modal .modal-footer {
  align-items: center;
  border-top: 0;
  display: flex;
  justify-content: space-between;
  padding: 7px 27px 24px;
}

.entry-modal .modal-footer > span {
  color: #5e5964;
  font-size: 8px;
}

.entry-modal .modal-footer > div {
  display: flex;
  gap: 8px;
}

.cancel-button,
.save-entry-button {
  border-radius: 8px;
  font-size: 10px;
  height: 38px;
  padding: 0 15px;
}

/* Full entry view */
.entry-page {
  background: radial-gradient(circle at 50% 0, rgba(141, 99, 196, 0.13), transparent 520px), #18151d;
  min-height: 100vh;
}

.entry-detail-shell {
  margin: 0 auto;
  max-width: 850px;
  padding: 50px 28px 100px;
}

.entry-detail-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.entry-detail-nav a {
  color: #9e96a5;
  font-size: 10px;
}

.entry-detail-nav a:hover {
  color: #d8c8e9;
}

.entry-detail-card {
  background: rgba(34, 30, 39, 0.92);
  border: 1px solid rgba(188, 160, 232, 0.18);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  padding: clamp(28px, 6vw, 58px);
}

.entry-detail-heading h1 {
  color: #eee7f0;
  font: 400 clamp(30px, 5vw, 44px)/1.15 var(--serif);
  margin: 14px 0 32px;
}

.entry-detail-heading .section-eyebrow {
  margin-left: 0;
}

.entry-full-body {
  color: #cec6d1;
  font: 400 16px/1.9 var(--serif);
  white-space: pre-wrap;
}

.entry-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 35px;
}

.entry-detail-tags a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #aaa0b0;
  font-size: 9px;
  padding: 5px 9px;
}

.entry-detail-actions,
.entry-form-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 38px;
  padding-top: 20px;
}

.entry-detail-actions form { margin: 0; }
.entry-detail-actions .star-button { font-size: 10px; }

.delete-entry-button {
  background: transparent;
  border: 0;
  color: #8d666c;
  font-size: 10px;
  padding: 6px;
}

.delete-entry-button:hover { color: #d697a0; }
.entry-edit-fields .field-group { margin-bottom: 20px; }
.entry-form-actions .cancel-button,
.entry-form-actions .save-entry-button { align-items: center; display: inline-flex; }

@media (max-width: 575px) {
  .entry-detail-shell { padding: 28px 14px 70px; }
  .entry-detail-card { padding: 26px 20px; }
  .entry-detail-heading h1 { margin-bottom: 24px; }
}

.cancel-button {
  background: transparent;
  border: 1px solid var(--line);
  color: #8e8793;
}

.save-entry-button {
  background: #d8c8e9;
  border: 0;
  color: #211826;
  font-weight: 700;
}

.type-violet { color: var(--violet) !important; }
.type-blue { color: var(--blue) !important; }
.type-gold { color: var(--gold) !important; }
.type-rose { color: var(--rose) !important; }
.type-green { color: var(--green) !important; }
.type-bg-violet { background: rgba(188, 160, 232, 0.08); color: var(--violet); }
.type-bg-blue { background: rgba(143, 173, 212, 0.08); color: var(--blue); }
.type-bg-gold { background: rgba(217, 186, 117, 0.08); color: var(--gold); }
.type-bg-rose { background: rgba(225, 156, 157, 0.08); color: var(--rose); }
.type-bg-green { background: rgba(145, 185, 161, 0.08); color: var(--green); }

/* Accounts */
.auth-page {
  background:
    radial-gradient(circle at 22% 50%, rgba(105, 73, 134, 0.13), transparent 35%),
    var(--night);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.1fr);
  min-height: calc(100vh - 76px);
}

.auth-story,
.auth-card-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 55px;
}

.auth-story {
  border-right: 1px solid var(--line);
  flex-direction: column;
  position: relative;
  text-align: center;
}

.auth-story::before {
  background-image: radial-gradient(rgba(188, 160, 232, 0.35) 0.7px, transparent 0.7px);
  background-size: 33px 33px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle, black, transparent 67%);
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
}

.auth-orbit {
  align-items: center;
  border: 1px solid rgba(188, 160, 232, 0.31);
  border-radius: 50%;
  color: var(--violet-bright);
  display: flex;
  font-size: 27px;
  height: 104px;
  justify-content: center;
  position: relative;
  width: 104px;
}

.auth-orbit span {
  border: 1px solid rgba(188, 160, 232, 0.2);
  border-radius: 50%;
  height: 70px;
  position: absolute;
  transform: rotate(-30deg) scaleY(0.43);
  width: 148px;
}

.auth-story p {
  font: 400 clamp(30px, 4vw, 48px)/1.15 var(--serif);
  margin: 35px 0 20px;
  position: relative;
}

.auth-story p em {
  color: var(--violet);
}

.auth-story small {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.16em;
  position: relative;
  text-transform: uppercase;
}

.auth-card-wrap {
  justify-content: flex-start;
}

.auth-card {
  max-width: 430px;
  width: 100%;
}

.auth-card .section-eyebrow {
  margin-left: 0;
}

.auth-card h1 {
  font: 400 38px var(--serif);
  margin: 0 0 9px;
}

.auth-intro {
  color: var(--muted);
  font: italic 15px var(--serif);
  margin: 0 0 30px;
}

.auth-field {
  display: block;
  margin-bottom: 15px;
}

.auth-field > span {
  color: #9a939f;
  display: flex;
  font-size: 9px;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.auth-field > span small {
  color: var(--faint);
  font-weight: 400;
}

.auth-field input {
  background: #111015;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  height: 46px;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}

.auth-field input:focus {
  border-color: rgba(188, 160, 232, 0.5);
  box-shadow: 0 0 0 3px rgba(188, 160, 232, 0.07);
}

.remember-field {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  gap: 8px;
  margin: 4px 0 20px;
}

.remember-field input {
  accent-color: var(--violet);
}

.auth-submit {
  align-items: center;
  background: #dfd1f2;
  border: 0;
  border-radius: 9px;
  color: #1c1423;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 46px;
  justify-content: space-between;
  padding: 0 16px;
  width: 100%;
}

.auth-submit:hover {
  background: #efe5fd;
}

.demo-form {
  margin-top: 10px;
}

.demo-submit {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--violet-bright);
  font-size: 10px;
  height: 42px;
  width: 100%;
}

.demo-submit:hover {
  background: rgba(188, 160, 232, 0.07);
  border-color: rgba(188, 160, 232, 0.4);
}

.welcome-demo-form {
  display: inline;
  margin: 0;
}

.welcome-demo-form button {
  background: transparent;
  border: 0;
  padding: 0;
}

.auth-privacy {
  color: var(--faint);
  font-size: 8px;
  line-height: 1.6;
  margin: 13px 5px 0;
}

.auth-privacy i {
  color: var(--green);
  margin-right: 4px;
}

.auth-switch {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  margin: 26px 0 0;
  padding-top: 22px;
}

.auth-switch a {
  color: var(--violet-bright);
}

/* Flash messages and supporting pages */
.flash-stack {
  left: 50%;
  max-width: 520px;
  position: fixed;
  top: 90px;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  z-index: 2000;
}

.content-narrow {
  max-width: 760px;
}

.about-page {
  padding: 90px 20px;
}

.about-page h1 {
  font: 400 clamp(42px, 7vw, 70px)/1 var(--serif);
}

.about-page .lead {
  color: var(--muted) !important;
  font: italic 20px/1.6 var(--serif);
}

.about-page .about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 40px;
  padding: 25px;
}

.check-list {
  color: var(--muted);
  list-style: none;
  padding-left: 0;
}

.check-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.75rem;
  position: relative;
}

.check-list li::before {
  color: var(--violet);
  content: "✦";
  left: 0;
  position: absolute;
}

.error-code {
  color: var(--violet);
  font: 400 clamp(6rem, 20vw, 11rem)/1 var(--serif);
  letter-spacing: -0.08em;
}

footer {
  background: var(--night);
}

@media (max-width: 1180px) {
  .book-layout {
    grid-template-columns: 210px minmax(500px, 1fr) 285px;
  }

  .book-navbar-inner {
    grid-template-columns: 200px minmax(230px, 420px) 1fr;
    padding-inline: 20px;
  }

  .main-column {
    padding-inline: 34px;
  }

  .oracle-inner {
    padding-inline: 19px;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-story {
    display: none;
  }

  .auth-card-wrap {
    justify-content: center;
  }

  .book-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .oracle-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 2;
  }

  .oracle-inner {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    max-height: none;
    padding: 27px 35px 50px;
    position: static;
  }

  .oracle-heading,
  .oracle-intro,
  .oracle-question {
    grid-column: 1 / -1;
  }

  .moon-map {
    margin: 0 auto;
  }

  .insight-list {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
}

@media (max-width: 767.98px) {
  .book-navbar {
    height: 67px;
  }

  .welcome-cover { min-height: calc(100vh - 67px); padding-top: 54px; }
  .welcome-stars { top: 12%; }

  .book-navbar-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
  }

  .brand-copy small,
  .privacy-state {
    display: none;
  }

  .auth-shell {
    min-height: calc(100vh - 67px);
  }

  .auth-card-wrap {
    align-items: flex-start;
    padding: 60px 22px;
  }

  .new-entry-button {
    padding-inline: 11px;
  }

  .book-layout {
    display: block;
    min-height: calc(100vh - 67px);
  }

  .library-panel {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    overflow-x: auto;
  }

  .panel-scroll {
    max-height: none;
    overflow: visible;
    padding: 10px 13px;
    position: static;
    width: max-content;
  }

  .panel-scroll > .side-label,
  .panel-scroll > .side-divider,
  .secondary-nav,
  .cycle-card,
  .streak-row {
    display: none;
  }

  .entry-nav {
    flex-direction: row;
  }

  .entry-nav-link {
    height: 34px;
    padding-inline: 10px;
  }

  .entry-nav-link em {
    margin-left: 8px;
  }

  .main-column {
    padding: 35px 20px 70px;
  }

  .daily-header {
    margin-bottom: 24px;
  }

  .header-glyph {
    display: none;
  }

  .quick-capture {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .quick-capture textarea {
    width: calc(100% - 55px);
  }

  .capture-actions {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    margin: 7px 0 0;
    padding-top: 8px;
    width: 100%;
  }

  .prompt-row span {
    flex-basis: 100%;
  }

  .entry-card {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .entry-type-icon {
    height: 29px;
    width: 29px;
  }

  .entry-content {
    margin-left: 7px;
  }

  .oracle-panel {
    grid-column: auto;
  }

  .oracle-inner {
    display: block;
    max-height: none;
    padding: 35px 20px 70px;
    position: static;
  }

  .insight-list {
    margin-top: 10px;
  }

  .entry-modal .modal-dialog {
    margin: 10px;
  }

  .type-picker > div {
    grid-template-columns: repeat(5, minmax(55px, 1fr));
    overflow-x: auto;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .entry-modal .modal-footer {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .book-brand {
    gap: 8px;
  }

  .welcome-actions { align-items: stretch; flex-direction: column; gap: 12px; width: 100%; }
  .welcome-enter { justify-content: center; }
  .welcome-cover h1 { font-size: 39px; }

  .brand-sigil {
    height: 34px;
    width: 34px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .new-entry-button span {
    display: none;
  }

  .new-entry-button {
    justify-content: center;
    width: 37px;
  }

  .daily-header h1 {
    font-size: 29px;
  }

  .entry-content > p {
    max-width: 100%;
  }

  .mood {
    display: none;
  }

  .demo-note {
    align-items: flex-start;
  }
}

@media (display-mode: standalone) and (max-width: 767.98px) {
  .book-navbar { height: calc(67px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
