:root{--bg:#f7f8f7;--paper:#fff;--ink:#25332f;--muted:#75817c;--line:#e2e8e4;--accent:#226c59;--soft:#eaf3ee;--green:#226c59}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;background:var(--accent);color:#fff;padding:10px 16px;font-weight:600}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #79ae98;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:31px;line-height:1.25;letter-spacing:-.8px;margin-bottom:8px}h2{font-size:17px;letter-spacing:-.25px;margin:0}h3{font-size:15px}.muted,small{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:0 0 10px}.brand{display:block;font-size:21px;font-weight:800;letter-spacing:2px;color:#254c40}.quiet,.icon{background:transparent;color:#65756d;padding:8px 10px}.icon{font-size:23px;line-height:1}.secondary{background:var(--soft);color:var(--accent)}.danger{color:#b34444}#shell{display:flex;min-height:100vh}#shell>aside{position:fixed;inset:0 auto 0 0;width:224px;background:#eff3f0;border-right:1px solid var(--line);padding:30px 16px;display:flex;flex-direction:column}aside .brand{padding:0 10px}aside>.eyebrow{margin:17px 10px 27px;font-size:9px}.nav{display:block;text-align:left;width:100%;background:none;color:#5f7167;font-size:13px;margin-bottom:6px;padding:11px 12px}.nav.active{background:#dfece3;color:#205d4a}.side-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 10px 10px;font-size:10px;letter-spacing:1px;color:var(--muted)}.side-heading .icon{padding:3px 7px}#projectNav{overflow:auto;flex:1;min-height:60px}.project-link{display:block;width:100%;text-align:left;background:none;color:#596d61;padding:10px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.project-link.active{background:#dfece3;color:#1d5947}.dot{display:inline-block;width:7px;height:7px;background:#709a88;border-radius:2px;margin-right:9px}.dot.personal{background:#ba9b6c}.tree-children{margin-left:12px;border-left:1px solid #d8e3dc;padding-left:4px}.tree-children:empty{display:none}.side-bottom{margin-top:auto;padding:25px 9px 0;font-size:12px}.side-bottom small{display:block;font-size:10px;margin-top:10px}main{margin-left:224px;width:calc(100% - 224px)}header{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:var(--muted);font-size:12px}#content{max-width:1320px;padding:32px 38px 70px;margin:auto}.page-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.subtitle{color:var(--muted);font-size:13px;margin-bottom:0}.page-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}.workspace-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr);gap:30px;align-items:start}.project-grid{display:grid;grid-template-columns:1fr;gap:12px}.project-card{border:1px solid var(--line);background:var(--paper);border-radius:12px;overflow:hidden}.project-card-open{display:flex;align-items:center;width:100%;background:transparent;text-align:left;color:var(--ink);gap:13px;padding:21px;font-weight:400}.project-card-open strong{display:block;font-size:17px;margin-bottom:5px;overflow-wrap:anywhere}.project-card-open small{font-size:12px}.project-mark{display:flex;width:37px;height:37px;background:#e8f0eb;color:#3c7761;align-items:center;justify-content:center;border-radius:9px;font-size:22px;flex-shrink:0}.project-mark.personal{color:#a48656;background:#f4efe5}.card-arrow{margin-left:auto;color:#84958a;font-size:20px}.project-next{border-top:1px solid #edf1ee;padding:12px 21px;font-size:12px;display:flex;align-items:baseline;gap:14px}.project-next>span{font-size:10px;color:var(--muted);flex-shrink:0}.project-next button{padding:0;background:transparent;color:#596e60;text-align:left;font-weight:400;font-size:12px;overflow-wrap:anywhere}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}.section-heading .quiet{font-size:12px}.task-list{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:0 18px}.task-row{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #edf1ee;padding:17px 0;min-width:0}.task-row:last-child{border:0}.task-check{width:18px;height:18px;margin:4px 0 0;accent-color:var(--accent);cursor:pointer;flex-shrink:0}.task-text{flex:1;min-width:0}.task-title-button{font-size:14px;line-height:1.5;overflow-wrap:anywhere;background:transparent;color:var(--ink);font-weight:500;text-align:left;padding:0;width:100%;border-radius:2px}.is-done .task-title-button{text-decoration:line-through;color:#8c9890}.task-body{font-size:12px;color:#849088;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;overflow-wrap:anywhere}.task-meta{font-size:11px;color:var(--muted);margin-top:7px;display:flex;gap:7px 12px;flex-wrap:wrap;align-items:center}.task-meta:empty{display:none}.task-project{background:transparent;color:#698171;font-weight:400;padding:0;font-size:11px}.task-edit{padding:0 6px;background:transparent;color:#829288;font-size:22px;line-height:22px}.date-chip{background:#f1f4ef;border-radius:4px;padding:2px 6px;color:#6d7d69}.overdue{color:#b55d49;background:#fbede8}.blocked{color:#a27c49}.empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.empty strong{display:block;color:#465f50;font-size:16px;margin-bottom:7px;font-weight:600}.empty p{margin-bottom:20px}.welcome-empty{background:#fff;border:1px dashed #c8d8cd;border-radius:12px;padding:50px 25px}.project-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:#8a978e;font-size:11px;margin-bottom:20px}.project-breadcrumbs .quiet{font-size:11px;padding:0;color:#607b69}.project-header{margin-bottom:24px}.project-header h1{font-size:30px}.project-menu{position:relative}.project-menu>summary{list-style:none;font-size:25px;line-height:24px;padding:7px 11px;cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px}.project-menu>summary::-webkit-details-marker{display:none}.project-menu-panel{position:absolute;right:0;top:48px;z-index:5;width:210px;background:white;border:1px solid var(--line);padding:6px;border-radius:10px;box-shadow:0 10px 30px #20352815}.project-menu-panel button{display:block;width:100%;padding:11px 12px;background:transparent;color:#415e4c;text-align:left;font-weight:400;font-size:12px}.project-menu-panel button:hover{background:#eef4ef}.project-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:24px}.project-tabs button{background:transparent;border-radius:0;padding:0 2px 14px;color:#7c8a80;font-size:13px;display:flex;gap:8px;align-items:center;border-bottom:2px solid transparent}.project-tabs button.selected{color:#205c47;border-color:#297a5b}.project-tabs button span{font-size:10px;background:#e9eee9;border-radius:5px;padding:0 6px;font-weight:500}.project-workspace{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:32px;align-items:start}.project-primary{min-width:0}.task-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;min-height:34px}.task-section-head h2 span{font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}.task-section-head .quiet,.task-section-head .secondary{font-size:12px;padding:6px 9px}.quick-task{display:flex;gap:9px;margin-bottom:15px}.quick-task input{margin:0;flex:1;min-width:0;background:#fff;height:43px}.quick-task button{font-size:12px}.completed-tasks{margin-top:25px}.completed-tasks>summary{font-size:12px;color:#7b8a80;cursor:pointer;margin-bottom:12px}.completed-tasks summary span{margin-left:6px}.subprojects-panel{position:static;width:auto;padding:0;background:transparent;border:0;display:block;min-width:0}.subprojects-panel .section-heading{margin:0 0 16px}.subprojects-panel h2{font-size:13px;color:#6a7f70;font-weight:600}.subprojects-panel .quiet{padding:4px 9px;font-size:20px}.subprojects-panel>p{font-size:12px;line-height:1.7}.subproject-link{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;background:#fff;color:#476752;border:1px solid var(--line);border-radius:8px;padding:12px;font-size:12px;font-weight:500;text-align:left;margin-bottom:9px;overflow-wrap:anywhere}.subproject-link small{display:block;font-size:10px;font-weight:400;margin:5px 0 0 13px}.context-read{background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px 22px}.context-read>div{padding:20px 0;border-bottom:1px solid #edf1ee}.context-read>div:last-child{border:0}.context-read h3{font-size:11px;letter-spacing:.2px;color:#708373;margin-bottom:8px}.context-read p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:0}.entry{border:1px solid var(--line);background:#fff;border-radius:10px;padding:19px 21px;margin-bottom:12px;font-size:14px}.entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.entry small{font-size:10px}.entry-kind{font-size:10px;color:#49785e;font-weight:600;background:#edf4ef;padding:3px 7px;border-radius:4px}.assistant-panel{margin:0 0 24px}.capture{background:#fff;border:1px solid var(--line);padding:20px;border-radius:12px}.capture h3{font-size:15px;margin-bottom:12px}.capture-row{display:flex;gap:10px;align-items:center}.capture textarea{flex:1;min-height:54px;margin:0;resize:vertical}.capture select{max-width:190px;margin:0;font-size:12px}.capture button{font-size:12px}.capture p{font-size:11px;margin:12px 0 0;color:var(--muted)}label{display:block;font-size:12px;color:#65796b;margin-bottom:17px}input,textarea,select{border:1px solid #d7e1d9;background:#fff;color:var(--ink);border-radius:7px;padding:10px 12px;width:100%;outline:none;margin-top:6px}input:focus,textarea:focus,select:focus{border-color:#75a28a;box-shadow:0 0 0 3px #226c5910}textarea{min-height:85px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;min-width:0}.notice,.proposal{font-size:12px;color:#567461;background:#edf4ef;padding:16px;border-radius:9px;margin:15px 0}.proposal p{margin-bottom:13px}.settings-grid{display:grid;gap:18px;max-width:780px}.settings-grid h2{margin-bottom:12px}.settings-grid p{font-size:13px;color:var(--muted)}.share-result{overflow-wrap:anywhere;background:#f1f5f1;padding:13px;border-radius:8px;font-size:12px;margin-top:15px}.share-result details{margin-top:12px}.share-result summary{cursor:pointer}.telegram-open{display:inline-block;background:var(--accent);color:#fff;border-radius:8px;padding:10px 15px;font-weight:600}.member{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.auth{width:min(420px,90vw);margin:10vh auto;background:white;border:1px solid var(--line);border-radius:16px;padding:32px}.auth .brand{margin-bottom:32px}.auth h1{font-size:28px}.auth form button{width:100%;margin-top:8px}.auth .muted{font-size:12px}.auth>button{font-size:12px}dialog{border:1px solid var(--line);border-radius:14px;padding:25px;width:min(540px,92vw);max-height:90vh;box-shadow:0 20px 90px #172f2225}dialog::backdrop{background:#142d2255;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-head h2{font-size:20px;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-actions button{font-size:13px}.inline-error{color:#a24739;background:#fbede8;border-radius:7px;padding:11px 13px;font-size:12px;margin:10px 0}.inline-error:empty{display:none}#toast{position:fixed;bottom:24px;right:24px;z-index:50;background:#244f3d;color:white;padding:12px 19px;border-radius:9px;box-shadow:0 4px 25px #162e2225;display:none;max-width:min(480px,calc(100vw - 32px));white-space:pre-wrap;font-size:13px}[hidden]{display:none!important}.calendar-toolbar{display:flex;gap:8px;align-items:center}.calendar{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.cal-day{background:#fff;min-height:210px;padding:12px 8px}.event{background:#edf2ff;color:#4565b9;border-left:2px solid #7794ec;font-size:10px;border-radius:5px;padding:7px;margin-bottom:7px;overflow-wrap:anywhere;cursor:pointer}.event.deadline{background:#fff4ed;color:#b67b50;border-color:#dfa97c}.event.private{background:#f0f1f3;border-color:#b9c1cc;color:#87909c;cursor:default}.calendar-wrap{overflow-x:auto}.calendar-period{margin-top:22px}.badge{font-size:10px;padding:4px 8px;border-radius:5px;background:var(--soft);color:var(--accent)}
@media(max-width:1100px){.project-workspace{grid-template-columns:minmax(0,1fr) 180px;gap:22px}.workspace-columns{grid-template-columns:1fr}.continue-section{margin-top:10px}}
@media(max-width:850px){#shell>aside{width:192px;padding:25px 12px}main{margin-left:192px;width:calc(100% - 192px)}header{padding:0 24px}#content{padding:26px 24px}.project-workspace{grid-template-columns:1fr}.subprojects-panel{border-top:1px solid var(--line);padding-top:23px}.subproject-link{max-width:420px}.capture-row{flex-wrap:wrap}.capture textarea{flex-basis:100%}.capture select{max-width:none;flex:1}}
@media(max-width:700px){#shell{display:block}#shell>aside{position:static;width:100%;padding:15px 16px 12px;border-right:0;border-bottom:1px solid var(--line)}aside .brand{font-size:16px;padding:0}aside>.eyebrow,.side-heading,#projectNav,.side-bottom{display:none}aside>nav{display:flex;gap:4px;margin-top:10px}.nav{font-size:11px;padding:8px 10px;margin:0;width:auto;flex:1;text-align:center;white-space:nowrap}main{margin:0;width:100%}header{height:42px;padding:0 18px;font-size:10px}#content{padding:24px 18px 45px}.page-top{align-items:flex-start;gap:14px;margin-bottom:23px;flex-wrap:wrap}h1{font-size:27px}.page-actions{gap:7px}.page-actions>button{font-size:11px;padding:9px 12px}.page-top:has(.project-menu){flex-wrap:nowrap}.project-header h1{font-size:26px;overflow-wrap:anywhere}.project-header .subtitle{font-size:11px}.project-header .page-actions>button{font-size:0;padding:8px 12px}.project-header .page-actions>button:first-letter{font-size:18px}.project-menu>summary{font-size:22px;padding:7px 10px}.project-breadcrumbs{margin-bottom:17px;font-size:10px;gap:6px}.project-breadcrumbs .quiet{font-size:10px}.project-tabs{gap:26px;margin-bottom:20px}.project-tabs button{font-size:12px;gap:6px}.task-section-head h2{font-size:15px}.task-section-head .quiet{font-size:10px;padding:6px 0}.task-list{padding:0 13px}.task-row{gap:11px;padding:16px 0}.task-title-button{font-size:13px}.task-meta{font-size:10px}.task-check{width:19px;height:19px}.quick-task{gap:7px}.quick-task input{font-size:13px;padding:10px}.quick-task button{font-size:11px;padding:10px 12px}.task-edit{min-width:28px}.task-body{font-size:11px}.project-card-open{padding:19px}.project-card-open strong{font-size:16px}.project-next{padding:12px 19px}.workspace-columns{gap:28px}.two{grid-template-columns:1fr}dialog{padding:22px 20px;max-height:88vh}.context-read{padding:0 18px}.context-read p{font-size:13px}.entry{padding:17px}.capture{padding:16px}.capture select{font-size:11px}.capture p{font-size:10px}.subprojects-panel .section-heading{margin-bottom:10px}.subproject-link{max-width:none}.welcome-empty{padding:36px 22px}}

/* Calendar */
.segmented{display:flex;background:#eaf0f9;padding:4px;border-radius:10px;gap:3px}.segmented button{padding:8px 14px;background:transparent;color:#7b88a0;font-size:12px;border-radius:7px}.segmented button.selected{background:white;color:#4264cf;box-shadow:0 2px 5px #20385a0a}.calendar-period h2{font-size:20px;text-transform:capitalize;line-height:1.4;margin-right:14px}.calendar-toolbar{flex-shrink:0}.calendar-toolbar button{font-size:12px;padding:8px 13px}.calendar{border-color:#dde4f0;background:#e2e8f1;box-shadow:0 4px 18px #26395803}.cal-day{padding:12px 9px;min-height:250px}.cal-month .cal-day{min-height:125px}.cal-month{grid-template-columns:repeat(7,minmax(0,1fr))}.cal-day.is-today{background:#edf3ff;box-shadow:inset 0 0 0 2px #6f8ff0;position:relative}.cal-heading{display:flex;align-items:center;gap:5px;background:transparent;color:#71809a;padding:0;width:100%;font-size:11px;margin-bottom:15px;font-weight:500;text-align:left}.cal-weekday{margin-right:auto}.day-number{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;color:#485a76;font-weight:600;font-size:13px}.is-today .day-number{background:#5578e8;color:white;box-shadow:0 2px 7px #4d73dc25}.today-label{color:#4b70d6;font-size:9px;font-weight:650}.other-month{background:#f9fafc}.other-month .day-number{color:#b0b9c8}.event{display:block;width:100%;text-align:left;line-height:1.5;font-weight:400;margin-bottom:7px;white-space:normal;font-size:11px;padding:8px;border-radius:6px}.event b{font-size:9px;line-height:1.5;margin-bottom:3px;font-weight:600}.event small{display:block;font-size:9px;color:inherit;opacity:.7;margin-top:4px}.event-name{display:block;overflow-wrap:anywhere}.cal-month .event{font-size:10px;padding:5px 6px}.cal-month .event-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cal-month .event small{display:none}.cal-day.cal-day{transition:background .1s}.cal-day.is-today.other-month{background:#edf3ff}.cal-day-mode{min-height:400px}.cal-day .empty{margin-top:20px}.calendar.cal-day{display:block}.calendar.cal-day>.cal-day{min-height:350px;padding:22px}.calendar.cal-day .cal-heading{width:auto;gap:12px;font-size:14px}.calendar.cal-day .event{max-width:780px;font-size:14px;padding:14px 18px;margin-bottom:12px}.calendar.cal-day .event b{font-size:12px}.calendar.cal-day .event small{font-size:11px}.calendar-legend{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0 12px;font-size:11px;color:#7a879d}.calendar-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:8px;height:8px;border-radius:3px;display:inline-block}.slot-dot{background:#8da7f1}.deadline-dot{background:#e2ad81}.private-dot{background:#b7c1d0}.calendar-help{font-size:12px;color:#8c97a9;line-height:1.6}
@media(max-width:1200px){.overview-columns{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:22px}.overview-columns .project-grid{grid-template-columns:1fr}.today-label{display:none}}
@media(max-width:950px){.overview-columns{grid-template-columns:1fr}.overview-columns .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-hero h1{font-size:29px}.cal-month .cal-day{padding:8px 5px}.cal-weekday{font-size:10px}.cal-month .day-number{height:22px;width:22px;font-size:11px}.project-actions{margin-left:0}}
@media(max-width:700px){#content{padding-top:24px}.overview-hero h1{font-size:28px}.overview-hero{align-items:flex-start}.overview-hero .eyebrow{font-size:9px}.overview-hero .subtitle{font-size:12px}.overview-hero>button{padding:9px 11px;margin-top:3px}.overview-metrics{gap:17px;margin-bottom:22px;font-size:11px}.overview-metrics b{font-size:14px}.overview-columns .project-grid{grid-template-columns:1fr}.capture{padding:17px}.capture-row{gap:8px}.capture-row>select{flex:1;max-width:none}.capture-row>textarea{flex-basis:100%}.welcome-empty{padding:30px 22px}.page-top:has(.segmented){display:block}.segmented{width:max-content;margin-top:20px}.calendar-period{align-items:center;gap:8px;flex-wrap:wrap}.calendar-period h2{font-size:18px}.calendar.cal-week{min-width:800px}.calendar.cal-month{min-width:0}.calendar.cal-day{min-width:0}.cal-month .cal-day{min-height:100px;padding:7px 3px}.cal-month .cal-heading{gap:0;flex-wrap:wrap;justify-content:center;line-height:1;margin-bottom:8px}.cal-month .cal-weekday{width:100%;text-align:center;margin:0 0 5px;font-size:9px}.cal-month .event{font-size:8px;padding:4px 3px;border-left-width:2px;line-height:1.4}.cal-month .event b{font-size:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-month .event-name{-webkit-line-clamp:3}.cal-month .day-number{height:21px;width:21px}.calendar-legend{gap:10px;font-size:9px}.calendar-help{font-size:11px}.project-actions{width:100%;margin-top:5px}.project-breadcrumbs{font-size:10px}.capture p{font-size:10px}}

.calendar-period h2{text-transform:none}.calendar-period h2::first-letter{text-transform:uppercase}.calendar.cal-day{padding:0}


.month-events-count{display:none}@media(max-width:700px){.cal-month .event{display:inline-block;width:7px;height:7px;min-height:0;padding:0;margin:1px 1px 3px;border:0;background:#7897ed;pointer-events:none}.cal-month .event.deadline{background:#dba471}.cal-month .event.private{background:#aeb8c8}.cal-month .event>*{display:none!important}.cal-month .month-events-count{display:block;width:100%;padding:3px 0;font-size:9px;line-height:1.4;color:#6e82aa;background:transparent;font-weight:500;white-space:nowrap}.cal-month .cal-day{min-height:88px}}

.segmented button.selected{color:var(--accent)}.cal-day.is-today{background:#edf6ef;box-shadow:inset 0 0 0 2px #75a48a}.is-today .day-number{background:var(--accent)}.today-label{color:var(--accent)}.calendar.cal-day>.cal-day{border-radius:10px}.task-body{white-space:pre-wrap}

.task-advanced{margin-top:20px}.task-advanced>summary{cursor:pointer;font-size:12px;color:var(--accent);padding:8px 0}.task-advanced[open]>summary{margin-bottom:12px}.settings-grid details>summary{cursor:pointer;color:var(--accent);font-size:12px}.settings-grid details[open]>summary{margin-bottom:17px}.project-header .page-actions>button{min-width:42px}.project-menu>summary{min-width:42px}

.segmented{background:var(--soft)}.calendar-help{color:var(--muted)}

/* Memory workspace design system, shared by every route. */
:root{--bg:#f8f7fc;--paper:#fff;--ink:#232034;--muted:#8a859c;--line:#eae6f3;--accent:#7a49ed;--soft:#f0eaff;--green:#7a49ed;--shadow:0 8px 30px #39266a07}
:root[data-theme=dark]{color-scheme:dark;--bg:#17151f;--paper:#211e2b;--ink:#eeeaf8;--muted:#a29ab5;--line:#363040;--accent:#ac87ff;--soft:#34274e;--shadow:0 8px 30px #0002}
body{background:var(--bg);color:var(--ink);letter-spacing:-.1px}button{background:var(--accent);color:#fff}button:focus-visible,summary:focus-visible,a:focus-visible{outline-color:var(--accent)}input,textarea,select{border-color:var(--line);background:var(--paper);color:var(--ink)}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #8352f010}.quiet,.icon{background:transparent;color:var(--muted)}.secondary,.notice,.proposal{background:var(--soft);color:var(--accent)}.app-sidebar,.auth,.card,.task-list,.project-card,.context-read,.entry,.subproject-link,.project-menu-panel{background:var(--paper)!important;border-color:var(--line)!important}#shell>.app-sidebar{background:var(--paper);width:228px;padding:32px 18px}.brand{color:var(--accent);font-size:25px;letter-spacing:-.8px}.brand span{color:var(--ink);font-weight:750}.app-sidebar>.eyebrow{font-size:9px;letter-spacing:1.6px;margin-top:12px;color:var(--muted)}.nav{display:flex;align-items:center;gap:13px;color:var(--muted);font-weight:500;font-size:13px;padding:12px 14px;margin-bottom:7px}.nav svg{width:19px;height:19px}.nav.active,.project-link.active{background:var(--soft);color:var(--accent)}.project-link{color:var(--muted);font-size:12px}.dot{background:var(--accent)!important;opacity:.6}.tree-children{border-color:var(--line)}.side-heading{color:var(--muted);font-size:9px}.side-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.side-bottom>button:first-child{width:100%;text-align:left;padding-left:0}.side-bottom>span{font-size:11px;color:var(--muted)}main{margin-left:228px;width:calc(100% - 228px)}.app-header{height:76px;padding:0 38px;border-color:var(--line);gap:20px;background:var(--bg)}.focus-button{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:650;font-size:17px;background:transparent;padding:5px 0}.focus-button>span:last-child{font-size:14px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.header-actions>.icon{width:37px;height:37px;padding:8px}.app-header #breadcrumb{font-size:11px;color:var(--muted)}.context-bar{display:flex;gap:8px;padding:14px 38px 0;overflow-x:auto;scrollbar-width:none}.context-bar::-webkit-scrollbar{display:none}.focus-chip{display:flex;align-items:center;gap:7px;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;font-weight:500;padding:9px 13px;white-space:nowrap;flex-shrink:0}.focus-chip.selected{background:var(--soft);color:var(--accent)}.focus-chip-icon{font-size:17px}.focus-chip.selected .focus-chip-icon{color:var(--accent)}#content{padding:28px 38px 165px;max-width:1360px}.page-top{margin-bottom:28px;align-items:center}h1{font-size:29px;font-weight:730;letter-spacing:-.8px;margin-bottom:7px}h2{font-size:15px;font-weight:650;color:var(--ink)}.subtitle{font-size:12px;color:var(--muted)}.primary-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;min-width:39px;height:39px;padding:9px;box-shadow:0 4px 14px #7b42ed1a}.section-heading .quiet{font-size:11px}.section-gap{margin-top:32px}.count{font-size:11px;font-weight:400;color:var(--muted);margin-left:6px}.home-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:34px}.task-list{box-shadow:var(--shadow);border-radius:12px;padding:0 18px}.task-row{padding:17px 0;border-color:var(--line);gap:12px}.task-title-button{font-size:13px;font-weight:500;color:var(--ink)}.task-check{accent-color:var(--accent);width:16px;height:16px;border-radius:4px}.task-edit{color:var(--muted);background:transparent;font-size:21px}.task-meta{font-size:10px;color:var(--muted);gap:7px;line-height:1.4;margin-top:7px}.task-project{font-size:10px;color:var(--muted)}.context-pill{font-size:9px;background:var(--soft);color:var(--accent);padding:3px 6px;border-radius:5px;display:inline-block}.date-chip{font-size:10px;background:transparent;color:var(--accent);padding:0}.date-chip.overdue{color:#c46d73}.blocked{font-size:9px;color:#b28e59}.assignee-chip{font-size:9px;display:inline-flex;align-items:center;gap:4px}.assignee-chip svg{width:12px;height:12px}.memory-project-list,.projects-tree-list{display:grid;gap:11px}.memory-project-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;color:var(--ink);background:var(--paper);border:1px solid var(--line);padding:19px 18px;border-radius:12px;box-shadow:var(--shadow);font-weight:400}.memory-project-card:hover{border-color:#cdbdf3}.folder-icon{color:var(--accent);display:flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--soft);border-radius:9px;flex-shrink:0}.memory-project-card strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.memory-project-card small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.card-arrow{font-size:23px;color:var(--muted)}.project-children{margin:11px 0 13px 22px;display:grid;gap:10px;border-left:1px solid var(--line);padding-left:13px}.upcoming-card{width:100%;display:flex;flex-direction:column;gap:7px;text-align:left;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:11px;padding:17px 18px;margin-bottom:11px;font-weight:400}.upcoming-card strong{font-size:13px;font-weight:550}.upcoming-card small{font-size:10px;color:var(--muted)}.upcoming-time{font-size:11px;color:var(--accent)}.empty{padding:38px 22px;grid-column:1/-1;color:var(--muted)}.empty p{margin-bottom:0;font-size:12px;max-width:360px;margin-left:auto;margin-right:auto}.empty strong{color:var(--ink);font-size:15px}.empty-orbit{color:#b59be8;background:var(--soft);width:46px;height:46px;border-radius:15px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center}.empty button{margin-top:17px;font-size:12px}.task-group{margin-top:23px}.task-group>h2{margin-bottom:12px;font-size:13px}.filter-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px;flex-wrap:wrap}.filter-chips{display:flex;gap:6px;flex-wrap:wrap}.filter-chips>button{padding:6px 12px;font-size:11px;font-weight:500;background:transparent;color:var(--muted);border-radius:7px}.filter-chips>button.selected{color:var(--accent);background:var(--soft)}.compact-label{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:10px}.compact-label select{margin:0;width:auto;font-size:11px;background:transparent;border:0;padding:6px}.quick-task{margin:0 0 20px}.quick-task input{height:42px;border-color:var(--line);font-size:12px}.quick-task button{display:flex;align-items:center;justify-content:center;width:42px;padding:9px;background:var(--soft);color:var(--accent)}.project-breadcrumbs{color:var(--muted);font-size:10px}.project-breadcrumbs .quiet{color:var(--muted)}.project-tabs{gap:22px;margin-bottom:23px;border-color:var(--line);overflow:auto;white-space:nowrap}.project-tabs button{color:var(--muted);font-size:12px}.project-tabs button.selected{color:var(--accent);border-color:var(--accent)}.project-tabs button span{background:var(--soft);color:var(--accent);font-size:9px}.project-workspace{grid-template-columns:minmax(0,1fr) 215px;gap:28px}.subprojects-panel .memory-project-card{padding:12px;gap:8px;box-shadow:none;margin-bottom:9px}.subprojects-panel .folder-icon{width:27px;height:27px}.subprojects-panel .memory-project-card strong{font-size:11px}.subprojects-panel h2{color:var(--muted)}.project-menu>summary{background:var(--paper);color:var(--muted);border-color:var(--line)}.project-menu-panel button{color:var(--ink)}.project-menu-panel button:hover{background:var(--soft)}.completed-tasks>summary{color:var(--muted)}.completed-tasks .task-row .task-title-button{color:var(--muted)}.notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}.note-filters{margin-bottom:22px}.note-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:18px;min-width:0;box-shadow:var(--shadow)}.note-card-head{display:flex;gap:9px;align-items:flex-start}.note-card-head>button:first-child{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;padding:0;background:transparent;color:var(--ink);text-align:left;font-size:13px}.note-card-head strong{font-weight:600;line-height:1.6;overflow-wrap:anywhere}.note-card-head>.quiet{padding:0 4px;font-size:19px;line-height:22px}.note-type-icon{width:29px;height:29px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:var(--bg);border-radius:7px;flex-shrink:0}.note-type-icon svg{width:16px;height:16px}.note-excerpt{font-size:12px;color:var(--muted);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.note-excerpt a{color:var(--accent);text-decoration:underline}.note-footer{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:var(--muted);flex-wrap:wrap}.note-checklist{margin-top:15px}.note-checklist>label{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--ink);margin-bottom:10px;line-height:1.5}.note-checklist input{width:15px;height:15px;accent-color:var(--accent);margin:2px 0 0;flex-shrink:0}.note-checklist .checked{text-decoration:line-through;color:var(--muted)}.note-media{display:grid;gap:10px;margin-top:16px;min-width:0}.note-image,.note-video{width:100%;max-height:260px;object-fit:cover;border-radius:9px;background:var(--bg)}.note-media audio{width:100%;max-width:100%;height:38px}.audio-file small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere;margin-bottom:6px}.file-link{display:flex;align-items:center;gap:12px;padding:14px;border-radius:9px;border:1px solid var(--line);background:var(--bg);font-size:12px;overflow-wrap:anywhere}.file-link>span{flex:1;min-width:0}.file-link>svg{color:var(--accent);flex-shrink:0}.file-link small{font-size:9px;display:block;margin-top:5px}.file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.upload-button{display:flex;align-items:center;gap:7px;background:var(--soft);color:var(--accent);font-size:11px;padding:9px 12px;border-radius:8px;cursor:pointer;margin:0}.upload-button input[type=file]{font-size:10px;padding:5px;max-width:230px;margin:0}.note-dialog{width:min(680px,94vw)}.note-editor{min-height:150px;line-height:1.8}.people-list{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:5px 20px}.person{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.person:last-child{border:0}.avatar{display:flex;width:33px;height:33px;border-radius:50%;background:var(--soft);color:var(--accent);align-items:center;justify-content:center;font-size:13px}.person small{display:block;font-size:10px;margin-top:5px}.search-form{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:7px 10px 7px 15px;margin-bottom:20px;color:var(--muted)}.search-form input{margin:0;border:0;box-shadow:none;flex:1;min-width:0;background:transparent}.search-form button{font-size:11px;padding:8px 14px}.search-across{display:flex;gap:7px;font-size:11px;align-items:center;margin:0;white-space:nowrap}.search-across input{width:14px;height:14px;margin:0;accent-color:var(--accent)}.search-results{display:grid;gap:10px}.search-result{display:flex;align-items:center;gap:13px;width:100%;background:var(--paper);border:1px solid var(--line);padding:17px;border-radius:10px;color:var(--ink);text-align:left;font-weight:400}.search-result>span:nth-child(2){flex:1;min-width:0}.search-result strong{display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere}.search-result small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.result-icon{color:var(--accent)}.focus-list{display:grid;gap:7px;margin:20px 0}.focus-list button{display:flex;justify-content:space-between;background:transparent;color:var(--ink);padding:13px 14px;font-size:14px;font-weight:500}.focus-list button.selected{background:var(--soft);color:var(--accent)}.ai-dock{position:fixed;bottom:25px;left:calc(50% + 114px);transform:translateX(-50%);width:min(710px,calc(100vw - 300px));z-index:8}.ai-dock form{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:15px;box-shadow:0 6px 35px #62418b13;background:var(--paper);padding:9px 11px 9px 17px}.ai-star{color:var(--accent);font-size:25px}.ai-dock input{border:0;box-shadow:none;margin:0;padding:9px 4px;flex:1;min-width:0;background:transparent;font-size:13px}.ai-dock input:focus{box-shadow:none}.ai-dock form>.icon{padding:7px;color:var(--accent);min-width:34px;display:flex;align-items:center;justify-content:center}.ai-dock #aiSend{padding:7px;border-radius:9px;min-width:33px;height:33px;display:flex;align-items:center;justify-content:center}.ai-dock #aiSend svg{width:17px;height:17px}.ai-result{display:flex;gap:12px;background:var(--paper);border:1px solid var(--line);padding:17px 18px;border-radius:12px;margin-bottom:10px;box-shadow:var(--shadow);max-height:190px;overflow:auto}.ai-result>div:first-child{flex:1;min-width:0}.ai-result strong{font-size:12px;color:var(--accent)}.ai-result p{font-size:12px;white-space:pre-wrap;margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}.ai-result small{font-size:10px;display:block;margin-top:9px}.result-actions{display:flex;gap:5px;align-items:flex-start}.result-actions .quiet{font-size:11px;padding:0 4px;white-space:nowrap}.voice-state{text-align:center;padding:30px 12px;color:var(--ink)}.voice-wave{color:var(--accent);font-size:30px;letter-spacing:6px;margin-bottom:23px;animation:voice-pulse 1s ease-in-out infinite alternate}.voice-state p{font-size:15px}.voice-state small{font-size:11px;color:var(--muted)}.voice-stop{display:block;margin:0 auto 20px}.inline-error{background:#ba445817;color:#c55c70}dialog{background:var(--paper);color:var(--ink);border-color:var(--line)}dialog::backdrop{background:#18112855}.dialog-head h2{color:var(--ink)}label{color:var(--muted)}.task-advanced>summary{color:var(--accent)}.share-result{background:var(--soft);color:var(--ink)}#toast{background:var(--ink);color:var(--paper);bottom:100px}.calendar{border-color:var(--line);background:var(--line)}.cal-day{background:var(--paper)}.cal-day.is-today,.cal-day.is-today.other-month{background:var(--soft);box-shadow:inset 0 0 0 2px var(--accent)}.is-today .day-number{background:var(--accent);color:var(--paper)}.day-number,.cal-heading{color:var(--muted)}.other-month{background:var(--bg)}.other-month .day-number{color:var(--muted);opacity:.5}.today-label{color:var(--accent)}.event.meeting{background:var(--soft);color:var(--accent);border-left-color:var(--accent)}.segmented{background:var(--soft)}.segmented button{color:var(--muted)}.segmented button.selected{background:var(--paper);color:var(--accent)}.calendar-period{margin-top:0}.calendar-period h2{font-size:18px}.calendar-help,.calendar-legend{color:var(--muted)}:root[data-theme=dark] .event{background:#28314c;color:#b4c8ff}:root[data-theme=dark] .event.deadline{background:#3d302c;color:#edbd9d}:root[data-theme=dark] .event.meeting{background:var(--soft);color:var(--accent)}:root[data-theme=dark] .event.private{background:#33313c;color:#aea7b9}:root[data-theme=dark] .context-read>div,:root[data-theme=dark] .member{border-color:var(--line)}
@keyframes voice-pulse{from{opacity:.45;transform:scaleY(.7)}to{opacity:1;transform:scaleY(1.1)}}@media(prefers-reduced-motion:reduce){.voice-wave{animation:none}}
@media(max-width:1080px){.home-grid{grid-template-columns:1fr;gap:28px}.upcoming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upcoming>.section-heading{grid-column:1/-1;margin-bottom:0}.project-workspace{grid-template-columns:1fr}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-header{padding:0 25px}.context-bar{padding-left:25px;padding-right:25px}#content{padding-left:25px;padding-right:25px}.subprojects-panel{border-color:var(--line)}}
@media(max-width:850px){#shell>.app-sidebar{width:190px;padding:26px 12px}main{margin-left:190px;width:calc(100% - 190px)}.ai-dock{left:calc(50% + 95px);width:calc(100vw - 240px)}.notes-grid{grid-template-columns:1fr}.app-header #breadcrumb{display:none}}
@media(max-width:700px){#shell>.app-sidebar{position:static;display:contents;width:auto;padding:0;border:0}.app-sidebar>.brand,.app-sidebar>.eyebrow,.side-heading,#projectNav,.side-bottom{display:none}.app-sidebar>.primary-nav{position:fixed;bottom:0;left:0;right:0;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));z-index:12;display:flex;justify-content:space-around;gap:0;background:var(--paper);border-top:1px solid var(--line);height:65px}.primary-nav>.nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;padding:4px 3px;margin:0;min-width:0;flex:1;border-radius:8px;background:transparent}.primary-nav>.nav svg{width:19px;height:19px}.primary-nav>.nav.active{color:var(--accent);background:transparent}.primary-nav>.nav.active svg{fill:var(--soft);stroke:var(--accent)}main{width:100%;margin:0}.app-header{height:65px;padding:0 21px;gap:10px}.focus-button{font-size:17px}.header-actions{gap:4px}.header-actions>.icon{padding:8px;width:33px;height:33px}.header-actions>#settingsButton{display:none}.context-bar{padding:3px 18px 0;gap:7px}.focus-chip{flex-direction:column;gap:5px;padding:8px 13px;font-size:10px;min-width:61px;border-radius:10px}.focus-chip-icon{font-size:18px;line-height:21px}#content{padding:24px 20px 185px}.page-top{gap:12px;margin-bottom:23px;flex-wrap:nowrap}h1{font-size:24px;letter-spacing:-.6px}.subtitle{font-size:11px;line-height:1.6}.primary-icon{width:35px;height:35px;min-width:35px;border-radius:10px;padding:7px}.page-top>.primary-icon{flex-shrink:0}.section-heading{margin-bottom:13px}.section-heading h2{font-size:13px}.section-heading .quiet{font-size:10px;padding:4px 0}.task-list{border-radius:10px;padding:0 14px}.task-row{padding:16px 0;gap:11px}.task-title-button{font-size:12px;line-height:1.6}.task-check{width:16px;height:16px;margin-top:3px}.task-meta{font-size:9px;gap:6px;margin-top:6px}.context-pill{font-size:8px;padding:2px 5px}.task-meta .date-chip{font-size:9px}.task-edit{font-size:20px;min-width:20px;padding:0}.home-grid{gap:27px}.upcoming{grid-template-columns:1fr;gap:0}.upcoming>.section-heading{margin-bottom:13px}.upcoming-card{padding:15px}.upcoming-card strong{font-size:12px}.section-gap{margin-top:28px}.memory-project-card{padding:17px 14px;gap:11px;box-shadow:none;border-radius:10px}.memory-project-card strong{font-size:12px}.memory-project-card small{font-size:9px}.folder-icon{width:31px;height:31px;border-radius:8px}.folder-icon svg{width:18px;height:18px}.ai-dock{left:14px;right:14px;bottom:76px;transform:none;width:auto}.ai-dock form{border-radius:13px;padding:7px 8px 7px 13px;gap:7px;box-shadow:0 5px 30px #6b409515}.ai-dock input{font-size:12px;padding:8px 0;height:32px}.ai-star{font-size:22px}.ai-dock #aiSend{width:29px;height:29px;min-width:29px}.ai-dock #voiceButton{min-width:29px;padding:5px}.ai-dock svg{width:18px;height:18px}.ai-result{padding:14px;max-height:170px}.ai-result p{font-size:11px}.ai-result strong{font-size:11px}.result-actions{flex-direction:column;gap:10px;align-items:flex-end}.filter-toolbar{gap:12px;margin-bottom:17px}.filter-chips{gap:5px;flex-wrap:wrap}.filter-chips>button{font-size:10px;padding:6px 10px}.compact-label{margin-left:auto;font-size:9px}.compact-label select{font-size:10px}.quick-task input{font-size:12px}.task-group{margin-top:21px}.task-group>h2{font-size:12px}.notes-grid{grid-template-columns:1fr;gap:13px}.note-card{border-radius:11px;padding:16px}.note-card-head strong{font-size:12px}.note-excerpt{font-size:11px}.note-footer{font-size:8px}.note-checklist>label{font-size:11px}.note-image,.note-video{max-height:240px}.note-card .file-link{font-size:11px;padding:12px}.project-tabs{gap:21px;margin-bottom:22px}.project-tabs button{font-size:11px;gap:5px}.project-tabs button span{font-size:8px;padding:0 4px}.project-workspace{gap:26px}.subprojects-panel .memory-project-card strong{font-size:11px}.project-children{margin-left:12px;padding-left:10px}.file-grid{grid-template-columns:1fr}.upload-button{font-size:10px;flex-wrap:wrap}.search-form{padding:7px 8px 7px 12px;gap:6px}.search-form input{font-size:12px;padding:7px 3px}.search-form button{font-size:10px;padding:8px 11px}.search-across{font-size:10px}.search-result{padding:14px;gap:11px}.search-result strong{font-size:12px}.search-result small{font-size:9px}.search-results{gap:9px}.empty{padding:31px 16px}.empty strong{font-size:14px}.empty p{font-size:11px}.empty-orbit{width:40px;height:40px}.calendar-period h2{font-size:16px}.page-top:has(.segmented){display:flex;flex-wrap:wrap}.segmented{margin:0;gap:0}.segmented button{font-size:10px;padding:7px 10px}.calendar-period{margin-top:0}.cal-month .cal-day{min-height:73px}.calendar-toolbar button{font-size:10px;padding:7px 10px}.calendar-legend{font-size:9px}.calendar-help{font-size:10px}.calendar.cal-day .event{font-size:12px}.settings-grid .card{padding:19px}.settings-grid h2{font-size:15px}.settings-grid p{font-size:12px}dialog{width:calc(100vw - 26px);max-height:85vh;border-radius:17px;padding:23px 20px}.dialog-head h2{font-size:19px}.note-dialog{width:calc(100vw - 20px)}#toast{bottom:142px;right:16px;font-size:12px}.voice-wave{font-size:27px}.note-editor{min-height:120px}.auth{margin-top:8vh}}

.focus-button{min-width:0}.focus-button>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:250px}@media(max-width:700px){.header-actions>#settingsButton{display:inline-flex}.focus-button>span:first-child{max-width:155px}}

/* Composer: multiline text, explicit async feedback and keyboard clearance. */
:root{--bg:#f8f7fc;--paper:#fff;--line:#eae7f1;--ink:#262139;--muted:#847e95;--accent:#7949e9;--soft:#f0e9ff}
:root[data-theme=dark]{--bg:#171420;--paper:#211c2e;--line:#363043;--ink:#f0eaf9;--muted:#aba1bf;--accent:#b896ff;--soft:#322344}
body{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;font-size:15px;letter-spacing:0}
h1,h2,h3,.task-title-button{font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif}
.task-title-button{font-size:14px;line-height:1.45;font-weight:550;letter-spacing:-.15px}.task-row{min-height:66px}.task-meta{font-size:11px}
input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-block;flex-shrink:0;width:21px;height:21px;min-width:21px;border:1.5px solid #c9c2d8;border-radius:7px;background:var(--paper);padding:0;vertical-align:middle;cursor:pointer;box-shadow:0 1px 2px #36255008}
input[type=checkbox]:checked{background-color:var(--accent);border-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
input[type=checkbox]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}input[type=checkbox]:disabled{opacity:.5;cursor:default}
.home-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.home-heading h1{font-size:30px;letter-spacing:-1px;margin:5px 0 0;font-weight:650}.home-date{font-size:12px;text-transform:capitalize;color:var(--muted);margin:0;letter-spacing:.2px}
.home-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:30px;align-items:start}.home-overview .section-heading{margin-bottom:12px;min-height:30px}.home-overview .section-heading h2{font-size:15px;font-weight:600;letter-spacing:-.3px}.home-overview .section-heading .quiet{font-size:12px;color:var(--accent);font-weight:500;padding:5px 0}.home-all-links{display:flex;align-items:center;gap:12px}.home-all-links svg{width:17px;height:17px}.home-overview .count{font-size:11px;background:var(--soft);color:var(--accent);margin-left:5px;border-radius:6px;padding:2px 6px}
.home-overview .task-list{border-radius:18px;padding:0 18px;border:1px solid var(--line);box-shadow:0 4px 20px #35204a04}.home-overview .task-row{padding:14px 0;gap:12px}.home-overview .task-edit{align-self:center}.home-overview .task-check{margin-top:3px}.home-overview .task-meta{margin-top:5px;gap:7px}.home-overview .task-title-button{font-size:14px}.home-list-caption{font-size:11px;color:var(--muted);margin:10px 4px 0;line-height:1.4}.home-overview .memory-project-list{display:grid;gap:10px}.home-overview .memory-project-card{border-radius:15px;padding:16px 14px;box-shadow:none;gap:12px}.home-overview .memory-project-card strong{font-size:14px;font-weight:550;letter-spacing:-.2px}.home-overview .memory-project-card small{font-size:11px;margin-top:4px}.home-overview .folder-icon{width:38px;height:38px;border-radius:12px;background:var(--soft);color:var(--accent)}
.agenda-event{display:flex;align-items:center;gap:12px;min-height:66px;padding:13px 0;border-bottom:1px solid var(--line)}.agenda-event:last-child{border-bottom:0}.agenda-event-icon{width:21px;flex-shrink:0;color:var(--accent)}.agenda-event button{background:transparent;color:var(--ink);padding:0;min-width:0;flex:1;text-align:left;font-weight:500}.agenda-event strong{display:block;font-size:14px;line-height:1.45;font-weight:550}.agenda-event small{display:block;font-size:11px;color:var(--accent);margin-top:5px}.agenda-event-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);margin:8px}.home-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;color:var(--muted);font-size:12px}.home-empty svg{color:var(--accent);width:30px;height:30px}.home-empty strong{color:var(--ink);font-size:17px;font-weight:550}.home-project-empty{display:flex;align-items:center;gap:10px;width:100%;padding:20px;background:var(--paper);border:1px dashed var(--line);color:var(--muted);font-size:13px;font-weight:500;border-radius:15px}
.home-screen #content{max-width:1120px;padding-top:28px}.home-screen .ai-dock{max-width:740px}.home-screen .ai-dock form{border-radius:20px;box-shadow:0 8px 40px #4d2e7010}
@media(max-width:900px) and (min-width:701px){.home-overview{grid-template-columns:1fr;gap:22px}.home-projects .memory-project-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .app-header{height:57px;padding:0 20px}.context-bar{padding:0 18px;gap:8px;min-height:55px}.focus-chip{font-size:11px;padding:6px 13px;gap:3px;min-width:59px}.focus-chip-icon{font-size:16px;line-height:19px}
 .home-screen #content{padding:18px 20px calc(var(--composer-height,100px) + 98px + env(safe-area-inset-bottom));max-width:560px}
 .home-heading{margin-bottom:17px}.home-heading h1{font-size:25px;letter-spacing:-.8px;margin-top:3px}.home-date{font-size:11px}.home-heading .primary-icon{width:38px;height:38px;border-radius:13px;background:var(--soft);color:var(--accent)}
 .home-overview{grid-template-columns:1fr;gap:19px}.home-overview .section-heading{min-height:24px;margin-bottom:9px}.home-overview .section-heading h2{font-size:14px}.home-overview .section-heading .quiet{font-size:11px}.home-all-links{gap:12px}.home-overview .task-list{border-radius:17px;padding:0 14px}.home-overview .task-row,.agenda-event{min-height:57px;padding:10px 0;gap:11px}.home-overview .task-title-button,.agenda-event strong{font-size:13px;line-height:1.4;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.home-overview .task-text{overflow:hidden}.home-overview .task-meta{font-size:10px;line-height:1.3;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;max-width:100%;margin-top:4px}.home-overview .context-pill{font-size:9px}.home-overview .task-project{font-size:10px;overflow:hidden;text-overflow:ellipsis;max-width:110px}.home-overview .task-check{width:21px;height:21px;min-width:21px;margin-top:0;align-self:center}.home-overview .task-edit{min-width:24px;font-size:22px}.agenda-event small{font-size:10px;margin-top:4px}.home-list-caption{font-size:10px;margin-top:8px}.home-overview .memory-project-list{gap:7px}.home-overview .memory-project-card{padding:10px 12px;border-radius:14px;min-height:55px}.home-overview .memory-project-card strong{font-size:13px}.home-overview .memory-project-card small{font-size:10px;margin-top:3px}.home-overview .folder-icon{width:32px;height:32px;border-radius:10px}.home-overview .folder-icon svg{width:18px;height:18px}.home-empty{min-height:150px}.home-project-empty{padding:15px}
 .task-title-button{font-size:14px}.task-row{gap:12px}.task-meta{font-size:10px}.task-check{width:21px;height:21px}
 .home-screen .ai-dock{bottom:calc(75px + env(safe-area-inset-bottom))}.home-screen .ai-dock #aiInput{min-height:58px;height:58px}.home-screen .primary-nav{height:65px}.home-screen .primary-nav .nav{font-size:10px;font-weight:500}
 .keyboard-open.home-screen .ai-dock{bottom:calc(var(--keyboard-inset,0px) + 8px)}
}
@media(forced-colors:active){input[type=checkbox]{appearance:auto;background-image:none}}
/* Context names remain visible; colour supplements the label. */
.context-color-violet{--context-fg:#6232bd;--context-bg:#f0e9ff;--context-border:#dbcafa}
.context-color-blue{--context-fg:#2456a6;--context-bg:#e8f0ff;--context-border:#c4d8fa}
.context-color-rose{--context-fg:#a33359;--context-bg:#fceaf0;--context-border:#f3c7d6}
.context-color-green{--context-fg:#216a48;--context-bg:#e4f5eb;--context-border:#bce2cc}
.context-color-amber{--context-fg:#805000;--context-bg:#fff2d8;--context-border:#efd49c}
.context-color-teal{--context-fg:#176965;--context-bg:#def4f1;--context-border:#aee0d9}
.context-color-neutral{--context-fg:#625d70;--context-bg:#f0eef3;--context-border:#ded9e4}
#contextBar{display:none}
.assistant-launch-group{display:flex;align-items:center;justify-content:center;align-self:center;gap:8px;width:min(360px,calc(100% - 40px));margin:12px auto 20px;flex-shrink:0}.assistant-launch-group #assistantLauncher{position:static;transform:none;margin:0;flex:1;width:auto;min-width:0}.assistant-launch-group #assistantQuickMic{width:48px;height:48px;flex:0 0 48px;border-radius:16px;background:var(--soft);color:var(--accent);display:flex;align-items:center;justify-content:center}body:not(.home-screen) .assistant-launch-group{position:fixed;left:calc(50% + 114px);bottom:22px;transform:translateX(-50%);z-index:8;margin:0}body:not(.home-screen) .assistant-launch-group #assistantLauncher{position:static;transform:none}
.assistant-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 6px;display:flex;flex-direction:column;gap:14px;scrollbar-gutter:stable}.chat-message{max-width:90%;padding:12px 14px;border-radius:16px;background:var(--bg);align-self:flex-start;overflow-wrap:anywhere;flex-shrink:0}.chat-message.user{align-self:flex-end;background:var(--soft)}.chat-message>small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.chat-message-text{white-space:pre-wrap;font-size:14px;line-height:1.6}.chat-message button{font-size:12px;display:block;margin-top:9px}.assistant-chat #aiResult{display:none}.assistant-chat #aiForm{flex-shrink:0;margin-top:8px}.assistant-chat .assistant-toolbar{flex-shrink:0;border-bottom:1px solid var(--line);padding-bottom:8px}.assistant-chat #assistantLatest{align-self:center;flex-shrink:0;font-size:12px;margin:5px 0}
body.assistant-open.assistant-chat .ai-dock{display:flex;flex-direction:column;position:fixed!important;inset:20px 24px 20px auto;left:calc(228px + 24px);width:auto;max-width:none;height:calc(100dvh - 40px);transform:none;margin:0;padding:16px}
@media(min-width:701px) and (max-width:850px){body:not(.home-screen) .assistant-launch-group{left:calc(50% + 95px)}body.assistant-open.assistant-chat .ai-dock{left:214px}}
@media(max-width:700px){.assistant-launch-group{margin:10px auto 12px}body:not(.home-screen) .assistant-launch-group{left:50%;bottom:calc(76px + env(safe-area-inset-bottom))}body.assistant-open.assistant-chat .ai-dock{inset:0;left:0;right:0;bottom:0;width:100%;height:100dvh;border-radius:0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));z-index:40}html.keyboard-open body.assistant-open.assistant-chat .ai-dock{top:0;bottom:var(--keyboard-inset,0px);height:calc(100dvh - var(--keyboard-inset,0px))}.assistant-chat .chat-message{max-width:94%}}
.assistant-launcher{display:flex;align-items:center;justify-content:center;gap:8px;align-self:center;min-height:48px;width:min(300px,calc(100% - 40px));margin:12px auto 20px;border-radius:18px;box-shadow:0 5px 22px #7949e925}
body:not(.home-screen) .assistant-launcher{position:fixed;left:calc(50% + 114px);bottom:22px;transform:translateX(-50%);z-index:8;margin:0}
@media(max-width:700px){body:not(.home-screen) .assistant-launcher{left:50%;bottom:calc(76px + env(safe-area-inset-bottom))}}
body .ai-dock{display:none}body.assistant-open .ai-dock{display:block;position:fixed!important;left:calc(50% + 114px);right:auto;bottom:24px;transform:translateX(-50%);width:min(740px,calc(100vw - 290px));margin:0;z-index:30;padding:10px;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 10px 60px #24133235}
.assistant-toolbar{display:flex;gap:6px;align-items:center}.assistant-toolbar button{font-size:12px;min-height:40px}.assistant-toolbar #assistantClose{margin-left:auto;font-size:20px}.assistant-open:not(.assistant-text) #aiForm{display:flex}.assistant-text #aiForm{display:flex}.assistant-history-item{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.assistant-history-item p{margin-bottom:8px}.assistant-history-item small{white-space:pre-wrap}.ai-result details{font-size:12px;margin-top:8px}.ai-result details summary{cursor:pointer;color:var(--accent)}
dialog.assistant-dialog{position:fixed;inset:auto 12px 16px;margin:0 auto;width:min(600px,calc(100vw - 24px));max-height:min(65dvh,650px);border-radius:22px;padding:20px}.assistant-dialog .voice-state{padding:8px}.assistant-dialog .voice-draft{min-height:65px;max-height:20dvh;margin:10px 0}.assistant-dialog .voice-stop{margin:8px auto}.assistant-dialog .dialog-head h2{font-size:18px}.compact-presentation .home-overview .task-row{min-height:46px;padding:7px 0}.compact-presentation .home-overview{gap:12px}
@media(max-width:700px){body.assistant-open .ai-dock{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));transform:none;width:auto}.assistant-launcher{margin:10px auto 12px;min-height:46px}html.keyboard-open body.assistant-open .ai-dock{bottom:calc(var(--keyboard-inset,0px) + 8px)}}
.header-menu{position:relative;margin-left:auto}.header-menu summary{list-style:none;cursor:pointer;color:var(--ink);font-size:25px;line-height:1;padding:8px 14px;border-radius:10px}.header-menu summary::-webkit-details-marker{display:none}.header-menu[open] summary{background:var(--soft)}.header-menu .header-actions{position:absolute;right:0;top:100%;z-index:20;display:flex;gap:6px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:var(--shadow)}.header-menu .header-actions>.icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px}.header-menu .header-actions>#settingsButton{display:inline-flex}
.home-event-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:14px}.home-event-card>span:nth-child(2){flex:1;min-width:0}.home-event-card strong,.home-event-card small{display:block;overflow-wrap:anywhere}.home-event-card strong{font-size:14px}.home-event-card small{font-size:11px;color:var(--accent);margin-top:4px}.home-event-empty{margin:0;padding:12px 14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px}.home-overview{gap:20px}.home-event .section-heading{min-height:24px;margin-bottom:9px}.home-event h2{font-size:14px}.home-event .quiet{color:var(--accent);font-size:11px}.home-list-caption:empty{display:none}
.home-overview{grid-template-columns:minmax(0,1fr);max-width:760px}
.home-overview{width:100%;margin-inline:auto}.home-heading{max-width:760px;margin-left:auto;margin-right:auto}
@media(min-width:701px) and (max-width:850px){body:not(.home-screen) .assistant-launcher,body.assistant-open .ai-dock{left:calc(50% + 95px)}}
dialog.focus-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:clamp(22px,5vw,48px);overflow:auto}
.focus-dialog #modalForm{max-width:650px;margin:0 auto}.focus-dialog .focus-list{gap:8px}.focus-dialog .focus-list button{min-height:56px;background:var(--context-bg);color:var(--context-fg);border:1px solid var(--context-border);border-radius:12px}.focus-dialog .focus-list button.selected{box-shadow:0 0 0 2px var(--context-fg)}
:root[data-theme=dark] .context-color-violet{--context-fg:#d2baff;--context-bg:#392956;--context-border:#66478f}
:root[data-theme=dark] .context-color-blue{--context-fg:#b4ceff;--context-bg:#203658;--context-border:#405c89}
:root[data-theme=dark] .context-color-rose{--context-fg:#ffb9cd;--context-bg:#51283a;--context-border:#88445e}
:root[data-theme=dark] .context-color-green{--context-fg:#a8e6c4;--context-bg:#1e4432;--context-border:#3d7958}
:root[data-theme=dark] .context-color-amber{--context-fg:#fbd391;--context-bg:#4a361c;--context-border:#856333}
:root[data-theme=dark] .context-color-teal{--context-fg:#9ce1d7;--context-bg:#1a413e;--context-border:#39746e}
:root[data-theme=dark] .context-color-neutral{--context-fg:#d1cadc;--context-bg:#383340;--context-border:#60596b}
.context-pill{color:var(--context-fg);background:var(--context-bg);border:1px solid var(--context-border)}
.focus-chip[class*="context-color-"]{color:var(--context-fg)}
.focus-chip[class*="context-color-"] .focus-chip-icon{color:var(--context-fg)}
.focus-chip[class*="context-color-"].selected{background:var(--context-bg);color:var(--context-fg);box-shadow:inset 0 0 0 1px var(--context-border)}
/* Home occupies the available viewport. Preview rows are fitted by measured
   content height; enlarged text/keyboard can fall back to a normal document. */
.home-screen main{display:flex;flex-direction:column;height:100dvh;min-height:0}
.home-screen .app-header,.home-screen .context-bar{flex-shrink:0}
.home-screen #content{flex:1;min-height:0;width:100%;padding:22px 30px 6px;margin:0 auto}
.home-screen .ai-dock{position:static;left:auto;right:auto;bottom:auto;transform:none;flex-shrink:0;width:min(740px,calc(100% - 60px));margin:12px auto 22px}
.home-screen.home-flow main{height:auto;min-height:100dvh}.home-screen.home-flow #content{flex:none;padding-bottom:12px}
@media(max-width:700px){
 .home-screen main{height:calc(100dvh - 65px - env(safe-area-inset-bottom));margin-bottom:calc(65px + env(safe-area-inset-bottom))}
 .home-screen #content{padding:14px 20px 4px}
 .home-screen .home-heading{margin-bottom:12px}
 .home-screen .home-overview{gap:14px}
 .home-screen .ai-dock{position:static;width:calc(100% - 24px);margin:10px auto 10px}
 .home-screen.home-flow main{min-height:calc(100dvh - 65px - env(safe-area-inset-bottom))}
 html.keyboard-open body.home-screen .ai-dock{position:fixed;bottom:calc(var(--keyboard-inset,0px) + 8px);left:12px;right:12px;width:auto;margin:0}
 html.keyboard-open body.home-screen #content{padding-bottom:calc(var(--composer-height,100px) + 90px)}
 .app-sidebar>.primary-nav,.home-screen .primary-nav{height:calc(65px + env(safe-area-inset-bottom));min-height:calc(65px + env(safe-area-inset-bottom))}
 /* Let grid and flex children shrink with a narrow device viewport. */
 #shell,main,.home-screen #content,.home-overview,.home-overview>section,.home-overview .task-list,.home-overview .memory-project-list,.home-overview .memory-project-card,.home-overview .memory-project-card>span:nth-child(2),.home-overview .section-heading,.home-all-links,.app-header,.context-bar{min-width:0;max-width:100%}
 .home-overview{grid-template-columns:minmax(0,1fr)}
 .home-overview .memory-project-card strong,.home-overview .memory-project-card small,.agenda-event strong,.agenda-event small{overflow-wrap:anywhere}
}
.mic-meter{height:38px;display:flex;align-items:center;justify-content:center;gap:4px;margin:0 auto 10px}.mic-meter i{width:8px;height:24px;border-radius:4px;background:var(--line)}.mic-meter i.active{background:var(--accent)}.mic-meter i:nth-child(n+13).active{background:#d8894b}.mic-level-text{min-height:24px;font-size:12px;color:var(--muted);margin-bottom:16px}
.voice-draft-tail{color:var(--muted)}
.voice-draft{min-height:100px;max-height:30dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:16px;line-height:1.6;margin:16px 0}.voice-state #voiceLiveStatus{display:block;min-height:34px;line-height:1.5}
.ai-dock form{align-items:flex-end;padding:12px;gap:8px}
.ai-dock .ai-star{align-self:center;flex-shrink:0}
.ai-dock #aiInput{flex:1;min-width:0;width:0;min-height:56px;max-height:180px;height:56px;resize:none;overflow-y:auto;border:0;outline:0;box-shadow:none;margin:0;padding:7px 3px;background:transparent;color:var(--ink);font-size:15px;line-height:1.5;border-radius:5px;scroll-padding:8px}
.ai-dock #aiInput:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ai-dock #aiSend,.ai-dock #voiceButton{width:44px;height:44px;min-width:44px;padding:11px;flex-shrink:0;border-radius:12px;touch-action:manipulation}
.ai-dock #voiceButton{background:var(--soft);color:var(--accent)}
.ai-dock #aiSend svg,.ai-dock #voiceButton svg{width:21px;height:21px}
.ai-result{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;border-color:var(--accent);max-height:min(260px,35dvh);padding-right:44px;gap:10px}
.ai-result .result-actions{grid-column:2;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
.ai-result #dismissAI{position:absolute;right:3px;top:3px;width:40px;height:40px;padding:8px}
.ai-result strong{font-size:14px}.ai-result p{font-size:13px}.ai-result small{font-size:11px}
.ai-result.is-processing{background:var(--paper);box-shadow:0 5px 30px #7954c426}
.ai-spinner{display:block;width:22px;height:22px;flex:0 0 22px;border:3px solid var(--soft);border-top-color:var(--accent);border-radius:50%;animation:ai-spin .85s linear infinite;margin-top:2px}
.result-mark{display:flex;width:26px;height:26px;flex:0 0 26px;align-items:center;justify-content:center;background:var(--soft);border-radius:50%;color:var(--accent);font-weight:700}
.ai-matches{display:grid;gap:6px;margin-top:10px}.ai-matches button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;background:var(--soft);color:var(--ink);font-size:12px;font-weight:500;padding:9px 11px;overflow-wrap:anywhere}.ai-matches button small{display:inline;margin:0;color:var(--accent);white-space:nowrap}
.ai-result.is-error{border-color:#c55c70}.is-error .result-mark{color:#c55c70;background:#c55c701a}.is-error strong{color:#c55c70}
.result-actions .quiet,.result-actions .result-open{min-height:36px;padding:7px 8px;font-size:12px}.result-open{background:var(--soft);color:var(--accent);border-radius:8px}
#content{padding-bottom:calc(var(--composer-height,120px) + 55px)}
@keyframes ai-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ai-spinner{animation:none;border-style:dotted}.voice-wave{animation:none}}
@media(max-width:700px){
 .ai-dock{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto}
 .ai-dock form{padding:12px 10px;gap:6px;border-radius:18px}
 .ai-dock #aiInput{font-size:16px;min-height:64px;height:64px;padding:8px 2px;line-height:1.5}
 .ai-dock .ai-star{display:none}
 .ai-dock #aiSend,.ai-dock #voiceButton{width:44px;min-width:44px;height:44px;padding:11px}
 .ai-result{padding:14px 44px 14px 12px;gap:10px;border-radius:15px}.ai-result p{font-size:13px}.ai-result strong{font-size:14px}
 .result-actions{gap:4px}.result-actions .quiet,.result-actions .result-open{min-height:40px}
 #content{padding-bottom:calc(var(--composer-height,150px) + 110px + env(safe-area-inset-bottom))}
 .keyboard-open .ai-dock{bottom:calc(var(--keyboard-inset,0px) + 8px)}
 .keyboard-open .primary-nav{visibility:hidden}
}
/* Calendar origin colors are independent from task context colors. */
.calendar-source-blue{--calendar-source:#2563b8;--calendar-tint:#e9f1ff}
.calendar-source-teal{--calendar-source:#0b776d;--calendar-tint:#e4f5f0}
.calendar-source-rose{--calendar-source:#ac315d;--calendar-tint:#fdebf1}
.calendar-source-amber{--calendar-source:#8e5700;--calendar-tint:#fff2d3}
.calendar-source-violet{--calendar-source:#7042b7;--calendar-tint:#f1eaff}
.calendar-source-green{--calendar-source:#347126;--calendar-tint:#edf5e7}
.event.meeting[class*="calendar-source-"]{background:var(--calendar-tint);color:var(--calendar-source);border-left:3px solid var(--calendar-source)}
.event-origin,.source-legend{color:var(--calendar-source);border-left:3px solid var(--calendar-source);padding-left:8px}
[data-theme="dark"] .calendar-source-blue{--calendar-source:#9cc5ff;--calendar-tint:#162c49}
[data-theme="dark"] .calendar-source-teal{--calendar-source:#83d9cb;--calendar-tint:#123832}
[data-theme="dark"] .calendar-source-rose{--calendar-source:#ffafc7;--calendar-tint:#432331}
[data-theme="dark"] .calendar-source-amber{--calendar-source:#ffd187;--calendar-tint:#3e3019}
[data-theme="dark"] .calendar-source-violet{--calendar-source:#d0b3ff;--calendar-tint:#302341}
[data-theme="dark"] .calendar-source-green{--calendar-source:#addc94;--calendar-tint:#26391e}
.external-source-row{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line,#ddd)}
.sharing-rights label{display:flex;align-items:center;gap:8px}.sharing-rights input[type="checkbox"]{width:auto}

.day-plan{border:1px solid var(--line,#ddd);border-radius:18px;padding:24px;margin:12px 0 28px;background:var(--surface,transparent)}
.day-plan h2{margin:0}.day-plan .eyebrow{margin:0 0 6px}.day-plan input[type=date]{width:auto;max-width:155px}.plan-summary{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 10px}.plan-summary span,.plan-estimate{color:var(--muted,#888);font-size:13px}.plan-list{list-style:none;padding:0;margin:20px 0}.plan-item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--line,#ddd)}.plan-item>input{width:18px;height:18px;flex:none;margin-top:3px}.plan-item-main{min-width:0;flex:1;display:grid;gap:6px}.plan-item-main button{text-align:left;overflow-wrap:anywhere}.plan-item-main small{color:var(--muted,#888)}.plan-item.is-done .task-title-button{text-decoration:line-through;opacity:.6}.plan-item-actions{display:flex;gap:2px}.plan-item-actions button{padding:6px;min-width:28px}.plan-toolbar{display:flex;gap:10px;flex-wrap:wrap}.plan-note{line-height:1.5}.plan-preferences{margin-top:16px}.plan-preferences textarea{margin-top:12px;width:100%}@media(max-width:700px){.day-plan{padding:16px}.plan-item{gap:8px}.plan-item-actions{display:grid;grid-template-columns:24px 24px}.plan-summary{display:grid;gap:6px}.day-plan>.section-heading{align-items:center;gap:8px}.plan-toolbar button{flex:1}}
