@font-face {
  font-family:BearTitle;
  src:url('/assets/fonts/ZCOOLKuaiLe-UI.woff2') format('woff2');
  font-display:swap
}
:root {
  --bg:#fff8ed;
  --paper:#fffcf6;
  --ink:#4b2d22;
  --muted:#896b5a;
  --line:#bb8968;
  --soft:#ebd3bc;
  --honey:#ffe09a;
  --peach:#ffd9cb;
  --coral:#ce7f70;
  --error:#984e43;
  --viewer:#33231e;
  --title:BearTitle,'Microsoft YaHei',sans-serif
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.5 'Microsoft YaHei','PingFang SC',system-ui,sans-serif
}
button,input,textarea {
  font:inherit;
  color:inherit
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button {
  border:0;
  background:none
}
button:disabled {
  cursor:wait;
  opacity:.6
}
button,a {
  touch-action:manipulation
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #98613e;
  outline-offset:3px
}
a {
  color:inherit
}
svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
img {
  display:block;
  max-width:100%
}
.hidden {
  display:none!important
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
body.modal-open {
  overflow:hidden
}
.den-shell,.cover-shell {
  width:min(calc(100% - 24px),480px);
  margin:12px auto 0
}
.den-upper-grid {
  display:block
}
figure {
  margin:0
}
.den-scene,.cover-scene {
  position:relative;
  overflow:hidden;
  border-radius:25px;
  box-shadow:0 5px 12px #b6814020
}
.den-scene>img,.cover-scene>img {
  width:100%;
  height:auto;
  aspect-ratio:2400/1792
}
.together-badge {
  position:absolute;
  left:40%;
  top:10.3%;
  width:42%;
  height:17%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  line-height:1.2;
  white-space:nowrap
}
.together-label {
  font-size:clamp(10px,2.8vw,14px);
  font-weight:600
}
.together-label strong {
  font:700 clamp(23px,6vw,31px)/1 system-ui,sans-serif;
  color:#d56d66;
  font-variant-numeric:tabular-nums
}
.timer-parts {
  display:flex;
  gap:3px;
  margin-top:5px;
  font-size:clamp(9px,2.3vw,12px);
  color:#754b34
}
.timer-parts b {
  font-weight:600;
  font-variant-numeric:tabular-nums;
  margin-right:1px
}
/* The two beans sit on the page, with their original avatars overlapping the left edge. */
.couple-softpads {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  margin-top:18px
}
.couple-pad {
  min-width:0
}
.wish-action {
  position:relative;
  isolation:isolate;
  width:100%;
  height:76px;
  padding:5px 5px 5px 55px;
  display:flex;
  align-items:center;
  justify-content:center
}
.wish-action:before {
  content:'';
  position:absolute;
  inset:1px 0 1px 21px;
  background:linear-gradient(120deg,#ffe9b3,#ffdd8e);
  border-radius:48% 57% 51% 46% / 42% 52% 55% 59%;
  z-index:-1
}
.wish-avatar {
  position:absolute;
  left:0;
  top:8px;
  width:60px;
  height:60px;
  border:2px solid #fffaf2;
  border-radius:50%;
  overflow:hidden;
  background:#ffdcd8;
  box-shadow:0 3px 5px #bc8e5430
}
.wish-avatar img {
  width:100%;
  height:100%;
  object-fit:contain
}
.wish-heart {
  position:absolute;
  right:8px;
  top:1px;
  width:20px;
  height:20px;
  fill:#f58a8b;
  stroke:#fff8ed;
  stroke-width:2;
  transform:rotate(-18deg)
}
.wish-copy {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  white-space:nowrap
}
.wish-copy strong {
  font:16px/1.4 var(--title)
}
.wish-copy small {
  font-size:12px;
  color:#765037
}
.wish-copy b {
  font-weight:500;
  font-variant-numeric:tabular-nums
}
.mood-action {
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:44px;
  padding:0;
  font-size:12px;
  color:#78513c
}
.mood-face {
  width:21px;
  height:21px;
  flex-shrink:0
}
.mood-count {
  white-space:nowrap
}
.mood-count b {
  font-weight:500
}
.signal-strip {
  border-block:1px solid var(--soft);
  display:flex;
  align-items:center;
  gap:8px;
  min-height:50px;
  margin-top:4px
}
.activity-heart {
  font:32px/1 system-ui;
  color:#ef817b;
  margin-left:5px
}
.ticker-content {
  display:flex;
  align-items:center;
  gap:9px;
  flex:1;
  min-width:0
}
.ticker-content strong {
  font-size:13px;
  font-weight:400;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.ticker-content time {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}
.footprint-btn {
  width:44px;
  min-width:44px;
  height:48px;
  padding:12px;
  color:#946246
}
.footprint-btn svg {
  width:20px;
  height:20px
}
/* An asymmetric sheet and inset stitching carry the composer, not a rectangular card stack. */
.letter-paper {
  position:relative;
  isolation:isolate;
  margin-top:17px;
  padding:17px 15px 14px;
  border:1.5px solid #d99d73;
  border-radius:12% 8% 9% 7% / 7% 8% 6% 9%;
  background:var(--paper);
  box-shadow:0 4px 5px #bb896813
}
.letter-stitch {
  position:absolute;
  inset:6px;
  border:1px dashed #efc9a6;
  border-radius:inherit;
  pointer-events:none;
  z-index:-1
}
.letter-content {
  position:relative
}
h1,h2,h3,p {
  margin:0
}
.letter-content h1 {
  display:table;
  position:relative;
  font:21px/1.4 var(--title);
  margin:0 0 8px;
  z-index:0
}
.letter-content h1:after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:var(--peach);
  border-radius:50%;
  z-index:-1
}
.letter-stamp {
  position:absolute;
  right:16px;
  top:15px;
  width:34px;
  height:40px;
  border:1.5px solid #f1c6a8;
  outline:1px dashed #ecc4a6;
  background:#fff0df;
  transform:rotate(7deg);
  display:grid;
  place-items:center;
  opacity:.8
}
.stamp-heart {
  width:20px;
  height:20px;
  fill:#f39488;
  stroke:none
}
.role-toggle {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
  min-height:44px
}
.role-prompt {
  font-size:14px
}
.role-btn {
  display:flex;
  align-items:center;
  gap:6px;
  padding:0;
  min-height:44px;
  font-size:14px
}
.role-btn img {
  height:32px;
  width:32px;
  border-radius:50%;
  object-fit:contain;
  background:var(--peach)
}
.role-btn:after {
  content:'';
  width:14px;
  height:14px;
  border:1px solid #a36a48;
  border-radius:50%;
  background:var(--paper)
}
.role-btn.active:after {
  background:#936044;
  box-shadow:inset 0 0 0 3px var(--paper)
}
.msg-textarea {
  display:block;
  width:100%;
  height:88px;
  min-height:88px;
  resize:vertical;
  border:1px solid #dfd2c6;
  background:white;
  border-radius:14px;
  padding:10px 12px;
  line-height:1.6;
  font-size:16px
}
.msg-textarea::placeholder,.upload-description::placeholder {
  color:var(--muted);
  opacity:1
}
.send-btn,.entry-button,.upload-submit {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:47px;
  margin-top:10px;
  border:1px solid #dda342;
  border-radius:24px;
  background:linear-gradient(110deg,#ffe4a3,#ffd37b);
  font:19px/1.4 var(--title)
}
.send-btn svg {
  width:25px;
  height:25px
}
.inline-error {
  font-size:13px;
  color:var(--error);
  padding:8px 0
}
.inline-error button {
  text-decoration:underline;
  min-height:44px
}
.memory-section {
  margin-top:14px
}
.tab-switcher {
  display:flex;
  gap:12px;
  padding:0 12px
}
.tab-btn {
  flex:1;
  min-height:44px;
  border-radius:35px;
  background:#f6e8d7;
  color:#84614c;
  font:18px/1.4 var(--title);
  position:relative
}
.tab-btn.active {
  background:var(--peach);
  color:var(--ink)
}
.tab-btn.active:after {
  content:'';
  position:absolute;
  bottom:-4px;
  left:calc(50% - 5px);
  border-top:6px solid var(--peach);
  border-left:5px solid transparent;
  border-right:5px solid transparent
}
.tab-panel {
  display:none
}
.tab-panel.active {
  display:block
}
.message-open {
  width:100%;
  display:grid;
  grid-template-columns:34px 76px minmax(0,1fr) 14px;
  align-items:center;
  gap:9px;
  text-align:left;
  min-height:70px;
  padding:9px 5px
}
.bookmark-item {
  border-bottom:1px solid var(--soft)
}
.message-time {
  font-size:11px;
  color:var(--muted);
  line-height:1.6
}
.bookmark-summary {
  font-size:13px;
  overflow:hidden;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical
}
.message-chevron {
  font-size:24px;
  font-weight:300;
  color:#946246
}
.character-avatar {
  display:inline-block;
  width:34px;
  height:34px;
  overflow:hidden;
  flex-shrink:0;
  border-radius:50%;
  background:#ffdcd8;
  border:1px solid #edc6ae
}
.character-avatar img {
  width:100%;
  height:100%;
  object-fit:contain
}
.den-footer,.cover-footnote {
  text-align:center;
  margin:18px 0 25px;
  color:var(--muted);
  font-size:12px
}
.den-footer:before,.den-footer:after {
  content:'—';
  padding:0 10px;
  color:#c39678
}
.empty-note,.signal-empty {
  padding:22px 12px;
  text-align:center;
  color:var(--muted);
  font-size:14px
}
.load-more-btn {
  display:block;
  margin:10px auto;
  min-height:44px;
  padding:6px 20px;
  border-radius:24px;
  background:#f5e8d7;
  color:#79543f;
  font-size:13px
}
.upload-letter {
  margin-top:16px;
  padding:7px;
  border:1px solid #e2bb99;
  border-radius:19px;
  background:var(--paper)
}
.upload-toggle {
  width:100%;
  min-height:60px;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  padding:5px 8px;
  border:1px dashed #efd1b4;
  border-radius:13px
}
.upload-toggle strong {
  font:16px/1.6 var(--title)
}
.upload-toggle small {
  display:block;
  font-size:11px;
  color:var(--muted)
}
.upload-folder-mark {
  width:30px;
  height:25px;
  border:1.5px solid #bb8968;
  border-radius:4px;
  background:#ffe7b6;
  position:relative
}
.upload-folder-mark:before {
  content:'';
  position:absolute;
  left:-1px;
  top:-7px;
  width:16px;
  height:7px;
  background:#ffe7b6;
  border:1.5px solid #bb8968;
  border-bottom:0;
  border-radius:4px 4px 0 0
}
.upload-toggle-icon {
  margin-left:auto
}
.upload-toggle-icon svg {
  width:20px
}
.upload-toggle-icon.is-open {
  transform:rotate(45deg)
}
.upload-area {
  padding:12px 7px 6px
}
.drop-zone {
  border:1.5px dashed #dcb38e;
  border-radius:15px;
  padding:15px 8px;
  background:#fff8eb;
  min-height:120px;
  display:grid;
  align-items:center;
  cursor:pointer
}
.drop-zone.is-dragover {
  background:#ffe8b0
}
.upload-prompt {
  display:grid;
  gap:6px;
  text-align:center
}
.upload-prompt strong {
  font-size:14px;
  font-weight:400
}
.upload-prompt small {
  font-size:12px;
  color:var(--muted)
}
.upload-cloud {
  margin:0 auto;
  width:28px;
  height:28px;
  border:1px solid #c89975;
  border-radius:8px;
  position:relative
}
.upload-cloud:after {
  content:'+';
  font-size:24px;
  position:absolute;
  inset:-5px 0 0;
  text-align:center
}
.upload-description {
  width:100%;
  min-height:44px;
  border:1px solid var(--soft);
  border-radius:10px;
  margin-top:10px;
  padding:8px;
  background:white;
  font-size:14px
}
.upload-submit {
  font-size:17px
}
.preview-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.preview-tile {
  position:relative;
  aspect-ratio:1
}
.preview-tile img {
  height:100%;
  width:100%;
  object-fit:cover;
  border-radius:7px
}
.remove-preview-btn {
  position:absolute;
  top:-8px;
  right:-8px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#63432dbb;
  border-radius:50%;
  font-size:20px
}
.preview-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  gap:5px
}
.clear-previews {
  min-height:44px;
  text-decoration:underline;
  font-size:12px
}
.album-tools {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  margin:8px 0
}
.album-tools>span {
  margin-right:auto;
  font-size:12px;
  color:var(--muted)
}
.layout-tab-btn {
  min-width:52px;
  min-height:44px;
  border-radius:20px;
  font-size:13px
}
.layout-tab-btn.active {
  background:var(--peach)
}
.album-scroll {
  overflow:visible;
  max-height:none
}
.photo-grid {
  display:flex;
  flex-direction:column;
  gap:8px
}
.photo-page-block--grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.photo-page-block--list {
  display:flex;
  flex-direction:column;
  gap:16px
}
.photo-tile {
  min-width:0;
  width:100%;
  aspect-ratio:1;
  background:var(--paper);
  border:1px solid #ead6c3;
  border-radius:6px;
  padding:4px;
  overflow:hidden
}
.photo-tile img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:3px
}
.photo-exhibit {
  width:100%;
  padding:8px;
  border:1px solid #e9d2bb;
  background:var(--paper);
  border-radius:11px;
  box-shadow:0 3px 5px #a2693710
}
.photo-exhibit img {
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:6px
}
.album-list-caption {
  display:block;
  font-size:14px;
  margin:10px 6px 6px;
  text-align:left;
  overflow-wrap:anywhere
}
.cover-shell {
  padding-bottom:10px
}
.entry-paper {
  position:relative;
  margin:18px 5px 0;
  border:1.5px solid #d5a07e;
  border-radius:24px 28px 22px 29px;
  padding:20px;
  background:var(--paper);
  text-align:center
}
.entry-paper:before {
  content:'';
  position:absolute;
  inset:6px;
  border:1px dashed #efc6a6;
  border-radius:inherit;
  pointer-events:none
}
.entry-avatars {
  display:flex;
  justify-content:center;
  gap:12px
}
.entry-avatars img,.progress-characters img {
  width:45px;
  height:45px;
  border-radius:50%;
  border:2px solid #ffe3ca;
  object-fit:contain
}
.entry-paper h1 {
  font:25px/1.5 var(--title);
  margin-top:7px
}
.entry-subtitle {
  font-size:13px;
  color:var(--muted)
}
.cover-timer {
  display:flex;
  justify-content:center;
  gap:10px;
  margin:12px 0;
  font-size:11px
}
.cover-timer b {
  font-size:17px;
  color:#b76c53;
  margin-right:2px
}
.cover-timer i {
  font-style:normal
}
.entry-label {
  display:block;
  text-align:left;
  font-size:13px;
  margin:12px 0 6px
}
.magic-input {
  min-height:46px;
  border:1px solid #dfc6b3;
  border-radius:12px;
  background:white;
  width:100%;
  padding:8px 12px;
  font-size:16px
}
.entry-button {
  font-size:18px;
  margin-top:5px
}
.error-msg {
  font-size:12px;
  color:var(--error);
  min-height:22px;
  text-align:left;
  margin-top:5px
}
.modal-overlay,.progress-modal {
  position:fixed;
  inset:0;
  z-index:100;
  background:#4b2d2266;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px
}
.modal-overlay.show,.progress-modal {
  display:flex
}
.modal-card,.mail-detail-card,.progress-card,.confirm-card {
  position:relative;
  background:var(--paper);
  width:min(100%,420px);
  max-height:calc(100dvh - 36px);
  border:1.5px solid #c89573;
  border-radius:24px 27px 22px 25px;
  padding:22px;
  box-shadow:0 12px 35px #4b2d222b
}
.modal-card:before,.mail-detail-card:before,.progress-card:before,.confirm-card:before {
  content:'';
  position:absolute;
  inset:7px;
  border:1px dashed #ebc6a4;
  border-radius:inherit;
  pointer-events:none
}
.signal-modal-head {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px
}
.signal-modal-head h3 {
  font:21px/1.4 var(--title)
}
.modal-close-btn,.mail-close-btn {
  margin-left:auto;
  min-width:44px;
  min-height:44px;
  border-radius:50%;
  font-size:26px
}
.scroll-area {
  overflow:auto;
  overscroll-behavior:contain;
  padding:0 2px
}
.timeline-item {
  margin:0 0 14px;
  max-width:92%
}
.timeline-item.right {
  margin-left:auto
}
.meta-time {
  font-size:11px;
  color:var(--muted);
  margin-bottom:5px
}
.right .meta-time {
  text-align:right
}
.chat-bubble {
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px;
  background:#ffe9b8;
  border-radius:15px 15px 15px 4px;
  font-size:13px
}
.right .chat-bubble {
  background:#ffe2d7;
  border-radius:15px 15px 4px 15px
}
.signal--mood {
  background:#f2e7dc!important
}
.mail-detail-card {
  display:flex;
  flex-direction:column
}
.mail-close-btn {
  position:absolute;
  right:10px;
  top:10px
}
.mail-header {
  margin:12px 25px 16px 0
}
.mail-sender-line {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px
}
.detail-avatar {
  width:40px;
  height:40px
}
.mail-sender-line>span:not(.character-avatar) {
  color:var(--muted);
  font-size:12px
}
.mail-body {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  overflow:auto;
  overscroll-behavior:contain;
  line-height:1.9;
  padding:10px 0 20px;
  border-block:1px solid var(--soft);
  font-size:15px;
  min-height:130px
}
.mail-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  font-size:11px;
  color:var(--muted)
}
.mail-recall-btn {
  min-height:44px;
  color:var(--error);
  text-decoration:underline;
  font-size:12px
}
.progress-modal {
  z-index:150
}
.progress-card {
  text-align:center;
  padding:25px
}
.progress-characters {
  display:flex;
  justify-content:center;
  gap:12px;
  margin:5px 0 12px
}
.progress-title {
  font:22px/1.5 var(--title)
}
.progress-status {
  font-size:13px;
  color:var(--muted);
  margin-top:7px
}
.progress-track {
  height:12px;
  border-radius:10px;
  background:#f0e2d0;
  overflow:hidden;
  margin:17px 0
}
.progress-fill {
  height:100%;
  background:#e9b760;
  border-radius:10px;
  transform-origin:left;
  transition:transform .2s
}
.progress-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.7
}
.confirm-card {
  text-align:center;
  padding:25px
}
.confirm-card h2 {
  font:23px/1.5 var(--title)
}
.confirm-heart {
  display:block;
  font-size:40px;
  color:#ce7f70
}
.confirm-card p {
  font-size:14px;
  color:var(--muted);
  margin:10px 0 16px
}
.confirm-actions {
  display:flex;
  gap:10px
}
.confirm-actions button {
  flex:1;
  min-height:44px;
  border-radius:24px;
  border:1px solid var(--soft);
  font-size:14px
}
.confirm-actions .confirm-accept {
  background:var(--peach);
  border-color:#ddb098
}
#confirmModal {
  z-index:200
}
.custom-alert {
  position:fixed;
  z-index:250;
  left:50%;
  bottom:24px;
  max-width:min(90%,430px);
  padding:12px 18px;
  border-radius:18px;
  transform:translate(-50%,12px);
  background:var(--paper);
  box-shadow:0 4px 20px #4b2d2230;
  border:1px solid #dfbb8a;
  opacity:0;
  pointer-events:none;
  font-size:14px;
  transition:opacity .18s,transform .18s
}
.custom-alert.show {
  opacity:1;
  transform:translate(-50%,0)
}
.custom-alert.error {
  border-color:#d6a392;
  color:var(--error)
}
.photo-lightbox {
  position:fixed;
  inset:0;
  background:var(--viewer);
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  color:#fff4e5
}
.photo-lightbox-content {
  width:min(100%,1000px);
  position:relative;
  display:flex;
  flex-direction:column;
  max-height:calc(100dvh - 36px)
}
.lightbox-close {
  width:44px;
  min-height:44px;
  align-self:flex-end;
  border:1px solid #816653;
  border-radius:50%;
  margin-bottom:12px
}
.lightbox-frame {
  min-height:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1
}
.lightbox-image {
  max-height:70dvh;
  max-width:100%;
  object-fit:contain;
  touch-action:none
}
.lightbox-caption {
  margin:12px auto 0;
  text-align:center;
  max-width:640px;
  overflow:auto;
  max-height:20dvh
}
.lightbox-caption-text {
  font-size:14px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.lightbox-time {
  font-size:11px;
  color:#d7bca6;
  margin-top:5px
}
.lightbox-actions {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  flex-shrink:0
}
.lightbox-action-group {
  display:flex;
  gap:8px
}
.lightbox-action {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:6px 12px;
  border:1px solid #8b6d56;
  border-radius:24px;
  color:inherit;
  text-decoration:none;
  font-size:12px
}
.lightbox-action--danger {
  color:#ffc3ad
}
.success-pulse .wish-heart {
  animation:heartRise .65s ease-out
}
.success-pulse:before {
  animation:beanGlow .65s ease-out
}
@keyframes heartRise {
  50% {
    transform:translateY(-8px) rotate(-18deg) scale(1.15)
  }
}
@keyframes beanGlow {
  50% {
    filter:brightness(1.06)
  }
}
@media(min-width:500px) {
  .wish-copy strong {
    font-size:19px
  }
  .wish-copy small {
    font-size:13px
  }
  .mood-action {
    font-size:14px
  }
  .wish-action {
    padding-left:65px
  }
  .wish-avatar {
    width:65px;
    height:65px;
    top:5px
  }
  .ticker-content strong {
    font-size:14px
  }
  .ticker-content time {
    font-size:12px
  }
  .letter-content h1 {
    font-size:23px
  }
  .message-open {
    grid-template-columns:38px 90px minmax(0,1fr) 16px
  }
  .bookmark-summary {
    font-size:14px
  }
  .message-time {
    font-size:12px
  }
}
@media(max-width:374px) {
  .den-scene,.cover-scene {
    border-radius:22px
  }
  .wish-avatar {
    width:52px;
    height:52px;
    top:12px
  }
  .wish-action {
    padding-left:48px
  }
  .wish-copy strong {
    font-size:14px
  }
  .wish-copy small {
    font-size:11px
  }
  .mood-action {
    font-size:11px;
    gap:3px
  }
  .ticker-content {
    gap:5px
  }
  .ticker-content strong {
    font-size:12px
  }
  .ticker-content time {
    font-size:10px
  }
  .letter-content h1 {
    font-size:19px
  }
  .letter-stamp {
    right:13px;
    width:29px
  }
  .message-open {
    gap:6px;
    grid-template-columns:32px 64px minmax(0,1fr) 14px
  }
  .message-time {
    font-size:10px
  }
  .lightbox-action {
    padding:6px 9px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.mail-title {
  font:23px/1.5 var(--title);
  text-align:center;
  margin:14px 12px 12px;
  text-decoration:underline;
  text-decoration-color:var(--peach);
  text-decoration-thickness:5px;
  text-underline-offset:5px
}
.mail-postmark {
  position:absolute;
  right:28px;
  top:67px;
  border:1px dashed #d7ad8c;
  color:#e49683;
  font-size:26px;
  width:30px;
  line-height:36px;
  text-align:center;
  transform:rotate(8deg)
}
.empty-note h3 {
  font:20px/1.5 var(--title);
  color:var(--ink);
  margin:22px 0 8px
}
.empty-note p {
  font-size:13px
}
.empty-envelope,.empty-photos {
  display:block;
  width:70px;
  height:48px;
  border:2px solid #b88d6b;
  border-radius:6px;
  margin:20px auto;
  background:#fff1d3;
  color:#ed8c83;
  font-size:32px;
  line-height:42px;
  transform:rotate(-10deg);
  position:relative
}
.empty-envelope:before {
  content:'';
  position:absolute;
  inset:3px 5px 18px;
  border-bottom:1px solid #b88d6b;
  border-radius:0 0 50% 50%
}
.empty-photos {
  transform:rotate(7deg);
  outline:5px solid #fff5e7;
  box-shadow:-10px 5px 0 1px #eddbc4
}
.mail-header {
  margin-right:45px
}
.letter-paper {
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  padding:19px 16px 16px
}
.letter-paper:before {
  content:'';
  position:absolute;
  inset:0;
  background:url('/assets/ui/letter-outline.svg') center/100% 100% no-repeat;
  z-index:-1;
  pointer-events:none
}
.letter-stitch {
  display:none
}
.letter-stamp:after {
  content:'≋';
  position:absolute;
  right:29px;
  top:3px;
  color:#efb494;
  font-size:26px;
  transform:rotate(-7deg)
}
.preview-remove {
  position:absolute;
  top:-7px;
  right:-7px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:white;
  background:transparent;
  border-radius:50%;
  padding:10px
}
.preview-remove svg {
  background:#855940;
  border:2px solid #fff8ed;
  border-radius:50%;
  width:24px;
  height:24px
}
.preview-tile {
  overflow:visible
}
.preview-tile img {
  height:100%;
  width:100%
}
.bookmark-summary {
  font-size:14px
}
.lightbox-image {
  border-radius:12px
}
.inline-error {
  border-radius:10px
}
.inline-error:not(.hidden) {
  background:#fff0e8;
  padding:9px;
  color:#984e43
}
.wish-action {
  height:76px
}
.wish-avatar {
  background:#ffdcd8
}
.entry-avatars {
  margin-top:-40px;
  margin-bottom:8px
}
.entry-avatars img {
  width:64px;
  height:64px;
  border:3px solid #fff8ed;
  background:#ffded8
}
.entry-paper {
  margin-top:35px
}
.mail-detail-card {
  border-radius:32px 27px 28px 31px
}
.chat-bubble {
  border-radius:26px 22px 24px 22px
}
.right .chat-bubble {
  border-radius:22px 26px 22px 24px
}

/* User review adjustments: photos are the surface, with no surrounding paper or caption. */
.photo-tile { padding: 0; border: 0; background: transparent; border-radius: 15px; }
.photo-tile img { border-radius: inherit; }
.photo-exhibit { padding: 0; border: 0; background: transparent; border-radius: 18px; overflow: hidden; box-shadow: none; }
.photo-exhibit img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: inherit; }
.entry-label { text-align: center; font-size: 15px; font-weight: 500; margin: 20px 0 10px; color: var(--ink); }

/* Photo navigation uses the existing cocoa viewer controls; never preload the whole album. */
.lightbox-frame { position: relative; }
.lightbox-position { position: absolute; left: 4px; top: 11px; color: #ead2ba; font-size: 14px; font-variant-numeric: tabular-nums; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #ad896a; border-radius: 50%; background: #33231eed; color: #fff4e5; box-shadow: 0 3px 10px #1d130e33; transition: background .15s, opacity .15s; }
.lightbox-nav--prev { left: 10px; }
.lightbox-nav--next { right: 10px; }
.lightbox-nav:hover:not(:disabled) { background: #684934; }
.lightbox-nav:disabled { opacity: .28; cursor: default; }
.lightbox-nav:focus-visible { outline-color: #ffe09a; }
@media (max-width: 500px) { .lightbox-nav { width: 44px; height: 44px; } .lightbox-nav--prev { left: 6px; } .lightbox-nav--next { right: 6px; } }
