:root {
  color-scheme: light;
  --primary: #a63555;
  --primary-soft: #ffd9df;
  --primary-pop: #ff7a9a;
  --secondary: #6c5e1b;
  --secondary-soft: #f6e291;
  --tertiary: #366758;
  --tertiary-soft: #b9eedb;
  --surface: #fff8f7;
  --surface-high: #ffffff;
  --surface-low: #f9f2f2;
  --ink: #1d1b1b;
  --muted: #6f5960;
  --line: #ead6db;
  --danger: #ba1a1a;
  --shadow: 0 8px 0 rgba(0, 0, 0, 0.045);
  --soft-shadow: 0 18px 48px rgba(166, 53, 85, 0.14);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --press-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

:root[data-theme="mint"] {
  --primary: #246957;
  --primary-soft: #b9eedb;
  --primary-pop: #7caf9e;
  --secondary: #7d4f22;
  --secondary-soft: #ffe1b7;
  --tertiary: #a63555;
  --tertiary-soft: #ffd9df;
  --surface: #f8fffb;
  --surface-low: #eef9f3;
  --line: #cfeadf;
}

:root[data-theme="yellow"] {
  --primary: #8a5b00;
  --primary-soft: #ffe4a8;
  --primary-pop: #f0bd4d;
  --secondary: #a63555;
  --secondary-soft: #ffd9df;
  --tertiary: #366758;
  --tertiary-soft: #b9eedb;
  --surface: #fffaf0;
  --surface-low: #fff1cd;
  --line: #efdcac;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --primary: #ffb1c0;
  --primary-soft: #58313b;
  --primary-pop: #d85d7d;
  --secondary: #f6e291;
  --secondary-soft: #4b4424;
  --tertiary: #b9eedb;
  --tertiary-soft: #244b40;
  --surface: #211a1d;
  --surface-high: #30272b;
  --surface-low: #2a2226;
  --ink: #fff8f7;
  --muted: #d8c1c8;
  --line: #4d3940;
  --shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary-soft) 78%, transparent), transparent 26rem),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--tertiary-soft) 70%, transparent), transparent 24rem),
    var(--surface);
  color: var(--ink);
  font-family: "Quicksand", "Noto Sans SC", ui-rounded, "PingFang SC", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
.photo-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 52%, white);
  outline-offset: 3px;
}

.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  padding: 24px 20px calc(168px + env(safe-area-inset-bottom));
}

.auth-shell {
  display: grid;
  place-items: center;
  padding-bottom: 24px;
}

.auth-card {
  width: 100%;
}

.auth-logo {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 34px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-tabs label {
  min-height: 44px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
}

.auth-tabs input {
  accent-color: var(--primary);
}

.dev-code {
  margin: 16px 0;
  border: 2px dashed var(--line);
  border-radius: 22px;
  padding: 14px 16px;
  background: var(--surface-low);
}

.dev-code small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dev-code strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 28px;
  letter-spacing: 0.18em;
}

.code-input {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -24px -20px 22px;
  padding: calc(18px + env(safe-area-inset-top)) 20px 14px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cloud-line {
  margin-top: 4px;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-button {
  border: 0;
  padding: 0;
  background: transparent;
  transform-origin: center;
  transition: transform 210ms var(--spring);
}

.avatar-stack-button:active {
  transform: scale(0.94);
}

.avatar-stack.large {
  justify-content: center;
  margin-bottom: 14px;
}

.avatar-stack.large .avatar {
  width: 78px;
  height: 78px;
}

.avatar-stack.large .heart {
  width: 44px;
  height: 44px;
}

.avatar {
  width: 44px;
  height: 44px;
  border: 2px solid white;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--primary-soft);
}

.avatar + .avatar {
  margin-left: -10px;
}

.heart {
  width: 34px;
  height: 34px;
  margin-inline: -4px;
  border: 2px solid white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-high);
  box-shadow: var(--shadow);
  z-index: 2;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 30px 24px;
  background: linear-gradient(135deg, var(--primary-pop), var(--primary));
  color: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-card::after {
  content: "favorite";
  position: absolute;
  right: 20px;
  top: 18px;
  font-family: "Material Symbols Outlined";
  font-size: 96px;
  opacity: 0.15;
  transform: rotate(-12deg);
}

.hero-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.9;
}

