:root {
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --ink: #171717;
  --muted: #7e7e7a;
  --line: rgba(17, 17, 17, 0.09);
  --accent: #dc7f59;
  --accent-soft: #fff0e8;
  --gold: #d97b55;
  --rose: #e89a75;
  --shadow: 0 28px 80px rgba(38, 34, 31, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  color: var(--ink);
  background: #f0efec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.showcase {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 92px;
}
.intro { max-width: 430px; }
.intro .eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--accent); margin: 0 0 20px; }
.intro h1 { font-family: "Songti SC", "STSong", serif; font-weight: 500; font-size: clamp(58px, 7vw, 92px); letter-spacing: -.08em; margin: 0 0 22px; }
.intro > p:not(.eyebrow) { font-family: "Songti SC", "STSong", serif; font-size: 20px; line-height: 1.8; color: #5f5a55; margin: 0; }
.intro-meta { display: flex; gap: 10px; margin-top: 32px; }
.intro-meta span { border: 1px solid rgba(37,35,33,.16); border-radius: 999px; padding: 8px 12px; font-size: 11px; letter-spacing: .08em; }

.device-wrap { position: relative; width: 430px; }
.device {
  position: relative;
  width: 430px;
  height: 900px;
  padding: 9px;
  border-radius: 58px;
  background: linear-gradient(145deg, #171717, #404040 45%, #111);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.38);
}
.device::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.22); border-radius: 55px; pointer-events: none; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 49px; background: #fff; }
.device-side { position: absolute; background: #292929; border-radius: 4px; z-index: -1; }
.side-left { width: 4px; height: 106px; left: -3px; top: 190px; box-shadow: 0 132px 0 #292929; }
.side-right { width: 4px; height: 148px; right: -3px; top: 248px; }

.status-bar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 13px; font-weight: 650; pointer-events: none; }
.dynamic-island { position: absolute; width: 116px; height: 32px; top: 8px; left: 50%; transform: translateX(-50%); border-radius: 18px; background: #080808; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { width: 16px; height: 12px; fill: currentColor; }
.status-icons .battery { width: 23px; }

.app { position: absolute; inset: 48px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.page { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0 22px 108px; animation: page-in .28s ease both; }
.page::-webkit-scrollbar { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 6; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.top-spacer { width: 34px; height: 34px; }
.brand { font-family: "Songti SC", "STSong", serif; font-size: 26px; font-weight: 600; letter-spacing: -.04em; }
.top-title { font-family: "Songti SC", "STSong", serif; font-size: 20px; font-weight: 600; }
.icon-btn, .back-btn { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover, .back-btn:hover { background: var(--paper-2); }
.icon-btn svg, .back-btn svg, .mini-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.text-btn { border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; }

.date-kicker { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin: 4px 0 12px; }
.hero-card { position: relative; min-height: 176px; padding: 25px 24px; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, #604744, #9a6f69); color: white; box-shadow: 0 18px 35px rgba(111,76,68,.2); }
.hero-card::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -54px; top: -62px; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.018); }
.hero-card .overline { font-size: 10px; letter-spacing: .18em; opacity: .68; }
.hero-card h2 { position: relative; z-index: 1; margin: 28px 0 10px; font-family: "Songti SC", "STSong", serif; font-weight: 400; font-size: 26px; line-height: 1.35; }
.hero-card p { position: relative; z-index: 1; margin: 0; font-size: 12px; opacity: .64; }
.hero-mark { position: absolute; right: 24px; bottom: 22px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; font-family: serif; }

.section-head { margin: 26px 2px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.section-head h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 17px; font-weight: 600; }
.section-head button, .section-head span { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; }
.quick-card { position: relative; min-height: 122px; padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.66); text-align: left; cursor: pointer; overflow: hidden; }
.quick-card.primary { background: #f4e9e1; }
.quick-card .mini-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: white; color: var(--accent); margin-bottom: 17px; box-shadow: 0 5px 15px rgba(50,45,42,.06); }
.quick-card strong { display: block; font-family: "Songti SC", "STSong", serif; font-size: 17px; font-weight: 600; }
.quick-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.date-card { grid-column: 1 / -1; min-height: 96px; display: flex; align-items: center; gap: 14px; }
.date-card .mini-icon { margin: 0; }
.date-card .count { margin-left: auto; text-align: right; }
.date-card .count strong { font-family: ui-serif, Georgia, serif; font-size: 25px; color: var(--gold); }

.list { border-top: 1px solid var(--line); }
.list-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 2px; display: grid; grid-template-columns: 44px 1fr auto; align-items: start; gap: 13px; text-align: left; cursor: pointer; }
.list-item .day { font-family: ui-serif, Georgia, serif; font-size: 24px; }
.list-item .month { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.list-item h4 { margin: 1px 0 5px; font-size: 14px; font-weight: 650; }
.list-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; }

.segmented { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; border-radius: 15px; background: #eeece8; }
.segmented button { flex: 1; border: 0; border-radius: 11px; padding: 9px 4px; background: transparent; font-size: 11px; color: var(--muted); cursor: pointer; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 3px 10px rgba(45,40,36,.07); }

.detail-meta { display: flex; gap: 8px; color: var(--muted); font-size: 11px; margin: 4px 0 15px; }
.detail-title { margin: 0 0 18px; font-family: "Songti SC", "STSong", serif; font-size: 28px; line-height: 1.35; font-weight: 600; }
.prose { font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 2; color: #47423e; }
.prose p { margin: 0 0 18px; }
.response-card { margin-top: 28px; padding: 19px; border-radius: 20px; background: var(--accent-soft); border: 1px solid rgba(113,103,119,.1); }
.response-card .label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 650; }
.response-card p { margin: 12px 0 0; font-family: "Songti SC", "STSong", serif; color: #665f69; font-size: 13px; line-height: 1.7; }

.field { margin-bottom: 16px; }
.field label { display: block; margin: 0 2px 8px; font-size: 11px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); outline: none; background: rgba(255,255,255,.68); border-radius: 17px; padding: 14px 15px; color: var(--ink); }
.field textarea { min-height: 260px; resize: none; font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 1.8; }
.moods, .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.moods button, .chips button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 11px; font-size: 11px; cursor: pointer; }
.moods button.active, .chips button.active { color: var(--accent); border-color: rgba(113,103,119,.35); background: var(--accent-soft); }
.primary-btn { width: 100%; border: 0; border-radius: 17px; padding: 15px; background: var(--ink); color: white; font-weight: 650; letter-spacing: .04em; cursor: pointer; box-shadow: 0 12px 24px rgba(37,35,33,.16); }

.thought-input { display: flex; gap: 9px; margin-bottom: 18px; }
.thought-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: white; outline: none; }
.thought-input button { width: 46px; border: 0; border-radius: 16px; background: var(--ink); color: white; cursor: pointer; }
.thought { padding: 17px 2px; border-bottom: 1px solid var(--line); }
.thought p { margin: 0 0 9px; font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 1.65; }
.thought footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

.event { display: flex; width: 100%; align-items: center; gap: 15px; padding: 17px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.62); text-align: left; cursor: pointer; }
.event .symbol { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: serif; }
.event h4 { margin: 0 0 4px; font-size: 13px; }
.event p { margin: 0; color: var(--muted); font-size: 10px; }
.event .days { margin-left: auto; text-align: right; color: var(--muted); font-size: 9px; }
.event .days strong { display: block; color: var(--gold); font-family: ui-serif, Georgia, serif; font-size: 21px; font-weight: 500; }

.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.album { border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; }
.album-cover { aspect-ratio: 1.12; border-radius: 20px; position: relative; overflow: hidden; background: #ddd; border: 1px solid rgba(45,40,36,.07); }
.album-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,23,21,.28)); }
.album-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-1 { background: radial-gradient(circle at 38% 38%, #e0c8bf 0 11%, transparent 12%), radial-gradient(circle at 57% 54%, #baa4ad 0 16%, transparent 17%), linear-gradient(140deg,#ede5de,#a39993); }
.cover-2 { background: linear-gradient(160deg, transparent 0 42%, rgba(28,27,29,.62) 43% 48%, transparent 49%), radial-gradient(circle at 72% 30%, #d8bd9a 0 7%, transparent 8%), linear-gradient(145deg,#b6b4b1,#6f7275); }
.cover-3 { background: repeating-linear-gradient(0deg, rgba(78,66,56,.08) 0 1px, transparent 1px 18px), linear-gradient(135deg,#eee9df,#bcb1a2); }
.cover-4 { background: radial-gradient(circle at 25% 70%, #6e6074 0 11%, transparent 12%), radial-gradient(circle at 62% 45%, #c0a778 0 15%, transparent 16%), linear-gradient(145deg,#ece6df,#9a8b82); }
.cover-5 { background: linear-gradient(45deg, rgba(255,255,255,.24) 25%, transparent 25% 75%, rgba(255,255,255,.24) 75%), linear-gradient(135deg,#b4a49b,#6f6462); background-size: 34px 34px, auto; }
.album strong { display: block; font-size: 13px; margin: 9px 3px 3px; }
.album small { color: var(--muted); margin-left: 3px; font-size: 10px; }
.wide-link { width: 100%; margin-top: 13px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 18px; background: white; display: flex; justify-content: space-between; cursor: pointer; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.photo { aspect-ratio: .78; border-radius: 12px; background: var(--accent-soft); overflow: hidden; }
.photo:nth-child(5n+1) { background: linear-gradient(145deg,#d9c8bf,#867b78); }
.photo:nth-child(5n+2) { background: radial-gradient(circle at 40% 35%,#dac4b3 0 12%,transparent 13%),linear-gradient(140deg,#eeebe5,#9b9490); }
.photo:nth-child(5n+3) { background: linear-gradient(165deg,#7e777a 0 44%,#dad2c8 45%); }
.photo:nth-child(5n+4) { background: repeating-linear-gradient(45deg,#cabdb2 0 12px,#eee8df 12px 24px); }
.photo:nth-child(5n) { background: radial-gradient(circle at 65% 38%,#b99f76 0 16%,transparent 17%),linear-gradient(145deg,#e8e0d4,#756e6a); }

.goods-card { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 13px; margin-bottom: 10px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.goods-image { border-radius: 13px; background: linear-gradient(145deg,#e4dcd5,#9d8e89); min-height: 76px; }
.goods-card h4 { margin: 3px 0 7px; font-size: 13px; }
.goods-card p { margin: 3px 0; font-size: 10px; color: var(--muted); }
.goods-card .story { color: var(--accent); }

.profile-hero { padding: 25px 20px; border-radius: 25px; background: linear-gradient(145deg, #5d4743, #8c665f); color: white; text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg,#b3a9b7,#5b535f); border: 1px solid rgba(255,255,255,.28); font-family: "Songti SC", serif; font-size: 25px; }
.profile-hero h2 { font-family: "Songti SC", serif; margin: 0; font-size: 24px; }
.profile-hero p { margin: 8px 0 0; font-size: 10px; opacity: .55; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.profile-cell { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.profile-cell small { color: var(--muted); font-size: 9px; }
.profile-cell strong { display: block; margin-top: 6px; font-family: "Songti SC", serif; font-size: 14px; }
.quote-card { grid-column: 1 / -1; }

.world-card { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: white; display: grid; grid-template-columns: 88px 1fr; gap: 14px; text-align: left; margin-bottom: 10px; cursor: pointer; }
.world-art { border-radius: 14px; background: linear-gradient(155deg,#664d4a,#b0877d); }
.world-card:nth-of-type(2) .world-art { background: linear-gradient(155deg,#d8ccbb,#817b72); }
.world-card:nth-of-type(3) .world-art { background: linear-gradient(155deg,#b7b2bc,#56505c); }
.world-card h4 { margin: 3px 0 7px; font-family: "Songti SC", serif; font-size: 15px; }
.world-card p { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tags span { padding: 4px 7px; background: var(--accent-soft); border-radius: 999px; color: var(--accent); font-size: 8px; }
.world-cover { height: 172px; border-radius: 24px; background: linear-gradient(155deg,#604844,#b1877d); position: relative; overflow: hidden; }
.world-cover::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -35%; height: 70%; background: repeating-linear-gradient(160deg, rgba(255,255,255,.06) 0 1px, transparent 1px 17px); transform: rotate(-8deg); }

.timeline { position: relative; margin-left: 11px; padding-left: 25px; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 5px; bottom: 25px; width: 1px; background: #c9c3bd; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before { content: ""; position: absolute; left: -27px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline-date { font-family: ui-serif, Georgia, serif; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.memory-card { padding: 15px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.memory-card small { color: var(--accent); font-size: 9px; letter-spacing: .06em; }
.memory-card h4 { margin: 7px 0 5px; font-family: "Songti SC", serif; font-size: 14px; }
.memory-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.year-hero { padding: 22px; border-radius: 24px; color: white; background: linear-gradient(145deg, #59433f, #8f675f); }
.year-hero .year { color: rgba(255,255,255,.55); font-family: ui-serif, Georgia, serif; font-size: 12px; letter-spacing: .14em; }
.year-hero h2 { font-family: "Songti SC", serif; font-size: 26px; font-weight: 400; margin: 30px 0 8px; }
.year-hero p { margin: 0; font-size: 10px; opacity: .55; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.stat { border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: white; }
.stat strong { font-family: ui-serif, Georgia, serif; font-size: 24px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 10px; margin-left: 4px; }
.months { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.month-card { padding: 12px 5px; text-align: center; border: 1px solid var(--line); border-radius: 13px; background: white; }
.month-card strong { font-family: ui-serif, Georgia, serif; font-size: 12px; }
.month-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.month-card.active { background: var(--accent); color: white; }
.month-card.active span { color: rgba(255,255,255,.65); }

.bottom-nav { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; height: 91px; padding: 10px 17px 20px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(255,250,245,.95); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.nav-btn { border: 0; background: transparent; display: grid; justify-items: center; gap: 5px; color: #96918b; font-size: 9px; cursor: pointer; }
.nav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.active { color: var(--ink); }
.add-btn { width: 50px; height: 50px; border: 0; border-radius: 50%; align-self: start; justify-self: center; margin-top: -20px; background: #6b504c; color: white; font-size: 27px; font-weight: 200; line-height: 1; cursor: pointer; box-shadow: 0 10px 22px rgba(99,70,64,.28); }

.sheet-backdrop { position: absolute; z-index: 30; inset: 0; background: rgba(24,22,21,.36); backdrop-filter: blur(3px); animation: fade-in .2s ease; }
.sheet { position: absolute; z-index: 31; left: 9px; right: 9px; bottom: 9px; padding: 14px 17px 22px; border-radius: 32px 32px 42px 42px; background: #fffaf6; box-shadow: 0 -24px 65px rgba(77,53,47,.2); animation: sheet-up .3s cubic-bezier(.2,.8,.2,1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(45px); opacity: 0; } }
.sheet-handle { width: 34px; height: 4px; margin: 0 auto 18px; border-radius: 999px; background: #d7d3ce; }
.sheet h3 { margin: 0 5px 13px; font-family: "Songti SC", serif; font-size: 20px; }
.sheet-action { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 5px; display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer; }
.sheet-action .mini-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.sheet-action strong { font-size: 13px; }
.sheet-action small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.cancel-btn { width: 100%; margin-top: 12px; border: 0; background: #f5eae3; border-radius: 16px; padding: 13px; cursor: pointer; }
.toast { position: absolute; z-index: 50; left: 50%; bottom: 108px; transform: translateX(-50%); padding: 10px 15px; border-radius: 999px; background: rgba(30,28,27,.9); color: white; font-size: 11px; white-space: nowrap; animation: toast .2s ease; }

/* A direction: editorial white canvas with one restrained peach-light moment. */
.home-page { padding: 0 0 108px; background: #fff; }
.home-glow {
  position: relative;
  min-height: 454px;
  padding: 0 22px 76px;
  background-image: url("./assets/peach-morning-gradient.png");
  background-size: cover;
  background-position: center 20%;
}
.home-glow .topbar { margin: 0; background: transparent; backdrop-filter: none; }
.home-glow .brand { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-size: 22px; font-weight: 720; letter-spacing: -.04em; }
.home-glow .icon-btn { background: rgba(255,255,255,.54); backdrop-filter: blur(12px); }
.today-chip { width: max-content; display: flex; align-items: center; gap: 7px; margin-top: 21px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.68); color: rgba(17,17,17,.62); box-shadow: 0 8px 24px rgba(94,64,48,.06); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.today-chip span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.home-title { margin: 27px 0 12px; font-family: "Songti SC", "STSong", serif; font-size: 34px; font-weight: 600; line-height: 1.22; letter-spacing: -.055em; }
.home-subtitle { width: 250px; margin: 0; color: rgba(17,17,17,.56); font-size: 12px; line-height: 1.75; }
.daily-card { position: absolute; left: 22px; right: 22px; bottom: -43px; min-height: 128px; padding: 20px 62px 19px 20px; border: 1px solid rgba(17,17,17,.06); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 20px 50px rgba(89,60,44,.14); text-align: left; cursor: pointer; }
.daily-card .daily-meta { display: block; margin-bottom: 17px; color: var(--accent); font-size: 9px; font-weight: 720; letter-spacing: .1em; }
.daily-card strong { display: block; font-family: "Songti SC", "STSong", serif; font-size: 20px; line-height: 1.25; }
.daily-card .daily-copy { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.daily-arrow { position: absolute; right: 20px; bottom: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #171717; color: #fff; transform: rotate(180deg); }
.daily-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-content { padding: 72px 22px 0; background: #fff; }
.home-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-shortcuts button { min-height: 88px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 19px; background: #fff; text-align: left; cursor: pointer; }
.home-shortcuts button:last-child { background: #faf9f7; }
.shortcut-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.shortcut-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-shortcuts strong { display: block; font-size: 13px; }
.home-shortcuts small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.home-section-head { margin-top: 27px; }
.home-list { border-color: rgba(17,17,17,.07); }

.quick-card, .event, .profile-cell, .world-card, .memory-card, .stat, .month-card, .goods-card, .wide-link { background: #fff; box-shadow: none; }
.quick-card.primary { background: var(--accent-soft); }
.segmented { background: #f4f4f2; }
.response-card { background: #fff7f2; border-color: rgba(220,127,89,.14); }
.profile-hero, .year-hero, .world-cover {
  color: #171717;
  background-image: url("./assets/peach-morning-gradient.png");
  background-size: cover;
  background-position: center;
}
.profile-hero p, .year-hero p { opacity: .55; }
.year-hero .year { color: rgba(17,17,17,.46); }
.avatar { background: rgba(255,255,255,.7); color: #171717; border-color: rgba(17,17,17,.07); }
.album-cover, .photo, .goods-image, .world-art,
.album-cover.cover-1, .album-cover.cover-2, .album-cover.cover-3, .album-cover.cover-4, .album-cover.cover-5,
.photo:nth-child(5n+1), .photo:nth-child(5n+2), .photo:nth-child(5n+3), .photo:nth-child(5n+4), .photo:nth-child(5n),
.world-card:nth-of-type(2) .world-art, .world-card:nth-of-type(3) .world-art {
  background-image: url("./assets/peach-morning-gradient.png");
  background-size: cover;
  background-position: center;
}
.album-cover::after, .world-cover::before { display: none; }
.add-btn { background: #ed956d; box-shadow: 0 10px 22px rgba(219,126,86,.28); }
.bottom-nav { background: rgba(255,255,255,.94); border-top-color: rgba(17,17,17,.07); }
.sheet { background: #fff; box-shadow: 0 -24px 65px rgba(35,31,28,.16); }
.cancel-btn { background: #f4f4f2; }
.pill, .tags span { background: var(--accent-soft); }
.event .days strong { color: var(--accent); }

/* Selected layout 2: long-form reference-book dossier. */
.dossier-page { background: #fff; }
.dossier-summary { display: grid; grid-template-columns: 132px 1fr; gap: 21px; align-items: start; margin: 8px 0 28px; }
.dossier-portrait { width: 132px; height: 186px; display: block; object-fit: cover; object-position: 52% center; border-radius: 12px; }
.dossier-intro { min-width: 0; padding-top: 12px; }
.dossier-intro h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.dossier-intro > p { margin: 9px 0 18px; color: var(--muted); font-family: "Songti SC", "STSong", serif; font-size: 12px; line-height: 1.6; }
.dossier-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dossier-facts div { min-width: 0; padding: 11px 7px 10px 0; border-bottom: 1px solid var(--line); }
.dossier-facts div:nth-child(even) { padding-left: 11px; border-left: 1px solid var(--line); }
.dossier-facts small, .dossier-facts strong { display: block; }
.dossier-facts small { color: var(--muted); font-size: 8px; }
.dossier-facts strong { margin-top: 5px; font-family: "Songti SC", "STSong", serif; font-size: 11px; line-height: 1.35; }
.dossier-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dossier-heading h3 { position: relative; margin: 0; padding-left: 10px; font-family: "Songti SC", "STSong", serif; font-size: 18px; font-weight: 650; }
.dossier-heading h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: #f09268; border-radius: 2px; }
.dossier-heading button { border: 0; background: transparent; color: var(--accent); font-size: 10px; cursor: pointer; }
.identity-table { width: 100%; padding: 0; display: grid; grid-template-columns: 82px 116px 1fr; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.identity-table > * { min-height: 46px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.identity-table span { color: var(--muted); font-size: 9px; }
.identity-table strong { font-family: "Songti SC", "STSong", serif; font-size: 11px; border-left: 1px solid var(--line); }
.identity-table small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.inline-upload, .file-label { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 10px; font-weight: 650; cursor: pointer; }
.inline-upload svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inline-upload input, .file-label input, .gallery-upload input { position: fixed; left: -10000px; opacity: 0; }
.official-strip { width: 100%; padding: 0; display: grid; grid-template-columns: repeat(3,1fr) 54px; gap: 7px; align-items: stretch; border: 0; background: transparent; cursor: pointer; }
.official-strip img { width: 100%; height: 88px; display: block; object-fit: cover; border-radius: 10px; }
.collection-count { display: grid; align-content: center; justify-items: center; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; }
.collection-count strong { font-family: ui-serif, Georgia, serif; font-size: 20px; }
.collection-count small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.world-chapters { border-top: 1px solid var(--line); }
.chapter-row { width: 100%; padding: 12px 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.chapter-row img { width: 62px; height: 76px; display: block; object-fit: cover; border-radius: 8px; }
.chapter-row > span:nth-child(2) { min-width: 0; }
.chapter-row span small, .chapter-row span strong, .chapter-row span em { display: block; }
.chapter-row span small { color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.chapter-row span strong { margin-top: 5px; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.chapter-row span em { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.chapter-stats { color: var(--muted); font-size: 8px; line-height: 1.7; text-align: right; white-space: nowrap; }
.collection-lead { margin: 2px 0 18px; color: var(--muted); font-family: "Songti SC", "STSong", serif; font-size: 12px; line-height: 1.75; }
.gallery-filter { display: flex; gap: 6px; margin-bottom: 13px; overflow-x: auto; scrollbar-width: none; }
.gallery-filter::-webkit-scrollbar { display: none; }
.gallery-filter button { flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 999px; background: #f5f5f3; color: var(--muted); font-size: 9px; cursor: pointer; }
.gallery-filter button.active { background: var(--accent-soft); color: var(--accent); }
.official-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.official-grid button { padding: 0; border: 0; border-radius: 13px; background: #f5f5f3; overflow: hidden; cursor: pointer; }
.official-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.gallery-upload { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed rgba(220,127,89,.45); border-radius: 13px; color: var(--accent); background: #fffaf7; font-size: 10px; cursor: pointer; }
.gallery-upload svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.identity-cover { width: 100%; height: 198px; display: block; object-fit: cover; object-position: center 30%; border-radius: 18px; }
.identity-detail { margin-top: 18px; border-top: 1px solid var(--line); }
.identity-detail section { display: grid; grid-template-columns: 92px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.identity-detail small { grid-row: 1 / 3; color: var(--muted); font-size: 9px; }
.identity-detail h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.identity-detail p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.biography { margin-top: 20px; padding: 18px; border-radius: 17px; background: #faf9f7; }
.biography small { color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.biography p { margin: 10px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 12px; line-height: 1.85; }
.world-detail-cover { width: 100%; height: 220px; display: block; object-fit: cover; border-radius: 18px; }
.world-detail-title { margin: 18px 0 12px; }
.world-detail-title small { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.world-detail-title h2 { margin: 7px 0; font-family: "Songti SC", "STSong", serif; font-size: 25px; }
.world-detail-title p { margin: 0; color: var(--muted); font-size: 10px; }
.world-photo-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.world-photo-strip img { width: 100%; height: 104px; display: block; object-fit: cover; border-radius: 10px; }
.world-timeline { position: relative; }
.world-timeline article { display: grid; grid-template-columns: 72px 12px 1fr; gap: 9px; min-height: 92px; }
.world-timeline time { color: var(--muted); font-family: ui-serif, Georgia, serif; font-size: 9px; }
.world-timeline article > span { position: relative; width: 1px; height: 100%; background: var(--line); }
.world-timeline article > span::before { content: ""; position: absolute; left: -3px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.world-timeline article div { padding-bottom: 18px; }
.world-timeline small { color: var(--accent); font-size: 8px; }
.world-timeline h4 { margin: 5px 0; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.world-timeline p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

/* Core moments feed */
.moments-page { background: #fff; }
.moment-composer { margin: 4px 0 24px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.moment-composer textarea { width: 100%; min-height: 86px; padding: 0; border: 0; outline: 0; resize: none; color: var(--ink); background: transparent; font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 1.7; }
.moment-composer textarea::placeholder { color: #aaa6a1; }
.moment-composer footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.moment-upload { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.moment-upload svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.moment-upload input { position: fixed; left: -10000px; opacity: 0; }
.moment-publish { min-width: 64px; padding: 9px 16px; border: 0; border-radius: 999px; background: #171717; color: #fff; font-size: 10px; font-weight: 650; cursor: pointer; }
.pending-images { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.pending-images img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 10px; }
.pending-image-cell { position: relative; min-width: 0; }
.pending-image-remove, .work-editor-images > div > button { position: absolute; z-index: 2; top: 5px; right: 5px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,20,20,.68); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 4px; }
.feed-heading h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 18px; }
.feed-heading span { color: var(--muted); font-size: 9px; }
.moment-feed { border-top: 1px solid var(--line); }
.moment-post { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.moment-post > header { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; }
.moment-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.moment-post header strong, .moment-post header time { display: block; }
.moment-post header strong { font-size: 11px; }
.moment-post header time { margin-top: 3px; color: var(--muted); font-size: 8px; }
.moment-post header button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.moment-post header button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.moment-post > p { margin: 13px 0 12px; font-family: "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.75; }
.moment-images { display: grid; gap: 6px; overflow: hidden; border-radius: 14px; }
.moment-images.count-1 { grid-template-columns: 1fr; width: 72%; }
.moment-images.count-2 { grid-template-columns: 1fr 1fr; }
.moment-images.count-3 { grid-template-columns: repeat(3,1fr); }
.moment-images button { min-width: 0; padding: 0; border: 0; background: #f4f4f2; cursor: pointer; }
.moment-images img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.moment-images.count-1 img { aspect-ratio: 1.34; }
.moment-post > footer { display: flex; justify-content: space-between; margin-top: 12px; }
.moment-post > footer button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 9px; cursor: pointer; }
.moment-post > footer span { color: var(--muted); font-size: 8px; }
.moment-response { margin-top: 12px; padding: 12px 14px; border-left: 2px solid #ef9a73; background: #fff8f4; }
.moment-response[hidden] { display: none; }
.moment-response small { color: var(--accent); font-size: 8px; letter-spacing: .08em; }
.moment-response p { margin: 5px 0 0; color: #5d5651; font-family: "Songti SC", "STSong", serif; font-size: 11px; line-height: 1.65; }

/* Anniversary-first memory module */
.anniversary-page { background: #fff; }
.together-counter { padding: 30px 22px 27px; border-radius: 25px; background-image: url("./assets/peach-morning-gradient.png"); background-size: cover; background-position: center; text-align: center; }
.together-counter > small { color: rgba(17,17,17,.55); font-size: 10px; letter-spacing: .08em; }
.together-counter div { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 13px 0 7px; }
.together-counter strong { font-family: ui-serif, Georgia, serif; font-size: 56px; font-weight: 500; letter-spacing: -.04em; }
.together-counter div span { font-family: "Songti SC", "STSong", serif; font-size: 16px; }
.together-counter p { margin: 0; color: rgba(17,17,17,.48); font-size: 9px; }
.next-anniversary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; }
.next-anniversary small { color: var(--accent); font-size: 8px; letter-spacing: .06em; }
.next-anniversary h2 { margin: 6px 0 4px; font-family: "Songti SC", "STSong", serif; font-size: 20px; }
.next-anniversary p { margin: 0; color: var(--muted); font-size: 8px; }
.next-anniversary button { padding: 8px 10px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 8px; cursor: pointer; }
.anniversary-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.anniversary-heading h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 18px; }
.anniversary-heading button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.anniversary-list { border-top: 1px solid var(--line); }
.anniversary-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.anniversary-date span, .anniversary-date small { display: block; }
.anniversary-date span { font-family: ui-serif, Georgia, serif; font-size: 17px; }
.anniversary-date small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.anniversary-item h4 { margin: 0 0 5px; font-family: "Songti SC", "STSong", serif; font-size: 13px; }
.anniversary-item p { margin: 0; color: var(--muted); font-size: 8px; }
.anniversary-days { min-width: 48px; text-align: right; }
.anniversary-days strong, .anniversary-days small { display: block; }
.anniversary-days strong { color: var(--accent); font-family: ui-serif, Georgia, serif; font-size: 21px; font-weight: 500; }
.anniversary-days small { margin-top: 2px; color: var(--muted); font-size: 8px; }

/* Merged character / self settings */
.profile-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 0 17px; padding: 3px; border-radius: 14px; background: #f4f4f2; }
.profile-switcher button { padding: 8px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.profile-switcher button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(34,31,28,.06); }
.profile-mode-label { margin: 0 0 10px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.self-summary { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.self-avatar-upload { width: 92px; height: 112px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed rgba(220,127,89,.42); border-radius: 16px; background: #fff9f5; color: var(--accent); cursor: pointer; }
.self-avatar-upload span { font-family: "Songti SC", "STSong", serif; font-size: 26px; }
.self-avatar-upload small { font-size: 8px; }
.self-avatar-upload input { position: fixed; left: -10000px; opacity: 0; }
.self-summary h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 25px; }
.self-summary p { margin: 8px 0 12px; color: var(--muted); font-family: "Songti SC", "STSong", serif; font-size: 10px; line-height: 1.6; }
.self-summary button { padding: 7px 10px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 8px; cursor: pointer; }
.self-setting-list { border-top: 1px solid var(--line); }
.self-setting-list section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.self-setting-list small { color: var(--muted); font-size: 8px; }
.self-setting-list strong { display: block; margin-top: 5px; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.self-setting-list p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.relationship-summary { padding: 17px; border-radius: 18px; background: #faf9f7; }
.relationship-summary > span { color: var(--accent); font-size: 8px; letter-spacing: .08em; }
.relationship-summary h3 { margin: 8px 0 6px; font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.relationship-summary p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.relationship-summary div { display: flex; gap: 6px; margin-top: 12px; }
.relationship-summary button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 8px; cursor: pointer; }

/* World-setting images are story records, not a detached gallery. */
.world-gallery-entry { width: 100%; padding: 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; }
.world-gallery-entry > span:first-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.world-gallery-entry img { width: 100%; height: 78px; display: block; object-fit: cover; border-radius: 9px; }
.world-gallery-entry strong, .world-gallery-entry small { display: block; }
.world-gallery-entry strong { font-family: "Songti SC", "STSong", serif; font-size: 13px; }
.world-gallery-entry small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.story-image-list { border-top: 1px solid var(--line); }
.story-image-list > button { width: 100%; padding: 15px 0; display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: stretch; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.story-image-list img { width: 104px; height: 124px; display: block; object-fit: cover; border-radius: 11px; }
.story-image-list button > span { min-width: 0; padding: 3px 0; }
.story-image-list time, .story-image-list strong, .story-image-list p, .story-image-list small { display: block; }
.story-image-list time { color: var(--accent); font-size: 8px; }
.story-image-list strong { margin-top: 7px; font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.story-image-list p { margin: 7px 0; color: var(--muted); font-family: "Songti SC", "STSong", serif; font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-image-list small { color: var(--accent); font-size: 8px; }
.story-upload-card { min-height: 94px; margin-top: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px dashed rgba(220,127,89,.45); border-radius: 17px; color: var(--accent); background: #fff9f5; cursor: pointer; }
.story-upload-card > svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.story-upload-card strong, .story-upload-card small { display: block; }
.story-upload-card strong { font-family: "Songti SC", "STSong", serif; font-size: 13px; }
.story-upload-card small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.story-upload-card input { position: fixed; left: -10000px; opacity: 0; }
.photo-story-hero { width: 100%; height: 260px; margin-bottom: 20px; display: block; object-fit: cover; border-radius: 18px; }
.story-textarea { min-height: 190px !important; }
.album-upload { min-height: 54px; margin: 8px 0 16px; border: 1px dashed rgba(220,127,89,.45); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--accent); font-size: 12px; cursor: pointer; }
.album-upload svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.album-upload input, .data-tools input { position: fixed; left: -10000px; opacity: 0; }
.real-photo { border: 0; padding: 0; overflow: hidden; cursor: pointer; }
.real-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.delete-hint { text-align: center; color: var(--muted); font-size: 9px; }
.data-tools { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.data-tools button, .data-tools label { border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: var(--paper-2); text-align: center; font-size: 11px; cursor: pointer; }
.data-tools p { grid-column: 1/-1; margin: 5px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.filter-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 12px; scrollbar-width: none; }
.filter-chips button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 9px; }
.filter-chips button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.filter-chips span { color: var(--muted); font-size: 9px; }
.journal-tags { display: block; margin-top: 5px; color: var(--accent); font-size: 8px; }
.image-avatar { overflow: hidden; }
.image-avatar img { width: 100%; height: 100%; object-fit: cover; }
.goods-list { display: grid; gap: 10px; }
.goods-card { width: 100%; padding: 12px; display: grid; grid-template-columns: 86px 1fr; gap: 13px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; }
.goods-card .goods-image { width: 86px; height: 96px; border-radius: 12px; object-fit: cover; background: linear-gradient(145deg,#fff0e8,#f8f6f3); }
.goods-card h4 { margin: 4px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.goods-card p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.goods-card .story { color: var(--accent); }
.goods-image-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 18px; }
.goods-image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.field-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row span { min-width: 0; }
.world-side-settings { display: grid; gap: 8px; }
.world-side-settings section { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.world-side-settings small { color: var(--accent); font-size: 8px; }
.world-side-settings p { margin: 7px 0 0; color: var(--ink); font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.timeline-order { display: flex; gap: 6px; margin-top: 9px; }
.timeline-order button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 8px; }
.timeline-order button:disabled { opacity: .35; }
.form-hint { margin: -5px 2px 18px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.settings-profile { display: grid; grid-template-columns: 90px 1fr; gap: 15px; align-items: end; margin-bottom: 20px; }
.settings-profile > label { display: grid; justify-items: center; gap: 6px; color: var(--accent); cursor: pointer; }
.settings-profile > label img, .settings-profile > label > span { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px; object-fit: cover; background: #fff3ec; border: 1px dashed rgba(220,127,89,.38); font-family: "Songti SC", "STSong", serif; font-size: 22px; }
.settings-profile > label small { font-size: 8px; }
.settings-profile input[type=file], .settings-actions input { position: fixed; left: -10000px; opacity: 0; }
.settings-profile .field { margin: 0; }
.settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.settings-actions button, .settings-actions label { padding: 15px 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.settings-actions strong, .settings-actions small { display: block; }
.settings-actions strong { font-size: 11px; }
.settings-actions small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.cloud-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #faf9f7; text-align: left; cursor: pointer; }
.cloud-card strong { font-size: 11px; }
.cloud-card p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.cloud-card > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; background: #eeeae6; color: var(--muted); font-size: 8px; }

.profile-empty { padding: 28px 18px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg,#fff9f5 0%,#fff 66%); text-align: center; }
.profile-empty .avatar-placeholder { margin: 0 auto 15px; }
.profile-empty h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 22px; }
.profile-empty p { max-width: 280px; margin: 10px auto 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.profile-empty .primary-btn { width: auto; margin: 0 auto; padding-inline: 24px; }
.avatar-placeholder { display: grid; place-items: center; color: var(--accent); border: 1px dashed rgba(220,127,89,.42); background: #fff9f5; font-family: "Songti SC", "STSong", serif; }
.profile-empty .avatar-placeholder { width: 88px; height: 88px; border-radius: 50%; font-size: 24px; }
.dossier-portrait.avatar-placeholder { font-family: inherit; font-size: 9px; }
.profile-avatar-editor { width: 126px; margin: 2px auto 24px; display: grid; justify-items: center; gap: 8px; color: var(--accent); cursor: pointer; }
.profile-avatar-editor img, .profile-avatar-editor > span { width: 126px; height: 150px; display: grid; place-items: center; border-radius: 25px; object-fit: cover; background: linear-gradient(145deg,#fff2e8,#fff); border: 1px dashed rgba(220,127,89,.42); font-family: "Songti SC", "STSong", serif; font-size: 28px; }
.profile-avatar-editor small { font-size: 9px; }
.profile-avatar-editor input, .world-cover-editor input { position: fixed; left: -10000px; opacity: 0; }
.empty-strip { min-height: 92px; border: 1px dashed rgba(220,127,89,.35) !important; border-radius: 16px; background: #fffaf7 !important; }
.world-empty { padding: 30px 20px; border: 1px dashed rgba(220,127,89,.34); border-radius: 20px; background: #fffaf7; }
.world-empty strong, .empty-page-state strong { display: block; color: var(--ink); font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.world-empty p, .empty-page-state p { margin: 7px auto 14px; max-width: 280px; }
.world-empty button, .empty-counter button { padding: 9px 15px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; cursor: pointer; }
.world-cover-placeholder { width: 88px; height: 76px; display: grid; place-items: center; border-radius: 12px; background: #fff5ef; color: var(--accent); font-size: 22px; }
.world-cover-editor { height: 220px; margin-bottom: 22px; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(220,127,89,.42); border-radius: 22px; background: linear-gradient(145deg,#fff5ee,#fff); cursor: pointer; }
.world-cover-editor img { width: 100%; height: 100%; object-fit: cover; }
.world-cover-editor > span { display: grid; justify-items: center; gap: 8px; color: var(--accent); }
.world-cover-editor svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.world-cover-editor strong { font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.world-cover-editor small { color: var(--muted); font-size: 9px; }
.world-detail-empty { display: grid !important; place-items: center; background: linear-gradient(145deg,#fff5ee,#fff); color: var(--muted); font-size: 10px; }
.identity-empty-cover { display: grid !important; place-items: center; background: linear-gradient(145deg,#fff5ee,#fff); color: var(--muted); font-size: 10px; }
.empty-counter { padding: 27px 18px; }
.empty-counter h2 { margin: 8px 0; font-family: "Songti SC", "STSong", serif; font-size: 22px; }
.empty-counter p { margin-bottom: 15px; }
.empty-feed { padding-top: 24px; }
.world-timeline article { cursor: pointer; }

.empty-state { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.floating-compose { position: sticky; bottom: 12px; width: 100%; margin-top: 18px; border: 0; border-radius: 17px; padding: 14px; background: var(--ink); color: white; font-weight: 650; box-shadow: 0 12px 26px rgba(20,20,20,.18); cursor: pointer; }
.danger-link { display: block; width: 100%; margin: 24px 0 8px; border: 0; background: transparent; color: #b45d50; padding: 12px; font-size: 12px; cursor: pointer; }
.check-row { display: flex; align-items: center; gap: 10px; margin: -2px 2px 20px; color: var(--muted); font-size: 12px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.anniversary-item { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }

/* Linked albums, wardrobes and image viewer */
.album-sync { margin: 12px 0 0; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 14px; background: #faf9f7; }
.album-sync .check-row { margin: 0; color: var(--ink); font-size: 10px; }
.album-sync select { max-width: 128px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: 10px; }
.zoomable-image { min-width: 0; padding: 0; border: 0; background: transparent; overflow: hidden; cursor: zoom-in; }
.zoomable-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pending-images .zoomable-image, .goods-image-preview .zoomable-image { aspect-ratio: 1; border-radius: 10px; }
.photo-cell { position: relative; min-width: 0; aspect-ratio: .78; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.photo-cell > .zoomable-image { width: 100%; height: 100%; border-radius: inherit; }
.photo-delete { position: absolute; z-index: 2; top: 5px; right: 5px; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,20,20,.66); color: #fff; line-height: 1; cursor: pointer; }
.identity-cover.zoomable-image { width: 100%; padding: 0; }
.identity-cover.zoomable-image img { width: 100%; height: 100%; object-fit: cover; }
.photo-story-hero.zoomable-image { width: 100%; padding: 0; }
.photo-story-hero.zoomable-image img { width: 100%; height: 100%; object-fit: cover; }
.world-detail-cover.zoomable-image { padding: 0; }
.world-detail-cover.zoomable-image img { width: 100%; height: 100%; object-fit: cover; }
.official-grid .photo-delete { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(20,20,20,.66); color: #fff; }
.wardrobe-entry { width: 100%; padding: 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; }
.wardrobe-entry > span:first-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; min-height: 82px; }
.wardrobe-entry img { width: 100%; height: 82px; border-radius: 10px; object-fit: cover; }
.wardrobe-entry strong, .wardrobe-entry small { display: block; }
.wardrobe-entry strong { font-family: "Songti SC", "STSong", serif; font-size: 13px; }
.wardrobe-entry small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.wardrobe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.wardrobe-grid > button { min-width: 0; padding: 0 0 12px; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; }
.wardrobe-grid img, .wardrobe-placeholder { width: 100%; aspect-ratio: .9; display: grid; place-items: center; object-fit: cover; background: #fff7f2; color: var(--accent); font-size: 24px; }
.wardrobe-grid strong, .wardrobe-grid small { display: block; margin-inline: 11px; }
.wardrobe-grid strong { margin-top: 10px; font-size: 12px; }
.wardrobe-grid small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.world-side-settings button, .world-side-settings section { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; }
.world-side-settings button { cursor: pointer; }
.world-side-settings button > span { display: block; margin-top: 8px; color: var(--accent); font-size: 8px; }
.persona-list { border-top: 1px solid var(--line); }
.persona-list > button { width: 100%; padding: 14px 0; display: grid; grid-template-columns: 96px 1fr; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.persona-list img, .persona-text-cover { width: 96px; height: 112px; display: grid; place-items: center; border-radius: 12px; object-fit: cover; background: #fff3ec; color: var(--accent); font-family: "Songti SC", "STSong", serif; font-size: 26px; }
.persona-list strong, .persona-list small { display: block; }
.persona-list strong { margin-top: 5px; font-size: 13px; }
.persona-list p { margin: 8px 0; color: var(--muted); font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.persona-list small { color: var(--accent); font-size: 8px; }
.compact-persona { height: 190px; }
.persona-editor-image { position: relative; height: 230px; margin-bottom: 22px; border-radius: 20px; overflow: hidden; }
.persona-editor-image .zoomable-image { width: 100%; height: 100%; }
.persona-editor-image > label { position: absolute; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(20,20,20,.68); color: #fff; font-size: 9px; cursor: pointer; }
.persona-editor-image input { position: fixed; left: -10000px; opacity: 0; }

/* Written works */
.featured-link { align-items: center; background: linear-gradient(135deg,#fff7f1,#fff); border-color: rgba(220,127,89,.22); }
.featured-link > span:first-child strong, .featured-link > span:first-child small { display: block; text-align: left; }
.featured-link > span:first-child strong { font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.featured-link > span:first-child small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.work-list { border-top: 1px solid var(--line); }
.work-card { width: 100%; padding: 15px 0; display: grid; grid-template-columns: 76px 1fr; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.work-card > img, .work-letter { width: 76px; height: 98px; display: grid; place-items: center; border-radius: 12px; object-fit: cover; background: linear-gradient(145deg,#fff0e7,#fff); color: var(--accent); font-family: "Songti SC", "STSong", serif; font-size: 25px; }
.work-card small, .work-card strong, .work-card em { display: block; }
.work-card small { color: var(--accent); font-size: 8px; }
.work-card strong { margin-top: 7px; font-family: "Songti SC", "STSong", serif; font-size: 14px; }
.work-card p { margin: 7px 0; color: var(--muted); font-size: 9px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-card em { color: #99938e; font-size: 7px; font-style: normal; }
.work-detail-meta { display: flex; align-items: center; gap: 8px; }
.work-detail-meta > span, .work-detail-meta > button, .work-detail-meta > small { padding: 6px 9px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 8px; }
.work-detail-meta > button { cursor: pointer; }
.work-detail > h2 { margin: 20px 0 13px; font-family: "Songti SC", "STSong", serif; font-size: 27px; font-weight: 600; }
.work-gallery { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.work-gallery .zoomable-image { aspect-ratio: .82; border-radius: 11px; }
.work-prose { padding: 8px 0 40px; color: var(--ink); font-family: "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.95; }
.work-prose p { white-space: pre-wrap; }
.muted-copy { color: var(--muted); }
.work-textarea { min-height: 320px !important; line-height: 1.8; }
.work-editor-images { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 20px; }
.work-editor-images > div { position: relative; min-width: 0; }
.work-editor-images .zoomable-image { width: 100%; aspect-ratio: .82; border-radius: 11px; }
.linked-work-list { display: grid; gap: 8px; }
.linked-work-list button { width: 100%; padding: 13px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.linked-work-list span { color: var(--accent); font-size: 8px; }
.linked-work-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.linked-work-list small { color: var(--muted); font-size: 8px; }
.compact-empty { padding: 16px; }
.quiet-placeholder { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }

.image-viewer { position: absolute; z-index: 80; inset: 0; display: grid; grid-template-rows: 56px 1fr auto auto; padding: 0 15px 20px; background: rgba(8,8,8,.97); color: #fff; animation: viewer-in .18s ease both; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-top { display: grid; grid-template-columns: 40px 1fr 48px; align-items: center; gap: 8px; }
.viewer-top button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.viewer-top button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.viewer-top strong { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.viewer-top span { text-align: right; color: rgba(255,255,255,.65); font-size: 10px; }
.viewer-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.viewer-stage img { max-width: 100%; max-height: 100%; user-select: none; will-change: transform; transition: transform .08s linear; }
.image-viewer > p { margin: 10px 0; text-align: center; color: rgba(255,255,255,.55); font-size: 8px; }
.viewer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viewer-nav button { padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 9px; }
.viewer-nav button:disabled { opacity: .25; }

/* 0.5A cloud-backup preparation */
.cloud-status-card { position: relative; padding: 22px 20px; border: 1px solid rgba(220,127,89,.18); border-radius: 22px; overflow: hidden; background: linear-gradient(145deg,#fff3ec,#fff 72%); }
.cloud-status-card::after { content: ""; position: absolute; width: 116px; height: 116px; right: -46px; top: -52px; border: 1px solid rgba(220,127,89,.14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(220,127,89,.035); }
.cloud-status-card small { color: var(--accent); font-size: 8px; letter-spacing: .14em; }
.cloud-status-card h2 { margin: 12px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 22px; }
.cloud-status-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.cloud-status-card > span { display: inline-block; margin-top: 14px; padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 8px; }
.cloud-manifest { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.cloud-manifest div { padding: 12px 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.cloud-manifest strong, .cloud-manifest small { display: block; }
.cloud-manifest strong { font-family: ui-serif, Georgia, serif; font-size: 19px; font-weight: 500; }
.cloud-manifest small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.cloud-audit-time { margin: 9px 2px 14px; color: var(--muted); font-size: 8px; }
.cloud-audit-empty { padding: 22px 18px; border: 1px dashed rgba(220,127,89,.32); border-radius: 17px; background: #fffaf7; }
.secondary-btn { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 650; cursor: pointer; }
.cloud-safeguards { display: grid; gap: 8px; }
.cloud-safeguards section { padding: 14px; display: grid; grid-template-columns: 30px 1fr; gap: 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cloud-safeguards section > strong { color: var(--accent); font-family: ui-serif, Georgia, serif; font-size: 12px; font-weight: 500; }
.cloud-safeguards h3 { margin: 0; font-size: 10px; }
.cloud-safeguards p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.cloud-readiness { border-top: 1px solid var(--line); }
.cloud-readiness > div { padding: 12px 2px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.cloud-readiness > div > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f1efec; color: var(--muted); font-size: 10px; }
.cloud-readiness > div > span.done { background: var(--accent-soft); color: var(--accent); }
.cloud-readiness p, .cloud-readiness strong, .cloud-readiness small { display: block; margin: 0; }
.cloud-readiness strong { font-size: 10px; }
.cloud-readiness small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.disabled-cloud { margin-top: 20px; opacity: .38; box-shadow: none; }
.cloud-hint { margin-top: 11px; text-align: center; }

/* 0.5.1—0.5.4 local archive, sharing, search and long-form writing */
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.top-actions .text-btn { width: auto; padding: 7px 5px; font-size: 9px; }
.undo-import-btn { margin-top: 9px; color: var(--muted); font-weight: 500; }
.import-summary { margin-bottom: 18px; padding: 22px 20px; border: 1px solid rgba(220,127,89,.18); border-radius: 22px; background: linear-gradient(140deg,#fff3ec,#fff 72%); }
.import-summary small { color: var(--accent); font-size: 8px; letter-spacing: .12em; }
.import-summary h2 { margin: 9px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.import-summary p { margin: 0; color: var(--muted); font-size: 8px; }
.import-mode, .settings-toggle { margin: 9px 0; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.import-mode > span, .settings-toggle > span { min-width: 0; flex: 1; }
.import-mode strong, .import-mode small, .settings-toggle strong, .settings-toggle small { display: block; }
.import-mode strong, .settings-toggle strong { font-size: 10px; }
.import-mode small, .settings-toggle small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.import-mode input { accent-color: var(--accent); }
.settings-toggle input { width: 34px; height: 20px; accent-color: var(--accent); }

.global-search-box { position: sticky; z-index: 5; top: 0; margin: 0 0 14px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(80,55,42,.05); }
.global-search-box svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.global-search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-count { margin: 0 2px 9px; color: var(--muted); font-size: 8px; }
.search-results { border-top: 1px solid var(--line); }
.search-results button { width: 100%; padding: 14px 2px; display: block; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.search-results small { color: var(--accent); font-size: 8px; }
.search-results strong { display: block; margin-top: 5px; font-size: 11px; }
.search-results p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

.image-order { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 4px; }
.image-order button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,20,20,.68); color: #fff; font-size: 11px; }
.work-editor-images > div > button { position: absolute; z-index: 2; top: 5px; right: 5px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(20,20,20,.68); color: #fff; }
.work-editor-images > div > select { width: 100%; margin-top: 5px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 8px; }
.large-work-gallery { grid-template-columns: 1fr; gap: 12px; }
.large-work-gallery .zoomable-image { width: 100%; max-height: 440px; aspect-ratio: auto; object-fit: contain; border-radius: 16px; background: #f7f5f3; }
.autosave-label { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.work-summary-line { margin-bottom: 14px; padding: 14px 15px; display: flex; justify-content: space-between; border-radius: 15px; background: var(--accent-soft); }
.work-summary-line strong { font-size: 11px; }
.work-summary-line span { color: var(--accent); font-size: 9px; }
.chapter-list { border-top: 1px solid var(--line); }
.chapter-list button { width: 100%; padding: 15px 2px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.chapter-list span, .chapter-list small { color: var(--muted); font-size: 8px; }
.chapter-list strong { font-family: "Songti SC", "STSong", serif; font-size: 12px; }
.work-chapter-reading section { padding: 24px 0; border-top: 1px solid var(--line); }
.work-chapter-reading small { color: var(--accent); font-size: 8px; }
.work-chapter-reading h3 { margin: 8px 0 16px; font-family: "Songti SC", "STSong", serif; font-size: 19px; }
.work-chapter-reading p { font-family: "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.95; }
.reader-page { padding-left: 30px; padding-right: 30px; }
.reader-page > h1 { margin: 28px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 27px; font-weight: 600; }
.reader-page > small { color: var(--muted); font-size: 8px; }
.reader-page article { padding: 26px 0 60px; font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 2.05; }
.reader-page article h2 { margin: 36px 0 18px; font-size: 21px; }

.share-generated { margin: 16px 0; display: grid; gap: 13px; }
.share-generated img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 30px rgba(70,45,32,.08); }
.share-save-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-save-actions .primary-btn { margin: 0; }
.share-empty { margin-top: 16px; }

/* 0.6.0 private AI responses */
.ai-privacy-card { position: relative; margin-bottom: 20px; padding: 22px 20px; overflow: hidden; border: 1px solid rgba(220,127,89,.18); border-radius: 22px; background: linear-gradient(140deg,#fff2e9,#fff 74%); }
.ai-privacy-card::after { content:"✦"; position:absolute; right:18px; top:10px; color:rgba(220,127,89,.18); font-size:55px; }
.ai-privacy-card small { color:var(--accent); font-size:8px; letter-spacing:.13em; }
.ai-privacy-card h2 { margin:11px 0 8px; font-family:"Songti SC","STSong",serif; font-size:21px; }
.ai-privacy-card p { margin:0; color:var(--muted); font-size:9px; line-height:1.7; }
.secret-input { display:grid; grid-template-columns:1fr auto; gap:7px; }
.secret-input button { padding:0 13px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--accent); font-size:9px; }
.ai-config-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }
.ai-config-actions .primary-btn { margin:0; }
.ai-response-section { margin:22px 0; border:1px solid rgba(220,127,89,.18); border-radius:20px; overflow:hidden; background:linear-gradient(145deg,#fff9f5,#fff); }
.ai-response-head { padding:14px 15px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ai-response-head small,.ai-response-head strong { display:block; }
.ai-response-head small { color:var(--accent); font-size:8px; }
.ai-response-head strong { margin-top:4px; font-family:"Songti SC","STSong",serif; font-size:12px; }
.ai-response-head > button { padding:6px 9px; border:0; border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:8px; }
.ai-response-body { padding:0 15px 15px; }
.ai-empty-copy { margin:2px 0 13px; color:var(--muted); font-size:9px; line-height:1.65; }
.ai-thread { display:grid; gap:9px; margin-bottom:12px; }
.ai-message { position:relative; max-width:92%; padding:12px 14px; border-radius:15px; }
.ai-message.assistant { justify-self:start; background:#fff; border:1px solid var(--line); }
.ai-message.user { justify-self:end; background:var(--accent-soft); }
.ai-message small { color:var(--accent); font-size:8px; }
.ai-message p { margin:5px 16px 0 0; color:var(--ink); font-family:"Songti SC","STSong",serif; font-size:11px; line-height:1.7; }
.ai-message > button { position:absolute; right:6px; top:5px; width:22px; height:22px; padding:0; border:0; background:transparent; color:#b7aea8; }
.ai-reply-row { display:grid; grid-template-columns:1fr auto; align-items:end; gap:7px; }
.ai-reply-row textarea { min-height:66px; padding:11px; border:1px solid var(--line); border-radius:13px; resize:none; font-size:10px; }
.ai-reply-row button { min-width:54px; height:39px; border:0; border-radius:12px; background:var(--ink); color:#fff; font-size:9px; }
.ai-actions { display:flex; gap:7px; margin-top:9px; }
.ai-actions button { padding:9px 12px; border:1px solid rgba(220,127,89,.2); border-radius:12px; background:#fff; color:var(--accent); font-size:9px; }
.ai-actions button:first-child { flex:1; background:var(--accent); color:#fff; }
.ai-actions button:disabled,.ai-reply-row button:disabled { opacity:.55; }
.ai-error { margin:8px 0; padding:9px 10px; border-radius:10px; background:#fff0ed; color:#b84e3d; font-size:8px; line-height:1.5; }
.moment-response .ai-response-section { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; }
.moment-response { padding:0 !important; }
.ai-field-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:8px; }
.ai-field-grid label { padding:8px 5px; display:flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:10px; font-size:8px; }
.ai-field-grid input { accent-color:var(--accent); }
.ai-image-picker { margin:8px 0 12px; padding:11px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.ai-image-picker > small { color:var(--accent); font-size:8px; }
.ai-image-picker > div { margin-top:8px; display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.ai-image-picker button { position:relative; padding:0; overflow:hidden; aspect-ratio:1; border:2px solid transparent; border-radius:10px; background:#f5f2ef; }
.ai-image-picker button.selected { border-color:var(--accent); }
.ai-image-picker img { width:100%; height:100%; object-fit:cover; }
.ai-image-picker button span { position:absolute; right:4px; top:4px; width:19px; height:19px; display:grid; place-items:center; border-radius:50%; background:rgba(20,20,20,.65); color:#fff; font-size:10px; }
.ai-image-picker p { margin:7px 0 0; color:var(--muted); font-size:8px; }
.ai-message.streaming { opacity:.82; }
.ai-message.streaming small::after { content:""; display:inline-block; width:4px; height:4px; margin-left:5px; border-radius:50%; background:var(--accent); animation:ai-pulse .8s infinite alternate; }
@keyframes ai-pulse { to { opacity:.15; transform:scale(.7); } }

@media (max-width: 820px) {
  body { background: #efefed; }
  .showcase { display: block; padding: 12px; min-height: 100svh; }
  .intro { display: none; }
  .device-wrap { width: min(430px, 100%); margin: auto; }
  .device { width: 100%; height: auto; aspect-ratio: 430 / 900; border-radius: 13.5vw; }
  .device-side { display: none; }
  .screen { border-radius: 11.5vw; }
  .status-bar { padding-left: 6.5%; padding-right: 6.5%; }
}

@media (max-height: 930px) and (min-width: 821px) {
  .showcase { transform: scale(.89); transform-origin: center; min-height: 112vh; }
}

@media (display-mode: standalone) {
  body, .showcase { width: 100%; min-height: 100svh; background: #fff; }
  .showcase { display: block; padding: 0; }
  .intro, .device-side, .device::after { display: none; }
  .device-wrap, .device { width: 100%; height: 100svh; margin: 0; padding: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .device { aspect-ratio: auto; }
  .screen { border-radius: 0; }
  .status-bar { padding-top: env(safe-area-inset-top); height: calc(48px + env(safe-area-inset-top)); }
  .app { top: calc(48px + env(safe-area-inset-top)); }
}

body.native-app, body.native-app .showcase { width: 100%; min-height: 100svh; background: #fff; }
body.native-app .showcase { display: block; padding: 0; }
body.native-app .intro, body.native-app .device-side, body.native-app .device::after { display: none; }
body.native-app .device-wrap, body.native-app .device { width: 100%; height: 100svh; margin: 0; padding: 0; border-radius: 0; background: #fff; box-shadow: none; }
body.native-app .device { aspect-ratio: auto; }
body.native-app .screen { border-radius: 0; }
body.native-app .status-bar { display: none; }
body.native-app .app { inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.model-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.model-picker button{height:46px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-weight:600;white-space:nowrap}.ai-connection-status{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff}.ai-connection-status>span{width:10px;height:10px;border-radius:50%;background:#b8b4b0;box-shadow:0 0 0 5px rgba(184,180,176,.12)}.ai-connection-status div{display:grid;gap:3px}.ai-connection-status small{color:var(--muted);line-height:1.4}.ai-connection-status.ok>span{background:#5f9b75;box-shadow:0 0 0 5px rgba(95,155,117,.14)}.ai-connection-status.error>span{background:#c86e63;box-shadow:0 0 0 5px rgba(200,110,99,.13)}.ai-connection-status.testing>span{background:var(--accent);animation:aiPulse 1s ease-in-out infinite}.profile-long-field{margin-top:18px}.story-textarea.compact{min-height:110px}@keyframes aiPulse{50%{opacity:.35;transform:scale(.78)}}
.ai-comments{margin:14px 0 4px;border:0;border-radius:0;background:transparent;overflow:visible}.ai-comments .ai-response-body{padding:0}.ai-comments .ai-thread{display:grid;gap:14px}.ai-comments .ai-message{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:0;border:0;background:transparent}.ai-comment-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#fff1e9}.ai-comment-avatar.placeholder,.ai-comment-avatar.self{display:grid;place-items:center;color:var(--accent);font-family:"Songti SC","STSong",serif;font-size:13px}.ai-comment-avatar.self{color:#777;background:#f2f0ee}.ai-comment-content{position:relative;min-width:0;padding-right:24px}.ai-comment-content small{display:block;color:#8e8781;font-size:9px}.ai-comment-content p{margin:4px 0 0;color:#25211f;font-family:"Songti SC","STSong",serif;font-size:12px;line-height:1.75;white-space:normal;overflow:visible;max-height:none}.ai-comment-delete{position:absolute;right:0;top:-5px;padding:2px;border:0;background:transparent;color:#aaa;font-size:12px}.ai-reply-row{margin:14px 0 8px}.ai-image-note{margin:8px 0;color:#9a928c;font-size:8px}.ai-empty-copy{margin:0 0 10px;color:#918983;font-size:9px}.ai-actions{justify-content:flex-start}.ai-actions button:first-child{padding:7px 11px;border:0;background:#fff3ec;color:var(--accent);border-radius:999px}.collapsed-profile strong,.collapsed-profile small{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal!important}.char-count{float:right;color:var(--muted);font-size:9px;font-weight:400}.work-type-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px}.work-type-picker input{position:absolute;opacity:0}.work-type-picker span{display:block;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;font-weight:700}.work-type-picker small{display:block;margin-top:5px;color:var(--muted);font-size:8px;font-weight:400}.work-type-picker input:checked+span{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.work-series-summary{color:var(--muted);font-family:"Songti SC","STSong",serif;line-height:1.8}.reader-chapter-list{margin-top:18px}.reader-page>h2{margin:14px 0 4px;font-family:"Songti SC","STSong",serif;font-size:17px}.reader-chapter-nav{position:sticky;bottom:74px;margin:30px 0 10px;padding:10px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(60,45,35,.08)}.reader-chapter-nav button{padding:9px 4px;border:0;background:transparent;color:var(--ink);font-size:9px}.reader-chapter-nav button:disabled{opacity:.3}
