:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-reading: ui-serif, Georgia, "Times New Roman", serif;
  --bg: #f6f2e9;
  --bg-spot: rgba(226, 207, 173, 0.26);
  --bg-top: #faf7f0;
  --bg-bottom: #f6f2e9;
  --surface: rgba(255, 253, 248, 0.94);
  --surface-strong: #fffdf8;
  --surface-muted: #f1ede4;
  --focus-surface: #f4ecd9;
  --ink: #352f28;
  --muted: #756b5e;
  --line: rgba(91, 74, 50, 0.09);
  --line-strong: rgba(91, 74, 50, 0.17);
  --green: #527258;
  --green-strong: #3f5b45;
  --red: #a24736;
  --accent: #527258;
  --accent-strong: #405b46;
  --accent-soft: #e9eee3;
  --on-accent: #ffffff;
  --blue: var(--accent);
  --tab-active-bg: var(--accent-soft);
  --tab-active-text: var(--green-strong);
  --shadow: 0 10px 30px rgba(74, 57, 32, 0.05);
  --shadow-soft: 0 4px 18px rgba(74, 57, 32, 0.025);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell-max: 1520px;
}

[data-theme="dark"] {
  --bg: #211f1b;
  --bg-spot: rgba(160, 131, 81, 0.08);
  --bg-top: #26231e;
  --bg-bottom: #211f1b;
  --surface: rgba(43, 40, 34, 0.96);
  --surface-strong: #312d26;
  --surface-muted: #27251f;
  --focus-surface: #353023;
  --ink: #f1eadd;
  --muted: #b9ae9c;
  --line: rgba(232, 217, 190, 0.10);
  --line-strong: rgba(232, 217, 190, 0.20);
  --green: #adc5a0;
  --green-strong: #c3d6b8;
  --red: #e6a28d;
  --accent: #adc5a0;
  --accent-strong: #c3d6b8;
  --accent-soft: #343e2f;
  --on-accent: #232b21;
  --blue: var(--accent);
  --tab-active-bg: var(--accent-soft);
  --tab-active-text: var(--green-strong);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--bg-spot), transparent 30rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--blue);
}

#app {
  min-height: 100vh;
}

.shell,
.desktop-shell {
  width: min(calc(100vw - 36px), var(--shell-max));
  margin: 0 auto;
  padding: 18px 0;
}