.days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.days strong {
  font-size: 64px;
  line-height: 1;
}

.days span {
  font-size: 24px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: var(--surface-high);
  box-shadow: var(--shadow);
}

.sticker {
  padding: 18px;
}

.soft-pink {
  background: color-mix(in srgb, var(--primary-soft) 72%, white);
}

.soft-yellow {
  background: color-mix(in srgb, var(--secondary-soft) 76%, white);
}

.soft-mint {
  background: color-mix(in srgb, var(--tertiary-soft) 74%, white);
}

.soft-purple {
  background: color-mix(in srgb, #d7cff8 72%, white);
}

.soft-blue {
  background: color-mix(in srgb, #cfe7ff 72%, white);
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 200ms var(--spring),
    box-shadow 200ms var(--spring),
    background-color 180ms ease,
    color 180ms ease,
    opacity 160ms ease;
}

.icon-button:active,
.secondary-button:active {
  transform: scale(0.94);
  box-shadow: var(--press-shadow);
}

.primary-button:active {
  transform: translateY(3px) scale(0.985);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--primary) 62%, black);
}

.primary-button {
  padding: 0 18px;
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--primary) 62%, black);
}

.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
  box-shadow: var(--press-shadow);
}

.secondary-button {
  padding: 0 16px;
  background: var(--secondary-soft);
  color: var(--secondary);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--secondary-soft) 62%, black);
}

.icon-button {
  width: 44px;
  background: var(--surface-high);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-action {
  min-height: 82px;
  border: 0;
  border-radius: 24px;
  padding: 10px 8px;
  background: var(--surface-high);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease;
}

.quick-action:active {
  transform: scale(0.93) rotate(-1deg);
  box-shadow: var(--press-shadow);
}

.quick-action .material-symbols-outlined {
  color: var(--primary);
  font-size: 28px;
  transition: transform 210ms var(--spring);
}

.quick-action:active .material-symbols-outlined {
  transform: scale(0.9);
}

.mood-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mood-action {
  width: 100%;
  color: var(--ink);
  text-align: left;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 260ms var(--spring),
    box-shadow 260ms var(--spring),
    border-color 180ms ease;
}

.mood-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 52%, white);
  outline-offset: 3px;
}

.mood-action:active {
  transform: translateY(5px) scale(0.92) rotate(-1deg);
  box-shadow: var(--press-shadow);
}

.mood-action.tap-rebound {
  animation: mood-rebound 220ms var(--spring);
}

.mood-action:active .mood-emoji {
  transform: scale(0.86) rotate(-4deg);
}

.mood-action:active .mood-card-hint {
  transform: translateY(2px) scale(0.94);
}

.mood-card small,
.plan-card small,
.memory-card small,
.interaction-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mood-emoji {
  font-size: 40px;
  line-height: 1;
  transition: transform 260ms var(--spring);
}

.mood-card-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.mood-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.42);
  color: color-mix(in srgb, var(--primary) 82%, var(--ink));
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 260ms var(--spring), background-color 180ms ease;
}

.mood-card-hint .material-symbols-outlined {
  font-size: 15px;
}

.mood-text {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 19px;
  font-weight: 900;
}

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

.plan-card,
.memory-card,
.interaction-card {
  padding: 16px;
}

