.app-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); background: radial-gradient(circle at top right, color-mix(in srgb, var(--gold) 8%, transparent) 0, transparent 28%), var(--bg); transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard); }
.app-header { position: sticky; z-index: var(--z-sticky); top: 0; padding: calc(var(--space-3) + env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right)) var(--space-3) max(var(--space-4), env(safe-area-inset-left)); background: linear-gradient(to bottom, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.app-header__inner { width: min(100%, 860px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; }.brand__mark { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: #f3efe5; box-shadow: var(--shadow-sm); object-fit: cover; }.brand__text { font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: -.02em; }.brand__tagline { display: none; margin: 0; color: var(--text-muted); font-size: var(--text-sm); }.app-main { width: 100%; }.screen { animation: screen-enter var(--motion-slow) var(--ease-standard); }.screen__content { width: min(calc(100% - 2rem), 860px); margin-inline: auto; padding: var(--space-5) 0 var(--space-9); }.page-heading { margin-bottom: var(--space-7); }.page-heading--today { padding-top: var(--space-4); }.page-heading h1 { margin-bottom: var(--space-3); font-size: var(--text-2xl); letter-spacing: -.035em; }.page-heading__lead { margin-bottom: 0; color: var(--text-secondary); font-size: var(--text-md); }
.session-preview { display: grid; gap: var(--space-4); }.session-card { min-height: 132px; padding: var(--space-5); display: grid; grid-template-columns: 44px minmax(0,1fr); gap: var(--space-4); align-items: start; }.session-card__time { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .66rem; font-weight: var(--weight-bold); letter-spacing: .08em; }.session-card h2 { margin-bottom: var(--space-2); font-size: var(--text-lg); }.session-card p { margin-bottom: var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); }.session-card .pill { grid-column: 2; justify-self: start; }.settings-card { padding: var(--space-6); }.settings-card + .settings-card { margin-top: var(--space-4); }.settings-card h2 { margin-bottom: var(--space-2); font-size: var(--text-xl); }.settings-card__copy { margin-bottom: var(--space-6); color: var(--text-secondary); }
.today-heading { padding-top: var(--space-3); margin-bottom: var(--space-5); }.today-date-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: var(--space-2); }.today-date-nav { width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.8rem; line-height: 1; box-shadow: var(--shadow-sm); }.today-date-heading { min-width: 0; text-align: center; }.today-date-heading h1 { margin: 0; font-size: clamp(1.35rem, 5.5vw, var(--text-2xl)); letter-spacing: -.035em; }.today-date-heading p { margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: var(--text-sm); }.today-return { display: block; margin: var(--space-4) auto 0; }.session-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-bottom: var(--space-4); }.session-tab { min-width: 0; min-height: 64px; padding: var(--space-2); display: grid; align-content: center; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-secondary); text-align: center; transition: border-color var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard); }.session-tab.is-active { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }.session-tab__label { overflow: hidden; text-overflow: ellipsis; font-size: var(--text-sm); font-weight: var(--weight-bold); }.session-tab__status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }.today-session-panel { padding: var(--space-5); }.today-session-panel__top { display: grid; gap: var(--space-5); }.today-session-panel h2 { margin-bottom: var(--space-2); font-size: var(--text-xl); }.today-session-panel__top p:last-child { margin-bottom: 0; color: var(--text-secondary); }.session-completion { min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-elevated); color: var(--text); font-weight: var(--weight-semibold); }.session-completion[aria-pressed="true"] { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface-elevated)); }.session-purpose { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-elevated); border: 1px solid var(--border); }.session-purpose strong { display: block; margin-bottom: var(--space-2); }.session-purpose p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }.today-day-status { margin-top: var(--space-4); min-height: 48px; padding: var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-secondary); }.today-day-status strong { color: var(--text); font-size: var(--text-sm); text-align: right; }.today-storage-error { padding: var(--space-6); }.today-storage-error h1 { margin-bottom: var(--space-3); font-size: var(--text-2xl); }.today-storage-error p:last-child { margin: 0; color: var(--text-secondary); }.today-session-panel--journal { padding-bottom: var(--space-6); }.today-backup-nudge { margin-bottom: var(--space-4); }.today-backup-nudge h2 { margin: 0 0 var(--space-2); }.today-backup-nudge__status { margin: var(--space-3) 0 var(--space-4); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.55; }
.morning-journal { margin-top: var(--space-7); display: grid; gap: var(--space-5); }.morning-section { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-elevated); }.morning-section--theme { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface-elevated)); }.morning-section h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); letter-spacing: -.02em; }.morning-section__copy { margin: 0 0 var(--space-5); color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.55; }.journal-field + .journal-field { margin-top: var(--space-4); }.journal-input, .journal-textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); }.journal-input { min-height: 50px; padding: 0 var(--space-4); }.journal-textarea { min-height: 132px; padding: var(--space-4); resize: vertical; line-height: 1.6; }.journal-input::placeholder, .journal-textarea::placeholder { color: var(--text-muted); opacity: 1; }.journal-input:focus, .journal-textarea:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }.journal-field__help { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-xs); }.theme-chooser { display: grid; gap: var(--space-4); }.theme-select { background-color: var(--surface); }.theme-custom[hidden] { display: none; }.theme-custom { padding-top: var(--space-1); }.generated-field__top, .gratitude-field__top { margin-bottom: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }.generated-field__top .field-label, .gratitude-field__top .field-label { margin-bottom: 0; }.inspiration-button { min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--border)); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); color: var(--text); font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap; transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }.inspiration-button:hover { background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }.inspiration-button:active { transform: scale(.98); }.generated-field__control { background: color-mix(in srgb, var(--surface) 92%, var(--gold) 8%); }
.gratitude-prompt { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border-left: 3px solid color-mix(in srgb, var(--gold) 55%, var(--border)); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: color-mix(in srgb, var(--gold) 6%, var(--surface)); color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.55; }.gratitude-answer { min-height: 96px; }.priority-list, .habit-list { display: grid; gap: var(--space-3); }.priority-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--space-2); }.priority-row:first-child { padding-top: var(--space-5); }.priority-primary-badge { position: absolute; top: 0; left: 52px; color: var(--gold); font-size: .68rem; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; }.priority-row .journal-input { transition: opacity var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }.priority-row.is-complete .journal-input { opacity: .72; text-decoration: line-through; }.journal-checkbox { width: 22px; height: 22px; margin: 0 auto; accent-color: var(--accent); }
.habit-row { min-height: 56px; padding: var(--space-2) var(--space-3); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }.habit-row .journal-checkbox { margin: 0; }.habit-row__copy { min-width: 0; display: grid; gap: 2px; cursor: pointer; }.habit-row__title { overflow-wrap: anywhere; }.habit-row__copy small { color: var(--text-muted); font-size: .68rem; }.habit-row.is-complete .habit-row__title { color: var(--text-muted); text-decoration: line-through; }.habit-order { display: flex; gap: 2px; }.habit-order__button { width: 36px; min-height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-elevated); color: var(--text-secondary); }.habit-order__button:disabled { opacity: .3; }.habit-rest-day { margin: 0; padding: var(--space-4); border: 1px dashed var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: var(--text-sm); }.morning-habits-empty { padding: var(--space-4); border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); }.morning-habits-empty p { margin: 0 0 var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); }.add-habit-form { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }.add-habit-form__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto; gap: var(--space-2); }.add-habit-form__controls .button { min-width: 72px; }.habit-days { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }.habit-days[hidden] { display: none; }.habit-day { min-height: 42px; padding: var(--space-2) var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--text-xs); cursor: pointer; }.habit-day input { accent-color: var(--accent); }
@keyframes screen-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .brand__tagline { display: block; } .screen__content { padding-top: var(--space-7); } .session-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); } .session-card { min-height: 220px; grid-template-columns: 1fr; align-content: start; } .session-card .pill { grid-column: 1; margin-top: auto; } .today-session-panel { padding: var(--space-6); } .today-session-panel__top { grid-template-columns: 1fr auto; align-items: center; } .morning-section { padding: var(--space-6); } }
@media (min-width: 900px) { .app-header__inner, .screen__content { width: min(calc(100% - 4rem), 860px); } .screen__content { padding-top: var(--space-8); } }
@media (max-width: 600px) { .add-habit-form__controls { grid-template-columns: 1fr; } .add-habit-form__controls .button { width: 100%; } }
@media (max-width: 480px) { .generated-field__top, .gratitude-field__top { align-items: stretch; flex-direction: column; } .inspiration-button { width: 100%; } .habit-row { grid-template-columns: 28px minmax(0, 1fr); } .habit-order { grid-column: 2; justify-content: flex-end; } }
@media (max-width: 340px) { .screen__content { width: min(calc(100% - 1.25rem), 860px); } .session-card { padding: var(--space-4); gap: var(--space-3); } .settings-card { padding: var(--space-5) var(--space-4); } .bottom-nav { padding-inline: max(var(--space-2), env(safe-area-inset-left)); } .nav-item { padding-inline: var(--space-1); font-size: .67rem; } .today-date-row { grid-template-columns: 44px minmax(0, 1fr) 44px; } .today-date-nav { width: 44px; min-height: 44px; } .session-tab { min-height: 60px; padding-inline: var(--space-1); } .session-tab__label { font-size: .78rem; } .session-tab__status { font-size: .61rem; } .today-session-panel { padding: var(--space-4); } .morning-journal { gap: var(--space-4); } .morning-section { padding: var(--space-4); } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .inspiration-button { transition: none; } }
