/* Neutral operate surface; role color is the only saturated accent. */
:root{--muted:var(--ink-secondary);--legacy-line:var(--line);color-scheme:light}
::selection{background:#dceadf;color:var(--ink)}input,textarea{caret-color:#202020}button{min-height:44px}button:hover{filter:brightness(.97)}button:disabled{cursor:not-allowed}input,textarea,select{font:inherit}.eyebrow,#type-nav{display:none!important}.assistant-home{padding-top:var(--space-3)}.assistant-intro{padding:var(--space-3) 0 var(--space-6)}.assistant-intro h1{font-size:var(--text-display);line-height:1.45;letter-spacing:-.5px;margin:var(--space-5) 0 var(--space-2);overflow-wrap:anywhere}.assistant-intro>p{color:var(--ink-secondary);font-size:var(--text-caption);line-height:1.7;margin:0}.role-badge{width:30px;height:30px;border-radius:var(--radius-sm);display:inline-grid;place-items:center;flex-shrink:0;background:var(--cat-life);color:var(--cat-life-ink)}.role-badge svg{width:17px;height:17px}.role-badge.large{width:62px;height:62px;border-radius:var(--radius-lg)}.role-badge.large svg{width:32px;height:32px}.role-sport{background:var(--cat-sport);color:var(--cat-sport-ink)}.role-food{background:var(--cat-food);color:var(--cat-food-ink)}.role-wallet{background:var(--cat-wallet);color:var(--cat-wallet-ink)}.capture-result{border-radius:var(--radius-md);background:white;padding:var(--space-4);margin:0 0 var(--space-4)}.result-identity{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font-size:var(--text-caption)}.result-identity small{color:var(--ink-secondary);font-size:var(--text-micro);margin-left:auto}.capture-result>p{font-size:var(--text-body);line-height:1.75;margin:var(--space-3) 0;white-space:pre-wrap;overflow-wrap:anywhere}.record-meta{font-size:var(--text-caption);line-height:1.7;color:var(--ink-secondary);font-variant-numeric:tabular-nums}.capture-result>.capture-issue{font-size:var(--text-caption);color:#82500b;background:#fff5e5;padding:var(--space-3);border-radius:var(--radius-sm)}.section-heading{align-items:center;display:flex;justify-content:space-between;margin:var(--space-6) 0 var(--space-3)}.section-heading h2{margin:0;font-size:var(--text-input)}.section-heading .text-button{display:flex;align-items:center;gap:var(--space-1)}.section-heading svg{width:16px}.empty-conversation{font-size:var(--text-caption);line-height:1.9;color:var(--ink-secondary);padding:var(--space-5) 0 var(--space-6)}.recap-card{display:flex;gap:var(--space-4);align-items:center;justify-content:space-between;padding:var(--space-4) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 var(--space-4)}.recap-card strong{display:block;font-size:var(--text-caption)}.recap-card small{font-size:var(--text-micro);color:var(--ink-secondary);display:block;margin-top:var(--space-2)}.recap-card-actions{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}.recap-card button{font-size:var(--text-caption);padding:0 var(--space-2);background:transparent;min-height:32px}.capture-notice{font-size:var(--text-caption);line-height:1.7;background:#fff1d8;border-radius:var(--radius-sm);padding:var(--space-4);color:#6b470a}.composer{border-radius:var(--radius-lg)}.composer textarea{min-height:45px;max-height:130px;padding:var(--space-1) 0;font-size:var(--text-input)!important}.composer-bottom{min-height:34px}.composer .attachment-button{width:36px;height:36px;min-height:36px}.composer .send{min-height:40px;width:40px;height:40px}.topbar .icon-button{color:var(--ink)}.menu-row{width:100%;text-align:left;border-bottom:1px solid var(--line);background:white;min-height:58px;gap:var(--space-3);font-size:var(--text-body)}.menu-row>span{flex:1}.menu-row>svg:last-child{width:16px;color:var(--ink-secondary)}.sheet-back{display:flex;align-items:center;gap:var(--space-1);background:transparent;color:var(--ink-secondary);padding:0;font-size:var(--text-caption);margin-bottom:var(--space-5)}.sheet-back svg{width:17px}#utility .dialog-head{position:sticky;top:-22px;background:white;z-index:3;padding-top:var(--space-1);padding-bottom:var(--space-3)}#utility .dialog-head h2{font-size:var(--text-title)}#utility-body{font-size:var(--text-body);line-height:1.7;padding-bottom:var(--space-3)}#utility-body .dialog-note,.field-help{font-size:var(--text-caption);line-height:1.8;color:var(--ink-secondary)}#utility-body h3{font-size:var(--text-heading);margin:var(--space-4) 0 var(--space-3)}.local-form label,.recap-detail>label{display:block;font-size:var(--text-body);font-weight:500;margin:var(--space-4) 0 var(--space-2)}.local-form input:not([type=checkbox]),.local-form textarea,.local-form select,.recap-detail textarea,.recap-detail>input{width:100%;min-width:0;border:1px solid var(--line-strong);background:var(--canvas);border-radius:var(--radius-sm);padding:var(--space-3);font-size:var(--text-input);min-height:46px;color:var(--ink);box-shadow:none}.local-form textarea,.recap-detail textarea{line-height:1.75;resize:vertical;min-height:132px}.local-form fieldset{margin:var(--space-6) 0 var(--space-4);border:1px solid var(--line);border-radius:var(--radius-sm);padding:var(--space-3)}.local-form .toggle-line,.toggle-line{display:flex;align-items:flex-start;gap:var(--space-3);font-size:var(--text-caption);font-weight:400;line-height:1.7;min-height:44px;margin:0;padding:var(--space-2) 0}.toggle-line input{flex-shrink:0;width:19px;height:19px;margin-top:var(--space-1);accent-color:#202020}.local-form .dialog-actions{position:sticky;bottom:-22px;background:white;padding:var(--space-4) 0 var(--space-1);margin-top:var(--space-5);gap:var(--space-3)}.dialog-actions button{flex:1}.member-row{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-5) 0;border-bottom:1px solid var(--line)}.member-row .role-badge{width:40px;height:40px;border-radius:var(--radius-sm)}.member-row>div{flex:1;min-width:0}.member-row strong{font-size:var(--text-body)}.member-row small{display:block;color:var(--ink-secondary);font-size:var(--text-caption);line-height:1.8;margin-top:var(--space-1)}.member-row .text-button{font-size:var(--text-caption);text-align:left;padding-left:0}.assistant-switch{font-size:var(--text-caption);background:var(--surface-sunken);border-radius:var(--radius-lg);padding:0 var(--space-3);min-width:60px}.assistant-switch[aria-checked=true]{background:var(--ink);color:white}.memory-row{padding:var(--space-5) 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.memory-row p{white-space:pre-wrap;margin:0 0 var(--space-2)}.memory-row small{color:var(--ink-secondary);font-size:var(--text-micro)}.memory-row button{margin-right:var(--space-4)}.wide{width:100%;margin-top:var(--space-3);padding:var(--space-3)}.button-row{display:flex;gap:var(--space-2);flex-wrap:wrap;margin:var(--space-4) 0}.button-row button{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--surface-sunken);font-size:var(--text-caption)}.recap-detail details{margin:var(--space-5) 0;border-bottom:1px solid var(--line);padding-bottom:var(--space-4)}.recap-detail summary{min-height:44px;cursor:pointer;font-weight:600}.recap-detail details label{display:block;font-size:var(--text-caption);margin-bottom:var(--space-3)}.recap-detail details p{font-size:var(--text-caption);color:var(--ink-secondary)}.recap-detail .capability-state{background:var(--surface-sunken);border-radius:var(--radius-sm);padding:var(--space-3);font-size:var(--text-caption)}.source-row{display:block;text-align:left;width:100%;background:var(--canvas);border-radius:var(--radius-sm);padding:var(--space-3);margin:var(--space-3) 0;overflow-wrap:anywhere}.source-row small{display:block;font-size:var(--text-micro);color:var(--ink-secondary);margin-top:var(--space-1)}.recap-body{white-space:pre-wrap}.recap-detail [role=alert],.local-form [role=alert],#member-error,#memory-error{font-size:var(--text-caption);color:#a13629;overflow-wrap:anywhere}.local-form [role=alert]:empty{display:none}.recap-detail [role=status]{font-size:var(--text-caption);line-height:1.8}.daily-intro p,.daily-agenda .agenda-event small,.daily-feeling p{color:var(--ink-secondary)}dialog{scrollbar-width:thin;scrollbar-color:#c4c4c4 white}.quick-nav .nav-button{color:var(--ink-secondary)}.quick-nav .nav-button.active{color:var(--ink)}
@media(max-width:350px){.assistant-intro h1{font-size:var(--text-title)}.capture-result{padding:var(--space-3)}.result-identity{gap:var(--space-1);font-size:var(--text-micro)}.result-identity small{width:100%;margin-left:var(--space-8)}.capture-result>p{font-size:var(--text-body)}.recap-card{gap:var(--space-2)}.recap-card strong{font-size:var(--text-caption)}dialog{padding:var(--space-5)}#utility .dialog-head{top:-18px}.member-row{gap:var(--space-2)}.member-row small{font-size:var(--text-micro)}.assistant-switch{padding:0 var(--space-2);min-width:54px}}
@media(prefers-reduced-motion:no-preference){.capture-result:focus-within{transition:background-color .15s ease-out;background:var(--surface)}}
/* Touch and text contrast floor, including inherited controls. */
.recap-card button{min-height:44px}.composer .attachment-button,.composer .send{width:44px;height:44px;min-height:44px}.composer-bottom{min-height:44px}.topbar #header-left,.topbar .icon-button,.dialog-head .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}button.text-button{min-height:44px}.composer textarea::placeholder{color:var(--ink-secondary)}.composer:focus-within{border-color:var(--line-strong);box-shadow:none}

/* Conversation layout from the user's 2026-10-20 reference. */
body[data-page="home"] .scroll-area{overflow-anchor:none}
.assistant-home{padding-top:var(--space-2);padding-bottom:var(--space-4)}
.conversation-tools{display:flex;justify-content:flex-end;margin-bottom:var(--space-4)}
.conversation-tools button{font-size:var(--text-caption);color:var(--ink-secondary);gap:var(--space-2);display:flex;align-items:center}
.conversation-tools svg{width:16px;height:16px}
.capture-result.conversation-turn{background:transparent;padding:0;margin:0 0 var(--space-8);border:0;border-radius:0}
.conversation-user{width:fit-content;max-width:calc(100% - 24px);margin-left:auto;margin-bottom:var(--space-6);padding:var(--space-4);background:var(--surface-sunken);border-radius:var(--radius-md)}
.conversation-user>p{margin:0;font-size:var(--text-body);line-height:24px;white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-turn .result-identity{font-size:var(--text-body);line-height:24px;font-weight:600;gap:var(--space-2);margin-bottom:var(--space-3)}
.conversation-turn .result-identity .role-badge{width:32px;height:32px;border-radius:var(--radius-sm)}
.conversation-turn .assistant-result{padding:var(--space-4);background:var(--surface);border-radius:var(--radius-md)}
.assistant-result>.result-content{font-size:var(--text-body);line-height:24px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.assistant-result>.record-meta{margin-top:var(--space-2);font-size:var(--text-caption);line-height:20px;color:var(--ink-secondary);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.assistant-result>.capture-issue{font-size:var(--text-caption);line-height:20px;color:#7a4a00;background:#fff4e0;padding:var(--space-2) var(--space-3);border-radius:var(--radius-xs);margin:var(--space-3) 0 0}
@media(max-width:350px){.conversation-user,.conversation-turn .assistant-result{padding:var(--space-3)}}

/* Saved content followed by the category footer from the latest reply-card reference. */
.assistant-result>.result-title{margin:0 0 var(--space-2);font-size:var(--text-body);line-height:24px;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}
.result-footer{display:flex;align-items:center;gap:var(--space-2);border-top:1px solid var(--line);margin-top:var(--space-3);padding-top:var(--space-2)}
.result-category{display:flex;align-items:center;gap:var(--space-2);min-width:0;flex:1;font-size:var(--text-caption);line-height:20px;font-weight:600;color:var(--ink-secondary)}
.result-category>span:last-child{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.result-category-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:var(--radius-xs);background:var(--surface-sunken)}
.result-category-icon svg{width:20px;height:20px}
.result-category-main{color:var(--ink)}.result-category-main .result-category-icon{background:#edf5ed}
.result-category-sport{color:#17486d}.result-category-sport .result-category-icon{background:#edf3fa}
.result-category-food{color:#744409}.result-category-food .result-category-icon{background:#fbf1e7}
.result-category-wallet{color:#523b7a}.result-category-wallet .result-category-icon{background:#f1edf8}
.result-more{width:44px;height:44px;min-width:44px;display:grid;place-items:center;flex-shrink:0;padding:0;background:transparent;color:var(--ink-secondary);border-radius:var(--radius-xs)}
.result-more svg{width:20px;height:20px}.result-more[aria-expanded=true],.result-more:hover{background:var(--surface-sunken)}
.result-menu{position:fixed;inset:auto;margin:0;padding:var(--space-1);width:152px;max-height:calc(100dvh - 16px);overflow-y:auto;border:0;border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);box-shadow:none}
.result-menu button{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:44px;padding:0 var(--space-3);background:transparent;border-radius:var(--radius-xs);font-size:var(--text-caption);color:inherit;text-align:left}
.result-menu button:hover,.result-menu button:focus-visible{background:var(--surface-sunken)}.result-menu svg{width:16px;height:16px}
.result-more:focus-visible,.result-menu button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Shared passive AI state, DESIGN 8.11. */
.ai-unavailable{display:flex;align-items:flex-start;gap:var(--space-2);min-height:32px;padding:var(--space-2) var(--space-3);background:var(--surface-sunken);color:var(--ink-secondary);border-radius:var(--radius-sm);font-size:var(--text-caption);line-height:var(--leading-caption);box-sizing:border-box;overflow-wrap:anywhere}
.ai-unavailable>svg{width:16px;height:16px;flex:0 0 16px;margin-top:2px}.ai-unavailable>span{min-width:0}.ai-unavailable-detail{display:block;margin-top:var(--space-1)}
.ledger-analysis{margin-top:var(--space-6)}.ledger-analysis h2{font-size:var(--text-heading);line-height:var(--leading-heading);margin:0 0 var(--space-3)}
.knowledge-skills-entry{display:flex;align-items:center;gap:var(--space-3);width:calc(100% - 32px);margin:0 var(--space-4) var(--space-4);padding:var(--space-4);border-radius:var(--radius-md);background:var(--surface);color:var(--ink);text-align:left;min-height:72px}.knowledge-skills-entry>span{flex:1;min-width:0}.knowledge-skills-entry strong{display:block;font-size:var(--text-heading)}.knowledge-skills-entry small{display:block;color:var(--ink-secondary);font-size:var(--text-caption);margin-top:var(--space-1)}.knowledge-skills-entry svg{width:20px;height:20px;flex-shrink:0}