.plan-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.check {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.plan-card.is-done {
  opacity: 0.62;
}

.plan-card.is-done h3 {
  text-decoration: line-through;
}

.plan-status-section + .plan-status-section {
  margin-top: 22px;
}

.completed-list .plan-card {
  opacity: 0.72;
}

.plan-library {
  overflow: hidden;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 20px;
  background: var(--surface-low);
}

.segmented-control button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 1px;
  font-weight: 900;
  transform-origin: center;
  transition:
    transform 190ms var(--spring),
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.segmented-control button small {
  color: inherit;
  font-size: 10px;
  opacity: 0.78;
}

.segmented-control button.is-active {
  background: var(--surface-high);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.segmented-control button:active {
  transform: scale(0.94);
}

.plan-search-row {
  margin-bottom: 14px;
}

.plan-stack {
  display: grid;
}

.plan-stack-item {
  position: relative;
  z-index: calc(10 - var(--stack-index));
  transform-origin: center top;
  transition:
    transform 220ms var(--spring),
    margin 220ms var(--spring),
    opacity 180ms ease;
}

.plan-stack.is-collapsed .plan-stack-item + .plan-stack-item {
  margin-top: -10px;
}

.plan-stack.is-collapsed .plan-stack-item {
  transform: translateY(calc(var(--stack-index) * 3px)) scale(calc(1 - var(--stack-index) * 0.018));
}

.plan-stack.is-collapsed .plan-stack-item:nth-child(n + 3) {
  opacity: 0.9;
}

.plan-stack-more {
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--surface-low);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    background-color 180ms ease;
}

.plan-stack-more:active {
  transform: scale(0.96);
}

.anniversary-editor h2,
.anniversary-library h2 {
  margin-top: 0;
}

.switch-grid {
  display: grid;
  gap: 10px;
}

.compact-switch-row {
  border-radius: 22px;
  background: var(--surface-low);
  box-shadow: var(--shadow);
}

.anniversary-list {
  gap: 12px;
}

.anniversary-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: center;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring);
}

.anniversary-card:active {
  transform: scale(0.97);
  box-shadow: var(--press-shadow);
}

.anniversary-card h3,
.anniversary-card p {
  margin: 0;
}

.anniversary-card h3 {
  font-size: 18px;
}

.anniversary-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.anniversary-card > .material-symbols-outlined:last-child {
  color: var(--muted);
}

.anniversary-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-high) 74%, transparent);
  color: var(--primary);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.anniversary-detail-hero {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}

.anniversary-detail-hero .material-symbols-outlined {
  width: 62px;
  height: 62px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-high) 74%, transparent);
  color: var(--primary);
  font-size: 34px;
}

.anniversary-detail-hero strong {
  color: var(--primary);
  font-size: 38px;
  line-height: 1;
}

.anniversary-detail-hero small {
  color: var(--muted);
  font-weight: 900;
}

.anniversary-detail-card {
  margin-top: 18px;
}

.anniversary-note {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-low);
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.memory-card {
  overflow: hidden;
  padding: 0;
}

.memory-action {
  display: block;
  width: 100%;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    border-color 180ms ease;
}

.memory-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 52%, white);
  outline-offset: 3px;
}

.memory-action:active {
  transform: scale(0.98);
  box-shadow: var(--press-shadow);
}

.memory-media {
  position: relative;
  overflow: hidden;
}

.memory-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--primary-soft), var(--tertiary-soft));
}

.memory-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(29, 27, 27, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.memory-body {
  padding: 14px 16px 16px;
}

.action-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--primary);
}

.action-tag .material-symbols-outlined {
  font-size: 15px;
}

.memory-body p,
.plan-card p,
.interaction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 13px 14px;
  background: var(--surface-high);
  color: var(--ink);
  outline: none;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-soft) 60%, transparent);
}

.date-combo {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--surface-high);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.date-combo:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-soft) 60%, transparent);
}

.date-text-input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 18px 0 0 18px;
  padding: 13px 10px 13px 14px;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-weight: 800;
}

.date-picker-trigger {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  cursor: pointer;
  transform-origin: center;
  transition: transform 200ms var(--spring);
}

.date-picker-trigger:active {
  transform: scale(0.92);
}

.date-picker-trigger .material-symbols-outlined {
  color: var(--primary);
  font-size: 22px;
}

.native-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.photo-button {
  min-height: 50px;
  border: 2px solid var(--line);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-high);
  color: var(--primary);
  font-weight: 900;
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    border-color 180ms ease,
    background-color 180ms ease;
}

.photo-button .material-symbols-outlined {
  color: var(--primary);
  transition: transform 200ms var(--spring);
}

.photo-button:active {
  transform: scale(0.94);
}

.photo-button:active .material-symbols-outlined {
  transform: scale(0.9);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-preview {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1;
  background: var(--surface-low);
}

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

.photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(29, 27, 27, 0.68);
  color: white;
}

.photo-remove .material-symbols-outlined {
  font-size: 18px;
}

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

.photo-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 104px;
  gap: 4px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-low);
}

.photo-library-grid .empty {
  grid-column: 1 / -1;
}

