/* Final, single owner of mobile shell geometry. No viewport-fixed navigation or negative spacers. */
/* Hide native tracks across the app, including input, dialogs and nested tables.
   Overflow remains owned by each surface so touch, wheel and keyboard still work. */
html,body,body *{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,body *::-webkit-scrollbar{display:none;width:0;height:0}
.mobile-toolbar,.mobile-home{display:none}
.composer-entry{display:flex;align-items:center;gap:10px}
#assistant-dock .composer-entry textarea{flex:1;min-width:0;width:0;resize:none;margin:0;min-height:44px;height:max(44px,calc(1.6rem + 18px));line-height:1.6;padding:9px 2px;font-size:max(1rem,16px)}
.composer-entry .media-btn{flex-shrink:0}
.composer-entry .input-tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 10px;background:transparent;border:0;color:#305e48;border-radius:12px}
.composer-entry .camera-entry,.composer-entry .more-entry{display:none}
.composer-entry .upload-entry{width:44px;height:44px;padding:10px}
.input-icon{position:relative;display:inline-block;flex:0 0 24px;width:24px;height:24px;color:inherit;box-sizing:border-box}
.voice-glyph{border:0}.voice-glyph:before{content:"";position:absolute;left:2px;top:10px;width:4px;height:4px;border-radius:50%;background:currentColor}.voice-glyph i,.voice-glyph:after{content:"";position:absolute;border-right:2px solid currentColor;border-radius:50%;background:none}.voice-glyph i{left:5px;top:6px;width:8px;height:12px}.voice-glyph:after{left:7px;top:1px;width:13px;height:22px}
.stop-glyph:before{content:"";position:absolute;inset:5px;border-radius:3px;background:currentColor}
.camera-glyph:before{content:"";position:absolute;inset:6px 1px 2px;border:1.8px solid currentColor;border-radius:5px}.camera-glyph:after{content:"";position:absolute;width:7px;height:7px;left:8px;top:10px;border:1.8px solid currentColor;border-radius:50%;box-sizing:border-box}.camera-glyph{background:linear-gradient(currentColor,currentColor) center 3px/9px 2px no-repeat}
.plus-glyph{border:0}.plus-glyph:before,.plus-glyph:after{content:"";position:absolute;left:5px;right:5px;top:10px;height:1.8px;border-radius:2px;background:currentColor}.plus-glyph:after{transform:rotate(90deg)}
.file-glyph{border:1.8px solid currentColor;border-radius:4px;width:18px;flex-basis:18px;height:23px;margin:0 3px}.file-glyph:before,.file-glyph:after{content:"";position:absolute;left:4px;right:4px;height:1.8px;background:currentColor;top:10px}.file-glyph:after{top:15px}
.album-glyph{border:1.8px solid currentColor;border-radius:4px;height:21px}.album-glyph:before{content:"";position:absolute;width:4px;height:4px;top:4px;right:4px;border-radius:50%;background:currentColor}.album-glyph:after{content:"";position:absolute;width:10px;height:10px;left:4px;bottom:1px;border-left:1.8px solid currentColor;border-top:1.8px solid currentColor;transform:rotate(45deg)}
.input-tool:focus-visible{outline:3px solid #d79e24;outline-offset:1px}.input-tool:hover{background:#edf7ee}
.input-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.input-options button{display:flex;align-items:center;flex-direction:column;gap:12px;min-height:104px;padding:12px 5px;border:1px solid #e0e9df;border-radius:18px;background:#f7faf5;font:inherit;color:#315e43}.option-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf3e6}.local-file-icon{display:grid;place-items:center;width:44px;height:48px;flex-shrink:0;background:#e4eee7;border-radius:8px;color:#38654b}.attachment-name{overflow-wrap:anywhere}
.composer-entry .send-btn{min-width:44px;width:44px;min-height:44px;padding:8px;font-size:1.5rem;line-height:1}
.chat-home{border:1px solid #d7e6db;border-radius:12px;color:#136b4d;background:#fff;min-height:44px;padding:8px 10px;font-size:1rem;flex-shrink:0}
.chat-title{gap:12px}
/* The desktop sidebar and mobile session dialog own conversation-list scrolling. */
.sidebar,dialog.session-dialog{scrollbar-width:none;-ms-overflow-style:none}
.sidebar::-webkit-scrollbar,dialog.session-dialog::-webkit-scrollbar{display:none;width:0;height:0}
.session-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.session-toolbar button{min-height:46px;flex:1}
.session-person{display:block;border:1px solid #dce9df;background:#f3f9f4;border-radius:12px;width:100%;min-height:44px;padding:10px 14px;text-align:left;color:#24553d}
.session-section{font-size:1rem;margin:24px 0 10px;color:#617767;font-weight:500}
.session-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px;border:1px solid #e1eae2;border-radius:14px;background:#fff;text-align:left;margin-bottom:10px}
.session-row>span:first-child{min-width:0;flex:1}.session-row strong{display:block;font-size:1rem;font-weight:500;line-height:1.7;overflow-wrap:anywhere}.session-row small{display:block;margin-top:5px;font-size:1rem;color:#687b6d;line-height:1.6}
.session-row>span:last-child{font-size:1rem;white-space:nowrap;color:#0f7650}.current-session{border-color:#9bd8b5;background:#f3fcf5}.session-empty{font-size:1rem;color:#677b6c;line-height:1.8}
@media(max-width:720px){
  /* Header -> flexible scroll area and composer -> navigation: all are real flex siblings. */
  .workspace{padding-bottom:0!important;margin-left:0;width:100%;background:linear-gradient(155deg,#eef8ec 0%,#f7fbf4 45%,#f7faf6 100%)}
  .topbar{display:none}.mobile-toolbar{display:block;padding:8px 14px 6px;background:#f5faf3;border-bottom:1px solid #dfebdf}
  .mobile-toolbar-main{display:flex;align-items:center;gap:8px;min-height:44px}.mobile-toolbar button{font:inherit;cursor:pointer}
  .mobile-menu{width:44px;min-height:44px;border:0;border-radius:12px;font-size:1.7rem!important;color:#154e35;background:transparent;flex-shrink:0}
  .mobile-wordmark{padding:0;background:transparent;border:0;font-size:1.5rem!important;font-weight:700!important;color:#174830;letter-spacing:1px;white-space:nowrap}.mobile-wordmark span{color:#16b979}
  .mobile-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.mobile-toolbar .text-size{padding:6px;min-width:44px;min-height:44px;border:1px solid #d5e7d9;border-radius:13px;background:#fff;color:#1b593e}
  .mobile-new-chat{display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;padding:6px 10px;border-radius:13px;border:1px solid #b5e8cb;color:#074b30;background:#d9f8e6;font-size:1.1rem!important;white-space:nowrap}
  .mobile-new-chat span{font-size:1rem}.mobile-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 2px 0;min-height:28px;font-size:1rem;line-height:1.5}
  .mobile-context button{background:none;border:0;padding:4px 0;color:#52745e;text-align:left;min-height:32px}.mobile-context>button{font-weight:600}.mobile-context #mobile-model{min-width:0;text-align:right}.mobile-context #mobile-model button{color:#52745e}
  .context-strip{font-size:1rem;padding:6px 14px;line-height:1.5}
  .content-layout,body.assistant-mode .content-layout{display:flex;flex-direction:column;padding:0 12px;gap:0;max-width:none}
  .assistant-column{flex:1;min-height:0;width:100%;height:auto!important}
  #main,body.assistant-mode #main{padding:12px 2px 18px;scroll-padding-top:12px}
  .right-panel,body.assistant-mode .right-panel{display:none}
  .desktop-home{display:none}.mobile-home{display:block;padding:2px 0 0}
  .mobile-daily{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid #d9e9d9;border-radius:20px;background:#ffffffed;box-shadow:0 5px 22px #2e724607;text-align:left;color:#23553b}
  .mobile-daily>span:nth-child(2){flex:1;min-width:0}.mobile-daily strong{display:block;font-size:1rem;line-height:1.7}.mobile-daily small{display:block;font-size:1rem;line-height:1.6;color:#677e6b;margin-top:3px}.daily-symbol{display:flex;align-items:center;justify-content:center;width:37px;height:40px;background:#dff6de;border-radius:12px;font-size:1.5rem;color:#238749;flex-shrink:0}
  .mobile-welcome{position:relative;margin-top:42px;padding:34px 18px 20px;border-radius:28px;border:1px solid #d9e9d6;background:linear-gradient(150deg,#eef8e9d9,#ffffffa8)}
  .welcome-emblem{position:absolute;top:-27px;right:20px;width:64px;height:64px;display:grid;place-items:center;border:5px solid #f5fbf1;border-radius:22px;background:linear-gradient(130deg,#c9edbd,#def6db);color:#276d41;font-weight:600;font-size:1.8rem;transform:rotate(7deg);box-shadow:0 8px 18px #3a814c12}.welcome-emblem span{position:absolute;top:-9px;right:-7px;font-size:1rem;color:#398455}
  .welcome-eyebrow{font-size:1rem;color:#3c7652;letter-spacing:1px}.mobile-welcome h1{font-size:1.8rem;font-weight:600;line-height:1.5;color:#214b31;margin:8px 0 12px;letter-spacing:.2px}.mobile-welcome>p{font-size:1rem;line-height:1.9;color:#5b745f;margin:0 0 20px}
  .mobile-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-services button{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce7da;border-radius:16px;padding:13px 10px;min-height:76px;text-align:left;min-width:0}
  .service-symbol{font-size:1.35rem;color:#198b5c;flex-shrink:0}.mobile-services button:nth-child(2) .service-symbol{color:#448fa2}.mobile-services button:nth-child(3) .service-symbol{color:#bd8946}.mobile-services button:nth-child(4) .service-symbol{color:#8a72ae}.mobile-services button>span:nth-child(2){min-width:0;flex:1}.mobile-services strong{display:block;font-size:1rem;font-weight:500;line-height:1.5;color:#2d5138}.mobile-services small{display:block;font-size:1rem;line-height:1.5;color:#6f8272;margin-top:3px}.service-arrow{font-size:1rem;color:#8da18f}
  .mobile-start{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px 0 2px}.mobile-start button{background:transparent;border:0;border-radius:10px;padding:8px;color:#327349;min-height:44px;font-size:1rem}.mobile-boundary{text-align:center;font-size:1rem;color:#617b66;line-height:1.6;margin:4px 0 0}
  #assistant-dock,body.assistant-mode #assistant-dock{padding:8px 0;background:#f7faf6;border:0}
  #assistant-dock .model-status,#assistant-dock .suggestions,#assistant-dock .composer-note{display:none}
  #assistant-dock .composer{border:1px solid #cfe1ce;background:#fff;padding:5px 7px;border-radius:24px;box-shadow:0 5px 18px #2363380a}
  .composer-entry{gap:0;min-height:44px}.composer-entry .input-tool{padding:8px;min-width:44px;width:44px;min-height:44px;border:0;border-radius:50%;background:none;color:#375a46;font-size:1rem;line-height:1.3;white-space:nowrap}
  .composer-entry .upload-entry,.input-button-label{display:none}.composer-entry .camera-entry,.composer-entry .more-entry{display:inline-flex}
  body:not(.composer-has-text):not(.composer-busy) .composer-entry .send-btn{display:none}body.composer-has-text .composer-entry .camera-entry,body.composer-busy .composer-entry .camera-entry,body.composer-busy .composer-entry .more-entry{display:none}
  #assistant-dock .composer-entry textarea{padding:10px 2px;min-height:44px;height:max(44px,calc(1.5rem + 20px));max-height:96px;font-size:max(1rem,16px);line-height:1.5}
  .composer-entry .send-btn{width:44px;min-width:44px;min-height:44px;height:44px;border-radius:50%;font-size:1.4rem}.composer-entry .cancel-send{color:#9c3444;white-space:normal}
  #assistant-dock .photo-preview{margin:0 2px 5px;padding:7px;max-height:20dvh;overflow:auto}#assistant-dock .photo-preview img{width:40px;height:42px}#assistant-dock .photo-preview p{line-height:1.5}#assistant-dock .voice-status{margin:0 2px 5px;padding:7px;max-height:20dvh;overflow:auto}
  .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:static;inset:auto;height:auto;min-height:0;flex:0 0 auto;z-index:auto;gap:0;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #dfeade;background:#fbfdf9;backdrop-filter:none}
  .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:54px;gap:3px;padding:5px 1px;border-radius:13px;font-size:1rem;line-height:1.4;color:#637d68}.mobile-nav button>span{font-size:1.25rem;line-height:1.1}.mobile-nav button.active{color:#136e3d;background:#eaf6e7;font-weight:600}
  .mobile-nav button:focus-visible,.mobile-toolbar button:focus-visible{outline:3px solid #dfa72e;outline-offset:-3px}
  body.assistant-mode .chat-title{position:static;padding:6px 0 12px;background:none;gap:10px;margin-bottom:0;align-items:center}.chat-title h1{font-size:1.2rem;line-height:1.6}.chat-title p{font-size:1rem;line-height:1.6}.chat-home{padding:7px 9px;min-height:44px}
  .chat-thread{margin-top:12px!important}.chat-bubble{max-width:calc(100% - 36px);min-width:0;overflow-wrap:anywhere}.chat-message.user .chat-bubble{max-width:90%}
  dialog.session-dialog{inset:0 auto 0 0;margin:0;width:min(92vw,440px);max-width:none;max-height:100%;height:100%;border-radius:0 24px 24px 0}.session-dialog .modal-head{position:sticky;top:0;background:#fff;z-index:1}
  dialog.input-menu-dialog{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;border-radius:26px 26px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  #toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:1rem}
  body.large-mode .mobile-services{grid-template-columns:1fr}body.large-mode .mobile-welcome h1{font-size:1.55rem}body.large-mode .service-arrow{margin-left:auto}body.large-mode .mobile-toolbar{padding-left:8px;padding-right:8px}body.large-mode .mobile-toolbar-main{gap:4px}body.large-mode .mobile-toolbar-actions{gap:4px}body.large-mode .mobile-new-chat{padding:6px}
}
@media(max-width:720px) and (max-height:500px){.mobile-context{display:none}.mobile-toolbar{padding-top:3px;padding-bottom:3px}.mobile-nav button{min-height:44px;flex-direction:row;gap:5px}.mobile-nav{padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}}

/* Product system: shared visual language; distinct desktop, tablet and touch layouts. */
:root{--green:#087f5b;--deep:#123d30;--ink:#213e32;--muted:#5c7166;--line:#dfebe3;--bg:#f7faf8;--shadow:0 8px 28px #174d3010}
body{background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}
button,a,input,textarea,select{touch-action:manipulation}button{transition:background-color .16s,border-color .16s,box-shadow .16s}
button:focus-visible,a:focus-visible{outline:3px solid #c28a12;outline-offset:3px}
.ui-icon{display:inline-block;width:24px;height:24px;flex:0 0 auto;vertical-align:middle;pointer-events:none}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.input-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border:0;border-radius:0;margin:0;background:none}
.input-icon::before,.input-icon::after{display:none!important}.input-icon .ui-icon{width:24px;height:24px}
.primary-btn,.secondary-btn{border-radius:12px;min-height:44px;font-weight:500;line-height:1.6}.secondary-btn{border-color:#cddfd3;color:#236247;background:#fff}.secondary-btn:hover{background:#edf7f0;border-color:#9bcbad}
.data-note,.privacy-note,.muted{color:#5c7166}.card{border-color:var(--line);box-shadow:0 3px 16px #1b533006}
.page-heading p,.task-content p,.metric-label,.metric-time,.record-row p,.setting-row p{color:#5c7166;line-height:1.75}
.page-heading h1{font-weight:600;letter-spacing:-.4px}.tabs button{min-height:44px}.tabs{gap:4px;overflow-x:auto;white-space:nowrap}
.setting-row{min-height:80px}.metric-value{color:#174b35;font-variant-numeric:tabular-nums}.notification p{color:#5c7166}
.action-icon{width:42px;height:42px;border-radius:13px}.action-icon .ui-icon{width:23px;height:23px}.task-card .action-icon{margin:0;flex-shrink:0}
.mobile-welcome h1 em{font-style:normal;color:#0b8058}.welcome-emblem .ui-icon{width:32px;height:32px}
.resume-conversation{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:15px 16px;margin-top:18px;border:1px solid #dce9df;border-radius:17px;background:#fff;color:#2c5940;min-width:0}
.resume-icon{display:grid;place-items:center;background:#eff6f0;width:40px;height:40px;border-radius:12px;flex-shrink:0}.resume-icon .ui-icon{width:21px;height:21px}
.resume-conversation>span:nth-child(2){min-width:0;flex:1}.resume-conversation strong{font-size:1rem;font-weight:600;display:block}.resume-conversation small{display:block;font-size:1rem;color:#62776a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}
.resume-conversation>.ui-icon{width:19px;color:#4e8b65}.home-starter{color:#62796a;font-size:1rem;text-align:center;margin:22px 0 8px;line-height:1.8}.home-starter button{font-size:1rem;color:#08764f;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:3px}
.mobile-boundary{color:#667c6d;font-size:1rem;text-align:center;margin:14px 0;line-height:1.7}
.question-recommendations{margin:24px 0 12px;min-width:0;text-align:left}
.question-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.question-eyebrow{display:block;color:#617a69;font-size:1rem;line-height:1.6;margin-bottom:3px}
.question-heading h2{margin:0;font-size:1.2rem;font-weight:600;line-height:1.6;color:#2d573e}
.question-hint{font-size:1rem;color:#617a69;line-height:1.6}
.question-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0}
.question-list li{min-width:0;margin:0}.question-list button{display:flex;align-items:center;gap:10px;min-width:0;width:100%;min-height:82px;padding:14px 12px;border:1px solid #dce9df;border-radius:15px;background:#fff;color:#2b5940;text-align:left;font:inherit}
.question-list button:hover{background:#f1f9f3;border-color:#9ccbad}.question-list button:active{background:#e3f3e8}.question-list button:focus-visible{outline:3px solid #c28a12;outline-offset:2px}
.question-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:11px;background:#edf6ef;color:#34885c}.question-icon .ui-icon{width:20px;height:20px}
.question-copy{flex:1;min-width:0}.question-copy small{display:block;font-size:1rem;line-height:1.6;color:#617a69;margin-bottom:2px}.question-copy strong{display:block;font-size:1rem;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.question-send.ui-icon{flex-shrink:0;width:18px;height:18px;color:#44855e}
@media(max-width:720px){.question-recommendations{margin-top:20px}.question-list{grid-template-columns:minmax(0,1fr);gap:9px}.question-list button{min-height:76px;padding:12px 13px}.question-heading{gap:6px 12px}.question-hint{margin-left:auto}}
@media(min-width:721px){body.large-mode .question-list{grid-template-columns:minmax(0,1fr)}}
.service-symbol{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:#e2f5e9;color:#168056}.service-symbol .ui-icon{width:23px;height:23px}
.mobile-services button:nth-child(2) .service-symbol{background:#e4f2f8;color:#337f99}.mobile-services button:nth-child(3) .service-symbol{background:#fff2dc;color:#9b6d1b}.mobile-services button:nth-child(4) .service-symbol{background:#eeebfa;color:#7c62a9}
.mobile-services button:hover{border-color:#a0cdb0;background:#fbfefb;box-shadow:0 5px 16px #2879460b}.mobile-services .service-arrow{width:16px;height:16px;color:#81998a}
.daily-symbol .ui-icon{width:23px;height:23px}.mobile-daily>.ui-icon{width:20px;height:20px;flex-shrink:0;color:#458a61}
#assistant-dock .suggestions{display:none}#assistant-dock .composer{border:1px solid #cbded1;border-radius:22px;background:#fff;box-shadow:0 5px 24px #174d3010;padding:9px}
#assistant-dock .composer:focus-within{border-color:#62b88a;box-shadow:0 0 0 3px #c9efdc70,0 5px 24px #174d3010}
.composer-entry{align-items:flex-end;gap:4px}.composer-entry .input-tool{color:#466756;min-width:44px;min-height:44px;display:inline-flex}.composer-entry .input-tool:hover{background:#edf7f0}
.composer-entry .camera-entry,.composer-entry .more-entry{display:none}
#assistant-dock .composer-entry textarea{height:auto;min-height:44px;max-height:144px;line-height:1.6;padding:10px 6px;font-size:max(1rem,16px);outline:none;box-shadow:none;scrollbar-width:none}
#assistant-dock textarea::placeholder{color:#74887a}.composer-entry .send-btn{border-radius:14px;box-shadow:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}.send-btn:disabled{background:#edf2ee;background-image:none;color:#8ca294;opacity:1;cursor:default}.send-btn .ui-icon{width:22px;height:22px}
.composer-entry .cancel-send{min-width:44px;min-height:44px;color:#a33343;background:#fff2f3;border-radius:12px;padding:8px}
#assistant-dock .model-status{gap:12px;margin:0 2px 8px;font-size:1rem;color:#5a7162;line-height:1.6}#assistant-dock .model-status>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
#assistant-dock .composer-note{justify-content:space-between;gap:12px;color:#63786a;margin:9px 3px 0;line-height:1.5;flex-wrap:wrap}#assistant-dock .composer-note>span{display:inline-flex;align-items:center;gap:5px}#assistant-dock .composer-note .ui-icon{width:16px;height:16px}.input-count{font-variant-numeric:tabular-nums;margin-left:auto}
.conversation-jump{position:absolute;right:8px;top:-56px;display:flex;gap:8px;z-index:6;pointer-events:none}
.conversation-jump button{position:static;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #d5e5d9;border-radius:50%;background:#fff;color:#286847;box-shadow:0 5px 20px #1c68461a;pointer-events:auto}
.conversation-jump button[hidden]{display:none}.conversation-jump .ui-icon{width:22px;height:22px}.conversation-jump button:hover{background:#edf8f0;border-color:#a5cdb2}
.conversation-divider{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #dfeae1;padding-top:22px;margin-top:24px;color:#69816f}
.conversation-divider h2{font-size:1rem;font-weight:500;color:#446c52;margin:0}.conversation-divider>span{font-size:1rem;line-height:1.7}
body.assistant-mode #main{padding-bottom:72px;scroll-padding-bottom:72px}
.chat-home,.chat-session-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid #dce8df;border-radius:12px;background:#fff;color:#426851;font-size:1rem;flex-shrink:0}.chat-home .ui-icon,.chat-session-button .ui-icon{width:19px;height:19px}.chat-session-button{margin-left:auto}
.chat-title>div{min-width:0}.chat-title h1{font-size:1.25rem;font-weight:600;color:#214d35}.chat-title p{font-size:1rem;color:#637c6b;line-height:1.5;margin-top:3px}
.chat-thread{gap:28px;padding-bottom:12px}.chat-message{gap:12px}.chat-avatar{width:34px;height:34px;border-radius:12px;background:#e0f4e8;color:#188159}.chat-avatar .ui-icon{width:20px;height:20px}
.chat-message:not(.user) .chat-bubble{border:1px solid var(--reply-line,#cde5d7);background:var(--reply-bg,#edf8f1);padding:16px 18px;max-width:calc(100% - 46px);border-radius:6px 20px 20px 20px;width:100%;color:#294637;line-height:1.95;box-shadow:0 3px 12px #244e3610}
.chat-message.user .chat-bubble{background:#e2f3e9;border:1px solid #d4eadd;border-radius:18px 18px 5px 18px;padding:12px 16px;max-width:84%;white-space:pre-wrap}
.chat-label{font-size:1rem;color:#537460;margin-bottom:8px}.chat-message .agent-cards{margin-top:14px}.agent-card{background:#fff;border-color:#d7e7dc;box-shadow:0 4px 16px #19543506;border-radius:18px}.agent-card-type{color:#226b48}.agent-card-scope,.agent-card>p,.agent-card dt{color:#5b7564}.agent-card h3{font-weight:600;color:#214d34}.agent-card dl>div{border-color:#e6eee7}.agent-card .primary-btn{width:auto;min-width:140px;padding:10px 16px}
.reply-actions button{min-height:44px;border-radius:10px;color:#246d49;background:#fff}
.conversation-empty{text-align:center;padding:clamp(32px,7vh,80px) 12px 26px}.empty-chat-icon{display:grid;place-items:center;margin:0 auto 22px;width:64px;height:64px;border-radius:21px;background:#e3f5e9;color:#16845a}.empty-chat-icon .ui-icon{width:32px;height:32px}.conversation-empty h2{font-size:1.65rem;color:#2c533b;font-weight:600}.conversation-empty p{color:#647c69;line-height:1.9;margin-top:12px}.conversation-empty small{font-size:1rem;color:#6a806e;line-height:1.7;display:block;margin-top:18px}
.empty-prompts{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:22px}.empty-prompts button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 14px;border:1px solid #d7e5da;border-radius:12px;background:white;color:#34734c;font-size:1rem}.empty-prompts .ui-icon{width:20px;height:20px}
.pending-icon{animation:request-wait 2.5s linear infinite}@keyframes request-wait{to{transform:rotate(360deg)}}
.session-row:focus-visible,.input-options button:focus-visible{outline-offset:-3px}.session-row:hover{border-color:#93c5a4;background:#f5fbf5}.session-section,.session-row small,.session-empty{color:#5e7766}.session-row>span:last-child{color:#216f46}
.modal-head p,.modal-body>p,.font-scale,.font-preview{color:#506d5a}.close-btn{min-width:44px;min-height:44px}.input-options button{font-size:1rem}.input-options small{font-size:1rem}.input-options button:hover{background:#eaf6ec;border-color:#a6cfb0}
@media(min-width:721px){
  .sidebar{width:232px;padding:24px 16px 18px;overflow-y:auto;scrollbar-width:none;background:#fff;border-right:1px solid #e2ebe4}.workspace{margin-left:232px;width:calc(100% - 232px)}
  .brand{gap:10px;margin:0 10px 28px;font-size:1.9rem;letter-spacing:0}.brand-mark{width:42px;height:44px;border-radius:14px;background:#119566;box-shadow:0 5px 14px #11956619;font-size:1.6rem}.brand small{color:#637d6c;letter-spacing:.5px;font-size:1rem}
  .new-chat{justify-content:flex-start;padding:10px 14px;border-radius:13px;gap:10px;min-height:48px;box-shadow:none}.new-chat>span.new-chat-label{font-size:1rem;font-weight:600}.new-chat .ui-icon{width:22px;height:22px}.main-nav{margin:22px 0 30px;gap:6px}
  .nav-item{padding:9px 14px;min-height:48px;color:#58705f;border-radius:12px;gap:12px}.nav-item:hover{background:#f0f7f1}.nav-item.active{background:#e7f5ec;color:#0c7e52}.nav-icon{width:23px;display:flex;align-items:center}.nav-icon .ui-icon{width:22px;height:22px}.nav-ai{border:0;background:#c9edda;color:#1f724a;border-radius:5px}.nav-count{background:#edf4ee;color:#5a7863}
  .sidebar-section{margin:0 8px 10px;color:#647e6a;letter-spacing:0}.sidebar-section button{min-width:44px;min-height:44px;color:#547960}.sidebar-section .ui-icon{width:19px;height:19px}
  .recent-sessions{display:grid;gap:4px;min-height:90px}.history-item{padding:10px 12px;min-height:44px;gap:10px;min-width:0;color:#56725f;border-radius:10px}.history-item:hover{background:#f1f7f1}.history-item>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.history-item .ui-icon{width:17px;height:17px;color:#6a9679}.history-empty{font-size:1rem;line-height:1.9;padding:8px 12px;color:#708975}.current-history{background:#f1f8f2}
  .sidebar-bottom{padding-top:24px}.sidebar-help{display:flex;align-items:center;gap:10px;color:#58745f;min-height:44px;padding:10px 12px;font-size:1rem}.sidebar-help .ui-icon{width:20px;height:20px}.sidebar-disclaimer{padding-top:12px;color:#667c6d;font-size:1rem}
  .topbar{height:auto;min-height:72px;padding:14px 30px;background:#ffffffc9;border-bottom:1px solid #e1ebe4;gap:16px}.topbar-actions{gap:16px;flex-wrap:wrap;justify-content:flex-end}.breadcrumb{color:#667d6e;gap:12px;flex-wrap:wrap}.desktop-label{color:#325c41;font-weight:600}.person-switch{color:#3a6047}.demo-label{color:#56745d;border-color:#d9e6dc;background:#f5faf6}.text-size{color:#4b7159}.text-size span{color:#56765f}
  .content-layout,body.assistant-mode .content-layout{max-width:1530px;grid-template-columns:minmax(0,1fr) 280px;padding:22px 28px 0;gap:28px;display:grid}
  .assistant-column{max-width:840px;width:100%;margin:0 auto}#main{padding:0 5px 22px}.desktop-home{padding:4px 2px 8px}.mobile-home{display:none}
  .desktop-home .mobile-daily{display:flex;align-items:center;gap:12px;border:1px solid #d9e9de;background:#fff;border-radius:18px;padding:14px 16px;width:100%;text-align:left;color:#315e41}.desktop-home .mobile-daily>span:nth-child(2){flex:1;min-width:0}.desktop-home .mobile-daily strong,.desktop-home .mobile-daily small{display:block;font-size:1rem;line-height:1.7}.desktop-home .mobile-daily small{color:#647c6b}.desktop-home .daily-symbol{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#e6f5e9;color:#328851}
  .desktop-home .mobile-welcome{position:relative;border:0;background:none;margin:0;padding:32px 0 8px}.desktop-home .welcome-emblem{position:absolute;right:15px;top:40px;transform:none;border:1px solid #cde8d7;border-radius:21px;width:66px;height:66px;display:grid;place-items:center;background:#e0f4e7;color:#208557;box-shadow:0 9px 24px #21734a0a}.desktop-home .welcome-eyebrow{font-size:1rem;display:block;color:#5e7a66;line-height:1.8;margin:0 0 8px}.desktop-home h1{font-size:2.6rem;line-height:1.45;color:#254b35;font-weight:600;letter-spacing:-1px;margin:0}.desktop-home .mobile-welcome>p{font-size:1.1rem;line-height:1.9;color:#5d7866;margin:16px 0 24px}
  .desktop-home .mobile-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.desktop-home .mobile-services button{display:flex;align-items:center;gap:12px;padding:18px 14px;min-height:94px;border:1px solid #dce9df;border-radius:17px;background:#fff;text-align:left;min-width:0}.desktop-home .mobile-services button>span:nth-child(2){min-width:0;flex:1}.desktop-home .mobile-services strong,.desktop-home .mobile-services small{display:block;font-size:1rem;line-height:1.65}.desktop-home .mobile-services strong{color:#31543c;font-weight:600}.desktop-home .mobile-services small{color:#627d69;margin-top:2px}
  .right-panel{display:grid;gap:16px;align-content:start}.right-panel .card{padding:20px}.right-panel .section-heading{gap:8px}.right-panel .section-heading h2{font-size:1rem;font-weight:600;color:#355b40}.right-panel .section-heading>span,.day-sub,.task-body small{color:#637d6a}.day-sub{line-height:1.7}.task-body{min-width:0}.task-body strong{color:#3e6048;line-height:1.7}.task-action{min-height:44px;color:#237849;font-size:1rem}.task-line{gap:9px;padding:14px 0}.task-check{width:20px;height:20px;flex:0 0 20px}.task-check .ui-icon{width:14px;height:14px}.progress-line{margin:14px 0 6px;height:5px}.progress-line span{background:#47bd81}
  .doctor-intro{gap:12px}.doctor-avatar{width:43px;height:46px;border-radius:13px;background:#e9f3ed;color:#3e9062}.doctor-intro strong{color:#3b6149}.doctor-intro p,.clinic-status{color:#607a67;line-height:1.7}.doctor-contact{border-radius:10px;min-height:44px;color:#2a7c50;background:#f0f8f2;border-color:#dceadf}.quote-note{display:none}.metric-mini>span{color:#627b69}.metric-mini strong{color:#365e45}
  #assistant-dock,body.assistant-mode #assistant-dock{padding:12px 2px 18px;border-top:0;background:var(--bg)}body.assistant-mode .chat-title{padding:8px 0 16px;background:var(--bg)}
}
@media(min-width:721px) and (max-width:1279px){.content-layout,body.assistant-mode .content-layout{grid-template-columns:minmax(0,1fr);padding:20px 28px 0}.right-panel,body.assistant-mode .right-panel{display:none}.assistant-column{max-width:780px}.topbar{padding:13px 28px}.input-shortcut{display:none!important}}
@media(min-width:721px) and (max-width:1000px){.sidebar{width:80px;padding:22px 10px}.workspace{margin-left:80px;width:calc(100% - 80px)}.brand{margin:0 auto 26px;justify-content:center}.brand>span:nth-child(2),.new-chat-label,.nav-label,.nav-ai,.nav-count,.sidebar-section,.recent-sessions,.sidebar-disclaimer,.sidebar-help>span:not([data-icon]){display:none!important}.new-chat{padding:10px;justify-content:center}.nav-item{justify-content:center;padding:12px}.sidebar-help{justify-content:center;padding:10px}.main-nav{gap:10px}.topbar .demo-label{display:none}}
@media(max-width:720px){
  .workspace{background:radial-gradient(ellipse at 75% 0%,#e3f6e9 0,transparent 58%),#f7faf6}.mobile-toolbar{background:#f5faf3e6;border-bottom:0;padding:8px 12px 3px}.mobile-toolbar-main{gap:7px}.mobile-menu{display:grid;place-items:center;color:#345d43}.mobile-menu .ui-icon{width:25px;height:25px}.mobile-wordmark{font-size:1.6rem!important;color:#23513a}.mobile-toolbar-actions{gap:5px}.mobile-toolbar .text-size{border:0;background:transparent;font-weight:500}.mobile-new-chat{border:0;background:#e2f3e8;color:#1e7450;gap:5px;padding:8px 11px;border-radius:15px}.mobile-new-chat .ui-icon{width:20px;height:20px}.mobile-context{margin:1px 5px 0}.mobile-context button,.mobile-context #mobile-model button{color:#58715f;font-size:1rem}
  .content-layout,body.assistant-mode .content-layout{padding:0 16px}.mobile-home{padding:9px 0 0}.mobile-daily{padding:13px 14px;border-radius:19px;gap:10px;box-shadow:0 4px 18px #31614605;border-color:#dce9dc}.mobile-daily strong{color:#355d3f;font-weight:600}.mobile-daily small{color:#607964}.daily-symbol{width:39px;height:42px;background:#e6f4e5;color:#438e4c}
  .mobile-welcome{margin-top:24px;padding:24px 0 8px;background:transparent;border:0;border-radius:0}.welcome-emblem{right:5px;top:27px;width:54px;height:56px;border:1px solid #cee5d0;border-radius:18px;background:#e2f2e0;transform:none;box-shadow:0 7px 18px #3274430a;color:#3b8654}.welcome-emblem .ui-icon{width:29px;height:29px}.welcome-eyebrow{display:block;color:#59765f;font-size:1rem;letter-spacing:0}.mobile-welcome h1{font-size:2.05rem!important;line-height:1.5;font-weight:600;color:#254c33;margin:8px 0 13px;letter-spacing:-.5px}.mobile-welcome>p{color:#5d7560;font-size:1rem;line-height:1.85;margin-bottom:22px}
  .mobile-services{gap:10px}.mobile-services button{gap:9px;padding:14px 10px;min-height:86px;border-radius:16px;border-color:#dce7db;box-shadow:0 4px 14px #315a3203}.service-symbol{width:34px;height:37px;border-radius:11px}.service-symbol .ui-icon{width:21px;height:21px}.mobile-services strong{font-weight:600;color:#31553a}.mobile-services small{color:#627a66;font-size:1rem;line-height:1.6;margin-top:3px}.mobile-services .service-arrow{display:none}.home-starter{margin-top:13px}.mobile-boundary{margin:10px 0 2px}
  #main,body.assistant-mode #main{padding:6px 1px 18px}#assistant-dock,body.assistant-mode #assistant-dock{padding:8px 0 10px;background:transparent}#assistant-dock .composer{padding:5px;border-radius:26px;border-color:#cfdfce;box-shadow:0 5px 20px #2b67300a}.composer-entry{gap:0;align-items:flex-end}.composer-entry .input-tool{width:44px;min-width:44px;min-height:44px;padding:10px;border-radius:50%;color:#3f6249}
  .composer-entry .upload-entry,.input-button-label{display:none}.composer-entry .camera-entry,.composer-entry .more-entry{display:inline-flex}.composer-entry .input-icon,.composer-entry .input-icon .ui-icon{width:24px;height:24px}.composer-entry .send-btn{border-radius:50%;margin:0}.composer-entry .send-btn .ui-icon{width:22px;height:22px}
  #assistant-dock .composer-entry textarea{padding:10px 2px;font-size:max(1rem,16px);line-height:1.6;max-height:144px;min-height:44px}#assistant-dock .model-status,#assistant-dock .composer-note{display:none}.composer-multiline #assistant-dock .composer{border-radius:22px}.composer-near-limit #assistant-dock .composer-note{display:flex;justify-content:flex-end;margin:5px 6px 0}.composer-near-limit #assistant-dock .composer-note>span:not(.input-count){display:none}
  .mobile-nav{position:static;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 8px calc(6px + env(safe-area-inset-bottom));border-color:#e1ebdf;background:#fbfdf9;box-shadow:0 -4px 20px #254a2603}.mobile-nav button{font-size:1rem;gap:3px;min-height:57px;padding:4px 2px;color:#637969}.mobile-nav button>span{display:grid;place-items:center;width:44px;height:28px;border-radius:12px}.mobile-nav .ui-icon{width:23px;height:23px}.mobile-nav button.active{background:transparent;color:#1b7746}.mobile-nav button.active>span{background:#def2e1;color:#1a7c47}
  body.assistant-mode .chat-title{gap:9px;padding:4px 0 12px;align-items:center;background:none}.chat-title h1{font-size:1.1rem;line-height:1.65}.chat-title p{font-size:1rem;line-height:1.6}.chat-home,.chat-session-button{min-width:44px;padding:9px;border-color:transparent;background:transparent}.chat-home>span,.chat-session-button>span{display:none}.chat-home .ui-icon,.chat-session-button .ui-icon{width:22px;height:22px}
  .chat-thread{gap:24px;padding-bottom:10px}.chat-message{gap:8px}.chat-avatar{width:30px;height:30px;border-radius:10px}.chat-avatar .ui-icon{width:18px;height:18px}.chat-message:not(.user) .chat-bubble{max-width:calc(100% - 38px);padding:14px 13px;border-radius:5px 18px 18px 18px}.chat-message.user .chat-bubble{max-width:90%;padding:12px 14px}.chat-label{line-height:1.7;margin-bottom:7px;color:#587360}.agent-card{padding:15px 13px;border-radius:16px}.agent-card-top{align-items:flex-start;flex-wrap:wrap;gap:4px}.agent-card dl>div{gap:10px}.agent-card .primary-btn{width:100%;min-height:46px}
  .conversation-empty{padding-top:38px}.conversation-empty h2{font-size:1.5rem}.empty-prompts{display:grid;gap:10px}.empty-prompts button{justify-content:center}.conversation-jump{top:-54px;right:4px}
  .page-heading{padding-top:16px}.page-heading-row{gap:12px;flex-wrap:wrap}.page-heading h1{font-size:1.65rem;line-height:1.6}.page-heading p{margin-top:8px}.metric-card{border-radius:18px;padding:18px 15px}.metric-value{font-size:2rem}.record-row{gap:12px;flex-wrap:wrap}.record-data{font-size:1.25rem}.task-card{border-radius:17px;gap:12px;padding:16px}.task-content p{font-size:1rem}.profile-card{border-radius:20px}.profile-card h2{font-size:1.4rem}.settings-list{border-radius:18px}.input-options{gap:8px}.input-options button{border-radius:16px;gap:10px}
  dialog.session-dialog{width:min(92vw,440px);border-radius:0 22px 22px 0}.session-row{padding:14px 12px}.session-row>span:last-child{font-size:1rem}.session-toolbar{gap:8px}.session-toolbar button{flex-basis:100%}
  body.large-mode .mobile-welcome h1{font-size:1.7rem!important}body.large-mode .welcome-emblem{display:none}body.large-mode .mobile-services{grid-template-columns:1fr}body.large-mode .mobile-services .service-arrow{display:block}body.large-mode .mobile-context{align-items:flex-start;flex-wrap:wrap;gap:0 10px}
  body.keyboard-open .mobile-context{display:none}body.keyboard-open .mobile-nav button{min-height:44px;flex-direction:row;gap:3px}body.keyboard-open .mobile-nav button>span{width:26px}body.keyboard-open .mobile-nav{padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.content-layout,body.assistant-mode .content-layout{padding-left:12px;padding-right:12px}.mobile-services button{gap:7px;padding:13px 8px}.service-symbol{width:30px;height:34px}.mobile-services small{overflow-wrap:anywhere}.mobile-toolbar{padding-left:8px;padding-right:8px}.mobile-toolbar-actions{gap:1px}}
.speech-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 11px;border:1px solid #d7e6dc;border-radius:12px;background:#fff;color:#526e5e;font:inherit;white-space:nowrap}
.speech-toggle .ui-icon{width:20px;height:20px}.speech-toggle[aria-pressed="true"]{color:#0c714c;border-color:#a3cfb5;background:#e7f5ec}
.speech-reply-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px}
.speech-reply-tools [data-speech-feedback]{flex-basis:100%;font-size:1rem;line-height:1.7;color:#806341;padding:4px 2px}.speech-reply-tools [data-speech-feedback][hidden]{display:none}
.speech-reply-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid #d8e7dd;border-radius:11px;background:#fff;color:#32684a;font:inherit;line-height:1.5}
.speech-reply-tools button .ui-icon{width:18px;height:18px}.speech-reply-tools button[hidden]{display:none}.speech-reply-tools button[aria-pressed="true"]{background:#e6f5eb;border-color:#9acbad;color:#126d43}.speech-reply-tools .speech-settings-link{border-color:transparent;background:none;color:#61796a}
.speech-settings{display:grid;gap:12px}.speech-settings p{margin:0;color:#526e5c;line-height:1.85}.speech-settings label{font-size:1rem;line-height:1.6;color:#345b41;font-weight:500}.speech-settings select{width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbded1;border-radius:10px;background:#fff;color:#2e5940;font:inherit}.speech-settings .speech-privacy{border-top:1px solid #e2ebe4;padding-top:12px;color:#62786a;font-size:1rem}
/* Reply surfaces stay visibly distinct from the page on desktop and mobile.
   Colors describe request state or feature category, never a clinical risk level. */
.chat-message[data-source="pending"]{--reply-bg:#eef5ff;--reply-line:#cfdeef;--reply-badge:#dceafa;--reply-ink:#305f89}
.chat-message[data-source="unavailable"]{--reply-bg:#fff6e4;--reply-line:#e8d5ad;--reply-badge:#f5e7c8;--reply-ink:#80591f}
.chat-message[data-source="error"]{--reply-bg:#fff1ee;--reply-line:#eccfc8;--reply-badge:#f6ded9;--reply-ink:#943d35}
.chat-message[data-source="safety"]{--reply-bg:#fff3e8;--reply-line:#e8d1b9;--reply-badge:#f7e2cf;--reply-ink:#854823}
.chat-message[data-source="demo"]{--reply-bg:#f0f5f8;--reply-line:#d2e0e7;--reply-badge:#e0eaf0;--reply-ink:#465f72}
.chat-message:not(.user) .chat-label{display:flex;align-items:flex-start;gap:6px;width:fit-content;max-width:100%;padding:5px 9px;margin-bottom:11px;border-radius:10px;background:var(--reply-badge,#dcefe3);color:var(--reply-ink,#216448);font-size:1rem;line-height:1.65;font-weight:500}
.chat-label>.ui-icon{flex:0 0 17px;width:17px;height:17px;margin-top:3px}.chat-label>span{min-width:0;overflow-wrap:anywhere}
.chat-message:not(.user) .chat-bubble>p{color:#294637}.chat-message:not(.user) .chat-bubble>.data-note{border-top:1px solid var(--reply-line,#cde5d7);padding-top:10px;color:#536b5e}
.chat-message .agent-card{--card-accent:#1c7652;--card-tint:#e8f6ee;background:linear-gradient(135deg,var(--card-tint),#fff 78%);border:1px solid #cfdfd5;border-top:3px solid var(--card-accent);box-shadow:0 4px 12px #25473208}
.agent-card[data-kind="measurement"]{--card-accent:#216993;--card-tint:#e9f3fc}
.agent-card[data-kind="records"]{--card-accent:#246e72;--card-tint:#e6f5f3}
.agent-card[data-kind="tasks"],.agent-card[data-kind="medicine"]{--card-accent:#885e19;--card-tint:#fff4dc}
.agent-card[data-kind="report"],.agent-card[data-kind="appointment"]{--card-accent:#7251a3;--card-tint:#f2ecfb}
.agent-card[data-kind="contact"]{--card-accent:#246e72;--card-tint:#e6f5f3}
.agent-card[data-kind="permission"]{--card-accent:#596c76;--card-tint:#edf2f5}
.chat-message .agent-card-type{display:inline-flex;padding:4px 8px;border-radius:8px;background:var(--card-tint);color:var(--card-accent);font-weight:600;line-height:1.6;letter-spacing:0}
.chat-message .agent-card h3{color:#234735}.chat-message .agent-card-scope,.chat-message .agent-card>p,.chat-message .agent-card dt{color:#4c6357}
.chat-message .agent-card dl{padding:2px 10px;background:#ffffffb8;border:1px solid #dae7df;border-radius:10px}
.chat-message .agent-card dd{color:var(--card-accent);font-weight:600}
.chat-message .agent-card .primary-btn{background:var(--card-accent);color:#fff;box-shadow:none}
.chat-message .reply-actions button{border-color:var(--reply-line,#b9d9c6);color:var(--reply-ink,#216448);background:#fff}
@media(max-width:720px){.mobile-toolbar-actions .speech-toggle{width:44px;min-width:44px;padding:10px;border:0;background:transparent}.mobile-toolbar-actions .speech-toggle>span{display:none}.mobile-toolbar-actions .speech-toggle[aria-pressed="true"]{background:#e1f3e6}.speech-reply-tools{gap:5px}.speech-reply-tools button{padding:8px 9px}}

/* The jump controls use a visible, deliberate ease instead of a snap. */
.conversation-jump button{transition:opacity .2s ease,transform .2s ease,background-color .2s ease}

/* Make the font control visible on small screens so the elder-friendly mode is discoverable. */
.text-size{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border:1px solid #d5e7d9;border-radius:13px;background:#fff;color:#1b593e;min-height:44px}
.text-size .ui-icon{width:20px;height:20px;flex:0 0 20px}.text-size-label{font-size:1rem;color:#416b52}.text-size-value{font-size:.95rem;color:#0c805c;font-variant-numeric:tabular-nums}

/* Thinking is a compact, message-scoped state. Hidden answers must not reserve card space. */
.chat-thread .chat-message[data-reply-phase="thinking"]>.chat-bubble,.chat-thread .chat-message[data-source="pending"]>.chat-bubble{width:fit-content;min-width:0;min-height:0;max-width:calc(100% - 46px);padding:11px 14px;border:1px solid #deebe2;border-radius:16px;background:#f0f7f2;box-shadow:none;align-self:flex-start}
.chat-thread .chat-message[data-source="pending"] .chat-label{padding:0;margin-bottom:4px;background:transparent;color:#4e7660}
.chat-thread .chat-message[data-reply-phase="thinking"]>.chat-bubble>:not(.thinking-status){display:none}
.thinking-status{display:flex;align-items:center;gap:10px;color:#4e7660;font-size:1rem;line-height:1.6;font-weight:500}
.thinking-status>span:first-child{min-width:0;overflow-wrap:anywhere}
.thinking-dots{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;height:16px}
.thinking-dots i{display:block;width:4px;height:4px;border-radius:50%;background:#63a47b;animation:thinking-pulse 1.2s ease-in-out infinite}
.thinking-dots i:nth-child(2){animation-delay:.16s}.thinking-dots i:nth-child(3){animation-delay:.32s}
@keyframes thinking-pulse{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.thinking-dots i{animation:none;opacity:.65}}

@media(max-width:720px){
  .mobile-toolbar .text-size{display:inline-flex;width:auto;min-width:70px;padding:7px 8px;border:1px solid #d5e7d9;background:#fff}
  .mobile-toolbar .text-size>span[data-icon]{display:inline-flex;align-items:center;justify-content:center}
  .mobile-toolbar .text-size>span[data-icon] .ui-icon{display:block;width:20px;height:20px}
  .mobile-toolbar .text-size-label{display:inline;font-size:1rem}.mobile-toolbar .text-size-value{display:inline;font-size:.9rem}
  dialog:not(.session-dialog):not(.input-menu-dialog){inset:auto 9px 10px;margin:0;width:calc(100% - 18px);max-width:none;max-height:calc(100dvh - 20px);border-radius:24px;padding-bottom:env(safe-area-inset-bottom);animation:mobile-sheet-in .28s cubic-bezier(.22,.8,.28,1)}
  dialog:not(.session-dialog):not(.input-menu-dialog) .modal-head{position:sticky;top:0;z-index:2;padding:20px 18px 13px;background:#fcfdf9eb;backdrop-filter:blur(12px)}
  dialog:not(.session-dialog):not(.input-menu-dialog) .modal-body{padding:0 18px 20px}
  dialog:not(.session-dialog):not(.input-menu-dialog) .modal-head h2{font-size:1.35rem}
  dialog:not(.session-dialog):not(.input-menu-dialog) .modal-actions{position:sticky;bottom:0;margin:18px -18px -20px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:#fcfdf9f2;backdrop-filter:blur(12px);border-top:1px solid #e3ece4}
  .text-size{border:1px solid #d5e7d9;background:#fff}
}
@keyframes mobile-sheet-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}

/* System account surfaces: mobile-first, lightweight and consistent with the assistant shell. */
.system-profile-hero{display:flex;align-items:center;gap:14px;padding:18px 18px;margin-bottom:14px;background:linear-gradient(135deg,#f1f8f1,#fbfdf9);border:1px solid #e0ece2;border-radius:24px}.system-profile-main{flex:1;min-width:0}.system-profile-main h2{margin:3px 0;font-size:1.25rem;color:#234b37}.system-profile-main p{margin:0;color:#718274}.system-kicker,.system-section-title{font-size:.82rem;color:#7b9b84;letter-spacing:.04em}.profile-avatar{width:52px;height:52px;display:grid;place-items:center;font-size:1.35rem}.icon-action{width:42px;height:42px;display:grid;place-items:center;border:1px solid #d8e8db;border-radius:14px;background:#fff;color:#327250}.system-card{margin:14px 0;padding:14px;background:#fff;border:1px solid #e2ece3;border-radius:22px;box-shadow:0 7px 22px #41614b0d}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-grid button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;padding:12px;border:1px solid #e5eee6;border-radius:16px;background:#fbfdfb;color:#2c5b40}.quick-grid strong{font-size:1rem}.quick-grid small{grid-column:2;color:#829488;line-height:1.45}.quick-icon{grid-row:1 / span 2;width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:#e7f5e9;color:#2f8057}.system-list-card{padding:8px 14px 12px}.system-section-title{padding:8px 4px 5px;font-weight:600}.system-list-row,.system-modal-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:64px;text-align:left;border:0;border-top:1px solid #edf3ed;background:transparent;color:#2a523a}.system-list-row strong,.system-modal-row strong{display:block;font-size:1rem}.system-list-row small,.system-modal-row small{display:block;margin-top:3px;color:#849487;line-height:1.45}.list-row-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#f0f7f1;color:#3e815b}.row-trailing{display:flex;align-items:center;color:#9aafa0;font-size:.9rem}.logout-button{display:block;width:100%;min-height:50px;margin:16px 0 10px;border:1px solid #ead9d5;border-radius:16px;background:#fff8f6;color:#ad665d;font-size:1rem}.modal-section{margin:0 0 18px}.modal-section h3{margin:0 0 5px;color:#355d45;font-size:1rem}.modal-section+.modal-section{border-top:1px solid #edf2ee;padding-top:10px}.system-modal-row{min-height:60px;padding:5px 0}.modal-copy{margin:0;color:#647568;line-height:1.75}.account-intro,.elder-hero,.privacy-hero{display:flex;gap:12px;align-items:flex-start;padding:14px;margin-bottom:12px;border-radius:16px;background:#f3f8f3}.account-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:14px;background:#dcefe0;color:#2f7650;font-weight:700}.account-intro strong,.elder-hero h3,.privacy-hero strong{color:#2e6344}.account-intro p,.elder-hero p,.privacy-hero p{margin:3px 0 0;color:#758579;line-height:1.6}.elder-hero{display:block}.elder-hero-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:8px;border-radius:14px;background:#e1f3e4;color:#2e7a51}.mode-options{display:grid;gap:8px}.mode-option,.privacy-toggle-row{display:flex;align-items:center;gap:10px;width:100%;padding:12px 0;border:0;border-top:1px solid #edf2ed;background:transparent;text-align:left;color:#365b44}.mode-option>span:first-child,.privacy-toggle-row strong{font-weight:600}.mode-option small,.privacy-toggle-row small{display:block;flex:1;color:#829287;line-height:1.45}.toggle{width:38px;height:22px;flex:0 0 38px;border-radius:12px;background:#dce5dd;position:relative}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle.on{background:#72ae87}.toggle.on:after{transform:translateX(16px)}.privacy-hero{display:block}.privacy-hero>span{display:grid;place-items:center;width:40px;height:40px;margin-bottom:8px;border-radius:12px;background:#dff1e4;color:#337c51}.privacy-toggle-row{align-items:center}.privacy-toggle-row>span:first-child{flex:1}.memory-search{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #dce9df;border-radius:13px;background:#fbfdfb}.memory-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#2f533d;font:inherit}.memory-search button,.memory-item button{border:0;border-radius:9px;background:#e8f4ea;color:#367653;padding:7px 10px;font:inherit}.memory-item{display:flex;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid #edf2ed}.memory-item strong{color:#365d45}.memory-item p{margin:4px 0 0;color:#7d8f82;line-height:1.5}.about-mark{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 10px;border-radius:20px;background:linear-gradient(135deg,#cfe9d6,#76b990);color:#fff;font-size:1.8rem;font-weight:700}.about-title,.about-version{text-align:center}.about-title{margin:0;color:#2e6344}.about-version{margin:5px 0 14px;color:#78907f}.agreement-check{display:flex;gap:8px;align-items:flex-start;margin-top:12px;color:#708273;line-height:1.55;font-size:.92rem}.agreement-check input{margin-top:4px;accent-color:#4e966b}@media(max-width:720px){.system-profile-hero{padding:16px;border-radius:20px}.quick-grid{gap:8px}.quick-grid button{padding:10px}.system-list-row,.system-modal-row{min-height:62px}.modal-section h3{font-size:1rem}}
