:root{color-scheme:light;--bg:#fff;--side:#f5f5f5;--text:#272727;--muted:#8b8b8b;--line:#e8e8e8;--hover:#eaeaea;--accent:#202020}*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}[hidden]{display:none!important}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:transparent;border:0;border-radius:7px;padding:6px 10px;white-space:nowrap}button:hover{background:var(--hover)}button:disabled{opacity:.35;cursor:default}input,select{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:9px 11px;outline:none}input{width:100%}input:focus,textarea:focus{outline:none}h1,h2,p{margin-top:0}h2{font-size:14px;font-weight:550;margin-bottom:0}.brand{font-size:15px;letter-spacing:-.4px}.brand b{font-weight:600}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}#auth{max-width:390px;margin:12vh auto;padding:24px}#auth h1{font-size:28px;margin-top:28px}#auth p{color:var(--muted)}label{display:block;margin:16px 0}label input{margin-top:5px}#authform button:first-child,#grant{background:var(--accent);color:white;padding:8px 18px}#console{display:grid;grid-template-columns:248px minmax(0,1fr);height:100dvh}aside{display:flex;flex-direction:column;min-height:0;padding:16px 10px 10px;background:var(--side);border-right:1px solid var(--line)}aside .brand{padding:2px 10px 20px}.section-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;padding:4px 10px}.section-label button{font-size:19px;padding:0 6px;line-height:24px;color:#555}#devices{max-height:170px;overflow-y:auto;margin-bottom:10px}.device{display:flex;width:100%;align-items:center;gap:8px;text-align:left;font-size:12px;padding:7px 10px}.device-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.device small{font-size:10px;color:var(--muted)}.online{color:#408d64;font-size:8px}.offline{color:#b0b0b0;font-size:8px}.selected{background:#e5e5e5}#search{font-size:12px;padding:6px 10px;background:transparent;margin:0 0 10px;border:0}#search:focus{background:#fff}#threads{flex:1;min-height:0;overflow-y:auto}#loadMore{flex-shrink:0;width:100%;font-size:11px;color:var(--muted);padding:7px}.thread{display:block;width:100%;text-align:left;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 10px;margin:1px 0}footer{border-top:1px solid var(--line);padding:10px 6px 0;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#777}footer button{font-size:11px}article{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;height:100dvh}header{flex-shrink:0;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;border-bottom:1px solid #f2f2f2}.heading{min-width:0}header h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:65vw}small{font-size:11px;color:var(--muted)}#shareToggle{font-size:12px;border:1px solid var(--line)}#messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px max(28px,calc((100% - 820px)/2));scrollbar-gutter:stable}.message{margin:0 0 24px;line-height:1.8;overflow-wrap:anywhere;font-size:14px}.message .body{white-space:pre-wrap}.userMessage{margin-left:auto;background:#f3f3f3;padding:10px 16px;border-radius:18px;max-width:85%;width:fit-content}.agentMessage{padding:0 3px}.label{font-size:10px;color:#999;margin-bottom:4px}.userMessage .label{display:none}.run-record{color:#8c8c8c;font-size:11px;margin:-12px 0 20px}.run-record summary{cursor:pointer;list-style:none}.run-record summary:before{content:'› ';}.run-record[open] summary:before{content:'⌄ '}.run-record p{margin:5px 0 0 12px}.empty{text-align:center;color:#aaa;padding:18vh 0}.empty>div{font-size:34px;color:#555}.empty h2{font-size:22px;font-weight:500;color:#555;margin:12px 0 6px}.empty p{font-size:12px}.composer-wrap{flex-shrink:0;width:100%;max-width:880px;margin:auto;padding:10px 28px 12px}#composer{border:1px solid #dedede;background:#fff;border-radius:18px;padding:12px 14px;box-shadow:0 3px 14px #00000005}textarea{display:block;width:100%;resize:none;max-height:180px;min-height:46px;line-height:1.6;border:0;background:transparent;padding:0 2px}textarea::placeholder{color:#999}.actions{display:flex;gap:5px}#send{border-radius:10px;background:#262626;color:#fff;font-size:12px}#stop{font-size:12px;color:#fff;background:#222;border-radius:10px;padding:7px 12px}#stop:hover{background:#444}.composer-note{text-align:center;font-size:10px;color:#aaa;margin-top:7px}#toBottom{position:absolute;bottom:162px;left:50%;transform:translateX(-50%);border:1px solid #ddd;background:#fff;box-shadow:0 2px 10px #0000000d;font-size:11px}#overlay{position:fixed;inset:0;background:#0003;display:flex;align-items:flex-start;justify-content:flex-end;padding:62px 24px;z-index:10}#panel{width:370px;max-width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:20px;box-shadow:0 16px 60px #0002}#closePanel{font-size:22px;padding:0 5px}.hint{font-size:12px;color:#888;margin:16px 0}#sharing .row{margin:10px 0}#shares{max-height:280px;overflow:auto}#shares p{display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid #eee;margin:0;padding:9px 0}#shares button{font-size:11px;color:#888}.danger{color:#b74949;font-size:11px;margin-top:14px}#paircode{font-size:12px;overflow-wrap:anywhere;padding-top:14px}#paircode code{display:block;padding:10px;background:#f4f4f4;border-radius:8px;user-select:all}#notice{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#282828;color:#fff;border-radius:9px;padding:9px 18px;display:none;max-width:90vw;font-size:12px;z-index:20}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:5px}@media(max-width:760px){#console{grid-template-columns:190px minmax(0,1fr)}aside{padding:12px 5px}aside .brand{font-size:12px;padding:4px 7px 18px}header{padding:12px 16px}#messages{padding:20px 16px}.composer-wrap{padding:8px 14px 10px}.device small{display:none}}@media(max-width:480px){#console{grid-template-columns:135px minmax(0,1fr)}aside .brand{font-size:10px}.device,.thread{font-size:11px;padding:7px}.composer-note,#permission{display:none}header{padding:10px;flex-wrap:wrap;gap:4px}header h2{max-width:45vw;font-size:12px}#messages{padding:16px 12px}.message{font-size:13px}.composer-wrap{padding:7px}.userMessage{max-width:100%}#shareToggle{font-size:10px;padding:3px 5px}}
#threadScope{font-size:11px;border:0;background:transparent;color:#999;padding:2px 9px 6px;margin-bottom:3px}#contextMenu{position:fixed;z-index:30;background:#fff;border:1px solid #ddd;border-radius:8px;padding:4px;box-shadow:0 6px 24px #0002;min-width:150px}#contextMenu button{width:100%;text-align:left;font-size:12px}
#pair{font-size:12px;border:1px solid var(--line)}.model-controls{display:flex;gap:3px;align-items:center;flex-wrap:wrap}.model-controls select{font-size:11px;color:#777;border:0;background:transparent;padding:3px;max-width:160px}.model-controls select:disabled{opacity:.5}

/* Match the desktop transcript: readable Markdown and one shared content column. */
#messages{padding:28px 32px}.message,.run-record{width:100%;max-width:820px;margin-left:auto;margin-right:auto}.message.agentMessage .body{white-space:normal}.agentMessage>.label{display:none}.message.userMessage{width:fit-content;margin-right:max(0px,calc((100% - 820px)/2));max-width:min(85%,720px)}.body> :first-child{margin-top:0}.body> :last-child{margin-bottom:0}.body p{margin:0 0 18px}.body h1,.body h2,.body h3,.body h4{font-weight:600;line-height:1.5;margin:24px 0 12px}.body h1{font-size:22px}.body h2{font-size:19px}.body h3{font-size:16px}.body ul,.body ol{padding-left:24px;margin:12px 0 20px}.body li{margin:5px 0}.body li p{margin:4px 0}.body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:#ececec;border-radius:4px;padding:2px 5px}.body pre{overflow-x:auto;padding:16px;background:#f6f6f6;border:1px solid #eee;border-radius:10px;white-space:pre;line-height:1.55}.body pre code{padding:0;background:none;border-radius:0}.table-scroll{overflow-x:auto;max-width:100%;margin:20px 0 28px}.body table{border-collapse:collapse;width:100%;text-align:left;font-size:inherit}.body th{font-weight:600;border-bottom:1px solid #ddd}.body th,.body td{padding:12px 14px 12px 0;vertical-align:top;min-width:110px}.body td{border-bottom:1px solid #eee}.body tr:last-child td{border-bottom:0}.body a{color:#3768af;text-decoration:none}.body a[href]:hover{text-decoration:underline}.local-reference{cursor:pointer}.body blockquote{border-left:3px solid #ddd;color:#777;margin:16px 0;padding:0 16px}.body hr{border:0;border-top:1px solid #eee;margin:24px 0}.list-hint{color:#999;font-size:12px;padding:8px 10px}.composer-wrap{max-width:884px}header>.actions{flex-shrink:0}header .heading{flex:1}header h2{max-width:100%}@media(max-width:760px){#messages{padding:20px 16px}.message.userMessage{margin-right:0}.body th,.body td{padding:9px 12px 9px 0}}

#attachments{display:flex;gap:8px;flex-wrap:wrap}#attachments:not(:empty){padding-bottom:10px}.attachment{position:relative;border:1px solid #ddd;border-radius:10px;padding:4px}.attachment img{display:block;width:76px;height:76px;object-fit:contain;border-radius:6px}.attachment button{position:absolute;top:-7px;right:-7px;border:1px solid #ddd;background:white;width:22px;height:22px;padding:0;border-radius:50%;line-height:20px}#addImage{font-size:22px;line-height:1;padding:3px 7px}
.message-image{display:block;width:auto;height:auto;max-width:min(160px,100%);max-height:120px;object-fit:contain;border-radius:8px;margin-top:8px;cursor:zoom-in}
#imageViewer{border:0;border-radius:12px;padding:12px;max-width:94vw;max-height:94vh;box-shadow:0 16px 70px #0005;background:#fff}#imageViewer::backdrop{background:#000b}#imageViewerContent{display:block;max-width:calc(94vw - 24px);max-height:calc(94vh - 24px);object-fit:contain}
.brand.row{gap:2px}.brand #activityToggle{font-size:10px;color:#777;padding:3px 5px;border-radius:7px}.brand #activityToggle.active{background:#dce9ff;color:#2766bd}.thread-heading{color:#999;font-size:11px;padding:12px 10px 4px}.project-group{margin-bottom:3px}.project-group summary{cursor:pointer;list-style:none;padding:6px 10px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-group summary:before{content:'▱ ';color:#777}.project-group .thread{padding-left:25px}.thread-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-thread{white-space:normal;padding-top:9px;padding-bottom:9px}.activity-thread .thread-title{display:inline;font-weight:500}.thread-project{margin-left:6px;color:#999;font-size:10px}.thread-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.4;color:#999;font-size:11px;margin-top:3px;overflow-wrap:anywhere}
#projectPicker{border:1px solid #ddd;border-radius:8px;background:#f7f7f7;color:#333;padding:5px 8px;max-width:190px}
.project-empty{margin:0;padding:3px 10px 8px 25px;color:#b5b5b5;font-size:11px}
aside{padding:8px 8px 6px}aside .brand.row{padding:0 4px 8px;min-height:29px;font-size:13px}.brand-actions{display:flex;align-items:center;gap:1px}aside .brand #activityToggle{font-size:10px;padding:3px 5px}#searchToggle{font-size:20px;line-height:18px;color:#777;padding:2px 5px}aside .section-label{padding:2px 6px;font-size:11px}#devices{max-height:112px;margin-bottom:3px}.device{padding:4px 7px;line-height:1.4}#search{height:28px;padding:3px 7px;margin:0 0 3px;font-size:11px;background:#fff}

#historyDialog,#editThreadDialog{border:1px solid #ddd;border-radius:14px;padding:20px;max-width:min(760px,92vw);max-height:80vh}#historyRows{max-height:55vh;overflow:auto}.history-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eee}.history-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#historyForm input[type=checkbox]{width:auto}#contextMenu{max-height:80vh;overflow:auto}#editThreadError{color:#b33}

#contextMenu{width:190px;min-width:0;box-sizing:border-box}#history{font-size:12px;padding:4px 6px}

.unread-dot{color:#428562;font-size:10px;flex:none;margin-left:6px}
#contextMenu{max-height:calc(100vh - 20px);overflow-y:auto}

#managementStatus{padding:9px 24px;background:#fff8e6;color:#805d16;font-size:13px;border-bottom:1px solid #efdfb9;flex:none}

.management-countdown{flex:none;font-size:11px;color:#947128;margin-left:auto;white-space:nowrap}.thread-title{min-width:0;overflow:hidden;text-overflow:ellipsis}.thread{display:flex;align-items:center}.activity-thread{flex-wrap:wrap}

#devicePicker{flex:none;width:100%;min-width:0;margin:2px 0 8px;padding:8px 7px;font-size:12px;border:1px solid #dedede;border-radius:8px;background:#fff;text-overflow:ellipsis;cursor:pointer}.claude-terminal{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,monospace;padding:16px;border-radius:12px;background:#f4f4f4;color:#292929}.claude-history{margin-bottom:16px}.claude-history>summary{cursor:pointer;color:#777}
.question-card{margin:16px 0;padding:18px;border:1px solid #ddd;border-radius:18px;display:flex;flex-direction:column;gap:10px}.question-card p{margin:0 0 6px}.question-option{text-align:left;white-space:normal;border-radius:10px;padding:12px;background:#f5f5f5;border:1px solid transparent}.question-option[aria-pressed=true]{background:#e9efff;border-color:#6088dc}.question-card textarea{box-sizing:border-box;width:100%;min-height:70px;resize:vertical;border:1px solid #ddd;border-radius:10px;padding:10px;font:inherit}.question-card>button:last-child{align-self:flex-end}.question-result{color:#637069}

/* Mobile chat is a full-width workspace, with navigation in a drawer. */
#sidebarToggle,#mobileActions{display:none}
@media(max-width:760px){
 #console{display:block;position:fixed;inset:auto 0;top:var(--mobile-top,0px);height:var(--mobile-height,100dvh)}
 #console>article{height:100%;width:100%}
 #sidebar{position:absolute;inset:0 auto 0 0;width:min(320px,86vw);z-index:41;visibility:hidden;transform:translateX(-100%);padding:calc(14px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));box-shadow:8px 0 32px #0002}
 #console.sidebar-open #sidebar{visibility:visible;transform:translateX(0)}
 #sidebarBackdrop{position:absolute;inset:0;z-index:40;border-radius:0;background:#0006;width:100%;height:100%}
 #sidebar .brand.row{font-size:16px;padding:0 4px 14px}
 #devicePicker{font-size:16px;min-height:44px;margin-bottom:14px}
 #sidebar .thread{font-size:14px;min-height:44px;padding-top:10px;padding-bottom:10px}
 .project-group summary{font-size:14px;min-height:44px;padding-top:10px}
 #sidebar .section-label{font-size:13px;padding:4px 6px 10px}
 #sidebar .section-label button,#sidebar .brand button{min-width:36px;min-height:40px}
 #search{height:42px;font-size:16px}
 header{position:relative;flex-wrap:nowrap;gap:8px;min-height:64px;padding:calc(8px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}
 #sidebarToggle,#mobileActions{display:block;flex:none;width:40px;height:44px;font-size:23px;padding:0}
 header .heading{overflow:hidden}header h2{font-size:15px;max-width:100%;line-height:1.5}
 #status{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
 #headerActions{display:none;position:absolute;right:12px;top:calc(100% - 4px);z-index:35;flex-direction:column;padding:6px;background:white;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 8px 30px #0002}
 #headerActions.mobile-open{display:flex}#headerActions button{font-size:14px;min-height:44px;text-align:left;border:0}
 #messages{padding:20px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));scrollbar-gutter:auto}
 .message{font-size:15px;line-height:1.75;margin-bottom:22px}.message.userMessage{max-width:92%;padding:10px 14px}
 .body pre{padding:12px;font-size:12px}.body p{margin-bottom:14px}
 .composer-wrap{margin:0 auto;padding:8px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#fff}
 #composer{padding:10px 12px;border-radius:20px;box-shadow:0 2px 12px #00000008}
 #text{font-size:16px;min-height:44px;max-height:120px}
 #composer>.row{flex-wrap:wrap;gap:6px;align-items:center}
 .model-controls{flex:1 1 180px;min-width:0;gap:2px}
 .model-controls select{font-size:12px;max-width:145px;min-height:36px}#projectPicker{max-width:180px}
 #composer .actions{margin-left:auto;flex:none}#send,#stop{min-height:40px;padding:8px 12px;font-size:13px}
 #addImage{min-width:36px;min-height:40px}.composer-note{display:none}#permission{display:none}
 #attachments{max-height:100px;overflow:auto}.attachment img{width:62px;height:62px}
 .attachment button{width:28px;height:28px;line-height:26px;top:0;right:0}
 .question-card{padding:14px;border-radius:16px;gap:10px}.question-option{min-height:46px;padding:12px;font-size:15px}
 .question-card textarea{font-size:16px}.question-card>button:last-child{min-height:44px}
 #managementStatus{padding:8px 16px;font-size:12px;max-height:90px;overflow:auto}
 #overlay{padding:12px;align-items:center;justify-content:center;z-index:50}#panel{max-height:85dvh;overflow:auto}
 #historyDialog,#editThreadDialog{width:calc(100vw - 24px);max-width:none;padding:16px;max-height:85dvh}
 #historyForm{flex-wrap:wrap;gap:8px}#historyQuery{flex-basis:100%;font-size:16px}#historyForm label{margin:0}#historyForm button{min-height:40px}
 #threadName,#shareName{font-size:16px}.history-row{font-size:13px}.history-row button{min-height:44px}
 #contextMenu{z-index:60}#contextMenu button{min-height:44px;font-size:14px}
 #notice{bottom:calc(18px + env(safe-area-inset-bottom));width:max-content;max-width:90vw}
 #auth{margin:6vh auto}#auth input{font-size:16px}
}
@media(max-width:760px){#sidebarBackdrop{left:min(320px,86vw);width:auto}}

.thread-row{display:flex;align-items:center;min-width:0;border-radius:7px}.thread-row .thread{flex:1;min-width:0;width:auto;background:transparent}.thread-more{flex:none;width:36px;min-height:36px;padding:0;font-size:22px;color:#777;touch-action:manipulation}.thread-more:focus-visible{outline:2px solid #777;outline-offset:-2px}
@media(max-width:760px){.thread-more{width:44px;min-height:44px}.thread-row{min-height:44px}}

.sidebar-swipe-zone{display:none}
@media(max-width:760px){.sidebar-swipe-zone{display:block;position:absolute;left:0;top:64px;bottom:0;width:24px;z-index:25;touch-action:pan-y}#console.sidebar-open .sidebar-swipe-zone{display:none}}

/* Shared iOS and Web identity. */
.brand-label{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}.brand-logo{display:block;flex-shrink:0;border-radius:7px;object-fit:contain}#auth .brand-logo{width:32px;height:32px}#sidebar .brand-logo{width:28px;height:28px}.empty-logo{display:inline-block;border-radius:16px;vertical-align:middle}

#newTargetDialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;border:1px solid var(--border,#ddd);border-radius:16px;padding:24px}#newTargetForm label{display:grid;gap:8px;margin:16px 0}#newTargetForm select{width:100%;min-height:44px}#newTargetHint{font-size:13px;line-height:1.6}#newTargetDialog::backdrop{background:#0007}

/* Reading preferences intentionally follow responsive defaults on every client. */
:root{--reader-body-size:15pt;--reader-composer-size:15pt;--reader-sidebar-size:13pt;--reader-line-extra:5pt}
#messages .message,#messages .question-card{font-size:var(--reader-body-size);line-height:calc(1.2em + var(--reader-line-extra))}
#messages .body,#messages .body p,#messages .body li{line-height:inherit}
#messages .body pre{font-size:.9em;line-height:calc(1.2em + var(--reader-line-extra))}
#text,#messages .question-card textarea{font-size:var(--reader-composer-size);line-height:calc(1.2em + var(--reader-line-extra))}
#sidebar .thread,#sidebar .project-group summary,#sidebar .section-label,#sidebar #devicePicker,#sidebar #search{font-size:var(--reader-sidebar-size);line-height:calc(1.2em + var(--reader-line-extra))}
#typographyToggle{min-height:40px;flex:none;border:1px solid var(--line);background:var(--bg);font-size:12px}
#typographyDialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--bg);color:var(--text)}
#typographyDialog::backdrop{background:#0006}#typographyTitle{font-size:18px}#typographyClose{min-width:40px;min-height:40px;font-size:24px}
#typographyDialog>p{font-size:13px;color:var(--muted);margin:12px 0}.typography-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.typography-controls label{font-size:14px;margin:10px 0}.typography-controls input{min-height:44px;font-size:16px}
.typography-preview{padding:16px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}.typography-preview-sidebar{font-size:var(--reader-sidebar-size);line-height:calc(1.2em + var(--reader-line-extra));margin-bottom:16px;color:var(--muted)}.typography-preview-body{font-size:var(--reader-body-size);line-height:calc(1.2em + var(--reader-line-extra));margin:0 0 16px}.typography-preview-composer{font-size:var(--reader-composer-size);line-height:calc(1.2em + var(--reader-line-extra));border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--muted)}
#typographyReset{border:1px solid var(--line);min-height:44px}@media(max-width:380px){.typography-controls{grid-template-columns:1fr}}

.directory-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 48px);padding:16px;border:1px solid #ddd;border-radius:16px;overflow:auto;background:var(--bg,#fff);color:var(--text,#222)}
.directory-dialog[open]{display:flex;flex-direction:column;gap:10px}.directory-dialog::backdrop{background:#0005}
.directory-dialog h2{font-size:18px;margin:0}.directory-dialog p{margin:0;font-size:13px}.directory-path{overflow-wrap:anywhere}
.directory-shortcuts,.directory-toolbar,.directory-footer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;flex-shrink:0}
.directory-toolbar input[type=checkbox]{width:auto;margin:0 6px 0 0}.directory-toolbar label{display:flex;align-items:center;font-size:13px}.directory-toolbar input[type=text],.directory-toolbar input:not([type]){flex:1;min-width:120px}
.directory-list{min-height:80px;max-height:35dvh;overflow:auto;display:flex;flex-direction:column;gap:4px;flex:1 1 240px}.directory-list button{text-align:left;flex-shrink:0;overflow-wrap:anywhere}
.directory-dialog button{min-height:44px;border:1px solid #ddd;border-radius:8px;padding:8px 12px}.directory-create{display:flex;gap:6px;flex-shrink:0}.directory-create input{min-width:0;flex:1;width:auto}.directory-create button{flex-shrink:0}.directory-footer{justify-content:flex-end}.directory-footer button:first-child{background:#262626;color:white}
@media(max-width:760px){.directory-dialog input{font-size:16px}.directory-dialog{max-height:calc(100dvh - 32px)}.directory-toolbar{align-items:center}}

/* Explicit positioning for the conversation dialog in both desktop and touch layouts. */
#contextMenu{margin:0;color:inherit}#contextMenu::backdrop{background:transparent}

.delivery-label{font-size:.78em;opacity:.75;margin-bottom:8px}
.delivery-content{white-space:pre-wrap;overflow-wrap:anywhere}
.delivery-content.delivery-collapsed{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.delivery-toggle{display:block;color:inherit;background:transparent;border:0;padding:8px 0 0;font-size:.8em;opacity:.8;cursor:pointer}

/* Account menu is independent from streaming transcript reconciliation. */
aside footer{position:relative;align-items:center;gap:8px}#accountMenuToggle{font-size:24px;width:44px;height:44px;padding:0;display:grid;place-items:center;margin-left:auto}#accountMenu{position:fixed;left:16px;bottom:68px;width:300px;max-width:calc(100vw - 32px);padding:14px;border:1px solid var(--line,#ddd);border-radius:14px;background:var(--theme-panel,#fff);color:var(--ink,#252525);box-shadow:0 12px 40px #0002;z-index:45}#accountMenu>button{display:block;text-align:left;width:100%;padding:9px}#accountMenu .row{justify-content:space-between}#usageDetails{padding:10px 0;border-bottom:1px solid var(--line,#ddd);margin-bottom:8px}#usageDetails summary{cursor:pointer}#usageRows p{font-size:12px;margin:10px 0}.follow-option{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px;margin-left:10px}.follow-option input{width:auto;margin:0}.composer-note{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}#filePreviewDialog{width:min(1000px,92vw);max-width:92vw;padding:18px;border:1px solid var(--line,#ddd);border-radius:14px}#filePreviewDialog>.row{gap:8px;margin-bottom:12px}#filePreviewTitle{flex:1;overflow-wrap:anywhere}#filePreviewContent{overflow:auto;max-height:76vh;padding:12px}#filePreviewContent>img{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:auto}#filePreviewContent>iframe{width:100%;height:72vh;border:0}#filePreviewContent pre{white-space:pre-wrap;overflow-wrap:anywhere}.chat-file-image{display:block;max-width:100%;max-height:480px;object-fit:contain;cursor:zoom-in;border-radius:8px}.chat-file-image:not([src]){min-height:64px;min-width:100px;background:#8881}@media(max-width:480px){.composer-note{display:flex}.composer-note>span{display:none}#accountMenu{bottom:64px}}