.photo-library-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--tertiary-soft));
  color: white;
  text-decoration: none;
  transform-origin: center;
  transition:
    transform 210ms var(--spring),
    filter 180ms ease;
}

.photo-library-tile.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-library-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-library-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 27, 27, 0.54), transparent 56%);
  opacity: 0.9;
}

.photo-library-tile:active {
  transform: scale(0.96);
  filter: saturate(1.08);
}

.photo-tile-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.photo-tile-label strong,
.photo-tile-label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.photo-tile-label strong {
  font-size: 12px;
  font-weight: 900;
}

.photo-tile-label small {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.9;
}

.photo-tile-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(29, 27, 27, 0.62);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.album-collection-grid .album-card {
  min-height: 168px;
  grid-template-rows: 104px 1fr;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.album-collection-grid .album-cover {
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--tertiary-soft) 64%, white);
}

.album-collection-grid .album-copy {
  padding: 0 2px;
}

.album-card {
  min-width: 0;
  min-height: 126px;
  border: 0;
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-rows: 54px 1fr;
  gap: 10px;
  text-align: left;
  background: color-mix(in srgb, var(--tertiary-soft) 72%, white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease;
}

.album-card:active {
  transform: scale(0.94) rotate(-1deg);
  box-shadow: var(--press-shadow);
}

.album-cover {
  overflow: hidden;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-high) 74%, transparent);
  color: var(--primary);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.album-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.album-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-copy em {
  color: var(--primary);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.album-detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.album-detail-head h2 {
  margin-bottom: 0;
}

.album-hero {
  min-height: 164px;
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(135deg, var(--tertiary-soft), var(--primary-soft));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.album-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04));
}

.album-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  color: white;
}

.album-hero small,
.album-hero span {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.9;
}

.album-hero strong {
  font-size: 22px;
  line-height: 1.15;
}

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

.interaction-option {
  min-height: 104px;
  border: 0;
  border-radius: 26px;
  padding: 12px 8px;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  gap: 8px;
  font-weight: 900;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease,
    filter 180ms ease;
}

.interaction-option .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
  transition: transform 210ms var(--spring);
}

.interaction-option:active {
  transform: scale(0.92) rotate(-2deg);
  box-shadow: var(--press-shadow);
}

.interaction-option:active .material-symbols-outlined {
  transform: scale(0.88);
}

.chat {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.ai-card {
  display: grid;
  gap: 14px;
}

.ai-card .section-head {
  margin-bottom: 0;
}

.ai-settings-form {
  border: 2px dashed var(--line);
  border-radius: 22px;
  padding: 12px;
  background: var(--surface-low);
}

.settings-card {
  display: grid;
  gap: 12px;
}

.settings-page-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-page-head h2 {
  margin-bottom: 0;
}

.ai-settings-page .section-head {
  margin-bottom: 12px;
}

.settings-row {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 22px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--surface-high);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease;
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  font-size: 15px;
  line-height: 1.25;
}

.settings-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-row > .material-symbols-outlined:last-child {
  color: var(--muted);
  transition: transform 210ms var(--spring);
}

.settings-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.settings-row:active {
  transform: scale(0.965);
  box-shadow: var(--press-shadow);
}

.settings-row:active > .material-symbols-outlined:last-child {
  transform: translateX(4px);
}

.ai-settings-row {
  background: color-mix(in srgb, var(--primary-soft) 44%, white);
}

.bubble {
  max-width: 82%;
  border-radius: 24px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.55;
}

.bubble.assistant {
  justify-self: start;
  border-bottom-left-radius: 8px;
  background: var(--surface-high);
}

.bubble.user {
  justify-self: end;
  border-bottom-right-radius: 8px;
  background: var(--primary);
  color: white;
}

.profile-hero {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
}

.profile-avatar-button,
.avatar-upload-button {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  transform-origin: center;
  transition: transform 210ms var(--spring);
}

.profile-avatar-button:active,
.avatar-upload-button:active {
  transform: scale(0.94);
}

.profile-hero .avatar,
.avatar-uploader .avatar {
  width: 76px;
  height: 76px;
}

.avatar-camera {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 17px;
  box-shadow: var(--shadow);
}

.personal-profile-card {
  display: grid;
  gap: 18px;
}

