:root{--page-bg:#f5f4f1;--surface:#faf9f7;--panel:#eeede9;--text:#30312f;--muted:#898984;--line:#deded7;--ink:#30312f;--inverse:#fff;--shadow:0 16px 65px #2e302014;--serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:var(--page-bg);color:var(--text);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--muted);outline-offset:4px}button{border:0;background:none}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.icon-btn:hover{background:var(--panel)}.text-btn{font-size:12px;color:inherit}.eyebrow,.nav-label{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:500}small{color:var(--muted)}[hidden]{display:none!important}
body[data-theme=dark]{--page-bg:#191a19;--surface:#20211f;--panel:#292a27;--text:#e8e7e1;--muted:#96988e;--line:#363831;--ink:#dedfd7;--inverse:#22231f;--shadow:0 16px 65px #0004;color-scheme:dark}
.splash{position:fixed;inset:0;z-index:100;background:#e3e3df;display:flex;justify-content:center;overflow:hidden;color:#424440;transition:opacity .65s,visibility .65s}.splash.dismissed{opacity:0;visibility:hidden;pointer-events:none}.splash video{height:100%;width:100%;object-fit:cover;max-width:650px}.splash:before,.splash:after{content:'';position:absolute;top:0;bottom:0;width:calc((100vw - 600px)/2);z-index:1;pointer-events:none}.splash:before{left:0;background:linear-gradient(90deg,#e3e3df 80%,transparent)}.splash:after{right:0;background:linear-gradient(-90deg,#e3e3df 80%,transparent)}.splash-top{position:absolute;left:0;right:0;top:0;padding:calc(25px + env(safe-area-inset-top,0px)) 30px;display:flex;justify-content:space-between;align-items:center;z-index:3;font-size:9px;letter-spacing:2px}.splash-top button{background:#ffffff70;border:1px solid #ffffff60;border-radius:24px;padding:9px 16px;letter-spacing:1px}.splash-bottom{position:absolute;bottom:calc(42px + var(--safe));text-align:center;z-index:3}.enter-btn{background:#d8d8d3e8;border:1px solid #f7f7f1a8;border-radius:8px;padding:9px 50px;min-width:190px;display:flex;align-items:center;gap:30px;justify-content:center;box-shadow:0 4px 18px #3434340d}.enter-btn span{font-family:var(--serif);font-style:italic;font-size:32px;line-height:1.3}.enter-btn svg{width:16px}.splash-bottom p{font-size:8px;letter-spacing:2.5px;margin-top:20px}.splash-grain{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#ecece980,transparent 25%)}
.app{height:100vh;display:flex;overflow:hidden}.sidebar{width:272px;flex-shrink:0;padding:30px 20px 20px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;transition:transform .3s}.sidebar-brand{display:flex;justify-content:space-between;align-items:center;padding:4px 8px 30px}.wordmark{font-family:var(--serif);font-size:28px;letter-spacing:3px;line-height:1}.wordmark span{display:block;font-family:var(--sans);font-size:7px;letter-spacing:2.1px;margin-top:10px;color:var(--muted)}#close-sidebar{display:none}.new-chat{background:var(--surface);border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:12px;padding:14px;width:100%;font-size:12px}.new-chat span{margin-left:auto;color:var(--muted)}.nav-label{padding:29px 12px 10px;font-size:8px;letter-spacing:2px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;padding:12px;border-radius:8px;text-align:left;font-size:13px}.nav-item:hover,.session:hover{background:var(--surface)}.nav-item small{font-size:9px;margin-left:auto}.nav-item svg{width:18px;height:18px}.session-list{overflow:auto;flex:1;min-height:30px}.session{width:100%;text-align:left;padding:12px;border-radius:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px}.session.active{background:var(--surface);color:var(--text)}.sidebar-bottom{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.profile-btn{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:5px}.avatar{width:35px;height:35px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;font-family:var(--serif);font-style:italic;font-size:21px;background:var(--surface)}.profile-btn small{display:block;font-size:9px;margin-top:5px}.profile-btn svg{margin-left:auto;width:17px}.sidebar-foot{font-size:7px;letter-spacing:1.4px;color:var(--muted);display:block;text-align:center;margin-top:19px}.main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.topbar{height:90px;flex-shrink:0;padding:20px 36px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.topbar-left,.header-actions{display:flex;align-items:center;gap:12px}.top-title strong{font-family:var(--serif);font-size:26px;font-weight:500;letter-spacing:.4px}.top-title span{display:block;font-size:7px;letter-spacing:1.8px;color:var(--muted);margin-top:4px}#menu-btn{display:none}.preview-pill{font-size:9px;letter-spacing:1px;color:var(--muted);display:flex;align-items:center;gap:6px}.preview-pill i{width:5px;height:5px;background:#a7ab9c;border-radius:50%}.page{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.bottom-nav{height:74px;padding-bottom:var(--safe);height:calc(74px + var(--safe));display:flex;align-items:center;justify-content:center;gap:70px;border-top:1px solid var(--line);flex-shrink:0;background:var(--surface)}.tab{min-width:52px;display:flex;align-items:center;gap:8px;justify-content:center;color:var(--muted);height:48px;position:relative;font-size:11px}.tab.active{color:var(--text)}.tab.active:after{content:'';position:absolute;bottom:2px;width:4px;height:4px;background:var(--text);border-radius:50%}.tab svg{width:19px;height:19px}.scrim{display:none}
.chat-area{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth;padding:28px max(25px,calc((100% - 760px)/2));display:flex;flex-direction:column}.welcome{margin:auto;text-align:center;padding:36px 0 45px;width:100%}.orbit{width:180px;height:140px;position:relative;margin:0 auto 22px;display:grid;place-items:center}.orbit:before,.orbit:after{content:'';position:absolute;width:165px;height:56px;border:1px solid var(--muted);border-radius:50%;transform:rotate(-32deg);opacity:.55}.orbit:after{transform:rotate(32deg)}.orbit span{font-family:var(--serif);font-size:58px;font-style:italic;font-weight:400;z-index:1}.orbit .spark{position:absolute;width:5px;height:5px;background:var(--text);border-radius:50%;top:35px;right:28px;box-shadow:0 0 0 5px var(--page-bg)}.welcome .eyebrow{font-size:8px;letter-spacing:3px}.welcome h1{font-family:var(--serif);font-size:46px;line-height:1.15;font-weight:400;margin:20px 0 15px;letter-spacing:-1px}.welcome h1 em{font-weight:400}.welcome p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.welcome-rule{width:30px;height:1px;background:var(--line);margin:24px auto}.suggestions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:25px}.suggestion{font-size:11px;padding:10px 16px;border:1px solid var(--line);border-radius:25px}.suggestion:hover{background:var(--surface)}.message{max-width:84%;padding:14px 18px;margin:10px 0;line-height:1.8;font-size:14px;word-break:break-word;white-space:pre-wrap}.message.user{align-self:flex-end;background:var(--panel);border-radius:16px 16px 3px 16px}.message img{max-width:230px;max-height:260px;display:block;border-radius:8px;margin-bottom:8px}.message-meta{font-size:9px;color:var(--muted);margin-top:8px}.chat-date{text-align:center;font-size:9px;color:var(--muted);letter-spacing:1px;margin:10px 0 24px}.composer-wrap{width:min(800px,100%);align-self:center;padding:0 25px 16px;flex-shrink:0}.composer{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 13px 11px;box-shadow:0 4px 20px #20201004}.composer textarea{resize:none;border:0;background:none;width:100%;outline:none;color:var(--text);line-height:1.5;padding:5px 9px;font-size:14px;max-height:135px;height:39px}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:var(--muted)}.composer-tools{display:flex;align-items:center;justify-content:space-between;margin-top:6px}.composer-tools .icon-btn{width:32px;height:32px}.composer-status{font-size:9px;color:var(--muted);margin-right:auto;margin-left:8px}.send-btn{width:34px;height:34px;display:grid;place-items:center;background:var(--ink);color:var(--inverse);border-radius:50%}.send-btn svg{width:18px}.composer-note{font-size:8px;color:var(--muted);text-align:center;margin:11px 0 0;letter-spacing:.3px}.attachment-preview{display:flex;align-items:center;gap:10px;padding:5px 10px 10px;font-size:11px}.attachment-preview img{width:45px;height:45px;border-radius:7px;object-fit:cover}.attachment-preview button{margin-left:auto}.scroll-page{width:min(850px,100%);margin:0 auto;padding:40px 38px 50px}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.page-intro h1{font-family:var(--serif);font-weight:400;font-size:42px;margin:10px 0}.page-intro p{color:var(--muted);font-size:12px;line-height:1.7;margin:0}.primary-btn{background:var(--ink);color:var(--inverse);border-radius:8px;padding:11px 17px;font-size:12px}.secondary-btn{border:1px solid var(--line);border-radius:8px;padding:11px 17px;font-size:12px;background:var(--surface)}.button-row{display:flex;gap:10px;flex-wrap:wrap}.empty{border:1px dashed var(--line);border-radius:14px;padding:50px 25px;text-align:center;margin-top:20px}.empty svg{width:32px;height:32px;color:var(--muted)}.empty h3{font-family:var(--serif);font-size:23px;font-weight:400;margin:16px 0 8px}.empty p{font-size:12px;color:var(--muted);line-height:1.8}.search{width:100%;background:var(--surface);border:1px solid var(--line);padding:13px 15px;color:var(--text);border-radius:10px;font-size:13px}.cards{display:grid;gap:13px;margin-top:20px}.record{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:20px}.record-top{display:flex;align-items:center;justify-content:space-between}.record-tag{font-size:9px;letter-spacing:1px;color:var(--muted)}.record h3{font-size:15px;font-weight:500;margin:12px 0}.record p{font-size:13px;line-height:1.9;white-space:pre-wrap;word-break:break-word;margin:0}.record .text-btn{font-size:11px;color:var(--muted)}.our-cover{margin:-40px -38px 28px;height:250px;overflow:hidden;position:relative;background:#ddd}.our-cover img{width:100%;height:100%;object-fit:cover;object-position:center 48%;opacity:.8}.our-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 30%,var(--page-bg))}.our-cover p{position:absolute;bottom:8px;z-index:1;left:38px;font-family:var(--serif);font-size:37px;font-style:italic;margin:0}.anniversary{display:flex;align-items:center;gap:28px;padding:25px 0;border-bottom:1px solid var(--line);margin-bottom:27px}.anniversary strong{font-family:var(--serif);font-size:64px;font-weight:400;line-height:1}.anniversary span{font-size:12px;line-height:1.9}.anniversary small{font-size:10px;display:block}.links-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.list-row{width:100%;padding:17px;display:flex;align-items:center;gap:13px;text-align:left;background:var(--surface);border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-row>svg:last-child{margin-left:auto;width:14px;color:var(--muted)}.list-row span{font-size:13px}.list-row small{display:block;font-size:10px;margin-top:6px}.draft-badge{font-size:9px;border:1px solid var(--line);padding:4px 7px;border-radius:10px;color:var(--muted)}
dialog{border:1px solid var(--line);background:var(--page-bg);color:var(--text);border-radius:20px;max-width:560px;width:calc(100% - 36px);max-height:85dvh;padding:28px;box-shadow:var(--shadow);overflow:auto}dialog::backdrop{background:#15161255;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.modal-head h2{font-weight:500;font-size:22px;margin:8px 0 0}.modal-head .eyebrow{font-size:8px}.field{display:block;font-size:12px;margin:18px 0}.field input,.field textarea,.field select{width:100%;display:block;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px}.field textarea{resize:vertical;min-height:100px;line-height:1.7}.field small{display:block;font-size:10px;line-height:1.7;margin-top:7px}.notice{padding:13px 15px;border-radius:9px;background:var(--panel);color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:18px}.modal-actions{display:flex;gap:10px;margin-top:22px;justify-content:flex-end}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);gap:12px}.settings-row span{font-size:13px}.settings-row small{display:block;font-size:10px;margin-top:7px}.segmented{background:var(--panel);border-radius:8px;padding:3px;display:flex}.segmented button{font-size:11px;padding:7px 10px;border-radius:6px}.segmented button.active{background:var(--surface);box-shadow:0 1px 4px #0001}.switch{appearance:none;width:37px;height:22px;border-radius:12px;background:var(--line);position:relative;cursor:pointer;flex-shrink:0}.switch:before{content:'';position:absolute;width:16px;height:16px;background:var(--surface);border-radius:50%;left:3px;top:3px;transition:left .2s}.switch:checked{background:var(--ink)}.switch:checked:before{left:18px;background:var(--inverse)}.tool-card{border:1px solid var(--line);border-radius:10px;padding:17px;margin:11px 0;display:flex;align-items:center;gap:13px}.tool-card>svg{width:24px;height:24px}.tool-card strong{font-weight:500;font-size:13px}.tool-card p{color:var(--muted);font-size:10px;margin:7px 0 0}.tool-card button{margin-left:auto;white-space:nowrap;font-size:11px;border:1px solid var(--line);padding:8px 10px;border-radius:6px}.editor-help{font-size:11px;color:var(--muted);line-height:1.8}.toast{position:fixed;bottom:calc(100px + var(--safe));left:50%;transform:translate(-50%,12px);background:var(--ink);color:var(--inverse);padding:13px 20px;border-radius:10px;max-width:calc(100vw - 40px);width:max-content;z-index:200;font-size:12px;opacity:0;pointer-events:none;transition:.25s;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1400px){.sidebar{width:300px;padding:35px 26px}.topbar{padding-left:48px;padding-right:48px}.welcome h1{font-size:52px}}
@media(max-width:800px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:30;width:min(310px,84vw);transform:translateX(-100%);padding-top:calc(26px + env(safe-area-inset-top,0px))}.sidebar-open .sidebar{transform:translateX(0)}.scrim{display:block;position:fixed;inset:0;background:#1115;z-index:25;opacity:0;pointer-events:none;transition:opacity .3s}.sidebar-open .scrim{opacity:1;pointer-events:auto}#close-sidebar,#menu-btn{display:inline-flex}.topbar{height:calc(74px + env(safe-area-inset-top,0px));padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px}.topbar-left{gap:8px}.top-title strong{font-size:24px}.top-title span{font-size:6px;letter-spacing:1.3px}.header-actions{gap:3px}.preview-pill{font-size:8px;margin-right:4px;letter-spacing:0}.header-actions .icon-btn{width:34px;height:34px}#more-btn{display:none}.bottom-nav{gap:0;justify-content:space-around;height:calc(66px + var(--safe));padding:2px 13px var(--safe)}.tab{flex-direction:column;gap:5px;font-size:9px;height:57px;width:60px}.tab.active:after{bottom:0;width:3px;height:3px}.tab svg{height:19px;width:19px}.welcome{padding:25px 0}.welcome h1{font-size:39px;letter-spacing:-.8px}.orbit{width:160px;height:120px;margin-bottom:20px}.orbit:before,.orbit:after{width:145px;height:48px}.orbit span{font-size:51px}.orbit .spark{right:24px;top:30px}.welcome .eyebrow{font-size:7px;letter-spacing:2.2px}.welcome p{font-size:11px}.suggestions{margin-top:23px;gap:7px}.suggestion{padding:9px 12px;font-size:10px}.chat-area{padding:18px 22px}.composer-wrap{padding:0 17px 12px}.composer{border-radius:16px;padding:10px}.composer textarea{font-size:16px}.composer-note{font-size:8px;margin-top:9px}.scroll-page{padding:28px 22px 36px}.page-intro{gap:10px}.page-intro h1{font-size:36px}.page-intro p{font-size:11px}.page-intro .primary-btn{padding:10px 12px;white-space:nowrap;font-size:11px}.our-cover{margin:-28px -22px 20px;height:220px}.our-cover p{left:22px;font-size:33px}.anniversary strong{font-size:57px}.anniversary{gap:22px}dialog{padding:23px;max-height:86dvh;border-radius:20px}.field input,.field textarea,.field select{font-size:16px}.message{max-width:90%;font-size:14px}.splash video{max-width:none}.splash:before,.splash:after{display:none}}
@media(max-height:700px){.welcome{padding:10px 0}.orbit{height:85px;margin-bottom:10px;transform:scale(.8)}.welcome h1{font-size:32px;margin:12px 0}.welcome-rule{margin:14px auto}.suggestions{margin-top:16px}.composer-note{display:none}.splash-bottom{bottom:calc(20px + var(--safe))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* Four permanent destinations, floating above the page's reserved safe area. */
:root{--glass:#faf9f7c4;--glass-border:#ffffffd9;--left-bubble:#e9e8e4;--right-bubble:#dddeda}
body[data-theme=dark]{--glass:#28292ac4;--glass-border:#ffffff24;--left-bubble:#2b2b30;--right-bubble:#3a3a40}
.main{background:radial-gradient(ellipse at 92% 95%,#b5b9b214,transparent 55%),var(--page-bg)}
.page{padding-bottom:calc(96px + var(--safe));overflow:hidden}
.scroll-page{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
.bottom-nav{position:absolute;left:50%;bottom:calc(14px + var(--safe));transform:translateX(-50%);width:min(470px,calc(100% - 30px));height:70px;padding:5px;gap:4px;border:1px solid var(--glass-border);border-radius:27px;background:var(--glass);box-shadow:0 10px 35px #00000012,inset 0 1px 0 #ffffff66;backdrop-filter:blur(26px) saturate(145%);-webkit-backdrop-filter:blur(26px) saturate(145%);z-index:8;justify-content:space-around}
.tab{flex:1;min-width:0;height:58px;flex-direction:column;gap:4px;border-radius:22px;font-size:10px;transition:background .2s,color .2s}
.tab.active{background:#ffffff67;box-shadow:inset 0 1px 0 #ffffffa0,0 2px 8px #00000005}
body[data-theme=dark] .tab.active{background:#ffffff12;box-shadow:inset 0 1px 0 #ffffff16}
.tab.active:after{display:none}.tab svg{height:23px;width:23px}
.tab .avatar{width:25px;height:25px;font-size:17px;background:var(--surface)}
.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}
.topbar-left{min-width:0;flex:1}.top-title{min-width:0}.top-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:400px}.header-actions{flex-shrink:0}
.conversation-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:8px 0}
.conversation-open{text-align:left;flex:1;min-width:0;padding:16px 4px}.conversation-heading{display:flex;align-items:center;gap:15px}.conversation-heading strong{font-size:16px;font-weight:550;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1}.conversation-heading small{font-size:10px;flex-shrink:0}
.conversation-preview{display:block;color:var(--muted);font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:9px}.rename-btn{color:var(--muted);width:36px;height:44px}.rename-btn svg{width:17px}.conversation-row:hover{background:#90958a08}
#conversation-list{margin-top:14px}.thread-toolbar{display:flex;align-items:center;padding:5px 24px;gap:12px;flex-shrink:0}.thread-toolbar>span{margin-left:auto;color:var(--muted);font-size:10px}.thread-toolbar .text-btn{font-size:13px;padding:10px 0}.thread-toolbar .icon-btn{width:32px;height:32px}
.chat-area{padding-top:10px}.message{max-width:88%;padding:15px 15px 10px;line-height:1.53;font-size:17px;border-radius:24px;box-shadow:0 7px 22px #00000008;flex-shrink:0}.message.user{background:var(--right-bubble);border-radius:24px 24px 6px 24px;align-self:flex-end}.message.assistant{background:var(--left-bubble);border-radius:24px 24px 24px 6px;align-self:flex-start}.message-meta{font-size:10px;float:right;margin:8px 0 0 12px}.message img{max-width:100%;width:auto}.chat-date{font-size:11px;margin:20px 0}
.composer-wrap{padding-bottom:0}.composer{background:var(--glass);border:1px solid var(--glass-border);border-radius:25px;box-shadow:0 8px 28px #0000000a,inset 0 1px 0 #ffffff55;backdrop-filter:blur(24px) saturate(135%);-webkit-backdrop-filter:blur(24px) saturate(135%)}.composer textarea{font-size:16px}.composer-tools{margin-top:3px}.composer-status{font-size:10px}
.noah-intro{padding:24px 0 34px}.noah-intro h1{font-family:var(--serif);font-size:60px;font-weight:400;line-height:1.1;margin:22px 0;overflow-wrap:anywhere}.noah-intro h1 em{display:block;font-size:34px;margin-top:9px;font-weight:400}.noah-intro p{font-size:12px;line-height:1.8;color:var(--muted)}.noah-intro .secondary-btn{display:inline-flex;align-items:center;gap:15px;margin-top:14px}.noah-intro .secondary-btn svg{width:15px;height:15px}
.profile-editor{display:flex;align-items:center;gap:20px}.profile-editor .avatar{width:76px;height:76px;font-size:42px}.profile-editor small{display:block;font-size:9px;margin-top:12px}.profile-editor .text-btn{padding:12px}.sub-back{display:inline-block;padding:0 0 25px;font-size:13px}.memory-search{margin-top:22px}.review-sessions{border-radius:15px;overflow:hidden}.note-cards .record{border-radius:5px 18px 18px 18px;background:var(--surface);box-shadow:0 4px 16px #00000004}.home-foot{text-align:center;letter-spacing:2px;font-size:8px;color:var(--muted);margin-top:48px;line-height:2}.integration-note{margin-top:25px}.file-content{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--sans);max-height:50dvh;overflow:auto}
.sidebar{overflow-y:auto}.sidebar-bottom{flex-shrink:0}.page-intro h1{overflow-wrap:anywhere}.page-intro>div{min-width:0}.page-intro .primary-btn{flex-shrink:0}.tool-card>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){.topbar{padding-left:10px;padding-right:13px}.top-title strong{font-size:22px;max-width:220px}.header-actions{margin-left:8px}.scroll-page{padding:28px 22px 24px}.page-intro{align-items:flex-start}.page-intro h1{font-size:34px;line-height:1.06;margin:15px 0}.page-intro .primary-btn{margin-top:27px}.thread-toolbar{padding-left:22px;padding-right:19px}.chat-area{padding:10px 14px}.composer-wrap{padding:0 14px}.noah-intro{padding-top:16px}.noah-intro h1{font-size:55px}.noah-intro h1 em{font-size:31px}.message{font-size:17px}.bottom-nav{height:70px;padding:5px}.tab{height:58px;width:auto;gap:4px;font-size:10px}.tab svg{width:23px;height:23px}.profile-editor{gap:14px}}
@media(max-width:370px){.preview-pill{display:none}.page-intro h1{font-size:29px}.scroll-page{padding-left:18px;padding-right:18px}.profile-editor .avatar{width:60px;height:60px}.profile-editor{gap:10px}.profile-editor .secondary-btn{padding:10px}.top-title strong{max-width:190px}}
@media(max-height:580px){.page{padding-bottom:calc(81px + var(--safe))}.bottom-nav{height:62px;bottom:calc(8px + var(--safe))}.tab{height:51px}.welcome h1{font-size:29px}.welcome-rule{margin:10px auto}}

/* Optical glass Home, with a restrained light edge and real backdrop blur. */
:root{--opt-fill:#ffffff60;--opt-edge:#ffffffd9;--home-ink:#202127}
body[data-theme=dark]{--opt-fill:#ffffff1b;--opt-edge:#ffffff59;--home-ink:#f4f0f6}
.bottom-nav{background:linear-gradient(135deg,#ffffffaa,#ffffff51 50%,#ffffff8f);border:1px solid #ffffffd4;box-shadow:0 17px 40px #33334521,inset 0 1px 1px #fff,inset 0 -1px 2px #ffffff9e;backdrop-filter:blur(34px) saturate(170%);-webkit-backdrop-filter:blur(34px) saturate(170%);overflow:hidden}
.bottom-nav:before{content:'';position:absolute;inset:1px;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at 22% -25%,#fff9,transparent 45%),linear-gradient(110deg,transparent 43%,#ffffff38 57%,transparent 72%)}
.bottom-nav .tab{z-index:1}.bottom-nav .tab.active{background:linear-gradient(155deg,#ffffffa8,#ffffff4f 65%,#ffffff83);border:1px solid #ffffffa5;box-shadow:inset 0 1px 1px #fff,0 3px 12px #32283c10}
body[data-theme=dark] .bottom-nav{background:linear-gradient(135deg,#52525eaf,#30303aa8,#53515eaf);border-color:#ffffff52;box-shadow:0 17px 40px #0008,inset 0 1px 1px #ffffff6b}
body[data-theme=dark] .bottom-nav .tab.active{background:#ffffff22;border-color:#ffffff57}
.home-active .topbar{background:transparent}.home-active .top-title strong{font-family:var(--sans);font-weight:730;letter-spacing:.08em;font-size:28px}.home-active .top-title span,.home-active .preview-pill{display:none}
.home-page{position:relative;isolation:isolate;width:100%;max-width:none;padding:0 22px 60px;background:#f7f5ef;color:var(--home-ink);scrollbar-width:thin}
.home-page:before{content:'';position:absolute;z-index:-1;inset:0 0 -100px;pointer-events:none;background:radial-gradient(ellipse 55% 26% at 6% 8%,#e7dbedb5,transparent 93%),radial-gradient(ellipse 58% 34% at 94% 35%,#d6e9e0ba,transparent 93%),radial-gradient(ellipse 51% 28% at 14% 73%,#ebdef5b5,transparent 92%),radial-gradient(ellipse 49% 25% at 92% 95%,#e9e3d1b0,transparent 92%),#f7f5ef}
body[data-theme=dark] .home-page{background:#1b1d24}body[data-theme=dark] .home-page:before{background:radial-gradient(ellipse at 6% 9%,#4a3d5596,transparent 62%),radial-gradient(ellipse at 92% 44%,#27473f88,transparent 65%),#1b1d24}
.home-content{width:min(680px,100%);margin:0 auto;position:relative;padding:12px 0 25px}
.optical-glass{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--opt-edge);color:var(--home-ink);background:linear-gradient(128deg,#ffffff91 0%,#ffffff38 40%,#ffffff30 65%,#ffffff78 100%);box-shadow:0 17px 37px #45465719,0 3px 8px #4b42530a,inset 0 1.5px 1px #ffffffef,inset 1px 0 1px #ffffff8a,inset 0 -1px 1px #ffffff68;backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%)}
.optical-glass:before{content:'';position:absolute;inset:1px;border-radius:inherit;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 18% -22%,#ffffffbc,transparent 49%),linear-gradient(110deg,transparent 36%,#ffffff27 55%,transparent 74%)}
.optical-glass:after{content:'';position:absolute;top:-45%;left:24%;width:39%;height:68%;border-radius:50%;z-index:-1;pointer-events:none;background:#ffffff38;filter:blur(22px);transform:rotate(-22deg)}
body[data-theme=dark] .optical-glass{background:linear-gradient(125deg,#ffffff29,#ffffff0d 52%,#ffffff1e);border-color:#ffffff54;box-shadow:0 17px 37px #0006,inset 0 1px 1px #ffffff79}
.home-hero{height:248px;position:relative;padding-top:72px}.home-thread{position:absolute;inset:1px -22px auto;width:calc(100% + 44px);height:125px;overflow:visible;pointer-events:none;opacity:.75}.home-thread path{fill:none;stroke:#a8515a;stroke-width:1.25;vector-effect:non-scaling-stroke}
.home-identity{position:absolute;z-index:2;top:11px;left:0;right:0;display:flex;justify-content:center;gap:clamp(72px,19vw,130px);pointer-events:none}.identity-disc{height:69px;width:69px;display:grid;place-items:center;border-radius:50%;background:#1d1e22;color:#fff;font:italic 36px var(--serif);box-shadow:0 8px 25px #2c273328,0 1px 0 #ffffffb8;border:1px solid #ffffff8c}
.home-translation{width:100%;height:169px;border-radius:27px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:15px 20px}.home-small-label{font-size:9px;font-weight:600;letter-spacing:.21em;opacity:.57}.home-translation strong{font-size:clamp(22px,5.2vw,31px);letter-spacing:.2em;font-weight:650;white-space:nowrap}.translation-sub{font-size:12px;letter-spacing:.42em;font-weight:550;margin-left:.42em}.translation-sub span{display:inline-block;letter-spacing:0;font-size:16px;margin-left:7px;font-weight:400;vertical-align:-1px;opacity:.62}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:21px}.home-tile{height:171px;border-radius:25px;padding:19px 19px 17px;display:flex;flex-direction:column;text-align:left;align-items:flex-start}.home-tile strong{font-size:29px;font-weight:650;margin:14px 0 auto;letter-spacing:.07em}.home-tile small{font-size:11px;line-height:1.4;opacity:.73;max-width:130px}.tile-arrow{position:absolute;right:17px;top:18px;font-size:18px;font-weight:300;opacity:.6}.home-steps strong{font-size:22px;margin:10px 0 0}.home-steps small{margin-top:auto}.steps-bars{position:absolute;bottom:38px;right:16px;height:70px;width:55%;display:flex;align-items:end;justify-content:space-between;gap:3px;opacity:.6}.steps-bars i{width:8%;height:var(--h);border-radius:5px 5px 2px 2px;background:linear-gradient(#a790c5,#c3add8);box-shadow:0 0 8px #bda7cd36}.steps-bars i:nth-child(1){--h:30%}.steps-bars i:nth-child(2){--h:57%}.steps-bars i:nth-child(3){--h:41%}.steps-bars i:nth-child(4){--h:81%}.steps-bars i:nth-child(5){--h:55%}.steps-bars i:nth-child(6){--h:68%}.steps-bars i:nth-child(7){--h:38%}.steps-bars i:nth-child(8){--h:92%}.steps-bars i:nth-child(9){--h:51%}
.home-music{width:100%;min-height:104px;margin-top:21px;border-radius:27px;display:flex;align-items:center;text-align:left;padding:18px 22px;gap:19px}.music-disc{width:63px;height:63px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:radial-gradient(circle at 26% 20%,#ffffffb8,#e4dfe8aa 55%,#c2b5cc60);border:1px solid #ffffffdb;box-shadow:inset 0 2px 5px #fff,0 3px 13px #67587618;font:25px var(--serif)}.home-music>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}.home-music strong{font-size:17px;font-weight:650}.home-music small{font-size:11px;opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-arrow{margin-left:auto;align-self:flex-start;font-size:18px;opacity:.55}
.home-ritual{border-radius:28px;margin-top:21px;padding:8px 12px 14px;min-height:184px}.ritual-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#ffffff40;border-radius:18px;padding:4px}.ritual-tabs button{border-radius:14px;padding:10px 4px;font-size:14px;font-weight:570;color:var(--home-ink)}.ritual-tabs button.selected{background:linear-gradient(135deg,#ffffffbb,#ffffff65);box-shadow:inset 0 1px 0 #fff,0 2px 9px #74707b19;border:1px solid #ffffffa9}.ritual-body{padding:13px 9px 2px}.home-feature{min-height:99px;display:flex;align-items:center;justify-content:space-between;gap:10px}.home-anniversary strong{font-size:17px;display:block;margin:7px 0 8px;white-space:nowrap}.home-anniversary small{font:italic 16px var(--serif);letter-spacing:.14em}.day-number{font:500 clamp(67px,15vw,103px)/.95 var(--serif);letter-spacing:-.07em;padding-right:7px}.home-feature-empty{justify-content:flex-start;gap:22px}.home-feature-empty strong{font-size:19px}.home-feature-empty p{font-size:11px;line-height:1.6;opacity:.66;max-width:230px}.feature-symbol{font:70px var(--serif);width:90px;text-align:center;color:#bba8ce}.activity-ring{width:72px;height:72px;border-radius:50%;flex-shrink:0;background:conic-gradient(#b89fcf 0 69%,#ffffff83 69%);mask:radial-gradient(farthest-side,transparent 60%,#000 62%);-webkit-mask:radial-gradient(farthest-side,transparent 60%,#000 62%)}
.home-notes{margin:32px 1px 0}.home-notes-heading{display:flex;align-items:center;justify-content:space-between}.home-notes h2{font-size:20px;font-weight:600;margin:6px 0 0}.note-add{width:39px;height:39px;border-radius:50%;font-size:25px;line-height:1;background:#ffffff72;border:1px solid #ffffffdb;box-shadow:inset 0 1px #fff,0 4px 14px #36344312}.home-notes .cards{margin-top:14px}.home-notes .record{background:#ffffff69;border-color:#fff9;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.notes-empty{color:var(--home-ink);opacity:.54;font-size:12px;margin:17px 0 0}.home-date{display:block;margin:30px 0 0;text-align:center;font-size:10px;letter-spacing:.1em;opacity:.48}
@media(max-width:800px){.home-active .topbar{height:calc(69px + env(safe-area-inset-top,0px));border-bottom:1px solid #ffffffaf}.home-active .top-title strong{font-size:25px;max-width:none}.home-page{padding:0 20px 100px}.home-hero{height:232px;padding-top:68px}.home-translation{height:158px}.home-grid{gap:14px}.home-tile{height:158px}.home-tile strong{font-size:26px}.home-music{margin-top:16px}.home-ritual{margin-top:16px}.home-content{padding-top:5px!important}}
@media(max-width:370px){.home-page{padding-left:16px;padding-right:16px}.home-translation strong{font-size:21px}.home-grid{gap:10px}.home-tile{padding:15px;height:150px}.home-tile strong{font-size:24px}.home-tile small{font-size:10px}.steps-bars{right:11px;width:56%}.home-anniversary strong{font-size:15px}.day-number{font-size:67px}.home-music{gap:12px;padding:15px}.music-disc{width:54px;height:54px}}

/* Shared conversation destination, with a mode selector at the upper left. */
.mode-picker{position:relative;flex-shrink:0;z-index:15}.mode-switch{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:15px;font-size:21px;font-weight:600}.mode-switch:hover{background:var(--panel)}.mode-switch>span:last-child{font-size:17px;color:var(--muted)}.mode-menu{position:absolute;top:calc(100% + 8px);left:0;width:200px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.mode-menu button{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:12px;text-align:left}.mode-menu button[aria-checked=true]{background:var(--panel)}.mode-menu small{display:block;font-size:10px;margin-top:3px}.chat-active .top-title{max-width:220px}.chat-active .top-title strong{font-family:var(--sans);font-size:12px;font-weight:400;color:var(--muted)}.chat-active .top-title span{display:none}.chat-active .preview-pill{display:none}

/* Personal page: identity above a four-part archive, inspired by IG's layout. */
.me-active .topbar{border-bottom:0}.me-active .preview-pill,.me-active .top-title span{display:none}.me-active .top-title strong{font:650 24px var(--sans);letter-spacing:-.025em}.me-page{width:min(760px,100%);padding:24px 34px 80px}.me-profile{padding-bottom:28px}.me-summary{display:flex;align-items:center;gap:28px}.me-avatar-button{padding:0;position:relative;flex-shrink:0}.me-avatar{display:grid;place-items:center;width:100px;height:100px;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#e9e4ee,#f9f8f5);border:1px solid #ffffffd1;box-shadow:0 5px 24px #3e344011;font:italic 42px var(--serif);color:#665c72}.me-avatar img{width:100%;height:100%;object-fit:cover}.me-avatar-plus{position:absolute;bottom:0;right:-2px;width:29px;height:29px;border-radius:50%;background:var(--ink);color:var(--inverse);border:3px solid var(--page-bg);display:grid;place-items:center;font-size:20px;line-height:1}.me-details{flex:1;min-width:0}.me-details h1{font-size:17px;line-height:1.5;font-weight:650;margin:0 0 15px;overflow-wrap:anywhere}.me-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.me-stats>div{display:flex;flex-direction:column;gap:5px}.me-stats strong{font-size:23px;line-height:1;font-weight:650;font-variant-numeric:tabular-nums}.me-stats span{font-size:12px}.me-bio{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0}.me-bio.placeholder{font-size:12px;color:var(--muted)}.me-actions{display:flex;gap:9px}.me-actions button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;font-size:13px;font-weight:600;min-height:42px;border:1px solid var(--glass-border);border-radius:13px;background:var(--glass);box-shadow:inset 0 1px 1px #ffffff90,0 3px 10px #28233408;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.me-actions svg{width:17px;height:17px}.archive-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);gap:4px}.archive-tabs button{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:15px 2px;color:var(--muted);font-size:11px;white-space:nowrap}.archive-tabs button svg{width:24px;height:24px;stroke-width:1.5}.archive-tabs button.active{color:var(--text)}.archive-tabs button.active:after{content:'';position:absolute;bottom:-1px;height:2px;background:currentColor;width:61%;border-radius:2px}.archive-search{padding:18px 0}.archive-search label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--glass);border-radius:24px;padding:0 15px;color:var(--muted)}.archive-search svg{width:16px;height:16px}.archive-search input{width:100%;background:none;border:0;color:var(--text);padding:12px 0;outline:none;font-size:12px}.archive-search input:focus-visible{outline:none}.archive-search label:focus-within{outline:2px solid var(--muted);outline-offset:2px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;border-radius:4px;overflow:hidden}.archive-image{position:relative;aspect-ratio:1/1.15;min-width:0;padding:0;background:var(--panel);overflow:hidden}.archive-image>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.archive-image:hover>img{transform:scale(1.03)}.archive-image>span{position:absolute;right:7px;top:7px;color:white;background:#1819202e;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);width:24px;height:24px;display:grid;place-items:center;border-radius:7px;border:1px solid #ffffff55}.archive-image>span svg{width:14px;height:14px}.archive-files{display:flex;flex-direction:column;gap:5px}.archive-file{display:flex;align-items:center;gap:15px;width:100%;padding:11px 0;text-align:left}.file-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--panel);width:54px;height:60px;flex-shrink:0;border-radius:15px;border:1px solid var(--glass-border)}.file-thumb svg{width:24px;height:24px}.file-thumb small{font-size:7px;letter-spacing:1px}.file-info{flex:1;min-width:0}.file-info strong{display:block;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info small{display:block;margin-top:7px;font-size:10px}.archive-file>svg{width:15px;color:var(--muted)}.archive-file:hover{background:var(--panel);border-radius:13px}.archive-empty{padding:45px 16px 38px;text-align:center}.archive-empty>svg{height:42px;width:42px;padding:7px;border:1px solid var(--line);border-radius:50%;color:var(--muted);stroke-width:1}.archive-empty h2{font-size:16px;font-weight:500;margin:17px 0 10px}.archive-empty p{font-size:12px;color:var(--muted);line-height:1.75;margin:0}.archive-scope{font-size:10px;letter-spacing:.02em;text-align:center;color:var(--muted);margin:28px 0 0}.asset-full-image{display:block;max-height:58dvh;max-width:100%;margin:0 auto;object-fit:contain;border-radius:10px}.asset-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}.asset-actions a{text-decoration:none;color:var(--text)}.asset-file-help{color:var(--muted);padding:25px 0;text-align:center}.profile-editor .me-avatar{width:76px;height:76px;font-size:35px}body[data-theme=dark] .me-avatar{background:linear-gradient(135deg,#4a4351,#2b2b30);color:#eee7f5;border-color:#ffffff33}
@media(max-width:800px){.me-page{padding:20px 20px 45px}.me-summary{gap:22px}.me-avatar{width:85px;height:85px;font-size:38px}.me-details h1{font-size:15px;margin-bottom:15px}.me-stats{gap:12px}.me-stats strong{font-size:22px}.me-stats span{font-size:12px}.me-active .top-title strong{font-size:23px;max-width:225px}.mode-switch{padding:8px 6px;font-size:21px}.chat-active .top-title{max-width:115px}.archive-tabs button{font-size:10px;gap:8px}.archive-tabs button svg{width:23px;height:23px}.archive-grid{margin:0 -20px;border-radius:0}.archive-search input{font-size:16px;padding:10px 0}.me-profile{padding-bottom:16px}.me-actions button{min-height:39px}}
@media(max-width:370px){.me-summary{gap:16px}.me-avatar{width:74px;height:74px}.me-stats{gap:8px}.me-stats strong{font-size:20px}.me-page{padding-left:16px;padding-right:16px}.archive-grid{margin:0 -16px}.me-active .top-title strong{max-width:185px}.chat-active .top-title{max-width:90px}}
