/* The normal workspace has one sidebar and one conversation. */
:root{--blue:#252b35;--line:#e7e7e9}
body{background:#fff;color:#26272b;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif}
[hidden]{display:none!important}
.app-shell{height:100dvh;min-height:0;grid-template-columns:248px minmax(0,1fr);overflow:hidden}
.main-sidebar{height:100dvh;position:static;background:#f7f7f8;padding:21px 12px 12px;border-color:#e8e8e9;overflow:hidden;gap:0}
.main-sidebar>.brand{margin:0 8px 23px;font-size:18px}.brand-mark{background:#30343b!important}
.main-sidebar>.nav-caption,.sidebar-note,.breadcrumb,.topbar h1,.app-footer,.stats,.page-intro,.quick-test-guide,.conversation-help,.task-sidebar .panel-heading,.task-sidebar>label,.project-note,.nav-icon{display:none!important}
.main-sidebar>nav{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 12px}.nav-item{font-size:12px;min-height:32px;padding:7px 10px;width:auto;margin:0}.nav-item.active{background:#e8e8eb;color:#20232a}
.main-sidebar .task-sidebar{border:0;border-radius:0;background:transparent;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;padding:0}
#new-task-button{background:transparent;border:1px solid #dbdce0;color:#25282e;margin-bottom:15px;box-shadow:none;text-align:left;width:100%;font-size:13px;padding:11px 14px}
#project-select,#conversation-filter{background:transparent;border:0;font-size:12px;min-height:31px;padding:5px 8px;margin:0 0 3px;width:100%;color:#676971}
.task-list{display:block;padding:0;margin:10px 0;max-height:none;flex:1;overflow:auto}
.task-item{min-width:0;max-width:none;width:100%;border:0;border-radius:7px;background:transparent;margin:0 0 3px;padding:12px 10px}.task-item.selected{background:#e8e9ec;border:0}.task-item h3{font-size:12px;color:#303239;line-height:1.6;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-item-bottom{margin-top:6px}.task-item time{font-size:10px}.task-item .badge{font-size:9px;background:none;padding:0;color:#81848d}.task-item.selected h3{font-weight:600}
.conversation-menu{font-size:11px;color:#858892;padding:4px 9px}.conversation-menu>summary{cursor:pointer;list-style:none}.conversation-menu .button{font-size:10px}.user-box{margin-top:10px;padding:13px 7px 0}.user-copy strong{font-size:11px}.user-copy span{font-size:10px}
.app-main{padding:0;min-width:0;display:flex;flex-direction:column;height:100dvh;overflow:auto}
.topbar{padding:12px 24px;border-bottom:0;min-height:46px}.topbar-actions{margin-left:auto}.topbar-actions .button{font-size:11px;padding:5px 9px;border:0;box-shadow:none}.connection{font-size:11px;color:#8b8d92}
.app-main>main{padding:0;flex:1;min-height:0;display:flex;flex-direction:column}
#tasks-view{flex:1;min-height:0;display:flex;flex-direction:column}.workspace-grid{display:block;min-height:0;flex:1}.task-detail{height:100%;min-height:0;border:0;border-radius:0;overflow:auto}
#detail-empty{display:none!important}#chat-workspace{height:100%;min-height:0;max-width:1040px;margin:auto;padding:0 40px 20px;display:flex;flex-direction:column}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0 18px}.chat-heading h2{font-size:16px;font-weight:600;margin:0;line-height:1.6}.chat-heading p{font-size:11px;color:#93959c;margin:4px 0 0}#chat-inline-actions{display:flex;gap:6px;flex-shrink:0}#chat-inline-actions .button{font-size:11px;padding:6px 9px;box-shadow:none}
.chat-simulation-note{flex-shrink:0;margin:0 0 10px;padding:10px 13px;border:1px solid #efd9aa;border-radius:9px;background:#fff8e9;color:#805d20;font-size:12px;line-height:1.6}
.chat-progress{flex-shrink:0;margin:0 0 8px}.chat-progress-caption{font-size:10px;color:#8a8d95;margin:0 0 3px}.chat-progress-stages{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0;padding:0}.chat-progress-step{position:relative;padding:4px 8px 7px 0;border-bottom:2px solid #ececef;color:#a0a2a9}.chat-progress-step:not(:last-child):after{content:"›";position:absolute;right:0;top:3px;color:#b1b3b9}.chat-progress-stage{display:block;font-size:11px;line-height:1.6;white-space:nowrap}.chat-progress-state{display:block;font-size:9px;line-height:1.5;margin-top:2px}.chat-progress-step.reached{color:#676c76}.chat-progress-step.current{color:#303745;border-bottom-color:#5b6575}.chat-progress-step.current .chat-progress-stage{font-weight:600}.chat-progress-summary{font-size:12px;color:#565c67;line-height:1.7;margin:3px 0 0;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.chat-progress-history{font-size:11px;color:#8a8d95;margin-top:8px}.chat-progress-history summary{cursor:pointer}.chat-progress-history ol{margin:8px 0;padding-left:19px}.chat-progress-history li{padding:3px 0;line-height:1.6}.chat-progress-history time{margin-right:9px}
#chat-transcript{flex:1;max-height:none;min-height:100px;overflow-y:auto;padding:12px 4px 20px;gap:18px;overscroll-behavior:contain}
.chat-welcome{margin:auto;text-align:center;font-size:25px;font-weight:600;letter-spacing:-.5px;color:#3d4047;padding:55px 12px}
.chat-message{max-width:94%;padding:8px 0;border:0!important;background:none!important;border-radius:0;flex-shrink:0}.chat-message.user{align-self:flex-end;background:#f1f2f4!important;border-radius:15px;padding:14px 19px;max-width:85%}.chat-message.assistant{align-self:flex-start}.chat-message p{font-size:14px;line-height:1.9;color:#383b43}.chat-label{font-size:10px;color:#8a8d95;font-weight:500}.chat-message.user>.chat-label{display:none}.chat-files{max-width:560px}
#chat-status{font-size:11px;min-height:16px;color:#8a8d96;margin:5px 0 9px}
#chat-form{flex-shrink:0;border:1px solid #dfe0e4;border-radius:19px;padding:13px 15px 10px;background:#fff;box-shadow:0 2px 10px #161a2310}
#chat-input{min-height:64px;max-height:165px;border:0;outline:none;box-shadow:none;padding:6px 4px;resize:vertical;font-size:14px;line-height:1.7;background:transparent}
.chat-form-footer{margin-top:0}#chat-send{border-radius:50%;width:35px;height:35px;min-width:35px;padding:0;font-size:22px;margin-left:auto;box-shadow:none;background:#2c3038;color:white}
#chat-attachment-composer{margin:0;padding:4px 0 0;border:0;background:none}#chat-attachment-composer>.attachment-help,#chat-attachment-composer>.attachment-capability{display:none}#chat-attachment-composer>.button{font-size:10px;padding:3px 5px;border:0;box-shadow:none;color:#a0a2a8}#chat-attachment-composer .attachment-heading{gap:8px;flex-wrap:wrap}#chat-attachment-composer .attachment-file-label{font-size:0;padding:4px 8px;margin:0;position:relative;min-width:30px;background:none;border:0;cursor:pointer}#chat-attachment-composer .attachment-file-label:before{content:"＋ 附件";font-size:12px;color:#767a84}#chat-attachment-composer input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}#chat-attachment-composer .attachment-heading>.button{font-size:11px;border:0;padding:4px 7px;box-shadow:none;color:#777c86}#chat-attachment-composer .attachment-list:empty{display:none}
#chat-attachment-composer .attachment-heading{display:flex;flex-direction:row;align-items:center;margin:0}#chat-attachment-composer .attachment-heading .attachment-file-label{width:auto}#chat-attachment-composer .attachment-list{margin:7px 0}#chat-attachment-composer>.inline-error:empty,#chat-error:empty{display:none}#chat-attachment-composer>.button{margin:3px 0;width:auto}.chat-form-footer{margin-top:0}#chat-form textarea{min-height:50px;height:62px}
#chat-admin-drawer{width:min(1000px,94vw);max-height:90dvh;margin:auto;padding:22px;overflow:auto}#chat-admin-drawer:not([open]){display:none}body[data-role=employee] #chat-admin-drawer{display:none!important}
#chat-admin-drawer .dialog-heading{position:sticky;top:-22px;background:#fff;padding:10px 0;z-index:1}#chat-admin-drawer .dialog-heading h2{font-size:19px;margin:0}#chat-admin-drawer #task-guidance,#chat-admin-drawer .detail-heading .eyebrow{display:none}#chat-admin-drawer .detail-heading{padding:4px 0 12px}#chat-admin-drawer .detail-heading h2{font-size:14px;margin:0}#chat-admin-drawer .code-review{max-height:36dvh}#chat-admin-drawer .detail-pane{padding:18px 0;min-height:0}#chat-admin-drawer .tabs,#chat-admin-drawer .detail-actions{padding-inline:0}
#admin-view,#external-threads-view{padding:16px 32px;overflow:auto;min-height:0}.admin-tabs{overflow-x:auto}.admin-grid{gap:20px}
@media(max-width:760px){.app-shell{grid-template-columns:176px minmax(0,1fr)}.main-sidebar{padding:15px 8px 10px;display:flex;flex-direction:column;align-items:stretch;height:100dvh}.main-sidebar>.brand{font-size:14px;margin-bottom:18px}.main-sidebar .brand-mark{width:26px;height:26px}.main-sidebar>nav{margin:0 0 12px}.nav-item{font-size:10px;padding:6px}.user-copy{display:block}.main-sidebar .user-box{gap:5px}.task-item{min-width:0;max-width:none}#chat-workspace{padding:0 16px 14px}.chat-heading{align-items:start}.chat-heading h2{font-size:14px}.topbar{padding:7px 16px;min-height:33px}.chat-welcome{font-size:20px}.chat-message p{font-size:13px}}
@media(max-width:520px){.app-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.main-sidebar{height:auto;max-height:160px;padding:10px 13px;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid #e8e8eb}.main-sidebar>.brand{margin:0;font-size:14px}.main-sidebar>nav{margin:0;justify-content:end}.main-sidebar .user-box{grid-column:2;grid-row:1;margin:0;border:0;padding:0}.main-sidebar>nav{grid-row:2;grid-column:2}.main-sidebar .user-copy{display:none}.main-sidebar .task-sidebar{grid-column:1/-1;display:grid;grid-template-columns:90px 1fr 75px;gap:3px;overflow:visible}.main-sidebar #new-task-button{margin:5px 0;padding:6px;font-size:11px}.main-sidebar #project-select{grid-column:2;margin:5px 0}.main-sidebar #conversation-filter{grid-column:3;margin:5px 0}.conversation-menu{display:none}.task-list{display:flex;grid-column:1/-1;max-height:39px;margin:0;gap:3px}.task-item{min-width:120px;width:auto;max-width:160px;padding:7px 9px;margin:0}.task-item-bottom{display:none}.task-item h3{font-size:10px}.app-main{height:100%;min-height:0}.topbar{display:none}#chat-workspace{padding:10px 15px 12px}.chat-heading{padding:0 0 8px}.chat-message{max-width:100%}.chat-message.user{max-width:94%}#admin-view,#external-threads-view{padding:14px}.chat-form textarea{font-size:16px!important}}

.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}
.chat-media-results{width:100%;flex-shrink:0}.chat-media-result{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.chat-media-preview{display:block;max-width:100%;max-height:420px;border-radius:10px;object-fit:contain;background:#f7f7f8}.chat-media-result .muted{font-size:11px;color:#858892}.chat-media-result .button{font-size:12px}
.chat-delivery-state{display:block;margin-top:7px;color:#7f838d;font-size:10px;line-height:1.6}.chat-send-hint{flex-shrink:0;font-size:11px;line-height:1.6;color:#747985;margin:0 3px 7px}#chat-send.chat-send-current{border-radius:18px;width:auto;min-width:120px;padding:0 13px;font-size:12px;white-space:nowrap}
.workspace-mode-label{font-size:11px;color:#777b84;margin:-13px 8px 15px;letter-spacing:.04em}
.role-controls{display:flex;align-items:center;gap:8px}.role-controls select{min-width:125px;max-width:190px;font-size:12px}
.permission-tree{max-height:360px;overflow:auto;border:1px solid #e7e7e9;border-radius:9px;padding:9px;margin:10px 0}
.permission-entry-row{display:flex;align-items:center;min-height:32px}.permission-choice{display:flex;flex-direction:row;align-items:center;gap:8px;flex:1;margin:0;padding:5px 4px;font-size:12px;cursor:pointer;font-weight:400}
.permission-choice input{width:15px;height:15px;min-height:0;margin:0;padding:0;flex-shrink:0}.permission-choice:has(input:disabled){color:#94969e;cursor:default}
.permission-root{border-bottom:1px solid #ededee;padding-bottom:11px;margin-bottom:5px;font-weight:600}.permission-expand{border:0;background:transparent;padding:4px;width:23px;cursor:pointer;color:#6c7078}.permission-file-marker{width:23px;text-align:center;color:#9ea1a7}
.permission-children{padding-left:23px}.permission-children>.muted,.permission-children>.inline-error{font-size:11px;padding:4px;margin:0}.permission-selected{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 15px}.permission-selected>.muted{font-size:12px;margin:0}
.permission-chip{display:inline-flex;align-items:center;gap:7px;background:#f0f1f4;padding:5px 7px;border-radius:5px;font-size:11px;max-width:100%;overflow-wrap:anywhere}.permission-remove{border:0;background:transparent;color:#777b83;cursor:pointer;padding:0 2px}
.review-queue-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid #e7e7e9}.review-queue-item strong{font-size:13px}.review-queue-item .muted{font-size:11px;margin:5px 0 0}
@media(max-width:520px){.workspace-mode-label{display:none}.role-controls{flex-wrap:wrap}.permission-tree{max-height:280px}.permission-children{padding-left:14px}}

.chat-work-explanation-details,.chat-progress-stage-details{font-size:11px;color:#81858e;margin-top:5px}.chat-work-explanation-details>summary,.chat-progress-stage-details>summary{cursor:pointer;width:fit-content;line-height:1.7}.chat-work-explanation-details[open]{padding-bottom:5px}.chat-work-explanation-details>.chat-work-explanation{max-height:180px;overflow-y:auto;margin-top:8px;padding:0 6px 0 0}.chat-progress-stage-details[open]>.chat-progress-stages{margin-top:8px}.chat-work-explanation{overflow-wrap:anywhere}.chat-work-explanation>.chat-work-paragraph{margin:0 0 12px;white-space:pre-wrap}.chat-work-explanation>.chat-work-paragraph:last-child{margin-bottom:0}.chat-work-explanation>.chat-restricted-content{margin:10px 0;padding:7px 11px;border-left:2px solid #dcdde2;background:#f7f7f8;border-radius:0 5px 5px 0;color:#858992;font-size:11px;line-height:1.7;white-space:pre-wrap}.chat-work-explanation-details .chat-work-paragraph{font-size:12px;line-height:1.8;color:#565c67}
/* Workbench history stays compact but its controls remain accessible on phones. */
body[data-surface=workbench] .main-sidebar>nav{margin-bottom:10px}
body[data-surface=workbench] .conversation-history{min-height:0;display:flex;flex-direction:column;margin-top:10px}
body[data-surface=workbench] .conversation-history>summary{font-size:12px;color:#6d727b;cursor:pointer;padding:9px 5px;display:flex;align-items:center;justify-content:space-between;list-style:none}
body[data-surface=workbench] .conversation-history>summary:before{content:"▾";margin-right:8px}
body[data-surface=workbench] .conversation-history:not([open])>summary:before{content:"▸"}
body[data-surface=workbench] .conversation-history:not([open])>*:not(summary){display:none}
body[data-surface=workbench] .conversation-history .count{margin-left:auto;font-size:10px;background:#eceef1}
body[data-surface=workbench] .task-list{overflow:visible}
body[data-surface=workbench] .conversation-row{position:relative;display:flex;align-items:flex-start;margin:3px 0;border-radius:8px}
body[data-surface=workbench] .conversation-row .task-item{padding-right:32px;margin:0;min-width:0}
body[data-surface=workbench] .conversation-item-menu{position:absolute;right:4px;top:9px;z-index:2}
body[data-surface=workbench] .conversation-item-menu>summary{width:24px;min-height:26px;text-align:center;list-style:none;cursor:pointer;font-size:17px;border-radius:5px;color:#737984}
body[data-surface=workbench] .conversation-item-menu>summary:hover,body[data-surface=workbench] .conversation-item-menu[open]>summary{background:#dee1e7}
body[data-surface=workbench] .conversation-item-actions{position:absolute;right:0;top:29px;width:164px;padding:8px;background:white;border:1px solid #dedfe4;border-radius:9px;box-shadow:0 5px 20px #161a2320;display:flex;flex-direction:column;gap:4px}
body[data-surface=workbench] .conversation-item-actions .button{width:100%;text-align:left;font-size:12px;padding:7px 9px}
body[data-surface=workbench] .conversation-item-actions .muted{font-size:11px;line-height:1.6}
body[data-surface=workbench] .task-sidebar{overflow-y:auto;overflow-x:visible;padding-right:2px}
body[data-surface=workbench] .app-main{overflow:hidden}
@media(max-width:520px){
body[data-surface=workbench] .main-sidebar{max-height:none;overflow:visible}
body[data-surface=workbench] .main-sidebar>nav{display:none}
body[data-surface=workbench] .main-sidebar .task-sidebar{display:grid;grid-template-columns:100px minmax(0,1fr);gap:3px;overflow:visible}
body[data-surface=workbench] .main-sidebar #new-task-button{grid-column:1}
body[data-surface=workbench] .main-sidebar #project-select{grid-column:2}
body[data-surface=workbench] .conversation-history{grid-column:1/-1;margin-top:0;min-width:0}
body[data-surface=workbench] .conversation-history>summary{padding:3px 4px;font-size:11px}
body[data-surface=workbench] #conversation-filter{max-width:130px;margin:3px 0;padding:4px;min-height:29px}
body[data-surface=workbench] .task-list{display:flex;flex-wrap:wrap;max-height:94px;overflow-y:auto;margin:3px 0;gap:3px}
body[data-surface=workbench] .conversation-row{width:calc(50% - 3px);margin:0}
body[data-surface=workbench] .conversation-row .task-item{min-width:0;width:100%;max-width:100%;padding:8px 28px 8px 7px}
body[data-surface=workbench] .conversation-item-menu{top:1px;right:1px}
body[data-surface=workbench] .conversation-item-actions{position:fixed;top:110px;right:14px;width:185px;z-index:30}
body[data-surface=workbench] .conversation-item-actions .button{min-height:36px}
}

/* File drops cover the transcript and input; the hint never intercepts events. */
.attachment-drop-target{position:relative}
.chat-workspace.drag-active{outline:2px dashed #8caddc;outline-offset:-4px;background:#f6f9fe}
.attachment-drop-hint{position:absolute;z-index:8;top:12px;left:50%;transform:translateX(-50%);pointer-events:none;border:1px solid #c9d9ef;border-radius:8px;background:#edf4ff;color:#3262a0;padding:8px 16px;margin:0;font-size:12px;white-space:nowrap;box-shadow:0 3px 12px #142c4612}
.attachment-drop-hint[hidden]{display:none}


/* Keep message time visible for user bubbles and public AI work explanations. */
.chat-message>.chat-label{display:inline-block;vertical-align:baseline;margin:0 10px 6px 0}
.chat-message-time{display:inline-block;vertical-align:baseline;margin:0 0 6px;color:#8a8d95;font-size:10px;font-weight:400;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.chat-message.user>.chat-label{display:none}
.chat-message.user>.chat-message-time{display:block;text-align:right;margin-bottom:7px}
/* Password and TOTP are separate, compact stages; secrets are never cached. */
.mfa-view h3{margin:18px 0 14px;font-size:20px}.mfa-view .button{margin-top:12px}.mfa-qr{display:block;width:200px;height:200px;max-width:100%;margin:16px auto;background:white}.mfa-view label{display:block;margin:14px 0}.mfa-view input{width:100%}.mfa-recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px 0;list-style:none;font:13px/1.8 Consolas,monospace;user-select:text}.mfa-saved-label{display:flex!important;align-items:center;gap:9px}.mfa-saved-label input{width:auto}.mfa-view[hidden],.mfa-view section[hidden],.mfa-qr[hidden]{display:none!important}

/* Employee phones use one conversation; history opens as a separate drawer. */
.mobile-navigation-button,.workspace-backdrop{display:none}
@media(max-width:900px){
  body[data-surface=workbench]{overflow-x:hidden}
  body[data-surface=workbench] .app-shell{display:block;height:var(--workspace-height,100dvh);min-height:0;width:100%;overflow:hidden}
  body[data-surface=workbench] .app-main{height:100%;min-height:0;width:100%;padding:0;overflow:hidden}
  body[data-surface=workbench] .mobile-navigation-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:44px;min-height:44px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:#343740;font-size:20px;flex-shrink:0}
  body[data-surface=workbench] .mobile-navigation-button span{font-size:15px;font-weight:600}
  body[data-surface=workbench] .mobile-navigation-button:hover{background:#eeeef1}
  body[data-surface=workbench] .topbar{display:flex;min-height:52px;padding:4px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left));gap:8px;border-bottom:1px solid #efeff1;flex-shrink:0}
  body[data-surface=workbench] .topbar-actions{gap:8px}
  body[data-surface=workbench] .connection{display:inline-flex;font-size:11px}
  body[data-surface=workbench] #refresh-button{min-height:44px;font-size:12px;padding:8px}
  body[data-surface=workbench] .main-sidebar{position:fixed;inset:0 auto auto 0;height:var(--workspace-height,100dvh);max-height:none;width:min(320px,calc(100vw - 42px));padding:20px 14px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:0;z-index:42;background:#f7f7f8;border-right:1px solid #e5e5e8;border-bottom:0;overflow:hidden;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease}
  body[data-surface=workbench][data-navigation=open] .main-sidebar{transform:translateX(0);visibility:visible}
  body[data-surface=workbench] .main-sidebar>.brand{font-size:18px;gap:9px;margin:4px 48px 9px 8px;min-height:40px}
  body[data-surface=workbench] .main-sidebar .brand-mark{width:32px;height:32px}
  body[data-surface=workbench] .main-sidebar .brand-thin{display:inline}
  body[data-surface=workbench] .mobile-sidebar-close{position:absolute;top:18px;right:12px;font-size:27px}
  body[data-surface=workbench] .workspace-mode-label{display:block;margin:0 8px 18px;font-size:12px}
  body[data-surface=workbench] .main-sidebar>nav{display:none}
  body[data-surface=workbench] .main-sidebar .task-sidebar{display:flex;flex-direction:column;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:0 2px 0 0;gap:0}
  body[data-surface=workbench] #new-task-button{width:100%;min-height:44px;margin:0 0 11px;padding:10px 12px;font-size:14px;flex-shrink:0}
  body[data-surface=workbench] #project-select,body[data-surface=workbench] #conversation-filter{width:100%;max-width:none;min-height:44px;margin:0 0 6px;padding:9px 8px;font-size:16px;flex-shrink:0}
  body[data-surface=workbench] .conversation-history{display:flex;flex-direction:column;min-width:0;min-height:0;margin:4px 0 0}
  body[data-surface=workbench] .conversation-history>summary{min-height:44px;padding:10px 5px;font-size:14px;flex-shrink:0}
  body[data-surface=workbench] .task-list{display:block;max-height:none;margin:5px 0 15px;overflow:visible;padding:0}
  body[data-surface=workbench] .conversation-row{width:100%;margin:4px 0;min-height:62px}
  body[data-surface=workbench] .conversation-row .task-item{width:100%;min-width:0;max-width:none;padding:12px 48px 10px 10px;min-height:62px}
  body[data-surface=workbench] .task-item h3{font-size:14px;line-height:1.6}
  body[data-surface=workbench] .task-item-bottom{display:flex;margin-top:5px}
  body[data-surface=workbench] .task-item .badge{font-size:11px}
  body[data-surface=workbench] .task-item time{font-size:11px}
  body[data-surface=workbench] .conversation-item-menu{top:8px;right:2px}
  body[data-surface=workbench] .conversation-item-menu>summary{width:44px;min-height:44px;padding-top:9px;font-size:20px}
  body[data-surface=workbench] .conversation-item-actions{position:absolute;top:43px;right:0;width:185px;z-index:44}
  body[data-surface=workbench] .conversation-item-actions .button{min-height:44px;font-size:14px}
  body[data-surface=workbench] .main-sidebar .user-box{display:flex;margin:12px 0 0;padding:13px 7px 0;gap:9px;flex-shrink:0;border-top:1px solid #e4e4e7}
  body[data-surface=workbench] .user-box .avatar{display:flex;width:34px;height:34px}
  body[data-surface=workbench] .user-copy{display:flex}
  body[data-surface=workbench] .user-copy strong{font-size:13px}
  body[data-surface=workbench] .user-copy span{font-size:11px}
  body[data-surface=workbench] #logout-button{min-width:44px;height:44px}
  body[data-surface=workbench] .workspace-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:41;width:100%;height:var(--workspace-height,100dvh);border:0;border-radius:0;padding:0;background:#15192355}
  body[data-surface=workbench] .workspace-grid,body[data-surface=workbench] .task-detail{display:flex;flex-direction:column;min-height:0;height:100%;min-width:0;overflow:hidden}
  body[data-surface=workbench] #chat-workspace{width:100%;height:100%;min-height:0;min-width:0;padding:0 max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  body[data-surface=workbench] .chat-heading{align-items:flex-start;gap:8px;padding:12px 0 10px;flex-shrink:0}
  body[data-surface=workbench] .chat-heading>div:first-child{min-width:0;flex:1}
  body[data-surface=workbench] .chat-heading h2{font-size:16px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body[data-surface=workbench] .chat-heading p{font-size:12px;overflow-wrap:anywhere}
  body[data-surface=workbench] #chat-inline-actions{gap:4px}
  body[data-surface=workbench] #chat-inline-actions .button{min-height:44px;padding:8px;font-size:12px}
  body[data-surface=workbench] #chat-transcript{min-height:0;min-width:0;padding:8px 0 18px;gap:16px;max-height:none;overflow-x:hidden;overflow-y:auto}
  body[data-surface=workbench] .chat-message{max-width:100%;min-width:0;width:100%;overflow-wrap:anywhere}
  body[data-surface=workbench] .chat-message.user{width:auto;max-width:94%;padding:12px 15px}
  body[data-surface=workbench] .chat-message p,body[data-surface=workbench] .chat-work-explanation,body[data-surface=workbench] .chat-work-explanation>.chat-work-paragraph{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
  body[data-surface=workbench] .chat-work-explanation code{overflow-wrap:anywhere;white-space:break-spaces}
  body[data-surface=workbench] .chat-work-explanation pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
  body[data-surface=workbench] .chat-work-explanation ul,body[data-surface=workbench] .chat-work-explanation ol{padding-left:22px}
  body[data-surface=workbench] .chat-message-time,body[data-surface=workbench] .chat-label{font-size:11px}
  body[data-surface=workbench] #chat-status{flex-shrink:0;margin:4px 0 7px;font-size:12px}
  body[data-surface=workbench] #chat-send-hint{font-size:12px}
  body[data-surface=workbench] #chat-form{display:flex;flex-direction:column;min-width:0;max-height:min(48dvh,360px);overflow:hidden;padding:9px 10px 8px;border-radius:16px;margin:0;flex-shrink:0}
  body[data-surface=workbench] #chat-input{font-size:16px!important;line-height:1.6;height:60px;min-height:48px;max-height:110px;resize:none;padding:5px 4px;flex-shrink:0}
  body[data-surface=workbench] #chat-input::placeholder{font-size:14px}
  body[data-surface=workbench] #chat-attachment-composer{min-height:44px;max-height:min(26dvh,170px);overflow-y:auto;flex:1;overscroll-behavior:contain}
  body[data-surface=workbench] #chat-attachment-composer .attachment-heading{gap:4px}
  body[data-surface=workbench] #chat-attachment-composer .attachment-file-label{min-height:44px;min-width:70px;display:flex;align-items:center;padding:8px}
  body[data-surface=workbench] #chat-attachment-composer .attachment-file-label:before{font-size:14px}
  body[data-surface=workbench] #chat-attachment-composer .attachment-heading>.button{min-height:44px;font-size:13px;padding:8px}
  body[data-surface=workbench] #chat-attachment-composer>.button{min-height:36px;font-size:12px}
  body[data-surface=workbench] #chat-attachment-composer .attachment-list{grid-template-columns:1fr;margin:5px 0}
  body[data-surface=workbench] .attachment-card{overflow-wrap:anywhere}
  body[data-surface=workbench] #chat-send{width:44px;height:44px;min-width:44px}
  body[data-surface=workbench] #chat-send.chat-send-current{width:auto;max-width:100%;font-size:12px}
  body[data-surface=workbench] .chat-form-footer{gap:8px;align-items:flex-end;flex-shrink:0}
  body[data-surface=workbench] .chat-files{max-width:100%;overflow-wrap:anywhere}
  body[data-surface=workbench] .chat-welcome{font-size:22px;padding:32px 8px}
  body[data-surface=workbench] .attachment-drop-hint{max-width:95%;white-space:normal;text-align:center}
  body[data-surface=workbench] .toast{max-width:calc(100vw - 28px);right:14px;bottom:max(16px,env(safe-area-inset-bottom));overflow-wrap:anywhere}
  body[data-surface=workbench] .login-shell{display:block;min-height:100svh}
  body[data-surface=workbench] .login-story{display:none}
  body[data-surface=workbench] .login-side{min-height:100svh;padding:32px max(22px,env(safe-area-inset-right)) 70px max(22px,env(safe-area-inset-left));align-items:center}
  body[data-surface=workbench] .login-card{width:380px;max-width:100%}
  body[data-surface=workbench] .mobile-brand{display:block;font-size:22px;margin-bottom:32px}
  body[data-surface=workbench] .login-card input{font-size:16px;min-height:48px}
  body[data-surface=workbench] .login-card h2{font-size:24px;line-height:1.5}
  body[data-surface=workbench] .login-version{left:22px;right:22px;bottom:22px;font-size:10px;overflow-wrap:anywhere}
}