.avatar-uploader {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 10px 0 4px;
  text-align: center;
}

.avatar-uploader .avatar {
  box-shadow: 0 8px 0 rgba(166, 53, 85, 0.12);
}

.avatar-camera-button {
  min-height: 40px;
}

.couple-summary-card .section-head {
  margin-bottom: 14px;
}

.couple-info-hero {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}

.couple-info-hero h2 {
  margin-bottom: 0;
}

.couple-info-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-facts article,
.profile-date-fact {
  min-width: 0;
  border-radius: 20px;
  padding: 12px;
  background: var(--surface-low);
}

.profile-date-fact {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.profile-date-fact .compact-date-combo {
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.profile-date-fact .compact-date-combo:focus-within {
  box-shadow: none;
}

.profile-date-fact .date-text-input {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.profile-date-fact .date-picker-trigger {
  width: 28px;
  height: 28px;
}

.profile-date-fact .date-picker-trigger .material-symbols-outlined {
  font-size: 21px;
}

.profile-facts small,
.profile-facts strong,
.profile-date-fact small,
.profile-date-fact strong {
  display: block;
}

.profile-facts small,
.profile-date-fact small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-facts strong,
.profile-date-fact strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.theme-button {
  border: 2px solid transparent;
  border-radius: 20px;
  min-height: 74px;
  color: var(--ink);
  background: var(--surface-high);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 900;
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    box-shadow 200ms var(--spring),
    border-color 180ms ease;
}

.theme-button.is-active {
  border-color: var(--primary);
}

.theme-button:active {
  transform: scale(0.94);
  box-shadow: var(--press-shadow);
}

.swatch {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 7px;
  border-radius: 999px;
  border: 2px solid white;
}

.swatch.pink {
  background: #ff7a9a;
}

.swatch.mint {
  background: #7caf9e;
}

.swatch.yellow {
  background: #f0bd4d;
}

.swatch.night {
  background: #30272b;
}

.empty {
  padding: 22px;
  border: 2px dashed var(--line);
  border-radius: 26px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-high) 90%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.nav-button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    background-color 180ms ease,
    color 180ms ease;
}

.nav-button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  transform: scale(1.04);
}

.nav-button .material-symbols-outlined {
  transition: transform 200ms var(--spring);
}

.nav-button:active {
  transform: scale(0.96);
}

.nav-button:active .material-symbols-outlined {
  transform: scale(0.86);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(calc(100% - 40px), 340px);
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--surface-high) 94%, transparent);
  color: var(--primary);
  box-shadow: 0 14px 36px rgba(166, 53, 85, 0.18);
  font-weight: 900;
  text-align: center;
  animation: toast-in 220ms var(--spring);
}

.toast .material-symbols-outlined {
  font-size: 20px;
}

.toast strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.account-card .links {
  margin-top: 14px;
}

.link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.advanced-hero {
  isolation: isolate;
}

.hero-heart-button {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 10px 30px rgba(117, 12, 50, 0.18);
  transform-origin: center;
  transition: transform 220ms var(--spring), background-color 180ms ease;
}

.hero-heart-button:active {
  transform: scale(0.88) rotate(-8deg);
  background: rgba(255, 255, 255, 0.32);
}

.home-signal-panel,
.interaction-feature-grid,
.record-shortcuts,
.record-mode-row,
.plan-feature-band,
.member-grid {
  display: grid;
  gap: 12px;
}

.home-signal-panel,
.interaction-feature-grid {
  grid-template-columns: 1fr 1fr;
}

.signal-card,
.feature-card,
.sheet-action {
  min-width: 0;
  border: 0;
  border-radius: 26px;
  padding: 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 220ms var(--spring),
    box-shadow 220ms var(--spring),
    background-color 180ms ease;
}

.signal-card {
  min-height: 128px;
  display: grid;
  align-content: space-between;
}

.signal-card .material-symbols-outlined,
.feature-icon,
.sheet-action .material-symbols-outlined {
  color: var(--primary);
  font-size: 30px;
}

.signal-card strong,
.feature-card strong,
.sheet-action strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.signal-card small,
.feature-card small,
.sheet-action small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.feature-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.feature-card > .material-symbols-outlined:last-child {
  color: var(--muted);
  transition: transform 200ms var(--spring);
}

