@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif;color:#172c4d;background:#edf4fc;font-synthesis:none;font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%;--blue: #1677ff;--muted: #8092ae;--line: #e5edf7;--green: #16a765}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}input,textarea,select{font-size:16px;min-width:0;max-width:100%}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue);text-decoration:none}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.7px;font-weight:700}h2{font-size:20px;letter-spacing:-.3px}h3{font-size:16px;font-weight:600}p{line-height:1.65}small,.caption{font-size:12px;line-height:1.7;color:var(--muted)}.muted{color:var(--muted);font-size:14px}.center{text-align:center}.workspace{max-width:1140px;margin:32px auto;display:flex;min-height:calc(100dvh - 64px);gap:40px}.desktop-aside{width:220px;padding:24px 8px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px}.brand b{font-size:25px}.brand small{display:block}.brand-icon{width:42px;height:42px;background:linear-gradient(150deg,#55a2ff,#0968f2);color:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;box-shadow:0 7px 14px #1677ff22}.eyebrow{font-size:12px;color:#8b9eb8;letter-spacing:1px;margin:35px 0 15px}.side-nav{display:grid;gap:10px}.side-nav a{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:16px;color:#637998}.side-nav a.active{background:#fff;color:var(--blue);box-shadow:0 6px 18px #1f589308}.aside-profile{margin-top:auto;display:flex;gap:12px;align-items:center}.aside-profile small{display:block}.phone-surface{min-width:0;width:720px;max-width:100%;background:linear-gradient(160deg,#f7fbff,#f4f8fd 70%,#edf5ff);border:1px solid white;border-radius:30px;box-shadow:0 16px 70px #153b6410;position:relative;min-height:calc(100dvh - 64px);overflow:hidden}.app-header{padding:22px 30px 12px;display:flex;align-items:center;justify-content:space-between}.mini-brand{display:flex;gap:9px;align-items:center;color:#22426e;font-weight:600}.mini-brand .brand-icon{width:28px;height:28px;border-radius:9px}.header-actions{display:flex;align-items:center;gap:12px}.role-switch{border:1px solid #dfe9f7;border-radius:20px;background:#fff;display:flex;align-items:center;gap:5px;padding:7px 12px;color:#647d9e;font-size:12px}.icon-btn{border:0;background:transparent;padding:8px;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;color:#637b9a;flex-shrink:0;border-radius:10px}.blue-icon{color:var(--blue);background:#e6f1ff}.phone-surface main{padding:20px 30px 110px;min-height:70vh}.title-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}.title-row h1,.title-row h2{flex:1}.date-line{color:#8b9db8;font-size:14px;margin-bottom:24px}.avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:linear-gradient(140deg,#d9ebff,#b0d2fd);border:3px solid #f4f9ff;font-size:14px;color:#3866a2;font-weight:600}.avatar.large{width:78px;height:78px;font-size:22px}.card{background:#fff;border:1px solid #f2f6fc;border-radius:19px;padding:20px;margin-bottom:14px;box-shadow:0 5px 18px #254f8c04}.card p{margin-top:8px;color:#7488a5;font-size:14px}.btn{display:flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:13px;padding:14px 18px;min-height:48px;background:linear-gradient(130deg,#3992ff,#0870fb);color:#fff;font-weight:500;font-size:15px;box-shadow:0 7px 16px #1976ff18;width:100%;margin:10px 0}.btn.secondary{background:#eef5ff;border:1px solid #dceafd;color:#1877ef;box-shadow:none}.btn.danger{background:#fff0f0;color:#c54c5b;border-color:#ffe2e2}.button-row,.action-grid{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.button-row>.btn{flex:1;min-width:115px}.action-grid>.btn{flex:1;min-width:140px}.text-btn{border:0;background:none;color:var(--blue);padding:8px 0;display:inline-flex;align-items:center;gap:5px;font-size:14px}.danger-text{color:#c64d5c}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 28px}.stat-card{border:0;border-radius:20px;background:#fff;padding:22px 18px;display:flex;align-items:center;text-align:left;gap:14px;color:#8497b1;font-size:14px;box-shadow:0 7px 20px #22508704}.stat-card b{display:block;font-size:32px;line-height:1.2;margin-top:5px;color:#1b2d48}.icon-box{background:#e8f2ff;color:var(--blue);width:48px;height:48px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon-box.green{background:#e5f7ef;color:#1dad84}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 14px}.section-head a{font-size:13px;display:flex;align-items:center}.card .section-head{margin-top:0}.section-title{margin:24px 0 15px}.record-card{display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #f0f5fc;border-radius:18px;padding:20px 18px;margin-bottom:12px;width:100%;background:#fff;box-shadow:0 4px 18px #27559204}.record-card.cancelled{opacity:.65}.completion{width:29px;height:29px;border-radius:50%;border:2px solid #c6d4e6;display:flex;align-items:center;justify-content:center;flex-shrink:0}.completion.done{background:linear-gradient(120deg,#55cda4,#17ab79);color:#fff;border:0}.record-body{flex:1;min-width:0}.record-body h3{margin-bottom:6px}.record-body p{font-size:12px;color:#8b9db9}.record-body p span{color:#47648c}.record-kind{display:flex;color:var(--blue);background:#edf5ff;padding:9px;border-radius:12px}.thumbnail-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.thumbnail-line img{width:62px;height:54px;object-fit:cover;border-radius:9px}.thumbnail-line span{font-size:12px;color:#7d8ea7}.badge{display:inline-block;border-radius:7px;padding:4px 7px;background:#e8f2ff;color:#1677ef;font-size:12px;margin-top:4px;margin-right:4px;white-space:nowrap}.badge.green{background:#e6f8ed;color:#13a171}.badge.orange{background:#fff3dc;color:#be8022}.badge.gray{background:#f0f3f8;color:#8d9bb0}.assistant-banner{display:flex;align-items:center;gap:14px;background:linear-gradient(120deg,#e3f1ff,#f1f7ff);border:1px solid #e8f3ff;color:var(--blue);padding:20px;border-radius:18px;margin-top:20px}.assistant-banner>div{flex:1}.assistant-banner span{display:block;color:#8099bb;font-size:12px;margin-top:5px}.bottom-nav{position:absolute;bottom:0;left:0;right:0;background:#fffffff2;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:15px 16px max(17px,env(safe-area-inset-bottom));display:flex;justify-content:space-around;border-top:1px solid #edf3fa;z-index:10}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:6px;color:#8b9db5;font-size:12px;min-width:60px}.bottom-nav a.active{color:var(--blue)}.bottom-nav .ai-nav svg{background:#e7f1ff;border-radius:50%;box-sizing:content-box;padding:8px;margin-top:-8px}.field{min-width:0;display:flex;flex-direction:column;gap:8px;font-size:14px;color:#526c8f;margin:18px 0}.field small{font-size:12px}.field input,.field textarea,.field select,.inline-input input{width:100%;border:1px solid #dfe8f5;border-radius:11px;padding:13px 14px;min-height:46px;background:#fcfdff;color:#253d60;outline:none;transition:.15s}.field textarea{min-height:94px;resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus{border-color:#85b8ff;box-shadow:0 0 0 3px #1677ff0c}.inline-input{display:flex;gap:7px;align-items:center;margin-bottom:8px}.inline-input input{flex:1 1 0;width:0}.inline-input button{flex-shrink:0;border:0;min-width:45px;background:#edf5ff;color:var(--blue);padding:12px;border-radius:10px;font-size:13px;white-space:nowrap}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-strip{display:flex;align-items:center;gap:9px;background:#eaf4ff;color:#537ead;border-radius:12px;padding:14px;font-size:13px;line-height:1.6;margin:14px 0}.info-strip svg{flex-shrink:0;color:var(--blue)}.info-strip>a,.info-strip>svg:last-child{margin-left:auto}.loading{padding:24px;color:#8498b5;font-size:14px}.error{padding:20px;color:#bc5260;background:#fff4f4;border-radius:12px}.empty{text-align:center;color:#90a2ba;padding:50px 15px}.empty svg{opacity:.6}.empty p{margin:14px 0;font-size:14px}.toast{position:fixed;bottom:100px;left:50%;transform:translate(-50%);background:#213954ed;color:#fff;padding:13px 20px;border-radius:14px;font-size:14px;z-index:100;max-width:90%;box-shadow:0 5px 30px #0002}.overlay{position:fixed;inset:0;background:#20395444;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#f9fcff;border-radius:24px;padding:24px;width:560px;max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 25px 100px #20395430}.modal h2{font-size:20px}.success-mark{width:60px;height:60px;border-radius:50%;background:#def6ea;color:var(--green);display:flex;align-items:center;justify-content:center;margin:25px auto}.person-line{display:flex;align-items:center;gap:12px}.person-line>div{flex:1}.person-line p{font-size:13px;color:#8b9db8}.profile{margin:20px 0 25px}.profile .btn{width:auto;padding:11px 12px;font-size:13px}.person-line small{color:#8b9db8}.patient-card{display:flex;gap:14px;align-items:center;text-align:left;width:100%;border:0;background:#fff;padding:20px;border-radius:19px;margin:13px 0}.patient-card>div{flex:1}.patient-card p{color:#8a9bb5;font-size:13px;margin:5px 0}.search{display:flex;align-items:center;gap:9px;padding:13px 16px;background:#fff;border-radius:12px;color:#a0b1c8;margin:20px 0}.search input{border:0;outline:0;flex:1;background:none;min-width:0;font-size:16px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.chips button,.chips a{background:#edf2f8;border:0;padding:8px 13px;border-radius:9px;color:#8193ad;font-size:13px}.chips .selected{background:#dfedff;color:#1677ff}.calendar{padding:18px}.calendar-controls{display:flex;align-items:center;justify-content:space-between;margin:-8px 0 10px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-grid button{background:transparent;border:1.5px solid transparent;border-radius:10px;padding:7px 0;display:grid;gap:7px;text-align:center;font-size:14px;min-width:0}.calendar-grid button small{display:block;margin-bottom:12px}.calendar-grid button b{display:block;border-radius:6px;margin:0 3px;padding:5px 0;font-size:12px;font-weight:500}.calendar-grid button.chosen{border-color:var(--blue);background:#edf5ff}.weekdays{color:#98a7bd;font-size:12px;text-align:center;margin-bottom:8px}.calendar-grid.month{gap:4px}.calendar-grid.month button{padding:5px 0;font-size:12px;gap:4px}.calendar-grid.month button b{font-size:10px;padding:3px 0}.calendar-grid .outside{opacity:.4}.calendar-caption{font-size:12px!important;color:#94a4bb!important;display:flex;align-items:center;gap:6px;margin-top:14px!important}.calendar-caption i{background:#29b673;width:7px;height:7px;border-radius:50%;flex-shrink:0}.list-link{background:#fff;padding:18px;border-radius:15px;display:flex;align-items:center;gap:10px;margin:15px 0;font-size:14px}.list-link svg:last-child{margin-left:auto}.progress-card{padding:22px;background:#fff;border-radius:22px;margin-bottom:25px;position:relative;overflow:hidden;box-shadow:0 7px 28px #1d509305}.progress-card .section-head{margin-top:0}.progress-card .section-head span{font-size:14px;color:#8295b0}.progress-card .section-head b{color:var(--blue);font-size:20px}.progress-card p{font-size:12px;color:#99a9bf;margin-top:12px}.progress-track{height:7px;background:#eaf0f7;border-radius:10px;overflow:hidden}.progress-track i{display:block;height:100%;border-radius:10px;background:linear-gradient(100deg,#4699ff,#127aff);transition:width .25s}.builder-item{display:flex;align-items:center;gap:12px;padding:16px}.item-number{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#edf5ff;color:var(--blue);font-size:14px;flex-shrink:0}.builder-open{border:0;background:none;text-align:left;flex:1;min-width:0}.builder-open p{font-size:12px}.builder-controls{display:flex;gap:2px}.builder-controls button{border:0;background:none;padding:7px;color:#9eafc4}.check-label{display:flex;gap:11px;align-items:center;color:#496585;font-size:14px;padding:14px 0;line-height:1.7}.check-label input{accent-color:var(--blue);width:20px;height:20px;flex-shrink:0}.inset{background:#f0f7ff}.weekday-options{display:flex;justify-content:space-between}.weekday-options label{display:flex;flex-direction:column;gap:8px;font-size:13px}.sticky-action{display:flex;gap:10px;margin-top:25px}.sticky-action .btn{flex:1}.operation-preview{background:#fff;padding:18px;border:1px solid #e3ecf8;border-radius:14px;margin:15px 0}.preview-item{padding:12px 0;border-bottom:1px solid #edf2fa;font-size:14px}.preview-item span{display:block;color:#899ebc;font-size:12px;margin:6px 0}.task-row{border:none;text-align:left;width:100%;display:flex;gap:12px;align-items:center}.task-row>div{flex:1}.photos{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.photos>div{position:relative}.photos img{width:130px;height:125px;object-fit:cover;border-radius:12px;cursor:zoom-in}.photos>div>button{position:absolute;right:5px;top:5px;border:0;background:#273b51bd;color:#fff;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center}.upload-zone{text-align:center;border:1px dashed #bdd8fd;background:#f9fcff;border-radius:16px;padding:25px 15px}.upload-zone h3{margin-top:12px}.upload-zone .btn{font-size:13px}.full-photo{width:100%;height:auto;max-height:70vh;object-fit:contain;border-radius:13px}.answer-value{font-size:18px!important;color:#304c6e!important;white-space:pre-wrap;display:flex;align-items:center;gap:8px}.medication-info{display:flex;gap:10px;align-items:center;background:#eef5ff;border-radius:12px;padding:15px;margin-top:15px}.medication-info>svg{color:var(--blue)}.feedback-card{width:100%;text-align:left;border:0;display:flex;gap:10px;align-items:center}.feedback-card>div{flex:1}.feedback-text{white-space:pre-wrap;font-size:16px!important;line-height:1.8}.supplement-card{display:flex;align-items:center;gap:9px;background:#fff3df;padding:15px;border-radius:13px;margin:20px 0;color:#b67b26}.supplement-card>div{flex:1}.supplement-card .btn{width:auto;font-size:12px;padding:10px}.notice{display:flex;align-items:center;gap:10px}.notice>button:first-child{flex:1;text-align:left;border:0;background:transparent}.notice.unread{border-left:3px solid #4199ff}.auth-layout{min-height:100dvh;display:flex;justify-content:center;align-items:center;gap:80px;padding:30px}.auth-art{width:400px}.auth-art h1{font-size:42px;line-height:1.5;margin:50px 0 18px}.auth-art>p{color:#8099b9}.auth-example{display:flex;align-items:center;gap:20px;background:#ffffffb8;border:1px solid white;border-radius:22px;padding:25px;margin-top:50px;box-shadow:0 12px 30px #29548607}.auth-example p{font-size:13px;color:#8a9eba}.auth-card{width:430px;background:#ffffffda;border:1px solid white;border-radius:26px;padding:35px;box-shadow:0 15px 60px #2454880a}.auth-card .eyebrow{margin-top:0;display:block}.auth-card>h1{margin-bottom:12px}.auth-card>.caption{margin-top:15px}.auth-mode-switch{display:flex;gap:5px;padding:5px;margin:24px 0 20px;border-radius:13px;background:#eef4fc}.auth-mode-switch button{flex:1;border:0;border-radius:9px;padding:11px 8px;background:transparent;color:#8195b0;font-size:14px;transition:.15s}.auth-mode-switch button.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px #214e8710}.auth-mode-switch button:disabled,.auth-text-button:disabled,.auth-back-button:disabled{opacity:.55}.auth-help-row{display:flex;justify-content:flex-end;margin:-5px 0 18px}.auth-text-button,.auth-back-button{border:0;padding:3px 0;background:transparent;color:var(--blue);font-size:13px}.auth-back-button{display:flex;gap:7px;align-items:center;justify-content:center;margin:18px auto 0}.auth-card form>.btn{width:100%}.demo-entry{border-top:1px solid #e6edf7;margin-top:25px;padding-top:20px}.demo-entry p{font-size:12px;color:#98a9c0}.demo-entry .btn{font-size:12px;min-width:0}.error-text{color:#c4535e;font-size:13px;margin:12px 0}.launch{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.launch p{color:#8499b9}.chat-page{min-height:calc(100dvh - 245px);display:flex;flex-direction:column}.chat-welcome{text-align:center;padding:35px 20px}.ai-orb{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d8edff,#6fadff);border:5px solid #eaf5ff;box-shadow:0 12px 40px #3d87fc25;color:#fff}.chat-welcome h2{margin:22px 0 10px}.chat-welcome p{font-size:14px;color:#91a4bf}.suggestions{display:grid;gap:10px;margin-top:25px}.suggestions button{border:1px solid #e3edf9;background:#fff;border-radius:13px;padding:13px;color:#708bab;font-size:14px}.chat-messages{flex:1;padding-bottom:15px}.chat-message{display:flex;gap:10px;margin:18px 0}.chat-message.user{justify-content:flex-end}.message-content{max-width:88%;min-width:0}.bubble{background:#fff;border-radius:4px 16px 16px;padding:15px 17px;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 13px #23568c03}.user .bubble{background:#ddecff;border-radius:16px 4px 16px 16px}.ai-face{width:30px;height:30px;background:#e1efff;color:var(--blue);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.chat-composer-wrap{position:sticky;bottom:0;margin-top:auto;padding:12px 0;background:linear-gradient(transparent,#f5f9ff 20%)}.chat-composer{background:#fff;border:1px solid #e5eef9;padding:9px;border-radius:23px;display:flex;align-items:center;gap:8px;box-shadow:0 5px 25px #295a8c06}.chat-composer textarea{border:none;outline:0;background:transparent;flex:1;resize:none;min-width:0;font-size:16px;line-height:1.6;color:#304c6e;max-height:130px}.send-btn{border:0;width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.chat-composer-wrap>.caption{text-align:center;font-size:11px;margin:10px 0 0}.chat-photo{display:block;width:160px;border-radius:10px;margin-top:12px}.chat-operation{margin-top:12px;padding:16px}.chat-operation .operation-preview{padding:8px;border:none}.chat-operation .section-head{margin-bottom:10px;font-size:14px}.chat-result{display:flex;gap:8px;align-items:center;padding:14px;color:#19a579;font-size:13px;margin-top:10px}.chat-action{width:100%;border:0;color:var(--blue);display:flex;justify-content:space-between;margin-top:10px}.conversation-row{display:flex;align-items:center;border-bottom:1px solid #e9eff7;padding:10px 0}.conversation-row>button:first-child{flex:1;text-align:left;border:none;background:transparent;font-size:14px}.attachment-preview{display:flex;gap:9px;padding:5px}.attachment-preview button{position:relative;border:0;background:none}.attachment-preview img{width:52px;height:52px;object-fit:cover;border-radius:8px}.attachment-preview svg{position:absolute;right:0;top:0;background:#fff;border-radius:50%}.failed{color:#b35560}.typing{color:#8197b5;font-size:14px}@media(max-width:850px){.workspace{margin:0;min-height:100dvh;display:block}.desktop-aside{display:none}.phone-surface{margin:auto;width:100%;max-width:none;min-height:100dvh;border-radius:0;box-shadow:none;border:0;overflow:visible}.phone-surface main{padding:18px 20px 115px;min-height:80vh}.app-header{padding:18px 20px 10px}.bottom-nav{position:fixed;width:100%;right:auto;max-width:none;left:50%;transform:translate(-50%);border-radius:22px 22px 0 0;padding-top:16px}.auth-layout{display:block;padding:24px 20px;background:linear-gradient(160deg,#f3f9ff,#e9f2ff)}.auth-art{width:auto}.auth-art h1,.auth-art>p,.auth-example{display:none}.auth-art .brand{margin:25px auto 35px;justify-content:center}.auth-card{margin:auto;width:100%;max-width:430px;padding:28px 22px}.stats-grid{gap:10px}.stat-card{padding:20px 14px;gap:10px}.stat-card .icon-box{width:40px;height:40px}.stat-card span{font-size:12px}.card{padding:18px}.record-card{padding:18px 14px;gap:10px}.overlay{align-items:flex-end;padding:0}.modal{border-radius:24px 24px 0 0;max-height:92dvh;padding:24px 20px max(25px,env(safe-area-inset-bottom));width:560px}.builder-controls{flex-direction:column}.calendar{padding:15px 10px}.calendar-caption{font-size:11px!important}.profile .btn{font-size:12px;padding:10px;min-height:40px}.chat-composer-wrap{bottom:calc(90px + env(safe-area-inset-bottom))}.chat-page{min-height:calc(100dvh - 240px)}h1{font-size:26px}.sticky-action{background:#f6faff;padding:10px 0}.photos img{width:110px;height:110px}}.person-line>div,.patient-card>div,.task-row>div,.feedback-card>div,.supplement-card>div,.assistant-banner>div,.conversation-row>button:first-child,.notice>button:first-child{min-width:0}.record-body,.person-line>div,.patient-card>div,.task-row>div,.feedback-card>div,.modal,.thumbnail-line span,.conversation-row>button:first-child{overflow-wrap:anywhere}@media(max-width:380px){.two-col{grid-template-columns:minmax(0,1fr)}}.header-ai-toggle{width:40px;height:40px;border-radius:50%;color:#1677ff;background:#e5f0ff;border:1px solid #d7e8ff;box-shadow:0 3px 10px #4382d20a;transition:background .18s ease,box-shadow .18s ease,transform .18s ease}.header-ai-toggle:hover{background:#d8eaff;box-shadow:0 4px 14px #4382d218}[hidden]{display:none!important}.mode-transition{position:fixed;inset:0;overflow:hidden;z-index:120}.mode-transition-disc{position:absolute;left:var(--reveal-x);top:var(--reveal-y);width:var(--reveal-diameter);height:var(--reveal-diameter);border-radius:50%;background:#edf5ff;transform:translate(-50%,-50%) scale(0);animation:conversation-circle-expand .19s cubic-bezier(.2,.8,.2,1) forwards}.mode-transition.settling{animation:conversation-reveal .2s ease-out forwards}@keyframes conversation-circle-expand{to{transform:translate(-50%,-50%) scale(1)}}@keyframes conversation-reveal{to{opacity:0}}.header-ai-toggle:active{transform:scale(.94)}.header-ai-toggle:focus-visible{outline:3px solid #91bcff;outline-offset:3px}.header-ai-toggle.active{background:#fff;border-color:#dce9fb;box-shadow:0 3px 14px #3b79c40d}.workspace.chat-mode{justify-content:center;max-width:940px;height:calc(var(--app-viewport-height, 100dvh) - 64px);min-height:0;gap:0}.workspace.chat-mode .desktop-aside,.workspace.chat-mode .bottom-nav{display:none}.phone-surface.chat-mode{display:flex;flex-direction:column;width:900px;height:100%;min-height:0;overflow:hidden;background:#edf5ff}.chat-mode .app-header{flex-shrink:0;background:#edf5ff}.phone-surface.chat-mode main.chat-main{display:flex;flex:1;min-height:0;padding:16px 30px 0;overflow:hidden}.chat-mode .chat-page{display:grid;grid-template-rows:auto minmax(0,1fr) auto;flex:1;min-width:0;min-height:0;height:100%}.chat-mode .chat-heading .title-row{margin-bottom:6px}.chat-mode .chat-heading .date-line{margin-bottom:18px;color:#7e96b5}.chat-mode .chat-scroll-region{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#c9dbf1 transparent;padding:0 2px 16px;scroll-padding:16px}.chat-mode .chat-welcome{max-width:440px;margin:0 auto;padding:28px 12px 20px}.chat-mode .chat-welcome p{color:#7e96b5}.chat-mode .suggestions button{min-height:48px;background:#ffffffd9;border-color:#dbe8f8;color:#52759f}.chat-mode .suggestions button:hover{background:#fff;border-color:#b7d5fa}.chat-mode .chat-messages{padding-bottom:0}.chat-mode .user .bubble{background:#d8eaff}.chat-mode .chat-composer-wrap{position:relative;bottom:auto;margin-top:0;padding:12px 0 max(18px,env(safe-area-inset-bottom));background:#edf5ff}.chat-mode .chat-composer{border-color:#dae7f8;box-shadow:0 5px 25px #477daf0b}.chat-mode .chat-composer textarea{font-size:16px}.chat-mode .chat-composer-wrap>.caption{margin-top:8px;color:#88a0bf}@media(max-width:850px){.workspace.chat-mode{margin:0;height:var(--app-viewport-height, 100dvh);min-height:0}.phone-surface.chat-mode{width:100%;height:100%;min-height:0}.header-actions{gap:8px}.phone-surface.chat-mode main.chat-main{padding:14px 20px 0}.chat-mode .chat-composer-wrap{bottom:auto}}@media(max-width:380px){.header-actions{gap:6px}.phone-surface.chat-mode main.chat-main{padding-right:16px;padding-left:16px}}@media(max-height:500px){.chat-mode .app-header{padding-top:8px;padding-bottom:4px}.phone-surface.chat-mode main.chat-main{padding-top:4px}.chat-mode .chat-heading h1{font-size:22px}.chat-mode .chat-heading .date-line{margin-bottom:8px;font-size:12px}.chat-mode .chat-composer-wrap{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.chat-mode .chat-composer-wrap>.caption{margin-top:4px}}@media(prefers-reduced-motion:reduce){.header-ai-toggle{transition:none}}
