:root {
  color-scheme: light;
  --ink: #6f3650;
  --ink-soft: #99667c;
  --pink: #d85f91;
  --pink-deep: #b73f73;
  --pink-soft: #f6ccdc;
  --green: #789843;
  --green-soft: #e7f0ca;
  --blue-soft: #d7edf3;
  --paper: rgba(255, 252, 253, .7);
  --line: rgba(166, 82, 119, .16);
  --shadow: 0 14px 36px rgba(121, 52, 83, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f6eaf0; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
    url("./assets/dreamy-background.png"),
    radial-gradient(circle at 15% 20%, #f8cce0 0 16%, transparent 37%),
    radial-gradient(circle at 84% 22%, #d9efc9 0 17%, transparent 36%),
    radial-gradient(circle at 62% 78%, #cfe9f1 0 18%, transparent 38%),
    linear-gradient(145deg, #fffafd, #f8eff4);
  background-size: cover;
  background-position: center;
}
.ambient::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(2px); background: rgba(255,255,255,.12); }

.app-shell { width: min(1280px, calc(100% - 36px)); min-height: calc(100vh - 36px); margin: 18px auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.side-nav { position: sticky; top: 18px; height: calc(100vh - 36px); padding: 22px 14px; border: 1px solid rgba(255,255,255,.68); border-radius: 30px; background: rgba(255,255,255,.42); backdrop-filter: blur(28px) saturate(145%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.85); display: flex; flex-direction: column; gap: 8px; }
.brand-mark { display: flex; gap: 10px; align-items: center; padding: 8px 9px 22px; font-family: Georgia, serif; font-size: 1.05rem; }
.brand-dot { width: 15px; height: 15px; border-radius: 45% 55% 60% 40%; background: linear-gradient(145deg, #e97dad, #9fca69); box-shadow: 0 0 0 5px rgba(255,255,255,.42); }
.side-link, .privacy-link { border: 0; background: transparent; min-height: 48px; border-radius: 16px; text-align: left; padding: 0 14px; cursor: pointer; transition: .22s ease; }
.side-link { display: flex; align-items: center; gap: 12px; font-size: .94rem; }
.side-link span { color: var(--ink-soft); font-size: .72rem; letter-spacing: .08em; }
.side-link:hover, .side-link.active { background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(133,67,95,.08); color: var(--pink-deep); }
.privacy-link { margin-top: auto; font-size: .78rem; color: var(--ink-soft); text-align: center; }

.main-stage { min-width: 0; }
.view { display: none; max-width: 1030px; margin: 0 auto; padding: 14px 12px 110px; }
.view.active { display: block; animation: arrive .32s ease both; }
@keyframes arrive { from { opacity: 0; } }
.mobile-header, .bottom-nav { display: none; }

.glass { border: 1px solid rgba(255,255,255,.78); background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,235,244,.3)); backdrop-filter: blur(30px) saturate(145%); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 10px 24px rgba(122,58,85,.08); }
.paper { border: 1px solid rgba(255,255,255,.78); background: var(--paper); backdrop-filter: blur(28px) saturate(135%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.95); }
.eyebrow { margin: 0 0 7px; color: var(--pink-deep); font-size: .72rem; letter-spacing: .15em; font-weight: 500; }

.relationship-hero { position: relative; min-height: 240px; border-radius: 32px; padding: 32px; overflow: hidden; }
.relationship-hero::before { content: ""; position: absolute; width: 280px; height: 280px; right: -60px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(188,222,125,.52), rgba(247,191,216,.2) 45%, transparent 70%); }
.relationship-hero h1 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); line-height: .95; color: var(--pink-deep); letter-spacing: -.045em; }
.hero-note { margin: 11px 0 0; color: var(--ink-soft); }
.countdown-row { position: absolute; z-index: 2; left: 32px; bottom: 26px; display: flex; gap: 10px; }
.mini-glass { min-height: 46px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.46); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(123,56,84,.08); cursor: pointer; transition: .2s ease; }
.mini-glass:hover, .mini-glass:active { transform: translateY(-2px); background: rgba(255,255,255,.66); }
.mini-glass span, .mini-glass strong { display: block; }
.mini-glass span { font-size: .72rem; color: var(--ink-soft); }
.mini-glass strong { margin-top: 2px; color: var(--green); font-size: .9rem; font-weight: 500; }
.hero-mascots { position: absolute; z-index: 1; right: 34px; bottom: 20px; display: flex; align-items: end; gap: 0; }

.sprite { background-image: url("./assets/mascot-sprites.png"); background-repeat: no-repeat; background-size: 200% 200%; image-rendering: pixelated; width: 86px; height: 86px; }
.sprite-bunny { background-image: url("./assets/xiaoyu-bunny-green-v3.png"); background-size: contain; background-position: center; }
.sprite-merien { background-image: url("./assets/merien-colorblock-v2.png"); background-size: contain; background-position: center; }
.hero-mascots .sprite-merien { margin-left: -10px; }
.sprite-auden { background-position: 0 100%; }
.sprite-clawd { background-image: url("./assets/clawd.svg"); background-size: contain; background-position: center; }

.search-symbol { width: 16px; height: 16px; display: inline-block; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-symbol::after { content: ""; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }

.calendar-panel { margin-top: 18px; border-radius: 30px; padding: 26px; }
.panel-head, .section-heading, .detail-topbar, .diary-heading, .annotation-author, .sheet-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-head h2, .section-heading h2 { margin: 0; font-weight: 500; font-size: 1.35rem; }
.segmented { display: inline-flex; border-radius: 15px; padding: 4px; }
.segment { min-height: 38px; min-width: 48px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ink-soft); }
.segment.active { background: rgba(211,83,137,.86); color: white; box-shadow: 0 5px 14px rgba(176,57,108,.2), inset 0 1px 0 rgba(255,255,255,.45); }
.month-navigation { margin: 16px 0 9px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; color: var(--ink-soft); font-size: .82rem; }
.round-glass, .icon-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.48); box-shadow: inset 0 1px 0 #fff; cursor: pointer; font-size: 1.4rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.weekday { padding: 9px 0; text-align: center; color: var(--ink-soft); font-size: .75rem; }
.calendar-day { aspect-ratio: 1.12; min-height: 52px; border: 0; border-radius: 17px; background: rgba(255,255,255,.39); cursor: pointer; position: relative; color: var(--ink); transition: .18s ease; }
.calendar-day:hover { transform: translateY(-2px); background: rgba(255,255,255,.74); }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.today { box-shadow: inset 0 0 0 1.5px rgba(210,83,137,.6); }
.calendar-day.has-entry::after { content: "✦"; position: absolute; right: 8px; bottom: 5px; color: var(--green); font-size: .72rem; }
.calendar-day.selected { color: white; background: linear-gradient(145deg, #e173a2, #c94e83); box-shadow: 0 9px 20px rgba(184,63,116,.22), inset 0 1px 0 rgba(255,255,255,.48); }
.calendar-day.selected::after { color: #eff7d5; }

.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
#calendar-list-view { margin-top: 22px; }
.year-month { padding: 15px; border-radius: 18px; background: rgba(255,255,255,.44); cursor: pointer; border: 1px solid transparent; }
.year-month:hover { border-color: rgba(214,95,145,.28); }
.year-month h3 { margin: 0 0 8px; font-weight: 500; }
.mini-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(142,95,115,.09); }
.mini-dots i.filled { background: rgba(122,154,67,.72); }

.page-heading { padding: 28px 6px 18px; }
.page-heading h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 400; color: var(--pink-deep); }
.page-heading > p:last-child, .mood-heading p { color: var(--ink-soft); }
.detail-topbar { padding: 4px 2px 14px; color: var(--ink-soft); }
.back-button { min-height: 44px; padding: 0 16px; border-radius: 15px; cursor: pointer; }
.diary-paper { border-radius: 32px; padding: clamp(24px, 5vw, 56px); }
.diary-heading { align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.diary-heading h1 { margin: 0; max-width: 720px; font-family: Georgia, "Songti SC", serif; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.18; font-weight: 400; color: #803957; }
.writing { flex: 0 0 auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 6px 11px; border-radius: 999px; background: rgba(248,205,222,.62); color: var(--pink-deep); font-size: .77rem; }
.diary-body { max-width: 760px; margin: 34px auto; font-family: Georgia, "Songti SC", serif; font-size: 1.07rem; line-height: 2; color: #63394b; }
.diary-body p { position: relative; margin: 0 0 1.4em; padding: 5px 8px; border-radius: 8px; cursor: text; }
.diary-body p:hover { background: rgba(249,210,226,.2); }
.diary-body .mark-highlight { background: rgba(241,232,123,.58); border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.diary-body .mark-wave { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: #e06e9e; text-underline-offset: 5px; }
.diary-body p::after { content: attr(data-reaction); position: absolute; right: -30px; top: 2px; color: var(--pink); font-family: sans-serif; }
.selection-toolbar { position: fixed; z-index: 14; width: max-content; padding: 5px; border: 0; border-radius: 15px; color: white; background: rgba(48,45,48,.94); backdrop-filter: blur(18px); box-shadow: 0 8px 24px rgba(45,26,35,.24); transform: translateX(-50%); }
.selection-toolbar button { position: relative; z-index: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: inherit; padding: 0 12px; cursor: pointer; }
.selection-toolbar button:hover { background: rgba(255,255,255,.13); }
.daily-weather, .annotations-section { padding-top: 26px; border-top: 1px solid var(--line); margin-top: 28px; }
.text-button { border: 0; background: transparent; color: var(--pink-deep); cursor: pointer; padding: 9px 2px; }
.chart-wrap { width: 100%; height: 190px; margin-top: 18px; }
.chart-wrap.large { height: 280px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-legend { display: flex; justify-content: center; gap: 22px; color: var(--ink-soft); font-size: .78rem; }
.chart-legend i { display: inline-block; width: 16px; height: 6px; border-radius: 999px; margin-right: 6px; }
.chart-legend .positive { background: #dd6b9b; }
.chart-legend .negative { background: #7997c9; }
.weather-summary { max-width: 720px; margin: 18px auto 0; color: var(--ink-soft); line-height: 1.7; }
.empty-note { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.42); color: var(--ink-soft); }
.annotation-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 12px; padding: 15px; border-radius: 17px; background: rgba(250,220,232,.34); }
.annotation-item .tiny { width: 48px; height: 48px; }
.annotation-item blockquote { margin: 0 0 6px; color: var(--ink-soft); font-size: .8rem; }
.annotation-item p { margin: 0; }
.entry-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

.entry-list { display: grid; gap: 12px; }
.entry-card { width: 100%; padding: 22px; border-radius: 22px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: center; transition: .2s ease; }
.entry-card:hover { transform: translateY(-2px); }
.entry-card time { color: var(--pink-deep); font-family: Georgia, serif; font-size: 1.25rem; }
.entry-card h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 500; }
.entry-card p { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.entry-card .card-arrow { font-size: 1.4rem; color: var(--ink-soft); }
.search-box { border-radius: 24px; padding: 22px; }
.search-box > label { display: block; margin-bottom: 8px; font-size: .85rem; color: var(--ink-soft); }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 0 15px; min-height: 52px; border-radius: 16px; background: rgba(255,255,255,.64); }
.search-input-row input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.date-filter { display: flex; gap: 12px; margin-top: 12px; }
.date-filter label { flex: 1; color: var(--ink-soft); font-size: .8rem; }
.date-control { width: 100%; min-height: 46px; margin-top: 6px; padding: 0 13px; border: 1px solid rgba(255,255,255,.76); border-radius: 15px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 6px 14px rgba(120,56,84,.06); display: flex; align-items: center; justify-content: space-between; color: var(--ink); cursor: pointer; }
.date-control svg { width: 22px; height: 22px; fill: none; stroke: var(--pink-deep); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.search-box { position: relative; z-index: 2; }
.date-picker { position: absolute; z-index: 8; right: 22px; width: min(320px, calc(100% - 44px)); margin-top: 9px; padding: 14px; border-radius: 22px; background: rgba(255,251,253,.93); box-shadow: inset 0 1px 0 white, 0 16px 34px rgba(105,48,75,.14); }
.date-picker-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; margin-bottom: 8px; }
.date-picker-head button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.46); cursor: pointer; font-size: 1.25rem; }
.date-picker-head strong { font-weight: 500; }
.date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-picker-grid span { padding: 5px 0; text-align: center; color: var(--ink-soft); font-size: .68rem; }
.date-picker-day { aspect-ratio: 1; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-size: .78rem; }
.date-picker-day:hover { background: rgba(255,255,255,.7); }
.date-picker-day.active { color: white; background: var(--pink); }
.date-picker-day.empty { pointer-events: none; }
.result-count { color: var(--ink-soft); }

.mood-heading { display: flex; justify-content: space-between; align-items: end; }
.mood-highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mood-card { padding: 18px; border-radius: 22px; min-height: 130px; position: relative; overflow: hidden; }
.mood-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -25px; bottom: -30px; border-radius: 50%; background: var(--card-color); filter: blur(14px); opacity: .55; }
.mood-card span { color: var(--ink-soft); font-size: .83rem; }
.mood-card strong { display: block; margin-top: 13px; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 400; color: var(--pink-deep); }
.mood-card small { color: var(--green); }
.mood-chart-panel, .all-moods { margin-top: 14px; padding: 25px; border-radius: 28px; }
.event-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }
.event-strip button { border: 0; border-radius: 16px; background: rgba(255,255,255,.47); padding: 13px; text-align: left; cursor: pointer; }
.event-strip time, .event-strip strong, .event-strip span { display: block; }
.event-strip time { font-size: .72rem; color: var(--ink-soft); }
.event-strip strong { margin: 5px 0; font-size: .88rem; }
.event-strip span { color: var(--green); font-size: .75rem; }
.axis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 22px; }
.axis-item { display: grid; grid-template-columns: 72px 1fr 34px; gap: 9px; align-items: center; font-size: .84rem; }
.axis-track { height: 8px; border-radius: 999px; background: rgba(133,83,104,.1); overflow: hidden; }
.axis-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #efa3c2, #d65f91); }
.axis-item.desire .axis-fill { background: linear-gradient(90deg, #cadf98, #789843); }
.axis-item strong { font-weight: 500; text-align: right; }

.anniversary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.anniversary-card { min-height: 250px; padding: 25px; border-radius: 26px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.75); text-align: left; color: inherit; cursor: pointer; }
.anniversary-card.featured { background: linear-gradient(145deg, rgba(247,203,220,.86), rgba(255,255,255,.73)); }
.anniversary-card .big-date { font-family: Georgia, serif; font-size: 2.5rem; color: var(--pink-deep); }
.anniversary-card h2 { margin: 72px 0 8px; font-weight: 500; }
.anniversary-card p { color: var(--ink-soft); }
.anniversary-card::after { content: "›"; position: absolute; right: 23px; bottom: 21px; color: var(--pink-deep); font-size: 1.25rem; opacity: .45; }
.anniversary-card:hover { transform: translateY(-2px); }
.anniversary-archive { border-radius: 30px; padding: clamp(26px, 5vw, 52px); }
.anniversary-archive h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 400; color: var(--pink-deep); font-size: clamp(2.3rem, 5vw, 4rem); }
.anniversary-archive > p:not(.eyebrow) { color: var(--ink-soft); }
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.year-tab { min-width: 72px; min-height: 40px; border: 1px solid rgba(203,91,138,.18); border-radius: 13px; background: rgba(255,255,255,.46); color: var(--ink-soft); cursor: pointer; }
.year-tab.active { color: white; background: rgba(204,76,131,.82); }
.anniversary-empty { padding: 34px 18px; border-radius: 20px; text-align: center; color: var(--ink-soft); background: rgba(255,255,255,.4); }

.modal-backdrop, .sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(95,47,69,.22); backdrop-filter: blur(8px); }
.login-card { width: min(420px, 100%); border-radius: 32px; padding: 34px; text-align: center; position: relative; }
.login-clawd { margin: 0 auto 12px; }
.login-card h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: 2rem; }
.login-card p { color: var(--ink-soft); }
.login-card label { display: block; text-align: left; margin: 22px 0 7px; color: var(--ink-soft); font-size: .82rem; }
.login-card input, .annotation-sheet textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.6); padding: 14px; outline: 0; color: var(--ink); }
.primary-glass { min-height: 48px; border: 1px solid rgba(255,255,255,.62); border-radius: 15px; background: linear-gradient(145deg, rgba(226,105,155,.92), rgba(187,59,114,.9)); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 12px 25px rgba(173,53,105,.2); cursor: pointer; padding: 0 20px; }
.login-card .primary-glass { width: 100%; margin-top: 12px; }
.login-card small { display: block; margin-top: 11px; color: var(--ink-soft); }
.sheet-backdrop { align-items: end; }
.annotation-sheet { width: min(620px, 100%); border-radius: 28px 28px 16px 16px; padding: 17px 24px 24px; }
.sheet-handle { width: 46px; height: 5px; margin: 0 auto 17px; border-radius: 999px; background: rgba(113,53,80,.2); }
.annotation-author { justify-content: flex-start; }
.annotation-author h2 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.annotation-sheet blockquote { margin: 17px 0; padding: 12px 14px; border-left: 3px solid var(--pink-soft); background: rgba(255,255,255,.44); color: var(--ink-soft); font-size: .85rem; }
.sticker-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.sticker-picker button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.5); cursor: pointer; }
.sticker-picker button.active { color: white; background: var(--pink); }
.sheet-actions { justify-content: flex-end; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; display: block; }
  .side-nav { display: none; }
  .main-stage { padding: 16px 12px 100px; }
  .mobile-header { display: block; position: static; width: auto; min-height: 0; margin: 4px 8px 22px; padding: 0; pointer-events: none; }
  .mobile-title { font-family: Georgia, serif; }
  .bottom-nav { display: flex; position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 620px); min-height: 68px; border-radius: 25px; padding: 7px 9px; align-items: stretch; justify-content: space-around; border: 1px solid rgba(255,255,255,.72); background: linear-gradient(145deg, rgba(255,255,255,.44), rgba(250,226,236,.22)); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(119,56,82,.08); }
  .bottom-link { flex: 1; min-width: 0; border: 0; border-radius: 17px; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink-soft); font-size: .68rem; cursor: pointer; }
  .bottom-link > span { line-height: 1; }
  .nav-icon { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .bottom-link.nav-home { margin-top: 0; }
  .bottom-link.nav-home .nav-icon { width: 24px; height: 24px; }
  .bottom-link.active { color: var(--pink-deep); background: transparent; text-shadow: 0 2px 9px rgba(196,67,123,.2); }
  .bottom-link.active .nav-icon { filter: none; }
  .view { padding: 0 0 30px; }
  .mood-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-topbar { display: none; }
  .anniversary-grid { grid-template-columns: 1fr; }
  .anniversary-card { min-height: 190px; }
  .anniversary-card h2 { margin-top: 45px; }
}