.signal-card:active,
.feature-card:active,
.sheet-action:active,
.hundred-item .secondary-button:active {
  transform: scale(0.95);
  box-shadow: var(--press-shadow);
}

.feature-card:active > .material-symbols-outlined:last-child {
  transform: translateX(4px);
}

.album-card,
.settings-row,
.theme-choice,
.photo-button,
.check {
  transform-origin: center;
  will-change: transform;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease,
    border-color 180ms ease;
}

.album-card:active,
.settings-row:active,
.theme-choice:active,
.photo-button:active,
.check:active {
  transform: scale(0.95);
  box-shadow: var(--press-shadow);
}

.memory-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 72%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.memory-rail .memory-card {
  scroll-snap-align: start;
}

.record-shortcuts {
  margin-bottom: 14px;
}

.fab-button {
  position: fixed;
  left: calc(50% + 136px);
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 70;
  width: 62px;
  height: 62px;
  border: 4px solid white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-pop);
  color: white;
  box-shadow: var(--soft-shadow);
  transition: transform 260ms var(--spring), background-color 180ms ease;
}

.fab-button .material-symbols-outlined {
  font-size: 32px;
  transition: transform 260ms var(--spring);
}

.fab-button.is-open .material-symbols-outlined {
  transform: rotate(90deg);
}

.fab-button:active {
  transform: scale(0.9);
}

.sheet-backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(29, 27, 27, 0);
  transition: background-color 220ms ease;
}

.sheet-backdrop.is-open {
  pointer-events: auto;
  background: rgba(29, 27, 27, 0.28);
}

.action-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 65;
  width: min(100%, 430px);
  transform: translate(-50%, 105%);
  border-radius: 30px 30px 0 0;
  padding: 14px 20px calc(28px + env(safe-area-inset-bottom));
  background: var(--surface-high);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.14);
  transition: transform 300ms var(--spring);
}

.action-sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 48px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sheet-action {
  min-height: 112px;
  display: grid;
  place-items: center;
  text-align: center;
}

.new-album-card,
.ai-chat-page,
.voice-card {
  display: grid;
  gap: 16px;
}

.album-cover-uploader {
  border: 2px dashed var(--line);
  border-radius: 28px;
  min-height: 220px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--primary-soft) 28%, var(--surface-high));
  text-align: center;
}

.album-cover-uploader > img {
  width: 100%;
  max-height: 170px;
  border-radius: 22px;
  object-fit: cover;
}

.album-cover-uploader > .material-symbols-outlined {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--primary);
  font-size: 38px;
  box-shadow: var(--shadow);
}

.photo-actions.compact {
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

.privacy-tip,
.ai-status-pill {
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.ai-status-button {
  width: 100%;
  border: 0;
  text-align: left;
  justify-content: flex-start;
  transition:
    transform 210ms var(--spring),
    box-shadow 210ms var(--spring),
    background-color 180ms ease;
}

.ai-status-button .material-symbols-outlined:last-child {
  margin-left: auto;
}

.ai-status-button:active {
  transform: scale(0.97);
  box-shadow: var(--press-shadow);
}

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

.search-field {
  position: relative;
  min-width: 0;
}

.search-field > .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.search-field .input {
  padding-left: 42px;
}

.date-filter-button {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-high);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    box-shadow 200ms var(--spring),
    background-color 180ms ease;
}

.date-filter-button:active {
  transform: scale(0.94);
  box-shadow: var(--press-shadow);
}

.date-filter-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.memory-detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}

.memory-detail-hero img,
.memory-detail-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--tertiary-soft));
}

.memory-detail-placeholder .material-symbols-outlined {
  color: var(--primary);
  font-size: 58px;
}

.detail-count {
  right: 14px;
  bottom: 14px;
}

.memory-detail-card {
  margin-top: 16px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta-grid > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 18px;
  padding: 9px 10px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-grid > span > .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
  flex: 0 0 auto;
}

.memory-detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.empty-detail {
  display: grid;
  gap: 14px;
}

.voice-card {
  text-align: center;
}

.voice-orb,
.daily-badge,
.member-hero > .material-symbols-outlined,
.privacy-hero > .material-symbols-outlined {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 40px;
  box-shadow: var(--shadow);
}

