:root { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; color: #263748; background: #fff; font-size: 14px; }
* { box-sizing: border-box; } body { margin: 0; display: grid; grid-template-columns: 232px minmax(440px,1fr) 310px; height: 100vh; overflow: hidden; } button,textarea { font: inherit; } button { cursor: pointer; color: inherit; border: 1px solid #dae2e7; border-radius: 8px; padding: 9px 12px; background: #fff; } button:hover { background: #edf0f5; } button:disabled { opacity: .45; cursor: default; } button:focus-visible,summary:focus-visible { outline: 2px solid #004685; outline-offset: 3px; } h1 { font-size: 29px; letter-spacing: -1px; margin: 10px 0 15px; } h2 { font-size: 19px; margin: 0 0 6px; } h3,h4,p { margin-top: 0; } small,.muted { color: #7b8895; line-height: 1.7; } .sidebar { background: #f3f6f8; padding: 25px 14px 18px; display: flex; flex-direction: column; border-right: 1px solid #e4eaee; overflow: auto; } .brand { font-size: 18px; font-weight: 650; margin: 0 6px 28px; } .brand-icon { color: #004685; font-size: 25px; margin-right: 6px; } .nav { text-align: left; width: 100%; background: transparent; border: 0; } .eyebrow { font-size: 11px; color: #83909a; letter-spacing: 1px; margin: 22px 6px 14px; } .slot { display: block; width: 100%; text-align: left; padding: 16px; margin-bottom: 10px; background: #fff; border: 1px solid #e5eaee; border-radius: 12px; } .slot strong { display: flex; justify-content: space-between; align-items: center; } .slot p { font-size: 12px; color: #7a8794; margin: 12px 0 8px; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; word-break: break-word; } .slot.selected { background: #e8edf4; border-color: #9cafcb; } .dot { width: 7px; height: 7px; border-radius: 50%; background: #b8c2cb; } .dot.busy { background: #2d5a9b; } .sidebar-bottom { margin-top: auto; padding-top: 30px; } .demo { color: #b48836; font-size: 12px; margin: 20px 10px 4px; } .sidebar-bottom>small { font-size: 10px; margin-left: 10px; } main { min-width: 0; overflow: hidden; } .overview { padding: 44px 32px; } .overview>.eyebrow { color: #004685; margin-left: 0; } .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 35px 0 20px; } .grid .slot { min-height: 150px; } .summary { margin-top: 50px; font-size: 12px; color: #8b98a3; } .chat { height: 100%; display: flex; flex-direction: column; } .chat-header { display: flex; align-items: center; gap: 12px; padding: 23px; border-bottom: 1px solid #e8edf0; } .chat-header>div { margin-right: auto; } .badge { background: #eef0f4; border-radius: 20px; font-size: 11px; padding: 6px 10px; white-space: nowrap; } #messages { flex: 1; overflow: auto; padding: 28px; } .message { padding: 18px; margin-bottom: 20px; border-radius: 12px; line-height: 1.8; overflow-wrap: anywhere; } .message.user { background: #edf1f7; } .message small { display: block; margin-bottom: 9px; font-size: 11px; } .message>div { white-space: pre-wrap; user-select: text; } .welcome { margin: 65px 0; color: #7b8997; } .welcome>span { color: #004685; font-size: 36px; display: block; margin-bottom: 22px; } .welcome h2 { color: #334756; } .progress { color: #004685; font-size: 12px; } #composer { padding: 18px 22px 22px; border-top: 1px solid #f0f3f5; } textarea { resize: none; width: 100%; height: 90px; border: 1px solid #dce4e8; border-radius: 12px; padding: 14px; color: inherit; outline-color: #5f7da9; background: #fbfcfd; } .compose-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; } .compose-footer small { font-size: 10px; } .compose-footer>div { display: flex; gap: 8px; } .primary { color: #fff; background: #004685; border-color: #004685; } .primary:hover { background: #143666; } .files { background: #f9fbfc; border-left: 1px solid #e4eaee; display: flex; flex-direction: column; min-width: 0; } .files header { padding: 26px 20px 18px; border-bottom: 1px solid #e4eaee; } .files h3 { font-size: 15px; margin-bottom: 7px; } #tree { padding: 18px 12px; height: 42%; overflow: auto; flex-shrink: 0; } details details { margin: 12px 0 12px 16px; } summary { cursor: pointer; color: #485b77; font-size: 13px; } .file { text-align: left; display: block; width: 100%; background: transparent; border: none; padding: 9px 6px; font-size: 12px; overflow-wrap: anywhere; } .file.active { background: #e6ebf2; } .empty-folder { font-size: 11px; margin: 10px 0; } .preview { flex: 1; min-height: 0; border-top: 1px solid #e4eaee; padding: 20px; display: flex; flex-direction: column; } .preview h4 { font-size: 13px; overflow-wrap: anywhere; } pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; overflow: auto; font-size: 12px; margin: 0; color: #5c6e7c; } footer { padding: 12px; font-size: 10px; color: #8b98a3; border-top: 1px solid #e4eaee; } dialog { border: 1px solid #dce4e8; border-radius: 16px; padding: 28px; width: 540px; box-shadow: 0 20px 90px #173b4933; color: inherit; } dialog::backdrop { background: #172d3a55; } dialog p { line-height: 1.8; margin-top: 16px; } .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; } #history-dialog { width: 740px; max-height: 85vh; overflow: auto; } #history-dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .history-row { display: block; width: 100%; text-align: left; margin-bottom: 8px; } .history-row small { display: block; margin-top: 6px; } #history-detail { margin-top: 25px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
.login-screen { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-intro { padding: 70px 60px; background: linear-gradient(145deg,#edf1f7,#f3f6fa); display:flex;flex-direction:column;justify-content:center; }
.login-intro .brand { position:absolute;top:50px; }
.login-intro h1 { font-size:44px;line-height:1.5;letter-spacing:-1px; }
.login-intro p { color:#6a7380;line-height:2;font-size:16px; }
.login-intro>small { position:absolute;bottom:45px; }
.login-form { width:340px;align-self:center;justify-self:center;display:flex;flex-direction:column; }
.login-form h2 { font-size:27px;margin:5px 0 12px; }
.login-form label { margin:18px 0 9px;font-size:13px; }
.login-form input { border:1px solid #d9dde3;border-radius:9px;padding:13px 14px;font:inherit;color:inherit;background:#fbfbfc; }
.login-form input:focus { outline:2px solid #708cb5; }
.login-form .primary { padding:13px; }
.login-form>small { margin-top:22px;text-align:center;font-size:11px; }
#login-error { min-height:20px;font-size:12px;color:#b34b44;margin:14px 0;line-height:1.7; }
.account { display:flex;align-items:center;justify-content:space-between;margin:16px 6px 0;font-size:12px; }
.account button { font-size:11px;padding:5px 7px;background:transparent; }
.auth-locked > .sidebar, .auth-locked > #work-area, .auth-locked > .files { visibility:hidden; }
#workspace-path { display:block;overflow-wrap:anywhere;font-size:11px;user-select:text; }
.workspace-note { display:block;margin-top:7px;font-size:10px;color:#ad8647; }
#service-error { position:fixed;top:8px;left:260px;right:330px;z-index:8;padding:12px 16px;border:1px solid #efd5b4;border-radius:8px;background:#fff4e5;color:#925b19;box-shadow:0 4px 20px #0001;font-size:12px; }
.interaction-card { border:1px solid #c7d0de;background:#f4f6fa;padding:16px;border-radius:12px;margin:16px 0; }
.interaction-card p { margin:10px 0;line-height:1.7; }
.interaction-card pre { max-height:170px;margin-bottom:14px; }
.interaction-card button { margin:6px 8px 0 0; }
.interaction-card fieldset { border:0;padding:12px 0;margin:0; }
.interaction-card legend { font-weight:600; }
.interaction-card label { display:block;margin:10px 0;line-height:1.7; }
.interaction-card input[type=text] { display:block;width:100%;padding:9px;border:1px solid #cbd3de;border-radius:6px; }
.error-text { color:#ac4f42;font-size:12px; }
#instructions-dialog { width:760px;max-height:88vh;overflow:auto; }
#instructions-dialog header { display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px; }
#instructions-dialog label { display:block;font-size:13px;font-weight:600;margin-bottom:10px; }
#instructions-text { min-height:250px;height:35vh;resize:vertical;line-height:1.8;background:#fbfbfc; }
.instructions-meta { display:flex;justify-content:space-between;margin-top:6px;gap:15px; }
.instructions-help { font-size:12px; }
#instructions-status { font-size:12px;color:#004685;min-height:20px;white-space:pre-wrap; }
.execution-inline { margin:0 0 16px;border:0;border-left:2px solid #e3e6eb;border-radius:0;background:transparent;padding-left:12px;overflow:hidden; }
.execution-inline>summary { display:flex;align-items:center;gap:8px;padding:4px 0;list-style:none;color:#616975;font-size:12px; }
.execution-inline>summary::-webkit-details-marker { display:none; }
.execution-inline>summary::after { content:'⌄';margin-left:auto; }
.execution-inline[open]>summary::after { content:'⌃'; }
.execution-inline>summary strong { color:#404d5f;font-weight:600;white-space:nowrap; }
.activity-icon { color:#667b98; }
.activity-icon.active { animation:activity-pulse 1.8s infinite; }
.execution-inline ol { padding:0;list-style:none;margin:0; }
.activity-step { display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid #e7eaee;font-size:12px;color:#4b5665; }
.activity-step>div { flex:1; }
.activity-step>div small { display:block;overflow-wrap:anywhere; }
.activity-step.failed { color:#a35c4e; }
.execution-inline>p { padding:0 16px;margin:3px 0 10px;font-size:11px; }
.activity-note { display:block;padding:6px 0;font-size:10px; }
@keyframes activity-pulse { 50% { opacity:.35; } }
@media(prefers-reduced-motion:reduce) { .activity-icon.active { animation:none; } }
.message.assistant { padding:10px 4px 20px; }
.message.assistant .markdown { white-space:normal;line-height:1.85;color:#304353;overflow-wrap:anywhere; }
.markdown>:first-child { margin-top:0; }
.markdown>:last-child { margin-bottom:0; }
.markdown p { margin:0 0 14px; }
.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6 { color:#243b49;line-height:1.5;letter-spacing:0;margin:26px 0 12px;font-weight:650; }
.markdown h1 { font-size:24px; }
.markdown h2 { font-size:20px;padding-bottom:9px;border-bottom:1px solid #e7edef; }
.markdown h3 { font-size:17px; }
.markdown h4,.markdown h5,.markdown h6 { font-size:14px; }
.markdown ul,.markdown ol { padding-left:24px;margin:10px 0 18px; }
.markdown li { padding-left:3px;margin:5px 0; }
.markdown li>p { margin:6px 0; }
.markdown li ul,.markdown li ol { margin:5px 0; }
.markdown strong { font-weight:650;color:#263f4c; }
.markdown blockquote { margin:16px 0;padding:10px 16px;border-left:3px solid #8da1be;background:#f3f5f8;color:#606873;border-radius:0 8px 8px 0; }
.markdown blockquote p:last-child { margin-bottom:0; }
.markdown code { font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.88em;background:#eef3f4;color:#465871;padding:3px 6px;border-radius:5px;white-space:break-spaces; }
.markdown pre { position:relative;white-space:pre;overflow-x:auto;margin:16px 0 20px;padding:0 16px 16px;border:1px solid #dfe7ea;border-radius:10px;background:#f5f8f9;line-height:1.65;color:#334f5d; }
.markdown pre code { display:block;padding:0;background:none;border-radius:0;color:inherit;font-size:12px;white-space:pre; }
.code-toolbar { display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 -16px 12px;padding:8px 12px;background:#edf2f4;border-bottom:1px solid #e0e7e9;font-family:inherit;font-size:10px;color:#76858e; }
.code-toolbar button { border:0;background:transparent;font-size:10px;padding:3px 8px; }
.md-table-wrapper { overflow-x:auto;max-width:100%;margin:16px 0 22px;border:1px solid #dce5e8;border-radius:9px; }
.markdown table { width:100%;border-collapse:collapse;font-size:12px;line-height:1.7;margin:0; }
.markdown th,.markdown td { padding:10px 13px;border-bottom:1px solid #e5ecee;border-right:1px solid #e5ecee;text-align:left;min-width:95px; }
.markdown th { font-weight:600;background:#edf0f4;color:#425063; }
.markdown tr:last-child td { border-bottom:0; }
.markdown tr>*:last-child { border-right:0; }
.markdown tr:nth-child(even) td { background:#f9fafb; }
.markdown [align=center] { text-align:center; }
.markdown [align=right] { text-align:right; }
.markdown a { color:#004685;text-decoration:underline;text-underline-offset:3px;cursor:pointer; }
.markdown a:hover { color:#162c4c; }
.markdown hr { margin:24px 0;border:0;border-top:1px solid #e1e9eb; }
.markdown a:not([href]) { color:inherit;text-decoration:none;cursor:text; }
.login-form .remember-option { display:flex;align-items:center;gap:8px;margin:17px 0 0;font-size:12px;color:#646d7a;cursor:pointer; }
.login-form .remember-option input { width:15px;height:15px;margin:0;padding:0;accent-color:#004685; }
.activity-heading { display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-weight:600; }
.activity-heading code { font-size:10px;font-weight:400;color:#7b828c;background:#eaecf0;padding:2px 6px;border-radius:4px; }
.activity-file { color:#364b69;margin:5px 0; }
.activity-status { text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums; }
.activity-step progress { display:block;width:100%;height:5px;accent-color:#004685;margin-top:10px; }
.activity-output { margin:8px 0;background:#eef0f3;border-radius:7px;padding:8px 10px;max-height:260px;overflow:auto; }
.activity-output>div+div { border-top:1px solid #dce0e6;padding-top:7px;margin-top:7px; }
.activity-output time { color:#828993;font-size:10px;font-variant-numeric:tabular-nums; }
.activity-output pre { font-size:11px;line-height:1.6;color:#505a68;user-select:text; }
.activity-result { margin-top:5px;color:#7b828c; }

/* Constrain the chat to the viewport; only the message list consumes spare height. */
html { height:100%;overflow:hidden; }
body { height:100dvh;min-height:0;grid-template-rows:minmax(0,1fr); }
body>.sidebar, body>main, body>.files { min-height:0;height:100%; }
.chat { min-height:0;overflow:hidden; }
.chat-header, #composer { flex:0 0 auto; }
#messages { flex:1 1 0;min-height:0;min-width:0;overscroll-behavior:contain; }
#composer { margin:0; }
#draft { display:block; }
.compose-footer>div { flex-shrink:0; }

.execution-inline>.execution-live { padding:4px 0; color:#616975; font-size:11px; font-variant-numeric:tabular-nums; }

.draft-references { display:flex; flex-wrap:wrap; gap:7px; max-height:80px; overflow:auto; }
.draft-references:empty { display:none; }
.draft-references:not(:empty) { margin-bottom:10px; }
.file-reference { display:inline-flex; align-items:center; gap:6px; max-width:100%; background:#e6ebf2; border:1px solid #c6cfdd; border-radius:7px; padding:4px 8px; color:#324867; font-size:12px; vertical-align:middle; white-space:normal; }
.reference-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:230px; }
.file-reference button { border:0; padding:0 3px; background:transparent; color:#63738b; line-height:1.2; }
.message-references { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
#composer.drag-over { background:#eef2f8; outline:2px dashed #004685; outline-offset:-5px; }
[data-drag-path][draggable="true"] { cursor:grab; }

/* Two-column workbench: compact window grid above the server files. */
body { grid-template-columns:280px minmax(0,1fr); }
.sidebar { padding:16px 12px 12px; overflow:hidden; }
.sidebar>.brand { font-size:17px; line-height:28px; margin:0 4px 8px; flex-shrink:0; }
.sidebar>#home { font-size:12px; padding:6px 8px; line-height:18px; flex-shrink:0; }
.sidebar>.eyebrow { font-size:10px; line-height:12px; margin:8px 4px 6px; flex-shrink:0; }
#slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; flex-shrink:0; }
#slots .slot { min-width:0; margin:0; padding:9px 10px; border-radius:9px; }
#slots .slot strong { font-size:12px; gap:6px; }
#slots .slot p { height:16px; margin:6px 0 4px; font-size:10px; line-height:16px; -webkit-line-clamp:1; }
#slots .slot small { display:block; font-size:10px; line-height:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar>.files { flex:1 1 0; min-height:0; margin-top:14px; border:1px solid #dfe3e8; border-radius:11px; overflow:hidden; }
.sidebar .files header { flex-shrink:0; padding:10px 10px 7px; }
.sidebar .files h3 { font-size:12px; margin:0 0 3px; }
.sidebar #workspace-path { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
.sidebar .workspace-note { display:none; }
.sidebar #tree { flex:1 1 0; height:auto; min-height:45px; padding:10px; }
.sidebar #tree summary { font-size:12px; }
.sidebar #tree .file { font-size:11px; padding:7px 5px; }
.sidebar .preview { flex:0 1 100px; min-height:0; max-height:130px; padding:9px 10px; overflow:auto; }
.sidebar .preview h4 { font-size:11px; margin:0 0 5px; flex-shrink:0; }
.sidebar #file-content { min-height:0; font-size:11px; line-height:1.6; }
.sidebar .files footer { flex-shrink:0; padding:5px 10px; font-size:9px; }
.sidebar-bottom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; flex-shrink:0; margin-top:0; padding-top:10px; }
.sidebar-bottom>.nav { min-width:0; padding:6px 7px; font-size:11px; white-space:nowrap; }
.sidebar-bottom>.account { grid-column:1/-1; margin:5px 4px 0; font-size:11px; }
.sidebar-bottom .account button { font-size:10px; padding:4px 6px; }
.sidebar-bottom>.demo { grid-column:1/-1; margin:4px 4px 0; font-size:10px; }
.sidebar-bottom>small { display:none; }
#service-error { left:300px; right:20px; }

.file-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.file-panel-heading #upload-files { padding:3px 6px; font-size:10px; background:transparent; }
.file-row { display:flex; align-items:center; min-width:0; }
.file-row .file { flex:1; min-width:0; }
#tree.upload-drag-over { background:#edf2f8; outline:2px dashed #004685; outline-offset:-3px; }
#tree .upload-target { border-radius:5px; background:#d8e1ee; }
#transfers { flex:0 1 auto; max-height:160px; overflow:auto; padding:7px 10px; border-top:1px solid #dfe3e8; }
.transfer-item { padding:6px 0; font-size:10px; }
.transfer-item>div { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.transfer-item>div>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.transfer-item button { padding:0 4px; border:0; background:transparent; }
.transfer-item progress { display:block; width:100%; height:5px; accent-color:#004685; margin:5px 0; }
.transfer-item small { display:block; font-size:9px; line-height:1.5; }
.transfer-item.failed progress { accent-color:#b45d50; }
#composer-upload-tools:empty,#chat-draft-uploads:empty,#chat-pending-uploads:empty { display:none; }
#composer-upload-tools { margin:0 0 7px; }
#composer-upload-tools button { padding:5px 9px;font-size:12px;color:#365279; }
#chat-draft-uploads { display:flex;flex-wrap:wrap;gap:7px;max-height:110px;overflow:auto;margin-bottom:8px; }
.chat-file { display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%;padding:7px 9px;border:1px solid #d5dce5;background:#f4f6fa;border-radius:9px;font-size:12px; }
.chat-file-name { max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.chat-file small { font-size:10px; }
.chat-file button { padding:2px 5px;font-size:10px;border:0;background:transparent; }
.chat-file progress { width:70px;height:5px;accent-color:#004685; }
.chat-file .error-text { flex-basis:100%; }
#chat-pending-uploads { max-height:180px;overflow:auto; }
.pending-upload { padding:9px 11px;margin-bottom:8px;border:1px solid #d6dde6;border-radius:9px;background:#f5f7fa;font-size:11px; }
.pending-upload strong { font-size:12px;font-weight:600;color:#324b6e; }
.pending-upload-text { white-space:pre-wrap;overflow-wrap:anywhere;max-height:60px;overflow:auto;margin:6px 0; }
.pending-upload>small { display:block;font-size:10px;margin:5px 0; }
.pending-upload button { font-size:10px;padding:4px 6px; }
.pending-files { display:flex;flex-wrap:wrap;gap:5px; }

.reply-file-download { display:inline-flex; align-items:center; justify-content:center; margin:0 4px; padding:1px 6px; border:1px solid #c8d1dd; border-radius:5px; color:#004685; background:#f0f3f8; font-size:13px; cursor:pointer; vertical-align:baseline; }
.reply-file-menu { position:fixed; z-index:10000; min-width:144px; padding:5px; border:1px solid #d9dde3; border-radius:8px; background:#fff; box-shadow:0 5px 24px #0002; }
.reply-file-menu button { width:100%; padding:9px 14px; border:0; border-radius:5px; background:transparent; text-align:left; cursor:pointer; }
.reply-file-menu button:hover, .reply-file-menu button:focus { background:#edf1f6; }

#work-area { display:flex;min-width:0;min-height:0;height:100%;overflow:hidden; }
#work-area>main { flex:1;min-width:0;min-height:0; }
#work-area.file-open>main { flex:var(--chat-share,25) 1 0; }
#file-preview { flex:var(--file-share,75) 1 0;display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;overflow:hidden; }
#file-preview[hidden], #file-splitter[hidden] { display:none; }
#file-splitter { flex:0 0 8px;cursor:col-resize;background:#edeff2;touch-action:none;position:relative; }
#file-splitter::after { content:'';position:absolute;left:3px;top:calc(50% - 20px);height:40px;width:2px;border-radius:3px;background:#aab5c5; }
#file-splitter:hover,#file-splitter:focus-visible { background:#d4dde9; }
.file-resizing { user-select:none;cursor:col-resize; }
.file-preview-header { display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #e2e5ea;flex-shrink:0; }
.file-preview-header>div:first-child { flex:1;min-width:140px;overflow:hidden; }
#file-name { font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#file-path { display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.file-preview-actions { display:flex;gap:5px;flex-wrap:wrap; }
.file-preview-actions button { padding:6px 9px;font-size:12px; }
#file-content { flex:1;min-height:0;overflow:auto;padding:24px;overscroll-behavior:contain;overflow-wrap:anywhere; }
#file-content>pre { font:13px/1.8 ui-monospace,monospace;white-space:pre-wrap;color:#414b59; }
#file-content.markdown { font-size:14px;line-height:1.8; }
#file-preview-status { flex-shrink:0;padding:9px 16px; }
.preview-unavailable { padding:30px 4px;color:#616a77; }
.preview-unavailable p { margin:12px 0; }
#work-area.file-fullscreen>main,#work-area.file-fullscreen>#file-splitter { display:none; }
#work-area.file-open .chat-header { flex-wrap:wrap;padding:16px; }
#work-area.file-open #composer { padding-left:14px;padding-right:14px; }
#file-content.office-content { padding:0;overflow:hidden;display:flex; }
#office-preview-frame { border:0;width:100%;height:100%;min-height:0;flex:1; }
/* Direct workspace file actions, shared by desktop browsers and phone drawers. */
.file-action-menu{position:fixed;z-index:10000;min-width:150px;padding:5px;background:var(--panel,#fff);border:1px solid #d5dae2;border-radius:10px;box-shadow:0 8px 28px #16202f26}
.file-action-menu[hidden]{display:none}.file-action-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 14px;border-radius:6px;font:inherit;cursor:pointer}.file-action-menu button:hover,.file-action-menu button:focus-visible{background:#eaeff5;outline:none}.file-action-menu .danger,.file-action-dialog .danger{color:#b33d35}
.file-action-dialog{width:min(420px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #d5dae2;border-radius:14px;padding:24px;color:#26303e;background:#fff;box-shadow:0 12px 48px #1234}.file-action-dialog::backdrop{background:#131d2c55}.file-action-dialog h3{margin:0 0 14px}.file-action-dialog p{overflow-wrap:anywhere;line-height:1.6}.file-action-dialog label{display:block}.file-action-dialog label[hidden]{display:none}.file-action-dialog input{box-sizing:border-box;width:100%;margin-top:8px;padding:10px;border:1px solid #bfc6cf;border-radius:7px;font:inherit}.file-action-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.file-action-dialog footer button{padding:8px 16px;border:1px solid #cad1db;border-radius:7px;background:#f5f7fa;cursor:pointer}.file-action-dialog #file-action-error{color:#b33d35;font-size:13px;min-height:0}
#tree summary .file-more{float:right}#tree .file-entry-name{overflow-wrap:anywhere}#tree .file-more{flex-shrink:0;min-width:26px;padding:2px 5px;border:0;border-radius:5px;background:transparent;color:#626b78;cursor:pointer;font-size:19px;line-height:22px}#tree .file-more:hover{background:#dfe5ed}.file-row .file{min-width:0;flex:1}
@media(max-width:800px){#tree .file-more{min-width:32px;min-height:32px}.file-action-menu button{min-height:42px}}

/* File types in the shared desktop/mobile file tree. */
#tree .file{display:flex;align-items:center;gap:5px;text-align:left}
#tree .file-name{min-width:0;overflow-wrap:anywhere}
.file-type-icon{display:inline-flex;flex:0 0 16px;width:16px;height:19px;align-items:center;justify-content:center}
.file-type-icon svg{display:block;width:16px;height:19px}
.file-type-word{color:#2869bf}.file-type-excel{color:#218350}.file-type-pdf{color:#cf4747}.file-type-ppt{color:#d26a33}
.file-type-generic{flex:0 0 16px;text-align:center;color:#7b828c}
/* Use the same indentation and leading column for sibling folders and files. */
#tree details details{margin:0 0 0 16px}
#tree .file-row{margin-left:16px}
#tree summary{display:flex;align-items:center;gap:5px;list-style:none;padding:4px 5px}
#tree summary::-webkit-details-marker{display:none}
#tree summary::before{content:'';flex:0 0 16px;width:16px;height:16px;background:currentColor;clip-path:polygon(36% 20%,72% 50%,36% 80%)}
#tree details[open]>summary::before{transform:rotate(90deg)}
#tree summary .file-entry-name{flex:1;min-width:0}
#tree summary .file-more{float:none;margin-left:auto}

.folder-type-icon{display:inline-flex;flex:0 0 16px;width:16px;height:19px;align-items:center;color:#c59a44}
.folder-type-icon svg{display:block;width:16px;height:16px}
#tree .file::before{content:'';flex:0 0 16px;width:16px}

@media(min-width:801px){body{grid-template-columns:var(--sidebar-width,280px) minmax(0,1fr)}}
#sidebar-splitter{position:fixed;top:0;bottom:0;left:calc(var(--sidebar-width,280px) - 3px);width:6px;z-index:12;cursor:col-resize;touch-action:none;background:transparent}
#sidebar-splitter:hover,#sidebar-splitter:focus-visible,.sidebar-resizing #sidebar-splitter{background:#00468566;outline:none}
.auth-locked #sidebar-splitter{display:none}
.sidebar-resizing,.sidebar-resizing *{cursor:col-resize!important;user-select:none!important}
.sidebar-resizing iframe{pointer-events:none}
@media(max-width:800px){#sidebar-splitter{display:none}}

/* Corporate colours sampled from the supplied company artwork. */
:root{--brand-blue:#004685;--brand-gold:#b79266;--brand-tint:#eef3fa;--brand-line:#dce4ef;--brand-ink:#263b56}
body{color:var(--brand-ink);background:#fff}
.brand{display:flex;align-items:center;gap:10px;color:var(--brand-blue)}
.company-logo{display:block;object-fit:contain;flex-shrink:0;background:#fff;border-radius:6px;width:40px;height:36px}
.sidebar{background:#f4f6fa;border-right-color:var(--brand-line)}
.sidebar>.brand{font-weight:700;padding-bottom:10px;border-bottom:1px solid #b7926655;margin-bottom:10px}
.sidebar>.files{background:#fff;border-color:var(--brand-line)}
.slot.selected{background:var(--brand-tint);border-color:#7d96ba;box-shadow:inset 3px 0 0 var(--brand-gold)}
.primary{background:var(--brand-blue);border-color:var(--brand-blue)}
.primary:hover{background:#143666;border-color:#143666}
.message.user{background:#edf2f9;border:1px solid #e0e7f1}
.login-intro{background:linear-gradient(145deg,#f1f5fb 0%,#fff 65%,#f4efe8 100%)}
.login-intro .brand{color:var(--brand-blue)}
.login-intro .company-logo{width:64px;height:58px;border-radius:10px}
.login-intro h1{color:var(--brand-blue)}
.login-form .eyebrow,.workspace-note,.sidebar-bottom .demo{color:#89704e}
.login-form input:focus{border-color:var(--brand-blue);outline-color:#00468544}
.folder-type-icon{color:var(--brand-gold)}
.markdown blockquote{border-left-color:var(--brand-gold);background:#f8f6f2}
#sidebar-splitter:hover,#sidebar-splitter:focus-visible,.sidebar-resizing #sidebar-splitter{background:#00468566}
#file-splitter:hover,#file-splitter:focus-visible{background:#00468544}

/* Keep the fallback controls compact until native Office actions are ready. */
#file-preview:has(#office-preview-frame)>.file-preview-header{padding:7px 10px;gap:8px}
#file-preview:has(#office-preview-frame)>.file-preview-header>div:first-child{min-width:80px}
#file-preview:has(#office-preview-frame)>.file-preview-header h2{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#file-preview:has(#office-preview-frame)>.file-preview-header small{display:none}
#file-preview:has(#office-preview-frame) .file-preview-actions button{padding:5px 7px;font-size:12px}
@media(min-width:801px){#file-preview.office-native-toolbar:has(#office-preview-frame)>.file-preview-header{display:none}}