@media (max-width: 620px) {
  .main-stage { padding-inline: 9px; }
  .relationship-hero { min-height: 276px; padding: 24px 20px; border-radius: 27px; }
  .relationship-hero h1 { font-size: 3.35rem; }
  .hero-mascots { right: 15px; bottom: 56px; gap: 0; }
  .sprite { width: 70px; height: 70px; }
  .countdown-row { left: 16px; right: 16px; bottom: 17px; gap: 7px; }
  .countdown-row .mini-glass { flex: 1; padding-inline: 10px; background: #fffafd; backdrop-filter: none; }
  .calendar-panel { padding: 18px 12px; border-radius: 26px; }
  .panel-head { align-items: flex-start; }
  .panel-head h2 { font-size: 1.15rem; }
  .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 42px; border-radius: 13px; }
  .calendar-day.has-entry::after { right: 5px; bottom: 3px; }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
  .diary-paper { padding: 25px 18px; border-radius: 26px; }
  .diary-heading h1 { font-size: 2rem; }
  .writing { display: none; }
  .diary-body { font-size: 1rem; line-height: 1.9; }
  .diary-body p::after { right: 0; top: -15px; }
  .selection-toolbar { max-width: calc(100vw - 18px); }
  .selection-toolbar button { padding: 0 8px; font-size: .75rem; }
  .chart-wrap { height: 160px; }
  .chart-wrap.large { height: 210px; }
  .entry-card { grid-template-columns: 1fr auto; gap: 8px; padding: 17px; }
  .entry-card time { grid-column: 1 / -1; font-size: .85rem; }
  .entry-card p { display: none; }
  .date-filter { display: grid; }
  .mood-chart-panel, .all-moods { padding: 19px 14px; }
  .section-heading { align-items: flex-start; }
  .event-strip { grid-template-columns: 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .mood-dog { width: 64px; height: 64px; }
  .entry-pager { display: grid; grid-template-columns: repeat(3, 1fr); }
  .entry-pager .mini-glass { padding-inline: 5px; }
}

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