:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#242454;background:#f7f8fc;font-size:17px;line-height:1.55;--teal:#333399;--muted:#62627c;--line:#dcddeb}*{box-sizing:border-box}body{margin:0}a{color:var(--teal);text-underline-offset:3px}button,input,textarea,select{font:inherit}button,.button{border:1px solid var(--teal);border-radius:8px;padding:.6rem 1rem;background:var(--teal);color:white;cursor:pointer;text-decoration:none;min-height:44px}button.secondary,.button.secondary{background:white;color:var(--teal)}button:disabled{opacity:.55;cursor:wait}input,textarea,select{width:100%;border:1px solid #9393ad;border-radius:7px;padding:.65rem;background:white;color:#242454}textarea{min-height:180px;resize:vertical}label{display:block;font-weight:600;margin:.85rem 0 .3rem}input[type=checkbox]{width:20px;height:20px;margin-right:.5rem;vertical-align:middle}h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;margin:0 0 .6rem}h2{font-size:1.3rem;line-height:1.3}h3{font-size:1.08rem}p{margin:.5rem 0 1rem}.muted,small{color:var(--muted)}.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--teal)}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{padding:1.8rem 1.1rem;background:#27276f;color:#ffffff}.brand{font-size:1.4rem;font-weight:750}.sidebar small{color:#d8dcf3}.sidebar nav{display:flex;flex-direction:column;gap:6px;margin:2rem 0}.sidebar nav a{color:#f3f4ff;padding:.65rem .8rem;text-decoration:none;border-radius:8px}.sidebar nav a[aria-current=page]{background:#dcf6ff;color:#27276f;font-weight:700}.sidebar .logout{width:100%;border-color:#a9b7e3;background:transparent}.workspace{min-width:0;padding:2.2rem clamp(1rem,4vw,3.5rem);max-width:1500px;width:100%}.topbar{display:flex;justify-content:space-between;gap:1rem;margin-bottom:2rem}.tag{display:inline-block;background:#eef4ef;border-radius:20px;padding:.2rem .65rem;font-size:.78rem;font-weight:650}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:1.5rem 0}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:1.25rem;margin:1rem 0;box-shadow:0 3px 10px #2424540a;overflow-wrap:anywhere}.grid .card{margin:0}.metric{font-size:2.1rem;font-weight:700;line-height:1.2}.actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0}.notice{padding:1rem;border-left:4px solid var(--teal);background:#eef4ef;border-radius:5px;margin:1rem 0}.error{border-color:#a73333;background:#fff0ed;color:#842626}.empty{padding:2rem;border:1px dashed #9595b1;border-radius:10px;background:#fafbfe}.status{min-height:1.8rem}.login{max-width:470px;margin:10vh auto;padding:1.5rem}.login .card{padding:2rem}.source-text,.passage{white-space:pre-wrap;font:inherit;line-height:1.65;overflow-wrap:anywhere}.source-text{max-height:60vh;overflow:auto;border:1px solid var(--line);padding:1rem;border-radius:8px;background:#fcfcff}.metadata{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.source-list{list-style:none;padding:0}.source-list li{border-bottom:1px solid var(--line);padding:1rem 0}.link-button{background:transparent;color:var(--teal);border:0;text-align:left;padding:.2rem 0;font-weight:650}.menu-row{display:grid;grid-template-columns:minmax(120px,1fr) auto auto auto;gap:.5rem;align-items:center;border-bottom:1px solid var(--line);padding:.7rem 0}.menu-row label{font-size:.85rem;margin:0}.menu-row button{padding:.3rem .65rem}.tabs{display:flex;gap:.7rem}.tabs button[aria-selected=false]{background:white;color:var(--teal)}:focus-visible{outline:3px solid #333399;outline-offset:3px}.skip{position:absolute;left:1rem;top:-100px;background:white;padding:.5rem;z-index:10}.skip:focus{top:1rem}[hidden]{display:none!important}.offline{position:sticky;top:0;background:#fff0d9;color:#694618;padding:.7rem;z-index:3}.two-col{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:1rem}.danger{border-color:#a73333;background:#fff;color:#842626}.progress{font-weight:600}.compact{margin:.2rem 0}.help{max-width:70ch}.footer{font-size:.8rem;color:var(--muted);margin-top:2rem}.plain-list{padding-left:1.2rem}details summary{cursor:pointer;font-weight:650;min-height:44px;padding:.5rem 0}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{padding:1rem}.sidebar nav{flex-direction:row;overflow:auto;margin:.8rem 0;gap:4px}.sidebar nav a{white-space:nowrap}.sidebar .logout{width:auto;padding:.35rem .8rem}.sidebar .brandline{display:flex;justify-content:space-between;gap:.5rem}.sidebar>small{display:none}.workspace{padding:1.3rem}.topbar{margin-bottom:1.2rem}.two-col{grid-template-columns:1fr}.menu-row{grid-template-columns:minmax(90px,1fr) auto auto}.menu-row label{grid-column:1/-1}.login{margin:3vh auto}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{font-size:1.8rem}}@media(max-width:420px){.grid{grid-template-columns:1fr}.topbar{flex-direction:column;gap:.3rem}.card{padding:1rem}}

