:root {
  --background: #f6f0e7;
  --background-strong: #efe4d5;
  --surface: rgba(255, 251, 246, 0.78);
  --surface-solid: #fffaf4;
  --surface-olive: #e7eadf;
  --text: #28322d;
  --muted: #667066;
  --border: rgba(68, 83, 72, 0.12);
  --border-strong: rgba(68, 83, 72, 0.2);
  --accent: #6b7c5f;
  --accent-deep: #46523f;
  --shadow: 0 24px 60px rgba(92, 80, 61, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-content: 25px;
}

* {
  box-sizing: border-box;
}

html {
  background: radial-gradient(circle at top left, #fffaf4 0%, var(--background) 48%, #ebe0d3 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

button {
  border: 0;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px 16px 92px;
}

body.breathing-room-active {
  background:
    radial-gradient(circle at top, rgba(255, 248, 228, 0.18) 0%, rgba(22, 27, 38, 0) 34%),
    linear-gradient(180deg, #161b26 0%, #202937 48%, #131821 100%);
}

body.breathing-room-active .page-shell {
  padding: 0;
}

body.breathing-room-active .ambient,
body.breathing-room-active .topbar,
body.breathing-room-active .site-footer,
body.breathing-room-active .bottom-nav {
  display: none;
}

body.breathing-room-active .app-frame {
  max-width: none;
}

.ambient {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-left {
  top: 3rem;
  left: -5rem;
  background: rgba(255, 244, 229, 0.9);
}

.ambient-right {
  right: -4rem;
  bottom: 8rem;
  background: rgba(214, 223, 203, 0.75);
}

.app-frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.brand-block {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.brand-home-button {
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-logo {
  max-width: 160px;
  max-height: 56px;
  object-fit: contain;
}

.brand-mark,
.eyebrow,
.mini-label {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
}

.brand-copy,
.supporting-text,
.field-note,
.soft-card p,
.setting-option p,
.entry-preview,
.calendar-day small,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.save-note {
  margin: var(--space-content) 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.topnav {
  display: none;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topbar-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  flex: 1;
  min-width: 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-note,
.micro-note {
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.6;
}

.ghost-button {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.nav-link,
.bottom-link {
  padding: 9px 12px;
  border-radius: 999px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link.active,
.bottom-link.active {
  background: rgba(255, 251, 246, 0.82);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--border);
}

.panel {
  backdrop-filter: blur(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-content);
  margin-bottom: var(--space-content);
}

.panel-heading h1,
.panel-heading h2,
.entry-card h3 {
  margin: 8px 0 0;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.panel-heading h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.98;
  max-width: 14ch;
}

.panel-heading h2 {
  font-size: clamp(1.55rem, 4.5vw, 2.2rem);
  line-height: 1.05;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: viewFade 380ms ease;
}

.home-layout,
.editor-grid,
.archive-layout,
.settings-layout,
.portal-layout {
  display: grid;
  gap: var(--space-content);
}

.hero-heading {
  align-items: end;
}

.hero-copy {
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-content);
  align-items: center;
}

.privacy-inline {
  margin: 14px 0 0;
  color: var(--accent-deep);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.entry-date-group {
  display: grid;
  gap: 10px;
  min-width: min(100%, 210px);
}

.field-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field-label {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.select-field,
.answer-field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.select-field:focus,
.answer-field:focus {
  border-color: rgba(107, 124, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(107, 124, 95, 0.12);
}

.answer-field {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

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

.custom-mood-panel,
.photo-upload-card,
.entry-photo-preview {
  display: grid;
  gap: 16px;
}

.custom-mood-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.custom-mood-input-row .select-field {
  flex: 1;
  min-width: min(100%, 240px);
}

.mood-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.mood-chip.selected {
  color: var(--accent-deep);
  border-color: rgba(107, 124, 95, 0.35);
  background: var(--surface-olive);
}

.mood-chip:hover,
.primary-button:hover,
.calendar-day.has-entry:hover,
.setting-option:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.questions-list {
  display: grid;
  gap: 4px;
}

.photo-upload-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
}

.photo-upload-meta {
  display: grid;
  gap: 8px;
}

.photo-upload-meta strong {
  color: var(--accent-deep);
}

.photo-upload-button {
  cursor: pointer;
}

.entry-photo-preview {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.entry-photo-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.action-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-content);
  align-items: flex-start;
}

.primary-button {
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #75876b 0%, #5a6951 100%);
  color: #fbf7f1;
  box-shadow: 0 18px 30px rgba(70, 82, 63, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.soft-card,
.entry-card,
.setting-option,
.calendar-day {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.soft-card {
  padding: 22px;
}

.soft-card strong,
.setting-option strong {
  display: block;
  margin-bottom: 6px;
}

.feature-grid,
.news-list,
.pricing-grid,
.checklist-grid {
  display: grid;
  gap: var(--space-content);
}

.workspace-tab-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breathing-room-grid,
.mix-list {
  display: grid;
  gap: 16px;
}

.breathing-studio-layout,
.mix-builder-grid {
  display: grid;
  gap: var(--space-content);
}

.breathing-immersive-shell {
  position: relative;
  min-height: calc(100vh - 168px);
}

.breathing-stack,
.scene-card-list,
.mix-control-list,
.favorites-list {
  display: grid;
  gap: 16px;
}

.scene-card-list-inline {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-heading {
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 2px;
}

.feature-card,
.pricing-card {
  display: grid;
  gap: 10px;
}

.feature-icon {
  font-size: 1.1rem;
  color: var(--accent-deep);
}

.feature-note {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.scene-preview,
.stack-card {
  display: grid;
  gap: 10px;
}

.breathing-stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  align-content: end;
  isolation: isolate;
}

.breathing-stage-immersive {
  min-height: calc(100vh - 168px);
  padding: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(24, 27, 34, 0.26);
}

.breathing-stage::before,
.breathing-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  opacity: 0.44;
  pointer-events: none;
  transition: transform 2.4s ease, opacity 0.4s ease;
}

.breathing-stage::before {
  width: 180px;
  height: 180px;
  top: 18px;
  right: 24px;
  background: rgba(255, 248, 228, 0.36);
}

.breathing-stage::after {
  width: 120px;
  height: 120px;
  bottom: 26px;
  left: 26px;
  background: rgba(231, 241, 219, 0.25);
}

.breathing-stage.is-running::before {
  transform: translateY(6px) scale(1.06);
}

.breathing-stage.is-running::after {
  transform: translateY(-8px) scale(1.08);
}

.breathing-stage-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  min-height: 100%;
  align-content: end;
  padding: 12px;
  color: #f8f5ef;
}

.breathing-stage-overlay-immersive {
  justify-content: space-between;
}

.breathing-stage-overlay h3,
.scene-card-copy strong,
.timer-display-block strong {
  margin: 0;
}

.breathing-stage-overlay p {
  margin: 0;
  max-width: 32rem;
  color: rgba(248, 245, 239, 0.9);
}

.breathing-stage-meta,
.timer-pill-row,
.session-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.breathing-floating-top,
.breathing-floating-bottom {
  display: grid;
  gap: 18px;
}

.breathing-intro-card,
.breathing-room-switcher,
.breathing-session-dock,
.breathing-controls-panel {
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 244, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(21, 25, 33, 0.18);
}

.breathing-intro-card {
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 24px;
}

.breathing-intro-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.breathing-exit-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8f5ef;
}

.breathing-exit-button:hover {
  transform: translateY(-1px);
}

.breathing-intro-card h2,
.breathing-controls-head h3 {
  margin: 0;
}

.breathing-intro-card p {
  margin: 0;
  color: rgba(248, 245, 239, 0.92);
}

.breathing-room-switcher {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
}

.breathing-room-switcher-head,
.breathing-controls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.breathing-room-switcher .feature-note {
  color: rgba(248, 245, 239, 0.9);
}

.breathing-session-dock {
  display: grid;
  gap: 18px;
  width: min(100%, 740px);
  padding: 18px;
  border-radius: 28px;
}

.session-action-row-inline {
  justify-content: flex-start;
}

.breathing-controls-drawer {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  z-index: 3;
}

.breathing-controls-panel {
  height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  overflow: auto;
  padding: 18px;
  border-radius: 30px;
}

.breathing-controls-panel .soft-card {
  background: rgba(255, 255, 255, 0.54);
}

.scene-card {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scene-card-list-inline .scene-card {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8f5ef;
}

.scene-card-list-inline .scene-card-copy,
.scene-card-list-inline .scene-card-copy span {
  color: rgba(248, 245, 239, 0.86);
}

.scene-card:hover,
.mix-control-card:hover,
.favorite-card:hover,
.timer-pill:hover {
  transform: translateY(-1px);
}

.scene-card.selected,
.mix-control-card.selected,
.timer-pill.selected {
  border-color: rgba(107, 124, 95, 0.35);
  box-shadow: inset 0 0 0 1px rgba(107, 124, 95, 0.14);
  background: rgba(240, 245, 235, 0.92);
}

.scene-card-list-inline .scene-card.selected {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.32);
}

.scene-card-art {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.scene-card-copy {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.mix-control-card,
.favorite-card {
  display: grid;
  gap: 16px;
}

.mix-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mix-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--accent-deep);
}

.mix-slider {
  width: 100%;
  accent-color: var(--accent);
}

.timer-pill {
  cursor: pointer;
}

.timer-display-block {
  display: grid;
  gap: 10px;
}

.timer-display-block strong {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fbf8f4;
}

.timer-display-block .save-note {
  color: rgba(248, 245, 239, 0.88);
}

.scene-preview {
  min-height: 220px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(40, 50, 45, 0.08) 0%, rgba(40, 50, 45, 0.18) 100%),
    linear-gradient(135deg, rgba(238, 225, 205, 0.95) 0%, rgba(216, 226, 207, 0.9) 100%);
}

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

.sound-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.news-item {
  display: grid;
  gap: 8px;
  animation: cardFloat 420ms ease;
}

.news-item p:last-of-type {
  margin-bottom: 0;
}

.news-item time {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.waitlist-request-card {
  gap: var(--space-content);
}

.waitlist-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.side-panel {
  align-content: start;
}

.side-panel,
.stats-row,
.entry-list,
.settings-list {
  display: grid;
  gap: var(--space-content);
}

.text-link,
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--accent-deep);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.archive-hero,
.calendar-panel,
.archive-list-panel,
.portal-hero {
  overflow: hidden;
}

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

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 10px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.calendar-day,
.calendar-blank {
  min-height: 84px;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
  text-align: left;
  cursor: pointer;
}

.calendar-day.has-entry {
  border-color: rgba(107, 124, 95, 0.3);
  background: linear-gradient(180deg, rgba(245, 248, 239, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(107, 124, 95, 0.4);
}

.entry-list {
  display: grid;
  gap: 14px;
}

.entry-card,
.setting-option {
  padding: 20px;
  animation: cardFloat 360ms ease;
}

.workspace-setting {
  grid-template-columns: 1fr;
}

.workspace-setting .select-field,
.workspace-setting .answer-field {
  margin-top: 12px;
}

.legal-copy {
  display: grid;
  gap: var(--space-content);
}

.site-footer {
  max-width: 1120px;
  margin: 22px auto 0;
}

.footer-surface {
  display: grid;
  gap: var(--space-content);
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92) 0%, rgba(241, 233, 222, 0.84) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer-copy-block {
  display: grid;
  gap: 8px;
  max-width: 34rem;
}

.footer-copy-block strong {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--accent-deep);
  font-size: 1.1rem;
}

.footer-copy-block p {
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.footer-links-wrap {
  display: grid;
  gap: var(--space-content);
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column .mini-label {
  color: var(--accent-deep);
}

.footer-links {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.footer-links .button-link {
  margin-top: 0;
}

.footer-meta {
  display: grid;
  gap: var(--space-content);
  padding-top: var(--space-content);
  border-top: 1px solid rgba(68, 83, 72, 0.1);
}

.footer-meta-line {
  color: rgba(70, 82, 63, 0.82);
}

.news-reader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.news-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 39, 34, 0.36);
  backdrop-filter: blur(8px);
}

.news-reader-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(250, 245, 238, 0.98) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 34px 90px rgba(60, 52, 41, 0.24);
  animation: viewFade 220ms ease;
}

.news-reader-topbar,
.news-reader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-reader-card h2 {
  margin: 10px 0 12px;
}

.news-reader-meta {
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
}

.news-reader-body {
  display: grid;
  gap: 14px;
}

.news-reader-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
  font-size: 1.02rem;
}

.entry-card {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.entry-card h3 {
  font-size: 1.45rem;
}

.entry-photo-flag {
  margin-bottom: 8px;
  color: var(--accent-deep);
}

.entry-preview {
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  padding: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
}

.settings-list {
  margin-bottom: var(--space-content);
}

.news-list + .save-note,
#waitlist-review-message {
  margin-top: var(--space-content);
}

.setting-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}

.setting-option.selected {
  border-color: rgba(107, 124, 95, 0.35);
  background: rgba(240, 245, 235, 0.88);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: min(calc(100% - 20px), 520px);
  overflow-x: auto;
}

.bottom-link {
  justify-content: center;
}

.bottom-link span {
  font-size: 0.78rem;
}

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

.checklist-card i {
  color: var(--accent);
}

@keyframes viewFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .page-shell {
    padding: 40px 24px 32px;
  }

  .topnav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .editor-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .feature-grid,
  .pricing-grid,
  .breathing-room-grid,
  .mix-list,
  .footer-links-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breathing-floating-top {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  body.breathing-room-active #breathing-room-view {
    min-height: 100vh;
  }

  .archive-hero,
  .archive-list-panel,
  .settings-layout,
  .portal-hero {
    grid-column: 1 / -1;
  }
}

@media (max-width: 859px) {
  .panel-heading,
  .entry-card,
  .topbar {
    flex-direction: column;
  }

  .topbar-actions,
  .topbar-meta {
    width: 100%;
  }

  .topbar-actions {
    justify-items: stretch;
  }

  .topbar-meta,
  .news-reader-topbar,
  .news-reader-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .breathing-stage-immersive {
    min-height: calc(100vh - 138px);
    padding: 16px;
    border-radius: 26px;
  }

  .breathing-controls-drawer {
    position: fixed;
    top: auto;
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .breathing-room-switcher-head,
  .breathing-controls-head,
  .session-action-row-inline,
  .breathing-intro-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-heading h1 {
    max-width: 100%;
  }

  .calendar-day small {
    font-size: 0.68rem;
  }

  .footer-surface,
  .news-reader-card {
    padding: 20px;
  }
}

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