@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(25, 29, 40, 0.86);
  --surface: #141822;
  --space: 8px;
  --ease: cubic-bezier(.22, .7, .25, 1);
  --line: rgba(255, 255, 255, 0.085);
  --text: #f2f3f7;
  --muted: #adb2c1;
  --accent: #ff758c;
  --accent-soft: rgba(255, 117, 140, 0.12);
  --good: #a5dac5;
  --bad: #ff9c83;
  --radius: 20px;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(
      ellipse at 90% 0,
      rgba(107, 86, 134, 0.15),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 0 45%,
      rgba(62, 100, 122, 0.08),
      transparent 45%
    ),
    var(--bg);
}
body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.2' filter='url(%23n)'/%3E%3C/svg%3E");
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.14;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.5;
}
strong {
  font-weight: 600;
}
.app-shell {
  width: min(100%, 700px);
  margin: auto;
  padding: 0 24px calc(130px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 13px Manrope;
  letter-spacing: 3px;
}
.mark {
  width: 25px;
  height: 28px;
  display: grid;
  place-content: center;
  color: var(--accent);
}
.mark svg {
  width: 28px;
  height: 28px;
}
.topbar .subtitle {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 5px;
}
.avatar {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.avatar img,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page {
  animation: enter 0.24s var(--ease);
}
.eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.heading {
  margin: 12px 0 28px;
}
.heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.glass {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.045), transparent 65%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.pad {
  padding: 24px;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.section {
  margin-top: 30px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head a {
  color: var(--muted);
  font-size: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 15px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.18s,
    background 0.18s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  color: #211017;
  background: var(--accent);
  border-color: transparent;
}
.btn.primary:hover {
  background: #ff8c9f;
}
.btn.danger {
  color: var(--bad);
  border-color: rgba(255, 156, 131, 0.2);
}
.btn.full {
  width: 100%;
}
.btn.sm {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.nav-dock {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(calc(100% - 40px), 590px);
}
.nav {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  background: rgba(18, 21, 30, 0.88);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px #0008;
}
.nav a {
  min-height: 48px;
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.nav a.active {
  color: var(--accent);
}
.create-nav {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 17px;
  color: #211017;
  box-shadow: 0 10px 30px #0005;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.badge.rose {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 117, 140, 0.1);
}
.badge.green {
  color: var(--good);
}
.hero {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 30px;
}
.hero-cover {
  height: 300px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, #4a374f, transparent 65%),
    linear-gradient(135deg, #1d2930, #23202c);
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 15%, rgba(9, 11, 16, 0.9));
}
.hero-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -28px;
  top: -18px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  box-shadow:
    0 0 0 26px #ffffff04,
    0 0 0 52px #ffffff03;
  transform: rotate(-25deg);
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
}
.hero-meta {
  position: absolute;
  inset: 22px 22px auto;
  z-index: 1;
}
.hero-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
}
.hero-title h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-title .date {
  color: #d1c9d5;
  font-size: 11px;
  letter-spacing: 1px;
}
.hero-title p {
  font-size: 12px;
  color: #c3c5cf;
  margin-top: 8px;
}
.hero-bottom {
  padding: 22px;
}
.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}
.countdown .unit {
  flex: 1;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff03;
}
.countdown b {
  display: block;
  font: 600 24px Manrope;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.progress {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff0a;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.3s;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
  border-color: #ffffff22;
}
.date-tile {
  width: 48px;
  text-align: center;
  padding: 10px 5px;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-shrink: 0;
}
.date-tile b {
  font: 600 21px Manrope;
  display: block;
}
.date-tile small {
  font-size: 9px;
  letter-spacing: 1px;
}
.event-card h3 {
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.event-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  padding: 38px 24px;
  text-align: center;
}
.empty .empty-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty .empty-icon svg {
  width: 30px;
  height: 30px;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px auto 22px;
  max-width: 330px;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 20px 0;
}
.segmented button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}
.segmented button.active {
  color: var(--text);
  background: #ffffff0b;
  box-shadow: 0 2px 10px #0002;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.5);
  color: var(--text);
  padding: 13px 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #ff758c66;
  box-shadow: 0 0 0 3px #ff758c08;
}
input::placeholder,
textarea::placeholder {
  color: #9096a8;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--accent);
  padding: 0;
}
input[type="file"] {
  font-size: 12px;
}
input[type="range"] {
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  color: var(--bad);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.stepper span {
  height: 3px;
  flex: 1;
  border-radius: 4px;
  background: #ffffff0c;
}
.stepper span.done {
  background: var(--accent);
}
.step-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.accordion {
  overflow: hidden;
}
.accordion > summary {
  padding: 21px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
}
.accordion > summary::-webkit-details-marker {
  display: none;
}
.accordion > summary::after {
  content: "+";
  font-size: 22px;
  color: var(--muted);
  margin-left: auto;
  font-weight: 400;
}
.accordion[open] > summary::after {
  content: "−";
}
.accordion > summary svg {
  color: var(--accent);
}
.accordion-content {
  padding: 0 22px 22px;
  animation: enter 0.22s ease;
}
.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child {
  border-bottom: 0;
}
.check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
  border: 1px solid #ffffff2a;
  border-radius: 9px;
  background: transparent;
  margin: 8px;
  transform: translate(-8px, -8px);
  color: var(--good);
}
.check.done {
  background: #a5dac510;
  border-color: #a5dac54a;
}
.item.done .item-title {
  text-decoration: line-through;
  color: var(--muted);
}
.item.overdue .item-title {
  color: var(--bad);
}
.item-title {
  font-size: 14px;
  line-height: 1.5;
}
.text-btn {
  color: var(--muted);
  border: 0;
  background: none;
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
.text-btn.danger {
  color: var(--bad);
}
.notice {
  padding: 16px 18px;
  border: 1px solid #ff758c24;
  border-radius: 18px;
  background: #ff758c07;
  font-size: 13px;
  margin-bottom: 20px;
}
.notice p {
  color: var(--muted);
  font-size: 12px;
}
.group-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  margin: 12px 0;
  background: #ffffff02;
}
.group-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
}
.goal-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #a5dac50b;
  border-radius: 12px;
  color: var(--good);
}
.portrait {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 29px;
  border: 1px solid #ffffff17;
  background: linear-gradient(135deg, #41445b, #212333);
  font: 600 30px Manrope;
}
.identity-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
}
.identity-card h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
.identity-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.stats div:last-child {
  border: 0;
}
.stats strong {
  display: block;
  font: 600 25px Manrope;
  margin-bottom: 5px;
}
.stats small {
  font-size: 10px;
}
.settings-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child {
  border: 0;
}
.settings-row .row-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.settings-row p {
  font-size: 13px;
  font-weight: 500;
}
.settings-row small {
  display: block;
  margin-top: 4px;
}
.settings-row input[type="checkbox"] {
  margin-left: auto;
}
.auth-shell {
  max-width: 470px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  min-height: 100dvh;
}
.auth-shell .wordmark {
  margin: 12px 0 50px;
}
.auth-shell .heading {
  margin-bottom: 30px;
}
.auth-shell .glass {
  padding: 26px;
}
.auth-shell .auth-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 26px;
}
.auth-shell .auth-foot a {
  color: var(--accent);
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.intro-visual {
  position: relative;
  height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 24px 0;
}
.orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ba8a9d, #4b354a 55%, #121722);
  box-shadow:
    0 0 70px #ff758c18,
    inset -12px -12px 35px #0005;
  animation: float 6s ease-in-out infinite;
}
.orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  transform: rotateX(60deg) rotate(-20deg);
}
.intro-symbol {
  position: absolute;
  color: #ffe5eb;
}
.intro-symbol svg {
  width: 50px;
  height: 50px;
  stroke-width: 1;
}
.intro-text {
  text-align: center;
}
.intro-text h1 {
  font-size: 40px;
}
.intro-text p {
  max-width: 310px;
  margin: 18px auto 32px;
  color: var(--muted);
  font-size: 14px;
}
.intro-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px;
}
.intro-dots span {
  height: 4px;
  width: 18px;
  border-radius: 4px;
  background: #ffffff1a;
}
.intro-dots .active {
  width: 34px;
  background: var(--accent);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.weekdays {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.calendar-day {
  position: relative;
  border: 0;
  border-radius: 13px;
  min-height: 46px;
  background: transparent;
  font-size: 13px;
}
.calendar-day.today {
  border: 1px solid #ff758c55;
  color: var(--accent);
}
.calendar-day.selected {
  background: var(--accent);
  color: #211017;
}
.calendar-day.has-events:after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--good);
}
.map {
  width: 100%;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 15px;
}
.place-results {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.place-result {
  text-align: left;
  line-height: 1.5;
  font-size: 12px;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.memory-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff05;
}
.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memory-photo button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #090b10bf;
}
.timer-bar {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 590px);
  z-index: 21;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(32, 34, 47, 0.95);
  border: 1px solid #ff758c33;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 25px #0003;
}
.timer-bar svg {
  color: var(--accent);
}
.timer-bar strong {
  font-size: 12px;
}
.timer-bar b {
  font: 600 18px Manrope;
  font-variant-numeric: tabular-nums;
}
.timer-display {
  text-align: center;
  padding: 30px 0;
  font: 500 56px Manrope;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  background: #272b3c;
  border: 1px solid #ffffff22;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 13px;
  box-shadow: 0 12px 35px #0004;
  animation: toast-enter 0.2s var(--ease);
}
.modal {
  width: min(calc(100% - 32px), 460px);
  padding: 28px;
  border: 1px solid #ffffff20;
  border-radius: 28px;
  color: var(--text);
  background: #161a25;
  box-shadow: 0 30px 100px #0008;
}
.modal::backdrop {
  background: #05070caa;
  backdrop-filter: blur(6px);
}
.modal p {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 24px;
}
.modal .row {
  justify-content: flex-end;
}
.skeleton {
  height: 220px;
  border-radius: 26px;
  background: linear-gradient(
    110deg,
    #ffffff03 30%,
    #ffffff08 45%,
    #ffffff03 60%
  );
  background-size: 200% 100%;
  animation: shimmer 1.7s infinite;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  min-height: 44px;
  margin-bottom: 12px;
}
.image-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 12px;
}
.review-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.review-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.onboarding-card {
  position: fixed;
  inset: auto 16px 110px;
  z-index: 40;
  max-width: 460px;
  margin: auto;
  padding: 25px;
  background: #1c2030;
  border: 1px solid #ff758c44;
  border-radius: 24px;
  box-shadow: 0 0 0 100vmax #03050ac9;
}
.onboarding-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.tour-target {
  position: relative;
  z-index: 41;
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 24px;
  pointer-events: none;
}
.footer-note {
  text-align: center;
  color: #747b90;
  font-size: 11px;
  margin-top: 35px;
  letter-spacing: 0.4px;
}
.note-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.search {
  margin-bottom: 20px;
}
.deadline {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.event-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--progress) * 1%),
    #ffffff0b 0
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c202c;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.spacer {
  height: 16px;
}
.saved {
  font-size: 11px;
  color: var(--good);
}
.offline {
  margin-bottom: 15px;
}
.goal-empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.tour-title {
  font-size: 22px;
}
#app[aria-busy="true"] {
  cursor: progress;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 900px) {
  .app-shell {
    padding-top: 18px;
  }
  .topbar {
    height: 84px;
  }
  .hero-cover {
    height: 330px;
  }
  .auth-shell {
    padding-top: 50px;
  }
  .heading {
    margin-top: 25px;
  }
  .nav-dock {
    bottom: 24px;
  }
  .timer-bar {
    bottom: 112px;
  }
}
@media (max-width: 370px) {
  .app-shell {
    padding: 0 17px 150px;
  }
  .pad {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-cover {
    height: 275px;
  }
  .identity-card {
    padding: 20px;
    gap: 15px;
  }
  .identity-card h1 {
    font-size: 23px;
  }
  .portrait {
    width: 70px;
    height: 70px;
  }
  .nav {
    padding: 8px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.timer-digits {
  text-align: center;
  font: 600 52px Manrope;
  font-variant-numeric: tabular-nums;
  margin: 25px 0;
  color: var(--accent);
}
.item-title,
.hero-title h1,
.review-row strong {
  overflow-wrap: anywhere;
}
.review-row strong {
  text-align: right;
  max-width: 70%;
}
.hero-title p svg {
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.tour-target {
  pointer-events: none;
}
.settings-row p,
.event-card h3,
.topbar .subtitle {
  overflow-wrap: anywhere;
}
.topbar > a:first-child {
  min-width: 0;
  padding-right: 12px;
}
.avatar,
.date-tile,
.icon-btn {
  flex-shrink: 0;
}
.timer-bar.expired {
  border-color: var(--bad);
  color: var(--bad);
}
.modal .toast {
  white-space: normal;
}
.modal {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.place-results:has(.place-result)::after {
  content: "Places powered by Geoapify";
  font-size: 10px;
  color: var(--muted);
  padding-top: 5px;
}

/* Shared hierarchy and interaction states. */
button, a, summary { touch-action: manipulation; }
button:disabled { cursor: default; }
button[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn, .icon-btn, .text-btn, .check { transition: background .18s, border-color .18s, transform .18s; }
.icon-btn:hover, .text-btn:hover { background: #ffffff08; color: var(--text); }
.icon-btn:active, .check:active { scale: .95; }
.check { width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin: 0; transform: none; border-radius: 13px; }
.check svg { width: 19px; }
.item { align-items: center; }
.item.done { transition: opacity .2s; }
.text-btn { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.text-btn.full { justify-content: center; width: 100%; }
.text-btn svg, .section-head a svg { width: 16px; height: 16px; vertical-align: middle; }
.form-error:empty, .form-feedback:empty, .auth-status:empty { display: none; }
.form-feedback, .auth-status { font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.form-feedback[data-state="error"] { color: var(--bad); }
.form-feedback[data-state="success"], .auth-status { color: var(--good); }
.row > *, .form-grid > *, .section-head > *, .settings-row > * { min-width: 0; }
.section-head { gap: 12px; }
.section-head h2 { font-size: 18px; }
.section-head a { flex-shrink: 0; }
.quiet-empty { color: var(--muted); padding: 20px 0; font-size: 14px; }
.hero { border-radius: 24px; }
.hero-title h2 { font-size: 28px; }
.hero-title .date, .hero-title p, .deadline { font-size: 13px; }
.home-hero .hero-cover { height: 220px; }
.home-hero .hero-meta { inset: 18px 20px auto; }
.home-hero .hero-title { inset: auto 20px 20px; }
.home-hero .hero-bottom { padding: 20px; }
.compact-countdown { gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.compact-countdown > span { display: flex; align-items: baseline; gap: 5px; }
.compact-countdown b { font-size: 24px; }
.compact-countdown small { font-size: 12px; letter-spacing: 0; }
.preparation-summary { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin-top: 18px; }
.preparation-summary > strong { color: var(--good); }
.hero-action { margin-top: 20px; }
.home-layout { display: grid; gap: 0; }
.reminder-invitation { margin: 24px 0 0; background: transparent; border-color: var(--line); align-items: flex-start; }
.reminder-invitation > svg { color: var(--muted); margin-top: 6px; }
.reminder-invitation .icon-btn { width: 32px; height: 32px; border: 0; }
.reminder-invitation p { margin-top: 4px; }
.draft-resume { padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; }
.draft-resume strong { font-size: 14px; }
.draft-resume small { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.draft-resume > svg { color: var(--muted); }
.creation-success { background: #a5dac50a; border-color: #a5dac533; }
.creation-success .text-btn { color: var(--good); padding-left: 0; }
.success-icon { color: var(--good); }
.creation-steps { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0 0 24px; }
.creation-steps li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; border-bottom: 2px solid var(--line); padding: 0 0 12px; }
.creation-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff06; }
.creation-steps li.done { color: var(--text); border-color: var(--accent); }
.creation-steps li[aria-current] span { color: #211017; background: var(--accent); }
.step-label, .saved { margin: 0; font-size: 12px; }
#createForm > .btn:not(.primary) { justify-self: start; width: auto; }
#createForm .group-card { background: var(--surface); border-radius: 14px; }
#createForm .accordion > summary { padding: 18px 20px; }
#coverStatus { font-size: 13px; color: var(--muted); margin-top: 8px; }
.calendar-heading { text-align: center; }
.calendar-heading .text-btn { min-height: 32px; padding: 4px 8px; color: var(--accent); }
.calendar-nav { gap: 8px; }
.calendar-day { transition: background .16s, color .16s; }
.calendar-day:hover { background: #ffffff0b; }
.calendar-day.selected:hover { background: var(--accent); }

/* Authentication and account preferences. */
.auth-shell { width: min(100%, 480px); }
.auth-shell .glass { border-radius: 20px; }
.auth-shell .heading h1 { font-size: 30px; }
.auth-shell .wordmark { margin-bottom: 32px; }
.auth-provider { width: 100%; }
.google-mark { width: 20px; height: 20px; flex-shrink: 0; }
.password-control { position: relative; }
.password-control input { padding-right: 66px; }
.password-toggle { position: absolute; right: 5px; top: 2px; min-width: 56px; justify-content: center; }
.auth-step-names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--muted); margin: 12px 0 20px; }
.avatar-upload-preview { width: 80px; height: 80px; object-fit: cover; border-radius: 24px; }
.profile-identity { display: grid; grid-template-columns: minmax(0, 1fr); }
.profile-identity .portrait { flex-shrink: 0; }
.profile-identity h2 { overflow-wrap: anywhere; }
.profile-identity .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-email { overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.recent-memories .section-head p { font-size: 13px; margin-top: 4px; }
.recent-memories summary h3 { overflow-wrap: anywhere; }
.recent-memories summary small { color: var(--muted); font-weight: 400; }
.memory-preview { margin-bottom: 16px; }
.memory-reflection { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 16px; }
.settings-stack > .recent-memories { margin-top: 0; }
.settings-stack { display: grid; gap: 20px; }
.settings-section { scroll-margin-top: 24px; }
.section-intro { margin-bottom: 22px; }
.section-intro p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.avatar-editor { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.avatar-preview { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: #ffffff08; font: 600 28px Manrope; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-picker { position: relative; cursor: pointer; width: fit-content; }
.file-picker input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; opacity: 0; overflow: hidden; }
.file-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
input[type="file"]::file-selector-button { background: #ffffff0c; border: 0; border-radius: 8px; color: var(--text); padding: 8px 12px; margin-right: 10px; font: inherit; cursor: pointer; }
.switch-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-control input[type="checkbox"] { appearance: none; width: 44px; height: 26px; min-height: 26px; border-radius: 99px; background: #ffffff14; position: relative; flex-shrink: 0; cursor: pointer; }
.switch-control input[type="checkbox"]::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: transform .18s; }
.switch-control input[type="checkbox"]:checked { background: var(--accent); }
.switch-control input[type="checkbox"]:checked::before { transform: translateX(18px); background: #211017; }
.setting-status { color: var(--muted); font-size: 13px; margin: 12px 0; }

/* Event preparation stays compact; history makes room for memories. */
.workspace-hero .hero-cover { height: 190px; }
.workspace-hero .hero-title h1 { font-size: clamp(24px, 6vw, 30px); }
.workspace-summary { padding: 20px; }
.workspace-state { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.workspace-actions > .btn { flex: 1; }
.inline-add { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.inline-add > summary { list-style: none; padding: 12px 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.inline-add[open] > summary { color: var(--text); margin-bottom: 8px; }
.inline-add > summary::-webkit-details-marker { display: none; }
.inline-add > summary::before { content: "+"; color: var(--accent); margin-right: 8px; }
.inline-add[open] > summary::before { content: "−"; }
.task-actions { display: flex; flex-wrap: wrap; gap: 2px; }
.group-card .group-card { border: 0; padding: 8px 0; background: none; }
.preparation-history { margin-top: 24px; }
.memory-section { margin-top: 24px; }
.event-danger { margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.timer-status { text-align: center; }
.timer-controls { display: grid; gap: 12px; }
.timer-controls > .row { justify-content: center; }
body:has(#timerBar) .app-shell { padding-bottom: calc(210px + env(safe-area-inset-bottom)); }
.timer-bar { bottom: calc(104px + env(safe-area-inset-bottom)); }
.modal[open] { animation: enter .2s var(--ease); }
.toast { animation: toast-enter .2s var(--ease); }
@keyframes toast-enter { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes spin { to { rotate: 360deg; } }
@media (min-width: 900px) {
  .app-shell:has(.home-layout) { width: min(100%, 1040px); }
  .home-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .home-layout > .section { margin-top: 0; }
  .home-hero .hero-cover { height: 260px; }
}
@media (max-width: 370px) {
  .home-hero .hero-cover { height: 210px; }
  .hero-title h2 { font-size: 25px; }
  .profile-identity, .avatar-editor { gap: 12px; }
  .modal { padding: 20px; }
  .creation-steps { gap: 8px; }
  .creation-steps li { gap: 5px; }
  .task-actions { width: 100%; }
  .item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

.calendar-day.has-holiday { box-shadow: inset 0 0 0 1px var(--accent); }
.holiday-row { width: 100%; text-align: left; background: none; border-radius: 0; color: var(--text); }
.holiday-row small { flex-shrink: 0; color: var(--muted); }
.google-mail-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Compact Settings only; shared Prelude cards and navigation retain their style. */
.settings-compact { gap: 18px; }
.settings-compact .settings-label { color: var(--muted); font-size: 12px; font-weight: 600; margin: 0 14px 8px; }
.settings-compact .settings-group { padding: 0 16px; overflow: hidden; }
.settings-compact .settings-row { min-height: 56px; padding: 14px 0; gap: 12px; }
.settings-detail { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.settings-detail:last-child { border-bottom: 0; }
.settings-detail > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: 64px; cursor: pointer; }
.settings-detail > summary::-webkit-details-marker { display: none; }
.settings-detail > summary p { font-size: 15px; font-weight: 600; margin: 0; }
.settings-detail > summary small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; margin-top: 3px; }
.settings-detail > summary > svg { width: 18px; flex-shrink: 0; color: var(--muted); transition: transform .15s; }
.settings-detail[open] > summary > svg { transform: rotate(90deg); }
.settings-detail-body { padding: 6px 0 18px; }
.settings-detail-body .form-actions { margin-top: 16px; }
.settings-detail-body .form-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.settings-detail-body .avatar-editor { margin-top: 0; }
.settings-detail-body .recent-memories { margin: 0; }
.settings-detail-body .recent-memories .section-head { display: none; }
.settings-detail-body .recent-memories .glass { background: transparent; border: 0; box-shadow: none; }
.settings-detail-body .recent-memories .pad { padding: 0; }
.settings-detail-body .recent-memories summary { padding: 12px 0; }
.settings-compact .settings-signout { align-self: start; justify-self: start; min-height: 44px; padding: 8px 14px; }
.settings-compact .form-feedback:empty { display: none; }
.settings-compact .setting-status, .settings-compact .mail-consent { font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.mail-account { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.mail-account .row { margin-top: 4px; gap: 8px; }
.mail-advanced > summary { color: var(--muted); cursor: pointer; font-size: 12px; padding: 12px 0; min-height: 44px; }
.settings-detail-body #mailHistory h3, .settings-detail-body #mailSuggestions > h3 { font-size: 14px; margin: 18px 0 8px; }
.google-mail-choice input { flex-shrink: 0; margin-top: 2px; }

/* Legal links */
.legal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 0 24px;
  color: var(--muted);
  font-size: 11px;
}
.legal-footer a {
  color: inherit;
  text-decoration: none;
}
.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