.menu-toggle{display:none}@media(max-width:850px){.menu-toggle{display:block;margin-top:.8rem;background:transparent;border-color:#a9b7e3;color:white}.sidebar nav{display:none;flex-direction:column;overflow:visible}.sidebar nav[data-expanded=true]{display:flex}.sidebar nav a{white-space:normal}.sidebar .logout{min-height:44px}}
/* Chat uses safe text nodes and wraps long identifiers on phones. */
.chat-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.chat-thread{min-width:0}.chat-conversations{margin:1rem 0}.chat-conversations select{max-width:100%;width:100%}.citation{border-top:1px solid var(--border,#dcddeb);padding:.7rem 0}.citation button{white-space:normal;text-align:left}.chat-thread .card{margin:1rem 0}
.inbox-layout{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2fr);gap:1.2rem}.inbox-layout>section{min-width:0}.inbox-layout>section:first-child button{display:block;width:100%;text-align:left;white-space:normal;margin-bottom:.5rem}.inbox-layout .card{margin-top:1rem}.inbox-layout textarea{white-space:pre-wrap}@media(max-width:850px){.inbox-layout{grid-template-columns:1fr}}

/* My Biz Sage: approved presentation only. No menu or account settings change. */
.brand-lockup{display:flex;align-items:center;gap:.75rem;min-width:0;color:#333399}
.brand-mark{display:block;flex:0 0 auto;width:58px;height:58px}

.brand-copy{min-width:0}.brand-name{font-size:2rem;font-weight:500;letter-spacing:-.045em;line-height:1.15;white-space:nowrap;margin:0}
.brand-name strong{font-weight:750}.brand-credit{display:block;margin-top:.3rem;font-size:.68rem;line-height:1.4;letter-spacing:0;color:#62627c}
.login{max-width:510px;margin:7vh auto}.login .brand-lockup{justify-content:center}.login-intro{text-align:center;color:#62627c;margin:1.1rem 0 1.7rem}.login .card{border-radius:18px;box-shadow:0 12px 40px #24245408}.login .card h2{margin-top:0}.login .metadata{text-align:center}
.sidebar .brandline{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.sidebar .brand-lockup{color:white;gap:.45rem}.sidebar .brand-mark{width:36px;height:36px}.sidebar .brand-name{font-size:1.16rem}.sidebar .brand-credit{color:#d8dcf3;font-size:.55rem}
.sidebar .logout{font-size:.85rem;min-height:44px}.sidebar nav a[aria-current=page]{box-shadow:inset 3px 0 #33ccff;color:#242454}.sidebar :focus-visible{outline-color:#33ccff}.header-brand{font-weight:750;color:#333399;font-size:1.1rem}.topbar{align-items:flex-start}.topbar .tag{flex-shrink:0}.topbar .eyebrow{font-size:.65rem;letter-spacing:.1em}.notice:not(.error){background:#eef4ef}
@media(max-width:850px){.sidebar .brandline{align-items:center;flex-wrap:nowrap;margin-bottom:0}.sidebar .logout{width:auto;flex-shrink:0}.sidebar .brand-credit{font-size:.58rem}.login{margin:3vh auto}.sidebar nav{margin-bottom:.8rem}}
@media(max-width:360px){.sidebar .brand-name{font-size:1.02rem}.sidebar .brand-mark{width:30px;height:30px}.sidebar .brand-credit{font-size:.5rem}.sidebar .logout{padding:.35rem .6rem}.login{padding:1rem}.login .card{padding:1.4rem}.login .brand-mark{width:48px;height:48px}.login .brand-name{font-size:1.8rem}}

/* Dashboard destinations use real existing status and routes. */
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;margin:1.7rem 0 1rem}
.dashboard-card{display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:1.5rem;border-radius:18px;box-shadow:0 6px 20px #24245405}
.dashboard-card-heading{display:flex;align-items:center;gap:.85rem;margin-bottom:1rem}.dashboard-card-heading h2{margin:0;font-size:1.25rem;color:#242454;letter-spacing:-.025em}
.dashboard-icon{display:flex;align-items:center;justify-content:center;background:#eef4ef;color:#333399;border-radius:14px;width:52px;height:52px;flex-shrink:0}.dashboard-icon svg{display:block;width:29px;height:29px}
.dashboard-card:nth-child(3) .dashboard-icon{background:#dcf6ff}.dashboard-card>p{max-width:48ch}.dashboard-counts{display:flex;flex-wrap:wrap;gap:.35rem 1.3rem;margin-bottom:.6rem}.dashboard-counts strong{font-size:1.3rem;color:#333399}
.dashboard-card-status{font-weight:650;color:#333399;font-size:.9rem}.dashboard-card .metadata{margin-bottom:1rem}.dashboard-action{display:inline-flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:44px;padding:.55rem .85rem;margin-top:auto;border:1px solid #dcddeb;border-radius:9px;background:#fff;color:#333399;text-decoration:none;font-size:.9rem;font-weight:650}.dashboard-action:hover{background:#dcf6ff;border-color:#a9b7e3}.dashboard-action span{font-size:1.2rem;line-height:1}
.dashboard-support{align-items:start}.dashboard-details summary{color:#333399}.dashboard-details[open] summary{margin-bottom:1rem}
@media(max-width:650px){.dashboard-grid{grid-template-columns:1fr;gap:1rem}.dashboard-card{padding:1.25rem}.dashboard-card-heading h2{font-size:1.2rem}.dashboard-icon{width:46px;height:46px}.dashboard-action{width:100%}}

/* Owner project folders: scoped to the chat page; global navigation is preserved. */
.chat-workspace{max-width:none;padding:1.4rem 1.6rem}.chat-workspace>.topbar{margin-bottom:1rem}.cf-title{font-size:1.8rem;margin-bottom:.2rem}.cf-title+p{font-size:.9rem;color:#737b95;margin-bottom:1rem}.cf-status:empty,.cf-retry:empty{display:none}.cf-status{font-size:.9rem;margin:.7rem 0;color:#424c7b}.cf-retry{margin:.6rem 0}.cf-layout{position:relative;display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100dvh - 230px);min-height:620px;max-height:1000px;border:1px solid #dce1ed;border-radius:12px;overflow:hidden;background:white}.cf-projects{display:flex;flex-direction:column;background:#f8f9fc;border-right:1px solid #e0e3ed;min-height:0;min-width:0}.cf-panel-top{padding:17px 14px 0}.cf-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.cf-heading h2{font-size:17px;margin:0}.cf-new-chat,.cf-new-project{display:flex;align-items:center;gap:9px;width:100%;text-align:left;justify-content:flex-start;font-size:14px;min-height:44px;margin:7px 0}.cf-new-project{color:#333399;background:white;border-color:#dce1ed}.cf-panel-top>input{font-size:13px;margin:12px 0 0;min-height:42px}.cf-tree-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0 3px;gap:4px}.cf-tree-heading p{margin:0;font-size:12px;color:#8188a0}.cf-tree-heading button{font-size:11px;background:transparent;border:0;padding:3px 4px;color:#646f91}.cf-projects svg,.cf-toolbar svg{width:19px;height:19px;flex-shrink:0}.cf-tree{list-style:none;overflow:auto;min-height:140px;flex:1;margin:0;padding:0 9px}.cf-tree ul{list-style:none;padding:0 0 0 35px;margin:0}.cf-tree [role=treeitem]{outline-offset:-2px;border-radius:6px}.cf-tree [role=treeitem]:focus-visible{outline:2px solid #22a2d5}.cf-tree-row{display:flex;align-items:center;gap:7px;min-height:44px;padding:3px 6px;border-radius:6px;cursor:pointer;user-select:none}.cf-tree-row:hover{background:#eceff6}.cf-tree li[aria-selected=true]>.cf-tree-row{background:#e0f2fb;box-shadow:inset 3px 0 #333399}.cf-tree-row>svg{color:#7d88b4}.cf-twisty{display:flex;align-items:center;justify-content:center;width:24px;height:44px;flex-shrink:0}.cf-twisty svg{width:13px;height:13px;color:#7a839d}.cf-tree li[aria-expanded=true]>.cf-tree-row .cf-twisty svg{transform:rotate(90deg)}.cf-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px}.cf-count{font-size:11px;color:#929ab0;padding-left:3px}.cf-imported{font-size:9px;background:#ecedf5;color:#7a819a;padding:1px 4px;border-radius:3px}.cf-more{font-size:12px;color:#69759c}.cf-folder-actions{border-top:1px solid #e5e8f2;padding:5px 10px;display:flex;flex-direction:column}.cf-folder-actions button{background:transparent;border:0;text-align:left;justify-content:flex-start;font-size:12px;padding:6px;min-height:38px;font-weight:500}.cf-projects>p{font-size:10px;color:#8b91a8;margin:0;padding:7px 17px 16px;line-height:1.8}.cf-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.cf-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f6;padding:9px 18px;gap:8px;min-height:60px}.cf-crumb{display:flex;min-width:0;font-size:12px;color:#6d7794;white-space:nowrap;overflow:hidden}.cf-crumb span:last-child{overflow:hidden;text-overflow:ellipsis}.cf-item-actions{display:flex;gap:5px;flex-shrink:0}.cf-item-actions button{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:6px 10px;min-height:44px;background:white;border:0}.cf-content{min-width:0;min-height:0;flex:1;display:flex}.cf-live{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;overflow:hidden}.cf-service{padding:8px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f3f4f8;font-size:10px;color:#8991a6}.cf-service p{margin:0;overflow-wrap:anywhere}.cf-service button{font-size:10px;min-height:32px;padding:4px 7px;flex-shrink:0;border:0;background:transparent;color:#7783a2}.cf-thread{overflow:auto;flex:1;min-height:100px;padding:23px clamp(18px,4vw,52px)}.cf-thread>h2{font-size:24px;letter-spacing:-.5px;margin-top:0;margin-bottom:4px}.cf-thread>.metadata{font-size:10px;color:#8a92a7}.cf-message{font-size:16px;line-height:1.8;margin:27px 0 30px;max-width:850px}.cf-speaker{font-size:12px;margin:0 0 8px;color:#677197}.cf-message.user{background:#f1f3fa;border:1px solid #e8ecf4;border-radius:13px 13px 4px 13px;padding:13px 17px;margin-left:14%}.cf-message .metadata{font-size:10px;color:#8992ab;margin:8px 0 0}.cf-message .citation{font-size:12px}.cf-message .citation button{font-size:12px}.cf-message .chat-message{line-height:1.8}.cf-run.card{box-shadow:none;border:0;border-top:1px solid #edf0f6;border-radius:0;margin:0;padding:8px 20px;font-size:11px;max-height:35%;overflow:auto}.cf-run h2{font-size:13px;margin:0}.cf-run p{margin:.2rem 0}.cf-run .metadata{font-size:10px}.cf-run .notice{font-size:13px;margin:.5rem 0}.cf-run button{min-height:44px;font-size:13px}.cf-run pre{max-height:160px;font-size:13px}.cf-composer{padding:10px 20px 9px}.cf-composer form{border:1px solid #d9deeb;border-radius:12px;padding:11px 13px;box-shadow:0 2px 10px #27276f05}.cf-composer label{font-size:11px;margin:0 0 5px;color:#7d88a6}.cf-composer textarea{border:0;min-height:52px;max-height:180px;padding:0;font-size:16px;resize:vertical}.cf-composer .actions{margin:7px 0 0;justify-content:flex-end}.cf-composer button{font-size:12px;min-height:38px}.cf-composer>p{font-size:10px;color:#9199ae;text-align:center;margin:6px 0 0}.cf-composer .status{font-size:12px;min-height:0}.cf-overview,.cf-imported-reader{overflow:auto;padding:24px clamp(18px,4vw,48px);width:100%;min-width:0}.cf-overview h2{font-size:25px}.cf-overview>p{font-size:14px;color:#7a859f;max-width:50ch}.cf-overview-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;white-space:normal;font-size:14px;background:white;margin:7px 0;border:1px solid #e3e7f0}.cf-overview-item small{font-size:10px;flex-shrink:0}.cf-imported-reader h1{font-size:14px;color:#8790a4}.cf-imported-reader h2{font-size:23px}.cf-imported-reader .source-text{font-size:15px}.cf-open,.cf-close,.cf-backdrop{display:none}.cf-dialog{border:1px solid #d8deec;border-radius:14px;width:min(530px,calc(100vw - 28px));max-height:85dvh;padding:25px;color:#242454}.cf-dialog::backdrop{background:#24245455}.cf-dialog h2{margin-top:0;font-size:22px}.cf-dialog p{font-size:13px;color:#7c87a0}.cf-dialog label{font-size:13px}.cf-dialog input,.cf-dialog select{font-size:16px}.cf-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.cf-dialog button{font-size:13px}.cf-import-picker{max-height:45dvh;overflow:auto}.cf-import-choice{width:100%;display:block;text-align:left;font-size:14px;white-space:normal;background:white;border:0;border-bottom:1px solid #e3e8f1;border-radius:0;margin:0;padding:12px 5px}.cf-import-choice small{display:block;font-size:10px;margin-top:5px;color:#8490aa}.cf-dialog form>button[type=submit]{margin:.7rem 0}
@media(max-width:1100px){.cf-layout{grid-template-columns:245px minmax(0,1fr)}.chat-workspace{padding:1.1rem}.cf-toolbar{padding-inline:12px}.cf-service{padding-inline:14px}.cf-thread{padding:20px}.cf-item-actions button{padding-inline:6px}}
@media(max-width:850px){.chat-workspace{padding:1rem}.chat-workspace>.topbar{margin-bottom:.5rem}.cf-title{font-size:1.5rem}.cf-title+p{font-size:12px}.cf-layout{display:flex;min-height:610px;height:calc(100dvh - 230px)}.cf-conversation{width:100%}.cf-projects{display:none;position:absolute;inset:0 auto 0 0;width:min(310px,90%);z-index:12;box-shadow:10px 0 40px #24245422}.cf-projects.cf-opened{display:flex}.cf-open,.cf-close{display:flex;min-height:44px;font-size:12px;padding:5px 8px;background:white}.cf-backdrop{display:block;position:absolute;inset:0;z-index:11;border:0;border-radius:0;background:#24245444}.cf-toolbar{padding:7px 10px;gap:5px;flex-wrap:wrap}.cf-crumb{flex:1;font-size:11px}.cf-item-actions{gap:0}.cf-item-actions button{min-height:44px;padding:5px;font-size:11px}.cf-item-actions svg{display:none}.cf-content{overflow:hidden}.cf-service{font-size:9px;gap:4px;padding:6px 10px}.cf-service button{font-size:9px}.cf-thread{padding:18px}.cf-thread>h2{font-size:21px}.cf-message{font-size:16px}.cf-message.user{margin-left:6%;padding:11px 13px}.cf-composer{padding:8px 10px}.cf-composer textarea{min-height:50px}.cf-composer label{font-size:10px}.cf-composer>p{font-size:9px}.cf-run.card{padding:7px 12px}.cf-tree .cf-twisty{width:30px}.cf-overview,.cf-imported-reader{padding:20px 16px}.cf-overview-item{font-size:14px}.cf-overview-item small{max-width:75px}.cf-dialog{padding:20px}.cf-panel-top>input{font-size:16px}}

/* Conversation drag/drop uses the existing authorized metadata move. */
.cf-tree-row[draggable=true]{cursor:grab}.cf-tree-row[draggable=true]:active{cursor:grabbing}.cf-tree-row.cf-dragging{opacity:.5}.cf-tree-row.cf-drop-target{background:#dcf4fc;outline:2px solid #1688b6;outline-offset:-2px;box-shadow:inset 4px 0 #333399}.cf-tree[aria-busy=true]{cursor:progress}

.cf-projects .cf-drag-hint{height:80px;min-height:80px;overflow:hidden;padding:7px 15px;font-size:10px;line-height:1.65;margin:0}

/* Larger reading area, with a temporary whole-window chat view. */
.cf-layout{height:calc(100dvh - 180px);max-height:none}.cf-toolbar,.cf-feedback,.cf-service,.cf-composer{flex-shrink:0}.cf-feedback:empty{display:none}.cf-feedback .cf-status{margin:7px 18px}.cf-feedback .cf-retry{margin:6px 18px}.cf-run.cf-run-completed{padding:2px 20px;flex-shrink:0}.cf-run details summary{font-size:12px;min-height:36px;padding:5px 0;cursor:pointer;color:#525d83}.cf-run-details{padding:4px 0 8px}.cf-composer textarea{height:52px;min-height:52px;max-height:180px}.cf-composer .actions{margin-top:5px}.cf-composer{padding-top:7px;padding-bottom:5px}.cf-layout.cf-expanded{position:fixed;inset:12px;z-index:50;height:auto;min-height:0;max-height:none;box-shadow:0 10px 60px #24245455}.cf-layout.cf-expanded .cf-thread{min-height:0}.cf-item-actions button[aria-pressed=true]{background:#e7f3fa;color:#27276f}.cf-expanded .cf-composer textarea{max-height:25dvh}
@media(max-width:850px){.cf-layout{height:calc(100dvh - 180px)}.cf-layout.cf-expanded{inset:0;border-radius:0}.cf-run details summary{min-height:44px}.cf-feedback .cf-status,.cf-feedback .cf-retry{margin:5px 12px}.cf-run.cf-run-completed{padding-inline:12px}.cf-item-actions{flex-wrap:wrap;justify-content:flex-end}.cf-item-actions button{white-space:nowrap}.cf-expanded .cf-toolbar{min-height:60px}.cf-expanded .cf-projects{z-index:62}.cf-expanded .cf-backdrop{z-index:61}}
@media(min-width:900px){.cf-composer form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:end}.cf-composer form>div:first-child{min-width:0}.cf-composer .actions{margin:0 0 3px}.cf-composer .status{grid-column:1/-1}}

/* Desktop splitter stores only a width preference; phone keeps its Projects drawer. */
@media(min-width:851px){.cf-layout{grid-template-columns:var(--cf-projects-width,270px) 12px minmax(0,1fr)}.cf-projects{border-right:0}.cf-resizer{position:relative;cursor:col-resize;touch-action:none;background:#f8f9fc;border-inline:1px solid #e0e3ed;outline-offset:-2px}.cf-resizer::after{content:'';position:absolute;top:calc(50% - 22px);left:4px;width:2px;height:44px;background:#a3acc7;border-radius:2px}.cf-resizer:hover,.cf-resizer:focus-visible,.cf-resizing .cf-resizer{background:#dcf4fc;outline:2px solid #1688b6}.cf-resizing,.cf-resizing *{cursor:col-resize!important;user-select:none!important}}
@media(max-width:850px){.cf-resizer{display:none}}

/* Main navigation can be tucked away on desktop; phone keeps its existing Menu. */
.workspace-heading{display:flex;align-items:center;gap:14px;min-width:0}.main-menu-toggle{display:none;flex-shrink:0;font-size:12px;padding:6px 10px;min-height:44px}
@media(min-width:851px){.main-menu-toggle{display:inline-flex;align-items:center}.shell.main-menu-collapsed{grid-template-columns:minmax(0,1fr)}.shell.main-menu-collapsed>.sidebar{display:none}}

/* Projects can be hidden independently, including in the expanded chat view. */
.cd-panel{grid-column:1/-1;font-size:12px;border:1px solid #dce3ef;border-radius:9px;margin-bottom:7px;padding:5px 10px;min-width:0;max-height:34dvh;overflow:auto}.cd-panel summary{cursor:pointer;min-height:30px;padding:4px 0;color:#333399}.cd-panel .metadata{font-size:11px}.cd-document{padding:8px 0;border-top:1px solid #e6eaf2;overflow-wrap:anywhere}.cd-document>label{display:flex;align-items:center;gap:8px;font-size:12px}.cd-document input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.cd-document .actions{justify-content:flex-start;gap:7px;flex-wrap:wrap;margin:5px 0}.cd-document button,.cd-document a.button,.cd-message-documents button{font-size:11px;padding:5px 9px;min-height:34px}.cd-message-documents{display:flex;flex-wrap:wrap;gap:6px}.cf-composer .actions{flex-wrap:wrap}.cd-panel[open]{max-height:34dvh}.cd-panel .cd-list>p{margin:5px 0}.cd-panel>p[role=status]:empty{display:none}@media(max-width:850px){.cd-panel[open]{max-height:30dvh}.cd-document button,.cd-document a.button{min-height:40px}.cd-panel>p{font-size:11px}.cf-composer .actions{gap:6px}}
.cf-panel-toggle{display:none;font-size:12px;min-height:44px;padding:6px 10px;flex-shrink:0}.cf-toolbar{flex-wrap:wrap}.cf-crumb{flex:1;min-width:70px}.cf-item-actions{margin-left:auto}
@media(min-width:851px){.cf-panel-toggle{display:inline-flex;align-items:center}.cf-layout.cf-projects-collapsed{grid-template-columns:minmax(0,1fr)}.cf-layout.cf-projects-collapsed>.cf-projects,.cf-layout.cf-projects-collapsed>.cf-resizer{display:none}}
.cd-attach{display:inline-flex;align-items:center;gap:7px}.cd-attach svg{flex-shrink:0}.cd-document strong{min-width:0}
