:root {
  color-scheme: light;
  --bg: #ecf8fe; --surface: #fffef5; --surface-alt: #e0edf4;
  --ink: #344f63; --muted: #5e788b; --line: #adc2cf;
  --accent: #507b99; --accent-dark: #3c637f; --tint: #d6e8f2; --soft: #faf7d8;
  --green: #729a9a; --green-bg: #e1efeb; --gold: #9e894b;
  --shadow: 0 24px 90px #59403912; --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:15px; -webkit-font-smoothing:antialiased; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; border:0; color:inherit; background:none; }
button:disabled { opacity:.45; cursor:default; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
button { touch-action:manipulation; }
button:not(.swatch):not(.nav-item):hover { filter:brightness(.98); }
.icon { width:22px; height:22px; flex:none; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.preview-layout { min-height:100dvh; max-width:1120px; margin:auto; display:grid; grid-template-columns:1fr 460px; gap:90px; padding:32px 48px; align-items:center; }
.preview-aside { height:min(824px,calc(100dvh - 110px)); min-height:570px; display:flex; flex-direction:column; align-items:flex-start; }
.wordmark { display:flex; align-items:center; gap:12px; font-size:11px; font-weight:650; letter-spacing:2px; }
.brand-mark { width:38px; height:38px; background:var(--accent); color:var(--surface); display:grid; place-items:center; border-radius:13px; font:bold 26px Georgia,serif; letter-spacing:-2px; padding-right:2px; }
.preview-intro { margin:auto 0; padding:35px 0; width:100%; }
.eyebrow { font-size:9px; letter-spacing:2.2px; font-weight:650; color:var(--accent); }
.preview-intro h1 { font-family: 'Songti SC','STSong',Georgia,serif; font-size:52px; line-height:1.35; letter-spacing:1px; font-weight:600; margin:24px 0; }
.preview-intro > p { color:var(--muted); font-size:14px; line-height:2; }
.preview-index { margin-top:36px; max-width:270px; }
.preview-index button { display:flex; width:100%; align-items:center; padding:13px 0; border-bottom:1px solid var(--line); font-size:12px; gap:16px; text-align:left; }
.preview-index button > span:first-child { color:var(--muted); font-size:10px; font-family:ui-monospace,monospace; }
.index-arrow { margin-left:auto; color:var(--accent); font-size:16px; }
.preview-footer p { font-size:10px; color:var(--muted); margin:16px 0 0; letter-spacing:.3px; }
.theme-swatches { display:flex; align-items:center; gap:12px; }
.swatch { height:23px; width:23px; border-radius:50%; border:3px solid var(--bg); outline:1px solid transparent; }
.swatch.sea-salt { background:linear-gradient(135deg,#bbdbe9 50%,#f4efb7 50%); }.swatch.blackpink { background:linear-gradient(135deg,#222 50%,#ecb8d1 50%); }
.swatch.selected { outline-color:var(--accent); }
.theme-swatches span { font-size:11px; color:var(--muted); margin-left:4px; }
.device-stage { width:100%; }
.app-shell { position:relative; height:min(880px,calc(100dvh - 84px)); min-height:640px; background:var(--bg); overflow:hidden; border-radius:36px; border:1px solid var(--line); box-shadow:var(--shadow),0 0 0 7px var(--surface); display:flex; flex-direction:column; isolation:isolate; }
.stage-caption { text-align:center; font-size:10px; color:var(--muted); letter-spacing:.4px; margin:20px 0 0; }
.telegram-bar { height:48px; flex:none; display:flex; padding:0 6px; justify-content:space-between; align-items:center; background:var(--surface); border-bottom:1px solid var(--line); }
.telegram-title { display:flex; align-items:center; justify-content:center; gap:7px; line-height:20px; min-width:0; }
.telegram-title h1 { margin:0; font-size:14px; font-weight:550; white-space:nowrap; }
.telegram-title .preview-tag { font-size:9px; color:var(--muted); font-weight:400; }
.telegram-bar > .icon-button .icon { width:18px; height:18px; }
.icon-button { width:44px; height:44px; display:inline-flex; justify-content:center; align-items:center; border-radius:50%; flex:none; }
.icon-button .icon { width:21px; height:21px; }
#main { overflow:auto; flex:1; scrollbar-width:none; overscroll-behavior:contain; position:relative; outline:none; }
#main::-webkit-scrollbar { display:none; }
.page { padding:18px 22px 22px; min-height:100%; animation:arrive .2s ease-out; }
@keyframes arrive { from { opacity:.45; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
.page-head h1 { font-size:27px; margin:7px 0 0; letter-spacing:-.7px; font-weight:650; line-height:1.25; }
.page-head p { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.preview-label { display:inline-flex; align-items:center; gap:5px; font-size:9px; border:1px solid var(--line); border-radius:6px; padding:3px 6px; color:var(--muted); letter-spacing:.1px; font-weight:450; }
.preview-label::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--gold); }
.home-avatar { width:58px; height:58px; display:grid; place-items:center; background:var(--tint); color:var(--accent); border-radius:20px; font-family:Georgia,serif; font-size:34px; position:relative; transform:rotate(3deg); box-shadow:inset 0 0 0 5px var(--soft); }
.home-avatar::after { content:'✧'; font-size:19px; position:absolute; top:-7px; right:-4px; color:var(--gold); }
.section-title { display:flex; justify-content:space-between; align-items:center; margin:24px 1px 12px; gap:10px; }
.section-title h2 { font-size:14px; font-weight:600; margin:0; }.section-title span { font-size:10px; color:var(--muted); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.context-card { display:block; text-align:left; padding:18px 20px; width:100%; background:var(--soft); border-color:var(--tint); }
.card-kicker { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:550; }.card-kicker .icon { width:17px; height:17px; color:var(--accent); }.card-kicker .chevron { margin-left:auto; color:var(--muted); width:15px; }
.context-numbers { display:flex; align-items:flex-end; justify-content:space-between; margin-top:15px; gap:10px; }
.context-percent { font-size:47px; font-weight:550; letter-spacing:-2px; line-height:1; font-variant-numeric:tabular-nums; }.context-percent span { font-size:22px; margin-left:2px; letter-spacing:0; }
.context-note { text-align:right; line-height:1.7; font-size:11px; color:var(--muted); }.context-note strong { color:var(--ink); font-weight:550; font-size:12px; }
.meter { background:var(--tint); height:6px; overflow:hidden; border-radius:9px; }.meter-fill { height:100%; background:var(--accent); border-radius:inherit; }
.context-card .meter { margin:16px 0 11px; background:var(--surface); height:7px; }
.meter-caption { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; }
.quota-card { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; padding:17px 0; }
.quota-half { padding:0 19px; text-align:left; }.quota-half + .quota-half { border-left:1px solid var(--line); }
.quota-top { display:flex; align-items:center; justify-content:space-between; font-size:11px; color:var(--muted); }.quota-top .icon { width:13px; height:13px; }
.quota-value { margin:9px 0; font-size:26px; font-weight:550; font-variant-numeric:tabular-nums; letter-spacing:-.6px; }.quota-value small { font-size:11px; margin-left:5px; font-weight:450; color:var(--muted); letter-spacing:0; }.quota-value span { font-size:15px; }
.quota-half .meter { height:4px; background:var(--green-bg); }.quota-half .meter-fill { background:var(--green); }
.quota-reset { font-size:9px; color:var(--muted); margin:9px 0 0; white-space:nowrap; }
.room-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.room-card { padding:17px 16px; text-align:left; position:relative; min-height:116px; transition:transform .15s ease; }.room-card:hover { transform:translateY(-2px); }
.room-icon { color:var(--accent); width:32px; height:29px; margin-bottom:11px; }.room-icon .icon { width:26px; height:26px; }
.room-card:nth-child(2) .room-icon { color:var(--green); }.room-card:nth-child(3) .room-icon { color:var(--gold); }
.room-name { font-size:13px; font-weight:600; }.room-desc { font-size:10px; color:var(--muted); margin-top:5px; }.room-badge { position:absolute; right:15px; top:16px; font-size:9px; color:var(--accent); background:var(--soft); padding:3px 6px; border-radius:5px; }
.terminal-entry { margin-top:11px; padding:14px 16px; display:flex; align-items:center; gap:13px; width:100%; text-align:left; }.terminal-icon { width:37px; height:37px; border-radius:12px; background:var(--surface-alt); color:var(--ink); display:grid; place-items:center; }.terminal-entry .entry-description { flex:1; }.terminal-entry .icon.chevron { color:var(--muted); width:16px; }
.quiet-footer { margin:19px 0 0; color:var(--muted); font-size:10px; text-align:center; letter-spacing:.4px; }.quiet-footer .icon { width:12px; height:12px; margin-right:3px; }
.bottom-nav { height:52px; padding:3px 8px 4px; border-top:1px solid var(--line); background:var(--surface); display:grid; grid-template-columns:repeat(4,1fr); flex:none; }
.nav-item { position:relative; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:0; font-size:12px; color:var(--muted); border-radius:0; }
.nav-item .icon { width:20px; height:20px; }
.nav-item.active { color:var(--accent-dark); font-weight:600; }
.nav-item.active::after { content:''; position:absolute; width:12px; height:2px; border-radius:1px; bottom:2px; left:calc(50% - 6px); background:currentColor; }
.nav-symbol { width:20px; height:20px; display:grid; place-items:center; }
.segmented { display:flex; background:var(--surface-alt); padding:4px; border-radius:16px; gap:4px; }.segmented button { flex:1; border-radius:12px; padding:11px 6px; color:var(--muted); font-size:13px; display:flex; align-items:center; justify-content:center; gap:8px; min-height:43px; }.segmented button.active { background:var(--surface); box-shadow:0 2px 5px #473a3510; color:var(--ink); font-weight:600; }
.mini-avatar { width:25px; height:25px; background:var(--tint); color:var(--accent-dark); font-family:Georgia,serif; border-radius:8px; display:inline-grid; place-items:center; flex:none; }.mini-avatar.elio { background:var(--green-bg); color:var(--green); }
.mail-tabs { display:flex; gap:22px; align-items:center; padding:10px 2px 0; border-bottom:1px solid var(--line); margin-top:12px; }.mail-tabs button { padding:12px 0; color:var(--muted); font-size:12px; min-height:44px; border-bottom:2px solid transparent; }.mail-tabs button.active { color:var(--accent-dark); border-bottom-color:var(--accent); font-weight:600; }.mail-tabs .mail-count { font-size:10px; margin-left:5px; }.mail-tabs .search-toggle { margin-left:auto; width:36px; }.search-toggle .icon { width:17px; height:17px; }
.search-field { width:100%; border:1px solid var(--line); border-radius:12px; padding:12px; margin:12px 0 0; color:var(--ink); background:var(--surface); font-size:13px; }
.mail-list { margin-top:6px; }.letter { width:100%; display:block; text-align:left; padding:20px 1px; border-bottom:1px solid var(--line); }.letter-meta { display:flex; align-items:center; font-size:11px; color:var(--muted); gap:6px; }.letter-meta time { margin-left:auto; font-size:10px; }.unread-dot { width:6px; height:6px; background:var(--accent); border-radius:50%; }.letter h2 { font-size:15px; font-weight:600; margin:9px 0; letter-spacing:-.2px; }.letter p { font-size:12px; color:var(--muted); line-height:1.8; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }.empty { padding:35px 12px; text-align:center; color:var(--muted); font-size:13px; line-height:1.8; }
.mail-end { text-align:center; font-size:10px; color:var(--muted); margin:26px 0; }.mail-end .icon { width:21px; height:21px; display:block; margin:0 auto 9px; opacity:.5; }
.back-link { display:inline-flex; align-items:center; gap:5px; font-size:12px; padding:0 0 16px; min-height:40px; color:var(--accent); }.back-link .icon { width:15px; height:15px; }
.letter-paper { border-radius:5px 5px 22px 22px; padding:26px 23px; position:relative; overflow:hidden; border:1px solid var(--line); background:var(--surface); }.letter-paper::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:repeating-linear-gradient(110deg,var(--accent) 0 15px,var(--surface) 15px 25px,var(--tint) 25px 40px,var(--surface) 40px 50px); opacity:.65; }.letter-paper h1 { font-size:23px; line-height:1.5; margin:10px 0 14px; }.letter-byline { color:var(--muted); font-size:11px; line-height:1.9; padding-bottom:21px; border-bottom:1px solid var(--line); }.letter-body { padding-top:6px; font-size:14px; line-height:2.1; }.letter-body p { margin:22px 0; }.letter-stamp { text-align:right; color:var(--accent); padding-top:10px; }.letter-stamp .icon { width:28px; height:28px; }
.daily-tabs { margin-bottom:23px; }.daily-top { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--muted); margin:0 0 18px; }.daily-top .icon { width:16px; height:16px; }
.post { margin:0 0 17px; padding:19px 17px; }.post-author { display:flex; gap:10px; align-items:center; }.post-avatar { width:37px; height:37px; background:var(--tint); color:var(--accent-dark); border-radius:12px; display:grid; place-items:center; font:23px Georgia,serif; }.post-avatar.elio { background:var(--green-bg); color:var(--green); }.post-author strong { font-size:13px; font-weight:600; }.post-author time { display:block; color:var(--muted); font-size:9px; margin-top:4px; }.post-text { font-size:13px; line-height:1.95; white-space:pre-line; margin:15px 0; }.post-art { height:155px; padding:22px; background:#eee4d7; color:#796754; display:flex; align-items:center; justify-content:space-between; border-radius:12px; overflow:hidden; }.post-art-text { font-family:'Songti SC','STSong',serif; font-size:22px; line-height:1.6; letter-spacing:2px; }.post-art-text small { display:block; margin-top:12px; font:8px -apple-system,sans-serif; letter-spacing:2px; }.plant { width:100px; height:120px; color:#829074; flex:none; }
.post-actions { display:flex; justify-content:flex-end; gap:15px; margin-top:12px; }.post-actions button { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:6px; min-width:44px; min-height:34px; }.post-actions .icon { width:17px; height:17px; }.post-actions .liked { color:var(--accent); }.post-actions .liked .icon { fill:var(--tint); }
.comments { border-top:1px solid var(--line); padding-top:11px; margin-top:5px; font-size:11px; line-height:1.8; }.comments p { margin:2px 0; overflow-wrap:anywhere; }.comments strong { color:var(--accent); font-weight:550; }.comment-form { display:flex; gap:8px; margin-top:12px; }.comment-form input { min-width:0; flex:1; border:1px solid var(--line); padding:9px 10px; border-radius:10px; background:var(--bg); color:var(--ink); font-size:11px; }.comment-form button { width:36px; border-radius:10px; background:var(--tint); color:var(--accent); }.comment-form .icon { width:17px; height:17px; }
.anniversary-hero { padding:26px 24px; background:var(--soft); text-align:center; border-color:var(--tint); position:relative; }.anniversary-hero .flower { width:34px; height:34px; color:var(--accent); margin:0 auto 15px; }.anniversary-hero h2 { font-size:18px; font-weight:550; margin:0; }.anniversary-hero p { font-size:11px; color:var(--muted); margin:10px 0 19px; }.days-number { font-size:60px; font-weight:450; line-height:1; letter-spacing:-3px; color:var(--accent-dark); font-variant-numeric:tabular-nums; }.days-number small { font-size:13px; letter-spacing:0; margin-left:7px; color:var(--muted); }.anniversary-date { font-size:10px; color:var(--muted); margin-top:20px; letter-spacing:1px; }
.event-list { margin-top:18px; }.event { display:flex; gap:13px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); }.event-icon { color:var(--accent); background:var(--soft); width:42px; height:42px; border-radius:14px; display:grid; place-items:center; flex:none; }.event-icon .icon { width:20px; }.event-info { flex:1; min-width:0; }.event-info strong { font-size:13px; font-weight:550; overflow-wrap:anywhere; }.event-info p { font-size:10px; color:var(--muted); margin:6px 0 0; }.event-days { color:var(--accent-dark); text-align:right; font-size:17px; font-variant-numeric:tabular-nums; }.event-days small { color:var(--muted); font-size:9px; display:block; margin-top:4px; }
.secondary-button { background:var(--surface); color:var(--accent-dark); border:1px solid var(--line); border-radius:13px; font-size:12px; padding:12px 16px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:7px; }.secondary-button .icon { width:16px; height:16px; }.full-width { width:100%; margin-top:20px; }
.event-remove { min-width:32px; min-height:44px; color:var(--muted); font-size:19px; }
.terminal-status { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); margin:15px 0 12px; }.terminal-status::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; }
.session-picker { display:flex; justify-content:space-between; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:0 13px; min-height:48px; font-size:11px; }.session-picker select { border:0; background:var(--surface); color:var(--ink); padding:11px 4px; max-width:75%; outline-offset:0; font-size:12px; }
.terminal-window { background:#292b30; border:1px solid #3d3d43; border-radius:18px; overflow:hidden; color:#e6e3df; }.terminal-toolbar { background:#323439; padding:13px 15px; display:flex; justify-content:space-between; font-size:10px; color:#bcb7b5; }.terminal-dots { display:flex; align-items:center; gap:5px; }.terminal-dots i { display:block; width:6px; height:6px; border-radius:50%; background:#77716f; }.terminal-dots i:first-child { background:#b68086; }.terminal-dots i:nth-child(2) { background:#b7a27c; }.terminal-dots i:nth-child(3) { background:#839885; }
.terminal-output { padding:18px 16px; font:11px/1.95 ui-monospace,SFMono-Regular,Menlo,monospace; min-height:240px; max-height:330px; overflow:auto; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; scrollbar-width:thin; }.terminal-help { color:#b3c6ad; }.terminal-dim { color:#b1aaad; }.terminal-prompt { color:#dcc0cb; }
.terminal-form { display:flex; padding:12px; gap:6px; border-top:1px solid #48454a; }.terminal-form label { align-self:center; color:#d2a3b2; padding-left:4px; }.terminal-form input { width:100%; min-width:0; background:none; border:0; padding:8px 4px; color:#f1ece8; font:11px ui-monospace,monospace; }.terminal-form input::placeholder { color:#b9b1b5; }.terminal-form button { color:#edd8df; border-radius:8px; background:#484049; width:36px; flex:none; }.terminal-form .icon { width:17px; height:17px; }
.terminal-keys { display:flex; gap:6px; margin:12px 0 16px; }.terminal-keys button { flex:1; min-height:36px; font:10px ui-monospace,monospace; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--muted); }
.terminal-explainer { font-size:11px; color:var(--muted); line-height:1.85; padding:16px 18px; }.terminal-explainer strong { color:var(--ink); display:flex; gap:6px; align-items:center; margin-bottom:7px; font-size:12px; font-weight:550; }.terminal-explainer .icon { width:15px; height:15px; }.terminal-explainer p { margin:0; }
#toast { position:absolute; bottom:88px; left:50%; transform:translate(-50%,8px); border-radius:12px; padding:11px 15px; background:var(--ink); color:var(--bg); font-size:11px; max-width:88%; width:max-content; text-align:center; opacity:0; pointer-events:none; transition:.18s; z-index:5; box-shadow:0 5px 15px #0001; }.toast-visible#toast { opacity:1; transform:translate(-50%,0); }
dialog { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:26px; padding:24px; width:min(390px,calc(100% - 32px)); max-height:85dvh; overflow:auto; box-shadow:0 20px 100px #0002; }dialog::backdrop { background:#29212666; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:15px; }.modal-head h2 { font-size:19px; margin:0; font-weight:600; }.modal-head .icon-button { margin:-10px -10px -10px 0; }
.modal-copy { color:var(--muted); font-size:12px; line-height:1.9; }.detail-row { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:15px 0; font-size:12px; }.detail-row span { color:var(--muted); }.detail-row strong { font-weight:550; text-align:right; }
.theme-option { width:100%; min-height:50px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; }.theme-option .swatch { pointer-events:none; }.theme-option .icon { margin-left:auto; width:17px; height:17px; color:var(--accent); }
.form-label { display:block; margin:16px 0; color:var(--muted); font-size:11px; }.form-label input,.form-label select { margin-top:7px; width:100%; border:1px solid var(--line); border-radius:11px; color:var(--ink); background:var(--bg); padding:12px; font-size:13px; min-height:44px; }.primary-button { width:100%; border-radius:12px; background:var(--accent); color:var(--surface); padding:13px; font-size:13px; min-height:46px; font-weight:550; }.form-footnote { text-align:center; font-size:10px; color:var(--muted); margin:13px 0 0; }
@media (max-width:1000px) and (min-width:701px) { .preview-layout { max-width:900px; grid-template-columns:1fr 410px; gap:38px; padding:32px; }.preview-intro h1 { font-size:43px; } }
@media (max-width:700px) { .preview-layout { display:block; min-height:100dvh; padding:0; }.preview-aside,.stage-caption { display:none; }.device-stage { width:100%; }.app-shell { height:100dvh; min-height:0; border:0; border-radius:0; box-shadow:none; width:100%; max-width:500px; margin:auto; }.telegram-bar { height:calc(48px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); }.page { padding:18px 18px 22px; }.bottom-nav { height:calc(52px + env(safe-area-inset-bottom)); padding-bottom:calc(4px + env(safe-area-inset-bottom)); }#toast { bottom:calc(64px + env(safe-area-inset-bottom)); } }
@media (max-width:370px) { .page { padding:20px 16px 26px; }.context-card { padding:17px; }.quota-half { padding:0 14px; }.room-card { padding:15px; }.quota-reset { font-size:8px; }.post { padding:17px 14px; }.post-art { padding:17px; }.post-art-text { font-size:19px; }.plant { width:80px; }.page-head h1 { font-size:25px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