.desktop-shell {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.desktop-content,
.desktop-stack {
  display: grid;
  gap: 18px;
}

.desktop-content {
  min-height: 0;
  overflow: hidden;
}

.desktop-panel {
  min-height: 0;
}

.desktop-panel__scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.global-notification {
  width: min(100%, 1040px);
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.global-notification--info {
  background: #fff4de;
  border-color: #e1c59a;
}

.global-notification--success {
  background: #e8f3ea;
  border-color: #9fc5a8;
}

.global-notification--warning {
  background: #fbe7de;
  border-color: #d9a181;
}

.global-notification__copy {
  display: grid;
  gap: 6px;
}

.global-notification__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.global-notification__message {
  color: #5b4d40;
  line-height: 1.45;
}

.global-notification__link {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.global-notification__dismiss {
  background: transparent;
  color: #5b4d40;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  font-size: 22px;
  line-height: 1;
}

.desktop-header,
.desktop-content {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.desktop-two-col {
  display: grid;
  gap: 24px;
}

.day-layout {
  grid-template-columns: 1fr;
}

.desktop-content--workspace {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 24px;
}

.day-layout,
.focus-layout {
  align-content: start;
  gap: 20px;
}

.workspace-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workspace-heading p {
  margin: 8px 0 0;
  line-height: 1.5;
  max-width: 65ch;
}

.workspace-heading > button {
  flex-shrink: 0;
}

.workspace-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.focus-layout__cards {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 20px;
}

.focus-layout__cards--single {
  grid-template-columns: minmax(0, 1fr);
}

.focus-layout .focus-card {
  align-content: start;
  padding: 24px;
  box-shadow: none;
}

.focus-card .snapshot-link {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.focus-layout .focus-goal {
  background: var(--focus-surface);
  border-color: transparent;
}

.focus-layout .focus-goal .focus-card__body {
  font-family: var(--font-reading);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.focus-layout .focus-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.focus-suggestion {
  background: transparent;
  border-color: transparent;
}

.focus-suggestion .section-title {
  font-size: 18px;
}

.focus-suggestion p {
  margin: 0;
  line-height: 1.6;
}

.focus-suggestion .focus-card__actions {
  align-items: flex-end;
}

.focus-suggestion .focus-card__actions > .focus-add-button {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 24px;
  line-height: 1;
}

.plan-workspace {
  padding: 24px;
  box-shadow: none;
}

.workspace-heading h1 {
  font-family: var(--font-reading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}

.workspace-heading .workspace-date {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.plan-filters .task-filter-button:not(.is-active) {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.plan-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
}

.plan-filters .launcher-row__group {
  gap: 6px;
  flex-shrink: 0;
}

.plan-workspace .task-list {
  gap: 0;
  margin: 0;
}

.plan-workspace .task-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.plan-workspace .task-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.plan-workspace .task-row__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
}

.plan-workspace .task-row__description {
  grid-column: 1;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

.plan-workspace .task-row__meta {
  grid-column: 1;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.plan-workspace .task-row__footer {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
}

.plan-workspace .task-row__actions > button {
  padding: 8px 12px;
  min-height: 36px;
  font-size: 13px;
}

.plan-workspace .task-complete {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--green-strong);
}

.plan-workspace .is-done .task-complete {
  background: transparent;
  color: var(--muted);
}

.plan-workspace .is-done .task-row__description {
  color: var(--muted);
}

.plan-workspace .is-overdue .task-row__meta {
  color: var(--red);
}

.plan-empty {
  padding: 36px 0 20px;
  text-align: center;
}

.plan-empty p {
  margin: 0 0 8px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .focus-layout__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-workspace,
  .focus-layout .focus-card {
    padding: 18px;
  }

  .workspace-heading {
    gap: 12px;
  }

  .plan-workspace .task-row__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .plan-workspace .task-row__footer {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
  }
}

.night-layout {
  display: flex;
  flex-direction: column;
}

.night-layout > .workspace-heading {
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.night-layout > .desktop-panel__scroll {
  flex: 1;
}

.profile-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.profile-layout--single {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  gap: 18px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-height: 0;
}

.voice-filter-row {
  display: flex;
  gap: 8px;
}

.voice-filter-row--compact {
  margin-bottom: 0;
}

.voice-filter-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
}

.voice-filter-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: max-content;
  gap: 8px;
  width: max-content;
}

.voice-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(247, 247, 249, 0.92);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
  white-space: nowrap;
}

.voice-filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.desktop-card,
.voice-card,
.task-row,
.reflection-card,
.archive-task-row,
.modal-card,
.hero,
.auth-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
}

.desktop-card,
.voice-card,
.reflection-card,
.archive-task-row,
.modal-card,
.hero,
.auth-panel {
  padding: 20px;
}

.desktop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.desktop-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.desktop-header__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-header__logo {
  height: 47px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.desktop-tabs,
.desktop-header__center,
.desktop-header__right,
.hero-actions,
.reflection-publish-row,
.reflection-header-actions,
.task-row__primary-actions,
.task-row__secondary-actions,
.archive-sidebar__tabs,
.context-toggle,
.task-composer-actions,
.modal-metric-row,
.gift-amount-row,
.voice-card__actions,
.reflection-card__actions,
.preview-actions,
.focus-card__actions,
.form-actions,
.inline-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-tabs {
  flex-wrap: nowrap;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
}

.hero-actions {
  flex-wrap: wrap;
}

.auth-methods {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.auth-methods > [data-action="dev-local-sign-in"] {
  grid-column: 1 / -1;
}

.auth-methods > button {
  min-height: 44px;
  white-space: nowrap;
}

.auth-methods .google-sign-in-button {
  display: flex;
  justify-content: center;
}

.auth-label-short {
  display: none;
}

.auth-methods > button,
.auth-methods > .google-sign-in-button {
  width: 100%;
}

.auth-wizard-shell {
  max-width: min(760px, 100%);
  min-height: calc(100vh - 32px);
  margin: 0 auto;
}

.auth-wizard {
  display: grid;
  align-content: center;
  gap: 16px;
  align-items: stretch;
  min-height: calc(100vh - 96px);
}

.auth-wizard > button,
.auth-wizard > .google-sign-in-button,
.auth-wizard > .field-input,
.auth-wizard > .helper-text,
.auth-wizard > .auth-wizard__email {
  width: 100%;
}

.google-sign-in-button {
  width: 100%;
  min-height: 44px;
}

.auth-wizard__step,
.auth-wizard__email-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-wizard__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 0.98;
}

.auth-wizard__copy {
  margin: 0;
}

.auth-wizard__email {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-muted) 94%, transparent);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.auth-input {
  min-height: 68px;
  padding: 18px 20px;
  font-size: 1.2rem;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line-strong));
  background: var(--surface-strong);
}

.auth-input--code {
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  text-align: center;
}

.auth-back-button {
  margin-top: 8px;
}

.desktop-header__right {
  justify-content: flex-end;
  gap: 8px;
}

.form-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.reflection-publish-row {
  margin-top: 16px;
}

.reflection-publish-row > button,
.focus-card__actions > button {
  flex: 1 1 0;
}

.onboarding-actions {
  margin-top: 8px;
}

.app-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}

.app-status.is-error {
  color: var(--red);
}

.incident-link {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  padding: 0;
}

.desktop-tab,
.archive-button,
.support-button,
.profile-badge,
.counter-badge,
.secondary,
.archive-sidebar__tabs button,
.context-button,
.style-card,
.gift-amount-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: none;
}

.desktop-tab {
  padding: 8px 12px;
  min-width: 0;
  white-space: nowrap;
  border-color: transparent;
  background: transparent;
}

.support-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
  padding: 10px 12px;
}

