:root {
  color-scheme: light;
  --bg: #f9f7f5;
  --paper: #fffdfb;
  --cream: #fff7f1;
  --rose: #a65971;
  --rose-dark: #80445a;
  --rose-light: #f7e6e9;
  --peach: #f9e8dc;
  --ink: #3f3335;
  --muted: #918489;
  --line: #eae1dd;
  --shadow: 0 9px 35px rgba(86, 54, 60, 0.05);
  --radius: 23px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 310px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #c98aa2;
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 256px;
  position: sticky;
  top: 0;
  min-width: 256px;
  height: 100vh;
  background: #fffaf7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 19px 20px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 37px;
}
.brand-mark {
  display: flex;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  color: white;
  background: var(--rose);
  font-size: 27px;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
}
.brand-text strong,
.mobile-brand {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -1.2px;
  font-weight: 700;
}
.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.5px;
}
.brand-period {
  color: #d6989e;
}
.sidebar-section-title,
.eyebrow {
  color: #b19899;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 760;
}
.sidebar-section-title {
  margin: 10px 13px 14px;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #81777a;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  color: var(--rose-dark);
  background: #f7e9eb;
}
.nav-icon {
  font-size: 24px;
  font-family: Georgia, serif;
  line-height: 18px;
  width: 23px;
  text-align: center;
  font-weight: 400;
}
.sidebar-note {
  margin: auto 4px 22px;
  padding: 22px 17px;
  background: #fbefeb;
  border-radius: 19px;
}
.sidebar-note p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  margin: 13px 0 7px;
}
.sidebar-note small {
  color: var(--muted);
  font-size: 10px;
}
.small-flower {
  color: #b77780;
  font-size: 28px;
}
.profile-link {
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 9px 4px;
  width: 100%;
}
.profile-link strong {
  display: block;
  font-size: 13px;
}
.profile-link small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eacdc8;
  color: #804b54;
  font-weight: 800;
  flex-shrink: 0;
}
.chevron {
  margin-left: auto;
  font-size: 24px;
  color: #a89692;
}
.page-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 86px;
  padding: 0 clamp(18px, 4vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.76);
}
.topbar-date {
  font-size: 12px;
  letter-spacing: 0.25px;
  font-weight: 650;
  color: #a29395;
}
.topbar-profile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  font-size: 12px;
  color: #746568;
}
.topbar-profile .profile-avatar {
  width: 31px;
  height: 31px;
}
.mobile-brand {
  display: none;
}
.heart-small {
  color: var(--rose);
}
.mode-banner {
  margin: 20px clamp(18px, 4vw, 52px) 0;
  border: 1px solid #f0ded7;
  border-radius: 13px;
  background: #fff9f3;
  color: #896b69;
  font-size: 12px;
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  line-height: 1.5;
}
.mode-banner strong {
  color: var(--rose-dark);
}
main {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 52px) 76px;
  flex: 1;
}
.page-footer {
  text-align: center;
  padding: 25px 16px;
  color: #b6aaa9;
  font-size: 11px;
}
.page-footer span {
  color: #bc758b;
}
.view-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}
.view-intro h1,
.hero-title,
.section-heading h2,
.dialog-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.view-intro h1 {
  font-size: clamp(30px, 3.1vw, 41px);
  line-height: 1.1;
  margin: 0 0 9px;
}
.view-intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 540px;
  line-height: 1.6;
}
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 750;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--rose);
  color: white;
}
.btn-primary:hover {
  background: var(--rose-dark);
}
.btn-white {
  background: white;
  color: var(--rose-dark);
}
.btn-soft {
  color: #8a4b60;
  background: var(--rose-light);
}
.btn-quiet {
  background: #f5eee9;
  color: #806d71;
}
.btn-line {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.btn-small {
  padding: 8px 12px;
  min-height: 34px;
  font-size: 11px;
  border-radius: 9px;
}
.grid {
  display: grid;
  gap: 19px;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1.58fr) minmax(270px, 1fr);
  align-items: start;
}
.stack {
  display: grid;
  gap: 19px;
}
.paper-card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid #eee8e4;
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero {
  background: linear-gradient(118deg, #a25a70 0%, #b96e7e 50%, #c68c8f 100%);
  border-radius: 25px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 248px;
  padding: 30px 31px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -53px;
  top: -54px;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.045),
    0 0 0 76px rgba(255, 255, 255, 0.035);
  z-index: -1;
}
.hero:after {
  content: "\2665";
  position: absolute;
  font-size: 196px;
  right: 75px;
  top: 15px;
  opacity: 0.08;
  transform: rotate(-19deg);
  z-index: -1;
}
.hero-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  opacity: 0.85;
}
.hero-title {
  font-size: clamp(33px, 3.5vw, 47px);
  line-height: 1.07;
  max-width: 385px;
  margin: 12px 0 9px;
}
.hero-desc {
  font-size: 12px;
  max-width: 380px;
  opacity: 0.85;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 21px;
}
.hero-tag {
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  color: white;
  border-radius: 50px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 23px;
  margin: 0;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.text-link {
  border: 0;
  background: none;
  color: var(--rose);
  font-size: 12px;
  font-weight: 740;
  padding: 3px;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}
.mood-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.mood-option {
  border: 1px solid #f1e8e3;
  background: #fffaf7;
  border-radius: 13px;
  padding: 11px 2px 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #a19495;
  font-size: 10px;
}
.mood-option span {
  font-size: 25px;
  line-height: 1.1;
  filter: saturate(0.82);
}
.mood-option:hover,
.mood-option.selected {
  background: #fcebee;
  border-color: #cf9ead;
  color: var(--rose-dark);
}
.mood-note {
  margin: 14px 0 0;
  color: #a8989b;
  font-size: 11px;
  line-height: 1.6;
}
.couple-list {
  display: grid;
  gap: 13px;
}
.person-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 59px;
}
.person-avatar {
  width: 45px;
  height: 45px;
  border-radius: 16px;
  background: #f2dfe4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #985a6e;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 17px;
}
.person-avatar.partner {
  background: #f6e6d9;
  color: #ac8160;
}
.person-line strong {
  display: block;
  font-size: 13px;
}
.person-line small {
  font-size: 11px;
  color: #a09496;
  display: block;
  margin-top: 4px;
}
.person-line .person-right {
  margin-left: auto;
  font-size: 23px;
}
.mini-divider {
  height: 1px;
  background: var(--line);
}
.daily-tip {
  background: #f9f0eb;
  border: 0;
  position: relative;
  overflow: hidden;
}
.daily-tip:after {
  content: "\273f";
  font-family: Georgia, serif;
  position: absolute;
  right: -6px;
  bottom: -60px;
  font-size: 220px;
  color: #eed9d3;
  opacity: 0.56;
  z-index: 0;
}
.daily-tip > * {
  position: relative;
  z-index: 1;
}
.tip-badge {
  display: inline-flex;
  gap: 8px;
  font-weight: 780;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a16c75;
}
.tip-text {
  font: italic 20px/1.33 var(--serif);
  margin: 12px 0 16px;
  max-width: 255px;
}
.tip-foot {
  font-size: 10px;
  color: #b09293;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.stat-pill strong {
  font-size: 23px;
  font-family: var(--serif);
  font-weight: 500;
}
.stat-pill small {
  font-size: 10px;
  color: var(--muted);
}
.empty-state {
  padding: 26px;
  text-align: center;
  background: #fffaf6;
  border: 1px dashed #e4d5cf;
  border-radius: 14px;
}
.empty-state .empty-icon {
  font: 36px var(--serif);
  color: #c88f9a;
  margin: 0 0 10px;
}
.empty-state strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 16px;
}
.timeline-list {
  display: grid;
  gap: 10px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
}
.timeline-emoji {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  background: #f9efed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.timeline-body {
  flex: 1;
  min-width: 0;
}
.timeline-body strong {
  font-size: 12px;
}
.timeline-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.timeline-body small {
  display: block;
  margin-top: 4px;
  color: #b4a7a7;
  font-size: 10px;
}
.timeline-image {
  margin-top: 9px;
  max-height: 190px;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.timeline-actions {
  display: flex;
  gap: 5px;
}
.mini-action {
  border: 0;
  background: transparent;
  padding: 5px;
  color: #b09d9e;
  font-size: 11px;
}
.mini-action:hover {
  color: #973a5f;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.type-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
  color: #8f7f82;
  font-size: 11px;
  font-weight: 650;
}
.filter-chip.active {
  color: white;
  background: var(--rose);
  border-color: var(--rose);
}
.large-empty {
  padding: 62px 20px;
}
.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 18px;
}
.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.calendar-top h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  text-transform: capitalize;
}
.calendar-top button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--muted);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.cal-label {
  text-align: center;
  color: #b5a9ab;
  font-size: 10px;
  padding: 8px 0;
}
.cal-cell {
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fbf8f6;
  min-height: 76px;
  padding: 9px 6px;
  color: #76696d;
  text-align: left;
  position: relative;
  font-size: 12px;
}
.cal-cell:hover {
  border-color: #e7beca;
}
.cal-cell.outside {
  opacity: 0.22;
}
.cal-cell.today {
  border-color: #b9768b;
  background: #fff5f6;
}
.cal-cell.selected {
  background: #f4e0e5;
  color: #793951;
  border-color: #c58a9d;
}
.cal-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  position: absolute;
  left: 8px;
  bottom: 8px;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf7a8e;
}
.cal-dot.meal {
  background: #c6a26f;
}
.cal-dot.event {
  background: #87a6a5;
}
.cal-dot.memory {
  background: #bd94ba;
}
.cal-side-date {
  font-family: var(--serif);
  font-size: 25px;
  margin: 0 0 13px;
  text-transform: capitalize;
}
.challenge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.challenge-card {
  background: white;
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 20px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
}
.challenge-icon {
  font-size: 30px;
}
.challenge-card h3 {
  font-size: 15px;
  margin: 13px 0 8px;
}
.challenge-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.challenge-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.progress-dot {
  width: 9px;
  height: 9px;
  display: inline-flex;
  border-radius: 50%;
  background: #e8d9d6;
}
.progress-dot.done {
  background: #75a58c;
}
.tag {
  display: inline-flex;
  align-items: center;
  background: #f8e9ea;
  color: #985e70;
  font-size: 10px;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 50px;
}
.tag.green {
  background: #e5f1ea;
  color: #538365;
}
.tag.neutral {
  background: #f3eeeb;
  color: #928187;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.memory-tile {
  position: relative;
  overflow: hidden;
  background: #f8e7e3;
  border-radius: 17px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.memory-tile img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.memory-tile .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(40, 17, 22, 0.7));
  color: white;
  padding: 26px 11px 11px;
  font-size: 11px;
}
.memory-tile .photo-delete {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.87);
  color: var(--rose-dark);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-list {
  display: grid;
  gap: 9px;
}
.music-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.music-cover {
  width: 51px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, #c37a8e, #e9bbbd);
  border-radius: 10px;
  color: white;
  font-size: 26px;
}
.music-card strong {
  font-size: 13px;
}
.music-card small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--muted);
}
.music-card .music-link {
  margin-left: auto;
  background: #f6e9ed;
  border-radius: 10px;
  border: 0;
  padding: 10px 12px;
  color: #a05469;
  font-size: 11px;
  font-weight: 750;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 17px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  color: #6c5c60;
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #e7ddda;
  background: #fffdfb;
  border-radius: 12px;
  padding: 12px 13px;
  color: #3f3436;
  outline: none;
  font-size: 13px;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #be8696;
  box-shadow: 0 0 0 3px #f7e5ea;
}
.form-hint {
  font-size: 10px;
  color: #9c8c90;
  line-height: 1.5;
  margin-top: 6px;
}
.setting-note {
  font-size: 12px;
  line-height: 1.7;
  color: #8f7e83;
}
.setting-status {
  background: #f9eee9;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 11px;
  line-height: 1.5;
  color: #886c6d;
}
.setting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.entry-dialog {
  border: 0;
  border-radius: 22px;
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 30px 100px #2c1d2473;
  padding: 27px 27px 22px;
  width: min(96vw, 480px);
  max-height: 92vh;
  overflow-y: auto;
}
.entry-dialog::backdrop {
  background: rgba(52, 40, 45, 0.48);
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: start;
  margin-bottom: 20px;
}
.dialog-header h2 {
  font-size: 28px;
  margin: 3px 0 0;
}
.close-icon {
  border: 0;
  background: #f6eeee;
  border-radius: 50%;
  height: 31px;
  width: 31px;
  font-size: 22px;
  color: #ab8890;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.form-feedback {
  font-size: 11px;
  color: #ab4c60;
  min-height: 14px;
}
.toggle-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #65575a;
  font-size: 12px;
  padding-bottom: 12px;
}
.toggle-label input {
  accent-color: #a65d73;
}
.upload-zone {
  border: 1px dashed #c8a4a9;
  padding: 17px;
  border-radius: 12px;
  background: #fff8f7;
  display: block;
  font-size: 11px;
  color: #8f6874;
}
.upload-zone input {
  margin-top: 12px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-moods {
  margin: 7px 0 16px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #4d3a41;
  color: white;
  font-size: 12px;
  padding: 12px 19px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-nav {
  display: none;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.soft-highlight {
  background: var(--cream);
  padding: 20px;
  border-radius: 18px;
}
.clock-badge {
  background: #fff6ee;
  padding: 8px 12px;
  border-radius: 30px;
  color: #a27c72;
  font-size: 11px;
  font-weight: 700;
}
.counter-number {
  font: 48px var(--serif);
  color: var(--rose);
  letter-spacing: -2px;
  line-height: 1;
}
.counter-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.notice {
  padding: 14px 16px;
  background: #fff7ec;
  border: 1px solid #eedfc8;
  color: #95765d;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.6;
}
.type-col {
  display: grid;
  gap: 14px;
}
.mood-pill {
  font-size: 11px;
  border-radius: 100px;
  background: #f7e4e8;
  color: #93546c;
  padding: 7px 11px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.app-icon {
  font: 18px var(--serif);
  color: #a36172;
}
.muted {
  color: var(--muted);
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.small {
  font-size: 11px;
}
.select-label {
  font-size: 11px;
  font-weight: 700;
}
.only-mobile {
  display: none;
}
@media (max-width: 1120px) {
  .sidebar {
    width: 216px;
    min-width: 216px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(245px, 1fr);
  }
  .sidebar-note {
    padding: 15px;
  }
  .brand-text strong {
    font-size: 23px;
  }
  main {
    padding-left: 26px;
    padding-right: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .mode-banner {
    margin-left: 26px;
    margin-right: 26px;
  }
}
@media (max-width: 870px) {
  .sidebar {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
  .page-frame {
    min-width: 0;
  }
  .mobile-nav {
    position: fixed;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    background: #fffdfbdc;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px #50333b0a;
  }
  .mobile-tab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 650;
    color: #948489;
    border: 0;
    background: none;
    padding: 4px 2px;
  }
  .mobile-tab span {
    font:
      24px Georgia,
      serif;
    line-height: 22px;
  }
  .mobile-tab.active {
    color: #9d566e;
  }
  .page-footer {
    padding-bottom: 100px;
  }
  .toast {
    bottom: 89px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(225px, 1fr);
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .topbar-date {
    display: none;
  }
  .only-desktop {
    display: none;
  }
  .topbar-profile {
    padding: 4px;
  }
  .topbar-profile .profile-avatar {
    width: 31px;
    height: 31px;
  }
  .mobile-brand {
    font-size: 23px;
  }
  .mode-banner {
    margin: 13px 14px 0;
    font-size: 10.5px;
    padding: 10px 13px;
  }
  main {
    padding: 23px 15px 45px;
  }
  .view-intro {
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .view-intro h1 {
    font-size: 32px;
  }
  .view-intro p {
    font-size: 12px;
  }
  .view-intro .btn {
    width: auto;
  }
  .dashboard-grid,
  .two-col,
  .calendar-shell,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .paper-card {
    padding: 19px;
    border-radius: 19px;
  }
  .hero {
    min-height: 242px;
    padding: 25px 24px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero:after {
    font-size: 135px;
    right: 5px;
    top: 50px;
  }
  .hero-actions {
    margin-top: 12px;
  }
  .stat-strip {
    gap: 8px;
  }
  .stat-pill {
    padding: 13px;
    border-radius: 13px;
  }
  .stat-pill strong {
    font-size: 23px;
  }
  .stat-pill small {
    font-size: 9px;
    line-height: 1.3;
  }
  .mood-option {
    padding: 10px 0 8px;
    font-size: 9px;
  }
  .mood-option span {
    font-size: 24px;
  }
  .challenge-list {
    grid-template-columns: 1fr;
  }
  .challenge-card {
    min-height: 180px;
  }
  .cal-cell {
    min-height: 52px;
    border-radius: 9px;
    font-size: 11px;
    padding: 5px;
  }
  .cal-grid {
    gap: 4px;
  }
  .cal-dots {
    left: 5px;
    bottom: 5px;
  }
  .cal-dot {
    width: 5px;
    height: 5px;
  }
  .photo-grid {
    gap: 7px;
  }
  .memory-tile {
    border-radius: 10px;
  }
  .entry-dialog {
    padding: 22px 18px;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .only-mobile {
    display: initial;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.legal-page {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.legal-page h1 { margin: 24px 0 8px; }
.legal-page h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.legal-page p { line-height: 1.7; }