.wide-button {
  width: 100%;
}

.daily-prompt-card {
  position: relative;
  overflow: hidden;
}

.daily-prompt-card h2 {
  color: var(--primary);
}

.daily-timeline {
  display: grid;
  gap: 14px;
}

.daily-answer-card {
  padding: 16px;
}

.daily-answer-card p {
  color: var(--muted);
  line-height: 1.55;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggestion-chip {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface-high);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  transition: transform 200ms var(--spring), background-color 180ms ease;
}

.suggestion-chip:active {
  transform: scale(0.94);
}

.advanced-chat {
  min-height: 260px;
  border-radius: 24px;
  padding: 12px;
  background: var(--surface-low);
}

.chat-compose {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.member-hero,
.privacy-hero,
.hundred-progress {
  text-align: center;
}

.member-hero p,
.privacy-hero p,
.mini-benefit p {
  color: var(--muted);
  line-height: 1.55;
}

.member-grid {
  grid-template-columns: 1fr;
}

.mini-benefit .material-symbols-outlined {
  color: var(--primary);
  font-size: 32px;
}

.notification-form {
  gap: 12px;
}

.notification-row {
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transform-origin: center;
  transition:
    transform 200ms var(--spring),
    box-shadow 200ms var(--spring),
    background-color 180ms ease;
}

.notification-row:active {
  transform: scale(0.97);
  box-shadow: var(--press-shadow);
}

.notification-row strong,
.notification-row small {
  display: block;
}

.notification-row small {
  color: var(--muted);
  font-size: 12px;
}

.switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  display: inline-block;
  background: color-mix(in srgb, var(--muted) 22%, var(--surface-low));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--line) 70%, transparent);
  transition:
    background-color 190ms ease,
    box-shadow 190ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 3px 8px rgba(29, 27, 27, 0.22);
  transition: transform 210ms var(--spring);
}

.switch-input:checked + .switch-ui {
  background: var(--primary);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 70%, white);
}

.switch-input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.switch-input:focus-visible + .switch-ui {
  outline: 3px solid color-mix(in srgb, var(--primary) 52%, white);
  outline-offset: 3px;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.static-row {
  box-shadow: var(--shadow);
}

.hundred-progress {
  display: grid;
  place-items: center;
}

.hundred-progress strong {
  color: var(--primary);
  font-size: 44px;
  line-height: 1;
}

.hundred-list {
  display: grid;
  gap: 12px;
}

.hundred-item {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.hundred-item > span {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.hundred-item .secondary-button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.heart-feedback {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 400ms ease;
}

.heart-feedback > div {
  border: 2px solid white;
  border-radius: 999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--surface-high) 92%, transparent);
  color: var(--primary);
  box-shadow: var(--soft-shadow);
  animation: feedback-pop 700ms var(--spring);
}

.heart-feedback .material-symbols-outlined {
  font-size: 34px;
}

.heart-feedback.is-leaving {
  opacity: 0;
}

@keyframes feedback-pop {
  0% {
    transform: scale(0.72) translateY(12px);
    opacity: 0;
  }
  70% {
    transform: scale(1.06) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mood-rebound {
  0% {
    transform: translateY(5px) scale(0.92) rotate(-1deg);
  }
  70% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  0% {
    transform: translate(-50%, 8px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

@media (hover: hover) {
  .secondary-button:hover,
  .photo-button:hover,
  .settings-row:hover,
  .suggestion-chip:hover {
    background: color-mix(in srgb, var(--primary-soft) 34%, var(--surface-high));
  }

  .quick-action:hover,
  .interaction-option:hover,
  .album-card:hover,
  .theme-button:hover,
  .feature-card:hover,
  .signal-card:hover {
    transform: translateY(-2px);
  }

  .settings-row:hover > .material-symbols-outlined:last-child {
    transform: translateX(3px);
  }
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .app {
    min-height: calc(100vh - 56px);
    border: 10px solid #221a1d;
    border-radius: 44px;
    overflow: hidden;
  }

  .bottom-nav {
    bottom: 28px;
    border-radius: 0 0 34px 34px;
  }
}

@media (max-width: 759px) {
  .app {
    margin-left: 0;
    margin-right: auto;
  }
}