.desktop-tab.is-active,
.archive-sidebar__tabs .is-active,
.context-button.is-active,
.gift-amount-button.is-active {
  background: var(--tab-active-bg);
  border-color: var(--tab-active-bg);
  color: var(--tab-active-text);
}

button:not(.secondary):not(.desktop-tab):not(.profile-badge):not(.counter-badge):not(.archive-button):not(.support-button):not(.context-button):not(.style-card):not(.gift-amount-button):not(.incident-link) {
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: none;
}

button:not(.secondary):not(.desktop-tab):not(.profile-badge):not(.counter-badge):not(.archive-button):not(.support-button):not(.context-button):not(.style-card):not(.gift-amount-button):not(.incident-link):hover {
  background: var(--accent-strong);
}

button:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.18);
}

button:not(.secondary):not(.desktop-tab):not(.profile-badge):not(.counter-badge):not(.archive-button):not(.support-button):not(.context-button):not(.style-card):not(.gift-amount-button):not(.incident-link):disabled,
button:not(.secondary):not(.desktop-tab):not(.profile-badge):not(.counter-badge):not(.archive-button):not(.support-button):not(.context-button):not(.style-card):not(.gift-amount-button):not(.incident-link)[disabled] {
  background: var(--accent);
}

button:disabled:hover,
button[disabled]:hover {
  transform: none;
}

.secondary {
  color: var(--ink);
}

.secondary.danger {
  border-color: #d18677;
  color: #8c2e1d;
  background: #f8e3df;
}

