.markdown-body{font-size:14px;line-height:1.8;overflow-wrap:anywhere;color:#e7e7e7}.markdown-body> :first-child{margin-top:0}.markdown-body> :last-child{margin-bottom:0}.markdown-body p{margin:0 0 18px;white-space:pre-wrap}.markdown-body strong{font-weight:650;color:#f4f4f4}.markdown-body h1,.markdown-body h2,.markdown-body h3{line-height:1.45;margin:26px 0 13px}.markdown-body h1{font-size:24px}.markdown-body h2{font-size:21px}.markdown-body h3{font-size:17px}.markdown-body a{color:#7fabeb;text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body ul,.markdown-body ol{padding-left:25px;margin:10px 0 20px}.markdown-body li p{margin-bottom:4px}.markdown-body blockquote{margin:16px 0;padding:0 16px;border-left:3px solid #686868;color:#bbb}.markdown-body hr{border:0;border-top:1px solid #363636;margin:24px 0}
.markdown-body code{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;background:#303030;padding:2px 5px;border-radius:4px}.code-block{margin:18px 0;border:1px solid #3c3c3c;border-radius:10px;overflow:hidden;background:#222}.code-header{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;background:#2a2a2a;color:#b5b5b5;font-size:11px}.code-header button{font-size:11px}.code-block pre{margin:0;padding:15px;overflow:auto;white-space:pre}.code-block code{padding:0;background:none}.table-wrap{overflow:auto;margin:16px 0}.markdown-body table{border-collapse:collapse;width:100%}.markdown-body th,.markdown-body td{padding:8px 12px;border:1px solid #424242;text-align:left}.markdown-body th{background:#272727}
.inline-image{display:block;margin:21px 0 25px;max-width:100%;line-height:1.3}.inline-image>a{display:block;width:fit-content;max-width:100%}.inline-image img{display:block;width:auto;height:auto;max-width:100%;max-height:440px;border-radius:8px;background:#fff;border:1px solid #444}.image-caption{display:block;margin-top:7px;color:#888;font-size:11px}.image-error{padding:12px;border:1px solid #685246;border-radius:8px;color:#ddb699;font-size:12px}
.artifact-cards{display:grid;gap:10px;margin:22px 0}.artifact-card{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border:1px solid #353535;border-radius:12px;background:#242424}.file-icon{display:grid;place-items:center;width:36px;height:40px;flex-shrink:0;border-radius:8px;background:#23364c;color:#9fc8ff;font-size:9px;font-weight:700;letter-spacing:.5px}.file-icon.pdf{background:#452b2c;color:#ff999f}.artifact-info{flex:1;min-width:0}.artifact-info small{display:block;font-size:11px;color:#969696}.artifact-name{display:block;font-weight:600!important;color:#eee!important;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.artifact-actions{display:flex;gap:12px;flex-shrink:0}.artifact-actions a{font-size:12px;white-space:nowrap}
.artifact-preview{width:min(1100px,calc(100vw - 24px));max-width:none;height:min(850px,calc(100dvh - 32px));max-height:none;padding:0;overflow:hidden;border-radius:12px}.preview-head{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #444}.preview-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-content{display:block;width:100%;height:calc(100% - 54px);border:0;background:#303030;object-fit:contain}
[hidden]{display:none!important}.connection-chip{font-size:10px;color:var(--muted);white-space:nowrap}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.login-card{width:min(410px,100%);padding:30px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.login-card h1{font-size:23px;margin:18px 0}.login-card p{color:var(--muted);margin-bottom:22px}.login-card button{width:100%}#loginError{color:#ffabab}.user-text{white-space:pre-wrap;overflow-wrap:anywhere}.native-tool{margin:12px 0}.native-tool summary{cursor:pointer}.native-tool .activity-title{overflow:hidden}.native-tool .activity-detail,.user-attachment pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:440px;overflow:auto;font:12px/1.7 ui-monospace,Consolas,monospace}.native-raw{padding:0 14px 14px;color:var(--muted);font-size:11px}.turn-divider{margin:24px 0 34px;border-top:1px solid var(--border);padding-top:12px;color:var(--muted);font-size:11px}.artifact-preview::backdrop{background:#000a}.artifact-preview button{border:1px solid #555;border-radius:7px;padding:6px 10px;background:#303030;color:#eee;cursor:pointer}.artifact-preview{background:#242424;color:#eee;border:1px solid #454545}.artifact-actions a{padding:4px 0}.markdown-body pre{max-width:100%}.markdown-body .code-header button{color:#ddd;background:transparent;border:0;padding:4px 8px;cursor:pointer}.activity-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button:disabled{cursor:not-allowed;opacity:.45}.native-thread-state:empty{display:none}
@media(max-width:680px){.artifact-card{gap:9px;padding:11px}.artifact-actions{flex-direction:column;gap:3px}.inline-image img{max-height:340px}.connection-chip{display:none}}

.inline-image img{max-width:min(100%,420px);max-height:340px}.native-work{margin:16px 0 24px;color:var(--muted);font-size:12px}.native-work>summary{cursor:pointer;padding:8px 0}.native-tool .native-raw>summary{display:block;min-height:0;padding:8px 0}.thread-row-copy small.empty-project{display:block;white-space:normal;font-size:11px}.native-tool .activity-title strong{font-size:12px}.native-tool .activity-title small{font-size:11px}.native-tool .activity-result{font-size:11px}
.section-actions .project-add-action{width:auto;gap:4px;padding:0 5px;font-size:11px}.project-add-action svg{width:13px;height:13px}
.section-actions .project-add-action{display:inline-flex;align-items:center;justify-content:center}
.project-heading{display:flex;align-items:center;gap:2px;min-width:0}.project-heading>.project-row{flex:1;min-width:0;width:auto}.project-heading>[data-remove-project]{display:inline-grid;flex:0 0 26px;width:26px;height:26px;margin-right:2px;color:var(--muted)}.project-heading>[data-remove-project]:hover{color:var(--text);background:var(--surface-hover)}
.history-navigation{display:flex;justify-content:center;gap:16px;padding:12px;color:var(--muted)}.history-detail{margin:8px 0;color:var(--muted)}.history-detail>.mini-button{font-size:12px;color:#aaa}.history-detail .message-group{margin:12px 0}.user-attachment-label{font-size:12px;color:#bdcce0;padding:6px 0}.client-activity{display:flex;align-items:center;gap:9px;background:none;border:0;padding:12px 0;color:#929292;font-size:13px;box-shadow:none}.client-activity small{margin-left:8px;color:#777}.activity-spinner{display:inline-block;width:12px;height:12px;border:2px solid #757575;border-right-color:transparent;border-radius:50%;animation:activity-rotate 1s linear infinite;flex-shrink:0}@keyframes activity-rotate{to{transform:rotate(360deg)}}
#composer{background:#282828;border:1px solid #353535;border-radius:18px;padding:12px 12px 8px;min-height:98px;gap:16px;box-shadow:none}#messageInput{font-size:14px;min-height:24px;padding:0;color:#eee}#messageInput::placeholder{color:#747474}.composer-tools{min-height:30px;gap:6px}.composer-tools-left{gap:10px;flex-shrink:0}.composer-tools-right{gap:5px;min-width:0}.permission-label{font-size:14px;color:#ed8b44;white-space:nowrap}.attach-button{width:24px;height:28px!important;opacity:.7!important}.composer-tools-right .setting-button{padding:3px 0;background:none!important;border:0!important;font-size:14px;min-width:0;opacity:1!important;color:#ddd}#modelButton svg{display:none}#effortButton{color:#999}#composerHint{display:none}.voice-input{width:28px;height:28px}.voice-input svg{width:17px;height:17px}.send-button{width:30px!important;height:30px!important;min-width:30px;border-radius:50%!important;background:#3674d1!important;border:0!important;color:#fff!important}.send-button.stop{background:#3674d1!important}.send-button.stop svg{width:12px;height:12px}.composer-tools-right .send-mode{font-size:11px;max-width:80px}#composerBusy{margin-right:8px}#modelLabel{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:620px){.composer-tools-left{display:flex!important}.permission-label{font-size:11px}.composer-tools-right .setting-button{font-size:11px}#modelLabel{max-width:115px}.voice-input{width:23px}.composer-tools-right{gap:3px}#composerBusy{display:none}#composer{gap:16px}}@media(prefers-reduced-motion:reduce){.activity-spinner{animation:none}}
.composer-permission{display:flex;align-items:center;gap:5px;color:#ed8b44;font-size:14px;white-space:nowrap}.composer-permission svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}@media(max-width:620px){.composer-permission{font-size:11px;gap:3px}.composer-tools-left{gap:5px}}
#composer{display:flex;flex-direction:column;justify-content:space-between}.composer-tools{padding:0}@media(max-height:520px){#composer{min-height:80px;gap:4px;padding-top:8px}.message-queue{max-height:15dvh}.composer-lock{margin-bottom:4px}}
#modelButton .model-speed{display:block;width:13px;height:13px;fill:currentColor;stroke:none;margin-right:2px;flex-shrink:0}.send-button.stop svg{width:20px;height:20px;fill:currentColor;stroke:none}.send-button:not(.stop) svg{transform:rotate(-90deg)}
.composer-permission{background:transparent;border:0;padding:3px 0;cursor:pointer}.composer-permission:hover{color:#ff9d50}.permission-option>span{display:flex;flex-direction:column;gap:3px}.permission-option strong{font-size:14px;font-weight:600}.permission-option small{font-size:12px;color:#999;line-height:1.5}.settings-popover:has(.permission-option){width:365px;max-width:calc(100vw - 16px)}
.message-group.user{flex-direction:column;align-items:flex-end;gap:8px}.user-attachments{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.attachment-thumbnail{display:block;width:80px;height:80px;object-fit:contain;border:1px solid #444;border-radius:10px;background:#242424}.process-toggle{border:0;background:transparent;color:#8c8c8c;font-size:12px;cursor:pointer;padding:4px 0}.process-toggle:hover{color:#ccc}.history-detail{margin:4px 0 12px}.message-group.user:has(.user-attachments) .message-card{margin-top:0}
.message-group{margin-bottom:24px}.message-group.user{margin-bottom:28px}.client-activity .process-toggle{margin-left:auto}.composer-permission:not([data-mode="full"]){color:#aaa}.permission-option[data-permission="full"].selected,.permission-option[data-permission="full"].selected small,.permission-option[data-permission="full"].selected::after{color:#ed8b44}.settings-popover:has(.permission-option) .popover-label{font-size:12px;letter-spacing:0}.settings-popover:has(.permission-option) .popover-note{font-size:11px}
.app-shell{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}#fullscreenButton[aria-pressed="true"]{color:var(--text);background:var(--surface-hover)}

/* Keep every composer control on the original compact toolbar row. */
.model-controls,.composer-actions{display:flex;align-items:center;gap:8px;min-width:0}
.model-controls{flex:0 1 auto}
.composer-actions{flex-shrink:0;gap:6px}
.composer-tools-right{display:flex;gap:8px;min-width:0}
.composer-tools-right .model-controls .setting-button{height:29px;min-width:0;padding:3px 2px;border:0!important;background:none!important;border-radius:5px}
.composer-tools-right .model-controls .setting-button:hover,.composer-tools-right .model-controls .setting-button[aria-expanded="true"]{background:rgba(255,255,255,.05)!important}
#speedButton,#effortButton{flex-shrink:0}
#effortButton{max-width:90px}
#modelButton{flex:0 1 auto}
.model-controls .setting-button:focus-visible{outline:2px solid #82b4ff;outline-offset:1px}
#settingsPopover{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(max-width:620px){
  .composer-tools{display:flex;flex-wrap:nowrap;gap:6px}
  .composer-tools-right{flex:0 1 auto;gap:6px}
  .model-controls{gap:6px}
  .composer-actions{gap:5px}
  .composer-tools-right .model-controls .setting-button{font-size:11px}
  #effortButton{max-width:40px}
  #modelLabel{max-width:110px}
}
.workspace:has(.message-queue:not([hidden])) .conversation{padding-top:0;padding-bottom:0}
@media(max-height:520px){
  .conversation{padding-top:0;padding-bottom:0}
  #composer{gap:4px;padding-top:8px;padding-bottom:6px}
  #messageInput{max-height:40px}
  .composer-lock{max-height:22px;padding:2px 8px;margin-bottom:4px}
  .message-queue{max-height:38px;margin-bottom:4px}
}

.flat-thread-list{display:flex;flex-direction:column;gap:4px}
.flat-thread-list .flat-thread-row{margin:0;width:100%;height:auto;min-height:56px;padding:9px 10px;align-items:flex-start}
.flat-thread-list .thread-row-copy small{display:block;margin-top:5px;font-size:10px;color:#8e8e8e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread-update-label{display:block;margin-top:4px;font-size:10px;color:#8bb8f5}
.activity-section-title{font-size:11px;color:#999;margin:12px 10px 7px}
.unread-dot{width:6px;height:6px;border-radius:50%;background:#83b3fa;display:inline-block;flex-shrink:0}
.thread-row.has-unread strong{color:#eee}
#backToProjects{font-size:10px;padding:3px 5px}
.async-question-card{margin:12px 0;padding:16px;border:1px solid #414141;border-radius:16px;background:#2c2c2c;color:#eee}
.async-question-card>small{color:#aaa}
.async-question-card>p{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.async-question-card textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:64px;max-height:180px;padding:10px;border:1px solid #515151;border-radius:10px;background:transparent;color:inherit;font:inherit}
.question-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.question-options button{white-space:normal;text-align:left}
.question-actions{display:flex;justify-content:flex-end;margin-top:10px}
.question-requests{width:min(100%,820px);max-height:min(340px,36dvh);overflow:auto;margin:0 auto 8px}
.question-requests .async-question-card{margin:0 0 8px}
.question-requests .async-question-card:last-child{margin-bottom:0}
.inline-activity{display:flex;align-items:center;gap:8px;max-width:100%;margin:8px 0 16px;padding:4px 0;border:0;background:none;color:#929292;text-align:left;font:inherit;font-size:13px;line-height:1.6;cursor:pointer}
.inline-activity:hover{color:#ddd}
.inline-activity span{overflow-wrap:anywhere}

.trust-device-choice{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:14px}.trust-device-choice input{width:18px;height:18px;flex:none}.device-list{padding:0;list-style:none;max-height:40dvh;overflow:auto}.device-list li{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}.device-list small{display:block;margin-top:6px;color:var(--text-muted);overflow-wrap:anywhere}.device-list strong{overflow-wrap:anywhere}.device-list button{flex:none}#deviceActionForm{margin-top:20px}#devicesDialog{max-height:90dvh;overflow:auto}

#twoFactorDialog{max-height:90dvh;overflow:auto}#twoFactorQR{display:block;max-width:100%;height:auto;margin:16px auto}#twoFactorSecret{display:block;overflow-wrap:anywhere;user-select:all;margin:12px 0}#twoFactorRecoveryCodes{font-size:14px;line-height:1.8;user-select:all}#twoFactorError{color:var(--muted)}
#twoFactorStatus,#twoFactorError,#twoFactorSetup,#twoFactorRecovery{margin:16px 18px}#twoFactorRecoveryCodes{overflow-x:auto}

#accountDialog{max-height:90dvh;overflow:auto}.account-section{margin:18px}.account-section .form-field{margin-left:0;margin-right:0}#userHostList label{display:flex;align-items:center;gap:10px;margin:10px 0}#userEditor{border-top:1px solid var(--border);margin-top:20px}#userList small{display:block}#userHostField small{display:block;line-height:1.5}

.question-dismiss{float:right}.async-question-card{display:flow-root}
#accountDialog>.dialog-head{position:sticky;top:0;z-index:2;background:var(--surface,#202020);margin-top:0}
