:root{--paper:#f7f7f2;--surface:#fffefa;--ink:#1d302e;--muted:#748078;--green:#205d53;--mint:#e8eee6;--line:#dfe5db;--danger:#a0483b;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;line-height:1.7;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #91ae93;outline-offset:3px}[hidden]{display:none!important}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35;font-weight:650;letter-spacing:-.03em}a{color:var(--green)}.app{max-width:760px;min-height:100svh;margin:auto;padding:0 28px 212px}.app-header{height:88px;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:7px;font-size:16px;font-weight:750;letter-spacing:-.04em;color:var(--ink);text-decoration:none}.brand-dot{width:5px;height:5px;border-radius:50%;background:var(--green);margin-top:2px}.status-button{display:flex;align-items:center;gap:6px;padding:7px 0 7px 10px;color:var(--muted);font-size:10px;background:transparent}.status-dot{width:5px;height:5px;background:#a2aca1;border-radius:50%}.status-dot.ready{background:#6d9474}.status-dot.error{background:#b38572}.auth-banner{padding:16px;background:var(--mint);border-radius:14px;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:14px}.hero{display:flex;flex-direction:column;align-items:center;padding:58px 0 38px;text-align:center;transition:padding .25s}.eyebrow{font-size:10px;letter-spacing:.12em;color:#83917e;font-weight:550;margin-bottom:12px}.hero h1{font-size:42px;font-weight:700;letter-spacing:-.04em}.hero-caption{font-size:13px;color:var(--muted);margin-top:13px}.start-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;margin:43px 0 22px;width:156px;height:156px;border-radius:50%;background:var(--green);color:#fff;isolation:isolate;transition:transform .2s,background .2s;box-shadow:0 14px 34px #205d5313}.start-button:hover{background:#194e45}.start-button:active{transform:scale(.97)}.start-button>span:last-child{font-size:14px;font-weight:550;letter-spacing:.02em}.mic-icon{width:35px;height:35px}.start-orbit{position:absolute;inset:-11px;border:1px solid #dae4d5;border-radius:50%;pointer-events:none}.voice-status{font-size:11px;color:var(--muted);max-width:320px;min-height:22px}.text-button{background:none;padding:8px 2px;color:var(--green);font-size:12px;text-decoration:none}.text-entry{margin-top:25px;color:#879182;font-size:11px}.voice-controls{display:flex;gap:9px;margin-top:16px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid var(--line);border-radius:10px;padding:10px 15px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:550;line-height:1.5;text-decoration:none}.primary{background:var(--green);border-color:var(--green);color:#fff}.secondary:hover{background:var(--mint)}.danger{color:var(--danger);background:#faeeea;border-color:#ead6cf}.has-chat .hero{padding-top:15px;padding-bottom:22px}.has-chat .hero-intro .eyebrow,.has-chat .hero-caption{display:none}.has-chat .hero h1{font-size:22px}.has-chat .start-button{width:78px;height:78px;margin:21px 0 14px;gap:4px}.has-chat .start-button .mic-icon{width:25px;height:25px}.has-chat .start-button>span:last-child{font-size:10px}.has-chat .start-orbit{inset:-6px}.has-chat .text-entry{display:none}.voice-active .start-orbit{animation:breathe 2.8s ease-in-out infinite}.voice-active .start-button{background:#306b5c}.voice-speaking .start-orbit{border-color:#8eae91;animation:breathe 1.1s ease-in-out infinite}.conversation{margin:0 auto}.messages{display:flex;flex-direction:column;gap:22px;padding:7px 0 27px}.message{max-width:100%;font-size:14px;line-height:1.95;overflow-wrap:anywhere}.message-label{font-size:9px;color:#889384;margin-bottom:7px;letter-spacing:.04em}.message-text{white-space:pre-wrap}.message.user{align-self:flex-end;max-width:87%;border-radius:16px 16px 4px 16px;padding:11px 16px;background:#e9eee5;font-size:13px}.message.user .message-label{display:none}.message.assistant{padding:1px 3px}.message.note{font-size:11px;color:var(--muted);text-align:center;padding:3px 0}.message.pending .message-text{color:#7c8c7a}.message.error .message-text{color:var(--danger)}.message.analysis{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:13px}.message.analysis .message-label{color:var(--green)}.citation-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.citation-link{font-size:10px;line-height:1.6;border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:#f4f6ef;color:#4c6955;text-decoration:none;max-width:100%;overflow-wrap:anywhere}.citation-link:hover{background:var(--mint)}.message-action{margin-top:9px;display:flex;gap:12px}.message-action button{padding:4px 0;background:none;color:var(--muted);font-size:10px}.bottom-zone{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);background:linear-gradient(0deg,var(--paper) 89%,#f7f7f200);padding:19px 28px max(13px,env(safe-area-inset-bottom));}.composer{display:flex;align-items:flex-end;gap:8px;padding:7px 8px 7px 15px;background:var(--surface);border:1px solid #dce3d5;border-radius:19px;box-shadow:0 5px 20px #24372d05}.composer textarea{border:0;outline:none;resize:none;width:100%;min-height:29px;max-height:150px;background:transparent;padding:6px 0;font-size:14px;line-height:1.7;color:var(--ink);box-shadow:none}.composer textarea:focus{outline:none}.composer textarea::placeholder{color:#a0a79a}.send-button{flex:0 0 36px;width:36px;height:36px;padding:8px;border-radius:50%;background:var(--green);color:#fff}.send-button svg{width:100%;height:100%}.cancel-button{font-size:11px;min-height:36px;padding:5px 9px;background:#f1eee5;color:#786d52;border-radius:10px;white-space:nowrap}.composer-options{display:flex;align-items:center;gap:13px;padding:9px 3px 10px}.context-button,.mode-button{background:transparent;color:#7c8878;font-size:9px;padding:3px 0;white-space:nowrap}.context-button span{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 3px;background:#e9eee3;border-radius:5px;margin-left:3px;font-size:9px}.mode-button{display:flex;align-items:center;gap:4px}.mode-button[aria-pressed=true]{color:var(--green);font-weight:650}.composer-options>span{font-size:8px;color:#9aa293;margin-left:auto;text-align:right}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-top:1px solid #e5e8df;padding-top:11px}.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:7px;background:none;color:#71806f;font-size:10px;min-height:35px}.bottom-nav svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button:hover{color:var(--green)}dialog{color:var(--ink);border:1px solid var(--line);background:var(--surface);padding:0;box-shadow:0 12px 60px #17271a1f}dialog::backdrop{background:#172c255a;backdrop-filter:blur(4px)}.space-drawer{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,760px);max-width:100%;height:min(88svh,900px);max-height:94svh;border-radius:23px 23px 0 0;overflow:hidden;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.drawer-handle{width:35px;height:4px;background:#dbe1d5;margin:10px auto 3px;border-radius:3px}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:13px 25px 16px;border-bottom:1px solid #e7eadf}.drawer-header h2{font-size:20px}.icon-button{display:flex;align-items:center;justify-content:center;font-size:24px;width:35px;height:35px;background:#f0f2e9;border-radius:50%;color:#798673;font-weight:300}.drawer-body{height:calc(100% - 84px);padding:22px 25px 50px;overflow:auto;overscroll-behavior:contain}.drawer-intro,.help{font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:17px}.sheet-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.sheet-tabs{display:flex;gap:7px;margin-bottom:18px}.sheet-tabs button{font-size:11px;min-height:35px;padding:7px 13px;border:1px solid var(--line);background:transparent;border-radius:8px;color:var(--muted)}.sheet-tabs button.active{background:var(--mint);color:var(--green);border-color:#cedbc7}.section{border:1px solid #dde4d5;border-radius:13px;margin-bottom:13px;background:#fffefa;min-width:0}.section>summary{list-style-position:inside;padding:15px 16px;cursor:pointer;font-size:13px;font-weight:600}.section[open]>summary{border-bottom:1px solid #e7ebdf;margin-bottom:0}.section-content{padding:17px 16px 20px}.section-note{font-size:10px;color:#7b8973;line-height:1.8;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 15px}.field{min-width:0}.field.wide{grid-column:1/-1}.field-label{display:block;font-size:12px;font-weight:550;margin:0 0 7px}.field-control,input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],select,textarea.field-control{display:block;width:100%;border:1px solid #d7dfcf;background:#fff;border-radius:9px;padding:9px 11px;min-height:43px;font-size:14px;color:var(--ink);line-height:1.6;outline:none}textarea.field-control{min-height:95px;resize:vertical}input:focus,select:focus,textarea.field-control:focus{border-color:#769576}.field-hint{font-size:10px;color:#8a9581;line-height:1.75;margin-top:5px}.field-options{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px}.share-check{display:flex;align-items:center;gap:5px;font-size:10px;color:#7a8973;cursor:pointer}.share-check input{width:13px;height:13px;accent-color:var(--green);margin:0}.field-extra{margin-top:8px}.field-extra>summary{font-size:9px;color:#919c88;cursor:pointer;list-style-position:inside}.field-extra-content{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.field-extra-content select,.field-extra-content input{font-size:11px;min-height:32px;padding:5px 7px}.field-extra-content select{max-width:190px}.field-extra-content input[type=date]{max-width:155px}.field-extra-content label{font-size:9px;color:#8a9581;display:block;flex:1;min-width:130px}.field-extra-content label input{margin-top:4px}.notice{font-size:11px;color:#60745e;line-height:1.85;background:#edf2e7;padding:13px 15px;border-radius:10px;margin:14px 0}.notice.warning{color:#8b6b42;background:#f5f0e5}.empty-state{border:1px dashed #d3ddc9;border-radius:13px;padding:24px 17px;color:#829076;text-align:center;font-size:12px;line-height:1.9}.record{padding:15px;border:1px solid var(--line);border-radius:11px;margin-bottom:11px;font-size:12px;overflow-wrap:anywhere}.record h3{font-size:13px;margin-bottom:7px}.record p{font-size:11px;color:var(--muted);white-space:pre-wrap;line-height:1.85}.record .record-actions{display:flex;gap:13px;margin-top:9px}.record-actions button{font-size:10px;color:var(--green);background:none;padding:4px 0}.record time{font-size:10px;color:#8a9581}.info-list{margin:14px 0 20px}.info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:12px 0;border-bottom:1px solid #e8ecdf;font-size:11px}.info-row>span:first-child{color:var(--muted);flex:0 0 80px}.info-row>span:last-child{text-align:right;overflow-wrap:anywhere}.settings-section{margin:0 0 25px}.settings-section h3{font-size:14px;margin-bottom:11px}.settings-section .sheet-toolbar .button{font-size:11px}.settings-section .help{margin-top:11px}.compact-dialog{border-radius:20px;width:min(420px,calc(100% - 32px));padding:25px}.compact-dialog .eyebrow{margin-bottom:8px}.compact-dialog h2{font-size:22px;margin-bottom:15px}.compact-dialog>p:not(.eyebrow),.compact-dialog form>p{font-size:12px;line-height:1.9}.compact-dialog #voice-consent-description{margin-bottom:13px}.compact-dialog .help{font-size:11px}.compact-dialog .field-label{margin-top:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.error-message{font-size:11px;color:var(--danger);margin-top:10px;white-space:pre-wrap}.reminder-state{display:inline-block;font-size:9px;color:#64805c;background:#edf2e7;padding:2px 7px;border-radius:5px;margin-left:8px}.toast{position:fixed;z-index:100;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,10px);width:max-content;max-width:calc(100% - 30px);padding:12px 17px;background:#233d32;color:#fff;border-radius:12px;font-size:11px;line-height:1.8;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 5px 25px #15291c20}.toast.visible{opacity:1;transform:translate(-50%,0)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:fixed;top:-80px;left:15px;background:var(--green);color:#fff;padding:10px;z-index:200;border-radius:0 0 8px 8px}.skip-link:focus{top:0}@keyframes breathe{0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.07);opacity:1}}
@media(min-width:850px){.app-header{height:105px}.hero{padding-top:65px}.start-button{width:170px;height:170px}.bottom-zone{padding-bottom:20px}.space-drawer{inset:50% auto auto 50%;transform:translate(-50%,-50%);border-radius:23px;height:83svh;border-bottom:1px solid var(--line)}.drawer-handle{display:none}.drawer-header{padding-top:22px}.drawer-body{height:calc(100% - 78px)}}
@media(max-width:520px){.app{padding:0 21px 205px}.app-header{height:73px}.hero{padding:45px 0 25px}.hero h1{font-size:36px}.hero-caption{font-size:12px}.hero .eyebrow{font-size:9px}.start-button{width:145px;height:145px;margin-top:35px}.voice-status{font-size:10px;max-width:280px}.text-entry{margin-top:19px}.bottom-zone{padding-left:17px;padding-right:17px}.composer textarea{font-size:16px;min-height:30px}.composer-options>span{font-size:8px;max-width:130px}.composer-options{gap:11px}.bottom-nav{padding-top:10px}.bottom-nav button{flex-direction:column;gap:3px;min-height:42px;font-size:9px}.bottom-nav svg{width:18px;height:18px}.message{font-size:14px}.message.user{font-size:13px}.has-chat .hero{padding-top:8px}.has-chat .hero h1{font-size:20px}.has-chat .start-button{width:70px;height:70px;margin-top:17px}.has-chat .start-button .mic-icon{width:22px;height:22px}.has-chat .start-button>span:last-child{font-size:9px}.has-chat .start-orbit{inset:-5px}.drawer-header{padding-left:21px;padding-right:17px}.drawer-body{padding:20px 19px 45px}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.field-control,input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],select,textarea.field-control{font-size:16px;min-height:45px}.field-extra-content input,.field-extra-content select{font-size:12px;min-height:34px}.section-content{padding:17px 14px 19px}.compact-dialog{padding:23px}.compact-dialog h2{font-size:21px}.auth-banner{font-size:11px}.auth-banner .button{font-size:11px}.settings-section .sheet-toolbar{gap:7px}.settings-section .sheet-toolbar .button{flex:1;min-width:110px}.hero.voice-unavailable .start-button{background:#647e6b}.info-row{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.auth-screen{min-height:100svh;max-width:760px;margin:auto;padding:34px 28px 60px}.auth-card{max-width:390px;margin:9svh auto 0}.auth-card h1{font-size:29px;margin-bottom:18px}.auth-card .help{font-size:13px;margin-bottom:27px}.auth-card .field-label{margin-top:18px}.auth-card input[type=email]{display:block;width:100%;border:1px solid #d7dfcf;background:#fff;border-radius:9px;padding:9px 11px;min-height:45px;font-size:16px;color:var(--ink)}.auth-card .button[type=submit]{width:100%;margin-top:23px;min-height:47px}.auth-footnote{font-size:11px;color:var(--muted);line-height:1.9;margin-top:23px}.header-actions{display:flex;align-items:center;gap:20px}.header-actions .text-button{font-size:11px}.history-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.history-list{display:flex;flex-direction:column;gap:10px}.history-card{display:flex;flex-direction:column;gap:7px;padding:15px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);overflow-wrap:anywhere}.history-card.active{border-color:#92b098;background:#eff3e9}.history-card strong{font-size:13px;font-weight:550}.history-card time{font-size:10px;color:var(--muted)}.conversation-title{font-size:12px;color:var(--muted);margin-bottom:16px}.memory-card .memory-source{font-size:10px;color:var(--muted);margin-top:8px}.auth-pending .auth-card{opacity:.6;pointer-events:none}@media(max-width:520px){.auth-screen{padding:26px 22px 45px}.auth-card{margin-top:8svh}.auth-card h1{font-size:27px}.header-actions{gap:13px}}
.history-row{display:flex;align-items:center;gap:10px}.history-row>.history-card{flex:1;min-width:0}.history-row>.text-button{flex-shrink:0;color:var(--danger)}
.birth-consent{align-items:flex-start;font-size:12px;line-height:1.9;margin-top:20px}.birth-consent input{flex-shrink:0;width:16px;height:16px;margin-top:4px}.birth-history-title{font-size:14px;margin:26px 0 16px}.birth-report .birth-report-text{color:var(--ink);font-size:13px;line-height:1.95}.birth-pillars{color:var(--green)!important;font-size:12px!important;border:1px solid var(--line);background:var(--mint);border-radius:8px;padding:10px;margin:12px 0}.section-content input[type=time]{display:block;width:100%;border:1px solid #d7dfcf;background:#fff;border-radius:9px;padding:9px 11px;min-height:43px;font-size:16px;color:var(--ink)}
.composer-options{flex-wrap:wrap;row-gap:4px}.memory-toggle{font-size:9px;gap:4px}.memory-toggle>span{font-size:8px;padding:1px 4px;border-radius:4px;background:var(--mint);color:var(--green)}.memory-toggle[aria-pressed=false]>span{background:#f1ede4;color:#8b7554}@media(max-width:520px){.composer-options>span{max-width:100%;margin-left:auto}.app{padding-bottom:225px}}

/* Current voice captions stay beside the microphone controls; history remains below. */
.voice-caption{width:min(100%,480px);max-width:calc(100vw - 34px - env(safe-area-inset-left) - env(safe-area-inset-right));margin:8px 0 0;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left;box-shadow:0 4px 16px #205d5308}
.voice-caption[hidden]{display:none}
.voice-caption-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}
.voice-caption-heading>span:first-child{font-weight:650;color:var(--green)}
.voice-caption-user{margin:5px 0 0;font-size:15px;line-height:1.55;max-height:4.65em;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;white-space:pre-wrap;overflow-wrap:anywhere}
.voice-caption-state{display:flex;gap:8px;margin:8px 0 0;padding-top:7px;border-top:1px solid var(--line);font-size:10px;line-height:1.6;color:var(--muted)}
.voice-caption-state>span:first-child{flex:none;font-weight:600}.voice-caption-state>span:last-child{max-height:3.2em;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.voice-active .voice-controls{margin-top:10px}
@media(max-height:700px){.voice-active .hero{padding-top:6px;padding-bottom:12px}.voice-active .start-button{margin-top:12px;margin-bottom:9px}.voice-caption{padding:8px 11px}.voice-caption-user{font-size:14px;max-height:3.1em}}