.profile-badge {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.counter-badge {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.counter-badge__main {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-icon-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.hero,
.auth-panel {
  max-width: 560px;
  margin: 56px auto 0;
}

.hero {
  display: grid;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  justify-content: center;
}

.brand-lockup--compact {
  margin-bottom: 18px;
}

.brand-lockup__logo {
  width: min(220px, 48vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(12, 16, 24, 0.08));
}

.hero h1,
.page-title,
.section-heading,
.section-title,
.archive-section__title {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.95;
}

.welcome-hero {
  max-width: 1040px;
  margin-top: 28px;
  padding: 32px;
  gap: 24px;
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.welcome-header > div {
  min-width: 0;
}

.welcome-header p {
  margin: 10px 0 0;
}

.welcome-hero .brand-lockup__logo {
  width: 72px;
  flex: 0 0 auto;
  filter: none;
}

.welcome-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  text-wrap: balance;
}

.welcome-hero p {
  line-height: 1.5;
}

.welcome-hero .status-line:empty {
  display: none;
}

.welcome-hero .hero-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.welcome-hero .hero-actions > a:hover {
  opacity: 0.9;
}

.promo-videos {
  min-width: 0;
}

.promo-videos__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.promo-videos__track::-webkit-scrollbar {
  display: none;
}

.promo-videos__slide {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.promo-videos__slide video,
.promo-videos__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: contain;
}

.promo-videos__slide video {
  background: #111;
}

.promo-videos__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.promo-videos__placeholder > span {
  font-size: 36px;
  color: var(--muted);
}

.promo-videos__placeholder h2 {
  margin: 12px 0 0;
  font-size: clamp(20px, 3vw, 28px);
}

.promo-videos__placeholder p {
  margin: 8px 0 0;
  color: var(--muted);
}

.promo-videos__navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.promo-videos__navigation button {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 640px) {
  .welcome-header {
    gap: 12px;
  }

  .welcome-hero .brand-lockup__logo {
    width: 48px;
  }

  .auth-methods {
    gap: 8px;
  }

  .auth-label-full {
    display: none;
  }

  .auth-label-short {
    display: inline;
  }

  .promo-videos__slide video,
  .promo-videos__placeholder {
    aspect-ratio: 16 / 10;
  }
}

.focus-steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding-left: 24px;
}

.focus-steps h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.focus-steps p {
  margin: 4px 0 0;
  color: var(--muted);
}

.welcome-footer {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.welcome-footer nav {
  display: flex;
  gap: 20px;
}

.page-title {
  font-size: 44px;
  line-height: 1;
}

.section-heading,
.section-title,
.archive-section__title {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 700;
}

.helper-text,
.helper-line,
.meta,
.task-row__meta,
.voice-card__meta,
.focus-card__meta,
.metric-card__label,
.reflection-card__label,
.gift-summary__sender,
.empty-state,
.account-line span,
.app-status {
  color: var(--muted);
}

.onboarding-header,
.onboarding-form,
.form-stack {
  display: grid;
  gap: 12px;
}

.onboarding-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.task-action-row {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.inline-field input {
  flex: 1 1 auto;
}

.focus-card {
  display: grid;
  gap: 16px;
}

.focus-card--compact {
  cursor: pointer;
  gap: 6px;
  padding-block: 12px;
}

.intent-recap-card {
  display: grid;
  gap: 6px;
}

.intent-recap-card .section-heading {
  font-size: 18px;
  line-height: 1.2;
}

.intent-recap-card__header,
.intent-recap-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intent-recap-card__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.recap-focus-options {
  justify-content: flex-start;
  gap: 6px;
}

.recap-focus-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-help-banner {
  display: grid;
  gap: 12px;
}

.entry-help-banner__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.entry-help-banner__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-help-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-muted);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.entry-help-banner__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.focus-card__body {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.focus-card__topline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.focus-card__topline .focus-card__body {
  flex: 1;
}

.focus-card__edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-muted);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted-strong);
}

.focus-card--compact .focus-card__body {
  font-size: 16px;
  line-height: 1.35;
}

.focus-card__hint {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.focus-card__hint--error {
  color: var(--red);
}

.focus-card--compact .focus-card__hint {
  font-size: 13px;
}

.focus-card__input {
  font-size: 15px;
  line-height: 1.45;
}

.focus-card__footer,
.focus-card__duration-row,
.reflection-draft-card__header,
.reflection-comments-row,
.reflection-card__header,
.voice-card__header,
.stats-modal-header,
.account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-actions--stack {
  display: grid;
  gap: 12px;
}

.account-actions {
  display: grid;
  gap: 12px;
}

.account-actions__stack {
  display: grid;
  gap: 12px;
}

.account-actions__stack > * {
  width: 100%;
}

.account-actions__stack--danger {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.account-actions__stack--admin {
  padding-top: 4px;
}

.account-actions__admin {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.plus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.plus-hero-card {
  display: grid;
  gap: 16px;
}

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

.plus-plan-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.plus-plan-card--muted {
  background: rgba(247, 247, 249, 0.92);
}

.plus-plan-card--featured {
  border-color: rgba(10, 132, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.plus-plan-value {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plus-status-line,
.plus-feature-list {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.plus-fine-print {
  margin-top: 16px;
}

.support-shell {
  width: min(calc(100vw - 48px), 960px);
  display: grid;
  gap: 16px;
}

.support-hero {
  display: grid;
  gap: 14px;
}

.support-hero__copy {
  max-width: 62ch;
}

.support-section {
  display: grid;
  gap: 16px;
}

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

.support-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.support-card__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.support-contact {
  display: grid;
  gap: 12px;
}

.support-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  display: grid;
  gap: 8px;
}

.support-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-footer {
  margin: 0;
}

.focus-card__footer {
  align-items: flex-end;
  width: 100%;
}

.focus-card__footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.focus-card--compact .focus-card__footer-copy {
  font-size: 12px;
}

.launcher-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.launcher-row__group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.launcher-row__group--trailing {
  margin-left: auto;
}

.task-filter-button {
  min-height: 36px;
  min-width: 68px;
  padding-inline: 12px;
  border-radius: 18px;
  font-size: 13px;
  flex: 0 0 auto;
}

.task-filter-button.is-active {
  color: var(--green-strong);
  border-color: transparent;
  background: var(--accent-soft);
  box-shadow: none;
}

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

.task-list,
.archive-task-list,
.reflection-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.friends-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.friends-panel-stack {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.friends-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.friends-invite-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.friends-list-card,
.friends-chat-card {
  min-height: 520px;
}

.friends-list {
  display: grid;
  margin: -6px -8px 0;
}

.friend-list-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 8px 12px 14px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 0 transparent;
  cursor: pointer;
}

.friend-list-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  flex: 0 0 auto;
}

.friend-list-item:first-child {
  border-top: 1px solid var(--line);
}

.friend-list-item:hover {
  background: rgba(0, 0, 0, 0.018);
}

.friend-list-item.is-active {
  background: rgba(0, 0, 0, 0.022);
  box-shadow: inset 3px 0 0 var(--ink);
}

.friend-list-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: -2px;
}

.friends-chat-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.friends-chat-card__header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.friends-chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 16px 0;
}

.friend-message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.friend-message.is-mine {
  justify-self: end;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 14%, transparent);
}

.friend-message__sender {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.friend-message__body {
  white-space: pre-wrap;
  line-height: 1.5;
}

.friends-chat-composer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.friends-chat-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.friends-chat-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 18px 20px;
  border-left: 4px solid transparent;
}

.task-row.is-done {
  border-left-color: var(--green);
}

.task-row.is-overdue {
  border-left-color: var(--red);
}

.task-row__body {
  min-width: 0;
}

.task-row__summary,
.archive-task-row__summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.task-row__description,
.archive-task-row__description {
  margin: 6px 0 0;
  font-family: var(--font-reading);
  font-size: 14px;
  line-height: 1.5;
}

.task-row__description--primary,
.archive-task-row__description--primary {
  margin-top: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.task-inline-highlight {
  color: var(--green-strong);
  font-weight: 600;
}

.task-rich {
  white-space: normal;
  line-height: 1.4;
}

.task-rich__prefix {
  display: inline-block;
  margin-right: 6px;
  vertical-align: top;
}

.task-rich h1,
.task-rich h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

.task-rich p,
.task-rich ul,
.task-rich ol {
  margin: 0 0 6px;
}

.task-rich ul,
.task-rich ol {
  padding-left: 18px;
}

.task-rich li {
  margin: 0 0 4px;
}

.task-row__meta,
.archive-task-row__meta {
  margin-top: 8px;
  font-size: 13px;
}

.task-row__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.task-row__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.task-row__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.task-row__actions > button:last-child,
.archive-task-row__repeat {
  white-space: nowrap;
}

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

.metric-card {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.metric-card__value {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.reflection-editor {
  min-height: 220px;
}

.reflection-editor--wizard {
  min-height: min(52vh, 520px);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.style-grid--modal {
  margin-top: 0;
}

.style-card {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  text-align: left;
  padding: 14px;
}

.style-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.style-card__title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.style-card__badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.style-card__hint {
  color: var(--muted);
  font-size: 13px;
}

.desktop-preview-card {
  margin-top: 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

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

.reflection-card,
.voice-card {
  display: grid;
  gap: 16px;
}

.reflection-card--focused-plain {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.reflection-card--clickable,
.reflection-draft-card--clickable {
  cursor: pointer;
}

.reflection-empty-copy {
  color: var(--muted);
}

.voice-card__footer {
  display: flex;
  justify-content: flex-end;
}

.reflection-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

.reflection-tag-panel-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.reflection-tag-panel-stack--card {
  margin-top: 6px;
}

.reflection-tag-panel {
  display: grid;
  gap: 8px;
  width: 100%;
}

.reflection-tag-row--footer {
  flex: 1 1 auto;
  margin-top: 0;
  width: auto;
}

.reflection-tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f0e1d0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.reflection-tag-chip--emotion {
  background: #f4e1d8;
}

.reflection-tag-chip--theme {
  background: #ece2d2;
}

.reflection-tag-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reflection-tag-chip--button {
  border: 0;
  cursor: pointer;
}

.reflection-tag-chip--remove {
  min-width: 24px;
  justify-content: center;
  padding: 6px 8px;
}

.voice-reply-list {
  display: grid;
  gap: 8px;
}

.voice-reply-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--line);
}

.voice-reply-card__author {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.voice-reply-card__text {
  line-height: 1.5;
}

.voice-reply-composer {
  display: grid;
  gap: 10px;
}

.voice-reply-input {
  min-height: 96px;
  resize: vertical;
}

.voice-reply-composer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.voice-comment-button {
  min-width: 110px;
}

.voice-comment-disabled {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.voice-card__copy {
  min-width: 0;
}

.reflection-card__actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.reflection-card__actions--end {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.reflection-card__footer-row {
  align-items: center;
}

.reflection-card__edit-button {
  min-width: 96px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
}

.reflection-card__visibility-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.reflection-card__footer-row {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reflection-card__edit-button {
  flex: 0 0 auto;
}

.gift-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--line);
}

.gift-summary__total {
  font-weight: 700;
}

.gift-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gift-summary__sender {
  line-height: 1.4;
}

.archive-section {
  display: grid;
  gap: 12px;
}

.archive-section + .archive-section {
  margin-top: 12px;
}

.voice-card--clickable {
  cursor: pointer;
}

.archive-sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.archive-sidebar__tabs {
  display: grid;
  gap: 12px;
}

.archive-search {
  border-radius: 18px;
}

.archive-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-left: 4px solid var(--green);
  padding-left: 16px;
}

.archive-task-row__repeat {
  align-self: center;
}

.voice-card__header {
  align-items: flex-start;
}

.archive-section__title {
  font-size: 20px;
}

.archive-task-list,
.reflection-list {
  margin-top: 12px;
}

.empty-state {
  padding: 14px 0;
  text-align: center;
}

.account-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile-layout .settings-label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-layout .account-line > input {
  width: min(60%, 320px);
  text-align: right;
}

.profile-layout .account-line > strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-layout .account-line .inline-field {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-line:last-child {
  border-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.modal-card {
  width: min(100%, 760px);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.modal-card--gift {
  width: min(100%, 560px);
}

.modal-card--stats {
  width: min(100%, 720px);
}

.modal-card--export {
  width: min(100%, 420px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  display: grid;
  gap: 24px;
  padding: 24px;
}

.modal-card--task {
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
}

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

.album-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.album-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.album-fields { display: grid; gap: 16px; }
.album-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.album-fields input { width: 100%; min-width: 0; min-height: 44px; }
.album-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

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

.album-formats .context-button {
  min-height: 48px;
  padding: 10px 6px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.album-generate {
  width: 100%;
  min-height: 48px;
}

.modal-card--style {
  display: grid;
  gap: 20px;
  width: min(96vw, 980px);
  max-height: 88vh;
  overflow: auto;
}

.modal-card--focused-reflection {
  display: grid;
  gap: 20px;
  width: min(96vw, 980px);
  max-height: 88vh;
  overflow: auto;
}

.modal-card--dictation {
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
}

.modal-card--reflection-wizard {
  display: grid;
  gap: 24px;
  width: min(calc(100vw - 48px), 1040px);
  min-height: min(820px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.reflection-wizard__topbar,
.reflection-wizard__top-actions,
.reflection-wizard__action-row,
.reflection-wizard__bottom,
.reflection-wizard__bottom--split,
.reflection-wizard__share-row,
.reflection-wizard__share-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reflection-wizard__topbar {
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.reflection-wizard__title,
.reflection-wizard__top-spacer {
  flex: 1 1 0;
}

.reflection-wizard__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.reflection-wizard__body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.reflection-style-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.reflection-style-loading__spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(47, 93, 80, 0.18);
  border-top-color: #2f5d50;
  animation: reflection-spin 0.8s linear infinite;
}

.reflection-style-fun {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.reflection-style-fun__emoji-row {
  display: flex;
  gap: 12px;
}

.reflection-style-fun__emoji-row span {
  font-size: 30px;
  opacity: 0.35;
  animation: reflection-fun-bounce 1.1s ease-in-out infinite;
}

.reflection-style-fun__emoji-row span:nth-child(2) {
  animation-delay: 0.12s;
}

.reflection-style-fun__emoji-row span:nth-child(3) {
  animation-delay: 0.24s;
}

.reflection-style-fun__emoji-row span:nth-child(4) {
  animation-delay: 0.36s;
}

.reflection-style-fun__title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.reflection-style-fun__hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 30rem;
}

@keyframes reflection-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes reflection-fun-bounce {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.92) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.16) rotate(-6deg);
  }
}

.reflection-wizard__bottom {
  justify-content: flex-end;
}

.reflection-wizard__bottom--split {
  justify-content: space-between;
}

.reflection-wizard__standalone,
.reflection-wizard__delete {
  justify-self: start;
}

.reflection-wizard__preview,
.reflection-wizard__share-row,
.style-preview-panel {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.reflection-wizard__preview {
  min-height: 160px;
  display: grid;
  align-content: center;
}

.reflection-wizard__preview-copy {
  color: var(--muted);
  text-align: center;
}

.reflection-wizard__share-row {
  justify-content: space-between;
}

.reflection-wizard__share-row--stacked {
  display: grid;
  justify-content: stretch;
}

.reflection-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.reflection-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.reflection-wizard__share-actions {
  flex-direction: column;
  align-items: stretch;
}

.reflection-wizard__share-actions > button {
  width: 100%;
}

.reflection-upload-input {
  display: none;
}

.reflection-image-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reflection-image-suggestion {
  display: grid;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.reflection-image-suggestion img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.reflection-image-suggestion span {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.reflection-image-suggestion.is-active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.reflection-editor--wizard {
  min-height: clamp(340px, 56vh, 600px);
  width: 100%;
}

.modal-card--style {
  width: min(calc(100vw - 72px), 980px);
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.style-preview-panel {
  display: grid;
  gap: 14px;
}

.task-editor__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-editor__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.task-editor__bottom--split {
  justify-content: space-between;
}

.task-editor__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.task-summary-input {
  min-height: 50px;
}

.context-row {
  display: grid;
  gap: 10px;
}

.task-editor-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

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

.task-editor-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.task-composer-date-row--pair {
  align-items: stretch;
}

.task-editor-field {
  display: grid;
  gap: 6px;
}

.task-editor-field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.task-editor-field__control--split {
  display: grid;
  grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.task-editor-field__placeholder {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-muted) 94%, transparent);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.task-action-select--compact {
  min-height: 46px;
  padding-block: 10px;
}

.task-reminder-toggle {
  min-height: 46px;
  min-width: 58px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-reminder-toggle.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.task-composer-textarea {
  min-height: 180px;
}

.task-delete-button {
  justify-self: start;
}

.dictation-status {
  color: var(--muted);
  font-size: 14px;
}

.dictation-input {
  min-height: 180px;
}

.dictation-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gift-amount-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gift-message-input {
  min-height: 120px;
  margin: 20px 0;
}

.modal-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.stats-modal-close {
  min-width: 44px;
  padding-inline: 0;
}

.chirp-rich {
  white-space: pre-wrap;
  font-family: var(--font-reading);
  line-height: 1.72;
}

.chirp-rich__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 0 0 12px;
  object-fit: cover;
}

.chirp-rich h1,
.chirp-rich h2 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.chirp-rich ul,
.chirp-rich ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.chirp-rich li {
  margin: 0 0 8px;
}

.chirp-rich a {
  color: #295ea8;
  text-decoration: underline;
}

.chirp-rich p:last-child {
  margin-bottom: 0;
}

.rich-plum {
  color: #7d5bd6;
}

.rich-rose {
  color: #cc4b7a;
}

.rich-gold {
  color: #b97900;
}

.rich-sky {
  color: #0077ed;
}

.rich-mint {
  color: #008560;
}

.apple-button {
  background: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.mac-hint {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
}

.status-line {
  min-height: 18px;
  color: var(--muted);
}

.status-line.error {
  color: var(--red);
}

@media (max-width: 1180px) {
  .day-layout,
  .night-layout,
  .profile-layout,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-shell,
  .shell {
    width: min(calc(100vw - 24px), var(--shell-max));
    padding: 12px 0;
  }

  .desktop-header {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .desktop-header__right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .desktop-header__left {
    flex-direction: column;
    align-items: stretch;
  }

  .desktop-header__logo {
    height: 38px;
    align-self: flex-start;
  }

  .desktop-tabs {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 22px;
  }

  .desktop-tab {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .task-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .task-row__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .friends-layout {
    grid-template-columns: 1fr;
  }

  .friends-invite-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .friends-list-card,
  .friends-chat-card {
    min-height: 0;
  }

  .task-row__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .task-composer-row,
  .task-action-row,
  .modal-metric-row,
  .voice-grid,
  .style-grid,
  .onboarding-form,
  .plus-layout,
  .plus-plan-grid,
  .support-grid,
  .stats-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

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

  .launcher-button {
    flex: 1 1 auto;
    max-width: none;
  }

  .dictation-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .shell,
  .desktop-shell,
  .support-shell {
    width: calc(100vw - 40px);
  }

  .desktop-card,
  .voice-card,
  .reflection-card,
  .archive-task-row,
  .modal-card,
  .hero,
  .auth-panel {
    padding: 16px;
  }

  .desktop-header {
    padding: 12px;
    gap: 10px;
  }

  .desktop-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .desktop-tab {
    display: inline-flex;
    justify-content: center;
  }

  .task-editor-top-row,
  .task-composer-controls,
  .task-composer-date-row,
  .task-editor-field__control--split,
  .context-toggle,
  .archive-task-row,
  .task-row__actions,
  .task-row__secondary-actions,
  .reflection-wizard__action-row,
  .reflection-wizard__bottom,
  .reflection-wizard__bottom--split,
  .reflection-wizard__share-row,
  .reflection-wizard__share-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .task-editor-icon-row {
    justify-content: flex-start;
  }

  .task-row__actions > button:last-child,
  .archive-task-row__repeat {
    white-space: normal;
  }

  .friends-chat-thread {
    padding: 12px 0;
  }

  .friend-message {
    max-width: 100%;
  }

  .modal-backdrop {
    padding: 8px;
    align-items: end;
  }

  .modal-card,
  .modal-card--gift,
  .modal-card--stats,
  .modal-card--task,
  .modal-card--dictation,
  .modal-card--style,
  .modal-card--reflection-wizard {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .modal-card--reflection-wizard {
    min-height: auto;
    padding: 16px;
    gap: 16px;
  }

  .reflection-wizard__topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .reflection-wizard__title {
    font-size: 16px;
  }

  .reflection-wizard__preview,
  .reflection-wizard__share-row,
  .style-preview-panel {
    padding: 14px;
  }

  .reflection-editor--wizard {
    min-height: min(42vh, 320px);
  }

  .reflection-image-suggestions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .global-notification {
    flex-direction: column;
    gap: 10px;
  }

  .global-notification__dismiss {
    align-self: flex-end;
  }

  .profile-badge {
    max-width: 180px;
  }

  .desktop-tabs {
    grid-template-columns: 1fr;
  }

  .gift-amount-row {
    grid-template-columns: 1fr;
  }
}

.reflection-style-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.reflection-style-option input {
  appearance: none;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbbba8;
  cursor: pointer;
}

.reflection-style-option input::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px;
  border-radius: 50%;
  background: #fff9f0;
  transition: transform 120ms ease;
}

.reflection-style-option input:checked {
  background: #2f5d50;
}

.reflection-style-option input:checked::before {
  transform: translateX(18px);
}

.reflection-style-option input:disabled {
  opacity: 0.5;
  cursor: default;
}

.app-downloads {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.app-downloads p {
  margin: 0;
  color: var(--muted);
}

.app-downloads__stores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 11px;
}

.app-downloads__badge {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.app-downloads__badge img {
  display: block;
  width: auto;
  height: 44px;
}

.app-downloads__badge:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  border-radius: 8px;
}

.ai-allowance-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
}

.ai-allowance-card {
  width: 100%;
  max-width: 580px;
  display: grid;
  gap: 18px;
  box-shadow: none;
}

.ai-allowance-card > button:first-child {
  justify-self: end;
}

.ai-allowance-card h1,
.ai-allowance-card p {
  margin: 0;
}
.app-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg, #f5efe6);
}

.app-lock[hidden] { display: none; }
.app-lock__card { width: min(100%, 420px); display: grid; gap: 16px; }

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
}

.language-picker:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.language-picker:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.language-picker select {
  appearance: none;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 34px 10px 40px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.language-picker__globe,
.language-picker__chevron {
  position: absolute;
  pointer-events: none;
}

.language-picker__globe {
  left: 13px;
  width: 18px;
  height: 18px;
}

.language-picker__chevron {
  right: 12px;
  width: 14px;
  height: 14px;
}

.welcome-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.welcome-header > .language-picker,
.welcome-header > #language-picker {
  align-self: start;
  justify-self: end;
}

.auth-wizard-shell > .language-picker {
  justify-self: end;
}

@media (max-width: 640px) {
  .welcome-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .welcome-header > .language-picker,
  .welcome-header > #language-picker {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .welcome-header > .brand-lockup__logo {
    grid-column: 1;
    grid-row: 2;
  }

  .welcome-header__copy {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Today at a glance */
.modal-card--stats { max-height: calc(100dvh - 48px); overflow-y: auto; }
.glance-section { margin-top: 24px; }
.glance-section h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.glance-level { display: flex; align-items: center; gap: 20px; padding: 20px; margin-top: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.glance-level img { object-fit: contain; width: 128px; height: 128px; }
.glance-level h3 { margin: 0 0 8px; }
.glance-level p { margin: 8px 0; }
.glance-level.is-current { border-color: #668b72; }
.glance-level.is-locked img { opacity: .55; }
.glance-level-value { font-size: 24px; }
.glance-level-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.glance-level-dot { padding: 0; min-height: 24px; width: 24px; border: 0; background: transparent; display: grid; place-items: center; }
.glance-level-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b5a38f; }
.glance-level-dot.is-active::after { background: #2f6b50; width: 10px; height: 10px; }
.glance-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.glance-tag { display: inline-flex; gap: 8px; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.glance-tag--emotion { background: color-mix(in srgb, #8da6c0 18%, var(--surface)); }
.glance-points-summary { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; font-weight: 700; }
.glance-gain { color: #2f6b50; }
.glance-loss { color: #ac4d38; }
.glance-chart { display: flex; margin-bottom: 16px; }
.glance-chart-day { flex: 1; min-width: 0; text-align: center; }
.glance-chart-positive, .glance-chart-negative { display: flex; flex-direction: column; align-items: center; height: 94px; font-size: 11px; }
.glance-chart-positive { justify-content: flex-end; border-bottom: 1px solid #b5a38f; }
.glance-chart span { margin: 3px 0; }
.glance-bar { width: 50%; max-width: 28px; background: #2f6b50; border-radius: 3px; flex-shrink: 0; }
.glance-bar--loss { background: #ac4d38; }
.glance-chart-label { font-size: 11px; }
@media (max-width: 520px) { .glance-level { gap: 12px; padding: 12px; } .glance-level img { width: 80px; height: 80px; } }

.glance-range { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.glance-range button.is-active { background: #2f5d50; color: #fff; border-color: #2f5d50; }
.glance-chart--compact .glance-chart-day { position: relative; padding-bottom: 16px; }
.glance-chart--compact .glance-chart-label { position: absolute; left: 0; bottom: 0; white-space: nowrap; }

.reflection-word-count {
  margin: 8px 0 0;
  text-align: right;
  font-size: 13px;
  color: var(--muted, #786b60);
}
.reflection-word-count.is-near-limit { color: #986111; }
.reflection-word-count.is-over-limit { color: #ad493c; }
#reflection-word-warning:empty { display: none; }
