:root {
  --paper: #f2ede3;
  --paper-soft: #f8f4ec;
  --paper-deep: #e7ded0;
  --ink: #303730;
  --ink-soft: #555b52;
  --muted: #85877c;
  --forest: #344941;
  --forest-deep: #263a33;
  --cream: #f5eee2;
  --cream-soft: #e9e1d3;
  --coral: #ba715c;
  --coral-deep: #9d5a48;
  --teal: #507c75;
  --line: rgba(48, 55, 48, 0.12);
  --line-strong: rgba(48, 55, 48, 0.2);
  --shadow: 0 18px 50px rgba(54, 54, 43, 0.09);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(186, 113, 92, 0.1), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(80, 124, 117, 0.12), transparent 32%),
    #e8e2d8;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.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;
}

.desktop-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  color: rgba(48, 55, 48, 0.22);
}

.ambient-city {
  position: absolute;
  top: 42%;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0.2em;
}

.ambient-city--left { left: 7%; }
.ambient-city--right { right: 7%; }

.ambient-line {
  position: absolute;
  top: 45%;
  left: 15%;
  right: 15%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(48, 55, 48, 0.18) 0 5px, transparent 5px 12px);
}

.ambient-copy {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(186, 113, 92, 0.07), transparent 28%),
    var(--paper);
  box-shadow: 0 0 80px rgba(52, 53, 43, 0.15);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: max(10px, env(safe-area-inset-top)) 20px 8px;
  background: linear-gradient(to bottom, rgba(242, 237, 227, 0.96) 70%, rgba(242, 237, 227, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--cream);
  background: var(--forest);
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(52, 73, 65, 0.18);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-mark svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.identity-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 9px 4px 4px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.identity-avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff9ed;
  font-family: var(--serif);
  border-radius: 50%;
}

.identity-avatar {
  width: 27px;
  height: 27px;
  background: var(--teal);
  font-size: 12px;
}

.identity-button svg {
  width: 12px;
  height: 12px;
}

.identity-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-content {
  padding: 10px 16px calc(110px + env(safe-area-inset-bottom));
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-in 0.34s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: reveal-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 { animation-delay: 0.07s; }
.reveal-delay-2 { animation-delay: 0.14s; }
.reveal-delay-3 { animation-delay: 0.21s; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  position: relative;
  min-height: 392px;
  padding: 21px 21px 18px;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(145deg, #3b5048 0%, #2b4038 52%, #243630 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(35, 53, 47, 0.24);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 0.65px, transparent 0.8px),
    radial-gradient(circle at 70% 64%, rgba(255, 255, 255, 0.35) 0 0.6px, transparent 0.8px);
  background-size: 17px 19px, 23px 27px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(194, 139, 111, 0.24), transparent 67%);
  border-radius: 50%;
}

.hero-stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(245, 238, 226, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(245, 238, 226, 0.45);
}

.hero-stars span:nth-child(1) { top: 18%; left: 7%; }
.hero-stars span:nth-child(2) { top: 32%; right: 9%; width: 2px; height: 2px; }
.hero-stars span:nth-child(3) { top: 58%; left: 12%; width: 2px; height: 2px; }
.hero-stars span:nth-child(4) { top: 74%; right: 13%; }
.hero-stars span:nth-child(5) { top: 9%; right: 32%; width: 2px; height: 2px; }

.hero-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(245, 238, 226, 0.65);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  background: #d69076;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214, 144, 118, 0.1);
}

