/* 毛绒绒时光薄 — a bright little picture book. */
:root {
  --paper: #fbf8f0;
  --card: #fffdf8;
  --white: #fff;
  --blue: #2850c8;
  --blue-soft: #edf1fb;
  --yellow: #f2c94c;
  --yellow-soft: #fff4c9;
  --red: #e6533d;
  --red-soft: #fcebe4;
  --green: #39765a;
  --green-soft: #edf3e9;
  --ink: #332e29;
  --muted: #696a60;
  --line: #d4cfc1;
  --round: 28px;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --poster: "Yuanti SC", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; padding-bottom: calc(112px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select, label { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .55; cursor: wait; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h1, h2, h3, strong { font-weight: 750; }
h1, h2 { font-family: var(--poster); }
ul { padding-left: 1.25rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
.skip-link:focus { clip: auto !important; width: auto !important; height: auto !important; padding: 12px !important; margin: 8px !important; z-index: 100; background: var(--white); }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.app-shell { width: min(calc(100% - 64px), 1040px); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 29px 0 25px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand-mark, .brand > img { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; color: var(--blue); }
.brand-mark svg { width: 100%; height: 100%; }
.wordmark { display: flex; flex-direction: column; gap: 2px; }
.wordmark strong, .wordmark .brand-title { font-family: var(--poster); font-size: 1.375rem; font-weight: 900; letter-spacing: .015em; line-height: 1.35; }
.wordmark small { font-size: .8125rem; font-weight: 450; color: var(--muted); line-height: 1.5; }
.header-tools { display: flex; gap: 9px; flex: 0 0 auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1.7px solid var(--ink); border-radius: 19px; font-size: 1rem; font-weight: 700; line-height: 1.4; background: var(--card); transition: transform .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.primary { color: var(--white); background: var(--blue); }
.button.primary:hover { background: #2148bd; }
.button.secondary { background: var(--card); }
.button.secondary:hover { background: var(--yellow-soft); }
.button.subtle { background: transparent; color: var(--blue); border-color: transparent; }
.button.danger { background: var(--red-soft); color: #a32d1f; border-color: #ad4534; }
.button.small { min-height: 44px; padding: 8px 13px; font-size: .875rem; }
.button.square { width: 46px; min-width: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: var(--card); border: 1.7px solid var(--ink); }
.button.square:hover { background: var(--yellow); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 5px 0; background: none; border: 0; color: var(--blue); font-size: .875rem; font-weight: 700; line-height: 1.5; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button .icon { width: 19px; height: 19px; }
.badge { display: inline-flex; padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; color: var(--muted); }
.site-rule { display: flex; gap: 7px; height: 7px; margin-bottom: 25px; }
.site-rule > span { height: 100%; border-radius: 20px; flex: 1; background: var(--blue); }
.site-rule > span:nth-child(2) { flex: .4; background: var(--yellow); }
.site-rule > span:nth-child(3) { flex: .22; background: var(--red); }
.members-panel { margin-bottom: 2px; }
.members-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; margin-bottom: 14px; }
.members-heading > span, .members-heading > strong, .members-heading > h2 { color: var(--ink); font-size: .9375rem; font-weight: 750; }
.members-heading small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.member-strip { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 22px; margin: 0 -1px; }
.member-strip::-webkit-scrollbar { display: none; }
.pets-button { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 46px; padding: 5px 15px 5px 7px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .9375rem; font-weight: 650; white-space: nowrap; background: var(--card); }
.pets-button.all { padding-left: 14px; }
.pets-button.active { background: var(--yellow); color: var(--ink); }
.pets-button:hover:not(.active) { background: var(--yellow-soft); }
.pets-button.add { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue); padding: 7px 14px; }
.pets-button .icon { width: 21px; height: 21px; }
.all-members-icon, .add-member-icon { display: grid; place-items: center; min-width: 24px; height: 24px; }
.add-member-icon { font-size: 1.45rem; font-weight: 500; line-height: 1; }
.member-avatar { width: 32px; height: 32px; object-fit: cover; object-position: 50% 35%; border-radius: 50%; background: var(--yellow-soft); }
.view-content { animation: arrive .2s ease-out; }
.eyebrow { margin-bottom: 9px; color: var(--blue); font-size: .875rem; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 20px 0 28px; }
.page-head > div { min-width: 0; }
.page-heading { display: flex; align-items: center; gap: 16px; }
.page-heading > div { min-width: 0; }
.chapter-sign { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 68px; border: 1.7px solid var(--ink); border-radius: 32px 32px 20px 20px; background: var(--yellow); color: var(--ink); }
.chapter-sign .icon { width: 30px; height: 30px; }
.chapter-sign.records { background: var(--blue); color: var(--white); }
.chapter-sign.growth { background: var(--green); color: var(--white); }
.chapter-sign.ledger { background: var(--yellow); }
.chapter-sign.profile { background: var(--red); color: #201b14; }
.chapter-divider { display: flex; align-items: center; gap: 15px; margin: 38px 0 24px; color: var(--ink); font-family: var(--poster); font-size: 1.375rem; font-weight: 850; }
.chapter-divider:after { content: ""; height: 7px; flex: 1; border-radius: 999px; background: var(--yellow); }
.chapter-divider > i { color: var(--red); font-style: normal; }
.chapter-divider .icon { color: var(--red); width: 25px; height: 25px; }
.chapter-divider span, .chapter-divider h2 { flex: 0 0 auto; font: inherit; }
.page-head > .button { flex: 0 0 auto; }
.title { font-size: 2rem; font-weight: 900; letter-spacing: -.025em; }
.subtitle { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.hero-card { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 40px; padding: 13px 0 4px; border: 0; background: transparent; }
.hero-copy { min-width: 0; padding-bottom: 4px; }
.hero-copy .eyebrow { margin-bottom: 19px; display: flex; align-items: center; gap: 8px; }
.hero-kicker, .little-asterisk { display: inline-flex; align-items: center; color: var(--red); font-size: 1.5rem; line-height: 1; }
.hero-kicker .icon { width: 23px; height: 23px; }
.poster-title { font-family: var(--poster); font-size: clamp(2rem,4vw,2.8rem); font-weight: 950; line-height: 1.35; letter-spacing: -.025em; }
.poster-title span { color: var(--blue); }
.hero-line { margin-top: 18px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.hero-art { min-width: 0; margin: 0; }
.dada-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1.7px solid var(--ink); border-radius: 34px; }
.hero-caption { position: static; margin-top: 11px; color: var(--muted); text-align: center; font-size: .875rem; line-height: 1.5; }
.caption-dot { display: none; }
.hero-stamp { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--green); font-size: .875rem; font-weight: 700; }
.hero-stamp .icon { width: 30px; height: 30px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.quick-action { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; min-height: 88px; padding: 16px 14px; border: 1.7px solid var(--ink); border-radius: 26px; text-align: left; transition: transform .15s ease; }
.quick-action:hover { transform: translateY(-2px); }
.quick-action:active { transform: translateY(1px); }
.quick-action.blue { color: var(--white); background: var(--blue); }
.quick-action.yellow { color: var(--ink); background: var(--yellow); }
.quick-action.red { color: #201b14; background: var(--red); }
.quick-symbol { display: grid; place-items: center; flex: 0 0 auto; }
.quick-symbol .icon { width: 29px; height: 29px; stroke-width: 1.9; }
.quick-copy { display: block; min-width: 0; }
.quick-action strong { display: block; font-size: 1rem; line-height: 1.45; }
.quick-action small { display: block; margin-top: 4px; font-size: .875rem; font-weight: 450; line-height: 1.45; }
.onboarding-card { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 24px; margin: 24px 0; border: 1.7px solid var(--ink); border-radius: var(--round); background: var(--yellow-soft); }
.onboarding-card h2, .onboarding-card h3 { margin: 9px 0 6px; font-size: 1.25rem; }
.onboarding-card p { color: var(--muted); font-size: .9375rem; }
.onboarding-card > .button { flex: 0 0 auto; }
.overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 27px 0 33px; padding: 0; }
.stat-card { min-width: 0; padding: 18px 22px; border: 0; border-radius: 24px; background: var(--blue-soft); }
.stat-card:nth-child(2) { background: var(--yellow-soft); }
.stat-card:nth-child(3) { background: var(--red-soft); }
.stat-label { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; margin-bottom: 5px; }
.stat-value { color: var(--blue); font-family: var(--poster); font-size: 1.8rem; font-weight: 850; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-unit { margin-left: 5px; font-size: .875rem; color: var(--muted); }
.stat-card > small { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 17px; }
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-size: 1.375rem; font-weight: 850; }
.section-head .eyebrow { margin-bottom: 5px; }
.section-head .text-button { flex-shrink: 0; }
.section-head .subtitle { margin: 0; font-size: .875rem; }
.red-mark { color: var(--red); }
.handdrawn-heart { color: var(--red); font-size: 2.2rem; line-height: 1; }
.home-columns { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 26px; align-items: start; }
.home-columns > * { min-width: 0; }
.paper-card { padding: 23px; background: var(--card); border: 1.7px solid var(--ink); border-radius: var(--round); }
.entry-empty, .search-empty { padding: 32px 24px; text-align: center; background: var(--card); border: 1.7px solid var(--ink); border-radius: var(--round); }
.entry-empty > img { width: 66px; height: 66px; margin: 0 auto 18px; object-fit: contain; }
.entry-empty > .icon, .empty-icon { width: 43px; height: 43px; margin: 0 auto 17px; color: var(--green); }
.entry-empty h3, .search-empty h3 { margin-bottom: 10px; font-size: 1.1875rem; }
.entry-empty p, .search-empty p { max-width: 370px; margin: 0 auto 18px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.entry-empty .button { margin-top: 2px; }
.small-note { display: flex; align-items: center; gap: 18px; margin-top: 19px; padding: 22px; background: var(--yellow-soft); border-color: transparent; }
.small-note p { font-size: .9375rem; line-height: 1.9; }
.note-flower { color: var(--red); font-size: 3.4rem; line-height: 1; flex: 0 0 auto; }
.local-note { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px 10px; margin: 32px 0 8px; color: var(--muted); font-size: .875rem; text-align: center; line-height: 1.8; }
.local-note .text-button { font-size: .875rem; }
.footer-flower { color: var(--red); font-size: 1.5rem; }
.tiny-flower { color: var(--red); font-size: 1.4rem; }
.illustration-note { margin-top: 12px; font-size: .8125rem; line-height: 1.65; color: var(--muted); text-align: center; }
.reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.photo-corner { padding: 18px; background: var(--card); }
.photo-tile { min-width: 0; padding: 0; border: 0; background: transparent; transform: none; }
.photo-tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 14px; }
.photo-tile span, .photo-tile small { display: block; margin-top: 10px; font-size: .875rem; line-height: 1.5; color: var(--ink); }

/* A photo corner contains the owner's own saved pictures only. */
.photo-corner-tools { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.photo-corner-tools > .button { min-height: 44px; }
.photo-corner > .gallery-grid + .photo-corner-tools { margin: 14px 0 0; }
.photo-corner-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 18px; text-align: center; }
.photo-corner-empty > .icon, .photo-corner-empty > .empty-photo-icon, .photo-corner-empty > span[aria-hidden] { display: grid; place-items: center; width: 68px; height: 68px; padding: 17px; border: 1.7px solid var(--ink); border-radius: 30px 30px 22px 22px; color: var(--ink); background: var(--yellow); }
.photo-corner-empty .empty-photo-icon > .icon, .photo-corner-empty > span[aria-hidden] > .icon { width: 32px; height: 32px; }
.photo-corner-empty h3 { font-family: var(--poster); font-size: 1.1875rem; }
.photo-corner-empty p { max-width: 340px; font-size: .9375rem; color: var(--muted); line-height: 1.8; }
.photo-corner-empty .button { margin-top: 3px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.photo-corner .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.gallery-card { min-width: 0; padding: 8px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--white); overflow: hidden; }
.gallery-image-button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 15px; background: var(--yellow-soft); overflow: hidden; }
.gallery-image-button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-image-button:focus-visible { outline-offset: -4px; }
.gallery-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.6; margin: 10px 3px 2px; }
.gallery-source { display: block; font-size: .8125rem; color: var(--muted); margin: 4px 3px 2px; line-height: 1.6; }
.gallery-card-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.gallery-card-actions .text-button, .gallery-card-actions .button { min-height: 44px; font-size: .875rem; padding: 6px; }
.gallery-card-actions .icon { width: 19px; height: 19px; }
.gallery-count { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--ink); font-size: .875rem; white-space: nowrap; }
.gallery-footer { display: flex; justify-content: center; margin-top: 17px; }
.gallery-footer > button, button.gallery-footer { width: 100%; min-height: 46px; border-radius: 17px; }
.gallery-footer > .text-button { border: 1.5px solid var(--blue); background: var(--blue-soft); }
button.gallery-footer { border: 1.5px solid var(--blue); background: var(--blue-soft); color: var(--blue); align-items: center; font-size: .9375rem; font-weight: 700; }
.gallery-empty { padding: 30px 10px; text-align: center; }
.gallery-empty p { font-size: 1rem; color: var(--muted); line-height: 1.8; }

.timeline-list { display: flex; flex-direction: column; gap: 19px; }
.moment-card { padding: 22px; margin-bottom: 18px; overflow: hidden; }
.timeline-list .moment-card { margin-bottom: 0; }
.moment-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; min-height: 44px; }
.avatar-stack { display: flex; align-items: center; flex: 0 0 auto; }
.avatar-stack img { width: 42px; height: 42px; object-fit: cover; object-position: 50% 35%; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow-soft); }
.avatar-stack img + img { margin-left: -13px; }
.moment-author { min-width: 0; font-size: 1rem; line-height: 1.5; }
.moment-author strong { overflow-wrap: anywhere; }
.moment-date { display: block; margin-top: 1px; font-size: .875rem; color: var(--muted); font-weight: 400; }
.moment-menu { margin-left: auto; flex: 0 0 auto; }
.moment-menu.button.square { width: 44px; min-width: 44px; min-height: 44px; border-color: transparent; background: transparent; }
.moment-menu:hover { background: var(--yellow-soft) !important; }
.moment-text { margin-bottom: 16px; font-size: 1rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.moment-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 13px; }
.moment-photos > button, .moment-photo-open { display: block; min-width: 0; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 15px; background: var(--paper); }
.moment-photos img { width: 100%; height: 100%; object-fit: cover; }
.moment-photos.single { grid-template-columns: 1fr; max-width: 460px; }
.moment-photos.single > button, .moment-photos.single .moment-photo-open { aspect-ratio: 4/3; }
.moment-photos.two, .moment-photos.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
.moment-photos.three { grid-template-columns: repeat(3,minmax(0,1fr)); }

.moment-photo-wrap { position: relative; min-width: 0; }
.photo-save-button { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; min-height: 44px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .8125rem; line-height: 1; white-space: nowrap; }
.photo-save-button .icon { width: 18px; height: 18px; }
.photo-save-button:hover { background: var(--yellow-soft); }
.photo-save-button.is-saved { background: var(--yellow); color: #a52d20; }
.photo-save-button.is-saved .icon { fill: var(--red); stroke: #a52d20; }

.moment-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.favorite { color: var(--muted); }
.favorite.is-starred { color: #b02b1d; }
.favorite.is-starred .icon { fill: var(--red-soft); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .875rem; line-height: 1.6; color: var(--muted); background: #f0eee7; }
.tag.blue { color: var(--blue); background: var(--blue-soft); }
.tag.yellow { color: #6b5113; background: var(--yellow-soft); }
.tag.red { color: #a33323; background: var(--red-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }
.example-note { display: block; color: var(--muted); font-size: .875rem; margin-bottom: 15px; }
.demo-switch { display: flex; width: 100%; justify-content: center; padding: 15px; margin: 19px 0; border: 1.5px dashed var(--blue); border-radius: 14px; }
.page-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.searchbox { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 50px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card); color: var(--muted); }
.searchbox input { width: 100%; min-width: 0; padding: 0; font-size: 1rem; border: 0; background: transparent; }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.searchbox .icon { width: 21px; height: 21px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px 1px 5px; }
.filter-row::-webkit-scrollbar { display: none; }
.chip { min-height: 44px; padding: 8px 15px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; font-size: .875rem; white-space: nowrap; }
.chip.active { background: var(--blue); color: var(--white); }
.chip:hover:not(.active) { background: var(--yellow-soft); }
.subsection-tabs { display: flex; gap: 6px; padding: 5px; border: 1.5px solid var(--ink); border-radius: 22px; margin-bottom: 24px; background: var(--card); }
.subsection-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; background: transparent; border-radius: 16px; font-size: .9375rem; font-weight: 650; white-space: nowrap; }
.subsection-tabs button.active { background: var(--green); color: var(--white); }
.chart-card { margin-bottom: 22px; }
.chart-card .section-head { align-items: flex-start; }
.chart-card .section-head h2 { font-size: 1.1875rem; }
.chart-card .section-head .tag { flex: 0 0 auto; }
.chart-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 225px; padding: 20px 10px; gap: 12px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#e4e1d7 45px,transparent 46px); text-align: center; color: var(--muted); }
.chart-placeholder .icon { width: 42px; height: 42px; color: var(--green); }
.chart-placeholder small { font-size: .875rem; }
.chart-svg { display: block; width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.chart-svg text { font-family: var(--body); }
.weight-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 18px; padding: 17px 0; text-align: left; border-bottom: 1px solid var(--line); background: transparent; }
.weight-row:last-child { border-bottom: 0; }
.weight-row > span { min-width: 0; overflow-wrap: anywhere; }
.weight-row > span > small { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }
.weight-row strong { font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.weight-row strong small { font-size: .875rem; color: var(--muted); font-weight: 400; }
.weight-row .tag { margin-right: 7px; }
.ledger-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px; margin-bottom: 19px; background: var(--blue); color: var(--white); border: 1.7px solid var(--ink); border-radius: var(--round); overflow: hidden; }
.ledger-summary p { font-size: 1rem; }
.ledger-summary p > span { margin-left: 12px; font-size: .875rem; }
.ledger-total { font-family: var(--poster); font-size: 2.4rem; font-weight: 900; line-height: 1.3; margin: 12px 0; font-variant-numeric: tabular-nums; }
.ledger-total small { font-size: .9375rem; font-family: var(--body); font-weight: 400; }
.ledger-summary-note { font-size: .875rem; }
.ledger-flower { font-size: 6.5rem; line-height: 1; color: var(--yellow); transform: rotate(10deg); }
.ledger-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ledger-categories .tag { background: var(--card); border: 1px solid var(--line); color: var(--ink); padding: 5px 10px; }
.expense-list { padding-top: 8px; padding-bottom: 8px; }
.expense-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 0; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }
.expense-row:last-child { border-bottom: 0; }
.expense-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--yellow); }
.expense-icon .icon { width: 23px; height: 23px; }
.expense-info { display: block; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.expense-info strong { display: block; font-size: 1rem; line-height: 1.45; }
.expense-info small { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.65; }
.expense-amount { flex: 0 0 auto; text-align: right; font-weight: 750; font-size: 1rem; font-variant-numeric: tabular-nums; }
.expense-amount small { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); font-weight: 400; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; }
.profile-card { padding: 0; overflow: hidden; }
.profile-cover { display: flex; align-items: center; justify-content: center; position: relative; min-height: 158px; padding: 22px; background: var(--yellow); border-bottom: 1.5px solid var(--ink); }
.profile-avatar { width: 110px; height: 110px; border: 2px solid var(--ink); border-radius: 50%; object-fit: cover; object-position: 50% 35%; background: var(--card); z-index: 1; }
.profile-doodle { position: absolute; right: 28px; top: 23px; font-size: 4.2rem; line-height: 1; color: var(--red); transform: rotate(12deg); }
.profile-meta { padding: 24px; }
.profile-meta h2 { font-size: 1.8rem; margin: 9px 0 10px; overflow-wrap: anywhere; }
.intro-text { font-size: 1rem; line-height: 1.85; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 23px 0; padding: 18px; border: 0; border-radius: 20px; background: var(--yellow-soft); }
.profile-facts dt { margin-bottom: 4px; font-size: .875rem; color: var(--muted); }
.profile-facts dd { font-size: 1rem; overflow-wrap: anywhere; }
.settings-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 25px; background: var(--green-soft); }
.settings-card h3 { margin-bottom: 6px; font-size: 1.1875rem; }
.settings-card p { color: var(--muted); font-size: .9375rem; }
.settings-card > .button { flex: 0 0 auto; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; width: min(calc(100% - 16px),620px); padding: 9px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border: 1.7px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; }
.nav-item { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 60px; padding: 6px; background: transparent; border-radius: 21px; color: var(--ink); font-size: .875rem; font-weight: 650; line-height: 1.4; }
.nav-item .icon { width: 24px; height: 24px; }
.nav-item.active { background: var(--blue); color: var(--white); }
.nav-item:hover:not(.active) { background: var(--yellow-soft); }
.compose-fab { position: fixed; z-index: 19; bottom: calc(105px + env(safe-area-inset-bottom)); right: max(24px,calc((100vw - 1040px)/2)); display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 10px 17px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; font-size: .9375rem; font-weight: 750; }
.compose-fab > span:first-child { font-size: 1.65rem; line-height: 1; }
.notice { padding: 14px 16px; margin-bottom: 18px; background: var(--blue-soft); border: 1.5px solid var(--blue); border-radius: 14px; font-size: .9375rem; line-height: 1.8; }
.notice.warning { color: #802719; background: var(--red-soft); border-color: #a94432; }
.sheet { max-width: none; width: min(calc(100% - 40px),620px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1.7px solid var(--ink); border-radius: 30px; color: var(--ink); background: var(--paper); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop, .lightbox::backdrop { background: rgb(35 34 29 / 38%); }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex: 0 0 auto; padding: 23px 25px 20px; border-bottom: 1px solid var(--line); }
.sheet-header h2 { font-size: 1.45rem; }
.sheet-header .eyebrow { font-size: .8125rem; margin-bottom: 6px; }
.sheet-header > .button { flex: 0 0 auto; font-size: 1.6rem; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 17px; }
.form-grid .field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.field > span, .pet-choices legend { font-size: .9375rem; font-weight: 650; }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; min-height: 49px; padding: 11px 13px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); font-size: 1rem; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #7d7e74; opacity: 1; }
.field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%2335342e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.field-help { margin: 13px 0 21px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.form-grid + .field { margin-top: 18px; }
.avatar-editor { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }
.avatar-editor > img { width: 84px; height: 84px; object-fit: cover; object-position: 50% 35%; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow-soft); }
.avatar-editor > div { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
.avatar-editor label { cursor: pointer; }
.pet-choices { margin: 20px 0; padding: 0; min-width: 0; border: 0; }
.pet-choices:first-child { margin-top: 0; }
.pet-choices legend { padding: 0; margin-bottom: 10px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.pet-check { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 17px; font-size: .9375rem; cursor: pointer; background: var(--card); }
.pet-check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pet-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.pet-check img { width: 29px; height: 29px; object-fit: cover; object-position: 50% 35%; border-radius: 50%; }
.post-textarea { min-height: 150px !important; }
.photo-previews, .photo-selection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.photo-previews:empty, .photo-selection-grid:empty { display: none; }
.photo-preview { position: relative; min-width: 0; aspect-ratio: 1; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--ink); border-radius: 12px; }
.photo-remove { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 1.4rem; line-height: 1; background: var(--paper); }
.photo-upload { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 68px; padding: 13px; border: 1.5px dashed var(--blue); border-radius: 22px; color: var(--blue); background: var(--blue-soft); cursor: pointer; font-size: 1rem; font-weight: 650; }
.photo-upload small { font-size: .875rem; font-weight: 400; }
.sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-footnote { color: var(--muted); font-size: .875rem; }
.sheet-footer > div { display: flex; align-items: center; gap: 9px; }
.backup-options { display: flex; flex-direction: column; gap: 16px; }
.backup-option { padding: 19px; border: 1.5px solid var(--ink); border-radius: 23px; background: var(--card); }
.backup-option h3 { font-size: 1.125rem; margin-bottom: 8px; }
.backup-option p { color: var(--muted); margin-bottom: 14px; font-size: .9375rem; line-height: 1.85; }
.backup-option p:last-child { margin-bottom: 0; }
.backup-option small { display: block; margin-top: 12px; color: var(--muted); font-size: .875rem; }
.backup-option label { cursor: pointer; }
.compose-options { display: grid; gap: 14px; }
.compose-options .quick-action { display: grid; grid-template-columns: 29px 1fr; justify-content: flex-start; gap: 2px 17px; min-height: 90px; padding: 19px; }
.compose-options .quick-action > .icon { grid-row: span 2; }
.compose-options .quick-action strong, .compose-options .quick-action small { grid-column: 2; }
.compose-options .quick-action small { margin-top: 2px; }
.lightbox { width: min(calc(100% - 28px),850px); max-height: calc(100dvh - 28px); margin: auto; padding: 17px; border: 2px solid var(--ink); border-radius: 20px; color: var(--ink); background: var(--paper); overflow: auto; }
.lightbox[open] { display: flex; flex-direction: column; gap: 12px; }
.lightbox > button { align-self: flex-end; font-size: 1.5rem; }
.lightbox > img { align-self: center; max-width: 100%; max-height: 72dvh; object-fit: contain; border-radius: 10px; }
.lightbox > p { text-align: center; font-size: .9375rem; }

.lightbox-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; padding-top: 4px; }
.lightbox-actions .button, .lightbox-actions .text-button { min-height: 46px; font-size: .9375rem; }
.lightbox-actions .is-saved { background: var(--yellow); color: var(--ink); }
.lightbox-actions .is-saved .icon { fill: var(--red); stroke: #a52d20; }

.toast { position: fixed; z-index: 1000; left: 50%; bottom: calc(107px + env(safe-area-inset-bottom)); transform: translate(-50%,12px); width: max-content; max-width: calc(100% - 36px); padding: 12px 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--white); text-align: center; font-size: .9375rem; line-height: 1.7; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
@keyframes arrive { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .app-shell { width: min(calc(100% - 40px),680px); }
  .hero-card { gap: 24px; padding: 10px 0; }
  .poster-title { font-size: 2rem; }
  .hero-copy .eyebrow { margin-bottom: 13px; }
  .home-columns { grid-template-columns: 1fr; gap: 30px; }
  .home-columns > section + section .section-head { margin-top: 0; }
  .quick-actions { gap: 10px; }
  .quick-action { gap: 9px; }
  .quick-action small { font-size: .875rem; }
  .profile-grid { gap: 18px; }
  .settings-card { align-items: flex-start; }
}
@media (max-width: 600px) {
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .app-shell { width: calc(100% - 32px); }
  .topbar { gap: 12px; padding: 17px 0 15px; }
  .brand { gap: 9px; }
  .brand-mark, .brand > img { width: 39px; height: 39px; }
  .wordmark strong, .wordmark .brand-title { font-size: 1.1875rem; letter-spacing: 0; }
  .wordmark small { font-size: .75rem; line-height: 1.6; }
  .header-tools .button.square { width: 44px; min-width: 44px; min-height: 44px; }
  .site-rule { height: 6px; margin-bottom: 15px; }
  .members-heading { display: none; }
  .members-heading small { font-size: .8125rem; }
  .members-heading > span, .members-heading > strong, .members-heading > h2 { font-size: .875rem; }
  .member-strip { padding-bottom: 17px; gap: 9px; }
  .pets-button { min-height: 44px; font-size: .875rem; }
  .hero-card { display: flex; flex-direction: column; gap: 16px; padding: 2px 0 0; border: 0; border-radius: 0; background: transparent; }
  .hero-copy { width: 100%; padding: 0 4px; }
  .hero-copy .eyebrow { display: none; }
  .poster-title { font-size: 1.95rem; line-height: 1.35; letter-spacing: -.035em; }
  .hero-line { margin-top: 11px; font-size: .9375rem; line-height: 1.8; }
  .hero-stamp { display: none; }
  .hero-art { width: 100%; }
  .dada-art { width: 100%; border: 1.7px solid var(--ink); border-radius: 29px; }
  .hero-caption { display: none; }
  .quick-actions { gap: 10px; margin: 17px 0; }
  .quick-action { flex-direction: column; justify-content: center; gap: 5px; min-height: 82px; padding: 11px 6px; border-radius: 24px; text-align: center; }
  .quick-symbol .icon { width: 27px; height: 27px; }
  .quick-action strong { font-size: .9375rem; }
  .quick-action small { display: none; }
  .onboarding-card { align-items: flex-start; flex-direction: column; gap: 17px; padding: 20px; margin: 22px 0; }
  .onboarding-card h2, .onboarding-card h3 { font-size: 1.1875rem; }
  .onboarding-card .button { align-self: stretch; }
  .overview-grid { margin: 25px 0 29px; padding: 0; gap: 9px; }
  .stat-card { padding: 15px 10px; border-radius: 21px; }
  .stat-label { font-size: .875rem; min-height: 21px; }
  .stat-value { font-size: 1.55rem; }
  .stat-unit { font-size: .875rem; margin-left: 4px; }
  .section-head { margin: 25px 0 15px; gap: 10px; }
  .section-head h2 { font-size: 1.25rem; }
  .section-head .eyebrow { font-size: .8125rem; }
  .paper-card { padding: 19px; border-radius: 25px; }
  .moment-card { padding: 18px; }
  .entry-empty, .search-empty { padding: 28px 20px; }
  .entry-empty p { font-size: .9375rem; }
  .entry-empty > img { width: 66px; height: 66px; }
  .photo-corner { padding: 15px; }
  .photo-corner-empty { padding: 23px 8px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gallery-card { padding: 7px; border-radius: 19px; }
  .gallery-image-button { border-radius: 13px; }
  .gallery-card-actions { justify-content: center; }
  .gallery-card-actions .text-button { font-size: .875rem; }
  .photo-corner-tools { justify-content: space-between; }
  .photo-save-button { right: 4px; bottom: 4px; }
  .moment-photos.three .photo-save-button, .moment-photos:not(.single):not(.two):not(.four) .photo-save-button { padding: 0 6px; gap: 3px; font-size: .75rem; }
  .reference-grid { gap: 12px; }
  .photo-tile img { aspect-ratio: 4/5; border-radius: 12px; }
  .photo-tile span { font-size: .875rem; }
  .small-note { padding: 20px 17px; gap: 14px; }
  .note-flower { font-size: 2.8rem; }
  .small-note p { font-size: .875rem; }
  .page-head { margin: 16px 0 24px; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .page-head > div { flex-basis: 100%; }
  .page-head > .button { align-self: flex-start; }
  .title { font-size: 1.65rem; line-height: 1.4; }
  .page-heading { gap: 13px; }
  .chapter-sign { width: 49px; height: 58px; border-radius: 27px 27px 18px 18px; }
  .chapter-sign .icon { width: 26px; height: 26px; }
  .chapter-divider { font-size: 1.25rem; margin: 30px 0 21px; gap: 12px; }
  .subtitle { font-size: .9375rem; }
  .page-head .eyebrow { font-size: .8125rem; }
  .subsection-tabs { gap: 3px; padding: 4px; }
  .subsection-tabs button { min-height: 44px; padding: 8px 4px; font-size: .875rem; border-radius: 16px; }
  .chart-card .section-head { gap: 8px; flex-wrap: wrap; }
  .chart-card .section-head h2 { font-size: 1.125rem; }
  .chart-placeholder { min-height: 210px; }
  .ledger-summary { padding: 23px 20px; }
  .ledger-total { font-size: 2.1rem; }
  .ledger-flower { font-size: 4.8rem; }
  .ledger-categories { gap: 7px; }
  .expense-list { padding: 4px 14px; }
  .expense-row { gap: 9px; }
  .expense-icon { width: 37px; height: 37px; border-radius: 10px; }
  .expense-info strong, .expense-amount { font-size: .9375rem; }
  .expense-amount { max-width: 33%; overflow-wrap: anywhere; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 0; }
  .profile-meta { padding: 22px; }
  .settings-card { flex-direction: column; gap: 18px; padding: 20px; }
  .settings-card > .button { align-self: stretch; }
  .bottom-nav { gap: 3px; padding: 7px 8px calc(9px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .nav-item { min-height: 58px; font-size: .875rem; padding: 6px 2px; border-radius: 18px; }
  .compose-fab { right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sheet { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 30px 30px 0 0; border-bottom: 0; }
  .sheet-header { padding: 21px 19px 17px; gap: 12px; }
  .sheet-header h2 { font-size: 1.25rem; }
  .sheet-body { padding: 21px 19px calc(24px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .sheet-footer { flex-direction: column; align-items: stretch; gap: 14px; }
  .sheet-footer > div { width: 100%; }
  .sheet-footer > div > .button.primary { flex: 1; }
  .form-footnote { text-align: center; }
  .avatar-editor > img { width: 76px; height: 76px; }
  .photo-upload { flex-wrap: wrap; min-height: 66px; }
  .compose-options .quick-action { flex-direction: initial; text-align: left; }
  .compose-options .quick-action small { display: block; }
  .lightbox { padding: 12px; }
  .toast { bottom: calc(98px + env(safe-area-inset-bottom)); }
  .local-note { margin-top: 27px; gap: 3px 7px; }
}
@media (max-width: 360px) {
  .wordmark strong { font-size: 1.0625rem; }
  .wordmark small { font-size: .75rem; }
  .brand-mark, .brand > img { width: 34px; height: 34px; }
  .brand { gap: 7px; }
  .header-tools .button.square { width: 44px; min-width: 44px; min-height: 44px; }
  .poster-title { font-size: 1.8rem; }
  .stat-card { padding: 14px 8px; }
  .stat-label { font-size: .875rem; }
  .stat-value { font-size: 1.4rem; }
  .quick-actions { gap: 8px; }
  .quick-action strong { font-size: .875rem; }
  .profile-facts { gap: 16px 12px; }
  .avatar-editor { gap: 12px; }
  .gallery-grid { gap: 9px; }
  .gallery-card { padding: 6px; }
  .photo-corner .gallery-grid { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
