:root{color-scheme:light;--paper:#f5f3ed;--card:#fffefa;--ink:#293c35;--muted:#7b8177;--line:#e5e6dc;--green:#375c49;--soft:#eaf0e4;--accent:#b48752;--error:#a64136;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #b48752;outline-offset:4px}input,textarea,select{background:var(--card);border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:10px 12px;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #b3c8ac;outline-offset:1px}textarea{resize:vertical}input,select{min-height:44px}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.45;font-weight:600}h2{font-size:18px;font-weight:600}h3{font-size:16px;line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.2px;color:var(--accent);font-weight:600;margin-bottom:12px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;letter-spacing:1px}.brand-mark{background:var(--green);color:var(--card);width:35px;height:35px;display:grid;place-items:center;border-radius:11px;font-size:21px;font-family:serif}.brand-caption{font-size:12px;font-weight:400;letter-spacing:1px;color:var(--muted);border-left:1px solid var(--line);padding-left:18px;margin-left:8px}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(28px,calc((100vw - 1280px)/2))}.header-actions{display:flex;align-items:center;gap:16px;font-size:12px}.connection{color:var(--muted);display:flex;align-items:center;gap:6px}.connection:before{content:"";width:6px;height:6px;background:#7c9c71;border-radius:50%}.quiet{min-height:40px;padding:6px}.badge{background:var(--accent);color:#fff;border-radius:10px;font-size:10px;padding:1px 5px}.member-name{border-left:1px solid var(--line);padding-left:16px}main{max-width:1280px;padding:40px 28px 28px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:34px}.page-heading .muted{margin-top:9px}.page-heading .eyebrow{margin-bottom:8px}.primary{background:var(--green);color:white;border-radius:10px;padding:12px 20px;font-weight:500;min-height:46px}.primary:hover{background:#2d4b3c}.primary span{float:right}.wide{width:100%}.workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:26px;align-items:start}.tasks-panel{min-width:0}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.count{font-size:11px;font-weight:400;display:inline-grid;place-items:center;min-width:23px;padding:1px 6px;background:#e7e7db;border-radius:6px;vertical-align:middle;margin-left:5px}.native-link{color:var(--muted);font-size:12px}.native-link:hover{color:var(--green);text-decoration:underline}.task-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:18px}.segmented{display:flex;gap:2px;background:#ebece3;padding:4px;border-radius:9px;flex-shrink:0}.segmented button{border-radius:6px;font-size:12px;padding:6px 10px;min-height:34px}.segmented [aria-pressed=true]{background:var(--card);box-shadow:0 1px 3px #293c3510}.task-toolbar select{max-width:180px;font-size:12px;padding:6px 10px;min-height:40px}.task-list{display:grid;gap:12px}.task-card{border:1px solid var(--line);border-radius:13px;background:var(--card);padding:19px 20px;transition:border-color .2s}.task-card:hover{border-color:#c1cbb6}.task-top{display:flex;gap:12px;align-items:flex-start}.task-dot{width:20px;height:20px;min-width:20px;border:1.5px solid #c6ccbd;border-radius:6px;margin-top:3px}.task-dot.done{background:var(--soft);color:var(--green);border-color:var(--soft);text-align:center;font-size:12px}.task-text{min-width:0;flex:1}.task-title{overflow-wrap:anywhere}.task-description{font-size:12px;color:var(--muted);margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}.task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;font-size:11px;color:var(--muted)}.pill{background:#f1f1e9;border-radius:5px;padding:2px 7px}.pill.accepted{background:#eaf0e4;color:var(--green)}.pill.rejected{background:#f5e9de;color:#996b3e}.task-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid #f0f0e9}.task-actions button{font-size:12px;min-height:36px;border-radius:7px;padding:5px 11px}.task-actions button:hover{background:var(--soft)}.task-actions .accept,.task-actions .complete{color:var(--green);background:var(--soft)}.task-actions .reject{color:#996b3e}.refresh{display:block;margin:20px auto 0;padding:8px 12px;font-size:12px;color:var(--muted)}.panel-footnote{text-align:center;font-size:11px;color:var(--muted);margin-top:15px}.assistant-panel{border:1px solid #dee3d5;border-radius:16px;background:var(--card);overflow:hidden;position:sticky;top:22px;min-width:0}.assistant-heading{display:flex;align-items:center;gap:12px;padding:22px 22px 15px}.assistant-avatar{width:42px;height:42px;border-radius:13px;background:var(--soft);color:var(--green);font-size:28px;text-align:center;line-height:42px}.assistant-heading h2{font-size:16px}.assistant-heading p{font-size:11px;margin-top:2px}.icon-button{margin-left:auto;min-width:36px;min-height:36px;font-size:22px;border-radius:8px}.icon-button:hover{background:var(--soft)}.chat-toolbar{display:flex;gap:8px;padding:0 22px 14px;border-bottom:1px solid var(--line)}.chat-toolbar select{font-size:11px;min-height:34px;padding:5px 8px;max-width:50%;flex:1;background:#f8f8f1}.messages{height:350px;overflow-y:auto;padding:23px 22px;scroll-behavior:smooth;display:flex;flex-direction:column;gap:18px}.message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;max-width:97%}.message.user{align-self:flex-end;background:var(--soft);padding:12px 15px;border-radius:12px 12px 2px 12px}.message.assistant{align-self:flex-start;padding:2px 0}.message.tool{font-size:11px;color:var(--green);border-left:2px solid #bdcdb2;padding:4px 10px}.chat-welcome{margin:30px 0 10px}.chat-welcome .eyebrow{margin-bottom:8px}.chat-welcome h3{font-size:20px;font-weight:500;margin-bottom:12px}.chat-welcome p{font-size:12px;color:var(--muted)}.suggestions{display:grid;gap:8px;margin-top:20px}.suggestions button{text-align:left;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:12px}.suggestions button:hover{background:var(--soft)}.chat-form{border:1px solid var(--line);border-radius:11px;margin:0 18px;background:#fbfbf6;padding:12px}.chat-form textarea{width:100%;background:transparent;padding:0;border:0;resize:none;min-height:46px;max-height:160px;outline:0;font-size:13px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#95988c;font-size:10px}.send{width:32px;height:32px;background:var(--green);color:white;border-radius:8px;font-size:22px;line-height:1}.chat-state{min-height:25px;font-size:11px;color:var(--muted);padding:0 22px}.assistant-footnote{text-align:center;font-size:10px;color:#929889;margin:10px 0 13px}footer{max-width:1280px;padding:0 28px 25px;margin:auto;color:#9a9f92;font-size:11px;display:flex;justify-content:space-between;gap:20px}.mobile-tabs{display:none}.empty{text-align:center;color:var(--muted);border:1px dashed #d8ddcd;border-radius:13px;padding:50px 25px}.empty strong{display:block;font-weight:500;color:var(--ink);margin-bottom:8px}.notice{padding:12px 16px;background:#f3e8dc;border-radius:9px;color:#8a573b;margin-bottom:20px;font-size:12px}.error{color:var(--error);font-size:12px;min-height:22px}.login-screen{max-width:1160px;min-height:100dvh;margin:auto;display:grid;grid-template-columns:1.15fr 1fr;gap:80px;align-items:center;padding:50px 40px}.login-story{height:min(670px,85dvh);display:flex;flex-direction:column;justify-content:space-between}.login-story h1{font-size:43px;line-height:1.6;letter-spacing:-1px}.intro{color:var(--muted);font-size:15px;line-height:2;margin-top:22px}.story-note{color:var(--green);font-size:12px;margin-top:35px}.story-note span{display:inline-grid;place-items:center;width:24px;height:24px;background:var(--soft);border-radius:8px;margin-right:9px}.login-card{background:var(--card);padding:38px;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 55px #293c3507}.login-card h2{font-size:26px;margin-bottom:8px}.login-card>.muted{font-size:12px;margin-bottom:28px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin-bottom:17px}label small{color:var(--muted);font-size:11px}.login-card .native-link{display:block;text-align:center;margin-top:20px}dialog{border:1px solid var(--line);border-radius:16px;padding:26px;width:min(480px,calc(100vw - 32px));max-height:90dvh;background:var(--card);color:var(--ink);box-shadow:0 20px 80px #293c3526}dialog::backdrop{background:#233b3266;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.notification{padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.notification p{font-size:11px;color:var(--muted);margin-top:5px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){main{padding-top:50px}.messages{height:410px}}@media(max-width:1000px){.brand-caption{display:none}.workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.task-toolbar{align-items:stretch;flex-direction:column;gap:9px}.task-toolbar select{max-width:none}.segmented button{flex:1}.header-actions{gap:10px}.connection{font-size:11px}.login-screen{gap:35px}.login-story h1{font-size:34px}.login-card{padding:28px}}
@media(max-width:700px){input,textarea,select,.chat-form textarea{font-size:16px}.topbar{height:68px;padding:0 18px}.brand{font-size:19px}.brand-mark{width:30px;height:30px;font-size:18px;border-radius:9px}.connection{display:none}.header-actions{gap:9px;font-size:11px}.member-name{border:0;padding:0;max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quiet{padding:4px}main{padding:26px 18px 22px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:23px}h1{font-size:24px;letter-spacing:-.6px}.page-heading .muted{font-size:11px;max-width:210px}.page-heading .primary{padding:10px 13px;font-size:12px;white-space:nowrap;margin-top:26px}.eyebrow{font-size:10px}.mobile-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:22px}.mobile-tabs button{padding:11px 3px;min-width:60px;font-size:14px;border-bottom:2px solid transparent;color:var(--muted)}.mobile-tabs [aria-selected=true]{border-color:var(--green);color:var(--green)}.workspace{display:block}.tasks-panel.mobile-hidden,.assistant-panel.mobile-hidden{display:none}.section-top h2{font-size:16px}.task-toolbar{flex-direction:row;align-items:center;gap:10px}.segmented button{padding:5px 8px;font-size:11px}.task-toolbar select{max-width:125px;font-size:12px}.task-card{padding:16px}.task-actions{gap:3px}.task-actions button{padding:6px 9px;min-height:40px}.assistant-panel{position:static}.assistant-heading{padding:18px 18px 12px}.chat-toolbar{padding:0 18px 13px}.chat-toolbar select{font-size:12px}.messages{height:clamp(220px,42dvh,420px);padding:20px 18px}.chat-form{margin:0 13px}.composer-bottom span{font-size:9px}.send{width:40px;height:36px}.login-screen{display:flex;flex-direction:column;gap:30px;padding:32px 22px 45px;min-height:100dvh;justify-content:center}.login-story{height:auto;width:100%;max-width:420px;gap:26px}.login-story .brand{margin-bottom:10px}.login-story h1{font-size:29px;line-height:1.5}.login-story .eyebrow,.story-note,.login-story>.muted{display:none}.intro{font-size:12px;margin-top:12px}.login-card{width:100%;max-width:420px;padding:25px}.login-card h2{font-size:23px}.login-card>.muted{margin-bottom:22px}footer{padding:0 18px 22px;font-size:10px}footer span{display:none}dialog{padding:22px}.form-row{gap:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.notification-status{font-size:12px;color:var(--muted);padding:12px;background:var(--soft);border-radius:8px;overflow-wrap:anywhere}.notification-title{overflow-wrap:anywhere}.notification-result{color:var(--green)!important}.notification.historical .notification-result{color:var(--muted)!important}.notification .native-link{display:inline-block;min-height:36px;padding-top:8px}.panel-footnote{line-height:1.9}
.brand-copy{display:flex;flex-direction:column;gap:1px;line-height:1.35;min-width:0}.brand-copy strong{font-size:19px;font-weight:650;white-space:nowrap}.brand-copy small{font-size:10px;font-weight:400;letter-spacing:1.4px;color:var(--muted)}.brand-mark{flex-shrink:0}.view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.view-toolbar>.muted{font-size:11px}.calendar-panel{border:1px solid var(--line);border-radius:13px;background:var(--card);padding:15px;margin-bottom:15px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.calendar-toolbar h3{white-space:nowrap;font-variant-numeric:tabular-nums}.calendar-navigation{display:flex;align-items:center;gap:2px;flex-shrink:0}.calendar-navigation button{display:grid;place-items:center;min-width:36px;min-height:40px;padding:0;border-radius:7px;font-size:22px;line-height:1}.calendar-navigation button:hover{background:var(--soft)}.calendar-navigation #calendar-today{min-width:44px;font-size:13px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays{text-align:center;font-size:11px;color:var(--muted);margin-bottom:6px}.calendar-day{min-width:0;min-height:80px;border:1px solid transparent;border-radius:7px;background:#f6f6ef;position:relative;text-align:left;padding:7px 5px;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.calendar-day.outside{background:transparent;color:var(--muted)}.calendar-day[aria-current=date] .calendar-number{background:var(--green);color:white;border-radius:50%}.calendar-day[aria-pressed=true]{border-color:var(--green);background:var(--soft)}.calendar-number{font-size:12px;min-width:22px;height:22px;text-align:center;line-height:22px}.calendar-count{position:absolute;right:5px;top:8px;font-size:9px;color:var(--green);font-weight:600}.calendar-previews{display:grid;gap:3px;width:100%;margin-top:6px}.calendar-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--green)}.calendar-preview.done{color:var(--muted);text-decoration:line-through}.calendar-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px;margin-top:10px}.calendar-foot button{font-size:11px;text-decoration:underline}.calendar-agenda{margin-top:15px;padding-top:15px;border-top:1px solid var(--line);font-size:14px}
@media(max-width:1000px){.calendar-panel{padding:11px}.calendar-day{min-height:62px}.calendar-previews{display:none}.calendar-day:has(.calendar-count):after{content:'';width:4px;height:4px;border-radius:50%;background:var(--green);position:absolute;bottom:9px;left:calc(50% - 2px)}}
@media(max-width:700px){.brand-copy strong{font-size:14px;letter-spacing:0}.brand-copy small{font-size:8px;letter-spacing:1px}.topbar{gap:8px;padding:0 14px}.brand{gap:7px}.header-actions{gap:7px}.member-name{max-width:44px}.task-toolbar{flex-wrap:wrap}.task-toolbar select{flex:1;min-width:100px}.view-toolbar>.muted{font-size:10px}.calendar-day{min-height:48px;padding:5px 2px}.calendar-count{top:auto;bottom:5px;right:5px;font-size:8px}.calendar-number{font-size:12px}.calendar-toolbar h3{font-size:15px}.calendar-day:has(.calendar-count):after{bottom:7px}.calendar-foot{font-size:9px}}

@media(max-width:700px){.task-toolbar .segmented{flex:0 0 auto}.task-toolbar .segmented button{white-space:nowrap;flex:0 0 auto}.task-toolbar select{max-width:none;min-width:0;width:100%;flex:1 0 100%}}
.list-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;margin-top:18px;font-size:12px}.list-pagination form{display:flex;gap:5px}.list-pagination input{width:72px;min-height:38px}#weekday-options{display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--line);border-radius:9px;margin:0 0 18px;padding:14px}#weekday-options label{display:flex;flex-direction:row;align-items:center;margin:0;gap:5px}#weekday-options input{min-height:20px}#weekday-options small{width:100%;color:var(--muted);font-size:11px}small a{text-decoration:underline}.scenario-help{padding:0 22px 12px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}.chat-toolbar{border-bottom:0;padding-bottom:8px}.conversation-files{margin:12px 18px;padding:12px;background:var(--soft);border-radius:8px;font-size:11px;max-height:160px;overflow:auto}.file-row{display:flex;align-items:center;gap:8px;margin-top:7px}.file-row a{overflow-wrap:anywhere}.file-row small{margin-left:auto;white-space:nowrap}.file-download{text-decoration:underline;color:var(--green)}.upload-label{margin:0!important;display:inline-flex;cursor:pointer;gap:0;font-size:11px}.upload-label input{width:1px;height:1px;overflow:hidden;position:absolute;opacity:0}.upload-label:focus-within{outline:2px solid var(--green)}.message.assistant{white-space:normal;width:100%;min-width:0}.message p{margin:0 0 10px}.message h1,.message h2,.message h3{margin:14px 0 9px;line-height:1.5}.message h1{font-size:22px}.message h2{font-size:19px}.message h3{font-size:16px}.message ul,.message ol{padding-left:23px;margin:8px 0 13px}.message pre{padding:12px;background:#f1f1e9;border-radius:8px;white-space:pre;overflow:auto;max-width:100%;font-size:11px}.message code{background:#eeefe6;border-radius:3px;padding:2px 4px}.message pre code{padding:0}.message table{border-collapse:collapse;display:block;overflow:auto;max-width:100%;font-size:12px;margin:10px 0}.message th,.message td{border:1px solid var(--line);padding:7px 10px;min-width:60px}.message th{background:var(--soft)}.message blockquote{margin:10px 0;padding-left:12px;border-left:3px solid #bbcbb3;color:var(--muted)}.message a{text-decoration:underline;color:var(--green)}
@media(max-width:700px){.list-pagination{font-size:11px;gap:5px}.scenario-help{padding:0 18px 10px;font-size:10px}.file-row{flex-wrap:wrap}.conversation-files{margin:10px 13px}.composer-bottom>span{display:none}.upload-label{min-height:34px;align-items:center}}
.agent-settings-dialog{width:min(700px,calc(100vw - 32px))}.agent-settings-dialog>form>p{font-size:12px;margin-bottom:14px}.agent-settings-dialog pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;background:var(--soft);padding:12px}.agent-settings-dialog details{margin:14px 0}.agent-settings-dialog textarea{max-height:40dvh}#agent-workspace{overflow-wrap:anywhere}#show-register,#show-login{display:block;margin:12px auto 0}
@media(max-width:380px){.member-name{display:none}}

.boot-screen{max-width:620px;margin:16vh auto;padding:28px;display:grid;gap:22px}.boot-screen .brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2px}.boot-screen h1{font-size:26px}.boot-screen p{color:var(--muted)}.boot-screen .primary{justify-self:start;text-decoration:none}
.cosmos-nav,.space-tabs,.space-filters,.member-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.cosmos-nav button,.space-tabs button{border:1px solid var(--line,#ddd);border-radius:24px;padding:10px 18px;background:transparent;color:inherit;cursor:pointer}.cosmos-nav button[aria-pressed=true],.space-tabs button[aria-pressed=true]{background:var(--ink,#213f37);color:white}.spaces-screen{padding:24px;background:var(--paper,#fffdf8);border:1px solid var(--line,#ddd);border-radius:20px;margin-bottom:22px}.space-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.space-card,.record-card,.space-file{padding:20px;border:1px solid var(--line,#e3e0d8);border-radius:16px;margin:14px 0;overflow-wrap:anywhere}.space-card h3,.record-card h3{margin:10px 0}.space-file{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.scope-picker{padding:0 20px;font-size:12px;color:var(--muted)}.scope-picker select{margin-top:6px}.space-modal{width:min(720px,94vw);max-height:90vh;overflow:auto}.space-modal form{display:grid;gap:16px}.space-modal fieldset{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #ddd;border-radius:8px}.space-modal fieldset label{display:flex;align-items:center;gap:6px}.space-modal input[type=checkbox]{width:18px;min-height:18px;margin:0}.space-modal pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f3f1eb}.space-modal small{display:block}.markdown{line-height:1.8;overflow-wrap:anywhere}.markdown pre{overflow:auto;padding:14px;background:#f4f2ec;border-radius:8px}.markdown img{max-width:100%}.markdown table{border-collapse:collapse;max-width:100%;display:block;overflow:auto}.markdown th,.markdown td{padding:8px;border:1px solid #ddd}.record-card .file-download{display:block;margin:12px 0}.member-row select{max-width:220px}.member-row span{min-width:130px}.space-filters select{max-width:240px}
@media(max-width:760px){.spaces-screen{padding:14px}.space-grid{grid-template-columns:1fr}.space-card,.record-card{padding:14px}.cosmos-nav{gap:6px}.cosmos-nav button{padding:8px 12px}.scope-picker{padding:0 14px}.space-tabs{gap:5px}.space-tabs button{padding:8px 12px}}

.space-visibility{font-size:12px;color:var(--green);margin:10px 0;line-height:1.8}

/* HC 0.6: a quiet harbour, with room to explore. */
:root{--space-blue:#314a60;--star:#c2975b}
.topbar{height:72px;position:sticky;top:0;z-index:20;background:#f5f3edf5;padding:0 max(24px,calc((100vw - 1392px)/2));gap:20px}
.topbar .brand-caption{display:none}.topbar .cosmos-nav{margin:0;gap:5px;flex-wrap:nowrap}.cosmos-nav button{border:0;border-radius:8px;padding:8px 15px;white-space:nowrap;min-height:40px}.cosmos-nav button[aria-pressed=true]{background:var(--soft);color:var(--green)}.header-actions{gap:14px}.member-menu{position:relative}.member-menu summary{cursor:pointer;list-style:none;padding:9px 8px;min-height:40px}.member-menu summary::-webkit-details-marker{display:none}.menu-content{position:absolute;right:0;top:47px;min-width:210px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 12px 40px #293c351a;display:grid;gap:4px;z-index:35}.menu-content .member-name{display:block;border:0;padding:0;max-width:185px;font-size:14px}.menu-content>small{padding-bottom:8px;border-bottom:1px solid var(--line);margin-bottom:4px}.menu-content button{text-align:left;padding:9px;border-radius:6px}.menu-content button:hover{background:var(--soft)}
main{max-width:1392px;padding:22px 24px 28px}.page-heading{margin-bottom:22px;align-items:center}.page-heading h1{font-size:26px;letter-spacing:-.5px}.page-heading .eyebrow{margin-bottom:3px;letter-spacing:1.2px}.page-heading .eyebrow:before{content:'✧';margin-right:9px;color:var(--star)}.page-heading .muted{font-size:12px;margin-top:4px}.workspace{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px}.section-top{gap:14px;margin-bottom:14px}.section-top #multi-select{margin-left:auto;font-size:12px}.section-top #multi-select[aria-pressed=true]{background:var(--soft);border-radius:7px}.view-toolbar{margin-bottom:10px}.task-toolbar{margin-bottom:13px}
select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237b8177' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:11px 7px}
html[data-input=pointer] button:focus,html[data-input=pointer] a:focus,html[data-input=pointer] summary:focus{outline:none}summary:focus-visible{outline:2px solid var(--star);outline-offset:3px}
.task-card.selected{border-color:#77978b;box-shadow:0 0 0 1px #77978b;background:#fbfdf7}.task-select{margin:0;display:flex;align-items:center;min-width:26px;min-height:30px;cursor:pointer}.task-checkbox{appearance:auto;width:19px;height:19px;min-height:19px;padding:0;margin:2px 0 0;accent-color:var(--green);cursor:pointer}.task-top{gap:8px}.task-description{white-space:normal;line-height:1.8;font-size:12px;color:#667266}.task-description>*{margin:0 0 5px}.task-description.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:3.6em;overflow:hidden}.task-description p:last-child{margin-bottom:0}.task-description a{color:var(--space-blue);text-decoration:underline}.task-description ul,.task-description ol{padding-left:20px}.task-description pre{white-space:pre-wrap}.description-toggle{font-size:11px;color:var(--green);padding:4px 0;min-height:30px}.selection-bar{display:flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid #ced9ca;border-radius:9px;background:var(--soft);margin-bottom:12px;font-size:12px}.selection-bar #selection-open{margin-left:auto;color:var(--green)}
.assistant-panel{top:86px;display:flex;flex-direction:column;height:var(--assistant-height,calc(100dvh - 200px));min-height:260px;max-height:calc(100dvh - 98px)}.assistant-panel>*{flex-shrink:0}.assistant-heading{padding:15px 17px 10px;gap:10px}.assistant-avatar{width:34px;height:34px;line-height:34px;font-size:24px;color:var(--space-blue);background:#edf0e8}.assistant-heading p{font-size:11px}.chat-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr) 30px;gap:6px;padding:0 15px 10px;align-items:center}.chat-toolbar select{width:100%;max-width:none;font-size:11px;padding:5px 8px;min-height:36px;background-color:#f8f8f1}.chat-toolbar select:not([multiple]){padding-right:24px!important;background-position:right 9px center;background-size:9px 6px}.help-button{width:28px;height:28px;border:1px solid var(--line);border-radius:50%;font-size:13px;color:var(--muted)}.help-button:hover{background:var(--soft)}.messages{height:auto;flex:1 1 0;min-height:35px;overflow:auto;overscroll-behavior:contain;padding:17px;gap:13px;scroll-behavior:auto}.chat-welcome{margin:8px 0}.chat-welcome h3{font-size:19px}.suggestions{gap:7px;margin-top:14px}.suggestions button{padding:9px 11px}.chat-state{font-size:11px;min-height:23px;padding:0 17px;max-height:42px;overflow:auto}.chat-form{margin:0 12px 12px;padding:10px}.chat-form textarea{min-height:38px;max-height:80px;font-size:13px;line-height:1.7}.conversation-files{margin:0 15px 7px;font-size:11px}.conversation-files summary{cursor:pointer;color:var(--green);min-height:25px}.conversation-files #file-list{max-height:100px;overflow:auto;padding:6px 0}.conversation-files .file-row{padding:3px 0}.task-references{display:flex;flex-wrap:wrap;gap:5px;max-height:60px;overflow:auto;margin-bottom:7px}.task-reference{display:inline-flex;align-items:center;gap:5px;max-width:100%;border-radius:6px;padding:3px 5px 3px 8px;background:#e8efea;color:var(--space-blue);font-size:12px}.task-reference a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.task-reference small{font-size:10px;opacity:.7}.task-reference button{min-width:25px;min-height:25px;padding:0 4px;font-size:16px}.task-reference.unavailable{color:var(--error);background:#f4e9df}.context-suggestions{display:flex;gap:6px;max-height:59px;overflow:auto;margin:0 0 8px;flex-wrap:wrap}.context-suggestions button{border:1px solid #e0e5d9;border-radius:6px;font-size:11px;padding:4px 7px;min-height:28px;white-space:nowrap}.context-suggestions button:hover{background:var(--soft)}
#assistant-help-dialog p{font-size:13px;margin:12px 0;line-height:1.9}#assistant-help-dialog details{padding:12px 0;border-top:1px solid var(--line)}#assistant-help-dialog summary{cursor:pointer;font-size:13px}.scenario-help{padding:0}.system-dialog{width:min(800px,calc(100vw - 24px));max-height:91dvh}.system-dialog .space-tabs{margin:0 0 18px;gap:6px}.system-dialog .space-tabs button{padding:7px 12px}.system-dialog h3{margin:17px 0 12px}.system-dialog p.muted{font-size:12px;line-height:1.9;margin-bottom:12px}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.check-label{display:flex;flex-direction:row;align-items:center;gap:9px;margin:14px 0;font-size:12px}.check-label input{width:18px;height:18px;min-height:18px;accent-color:var(--green);margin:0}.admin-member{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.admin-member small{flex-basis:100%;color:var(--muted)}.admin-member label{margin:0;flex:1}.admin-member .quiet{border:1px solid var(--line);border-radius:7px;padding:8px 10px;align-self:end}.system-dialog details{margin:18px 0;padding:14px;background:var(--soft);border-radius:10px}.system-dialog details summary{cursor:pointer;margin-bottom:10px}.system-dialog textarea{width:100%;font-family:ui-monospace,monospace;font-size:12px;min-height:150px}.provider-card{border:1px solid var(--line);border-radius:10px;margin-bottom:18px;padding:16px}.provider-card legend{padding:0 7px;font-weight:600}.invite-result pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--soft);padding:12px}.invitation-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.status-grid dd{margin:0;color:var(--green)}#assign-access{border-top:1px solid var(--line);margin:15px 0;padding-top:15px}#assign-access p{font-size:12px}.login-story{position:relative;isolation:isolate}.login-story:after{content:'';position:absolute;z-index:-1;width:340px;height:340px;right:-25px;top:20%;border:1px solid #b9c7b33d;border-radius:50%;transform:rotate(-28deg) scaleY(.6);box-shadow:0 0 0 50px #d7ddca1c,0 0 0 100px #d7ddca12;pointer-events:none}.login-story h1{color:var(--space-blue)}.story-note span{background:var(--soft);color:var(--star)}
@media(min-width:1450px){main{padding-top:24px}}
@media(max-width:1050px){.topbar{gap:12px;padding-inline:20px}.topbar .brand-copy strong{font-size:16px}.cosmos-nav button{padding:8px 10px}.workspace{gap:17px}.header-actions{gap:8px}.chat-toolbar{gap:4px;padding-inline:10px}.assistant-heading{padding-inline:13px}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.topbar{height:auto;min-height:104px;padding:10px 14px 0;position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}.topbar .brand-copy strong{font-size:15px}.topbar .cosmos-nav{grid-column:1/-1;grid-row:2;justify-content:center;gap:10px;border-top:1px solid var(--line);padding-top:3px}.topbar .cosmos-nav button{flex:1;min-height:41px;max-width:130px;font-size:12px}.topbar .header-actions{grid-column:2;grid-row:1}.menu-content .member-name{max-width:185px;font-size:14px}.page-heading{margin-bottom:17px;align-items:center}.page-heading h1{font-size:21px;letter-spacing:-.5px}.page-heading .muted{font-size:11px;max-width:245px}.page-heading .primary{margin:0;padding:8px 11px;min-height:43px;font-size:12px}.page-heading .eyebrow{font-size:10px}main{padding:18px 14px 22px}.mobile-tabs{position:sticky;top:0;z-index:15;background:var(--paper);gap:24px;margin-bottom:15px}.mobile-tabs button{min-height:47px;padding:9px 3px}.workspace{display:block}.assistant-panel{position:relative;top:auto;scroll-margin-top:58px;height:var(--assistant-height,calc(100dvh - 66px));max-height:calc(var(--visual-height,100dvh) - 66px);min-height:220px}.assistant-heading{padding:11px 13px 9px}.assistant-heading p{display:none}.chat-toolbar{padding:0 10px 8px}.chat-toolbar select{font-size:16px;min-height:38px;padding-left:6px}.messages{padding:13px}.chat-form textarea{font-size:16px;min-height:40px}.task-references{max-height:58px}.task-reference a{max-width:215px}.conversation-files #file-list{max-height:75px}.context-suggestions{max-height:56px}.chat-form{margin-bottom:10px;padding:8px}.task-card{padding:14px}.task-select{min-width:27px;min-height:32px}.task-checkbox{width:21px;height:21px}.task-actions button{min-height:40px}.section-top{gap:9px}.section-top h2{font-size:16px}.section-top .native-link{font-size:11px}.selection-bar{gap:8px;padding:6px 10px}.settings-grid{grid-template-columns:1fr}.system-dialog{padding:20px 16px}.system-dialog .space-tabs{gap:4px}.system-dialog .space-tabs button{padding:7px 9px;font-size:12px}.system-dialog input,.system-dialog select,.system-dialog textarea{font-size:16px}.status-grid{font-size:12px;grid-template-columns:1fr 1fr}.login-story:after{width:210px;height:210px;top:30%;right:0}.spaces-screen{padding:14px}.space-filters select{flex:1;max-width:none;min-width:120px}.task-reference button{min-height:30px;min-width:29px}}
@media(max-height:540px){.assistant-heading{padding-block:7px}.assistant-avatar{display:none}.assistant-heading p{display:none}.context-suggestions{max-height:30px}.conversation-files #file-list{max-height:45px}.chat-form textarea{min-height:30px}.messages{min-height:20px}.chat-welcome{margin:0}.chat-welcome .eyebrow{display:none}.task-references{max-height:35px}}
@media(max-width:950px) and (max-height:500px) and (pointer:coarse){.topbar{position:static;height:58px;min-height:58px}.workspace{display:block}.mobile-tabs{display:flex;position:sticky;top:0;z-index:15;background:var(--paper);margin-bottom:12px}.mobile-tabs button{min-height:43px}.tasks-panel.mobile-hidden,.assistant-panel.mobile-hidden{display:none}.assistant-panel{position:relative;top:auto;scroll-margin-top:54px;min-height:200px;max-height:calc(var(--visual-height,100dvh) - 62px)}.chat-toolbar select{font-size:16px}.page-heading{margin-bottom:15px}.page-heading h1{font-size:22px}.page-heading .muted{font-size:11px}.messages{min-height:20px}.chat-form textarea{font-size:16px;min-height:30px}}
html[data-input=keyboard] button:focus,html[data-input=keyboard] a:focus,html[data-input=keyboard] summary:focus{outline:3px solid var(--star);outline-offset:3px}
.assistant-panel.compact-viewport .assistant-heading{padding:7px 12px}.assistant-panel.compact-viewport .assistant-avatar,.assistant-panel.compact-viewport .assistant-heading p,.assistant-panel.compact-viewport .context-suggestions{display:none}.assistant-panel.compact-viewport .assistant-heading .icon-button{min-height:26px;height:26px}.assistant-panel.compact-viewport .chat-toolbar{padding-bottom:6px}.assistant-panel.compact-viewport .chat-state{min-height:17px;max-height:17px;line-height:17px}.assistant-panel.compact-viewport .messages{min-height:0;padding-block:10px}.assistant-panel.compact-viewport .chat-form textarea{height:38px;min-height:38px;max-height:38px}.assistant-panel.compact-viewport .task-references{flex-wrap:nowrap;max-height:30px;margin-bottom:6px}.assistant-panel.compact-viewport .task-reference{padding-block:0;flex-shrink:0}.assistant-panel.compact-viewport .conversation-files{max-height:60px;min-height:25px;flex:0 1 auto;overflow:auto}.assistant-panel.compact-viewport .conversation-files #file-list{max-height:35px}
.member-menu[open] .menu-content{display:flex;flex-direction:column;align-items:stretch;max-width:calc(100vw - 28px)}.member-menu .menu-content>button{display:block;width:100%;text-align:left;white-space:nowrap}.member-menu .menu-content>.member-name,.member-menu .menu-content>small{width:100%}

@media(max-width:1000px){.calendar-toolbar{gap:4px;margin-bottom:8px}.calendar-toolbar h3{font-size:14px;letter-spacing:-.2px}.calendar-navigation button{min-width:32px;min-height:40px}.calendar-navigation #calendar-today{min-width:40px;font-size:12px}}
/* Shared menus keep platform form values, with one visual language on every device. */
.select-control{position:relative;display:block;min-width:0}.select-control>select.select-source{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;max-width:1px!important;padding:0!important;margin:0!important;opacity:0;clip-path:inset(50%);pointer-events:none}.select-trigger{width:100%;min-height:44px;padding:10px 34px 10px 12px;display:flex;align-items:center;text-align:left;border:1px solid var(--line);border-radius:9px;background:var(--card);position:relative;font:inherit}.select-trigger:after{content:'';position:absolute;right:13px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);pointer-events:none}.select-trigger:hover,.select-trigger[aria-expanded=true]{border-color:#a5b8a0;background:#fafbf5}.select-caption{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-popover{position:fixed;z-index:2000;display:flex;flex-direction:column;padding:7px;border:1px solid #dce3d5;border-radius:13px;background:var(--card);box-shadow:0 12px 38px #293c3526;overflow:hidden}.select-search{width:100%;flex-shrink:0;min-height:38px;margin-bottom:6px;padding:8px 10px;font-size:13px}.select-options{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9c7b3 transparent}.select-option{display:block;width:100%;padding:10px 32px 10px 11px;border-radius:7px;min-height:40px;text-align:left;position:relative;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.select-option:hover,.select-option:focus-visible{background:var(--soft);outline:0}.select-option[aria-selected=true]{background:var(--soft);color:var(--green);font-weight:600}.select-option[aria-selected=true]:after{content:'✓';position:absolute;right:11px;top:10px}.select-empty{font-size:12px;padding:16px 10px;color:var(--muted)}.task-toolbar>.select-control{max-width:180px;width:100%;font-size:12px}.task-toolbar .select-trigger{min-height:40px;padding-top:6px;padding-bottom:6px}.chat-toolbar>.select-control{flex:1;min-width:0}.chat-toolbar .select-trigger{font-size:11px;min-height:36px;padding:6px 28px 6px 8px;background:#f8f8f1}.chat-toolbar .select-trigger:after{right:10px;width:6px;height:6px}.space-filters>.select-control{width:220px;max-width:240px}.member-row>.select-control{flex:1;max-width:220px}.conversation-dialog{width:min(650px,calc(100vw - 24px));max-height:88dvh;overflow:auto}.conversation-dialog .dialog-heading{margin-bottom:14px}.conversation-tools{display:flex;gap:10px;margin-bottom:12px}.conversation-tools input{flex:1;min-width:0}.conversation-tools button{padding:9px 13px;white-space:nowrap;font-size:12px}.conversation-dialog #conversation-status{font-size:11px;margin:8px 0 13px}.conversation-row{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:7px;margin-bottom:8px}.conversation-row.is-current{border-color:#93ac8b;background:#f4f8ef}.conversation-open{flex:1;min-width:0;text-align:left;padding:8px;font-size:13px;overflow-wrap:anywhere}.conversation-open small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.conversation-actions{display:flex;gap:3px;flex-shrink:0}.conversation-actions button{min-width:37px;min-height:40px;padding:5px;font-size:12px;border-radius:7px}.conversation-actions button:first-child{font-size:19px;color:var(--star)}.conversation-actions button:hover{background:var(--soft)}.conversation-rename{display:flex;gap:6px;width:100%;padding:5px}.conversation-rename input{flex:1;min-width:0}.conversation-rename button{padding:6px 12px;min-height:40px;font-size:12px}.conversation-dialog #conversation-more{display:block;margin:12px auto 0;color:var(--green)}
.file-picker{position:relative;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:11px;margin:12px 0 0;padding:12px;border:1px dashed #b9c9af;border-radius:11px;background:#f7f9f2;cursor:pointer}.file-picker>input{position:absolute;width:1px;height:1px;min-height:1px;padding:0;opacity:0;clip-path:inset(50%)}.file-picker:focus-within{outline:2px solid var(--green);outline-offset:2px}.file-picker:has(input:disabled){cursor:wait;opacity:.65}.file-picker-button{display:inline-flex;align-items:center;justify-content:center;background:var(--soft);color:var(--green);border:1px solid #d3dfca;border-radius:8px;min-height:40px;padding:7px 12px;font-weight:500;font-size:12px}.file-picker:hover .file-picker-button{background:#e0ead7}.file-picker-status{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.space-modal fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px;margin:0;padding:13px;border:1px solid var(--line);border-radius:11px;min-width:0}.space-modal fieldset legend{padding:0 7px;font-size:12px;color:var(--muted)}.space-modal fieldset label.choice-option{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;margin:0;padding:9px;min-height:43px;min-width:0;border:1px solid transparent;border-radius:8px;font-size:12px;line-height:1.6;cursor:pointer}.space-modal .choice-option span{min-width:0;overflow-wrap:anywhere}.space-modal .choice-option:hover{background:#f5f6ee}.space-modal .choice-option:has(:checked){background:var(--soft);border-color:#cedbc5;color:var(--green)}.space-modal .choice-option input[type=checkbox]{appearance:none;flex-shrink:0;width:20px;height:20px;min-height:20px;padding:0;margin:0;border:1.5px solid #adbba7;border-radius:5px;background:var(--card);cursor:pointer}.space-modal .choice-option input:checked{background-color:var(--green);border-color:var(--green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.space-modal .choice-option input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.attachment-choices{grid-column:1/-1;max-height:220px;overflow:auto;min-width:0}.space-modal fieldset>.file-picker{grid-column:1/-1;margin-top:6px}.space-modal form>p.muted{font-size:11px;line-height:1.8}.space-modal form>label{margin:0}.space-modal form .select-control{width:100%}
@media(max-width:1000px){.task-toolbar>.select-control{max-width:none}.chat-toolbar{gap:6px}.chat-toolbar .select-trigger{padding-left:7px}}
@media(max-width:700px){.task-toolbar>.select-control{max-width:none;width:100%;flex:1 0 100%}.chat-toolbar .select-trigger{font-size:12px;min-height:38px;padding-right:25px}.select-search{font-size:16px}.select-option{min-height:44px;font-size:14px}.conversation-dialog{padding:18px 14px}.conversation-dialog .dialog-heading h2{font-size:17px}.conversation-tools{gap:7px}.conversation-tools input,.conversation-rename input{font-size:16px}.conversation-row{gap:3px}.conversation-open{font-size:12px;padding:6px}.conversation-actions button{min-width:33px}.conversation-tools button{padding:8px 10px}.conversation-rename{flex-wrap:wrap}.conversation-rename input{flex-basis:100%}.file-picker{padding:11px;gap:8px}.space-filters>.select-control{flex:1;min-width:120px;max-width:none}.space-modal fieldset{grid-template-columns:1fr 1fr;padding:9px}.space-modal fieldset label.choice-option{padding:7px;font-size:11px}}

.password-dialog{width:min(94vw,480px);max-height:90dvh;overflow:auto}.password-dialog form{display:grid;gap:14px}.password-dialog label{display:grid;gap:6px}.password-dialog input{width:100%;min-width:0}.password-dialog .password-success{color:var(--green);padding:10px;background:var(--soft);border-radius:8px}

.site-legal-footer{position:relative;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.75rem;width:100%;max-width:none;margin:0;padding:12px 16px;box-sizing:border-box;color:#596b62;background:transparent;font-size:14px;line-height:1.5;text-align:center}.site-legal-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}.site-legal-footer a:hover{color:#375c49}.site-legal-footer a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Arrange the controls in one row and reserve the available height for messages. */
.task-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  margin-bottom: 12px;
}
.task-toolbar .segmented { flex: 0 0 auto; padding: 2px; }
.task-toolbar .segmented button { min-height: 34px; padding: 4px 7px; white-space: nowrap; }
.task-toolbar > .select-control {
  flex: 1 0 82px;
  min-width: 82px;
  max-width: 170px;
  width: auto;
  margin-left: auto;
}
.task-toolbar > .select-control .select-trigger { min-height: 38px; padding-left: 8px; }
.task-reminder { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin: 12px 0; min-width: 0; }
.task-reminder legend { padding: 0 6px; }
#reminder-preview { font-size: 12px; margin-top: 8px; line-height: 1.6; }
.task-attachments { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 8px; }
.task-attachment-link { color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.task-attachment-link:hover { text-decoration: underline; }

.assistant-panel { position: sticky; isolation: isolate; }
.assistant-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.assistant-identity h2 { font-size: 15px; white-space: nowrap; }
.assistant-heading .assistant-full-title, .assistant-heading .expanded-control { display: none; }
.assistant-heading .chat-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  min-width: 0;
  gap: 4px;
  padding: 0;
}
.assistant-heading .chat-toolbar .select-trigger { min-height: 35px; padding-left: 6px; padding-right: 19px; }
.assistant-heading .chat-toolbar .select-trigger::after { right: 7px; }
.assistant-actions { display: flex; align-items: center; gap: 1px; }
.assistant-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 36px;
  border-radius: 7px;
  padding: 0;
  color: var(--green);
  font-size: 17px;
}
.assistant-icon:hover, .assistant-icon[aria-expanded=true] { background: var(--soft); }
.assistant-main { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.assistant-main .messages { flex: 1 1 0; min-height: 0; }
.assistant-main .message { font-size: 16px; line-height: 1.65; }
.assistant-main .chat-state { min-height: 0; padding: 3px 12px; line-height: 1.45; }
.assistant-main .chat-state:empty { display: none; }
.assistant-main .chat-form { flex: 0 0 auto; margin: 0 9px 9px; padding: 5px 7px; }
.composer-context { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-x: auto; }
.composer-context .task-references, .composer-context .context-suggestions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: max-content;
  max-height: none;
  margin: 2px 0 4px;
  overflow: visible;
}
.composer-context .task-reference { max-width: 180px; }
.composer-context .task-reference a { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.assistant-main .composer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 3px; align-items: end; }
.assistant-main .chat-form #chat-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 5px;
  min-height: 36px;
  max-height: 104px;
  font-size: 16px;
  line-height: 1.45;
  resize: none;
}
.assistant-main .composer-bottom .send { width: 34px; min-width: 34px; height: 36px; min-height: 36px; min-block-size: 36px; border-radius: 8px; }
#file-count { position: absolute; top: 1px; right: 1px; background: var(--green); color: white; border-radius: 12px; font-size: 10px; min-width: 13px; padding: 0 2px; }
#file-count:empty { display: none; }
.assistant-side-heading { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 8px; }
.assistant-panel .conversation-files {
  position: absolute;
  z-index: 3;
  right: 43px;
  bottom: 54px;
  width: min(330px, calc(100% - 52px));
  max-height: min(300px, 45%);
  overflow: auto;
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px #263d3220;
}
.assistant-panel .conversation-files #file-list { max-height: none; overflow: visible; padding: 0; }
.assistant-panel .file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.assistant-panel .file-download { overflow-wrap: anywhere; }
.file-group-title { font-size: 13px; color: var(--muted); margin: 9px 0 4px; }
.assistant-panel .file-row .quiet { min-height: 28px; color: var(--green); padding: 3px 5px; }
.attachment-confirm-button { margin-left: 6px; }

body.assistant-expanded { overflow: hidden; }
.assistant-panel.is-expanded {
  --left-column: 0px;
  --right-column: 0px;
  position: fixed;
  z-index: 40;
  inset: var(--visual-offset, 0px) 0 auto;
  display: grid !important;
  grid-template-columns: var(--left-column) minmax(0, 1fr) var(--right-column);
  grid-template-rows: auto minmax(0, 1fr);
  height: var(--visual-height, 100dvh);
  max-height: none;
  min-height: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border: 0;
  border-radius: 0;
}
.assistant-panel.is-expanded.has-history { --left-column: clamp(210px, 23vw, 286px); }
.assistant-panel.is-expanded.has-files { --right-column: clamp(208px, 22vw, 286px); }
.is-expanded .assistant-heading { grid-row: 1; grid-column: 1 / -1; padding: 10px 15px; }
.is-expanded .assistant-identity h2:first-child { display: none; }
.is-expanded .assistant-heading .assistant-full-title { display: block; }
.is-expanded .assistant-heading .expanded-control { display: inline-grid; }
.is-expanded .chat-toolbar { max-width: 650px; width: 100%; margin-inline: auto; }
.is-expanded .assistant-main { grid-row: 2; grid-column: 2; }
.is-expanded .assistant-main .messages { padding: 20px clamp(16px, 5vw, 52px); }
.is-expanded .assistant-main .message { max-width: min(100%, 860px); }
.is-expanded .assistant-main .chat-form { margin: 0 clamp(12px, 4vw, 38px) 12px; }
.is-expanded .assistant-history, .assistant-panel.is-expanded .conversation-files {
  grid-row: 2;
  grid-column: 1;
  position: static;
  width: auto;
  max-height: none;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  background: var(--paper);
}
.assistant-panel.is-expanded .conversation-files { grid-column: 3; border-right: 0; border-left: 1px solid var(--line); }
.assistant-history .conversation-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
.assistant-history .conversation-tools input, .assistant-history .conversation-tools button { min-height: 36px; padding: 5px 7px; }
.assistant-history .conversation-tools button { white-space: nowrap; font-size: 12px; }
.assistant-history .conversation-row { padding: 5px; }
.assistant-history .conversation-rename { display: flex; flex-wrap: wrap; }
.assistant-history .conversation-rename input { width: 100%; }
@media (max-width: 850px) {
  .assistant-panel.is-expanded { grid-template-columns: 0px minmax(0, 1fr) 0px; grid-template-rows: 86px minmax(0, 1fr); }
  .is-expanded .assistant-heading { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 34px 32px; padding: 6px 11px; gap: 3px; }
  .is-expanded .assistant-heading .chat-toolbar { grid-row: 2; grid-column: 1 / -1; }
  .is-expanded .assistant-heading .assistant-actions { grid-row: 1; grid-column: 2; }
  .is-expanded .assistant-history, .assistant-panel.is-expanded .conversation-files {
    position: absolute;
    z-index: 4;
    top: 86px;
    bottom: 0;
    left: 0;
    width: min(310px,86vw);
    box-shadow: 0 12px 24px #263d322b;
  }
  .assistant-panel.is-expanded .conversation-files { right: 0; left: auto; }
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  .assistant-panel:not(.is-expanded) { position: relative; top: auto; }
  .assistant-heading .chat-toolbar .select-trigger { font-size: 12px; }
  .task-toolbar .segmented button { padding-inline: 4px; font-size: 11px; }
  .task-toolbar > .select-control { flex-basis: 70px; min-width: 70px; }
  .task-toolbar > .select-control .select-trigger { font-size: 11px; padding-right: 21px; }
  .assistant-actions .assistant-icon { width: 28px; min-width: 28px; }
}
@media (max-width: 380px) {
  .assistant-panel:not(.is-expanded) .assistant-heading { grid-template-columns: minmax(0,1fr) auto; }
  .assistant-panel:not(.is-expanded) .assistant-identity { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
}