.milestone {
  padding: 5px 9px;
  color: rgba(245, 238, 226, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: 27px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 5px;
  color: rgba(245, 238, 226, 0.6);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.day-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  height: 72px;
  font-family: var(--serif);
}

.day-count span {
  font-size: 68px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.day-count small {
  color: rgba(245, 238, 226, 0.55);
  font-size: 13px;
}

.hero-copy h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.hero-copy h1 em {
  color: #d5967d;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 290px;
  margin: 13px auto 0;
  color: rgba(245, 238, 226, 0.58);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.route {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
}

.route-city {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.route-city--right {
  justify-content: flex-end;
  text-align: right;
}

.route-city strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.route-city small {
  width: 100%;
  padding-left: 11px;
  color: rgba(245, 238, 226, 0.4);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.route-city--right small {
  padding-right: 11px;
  padding-left: 0;
}

.route-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.route-dot--ningbo {
  background: #80a9a2;
  box-shadow: 0 0 0 4px rgba(128, 169, 162, 0.1);
}

.route-dot--ankang {
  background: #d7967e;
  box-shadow: 0 0 0 4px rgba(215, 150, 126, 0.1);
}

.route-track {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(245, 238, 226, 0.26) 0 4px, transparent 4px 9px);
}

.route-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #d5967d;
  background: #2d423a;
  border: 1px solid rgba(245, 238, 226, 0.12);
  border-radius: 50%;
  font-size: 9px;
  transform: translate(-50%, -50%);
}

.route-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  background: #e4b09a;
  border-radius: 50%;
  box-shadow: 0 0 7px #e4b09a;
  animation: travel 4.5s ease-in-out infinite;
}

@keyframes travel {
  0%, 8% { left: 0; opacity: 0; }
  16% { opacity: 1; }
  84% { opacity: 1; }
  92%, 100% { left: calc(100% - 4px); opacity: 0; }
}

.distance-label {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 3px;
  color: rgba(245, 238, 226, 0.34);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.today-card {
  margin-top: 14px;
  padding: 20px;
  background: rgba(250, 247, 240, 0.9);
  border: 1px solid rgba(48, 55, 48, 0.09);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(57, 56, 44, 0.07);
}

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

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-heading h2,
.history-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.date-stamp {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.prompt-block {
  position: relative;
  margin: 18px 0 15px;
  padding: 16px 16px 14px 32px;
  background: #eee7db;
  border-radius: 16px;
}

.prompt-block::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 29px;
  height: 29px;
  opacity: 0.25;
  background: radial-gradient(circle, transparent 46%, var(--coral) 47% 49%, transparent 50%);
  border-radius: 50%;
}

.quote-mark {
  position: absolute;
  top: 8px;
  left: 11px;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.prompt-block p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.entry-status {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  align-items: center;
  margin: 15px 2px 17px;
}

.person-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.person-status--right {
  justify-content: flex-end;
  text-align: right;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.mini-avatar--qing { background: var(--teal); }
.mini-avatar--yue { background: var(--coral); }

.person-status > span:not(.mini-avatar) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.person-status strong {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.person-status small {
  max-width: 90px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-status.has-written small {
  color: var(--teal);
}

.status-heart {
  color: #c3b5a4;
  font-size: 14px;
  text-align: center;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: #fff9f1;
  background: var(--coral);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(186, 113, 92, 0.23);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button:active {
  transform: scale(0.985);
  background: var(--coral-deep);
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.primary-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 14px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(48, 55, 48, 0.08);
  border-radius: 21px;
  cursor: pointer;
}

.quick-card--wish {
  color: #edf2ec;
  background: var(--teal);
}

.quick-card--note {
  color: var(--ink);
  background: #e5ddce;
}

.quick-card::before {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.09;
}

.quick-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px;
  opacity: 0.76;
}

.quick-icon svg {
  width: 18px;
  height: 18px;
}

.quick-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-copy {
  display: flex;
  flex-direction: column;
  margin-top: 17px;
}

.quick-copy small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  opacity: 0.52;
}

.quick-copy strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.quick-copy em {
  margin-top: 4px;
  overflow: hidden;
  font-size: 8px;
  font-style: normal;
  opacity: 0.54;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: Georgia, serif;
  font-size: 16px;
  opacity: 0.48;
}

.little-things {
  margin: 21px 2px 0;
}

.little-things-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.tiny-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tiny-chips {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tiny-chips::-webkit-scrollbar { display: none; }

.tiny-chips span {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
}

.page-heading {
  padding: 14px 5px 20px;
}

.page-heading h1 {
  margin: 3px 0 7px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.diary-summary {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(135deg, #3a4e47, #2c4039);
  border-radius: 21px;
  box-shadow: 0 14px 32px rgba(44, 64, 57, 0.18);
}

.summary-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 55px;
  font-family: var(--serif);
}

.summary-number span {
  font-size: 37px;
  line-height: 1;
}

.summary-number small {
  color: rgba(245, 238, 226, 0.5);
  font-size: 10px;
}

.summary-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary-copy strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.summary-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: rgba(245, 238, 226, 0.48);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-glyph {
  display: flex;
  width: 40px;
  height: 42px;
  border: 1px solid rgba(245, 238, 226, 0.15);
  border-radius: 4px 8px 8px 4px;
}

.book-glyph span {
  width: 1px;
  height: 100%;
  margin-left: 9px;
  background: rgba(245, 238, 226, 0.12);
}

.writing-card {
  margin-top: 14px;
  padding: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 15px 36px rgba(57, 56, 44, 0.06);
}

.writing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.writing-as {
  color: var(--muted);
  font-size: 9px;
}

.writing-as strong {
  color: var(--teal);
  font-weight: 700;
}

.writing-prompt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0 16px;
  padding-left: 13px;
  border-left: 2px solid var(--coral);
}

.writing-prompt span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.writing-prompt strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.mood-picker {
  display: flex;
  gap: 7px;
  margin-bottom: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mood-picker::-webkit-scrollbar { display: none; }

.mood-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
  transition: 0.2s ease;
}

.mood-chip.is-selected {
  color: #fff9f2;
  background: var(--coral);
  border-color: var(--coral);
}

#diaryText {
  display: block;
  width: 100%;
  min-height: 174px;
  padding: 15px;
  resize: vertical;
  color: var(--ink);
  background:
    repeating-linear-gradient(transparent 0 30px, rgba(48, 55, 48, 0.065) 30px 31px),
    rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 31px;
  letter-spacing: 0.02em;
}

#diaryText::placeholder {
  color: #a9a79c;
}

#diaryText:focus {
  background:
    repeating-linear-gradient(transparent 0 30px, rgba(48, 55, 48, 0.065) 30px 31px),
    rgba(255, 255, 255, 0.55);
  border-color: rgba(186, 113, 92, 0.45);
}

.writing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 13px;
}

.writing-footer > span {
  color: var(--muted);
  font-size: 8px;
}

.save-button {
  min-height: 43px;
  padding: 0 17px;
  color: #fff9f1;
  background: var(--coral);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(186, 113, 92, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.save-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.save-hint {
  min-height: 14px;
  margin: 8px 0 -4px;
  color: var(--teal);
  font-size: 9px;
  text-align: right;
}

.partner-card {
  margin-top: 13px;
  padding: 17px 18px;
  background: #e7dfd2;
  border: 1px solid rgba(48, 55, 48, 0.07);
  border-radius: 20px;
}

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

.partner-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.partner-title > span:last-child {
  display: flex;
  flex-direction: column;
}

.partner-title small {
  color: var(--muted);
  font-size: 8px;
}

.partner-title strong {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.partner-mood {
  padding: 4px 8px;
  color: var(--coral-deep);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 8px;
}

.partner-text {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.partner-card.is-empty .partner-text {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
}

.history-section {
  margin-top: 26px;
}

.history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 11px;
}

.history-heading h2 {
  font-size: 18px;
}

.history-heading span {
  color: var(--muted);
  font-size: 9px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.history-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.history-item summary {
  display: grid;
  grid-template-columns: 51px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 13px;
  list-style: none;
  cursor: pointer;
}

.history-item summary::-webkit-details-marker { display: none; }

.history-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 9px;
  border-right: 1px solid var(--line);
}

.history-date strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.history-date small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.history-preview {
  min-width: 0;
}

.history-preview strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-preview small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.history-chevron {
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.history-item[open] .history-chevron {
  transform: rotate(90deg);
}

.history-entry {
  margin: 0 13px 11px;
  padding: 12px 13px;
  background: rgba(242, 237, 227, 0.55);
  border-radius: 12px;
}

.history-entry + .history-entry {
  margin-top: -4px;
}

.history-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.history-entry-head strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 400;
}

.history-entry p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 31px 20px 36px;
  color: var(--muted);
  text-align: center;
}

.empty-line {
  width: 34px;
  height: 1px;
  margin-bottom: 13px;
  background: var(--line-strong);
}

.empty-state p {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
}

.empty-state small {
  margin-top: 5px;
  font-size: 8px;
}

.wish-form {
  display: flex;
  gap: 9px;
  margin-top: 3px;
  padding: 7px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(57, 56, 44, 0.05);
}

.wish-form input {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 12px;
}

.wish-form input::placeholder { color: #a19e94; }

.wish-form button {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff9f1;
  background: var(--coral);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}

.wish-form button svg {
  width: 19px;
  height: 19px;
}

.wish-form button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wish-suggestions {
  display: flex;
  gap: 7px;
  margin: 10px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wish-suggestions::-webkit-scrollbar { display: none; }

.wish-suggestions button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
}

.wish-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 11px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.wish-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wish-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 65px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 16px;
  animation: view-in 0.28s ease both;
}

.wish-check {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.wish-check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.wish-check svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish-item.is-done .wish-check {
  color: #fff9f1;
  background: var(--teal);
  border-color: var(--teal);
}

.wish-item.is-done .wish-check svg { opacity: 1; }

.wish-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wish-copy strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  word-break: break-word;
}

.wish-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.wish-item.is-done .wish-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.wish-delete {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.62;
}

.wish-empty {
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

.wish-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
}

.wish-empty small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 28px), 452px);
  padding: 6px;
  background: rgba(39, 53, 47, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 13px 35px rgba(32, 46, 40, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  color: rgba(245, 238, 226, 0.43);
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: 8px;
  cursor: pointer;
  transition: 0.22s ease;
}

.nav-button svg {
  width: 19px;
  height: 19px;
}

.nav-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button.is-active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.is-active svg {
  color: #dda18a;
}

.sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 35, 31, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: backdrop-in 0.2s ease both;
}

.sheet-backdrop[hidden] { display: none; }

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet {
  width: min(100%, 448px);
  padding: 10px 20px calc(21px + env(safe-area-inset-bottom));
  background: var(--paper-soft);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 28px 28px 22px 22px;
  box-shadow: 0 28px 70px rgba(27, 34, 29, 0.32);
  animation: sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-handle {
  width: 34px;
  height: 3px;
  margin: 0 auto 19px;
  background: rgba(48, 55, 48, 0.18);
  border-radius: 999px;
}

.sheet-heading h2 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.sheet-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.identity-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 19px;
}

.identity-options button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
}

.identity-options button.is-current {
  background: rgba(80, 124, 117, 0.08);
  border-color: rgba(80, 124, 117, 0.28);
}

.identity-choice-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff9f1;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
}

.identity-choice-avatar--qing { background: var(--teal); }
.identity-choice-avatar--yue { background: var(--coral); }

.identity-options button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.identity-options strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.identity-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.identity-options i {
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.identity-options button.is-current i {
  background: radial-gradient(circle, var(--teal) 0 45%, transparent 47%);
  border-color: var(--teal);
}

.sheet-close {
  width: 100%;
  min-height: 43px;
  margin-top: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.unlock-sheet {
  text-align: center;
}

.lock-seal {
  display: grid;
  width: 55px;
  height: 55px;
  margin: -45px auto 13px;
  place-items: center;
  color: var(--cream);
  background: var(--forest);
  border: 5px solid var(--paper-soft);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(44, 64, 57, 0.2);
}

.lock-seal svg {
  width: 25px;
  height: 25px;
}

.lock-seal svg rect,
.lock-seal svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unlock-form {
  margin-top: 19px;
  text-align: left;
}

.unlock-form > label {
  display: block;
  margin: 0 0 7px 3px;
  color: var(--muted);
  font-size: 9px;
}

.unlock-input-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.unlock-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  background: transparent;
  border: 0;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.unlock-input-row button {
  min-width: 78px;
  min-height: 43px;
  color: #fff9f1;
  background: var(--coral);
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  min-height: 16px;
  margin: 6px 3px 0;
  color: var(--coral-deep);
  font-size: 9px;
}

.local-preview-button {
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.unlock-footnote {
  margin: 8px 0 0;
  color: #aaa69b;
  font-size: 8px;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(86vw, 390px);
  padding: 11px 15px;
  color: var(--cream);
  background: rgba(38, 58, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(27, 36, 31, 0.25);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 700px) {
  .app-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    min-height: calc(100svh - 48px);
    border-radius: 30px;
  }

  .bottom-nav {
    bottom: 34px;
  }

  .topbar {
    border-radius: 30px 30px 0 0;
  }
}

@media (max-width: 360px) {
  .main-content { padding-right: 13px; padding-left: 13px; }
  .hero-card { padding-right: 17px; padding-left: 17px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 120px; }
  .hero-copy h1 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Supabase account and shared-space flow */
.auth-sheet {
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  text-align: left;
}

.auth-sheet .lock-seal {
  margin-top: -45px;
}

.auth-view[hidden] {
  display: none;
}

.auth-view {
  animation: view-in 0.24s ease both;
}

.auth-form {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.auth-form > label,
.auth-field-label {
  margin: 0 0 6px 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.auth-form > input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
}

.auth-form > input::placeholder {
  color: #aaa69b;
}

.auth-form > input:focus {
  border-color: rgba(186, 113, 92, 0.5);
  background: rgba(255, 255, 255, 0.65);
}

.auth-primary-button {
  width: 100%;
  min-height: 47px;
  margin-top: 3px;
  color: #fff9f1;
  background: var(--coral);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(186, 113, 92, 0.21);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-primary-button:active {
  transform: scale(0.985);
}

.auth-primary-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.auth-switch,
.auth-back {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}

.auth-switch {
  text-decoration: underline;
  text-decoration-color: rgba(48, 55, 48, 0.24);
  text-underline-offset: 4px;
}

.auth-back {
  color: var(--muted);
}

.join-form {
  gap: 0;
}

.join-form .auth-field-label {
  margin-top: 3px;
}

.join-identity-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 13px;
}

.join-identity-picker button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
}

.join-identity-picker button.is-selected {
  background: rgba(80, 124, 117, 0.09);
  border-color: rgba(80, 124, 117, 0.42);
  box-shadow: 0 0 0 2px rgba(80, 124, 117, 0.06);
}

.join-identity-picker .identity-choice-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.join-identity-picker button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.join-identity-picker strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
}

.join-identity-picker small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.join-identity-picker i {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.join-identity-picker button.is-selected i {
  background: radial-gradient(circle, var(--teal) 0 43%, transparent 46%);
  border-color: var(--teal);
}

.auth-message-view {
  padding-top: 4px;
  text-align: center;
}

.auth-message-view .auth-primary-button {
  margin-top: 19px;
}

.account-signout {
  width: 100%;
  min-height: 41px;
  margin-top: 6px;
  color: var(--coral-deep);
  background: rgba(186, 113, 92, 0.06);
  border: 1px solid rgba(186, 113, 92, 0.15);
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
}

.identity-options button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

@media (max-width: 360px) {
  .join-identity-picker {
    grid-template-columns: 1fr;
  }
}

/* Persistent account entry */
[hidden] {
  display: none !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  color: #fff9f1;
  background: var(--forest);
  border: 1px solid rgba(52, 73, 65, 0.18);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(52, 73, 65, 0.16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.login-entry svg {
  width: 15px;
  height: 15px;
}

.login-entry svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Personal private journal */
.private-entry-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 92px;
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(135deg, #e8dfd1, #ddd2c2);
  border: 1px solid rgba(48, 55, 48, 0.09);
  border-radius: 21px;
  box-shadow: 0 12px 28px rgba(57, 56, 44, 0.06);
  cursor: pointer;
}

.private-entry-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(52, 73, 65, 0.09);
  border-radius: 50%;
}

.private-entry-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--cream);
  background: var(--forest);
  border-radius: 14px;
}

.private-entry-icon svg {
  width: 22px;
  height: 22px;
}

.private-entry-icon svg rect,
.private-entry-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.private-entry-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.private-entry-copy small {
  color: var(--coral);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.private-entry-copy strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.private-entry-copy em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-entry-arrow {
  position: relative;
  z-index: 1;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 20px;
}

.personal-heading {
  padding-bottom: 15px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  color: var(--forest);
  background: rgba(80, 124, 117, 0.09);
  border: 1px solid rgba(80, 124, 117, 0.17);
  border-radius: 16px;
}

.privacy-note svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.privacy-note svg rect,
.privacy-note svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-note > span {
  display: flex;
  flex-direction: column;
}

.privacy-note strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.privacy-note small {
  margin-top: 3px;
  color: rgba(52, 73, 65, 0.58);
  font-size: 8px;
}

.personal-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  padding: 14px 16px;
  color: var(--cream);
  background: linear-gradient(135deg, #3a4e47, #2e423a);
  border-radius: 18px;
}

.personal-summary > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px solid rgba(245, 238, 226, 0.13);
}

.personal-summary span {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.personal-summary small {
  color: rgba(245, 238, 226, 0.48);
  font-size: 8px;
}

.personal-summary p {
  margin: 0;
  color: rgba(245, 238, 226, 0.65);
  font-size: 9px;
  line-height: 1.65;
}

.personal-writing-card {
  margin-top: 13px;
  padding: 19px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 15px 36px rgba(57, 56, 44, 0.06);
}

.personal-prompt {
  margin: 15px 0 12px;
  padding-left: 11px;
  color: var(--ink-soft);
  border-left: 2px solid var(--teal);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
}

#personalText {
  display: block;
  width: 100%;
  min-height: 230px;
  padding: 15px;
  resize: vertical;
  color: var(--ink);
  background:
    repeating-linear-gradient(transparent 0 30px, rgba(48, 55, 48, 0.06) 30px 31px),
    rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 31px;
  letter-spacing: 0.02em;
}

#personalText::placeholder {
  color: #a9a79c;
}

#personalText:focus {
  background:
    repeating-linear-gradient(transparent 0 30px, rgba(48, 55, 48, 0.06) 30px 31px),
    rgba(255, 255, 255, 0.54);
  border-color: rgba(80, 124, 117, 0.42);
}

.personal-history-section {
  padding-bottom: 8px;
}

.personal-history-list .history-item summary {
  grid-template-columns: 51px 1fr auto;
}

.personal-history-list .history-preview small {
  white-space: normal;
  line-height: 1.5;
}

.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
}

.nav-button {
  min-width: 0;
}
