@font-face{font-family:"Life Chinese";src:local("Songti SC"),local("SongtiSC-Regular"),local("STSong");font-weight:100 900;font-display:swap;unicode-range:U+2E80-2FFF,U+3000-303F,U+31C0-31EF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
:root{--ink:#30425f;--muted:#5e7089;--line:#6983a52a;--paper:#f5f8ff;--font:"Life Chinese",-apple-system,BlinkMacSystemFont,"Songti SC",serif;--nav:72px;--composer:125px;font:16px/1.65 var(--font);color:var(--ink);color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#dce6f5}button,input,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{background:none;border:0;cursor:pointer;padding:0}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #57769b;outline-offset:4px}a{color:inherit}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-weight:400}ul{padding:0;margin:0;list-style:none}img{display:block;max-width:100%}[hidden]{display:none!important}
.scene{position:fixed;inset:0;background:linear-gradient(#edf3fc40,#edf3fcb0 70%),url('media/window-snow-v1.png') 54% center/cover;z-index:-1}
.mobile-shell{max-width:430px;margin:auto;min-height:100dvh;position:relative;background:linear-gradient(180deg,#edf3fc28 0%,#eaf1fc80 230px,#f0f5fdec 620px);box-shadow:0 0 90px #30425f12}
.topbar{height:82px;padding:25px 25px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.wordmark{font:600 27px/1 system-ui;letter-spacing:-1.8px;text-decoration:none}.preview-chip{font-size:11px;color:#465d7b;padding:9px 0}.preview-chip span{font-family:var(--font)}
#screen{padding:17px 25px calc(var(--nav) + env(safe-area-inset-bottom) + 30px);min-height:calc(100dvh - 82px);outline:none}
body[data-page="chat"] #screen{padding-bottom:calc(var(--nav) + var(--composer) + env(safe-area-inset-bottom) + 32px)}
.page-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:25px}.page-heading h1{font-size:28px;line-height:1.3;letter-spacing:.02em}.page-heading p{font-size:12px;color:var(--muted)}.page-heading .english{font:400 29px/1.3 system-ui;letter-spacing:-1px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,430px);height:calc(var(--nav) + env(safe-area-inset-bottom));padding:7px 16px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);z-index:8;background:#f4f8fff2;border-top:1px solid #fff;backdrop-filter:blur(22px);box-shadow:0 -7px 25px #60779908}
.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#697c96;font-size:11px;min-height:52px}.nav-item svg{width:22px;height:22px;stroke-width:1.5}.nav-item[aria-current="page"]{color:#263e60}.nav-item[aria-current="page"] svg{stroke-width:2}.nav-item[aria-current="page"]::after{content:"";width:3px;height:3px;border-radius:50%;background:currentColor;position:absolute;bottom:calc(8px + env(safe-area-inset-bottom))}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* The conversation lives in an open page; the user's photo is its visual anchor. */
.chat-intro{padding:37px 0 27px}.chat-intro h2{font-size:24px;line-height:1.65;max-width:12em}.chat-intro p{font-size:14px;line-height:1.9;color:var(--muted);margin-top:13px;max-width:21em}.sample-invite{margin-top:27px;display:inline-flex;align-items:center;gap:10px;border:1px solid #7a91ae65;padding:10px 16px;border-radius:24px;font-size:13px;background:#f2f7ff66;min-height:44px}.sample-invite svg{width:17px;height:17px}.sample-footnote{font-size:11px!important;margin-top:10px!important}
.conversation-date{font-size:11px;color:var(--muted);text-align:center;margin:18px 0 25px}.message{margin:0 0 24px}.message.user{margin-left:26px}.message-photo{width:100%;max-height:280px;object-fit:cover;object-position:center;border-radius:12px 12px 2px 2px}.message.user .message-text{padding:15px 17px;background:#f5f8ffda;border-radius:2px 2px 12px 12px;font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.message.user:not(:has(img)) .message-text{border-radius:13px 13px 2px 13px}.message-label{font-size:11px;color:var(--muted);margin-bottom:7px}.message.partner{padding-right:15px}.partner-mark{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-bottom:8px}.partner-mark::before{content:"";width:7px;height:7px;border-radius:50%;border:1px solid #8497b6;background:#eaf1fb}.message.partner .message-text{font-size:17px;line-height:1.9;white-space:pre-wrap}.journal-receipt{margin:9px 0 0 auto;display:flex;align-items:center;gap:6px;font-size:12px;color:#526b85;min-height:35px}.journal-receipt svg{width:14px;height:14px}.change-receipt{font-size:12px;line-height:1.9;padding:13px 0;border-top:1px solid var(--line);margin:0 0 24px;color:var(--muted)}.change-receipt button{min-height:36px;color:#435d80;text-decoration:underline;text-underline-offset:4px;margin-left:8px}
.composer{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav) + env(safe-area-inset-bottom));width:min(100%,430px);padding:9px 18px 14px;background:linear-gradient(#edf3fded,#f4f8fff5);backdrop-filter:blur(18px);z-index:7;border-top:1px solid #ffffffb0}.composer-context{display:flex;align-items:center;justify-content:space-between;margin:0 8px 7px;font-size:11px;color:var(--muted)}.composer-context button{min-height:31px;padding:3px 9px;border:1px solid transparent;border-radius:15px}.composer-context button[aria-pressed="true"]{border-color:#b5c5da;background:#e2ebf8;color:var(--ink)}.composer-row{display:flex;align-items:end;gap:9px;border:1px solid #b8c8dc96;border-radius:19px;padding:8px;background:#f8fbffd9;box-shadow:0 3px 12px #425b7b05}.icon-button{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center}.composer textarea{background:transparent;border:0;resize:none;width:100%;height:35px;min-height:35px;max-height:115px;padding:4px 0;font-size:16px;line-height:27px;outline-offset:0}.composer textarea::placeholder{color:#7b8ba1}.send-button{border-radius:50%;background:#405b80;color:white;flex-shrink:0;width:35px;height:35px;display:grid;place-items:center}.send-button svg{width:18px;height:18px}.attachment{display:flex;align-items:center;gap:12px;padding:0 8px 9px;font-size:12px}.attachment img{width:48px;height:48px;object-fit:cover;border-radius:7px}.attachment button{margin-left:auto;width:36px;height:36px;font-size:23px}
/* A life roll: images, original words and dates, with no enclosing card grid. */
.journal-intro{font-size:14px;color:var(--muted);line-height:1.9;margin:-8px 0 28px}.journal-entry{margin:0 0 35px;padding-bottom:28px;border-bottom:1px solid var(--line)}.entry-open{display:block;width:100%;text-align:left}.journal-photo{width:100%;aspect-ratio:1.15;object-fit:cover;border-radius:3px}.journal-date{display:flex;justify-content:space-between;gap:10px;font-size:11px;line-height:1.6;color:var(--muted);margin:15px 0 11px}.journal-copy{font-size:17px;line-height:1.95;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.journal-entry.text-only .journal-copy{font-size:20px}.entry-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.text-link{font-size:12px;text-decoration:underline;text-underline-offset:5px;min-height:38px}.entry-bottom span{font-size:11px;color:var(--muted)}.empty{padding:35px 0 30px}.empty h2{font-size:24px;margin-bottom:15px}.empty p{font-size:15px;line-height:1.9;color:var(--muted)}.primary{display:inline-block;background:#405b80;color:#fff;border-radius:24px;padding:11px 21px;min-height:45px;font-size:14px;margin-top:24px}
/* Today remains practical. A moment sits above one continuous sheet. */
.today-clock{font:300 46px/1 system-ui;letter-spacing:-2px}.today-date{font-size:12px;color:var(--muted);margin-top:8px}.moment{padding:27px 0 30px}.moment>p{font-size:12px;color:var(--muted);margin-bottom:12px}.moment blockquote{margin:0;font-size:21px;line-height:1.8}.moment small{display:block;font-size:11px;color:var(--muted);margin-top:13px}.moment details{font-size:12px;color:var(--muted);margin-top:13px}.moment summary{cursor:pointer;min-height:34px}.moment details p{margin-top:9px;line-height:1.9}.today-sheet{background:#f5f8ffbb;margin:0 -10px;padding:22px 18px 18px;border-radius:8px;box-shadow:inset 0 1px 0 white}.section-title{display:flex;align-items:baseline;gap:9px;margin-bottom:14px}.section-title h2{font:400 21px/1.3 system-ui;letter-spacing:-.5px}.section-title span{font-size:12px;color:var(--muted)}.task-row{display:flex;align-items:start;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:16px}.task-check{width:24px;height:24px;flex-shrink:0;border:1px solid var(--category);border-radius:50%;margin-top:2px;display:grid;place-items:center}.task-check svg{width:15px;height:15px}.task-check[aria-checked="true"]{background:var(--category);color:#fff}.task-row p{line-height:1.7}.task-row small{font-size:11px;line-height:1.6;color:var(--muted);display:block;margin-top:3px}.done-section{margin-top:28px}.add-task{display:flex;gap:9px;margin-top:14px}.add-task input{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);font-size:14px;min-height:44px}.add-task button{font-size:25px;min-width:35px}.today-note{font-size:11px;color:var(--muted);margin:18px 0 0}.journal-peek{margin-top:30px}.journal-peek button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:14px 0}.journal-peek img{width:64px;height:64px;object-fit:cover;border-radius:3px}.journal-peek p{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.period-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:25px}.period-tabs button{flex:1;padding:10px;min-height:44px;font-size:14px;border-bottom:2px solid transparent;color:var(--muted)}.period-tabs button[aria-pressed="true"]{border-bottom-color:var(--ink);color:var(--ink)}.goal-period{font-size:12px;color:var(--muted);margin-bottom:8px}.goal-row{padding:22px 0;border-bottom:1px solid var(--line)}.goal-row h2{font-size:18px;line-height:1.6;margin-bottom:12px}.goal-progress{display:flex;gap:14px;align-items:center;font:12px system-ui}.goal-progress span{white-space:nowrap}.progress-track{flex:1;height:4px;background:#c8d5e680;position:relative}.progress-track i{display:block;height:100%;width:var(--progress);background:var(--category);border-radius:2px}.goal-note{font-size:12px;color:var(--muted);margin-top:22px;line-height:1.9}
dialog{padding:0;border:0;color:var(--ink);background:#f1f6ff;width:min(100%,430px);max-width:100%;max-height:94dvh;border-radius:20px 20px 0 0;margin:auto auto 0;box-shadow:0 -10px 80px #263e6025}dialog::backdrop{background:#263e6059;backdrop-filter:blur(4px)}.detail-head{display:flex;align-items:center;justify-content:space-between;padding:17px 22px}.detail-head h2{font:400 17px system-ui}.close-dialog{font:300 30px system-ui;width:40px;height:40px;border-radius:50%}.detail-image{width:100%;max-height:65dvh;object-fit:contain;background:#e5edf8}.detail-copy{padding:22px 25px calc(25px + env(safe-area-inset-bottom))}.detail-copy time{font-size:12px;color:var(--muted)}.detail-text{font-size:18px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0 25px}.detail-actions{display:flex;gap:18px}.detail-reply{padding-top:20px;margin-top:24px;border-top:1px solid var(--line)}.detail-reply p{font-size:15px;line-height:1.9;white-space:pre-wrap}.detail-reply small{font-size:11px;color:var(--muted)}.info-content{padding:30px 26px 38px;position:relative}.info-content>.close-dialog{position:absolute;right:12px;top:8px}.info-content h2{font-size:23px;margin:15px 0 23px}.info-content p{font-size:14px;line-height:1.9;margin:15px 0;color:var(--muted)}.status{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav) + var(--composer) + env(safe-area-inset-bottom) + 10px);max-width:calc(100% - 40px);width:max-content;z-index:20;font-size:12px;background:#344d6cf0;color:white;padding:10px 15px;border-radius:8px;pointer-events:none}.status:empty{display:none}
@media(min-width:700px){.mobile-shell{border-left:1px solid #ffffff80;border-right:1px solid #ffffff80}.scene{background-position:center}.mobile-shell{background-color:#eaf1fc40}}
@media(max-width:360px){.topbar{padding-left:19px;padding-right:19px}#screen{padding-left:19px;padding-right:19px}.page-heading h1{font-size:26px}.message.user{margin-left:13px}.composer{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:no-preference){.nav-item,.send-button{transition:color .15s,background .15s}}
.keyboard-open .bottom-nav{display:none}.keyboard-open .composer{bottom:var(--keyboard,0px)}
.moment-echo{border-top:1px solid var(--line);margin-top:21px;padding-top:18px;font-size:16px;line-height:1.9}.moment-echo small{margin-top:9px}.moment-echo details{margin-top:3px}.moment-echo details summary{min-height:30px;font-size:11px}

/* Show only occupied task sections; addition is an on-demand control. */
.done-section.is-only-section{margin-top:0}
.today-sheet .section-title{align-items:center;min-height:32px}
.task-add-toggle{margin-left:auto;display:grid;place-items:center;width:44px;height:44px;margin-top:-6px;margin-bottom:-6px;color:var(--muted);border-radius:50%}
.task-add-toggle svg{width:17px;height:17px;stroke-width:1.5}
.task-add-toggle:hover,.task-add-toggle[aria-expanded="true"]{background:#dce6f566;color:var(--ink)}
.quiet-add-task{margin:0 0 12px;align-items:center;gap:5px}
.quiet-add-task input{min-width:0;font-size:15px}
.quiet-add-task button{display:grid;place-items:center;width:36px;min-width:36px;height:44px;font-size:23px;color:var(--muted)}
.quiet-add-task button svg{width:17px;height:17px}
/* A photograph with a reverse side: one object, two ways to revisit a moment. */
.journal-turn-hint{font-size:12px;line-height:1.8;color:var(--muted);margin:-12px 0 21px}
.journal-card{perspective:1400px;margin:0 0 30px;isolation:isolate}
.journal-card-turner{position:relative;height:clamp(440px,125vw,505px);transform-style:preserve-3d;transition:transform .64s cubic-bezier(.22,.75,.18,1)}
.journal-card.is-flipped .journal-card-turner{transform:rotateY(180deg)}
.journal-card-face{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:5px 16px 16px 5px;background:#f6f9ff;box-shadow:0 16px 35px #435c7f1c,0 2px 5px #30425f12,inset 0 0 0 1px #ffffffbd;overflow:hidden}
.journal-card-front{display:flex;flex-direction:column;padding:9px;text-align:left;transform:rotateY(0deg)}
.card-photo-wrap{position:relative;display:block;flex:1;min-height:0;overflow:hidden;border-radius:2px 10px 2px 2px;background:#dce6f5}
.card-photo-wrap img{height:100%;width:100%;object-fit:cover;object-position:center}
.card-photo-label{position:absolute;left:12px;top:11px;color:#fff;background:#30425f66;border-radius:3px;padding:2px 7px;font-size:10px;backdrop-filter:blur(10px)}
.card-caption{display:block;position:relative;padding:17px 13px 33px;flex-shrink:0;min-height:124px}
.card-dateline{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:8px}
.card-first-line{font-size:19px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card-flip-cue{display:flex;align-items:center;justify-content:end;gap:7px;position:absolute;bottom:2px;right:5px;font-size:11px;color:#586e8c;min-height:28px}
.card-flip-cue svg{height:20px;width:20px;stroke-width:1.3}
.journal-card-front::after{content:"";position:absolute;right:0;bottom:0;width:19px;height:19px;background:linear-gradient(135deg,#dce6f5 0%,#e8eef8 48%,#f9fbff 50%);border-radius:4px 0 0 0;box-shadow:-2px -2px 5px #30425f0b;pointer-events:none}
.journal-card-back{transform:rotateY(180deg);display:flex;flex-direction:column;padding:24px 23px 18px;background:linear-gradient(130deg,#f7faff,#eaf1fb)}
.card-back-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line);gap:12px;flex-shrink:0}
.card-back-head>div>span{display:block;font-size:15px;line-height:1.4;margin-bottom:6px}.card-back-head time{font-size:11px;color:var(--muted)}
.card-turn-back{width:42px;height:42px;display:grid;place-items:center;border:1px solid #9aafc34d;border-radius:50%;flex-shrink:0;color:#526b89}.card-turn-back svg{width:21px;height:21px;stroke-width:1.3}
.card-back-body{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#95a9c455 transparent;min-height:0;flex:1;padding:21px 1px 16px}
.card-original{font-size:18px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}
.card-conversation{margin-top:23px;padding:17px 0 2px;border-top:1px solid var(--line)}.card-conversation>span{font-size:11px;color:var(--muted)}.card-conversation p{font-size:15px;line-height:1.85;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.card-back-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0;border-top:1px solid var(--line);padding-top:10px}.card-back-footer .text-link{font-size:12px;min-height:42px}
.card-continue{font-size:12px;min-height:42px;display:flex;align-items:center;gap:7px;color:#405b7e}.card-continue svg{width:16px;height:16px}
.card-letter{flex:1;display:flex;flex-direction:column;justify-content:center;gap:26px;padding:27px 24px;background:linear-gradient(145deg,#e5edf9,#f4f8ff);border-radius:2px 10px 2px 2px;min-height:0;overflow:hidden}
.card-letter-label{font-size:12px;color:var(--muted)}.card-letter>span:last-child{font-size:26px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.is-text-card .card-caption{min-height:83px;padding-top:15px}
.journal-card-face:focus-visible{outline-offset:5px}.journal-card-front:active .card-flip-cue{color:var(--ink)}
@media(max-width:360px){.journal-card-turner{height:445px}.journal-card-back{padding:20px 19px 16px}.card-original{font-size:17px}.card-first-line{font-size:18px}.card-letter{padding:22px}.card-letter>span:last-child{font-size:23px}}
@media(prefers-reduced-motion:reduce){.journal-card-turner{transition:none}}

/* Let dates and the user's words carry the feeling. */
.card-flip-cue{right:7px;bottom:4px;color:#7186a2}
.journal-card-front::after{width:23px;height:23px}
.card-back-head{padding-bottom:18px;min-height:46px}
.card-back-head time{font-size:12px;letter-spacing:.02em}
.card-turn-back{border-color:transparent}
.card-back-footer .text-link{text-decoration:none;font-size:13px;color:#526b89}
.card-back-footer .text-link:hover{text-decoration:underline;text-underline-offset:5px}
.card-continue{font-size:13px;gap:10px}

/* A photo with a letter on its reverse: pauses instead of rules. */
.journal-card-back{padding:23px 25px 15px;background:linear-gradient(155deg,#fbfcff,#edf3fb)}
.card-back-head{border:0;padding-bottom:7px;min-height:40px}
.card-back-body{padding:8px 1px 12px}
.card-back-body .card-original{font-size:14px;line-height:1.85;color:#77879d}
.card-back-footer{border:0;padding-top:4px;justify-content:flex-end}
.journal-letter{margin-top:20px;color:#40536c}
.journal-letter p{font-size:16px;line-height:1.85;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.journal-letter .letter-salutation{margin-bottom:14px}
.letter-disclosure{display:block;margin-top:24px;font-size:10px;color:#77879d;line-height:1.6}
.detail-copy .journal-letter{margin:32px 0}
@media(max-width:360px){.journal-card-back{padding:19px 21px 14px}.journal-letter p{font-size:15px}.card-back-body .card-original{font-size:13px}}

/* Four to five small photo notes; unfold only the letter being read. */
body[data-page="journal"] .page-heading{margin-bottom:20px}
.journal-card{margin-bottom:8px}
.journal-card-turner{height:clamp(100px,calc((100svh - 292px) / 5),112px);transition:transform .64s cubic-bezier(.22,.75,.18,1),height .5s cubic-bezier(.22,.75,.18,1)}
.journal-card-front{display:grid;grid-template-columns:clamp(60px,20vw,76px) minmax(0,1fr);align-items:center;gap:0;padding:9px}
.card-photo-wrap{height:auto;aspect-ratio:1;align-self:center;border-radius:3px;min-width:0}
.card-caption{min-height:0;min-width:0;height:100%;padding:3px 10px 18px 13px;display:flex;flex-direction:column;justify-content:center}
.card-dateline{font-size:10px;gap:5px;margin-bottom:4px}
.card-first-line{font-size:15px;line-height:1.65;-webkit-line-clamp:2}
.card-flip-cue{right:5px;bottom:-5px}
.card-photo-label{left:5px;top:5px;font-size:8px;padding:1px 4px}
.journal-card-face{border-radius:4px 10px 10px 4px;box-shadow:0 5px 17px #435c7f12,inset 0 0 0 1px #ffffffbd}
.journal-card.is-flipped .journal-card-turner{height:auto}
.journal-card.is-flipped .journal-card-back{position:relative;height:auto;max-height:max(300px,calc(100svh - 235px))}
.journal-card.is-flipped .card-back-body{flex:0 1 auto}
.is-text-card .journal-card-front{display:flex;flex-direction:column;padding:10px 16px}
.is-text-card .card-letter{padding:0;background:none;gap:6px;border-radius:0;justify-content:center}
.is-text-card .card-letter-label{display:none}
.is-text-card .card-letter>span:last-child{font-size:15px;line-height:1.65;-webkit-line-clamp:2}
.is-text-card .card-caption{min-height:24px;height:auto;padding:4px 0 0;display:block}
.is-text-card .card-dateline{padding-right:35px;margin:0}
@media(max-width:360px){.card-caption{padding:2px 5px 18px 10px}.card-first-line{font-size:15px}.card-dateline{flex-wrap:wrap;margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){.journal-card-turner{transition:none}}

/* Time is a quiet continuation of the day, using the desktop's six colours. */
.mobile-time{margin-top:38px;padding:0 0 8px;font-variant-numeric:tabular-nums}
.mobile-time-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mobile-time-heading h2{font:400 25px/1.3 system-ui;letter-spacing:-.7px}
.time-periods{display:flex;gap:3px}
.time-periods button{min-height:44px;padding:0 10px;font:12px/1 system-ui;color:#6b7e96;border-bottom:1px solid transparent}
.time-periods button[aria-pressed="true"]{border-color:#536e90;color:#30425f}
.time-range{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;font-size:12px;color:#5e7089}
.time-range button{width:36px;min-height:40px;font:24px/1 system-ui;color:#627b99}
.time-allocation{padding-top:12px}
.time-donut{display:block;width:218px;height:218px;margin:0 auto;overflow:visible;stroke:none;fill:currentColor;font-family:system-ui}
.time-donut text{stroke:none}
.time-donut .time-total{font-size:21px;font-weight:400;fill:#30425f;letter-spacing:-.7px}
.time-donut .time-total-label{font-size:10px;fill:#5e7089;font-family:var(--font)}
.time-coverage{text-align:center;color:#6b7e96;font-size:11px;margin:0 0 19px}
.time-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:17px;row-gap:1px}
.time-categories button{display:flex;align-items:center;gap:7px;text-align:left;min-height:45px;border-bottom:1px solid #8094af20}
.time-categories i{width:6px;height:6px;border-radius:50%;background:var(--time-accent);flex-shrink:0}
.time-categories span{font-size:13px;white-space:nowrap}
.time-categories strong{margin-left:auto;font:11px/1.4 system-ui;color:#586c86;white-space:nowrap;font-variant-numeric:tabular-nums}
.time-categories button[aria-pressed="true"]{border-bottom-color:var(--time-accent)}
.time-categories button[aria-pressed="true"] span{color:var(--time-accent);font-weight:600}
.time-source{font-size:10px;line-height:1.8;color:#6d7f96;margin-top:15px}
.time-log{margin-top:22px}
.time-log summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;min-height:48px;font:18px/1.5 system-ui;letter-spacing:-.3px}
.time-log summary::-webkit-details-marker{display:none}
.time-log summary small{display:block;font:12px/1.6 var(--font);letter-spacing:0;color:#6b7e96}
.time-log-count{font:11px/1.4 var(--font);color:#657b96;display:flex;gap:8px;align-items:center}
.time-disclosure{font:18px/1 system-ui;display:inline-block}
.time-log[open] .time-disclosure{transform:rotate(180deg)}
.time-show-all{font-size:12px;color:#657b96;min-height:40px}
.time-log-date{font-size:12px;font-weight:400;color:#6b7e96;margin:22px 0 12px}
.time-log-row{display:flex;gap:12px;align-items:flex-start;margin-bottom:10px;padding:10px 0}
.time-log-clock{font:10px/1.7 system-ui;color:#6c7f97;min-width:33px}
.time-log-row>div{border-left:2px solid var(--time-accent);padding:0 0 0 11px;flex:1;min-width:0}
.time-log-row p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.time-log-row small{font-size:10px;color:#6b7e96}
.time-log-duration{font:11px/1.7 system-ui;white-space:nowrap;color:#61758d}
.time-empty{font-size:13px;color:#6b7e96;padding:20px 0}
@media(max-width:360px){.time-categories{column-gap:11px}.time-categories button{gap:5px}.time-categories span{font-size:12px}.time-categories strong{font-size:10px}.time-periods button{padding:0 8px}}

.time-donut circle{stroke-linecap:butt}

/* Time Log: the same records seen as a day, a week, or a month. */
.mt-log-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0}
.mt-log-heading h3{font:400 19px/1.4 system-ui;letter-spacing:-.4px}
.mt-log-heading>span{font-size:11px;color:#657b96}
.mt-filter{display:flex;align-items:center;justify-content:space-between;color:#627b96;font-size:12px;margin-bottom:8px}
.mt-filter button{min-height:40px;text-decoration:underline;text-underline-offset:4px}
.mt-calendar-scroll{max-height:390px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9cacc155 transparent;padding-bottom:13px;position:relative}
.mt-calendar-head,.mt-calendar-tracks{display:grid;grid-template-columns:36px repeat(var(--time-days),minmax(0,1fr))}
.mt-calendar-head{position:sticky;top:0;z-index:3;background:#eef4fcf5;backdrop-filter:blur(14px);border-bottom:1px solid #8c9eb42b}
.mt-axis-caption{font:9px/1.4 system-ui;color:#8391a5;align-self:center}
.mt-calendar-head button{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:52px;gap:3px;min-width:0;color:#687c95;font:9px/1.3 system-ui}
.mt-calendar-head strong{font-size:13px;font-weight:400}
.mt-calendar-head button[aria-current="date"] strong{color:#30425f;text-decoration:underline;text-underline-offset:5px}
.mt-hour-axis{position:relative;color:#74869c;font:9px/1 system-ui}
.mt-hour-axis>span{position:absolute;left:0;transform:translateY(-50%)}
.mt-hour-axis>span:first-child{transform:translateY(3px)}
.mt-hour-axis>span:last-child{transform:translateY(-100%)}
.mt-day-track{position:relative;min-width:0;border-left:1px solid #9cacbf1c;background:repeating-linear-gradient(to bottom,#8c9eb426 0,#8c9eb426 1px,transparent 1px,transparent 40px)}
.mt-time-block{position:absolute;background:var(--record-tint);color:var(--record-ink);border-left:2px solid var(--record-accent);border-radius:2px;text-align:left;min-width:0;z-index:1;padding:0 3px;line-height:1.4;touch-action:pan-y}
.mt-time-block::after{content:"";position:absolute;inset:-5px 0;min-height:16px}
.mt-time-block span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}
.mt-time-block small{display:block;font:9px/1.4 system-ui;white-space:nowrap;overflow:hidden}
.mt-time-block[aria-pressed="true"]{outline:1px solid var(--record-accent);outline-offset:2px;z-index:2}
.mt-time-block.is-short{padding:0}
.mt-early{margin-top:14px}
.mt-early summary{font-size:12px}
.mt-early button{display:block;min-height:44px;text-align:left;font-size:12px;padding:8px 0}
.mt-month-weekdays,.mt-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.mt-month-weekdays{font-size:11px;text-align:center;color:#71839b;padding:13px 0}
.mt-month-day,.mt-month-blank{min-height:67px;border-top:1px solid #8094af25}
.mt-month-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:9px 3px 5px;gap:6px;min-width:0;font:12px/1.3 system-ui}
.mt-month-day.is-selected>span:first-child{color:#30425f;text-decoration:underline;text-underline-offset:4px}
.mt-month-colours{display:flex;gap:1px;height:4px;width:100%;margin-top:2px}
.mt-month-colours i{min-width:2px;border-radius:1px}
.mt-month-day small{font-size:9px;line-height:1.3;white-space:nowrap;color:#6c8099}
.mt-month-day:hover{background:#e0e9f54d}
@media(max-width:360px){.mt-calendar-head,.mt-calendar-tracks{grid-template-columns:32px repeat(var(--time-days),minmax(0,1fr))}.mt-calendar-head button{font-size:8px}.mt-month-day{padding-left:1px;padding-right:1px}.mt-month-day small{font-size:8px}}

.mt-time-block .mt-inline-record{position:absolute;top:calc(100% + 5px);display:block;padding:9px 11px;background:#f7faff;box-shadow:0 4px 14px #30425f18;border-radius:4px;color:#30425f;white-space:normal;overflow:visible;z-index:4;pointer-events:none}
.mt-inline-record strong{display:block;font-size:12px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.mt-time-block .mt-inline-record small{margin-top:3px;font-size:10px;color:#637b95;white-space:normal}

/* Five destinations: the present stays short; history gets its own space. */
.bottom-nav{grid-template-columns:repeat(5,1fr);padding-inline:9px}
.chat-heading{margin-bottom:12px}.chat-open{min-height:40dvh;display:grid;place-items:center;color:#92a6c0}.chat-open svg{width:38px;height:38px;stroke-width:1}
.composer-context{justify-content:space-between;margin-bottom:2px}.composer-context button{border:0;padding-left:0;color:var(--muted)}
.composer-context button[aria-pressed="false"]{opacity:.65}.composer-row{gap:3px}.composer-row textarea{min-width:0}.icon-button[aria-pressed="true"]{background:#d6e3f3;color:#30425f;border-radius:50%}
body[data-page="chat"] .scene{opacity:.42}body[data-page="chat"] .mobile-shell{background:#edf3f9cc}
body[data-page="today"] .mobile-time{padding-top:26px}.mobile-time-heading h2{font-size:20px}
body[data-page="today"] .time-allocation{margin-top:12px}body[data-page="today"] .time-coverage{display:none}
.today-log{margin-top:15px;border-top:1px solid var(--line)}.today-log>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;min-height:58px;font-size:17px}.today-log>summary::-webkit-details-marker{display:none}.today-log>summary span{font-size:12px;color:var(--muted)}.today-log>summary span:after{content:'';display:inline-block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 3px 12px}.today-log[open]>summary span:after{transform:rotate(225deg);margin-bottom:0}
.today-log .mt-log-heading{display:none}.today-log .time-log{margin-top:0}
.review-time{margin-top:0!important;border-top:0!important;padding-top:0!important}.review-time .mobile-time-heading{padding-top:0}.review-time .mobile-time-heading h2{font-size:18px}
.goal-expand{border-bottom:1px solid var(--line)}.goal-expand>summary{list-style:none;padding:20px 0;cursor:pointer}.goal-expand>summary::-webkit-details-marker{display:none}.goal-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:18px;line-height:1.6}.goal-title:after{content:'＋';color:var(--muted);font:300 16px system-ui}.goal-expand[open] .goal-title:after{content:'−'}
.goal-expand .goal-progress{display:flex;align-items:center;gap:11px;margin-top:10px;font:13px/1.5 system-ui;color:var(--muted)}.goal-expand .progress-track{display:block;flex:1;height:4px;background:#cbd8eb70}.goal-expand .progress-track i{display:block;height:100%;width:var(--progress);background:var(--category)}
.goal-inside{padding:1px 0 20px}.goal-work{display:flex;align-items:center;gap:12px;margin:0 0 17px}.goal-work img{width:54px;height:58px;object-fit:cover;border-radius:3px}.goal-work svg{color:var(--category)}.goal-work p{font-size:16px}.goal-work small,.goal-evidence{font-size:11px;color:var(--muted);line-height:1.7}.goal-time-total{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-bottom:12px}.goal-time-total strong{font:400 17px system-ui;color:var(--ink)}
.goal-time-entries li{display:grid;grid-template-columns:38px 1fr auto;gap:8px;font-size:13px;padding:7px 0}.goal-time-entries time,.goal-time-entries small{font-size:11px;color:var(--muted)}.goal-evidence{display:block;margin-top:10px}
.annual-time{padding-top:30px}.annual-time header,.review-life header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}.annual-time h2,.review-life h2{font:400 21px/1.4 system-ui;letter-spacing:-.5px}.annual-time header>span,.review-life header>span{font-size:11px;color:var(--muted)}.annual-time-row{margin-bottom:18px}.annual-time-row>div:first-child{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:13px;margin-bottom:7px}.annual-time-row small{font:11px system-ui;white-space:nowrap;color:var(--muted)}.annual-time-track{height:7px;background:#cdd9e83d;border-radius:2px;overflow:hidden}.annual-time-track i{height:100%;display:block;border-radius:2px}
.review-life{margin-top:32px;padding-top:27px;border-top:1px solid var(--line)}.review-moment{display:flex;gap:13px;text-align:left;width:100%;padding-bottom:22px;align-items:center}.review-moment>img{width:66px;height:76px;object-fit:cover;border-radius:3px;flex-shrink:0}.review-moment>span{min-width:0}.review-moment time{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.review-moment>span>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.review-day{border-bottom:1px solid var(--line)}.review-day summary{min-height:55px;display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer}.review-day summary::-webkit-details-marker{display:none}.review-day summary time{font-size:15px}.review-day summary span{font-size:11px;color:var(--muted)}.review-day summary small{margin-left:auto;font:12px system-ui}.review-day ul{padding:0 0 15px}.review-day li{display:flex;gap:13px;padding:8px 0;font-size:13px;align-items:baseline}.review-day li:before{content:'';width:4px;height:4px;border-radius:50%;background:var(--category)}.review-day li time{font:11px system-ui;color:var(--muted)}
.review-observation{margin-top:27px;padding:20px 0}.review-observation small{display:block;font-size:10px;color:var(--muted);margin-bottom:12px}.review-observation p{font-size:17px;line-height:1.9}.review-empty{font-size:14px;color:var(--muted)}
.reflection-form{padding-top:20px;margin-top:10px;border-top:1px solid var(--line)}.reflection-form label{font-size:15px;display:block;margin-bottom:12px}.reflection-form textarea{display:block;resize:vertical;width:100%;min-height:100px;border:0;border-radius:6px;padding:13px;background:#f7faff9c;font-size:16px;line-height:1.8}.reflection-form button{min-width:60px;min-height:44px;margin-top:8px;font-size:13px;text-align:left}.reflection-form span{font-size:11px;color:var(--muted)}
@media(max-width:360px){.goal-title{font-size:16px}.time-periods button{padding-inline:10px}.composer-row .icon-button{width:32px}.review-day summary{gap:8px}}
body[data-page="today"] .time-allocation{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:15px;margin-top:15px}
body[data-page="today"] .time-donut{width:112px;height:112px;margin:0}
body[data-page="today"] .time-categories{grid-template-columns:1fr;margin:0;gap:0;width:100%}
body[data-page="today"] .time-categories button{min-height:33px;padding:5px 0;font-size:11px;gap:7px}
body[data-page="today"] .time-categories strong{font-size:10px}
.review-completed{margin:0 0 15px}.review-completed summary{cursor:pointer;min-height:44px;font-size:15px;display:flex;align-items:center;justify-content:space-between;list-style:none}.review-completed summary::-webkit-details-marker{display:none}.review-completed summary span{font-size:11px;color:var(--muted)}.review-completed p{display:flex;align-items:center;gap:12px;font-size:13px;padding:7px 0}.review-completed svg{width:15px;height:15px;color:var(--category)}

/* A private conversation; the companion's name belongs in the header. */
body[data-page="chat"] .topbar{position:sticky;top:0;z-index:6;background:#edf3f9ee;height:70px;padding-top:12px;backdrop-filter:blur(20px)}
.wordmark.is-companion{position:absolute;left:50%;transform:translateX(-50%);font:400 20px/1.4 var(--font);letter-spacing:.06em;display:flex;align-items:center;gap:9px}
.wordmark.is-companion:before{content:'◌';font:300 27px/1 system-ui;color:#718eaf}.wordmark.is-companion+.preview-chip{margin-left:auto;font-size:10px}.wordmark.is-companion+.preview-chip span{display:none}
body[data-page="chat"] #screen{padding-top:6px;min-height:calc(100dvh - 70px)}
.goal-column-layout{display:flex;gap:8px;margin-top:35px}.goal-column-axis{flex:0 0 32px;height:181px;display:flex;flex-direction:column;justify-content:space-between;font:10px/1 system-ui;color:var(--muted)}
.goal-column-scroll{overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin;scrollbar-color:#a2b5cc66 transparent;padding-top:20px;margin-top:-20px;padding-bottom:10px}
.goal-columns{min-width:420px;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;background:linear-gradient(var(--line),var(--line)) 0 0/100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 90px/100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 180px/100% 1px no-repeat}
.goal-column{text-align:center;min-width:0}.goal-column-field{height:180px;display:flex;align-items:end;justify-content:center}.goal-column-value{width:34px;position:relative;min-height:0}.goal-column-value i{display:block;width:100%;height:100%;border-radius:3px 3px 0 0}.goal-column-value>span{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font:10px/1.2 system-ui;white-space:nowrap;color:var(--muted)}.goal-column-name{display:block;margin-top:14px;font-size:12px}
.review-heading{margin-bottom:17px}.review-modes{display:flex;gap:5px;padding:3px;border-radius:20px;background:#d9e4f066}.review-modes button{min-height:34px;padding:0 13px;font-size:12px;color:var(--muted)}.review-modes button[aria-pressed="true"]{border-radius:18px;background:#f7faffba;color:var(--ink);box-shadow:0 1px 5px #5268850d}
.review-periods{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);margin-bottom:18px}.review-periods button{font:13px system-ui;min-height:44px;color:var(--muted);border-bottom:2px solid transparent}.review-periods button[aria-pressed="true"]{border-color:#6b83a5;color:var(--ink)}
.review-archive{padding:6px 0}.review-archive-row{width:100%;display:grid;grid-template-columns:1fr 18px;gap:9px 15px;text-align:left;padding:25px 0;border-bottom:1px solid var(--line)}.archive-date{display:flex;align-items:baseline;gap:10px}.archive-date strong{font-size:21px;font-weight:400;line-height:1.5}.archive-date small{font-size:10px;color:var(--muted)}.archive-preview{grid-column:1;font-size:13px;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.archive-kind{font-size:10px;color:var(--muted);grid-column:1}.review-archive-row>svg{grid-column:2;grid-row:1/4;align-self:center;width:16px;height:16px;color:#8095b0}
.review-detail-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px}.review-detail-nav button{display:flex;align-items:center;gap:6px;min-height:40px;font-size:13px;color:var(--muted)}.review-detail-nav svg{width:17px;height:17px}.review-document>header{margin-bottom:25px}.review-document-date{font-size:26px;line-height:1.5}.review-document>header small{font-size:10px;color:var(--muted)}
.review-letter{padding:0 0 28px}.review-letter h1{font-size:24px;line-height:1.6;font-weight:400;max-width:13em;margin-bottom:20px;letter-spacing:.01em}.review-letter p{font-size:17px;line-height:2;margin-bottom:16px;overflow-wrap:anywhere}.review-coverage{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:15px}
.review-topic{border-top:1px solid var(--line);padding:22px 0}.review-topic h2{font-size:13px;color:var(--muted);margin-bottom:13px}.review-topic p{font-size:16px;line-height:1.9}.review-topic strong{font-weight:500}.review-topic .text-link{margin-top:10px;display:block;font-size:12px;min-height:36px;text-align:left}.review-topic .review-moment:last-child{padding-bottom:0}
.review-question{padding:25px 0}.review-question small{font-size:10px;color:var(--muted)}.review-question p{font-size:19px;line-height:1.9;margin-top:12px}
.review-sources{border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.review-sources summary{cursor:pointer;display:flex;justify-content:space-between;min-height:48px;align-items:center;list-style:none}.review-sources summary::-webkit-details-marker{display:none}.review-sources summary span{font-size:10px}.review-sources p{display:flex;gap:12px;padding:6px 0;font-size:11px}.review-sources time{flex-shrink:0;font:10px/1.8 system-ui}.review-addition{border-top:1px solid var(--line);margin-top:8px}.review-addition>summary{display:flex;justify-content:space-between;align-items:center;min-height:54px;list-style:none;cursor:pointer;font-size:14px}.review-addition>summary::-webkit-details-marker{display:none}.review-addition svg{width:16px;height:16px}.review-addition[open]>summary svg{transform:rotate(180deg)}.review-addition .reflection-form{margin:0;padding:0;border:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mt-year-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 15px}.mt-year-grid button{min-height:100px;text-align:left;border-bottom:1px solid var(--line);padding:13px 0}.mt-year-grid button>span:first-child{font-size:12px;color:var(--muted)}.mt-year-grid strong{display:block;font:400 16px/1.8 system-ui;margin-top:4px}.mt-year-colours{display:flex;height:6px;gap:1px;margin-top:9px;border-radius:2px;overflow:hidden}
@media(max-width:360px){.archive-date strong{font-size:18px}.archive-date{gap:7px}.review-letter h1{font-size:22px}.review-letter p{font-size:16px}.review-modes button{padding-inline:11px}.wordmark.is-companion{font-size:19px}}

/* Real companion: quiet progress, explicit persisted receipts, private entrance. */
.brain-wait,.brain-receipt{font-size:12px;color:var(--muted);margin:10px 0 20px;line-height:1.7}.brain-error{font-size:12px;color:#855c68;line-height:1.7}.brain-error button{color:var(--ink);text-decoration:underline;min-height:44px;padding:0 8px}.brain-receipt{margin:8px 0 0}
#accessCode{display:block;box-sizing:border-box;width:100%;margin:10px 0 16px;padding:14px;background:#f5f8ff;border:1px solid var(--line);border-radius:8px;font:16px system-ui;color:var(--ink)}#unlockError{color:#855c68;min-height:20px}.unlock-privacy{font-size:12px!important;line-height:1.7!important}#unlockSubmit:disabled{opacity:.5}

/* Conversation: your white messages on the right, companion blue on the left. */
body[data-page="chat"] .message{display:flex;flex-direction:column;align-items:stretch;width:fit-content;max-width:88%;margin-top:0;margin-bottom:18px}
body[data-page="chat"] .message.user{margin-left:auto;margin-right:0}
body[data-page="chat"] .message.partner{margin-left:0;margin-right:auto;padding-right:0}
body[data-page="chat"] .message .message-text{margin:0;padding:12px 15px;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;text-align:left}
body[data-page="chat"] .message.user .message-text{background:#fff;border-radius:16px 16px 4px 16px;color:#30425f}
body[data-page="chat"] .message.partner .message-text{background:#dce9f8;border-radius:16px 16px 16px 4px;color:#2f4665}
body[data-page="chat"] .message:has(.message-photo){width:82%}
body[data-page="chat"] .message-photo{display:block;width:100%;max-height:260px;border-radius:16px 16px 4px 4px}
body[data-page="chat"] .message-photo+.message-text{border-top-left-radius:4px;border-top-right-radius:4px}
body[data-page="chat"] .brain-receipt{font-size:10px;margin:6px 3px 0}body[data-page="chat"] .journal-receipt{font-size:10px;min-height:30px;margin:5px 2px 0 auto}
body[data-page="chat"] .partner-mark{font-size:10px;margin:0 2px 5px}.brain-wait{background:transparent;width:fit-content}


/* A quiet conversational pause, using the partner bubble palette. */
body[data-page="chat"] .brain-wait{display:flex;align-items:center;gap:5px;min-height:32px;margin:4px 0 20px;padding:8px 3px;box-sizing:border-box}
.brain-wait span{width:5px;height:5px;border-radius:50%;background:#667f9f;animation:reply-breathe 1.2s ease-in-out infinite}
.brain-wait span:nth-child(2){animation-delay:.16s}.brain-wait span:nth-child(3){animation-delay:.32s}
@keyframes reply-breathe{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.brain-wait span{animation:none;opacity:.65}}

/* Dictation lives inside the composer, with microphone-driven waveform. */
.composer.is-dictating .composer-row,.composer.is-dictating .composer-context,.composer.is-dictating .attachment{display:none}
.voice-inline[hidden]{display:none}.voice-inline{padding:4px 0;color:#405b7d}.voice-controls{display:flex;align-items:center;gap:12px;min-height:52px}
#voiceMain{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #8ba1bb30;background:#dce9f8;border-radius:50%;font-size:12px;color:#405b7d}#voiceMain:disabled{opacity:.65}
.voice-stop{width:13px;height:13px;border-radius:3px;background:currentColor}.voice-progress{width:16px;height:16px;border:2px solid #8ba1bb55;border-top-color:#526f94;border-radius:50%;animation:voice-spin .9s linear infinite}@keyframes voice-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.voice-progress{animation:none}}
.voice-wave{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;height:32px;overflow:hidden}.voice-wave i{flex:0 0 3px;height:3px;border-radius:3px;background:#718eaf;transition:height 80ms linear}
#voiceStatus:empty{display:none}#voiceStatus{font-size:12px;line-height:1.7;padding:7px 10px;color:#6b7e98}.voice-fallback{display:none;gap:20px;padding:0 10px}.voice-fallback button{font-size:12px;min-height:44px;color:#546f94}
.voice-inline[data-state="error"] .voice-fallback,.voice-inline[data-state="unavailable"] .voice-fallback{display:flex}.voice-inline audio{width:100%;height:38px;margin:8px 0}.voice-inline:not([data-state="error"]) audio{display:none}
@media(prefers-reduced-motion:reduce){.voice-wave i{transition:none}}
