@import url('/brand/vi-v1/tokens/vi.css');
/* CoAppX 0.7.5 — continuous workspace. Load after legacy stylesheets.
   Public website presentation is intentionally outside this workspace layer.
   Embedded runtime/MCP documents load this file and receive data-theme. */
:root {
  --ws-canvas:var(--vi-workspace-surface); --ws-surface:var(--vi-surface); --ws-subtle:var(--vi-subtle);
  --ws-hover:var(--vi-hover); --ws-selected:var(--vi-selection-surface); --ws-ink:var(--vi-ink);
  --ws-text-soft:var(--vi-ink-soft); --ws-muted:var(--vi-muted); --ws-line:var(--vi-border);
  --ws-control:var(--vi-control-border); --ws-accent:var(--vi-action); --ws-accent-hover:var(--vi-action-hover);
  --ws-accent-soft:var(--vi-brand-soft); --ws-on-accent:var(--vi-on-action);
  --ws-positive:var(--vi-success); --ws-positive-soft:var(--vi-status-success-surface);
  --ws-warning:var(--vi-warning); --ws-warning-soft:var(--vi-status-warning-surface);
  --ws-danger:var(--vi-danger); --ws-danger-soft:var(--vi-status-danger-surface);
  --ws-scrim:var(--vi-scrim); --ws-shadow:var(--vi-shadow);
  --workspace-nav:224px; --workspace-bottom:0px; --workspace-header:60px;
  --app-height:100dvh; --workspace-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
}
html[data-theme="dark"] { color-scheme:dark; }
html[data-theme="light"] { color-scheme:light; }
/* Body and the settings dialog previously owned local green tokens. */
html[data-theme] body, html[data-theme] #host-manager, #web-workspace,
body.connection-settings, body.runtime-workspace {
  --bg:var(--ws-canvas); --surface:var(--ws-surface); --surface-soft:var(--ws-subtle);
  --surface-deep:var(--ws-hover); --text:var(--ws-ink); --ink:var(--ws-ink);
  --text-soft:var(--ws-text-soft); --muted:var(--ws-muted); --line:var(--ws-line);
  --line-strong:var(--ws-control); --accent:var(--ws-accent);
  --accent-strong:var(--ws-accent-hover); --accent-soft:var(--ws-accent-soft);
  --blue:var(--ws-accent); --blue-soft:var(--ws-accent-soft);
  --amber:var(--ws-warning); --amber-soft:var(--ws-warning-soft);
  --red:var(--ws-danger); --red-soft:var(--ws-danger-soft);
  --rail:var(--vi-navigation-surface); --radius:var(--vi-radius-control); --tap:var(--vi-control-height);
}
html[data-theme="light"] body { color-scheme:light; }
html[data-theme="dark"] body { color-scheme:dark; }
body[data-access="app"] { height:var(--app-height); min-height:0; overflow:hidden; padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background:var(--ws-canvas); color:var(--ws-ink); }
body[data-access="app"] #web-workspace { height:100%; }
#web-workspace, dialog, body.connection-settings, body.runtime-workspace { font-family:var(--workspace-font); font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,a,input,select,textarea,summary) { -webkit-tap-highlight-color:transparent; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,a,summary) { touch-action:manipulation; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline:2px solid var(--ws-accent); outline-offset:3px; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(input,select,textarea)::placeholder { color:var(--ws-muted); opacity:1; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,input,select,textarea) { max-width:100%; font-family:inherit; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) button { font-weight:500; transition:background-color 130ms ease,border-color 130ms ease,color 130ms ease; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(p,small,output) { overflow-wrap:anywhere; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(a,button) svg { flex-shrink:0; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) a { color:var(--ws-accent); text-underline-offset:3px; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(input,select,textarea) { color:var(--ws-ink); background-color:var(--ws-surface); border-color:var(--ws-control); border-radius:7px; }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) input:is([type="checkbox"],[type="radio"]) { accent-color:var(--ws-accent); }
:is(#web-workspace,dialog,.connection-settings,.runtime-workspace) ::selection { color:var(--ws-ink); background:var(--ws-accent-soft); }

/* Navigation and the four first-class work surfaces. */
#web-workspace, body[data-surface="tasks"] #web-workspace { width:100%; max-width:100%; height:var(--app-height); min-height:0; grid-template-columns:var(--workspace-nav) minmax(0,1fr); grid-template-rows:minmax(0,1fr); overflow:hidden; background:var(--ws-surface); }
#web-workspace .side-rail { grid-column:1; grid-row:1; position:relative; z-index:20; display:flex; flex-direction:column; align-items:stretch; gap:0; min-width:0; min-height:0; overflow:auto; padding:22px 14px 12px; border-right:1px solid var(--ws-line); background:var(--ws-surface); color:var(--ws-muted); }
.workspace-brand { display:flex; align-items:center; gap:10px; min-height:40px; margin:0 0 22px; padding:0 9px; border:0; background:transparent; color:var(--ws-ink); font-size:17px; font-weight:650; text-decoration:none; }
#web-workspace .workspace-brand { color:var(--ws-ink); text-decoration:none; }
#web-workspace .workspace-brand:hover { background:var(--ws-hover); border-radius:8px; }
#web-workspace :is(.workspace-brand,[data-application-settings]):focus-visible { outline:2px solid var(--ws-accent); outline-offset:2px; border-radius:8px; }
#web-workspace [data-application-settings] { cursor:pointer; }
.workspace-brand svg, .workspace-brand img { width:27px; height:27px; flex:0 0 27px; object-fit:contain; }
.workspace-brand small { display:block; font-size:12px; font-weight:400; color:var(--ws-muted); }
.workspace-search { display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:8px 10px; margin:0 0 14px; border:1px solid var(--ws-line); border-radius:7px; background:var(--ws-surface); color:var(--ws-muted); font-size:13px; text-align:left; }
.workspace-search svg { width:17px; height:17px; }
.workspace-search kbd { margin-left:auto; border-color:var(--ws-line); background:var(--ws-subtle); color:var(--ws-text-soft); font-family:inherit; font-size:12px; }
#web-workspace .rail-actions { display:grid; gap:3px; }
#web-workspace .rail-button { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:44px; padding:9px 11px; border:0; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:14px; font-weight:450; text-align:left; }
#web-workspace .rail-button svg { width:20px; height:20px; }
#web-workspace .rail-button:hover { color:var(--ws-ink); background:var(--ws-hover); }
#web-workspace .rail-button.active { color:var(--ws-ink); background:var(--ws-selected); font-weight:600; }
#web-workspace .rail-button.active svg { color:var(--ws-accent); }
#web-workspace .rail-button b { position:static; margin-left:auto; width:auto; min-width:20px; height:20px; padding:1px 5px; border-radius:4px; background:var(--ws-surface); color:var(--ws-muted); font-size:12px; font-weight:500; }
#web-workspace .personal-entry { order:10; margin-top:auto; padding-top:12px; min-height:58px; }
#web-workspace .personal-entry-avatar { width:28px; height:28px; flex:0 0 28px; border:1px solid var(--ws-line); border-radius:50%; background:var(--ws-surface); color:var(--ws-muted); font-size:12px; font-weight:500; overflow:hidden; }
.personal-entry-avatar img { width:100%; height:100%; object-fit:cover; }
#web-workspace .workspace-sidebar-footer .rail-status { display:grid; flex:none; place-items:center; width:16px; height:16px; margin:0; padding:0; border:0; }
#web-workspace .workspace-sidebar-footer .rail-status[hidden] { display:none; }
#web-workspace .rail-status span { width:7px; height:7px; background:var(--ws-positive); }
#web-workspace .rail-status[data-offline="true"] span { background:var(--ws-muted); }
.workspace-recent { min-width:0; display:grid; gap:2px; margin:20px 0 22px; }
.workspace-recent :is(h2,h3,p,.workspace-recent-label) { margin:0; padding:8px 10px; color:var(--ws-muted); font-size:12px; font-weight:500; }
.workspace-recent :is(button,a) { display:flex; align-items:center; gap:8px; min-width:0; min-height:44px; padding:8px 11px; border:0; border-radius:6px; background:transparent; color:var(--ws-muted); font-size:13px; text-align:left; text-decoration:none; }
.workspace-recent :is(button,a):hover, .workspace-recent .active { background:var(--ws-hover); color:var(--ws-ink); }
.workspace-recent :is(button,a)>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-recent svg { width:16px; height:16px; }
#web-workspace .mobile-nav { display:none; }
#web-workspace :is(.assistant-main,.task-panel,.companion-surface) { grid-column:2; grid-row:1; min-width:0; min-height:0; max-height:100%; padding-bottom:0; border:0; background:var(--ws-surface); }
body[data-surface="conversation"] #web-workspace .assistant-main { display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; }
body[data-surface="conversation"] #web-workspace :is(.task-panel,.companion-surface) { display:none; }
body[data-surface="companion"] #web-workspace .companion-surface { display:grid; }
body[data-surface="companion"] #web-workspace :is(.assistant-main,.task-panel) { display:none; }
body[data-surface="tasks"] #web-workspace .task-panel { display:grid; position:relative; inset:auto; width:auto; z-index:auto; grid-template-rows:auto auto auto minmax(0,1fr) auto; box-shadow:none; }
body[data-surface="tasks"][data-work-tab="projects"] #web-workspace .task-panel { grid-template-rows:auto minmax(0,1fr); }
body[data-work-tab="projects"] #web-workspace .task-panel>:is(.task-toolbar,.task-filters,.task-workspace,.diagnostics) { display:none; }
body[data-work-tab="projects"] #web-workspace .task-panel-tools .count { visibility:hidden; }
body[data-surface="tasks"] #web-workspace :is(.assistant-main,.companion-surface) { display:none; }
body[data-surface="cloud"] #web-workspace :is(.assistant-main,.task-panel,.companion-surface) { display:none; }

/* Personal presence remains the user's real selected artwork. */
#web-workspace .surface-header, #web-workspace .assistant-header, #web-workspace .task-panel-header { min-height:var(--workspace-header); padding:8px 24px; gap:14px; border-bottom:1px solid var(--ws-line); background:var(--ws-surface); }
.surface-header h1, .identity-line h1, .task-panel-header h2 { font-size:16px; line-height:1.5; font-weight:600; letter-spacing:0; }
.surface-header small, .assistant-identity p, .task-panel-header p { font-size:12px; line-height:1.5; color:var(--ws-muted); }
#web-workspace .assistant-avatar { width:28px; height:28px; border-radius:7px; background:var(--ws-hover); color:var(--ws-ink); font-size:13px; font-weight:500; overflow:hidden; }
.assistant-avatar img { width:100%; height:100%; object-fit:cover; }
.assistant-identity { gap:10px; }
.assistant-identity>div:not(.assistant-avatar) { min-width:0; }
.assistant-identity p { max-width:48vw; margin-top:2px; }
.identity-line .online-dot, .companion-copy .online-dot { width:6px; height:6px; background:var(--ws-positive); }
.companion-surface .companion-stage { gap:20px; padding:24px; overflow:auto; align-content:center; background:var(--ws-surface); }
.companion-surface .companion-halo { display:none; }
.companion-surface .companion-portrait { position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); place-items:center; width:min(360px,62vw); max-width:100%; height:min(48dvh,420px); min-height:170px; background:transparent; border:0; border-radius:0; box-shadow:none; }
.companion-portrait :is(img,video,canvas) { position:absolute; inset:0; display:block; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:contain; }
.companion-portrait video[hidden] { display:none; }
.companion-surface[data-avatar-state="ready"] .companion-portrait img,
.companion-surface[data-avatar-state="listening"] .companion-portrait img,
.companion-surface[data-avatar-state="speaking"] .companion-portrait img,
.companion-surface[data-avatar-state="ready"] #companion-image-fallback,
.companion-surface[data-avatar-state="listening"] #companion-image-fallback,
.companion-surface[data-avatar-state="speaking"] #companion-image-fallback { display:none; }
.companion-portrait video { border-radius:12px; background:#151b1c; }
.companion-portrait img { filter:drop-shadow(0 12px 20px rgb(20 28 44 / 8%)); }
.companion-copy { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; width:min(420px,100%); max-width:440px; column-gap:7px; row-gap:8px; }
.companion-copy strong { font-size:17px; font-weight:600; }
.companion-copy p { flex:0 0 100%; margin:0; color:var(--ws-muted); font-size:14px; line-height:1.75; }
.companion-actions button { min-height:44px; min-width:116px; border-radius:7px; padding:10px 18px; border-color:var(--ws-line); color:var(--ws-ink); background:var(--ws-surface); font-size:14px; font-weight:500; }
.companion-actions button:last-child { background:var(--ws-accent); border-color:var(--ws-accent); color:var(--ws-on-accent); }

/* Conversation, attachments, and a restrained composer. */
#web-workspace .conversation { width:100%; padding:30px max(24px,calc((100% - 736px)/2)) 24px; gap:24px; background:var(--ws-surface); }
#web-workspace .message { max-width:100%; min-height:0; font-size:16px; line-height:1.8; }
#web-workspace .message.user { max-width:88%; padding:10px 14px; border-radius:12px 12px 3px 12px; color:var(--ws-ink); background:var(--ws-hover); }
#web-workspace .message.assistant { padding:0; width:100%; color:var(--ws-ink); }
#web-workspace .message-meta { min-height:20px; margin-top:8px; flex-wrap:wrap; color:var(--ws-muted); font-size:12px; }
#web-workspace .message-meta :is(time,small,span) { color:var(--ws-muted); font-size:12px; }
/* Source logos retain their identity inside the generic metadata palette. */
#web-workspace .message-meta .message-channel[data-channel="coappx_client"] { color:var(--ws-muted); }
#web-workspace .message-meta .message-channel[data-channel="weixin"] { color:#078747; }
#web-workspace .message-meta .message-channel[data-channel="feishu"] { color:#3370ff; }
#web-workspace .message-meta .message-channel[data-channel="dingtalk"] { color:#1677ff; }
html[data-theme="dark"] #web-workspace .message-meta .message-channel[data-channel="weixin"] { color:#57ca89; }
html[data-theme="dark"] #web-workspace .message-meta .message-channel[data-channel="feishu"] { color:#8eafff; }
html[data-theme="dark"] #web-workspace .message-meta .message-channel[data-channel="dingtalk"] { color:#75b0ff; }
#web-workspace .message-actions { opacity:1; gap:4px; }
#web-workspace .message-actions button { width:auto; min-width:44px; height:auto; min-height:44px; padding:8px; border:0; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:13px; white-space:nowrap; }
#web-workspace .message-actions button:hover { background:var(--ws-hover); color:var(--ws-ink); }
#web-workspace .message-actions svg { width:17px; height:17px; }
.message-presentation { width:100%; padding:14px; border-color:var(--ws-line); border-radius:8px; background:var(--ws-surface); }
.message-presentation-title { font-size:14px; }
.message-presentation-item { padding:10px 0; border:0; border-top:1px solid var(--ws-line); border-radius:0; background:transparent; }
.message-presentation-field>span, .message-presentation-more { font-size:12px; color:var(--ws-muted); }
.message-presentation-field>b { font-size:14px; color:var(--ws-ink); font-weight:500; }
.message-presentation-image { border-radius:8px; border-color:var(--ws-line); background:var(--ws-surface); }
.message-presentation-image img, .artifact-image, .artifact-image-button { background:var(--ws-subtle); }
.markdown-body { color:var(--ws-ink); font-size:inherit; line-height:1.85; }
.markdown-body :is(h1,h2,h3,h4) { color:var(--ws-ink); font-weight:600; line-height:1.5; }
.markdown-body h1 { font-size:24px; }.markdown-body h2 { font-size:20px; }.markdown-body h3 { font-size:17px; }
html[data-theme] body[data-access="app"] .markdown-body a { color:var(--ws-accent); }
html[data-theme] body[data-access="app"] .markdown-body code, .markdown-body code { color:var(--ws-text-soft); border-color:var(--ws-line); background:var(--vi-inline-code-background,transparent); font-size:.875em; }
.markdown-body :is(pre,blockquote) { border-color:var(--ws-line); background:var(--ws-subtle); color:var(--ws-text-soft); border-radius:6px; }
.markdown-body th, .markdown-body td { border-color:var(--ws-line); font-size:14px; }
.markdown-body th { background:var(--ws-subtle); }
.markdown-body .markdown-task-item { list-style:none; }
.markdown-body .markdown-task-item>input { margin:0 .55em 0 -1.35em; accent-color:var(--ws-accent); vertical-align:middle; }
.message-source, .message-sources a, .message-route, .message-debug { color:var(--ws-muted); border-color:var(--ws-line); background:transparent; }
.message-debug-title { color:var(--ws-muted); font-size:12px; }
.message-debug-body p { color:var(--ws-muted); font-size:12px; }
.markdown-code-block { border-color:var(--ws-line); border-radius:7px; color:var(--ws-ink); background:var(--ws-subtle); }
.markdown-code-header { min-height:44px; border-color:var(--ws-line); color:var(--ws-muted); font-size:12px; }
.markdown-code-block pre code { color:var(--ws-ink); background:transparent; font-size:13px; }
.artifact-file { min-height:72px; padding:12px; grid-template-columns:30px minmax(0,1fr) auto; gap:10px; border-radius:7px; background:var(--ws-surface); }
.artifact-file .file-type,.message-attachment .file-type { min-width:28px; width:28px; height:34px; border:0; border-radius:0; color:var(--ws-muted); background:transparent; font-size:10px; }
.artifact-file-copy strong { font-size:14px; font-weight:500; }.artifact-file-copy small { font-size:12px; }
.text-action,a.text-action { min-height:44px; padding:8px; border-radius:6px; color:var(--ws-muted); font-size:13px; font-weight:500; white-space:nowrap; }
#web-workspace .message-source { padding:2px 0; border:0; border-radius:0; color:var(--ws-muted); background:transparent; font-size:12px; }
#web-workspace .message-retry { min-height:44px; padding:8px 10px; border-color:var(--ws-line); border-radius:6px; color:var(--ws-danger); background:var(--ws-surface); font-size:13px; }
#web-workspace .message-retry:hover { color:var(--ws-danger); background:var(--ws-danger-soft); outline-color:var(--ws-accent); }
.load-older { min-height:44px; border-radius:6px; font-size:13px; }.load-older:hover { border-color:var(--ws-line); color:var(--ws-ink); background:var(--ws-hover); }
#web-workspace #composer { padding:9px 24px 14px; overflow:visible; contain:inline-size; background:var(--ws-surface); }
#web-workspace .composer-box { max-width:736px; padding:12px 12px 8px; border:1px solid var(--ws-line); border-radius:18px; box-shadow:none; background:var(--ws-surface); transition:border-color .16s ease,box-shadow .16s ease; }
#web-workspace .composer-box:focus-within { border-color:var(--ws-accent); box-shadow:0 0 0 3px var(--ws-accent-soft); }
#web-workspace #composer textarea { min-height:44px; max-height:120px; padding:3px 4px 8px; border:0; border-radius:0; outline:none; box-shadow:none; resize:none; color:var(--ws-ink); background:transparent; font-size:16px; line-height:1.55; }
#web-workspace #composer textarea:focus-visible { outline:none; outline-offset:0; box-shadow:none; }
#web-workspace .composer-toolbar { align-items:center; justify-content:space-between; gap:8px; min-height:44px; }
#web-workspace .voice-entry-actions { gap:4px; align-items:center; min-width:0; }
#web-workspace :is(.composer-action,.execution-options>summary,.agent-target-control,.voice-pipeline-control) { min-height:44px; padding:8px 10px; border-radius:7px; border-color:transparent; background:transparent; color:var(--ws-muted); font-size:13px; font-weight:500; }
#web-workspace :is(.composer-action,.execution-options>summary):hover { background:var(--ws-hover); border-color:transparent; color:var(--ws-ink); }
#web-workspace .composer-action.active { background:var(--ws-danger-soft); color:var(--ws-danger); }
#web-workspace .voice-push.active { background:var(--ws-accent-soft); color:var(--ws-accent); }
#web-workspace .voice-push { touch-action:none; }
#web-workspace #composer .send-button { display:flex; justify-content:center; align-items:center; flex:0 0 44px; gap:0; width:44px; height:44px; min-height:44px; min-width:44px; padding:4px; box-sizing:border-box; border:0; border-radius:50%; background:var(--ws-accent); background-clip:content-box; color:var(--ws-on-accent); }
#web-workspace #composer .send-button>span,#web-workspace #composer .composer-attachment-button>span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#web-workspace #composer .composer-attachment-button { display:inline-flex; justify-content:center; align-items:center; flex:0 0 44px; width:44px; height:44px; min-height:44px; padding:10px; box-sizing:border-box; border-radius:12px; }
#web-workspace #composer .composer-attachment-button:has(input:focus-visible) { outline:2px solid var(--ws-accent); outline-offset:1px; }
#web-workspace .composer-add-menu { position:relative; order:1; flex:0 0 auto; line-height:0; }
#web-workspace .composer-add-menu[open] { z-index:4; }
#web-workspace .composer-add-menu > summary { box-sizing:border-box; cursor:pointer; list-style:none; }
#web-workspace .composer-add-menu[open] > summary { background:var(--ws-hover); color:var(--ws-accent); }
#web-workspace .composer-add-menu > summary::-webkit-details-marker { display:none; }
#web-workspace .composer-add-menu > summary svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
#web-workspace .composer-add-menu:not([open]) > .composer-add-actions { display:none; }
#web-workspace .composer-add-actions {
  position:absolute; inset:auto auto calc(100% + 8px) 0; display:flex; align-items:center; flex-wrap:wrap; gap:4px;
  width:max-content; max-width:min(288px,calc(100vw - 32px)); box-sizing:border-box; padding:6px;
  border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-surface); box-shadow:0 8px 24px #0002;
  color:var(--ws-ink); font-size:14px; line-height:1.4;
}
#web-workspace .composer-add-actions > button {
  min-height:44px; min-width:44px; padding:4px 9px; border:0; border-radius:8px;
  background:transparent; color:inherit; font:inherit; cursor:pointer;
}
#web-workspace .composer-add-actions button:not(:disabled):hover,
#web-workspace .composer-add-actions button[aria-expanded=true] { background:var(--ws-hover); color:var(--ws-accent); }
#web-workspace .composer-emoji-picker {
  position:absolute; inset:auto auto calc(100% + 8px) 0; display:flex; flex-direction:column;
  box-sizing:border-box; width:min(350px,calc(100vw - 32px)); padding:8px; gap:6px;
  border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-surface); box-shadow:0 8px 24px #0002;
}
#web-workspace .composer-emoji-picker[hidden],#web-workspace .composer-emoji-picker [hidden] { display:none; }
#web-workspace .composer-emoji-search { width:100%; min-height:40px; padding:5px 9px; box-sizing:border-box; }
#web-workspace .composer-emoji-tabs { display:flex; gap:4px; overflow-x:auto; scrollbar-width:thin; }
#web-workspace .composer-emoji-tabs > button { flex:none; padding:5px 8px; min-height:36px; font-size:13px; }
#web-workspace .composer-emoji-tabs [aria-pressed=true] { color:var(--ws-accent); background:var(--ws-hover); }
#web-workspace .composer-emoji-scroll { max-height:min(246px,calc(var(--app-height,100dvh) * .35)); overflow:auto; overscroll-behavior:contain; }
#web-workspace .composer-emoji-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:2px; }
#web-workspace .composer-emoji-grid > button { min-height:44px; min-width:0; padding:0; border:0; border-radius:7px; background:transparent; font-size:24px; cursor:pointer; }
#web-workspace .composer-emoji-grid img { display:block; margin:auto; width:30px; height:30px; object-fit:contain; }
#web-workspace .composer-emoji-more { display:block; margin:4px auto; }
#web-workspace .composer-emoji-note { margin:0; padding:2px 6px; color:var(--ws-muted); font-size:12px; }
#web-workspace #composer #voice-toggle { display:none; }
#web-workspace #composer .send-button svg { width:18px; height:18px; }
#web-workspace #composer .send-button:disabled { background:var(--ws-hover); color:var(--ws-muted); opacity:1; }
#web-workspace .composer-hint { max-width:736px; margin:6px auto 0; padding-inline:6px; font-size:11px; line-height:1.5; color:var(--ws-muted); }
.composer-hint kbd { font:inherit; color:inherit; background:transparent; border:0; }
.execution-options-menu { width:min(330px,calc(100vw - 32px)); padding:10px; border-color:var(--ws-line); border-radius:9px; background:var(--ws-surface); box-shadow:var(--ws-shadow); }
.execution-options-menu :is(select,input) { min-height:44px; max-width:190px; font-size:14px; }
.composer-attachment { grid-template-columns:30px minmax(0,1fr) 44px; min-width:200px; max-width:300px; padding:6px; border-radius:7px; background:var(--ws-subtle); }
.composer-attachment-icon { width:30px; height:34px; background:transparent; color:var(--ws-muted); font-size:10px; }
.composer-attachment-thumbnail { width:100%; height:100%; object-fit:cover; border-radius:5px; }
.message-attachment-list { max-width:100%; }
#web-workspace .message-attachment { min-width:0; max-width:100%; background:var(--ws-subtle); color:var(--ws-ink); border-color:var(--ws-line); }
#web-workspace .message-attachment-copy strong { font-size:12px; }
#web-workspace .message-attachment-copy small { color:var(--ws-muted); font-size:11px; opacity:1; }
#web-workspace .message-attachment.image { display:block; padding:0; width:220px; overflow:hidden; }
.message-image-button { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:160px; padding:0; border:0; border-radius:0; background:var(--ws-subtle); color:var(--ws-muted); cursor:zoom-in; }
.message-image-thumbnail { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; opacity:0; }
.message-image-thumbnail[data-loaded="true"] { opacity:1; }
.message-image-placeholder { padding:12px; font-size:12px; }
.message-attachment.image .message-attachment-copy { padding:7px 10px; }
.message-attachment-list.image-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:456px; max-width:100%; }
#web-workspace .image-gallery .message-attachment.image { width:100%; }
@media(max-width:759px) { .image-gallery .message-image-button { height:112px; } }
.composer-attachment-copy strong { font-size:13px; }.composer-attachment-copy small { font-size:12px; }
.composer-attachment-remove { width:44px; height:44px; border-radius:6px; }
.composer-attachment-notice { font-size:12px; }
.composer-capture-session { min-height:44px; border-color:var(--ws-line); background:var(--ws-subtle); color:var(--ws-ink); border-radius:7px; }
.composer-capture-session :is(span,strong,small) { font-size:12px; }
.jump-to-latest { min-height:44px; right:24px; bottom:142px; border-radius:7px; background:var(--ws-surface); color:var(--ws-accent); border-color:var(--ws-line); box-shadow:0 4px 16px rgb(0 0 0 / 10%); font-size:13px; }
.header-actions :is(button,.project-direct-entry), .task-panel-tools button { min-height:44px; border-radius:7px; border-color:transparent; background:transparent; color:var(--ws-muted); font-size:13px; }
.header-actions :is(button,.project-direct-entry):hover, .task-panel-tools button:hover { background:var(--ws-hover); }
.header-actions .mobile-personal-entry { display:grid; width:44px; height:44px; }
html[data-theme] body[data-access="app"] .unread-messages { color:var(--ws-warning); background:var(--ws-warning-soft); border-color:transparent; }

/* Voice keeps real state and readable text, with motion only while active. */
#web-workspace .voice-dock { width:736px; max-width:calc(100% - 48px); max-height:35dvh; overflow:auto; padding:14px; border:1px solid var(--ws-line); border-radius:9px; background:var(--ws-subtle); }
.voice-dock :is(strong,.voice-thinking-copy strong) { font-size:14px; color:var(--ws-ink); }
.voice-dock :is(small,.voice-channel-heading,.voice-boundary,.voice-guard-status) { font-size:12px; color:var(--ws-muted); }
.voice-dock-close { width:44px; height:44px; color:var(--ws-muted); }
.voice-channel, .voice-channel.output, .voice-thinking { border-color:var(--ws-line); border-radius:7px; background:var(--ws-surface); }
.voice-wave { background:var(--ws-subtle); }
.voice-live-text { color:var(--ws-ink); font-size:14px; white-space:normal; line-height:1.7; }
.voice-meter span { background:var(--ws-positive); }.voice-meter.output span { background:var(--ws-accent); }
.voice-guard-status.allow { color:var(--ws-positive); }.voice-guard-status.reject { color:var(--ws-warning); }

/* Task list and selected task are two views of the same work. */
#web-workspace .task-panel-header h2 { font-size:16px; }
#web-workspace .task-panel-header p { margin:0 0 2px; font-size:12px; }
.work-tabs { display:flex; align-items:center; gap:6px; }
.work-tabs [role="tab"] { min-width:72px; min-height:44px; padding:8px 14px; border:0; border-radius:7px; color:var(--ws-muted); background:transparent; font:inherit; font-size:16px; font-weight:600; cursor:pointer; }
.work-tabs [role="tab"][aria-selected="true"] { color:var(--ws-ink); background:var(--ws-selected); }
.work-tabs [role="tab"]:focus-visible { outline:2px solid var(--ws-accent); outline-offset:2px; }
#project-count-mini { margin-left:3px; color:var(--ws-muted); font-size:12px; }
.project-workspace { min-height:0; overflow:auto; padding:24px; background:var(--ws-surface); }
.project-workspace[hidden] { display:none; }
.project-workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; width:min(960px,100%); margin:0 auto 18px; }
.project-workspace-heading strong { display:block; color:var(--ws-ink); font-size:18px; font-weight:600; }
.project-workspace-heading p { margin:5px 0 0; color:var(--ws-muted); font-size:13px; line-height:1.6; }
.project-workspace-heading button { min-height:44px; flex:0 0 auto; padding:9px 16px; border:1px solid var(--ws-line); border-radius:7px; color:var(--ws-ink); background:var(--ws-surface); font-size:14px; cursor:pointer; }
.project-panel-status { width:min(960px,100%); margin:0 auto; color:var(--ws-warning); font-size:13px; }
.project-panel-status:empty { display:none; }
.project-panel-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); align-content:start; gap:12px; width:min(960px,100%); margin:0 auto; }
.project-panel-list .project-card,.project-panel-list .project-empty { min-width:0; }
.project-context-links { margin:10px 0; border-top:1px solid var(--ws-line); }
.project-context-links summary { min-height:40px; padding:10px 0; color:var(--ws-muted); font-size:13px; cursor:pointer; }
.project-context-list { display:grid; gap:6px; max-height:240px; overflow:auto; }
.project-context-list p,.project-last-update { margin:0; color:var(--ws-text-soft); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
#web-workspace .task-toolbar { grid-template-columns:minmax(180px,1fr) 160px; padding:20px 24px 10px; gap:12px; }
.task-toolbar :is(input,select) { min-height:44px; border-color:var(--ws-control); border-radius:7px; font-size:14px; }
#web-workspace .task-filters { gap:4px; padding:0 24px 16px; flex-wrap:nowrap; overflow-x:auto; }
.task-list-notice { margin:12px; padding:10px 12px; border-radius:7px; background:var(--ws-warning-soft); color:var(--ws-warning); font-size:12px; line-height:1.6; }
#web-workspace .task-filters button { min-height:44px; padding:9px 12px; border:0; border-radius:6px; background:transparent; color:var(--ws-muted); font-size:13px; font-weight:500; }
#web-workspace .task-filters button:hover, #web-workspace .task-filters button.active { color:var(--ws-ink); background:var(--ws-hover); }
#web-workspace .task-workspace { display:grid; grid-template-columns:minmax(290px,360px) minmax(0,1fr); overflow:hidden; border-top:1px solid var(--ws-line); }
#web-workspace .task-workspace[hidden] { display:none; }
#web-workspace .tasks { gap:0; padding:0 14px 20px; border-right:1px solid var(--ws-line); border-bottom:0; overflow:auto; background:var(--ws-surface); }
#web-workspace .task-summary { flex:0 0 auto; gap:7px; min-height:96px; padding:15px 10px; border:0; border-bottom:1px solid var(--ws-line); border-radius:0; background:transparent; box-shadow:none; }
#web-workspace .task-summary:hover { background:var(--ws-subtle); }
#web-workspace .task-summary.selected { background:var(--ws-selected); box-shadow:inset 2px 0 var(--ws-accent); }
.task-summary-title { font-size:15px; font-weight:500; line-height:1.6; }
.task-summary-copy { font-size:13px; line-height:1.6; }
.task-next-run { display:inline-flex; align-items:center; gap:5px; width:fit-content; max-width:100%; margin:0; padding:5px 8px; border-radius:5px; background:var(--ws-accent-soft); color:var(--ws-accent); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.task-next-run svg { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.task-summary-heading time, .task-summary-meta { font-size:12px; color:var(--ws-muted); }
.task-state { min-height:22px; padding:2px 7px; border-radius:5px; color:var(--ws-muted); background:var(--ws-hover); font-size:12px; font-weight:500; }
.task-state.result { color:var(--ws-positive); background:var(--ws-positive-soft); }
.task-organize-actions>.task-complete-action { color:var(--ws-positive); }
.routine-detail .task-facts { display:grid; grid-template-columns:minmax(110px,160px) 1fr; gap:9px 16px; }
.routine-detail .task-facts dt { color:var(--ws-muted); }
.routine-detail .task-facts dd { margin:0; overflow-wrap:anywhere; }
.routine-actions,.routine-run-actions { display:flex; flex-wrap:wrap; gap:8px; }
.routine-actions button,.routine-run-actions button { min-height:40px; }
.routine-action-status { min-height:1.3em; color:var(--ws-muted); font-size:13px; }
.routine-history { display:grid; gap:12px; padding-top:20px; border-top:1px solid var(--ws-line); }
.routine-history h4 { margin:0; font-size:16px; }
.routine-history-explanation { margin:0; padding:12px 14px; border:1px solid var(--ws-line); border-radius:10px; background:var(--ws-subtle); color:var(--ws-ink); line-height:1.6; overflow-wrap:anywhere; }
.routine-run { display:grid; gap:8px; padding:14px 0; border-top:1px solid var(--ws-line); }
.routine-run-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.routine-run p { margin:0; color:var(--ws-text-soft); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.routine-run-configuration summary { min-height:36px; padding:7px 0; color:var(--ws-muted); font-size:13px; cursor:pointer; }
.routine-run-configuration p { white-space:pre-wrap; }
.task-phase-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.task-phase-list span { padding:5px 8px; border-radius:5px; background:var(--ws-subtle); color:var(--ws-text-soft); font-size:12px; }
.task-attempt-line { margin:10px 0 0; color:var(--ws-text-soft); font-size:13px; }
.task-state.active { color:var(--ws-muted); background:var(--ws-hover); }
.task-state.attention { color:var(--ws-warning); background:var(--ws-warning-soft); }
.task-state.danger { color:var(--ws-danger); background:var(--ws-danger-soft); }
#web-workspace .task-detail { overflow:auto; background:var(--ws-surface); }
.task-detail-content { width:min(820px,100%); padding:28px; gap:24px; }
.task-detail-heading h3 { font-size:22px; line-height:1.55; font-weight:600; overflow-wrap:anywhere; }
.task-detail-heading p, .task-detail-empty p { font-size:13px; line-height:1.7; }
.task-organize-actions { flex-wrap:wrap; }
.task-organize-actions button { min-height:44px; font-size:13px; border-radius:7px; }
.task-organize-actions>.task-attention-clear-action { border:1px solid var(--ws-accent); color:var(--ws-on-accent); background:var(--ws-accent); }
.task-result-section, .task-detail-section, .task-facts, .task-diagnostic { padding:20px 0 0; border:0; border-top:1px solid var(--ws-line); border-radius:0; background:transparent; }
.task-result-section { border-color:var(--ws-line); background:transparent; }
.task-result-section h4 { font-size:17px; line-height:1.6; }
.task-result-summary, .task-detail-section>p { color:var(--ws-text-soft); font-size:14px; line-height:1.8; }
.task-result-deliverable { font-size:16px; line-height:1.85; }
.task-facts { gap:12px 18px; }.task-facts dt, .task-facts dd { font-size:13px; line-height:1.7; }
.task-diagnostic summary { min-height:44px; font-size:13px; }
.task-primary-action { min-height:44px; border-radius:7px; color:var(--ws-on-accent); background:var(--ws-accent); font-size:14px; font-weight:500; }
.refine { gap:8px; }.refine input { flex:1; width:0; min-width:0; min-height:44px; border-color:var(--ws-control); border-radius:7px; font-size:14px; }
.refine button,.task-actions button { flex:0 0 auto; min-height:44px; padding:10px 14px; border-radius:7px; color:var(--ws-on-accent); background:var(--ws-accent); font-size:14px; font-weight:500; white-space:nowrap; }
.task-retry { min-height:44px; padding:10px 14px; border-radius:7px; color:var(--ws-warning); background:var(--ws-warning-soft); font-size:14px; }
.task-actions button.secondary { color:var(--ws-danger); background:var(--ws-danger-soft); }
.task-failure, .task-artifact { border-radius:7px; border-color:var(--ws-line); background:var(--ws-subtle); }
.task-failure { border-color:color-mix(in srgb,var(--ws-danger) 30%,var(--ws-line)); background:var(--ws-danger-soft); }
.task-artifact strong { color:var(--ws-positive); }.task-failure strong { color:var(--ws-danger); }
.task-artifact p,.task-failure p,.task-question { font-size:14px; line-height:1.75; }.task-artifact small,.task-failure small { font-size:12px; }
.task-panel .diagnostics { max-height:24dvh; overflow:auto; border-top:1px solid var(--ws-line); background:var(--ws-subtle); }
.task-panel .diagnostics summary { min-height:44px; padding:12px 24px; color:var(--ws-muted); font-size:12px; }
#task-detail-back { display:none; }
#task-detail-back.routine-detail-back { display:inline-flex; align-items:center; min-height:40px; justify-self:start; padding:8px 0; border:0; color:var(--ws-muted); background:transparent; font-size:13px; }

/* Shared dialogs: continuous content, stable actions, clear return paths. */
dialog { border-color:var(--ws-line); border-radius:12px; background:var(--ws-surface); color:var(--ws-ink); box-shadow:var(--ws-shadow); }
dialog::backdrop, .file-preview::backdrop, .host-manager::backdrop, .cloud-manager::backdrop, .project-manager::backdrop, .project-direct::backdrop, .auth-dialog::backdrop, .cloud-item-dialog::backdrop, .journey-dialog::backdrop, .settings-confirm::backdrop { background:var(--ws-scrim); backdrop-filter:none; }
.file-preview, .host-manager, .project-manager, .project-direct { max-width:calc(100vw - 32px); height:min(860px,calc(var(--app-height) - 32px)); max-height:calc(var(--app-height) - 32px); border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-surface); color:var(--ws-ink); box-shadow:var(--ws-shadow); }
.file-preview { width:min(960px,calc(100vw - 40px)); }
.file-preview-header { min-height:60px; padding:8px 18px; gap:12px; background:var(--ws-surface); border-color:var(--ws-line); }
.file-preview-header>div { min-width:0; flex:1; }
.file-preview-header strong { white-space:normal; overflow-wrap:anywhere; color:var(--ws-ink); font-size:15px; font-weight:600; }
.file-preview-header small { color:var(--ws-muted); font-size:12px; }
dialog .icon-button { width:44px; height:44px; flex:0 0 44px; min-height:44px; padding:0; border:0; border-radius:7px; color:var(--ws-muted); background:transparent; font-size:24px; font-weight:400; }
dialog .icon-button:hover { background:var(--ws-hover); color:var(--ws-ink); }
.file-preview-body { padding:30px; background:var(--ws-surface); }
.file-preview-body>.markdown-body { max-width:720px; color:var(--ws-ink); font-size:16px; line-height:1.85; }
.file-preview-actions { gap:8px; padding:12px 18px; border-color:var(--ws-line); background:var(--ws-surface); flex-wrap:wrap; }
.file-preview-actions button, dialog .secondary-action, dialog a.secondary-action { min-height:44px; padding:10px 14px; border:1px solid var(--ws-line); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font-size:14px; font-weight:500; }
#file-preview-open { border-color:var(--ws-accent); color:var(--ws-on-accent); background:var(--ws-accent); }
.file-text-preview { color:var(--ws-ink); font:15px/1.8 var(--workspace-font); overflow-wrap:anywhere; }
.office-preview { max-width:760px; margin:0 auto; }
.office-preview-caption { color:var(--ws-muted); font-size:13px; line-height:1.5; margin:0 0 18px; }
.office-preview .file-text-preview { white-space:pre-wrap; tab-size:4; }
.file-frame-preview { background:var(--ws-surface); }
dialog .secondary-action:hover { background:var(--ws-hover); }
.document-editor { max-width:760px; margin:auto; gap:18px; }
.document-editor-toolbar { gap:10px; }
.document-version { color:var(--ws-ink); font-size:14px; }
.document-version-select { min-height:44px; padding:9px 11px; border:1px solid var(--ws-control); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font-size:14px; }
.document-textarea { min-height:45dvh; padding:18px; border:1px solid var(--ws-control); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font:16px/1.85 var(--workspace-font); }
.document-textarea:focus-visible { outline:2px solid var(--ws-accent); outline-offset:3px; }
.document-editor-count,.document-editor-status { color:var(--ws-muted); font-size:13px; }
.document-editor-controls button { min-height:44px; border-radius:7px; font-size:14px; }
.cloud-item-form { padding:24px; gap:18px; }.cloud-item-form>label { font-size:14px; gap:8px; }
.cloud-item-form input,.cloud-item-form select { min-height:44px; font-size:16px; border-radius:7px; }
.cloud-item-form header small { font-size:13px; }.cloud-item-form output { font-size:13px; }
.cloud-item-actions button { min-height:44px; border-radius:7px; color:var(--ws-on-accent); background:var(--ws-accent); font-size:14px; font-weight:500; }
.cloud-item-actions .secondary-action { background:var(--ws-surface); color:var(--ws-ink); }

/* Library keeps its folder tree functional without squeezing the file column. */
#cloud-manager[open] { position:fixed; z-index:12; inset:0 0 0 var(--workspace-nav); width:auto; max-width:none; height:var(--app-height); max-height:var(--app-height); margin:0; border:0; border-radius:0; background:var(--ws-surface); color:var(--ws-ink); box-shadow:none; }
.cloud-manager-shell { height:100%; min-height:0; }
.cloud-manager-body { grid-template-columns:190px minmax(0,1fr); min-width:0; }
.cloud-folder-pane { padding:18px 12px; background:var(--ws-subtle); border-color:var(--ws-line); }
.cloud-folder-heading { padding:0 8px 12px; }.cloud-folder-heading strong { font-size:13px; }.cloud-folder-heading small { font-size:12px; }
.cloud-folder-all,.cloud-folder-select { min-height:44px; padding:9px 10px; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:13px; font-weight:500; }
.cloud-folder-all.selected,.cloud-folder-row.selected { background:var(--ws-selected); color:var(--ws-ink); }
.cloud-folder-row:hover { background:var(--ws-hover); }
.cloud-file-pane { display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden; background:var(--ws-surface); }
.cloud-drive-navigation { flex:0 0 auto; padding:14px 22px 0; margin:0; gap:10px; }
.cloud-drive-kinds { gap:4px; border:0; border-radius:0; padding:0; background:transparent; }
.cloud-drive-kinds button { min-height:44px; padding:9px 12px; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:13px; font-weight:500; }
.cloud-drive-kinds button.active { background:var(--ws-hover); color:var(--ws-ink); box-shadow:none; }
.cloud-group-picker { font-size:13px; }.cloud-group-picker select { min-height:44px; border-radius:7px; font-size:14px; }
.cloud-drive-toolbar { flex:0 0 auto; grid-template-columns:auto minmax(100px,1fr) auto; gap:12px; padding:16px 22px; border-color:var(--ws-line); }
.cloud-file-search :is(input,button) { min-height:44px; border-color:var(--ws-control); font-size:14px; }
.cloud-file-search input { border-radius:7px 0 0 7px; }.cloud-file-search button { border-radius:0 7px 7px 0; color:var(--ws-muted); background:var(--ws-subtle); }
.cloud-sort-control { font-size:12px; }.cloud-sort-control select { min-height:44px; max-width:140px; border-radius:7px; font-size:13px; }
.cloud-action-menu>summary { min-height:44px; border-radius:7px; padding:9px 12px; color:var(--ws-ink); background:var(--ws-surface); border-color:var(--ws-line); font-size:13px; font-weight:500; }
.cloud-action-menu[open]>summary, .cloud-action-menu>summary:hover { border-color:var(--ws-control); background:var(--ws-hover); color:var(--ws-ink); }
.cloud-new-menu>summary { background:var(--ws-accent); border-color:var(--ws-accent); color:var(--ws-on-accent); }
.cloud-new-menu[open]>summary,.cloud-new-menu>summary:hover { background:var(--ws-accent-hover); border-color:var(--ws-accent-hover); color:var(--ws-on-accent); }
.cloud-action-menu-popover { min-width:180px; padding:6px; border-radius:8px; border-color:var(--ws-line); background:var(--ws-surface); box-shadow:var(--ws-shadow); }
.cloud-action-menu-popover :is(button,label) { min-height:44px; padding:10px 12px; background:transparent; color:var(--ws-ink); font-size:14px; font-weight:500; }
.cloud-action-menu-popover :is(button,label):hover { background:var(--ws-hover); }
.cloud-action-menu-popover .danger { color:var(--ws-danger); }
:is(.cloud-action-menu-popover,.work-create-options,.work-action-options)[data-viewport-menu="true"] { overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; }
.cloud-breadcrumbs { flex:0 0 auto; min-height:44px; padding:0 20px; border-color:var(--ws-line); }
.cloud-breadcrumbs button { min-height:44px; padding:9px 7px; font-size:13px; font-weight:500; }
.cloud-selection-toolbar { flex:0 0 auto; flex-wrap:wrap; padding:8px 22px; border-color:var(--ws-line); background:var(--ws-selected); }
.cloud-selection-toolbar>strong { color:var(--ws-ink); font-size:13px; }
.cloud-selection-actions { flex-wrap:wrap; gap:6px; }
.cloud-selection-actions>button { min-height:44px; padding:9px 11px; border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font-size:13px; font-weight:500; }
.cloud-selection-actions .cloud-selection-clear { width:44px; }
.cloud-list-header,.cloud-file-row { min-width:0; grid-template-columns:28px 30px minmax(0,1fr) 100px 62px 44px; gap:10px; }
.cloud-list-header { flex:0 0 auto; min-height:38px; padding:0 22px; color:var(--ws-muted); font-size:12px; font-weight:500; }
.cloud-file-list { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 22px 24px; }
.cloud-file-row { min-height:78px; padding:12px 0; border-color:var(--ws-line); }
.cloud-file-row.selected { background:var(--ws-selected); box-shadow:inset 2px 0 var(--ws-accent); }
.cloud-file-icon,.cloud-folder-icon { width:28px; height:34px; border:0; border-radius:0; background:transparent; color:var(--ws-muted); font-size:10px; font-weight:500; }
.cloud-file-thumbnail { width:30px; height:36px; border-radius:4px; background:var(--ws-subtle); border-color:var(--ws-line); }
.cloud-file-copy { gap:5px; }.cloud-file-copy strong { font-size:15px; font-weight:500; }
.cloud-file-name-button { min-height:44px; font-size:15px; line-height:1.5; font-weight:500; }
.cloud-file-copy small,.cloud-file-copy .cloud-file-origin { color:var(--ws-muted); font-size:12px; font-weight:400; }
.cloud-item-date,.cloud-item-size { font-size:12px; color:var(--ws-muted); }
.cloud-row-menu>summary { width:44px; min-height:44px; border:0; padding:0; font-size:17px; }
.cloud-file-check { width:20px; height:20px; margin:0; }
.cloud-file-check-hit { display:grid; place-items:center; width:44px; height:44px; margin:0 0 0 -8px; padding:0; cursor:pointer; }
.cloud-file-check-hit:has(input:focus-visible) { outline:2px solid var(--ws-accent); outline-offset:1px; border-radius:6px; }
.cloud-notice { padding:12px; border-color:var(--ws-line); border-radius:7px; background:var(--ws-subtle); color:var(--ws-text-soft); font-size:13px; }
.cloud-notice.error { color:var(--ws-danger); border-color:var(--ws-danger); background:var(--ws-danger-soft); }
.cloud-empty { min-height:240px; padding:30px 16px; gap:9px; }.cloud-empty strong { font-size:16px; font-weight:600; }.cloud-empty p { font-size:14px; line-height:1.7; }

/* Settings share the work-surface palette, including all injected forms. */
html[data-theme] #host-manager { width:min(1120px,calc(100vw - 40px)); height:min(860px,calc(var(--app-height) - 40px)); max-height:calc(var(--app-height) - 40px); border:1px solid var(--ws-line); border-radius:12px; color:var(--ws-ink); background:var(--ws-surface); box-shadow:var(--ws-shadow); }
#host-manager>.host-manager-shell>.file-preview-header { min-height:60px; padding:8px 18px; background:var(--ws-surface); }
#host-manager .host-manager-body.personal-settings-layout { grid-template-columns:212px minmax(0,1fr); }
#host-manager .personal-settings-nav { padding:16px 12px; background:var(--ws-canvas); border-color:var(--ws-line); }
#host-manager .settings-nav-heading { display:none; }
#host-manager .settings-category { margin-bottom:14px; }
#host-manager .settings-category>summary { min-height:44px; padding:10px 8px; color:var(--ws-muted); font-size:13px; font-weight:500; letter-spacing:0; }
#host-manager .settings-category>summary:hover { background:var(--ws-hover); }
#host-manager .settings-category[open]>summary { margin-bottom:2px; }
#host-manager .personal-settings-nav button { min-height:44px; padding:10px 12px 10px 26px; border:0; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:13px; font-weight:400; }
#host-manager .personal-settings-nav button.active { background:var(--ws-selected); color:var(--ws-ink); font-weight:600; }
#host-manager .personal-settings-nav button:hover { background:var(--ws-hover); color:var(--ws-ink); }
#host-manager .personal-settings-content { padding:28px 32px 40px; background:var(--ws-surface); }
#host-manager .personal-settings-panel { width:100%; max-width:780px; margin:0 auto; gap:24px; }
#host-manager .settings-panel-header { gap:7px; margin:0; padding:0 0 12px; }
#host-manager .settings-panel-header>span { color:var(--ws-muted); font-size:12px; }
#host-manager .settings-panel-header h2 { color:var(--ws-ink); font-size:22px; line-height:1.5; font-weight:600; letter-spacing:-.02em; }
#host-manager .settings-panel-header p { max-width:60ch; margin:0; color:var(--ws-muted); font-size:14px; line-height:1.75; }
#host-manager :is(.settings-form-card,.model-settings-card,.marketplace-section,.group-detail-section,.account-settings-card,.account-operation-card,.settings-route-card,.settings-empty-card,.host-install-card) { margin:0; padding:22px 0; gap:16px; border:0; border-top:1px solid var(--ws-line); border-radius:0; background:transparent; box-shadow:none; }
#host-manager :is(.settings-form-card,.marketplace-section) .settings-form-card { padding:14px 0; background:transparent; }
#host-manager :is(h3,.settings-form-card>strong) { color:var(--ws-ink); font-size:16px; line-height:1.6; font-weight:600; }
#host-manager :is(p,label,output,.settings-form-card>p,.settings-form-card label,.settings-form-card output) { color:var(--ws-text-soft); font-size:14px; line-height:1.75; }
#host-manager :is(p,small,.settings-note,.model-settings-note,.settings-eyebrow,.settings-form-card>p) { color:var(--ws-muted); }
#host-manager :is(small,.settings-note,.model-settings-note,.settings-eyebrow) { font-size:13px; line-height:1.7; }
#host-manager :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { min-width:0; max-width:100%; min-height:44px; padding:10px 11px; border:1px solid var(--ws-control); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font:14px/1.6 var(--workspace-font); }
#host-manager textarea { min-height:110px; resize:vertical; line-height:1.85; }
#host-manager :is(button,.secondary-action) { min-width:0; min-height:44px; padding:10px 14px; border:1px solid var(--ws-line); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font-size:14px; line-height:1.5; font-weight:500; }
#host-manager :is(button,.secondary-action):hover:not(:disabled) { border-color:var(--ws-control); background:var(--ws-hover); }
#host-manager :is(button[type="submit"],.primary-action), #host-manager .brain-mode-options button[aria-pressed="true"] { color:var(--ws-on-accent); border-color:var(--ws-accent); background:var(--ws-accent); }
#host-manager :is(button[type="submit"],.primary-action):hover:not(:disabled) { background:var(--ws-accent-hover); border-color:var(--ws-accent-hover); }
#host-manager :is(.danger-action,.danger-secondary-action,.group-member-remove,.host-remove) { color:var(--ws-danger); background:var(--ws-surface); border-color:color-mix(in srgb,var(--ws-danger) 30%,var(--ws-line)); }
#host-manager :is(.danger-action,.danger-secondary-action):hover { color:var(--ws-danger); background:var(--ws-danger-soft); }
#host-manager :is(summary,.settings-form-card summary) { min-height:44px; padding-block:9px; color:var(--ws-ink); font-size:14px; line-height:1.7; font-weight:500; }
#host-manager details[open]>summary { margin-bottom:12px; }
#host-manager .settings-segmented { padding:0; gap:4px; border:0; border-radius:0; background:transparent; }
#host-manager .settings-segmented button { min-height:44px; padding:9px 12px; border:0; border-radius:6px; background:transparent; color:var(--ws-muted); font-size:13px; }
#host-manager .settings-segmented button[aria-pressed="true"] { color:var(--ws-ink); background:var(--ws-hover); box-shadow:none; }
#host-manager .settings-badge, #host-manager .group-type-badge { color:var(--ws-muted); background:var(--ws-hover); border-radius:5px; padding:3px 7px; font-size:12px; font-weight:500; }
#host-manager .settings-scope-bar { padding:0 0 18px; border:0; border-bottom:1px solid var(--ws-line); border-radius:0; background:transparent; font-size:14px; }
#host-manager .settings-scope-bar select { min-width:140px; }
#host-manager .settings-scope-note, #host-manager .settings-empty { border-color:var(--ws-line); border-radius:8px; background:var(--ws-subtle); color:var(--ws-text-soft); }
#host-manager .brain-current { border-top:1px solid var(--ws-line); }
#host-manager .brain-role-row { grid-template-columns:110px minmax(0,1fr); gap:14px; padding:16px 0; border-color:var(--ws-line); }
#host-manager .brain-role-row span { color:var(--ws-muted); font-size:13px; }
#host-manager .core-model-role { gap:14px; padding-top:20px; border-color:var(--ws-line); }
#host-manager .core-model-role>h4 { color:var(--ws-ink); font-size:16px; }
#host-manager .core-model-id { color:var(--ws-muted); font-size:12px; }
#host-manager .account-settings-card { padding-top:0; border:0; }
#host-manager :is(.account-settings-avatar,.auth-brand) { background:var(--ws-hover); color:var(--ws-ink); }
#host-manager .account-settings-identity strong { color:var(--ws-ink); font-size:17px; }
#host-manager .settings-autoplay-switch { min-height:66px; gap:16px; padding:12px 0; }
#host-manager .settings-toggle-copy strong { font-size:14px; }.settings-toggle-copy small { font-size:13px; }
.switch-track { width:40px; height:22px; border:1px solid var(--ws-control); background:var(--ws-hover); }
.switch-track i { top:2px; left:2px; width:16px; height:16px; background:var(--ws-muted); }
.autoplay-switch input:checked+.switch-track { border-color:var(--ws-accent); background:var(--ws-accent); }
.autoplay-switch input:checked+.switch-track i { transform:translateX(18px); background:var(--ws-on-accent); }
#host-manager :is(.skill-card,.marketplace-package-card,.host-card,.host-agent-state,.workspace-card,.group-summary-card) { padding:18px; border:1px solid var(--ws-line); border-radius:8px; background:var(--ws-surface); box-shadow:none; }
#host-manager .skill-card p { min-height:0; color:var(--ws-muted); }
#host-manager .skill-instructions-preview { padding:18px; border-color:var(--ws-line); border-radius:7px; background:var(--ws-subtle); color:var(--ws-ink); font:14px/1.85 var(--workspace-font); }
#host-manager .skill-dependency-editor { border-color:var(--ws-line); }
#host-manager .skill-dependency-item { padding:12px; background:var(--ws-subtle); color:var(--ws-ink); }
#host-manager .skill-dependency-gaps { padding:12px; border-color:var(--ws-warning); background:var(--ws-warning-soft); color:var(--ws-warning); font-size:13px; }
#host-manager .host-agent-topline>span { color:var(--ws-ink); background:transparent; font-size:15px; }
#host-manager .host-agents span { background:var(--ws-hover); color:var(--ws-muted); font-size:13px; }
#host-manager .host-agents span.ready { color:var(--ws-positive); background:var(--ws-positive-soft); }
#host-manager .host-agents span.unavailable { color:var(--ws-warning); background:var(--ws-warning-soft); }
#host-manager .host-agent-reason { max-width:none; font-size:13px; }
#host-manager .source-rename-form { gap:8px; }.source-rename-form input { min-width:120px; flex:1; }
#host-manager :is(.marketplace-record-row,.group-resource-row,.group-member-row,.workspace-member,.foundation-record) { padding:16px 0; gap:12px; border-color:var(--ws-line); color:var(--ws-ink); font-size:14px; }
#host-manager :is(.marketplace-record-copy small,.group-resource-row small,.group-member-row small,.workspace-member span:last-child) { color:var(--ws-muted); font-size:13px; }
#host-manager :is(.marketplace-summary>div,.foundation-summary>div) { padding:16px; border:1px solid var(--ws-line); border-radius:7px; background:var(--ws-subtle); color:var(--ws-ink); }
#host-manager :is(.marketplace-summary span,.foundation-summary span,.foundation-summary small) { color:var(--ws-muted); font-size:13px; }
#host-manager :is(.marketplace-summary strong,.foundation-summary strong) { color:var(--ws-ink); font-size:22px; font-weight:600; }
#host-manager :is(.marketplace-search-hit,.group-directory,.knowledge-collection-form,.knowledge-collection-card) { background:var(--ws-subtle); border-color:var(--ws-line); border-radius:7px; }
#host-manager .group-tabs { gap:4px; }.group-tabs button { min-height:44px; }
#host-manager .group-tabs [aria-pressed="true"] { color:var(--ws-ink); background:var(--ws-hover); border-color:var(--ws-line); }
#host-manager .group-directory-heading label { font-size:14px; }
#host-manager .group-member-actions { flex-wrap:wrap; }
#host-manager .workspace-invite-code { color:var(--ws-ink); border-color:var(--ws-control); background:var(--ws-subtle); }
#host-manager .host-enrollment-code { background:var(--ws-subtle); border-color:var(--ws-control); color:var(--ws-ink); }
#host-manager .model-settings-heading>span.pending { color:var(--ws-warning); background:var(--ws-warning-soft); }
#host-manager .settings-tools-panel iframe { min-height:560px; border:0; border-radius:0; background:var(--ws-surface); }
#host-manager :is(#settings-runtime-frame,#settings-mcp-frame,#settings-places-frame) { background:var(--ws-surface); border:0; border-radius:0; }
#host-manager .personal-settings-content:has(.settings-frame-panel.active) { padding:0; }
/* A settings file library has no third narrow column. Its folders use a strip. */
#host-manager #settings-files-mount .cloud-manager-body { display:flex; flex-direction:column; min-height:440px; border:0; border-radius:0; }
#host-manager #settings-files-mount .cloud-folder-pane { display:flex; flex-wrap:wrap; gap:5px; max-height:160px; padding:0 0 12px; border:0; border-bottom:1px solid var(--ws-line); background:transparent; }
#host-manager #settings-files-mount .cloud-folder-heading { display:none; }
#host-manager #settings-files-mount .cloud-folder-tree { display:flex; flex-wrap:wrap; gap:5px; }
#host-manager #settings-files-mount :is(.cloud-folder-all,.cloud-folder-select) { width:auto; min-height:44px; padding:9px 10px; }
#host-manager #settings-files-mount .cloud-file-pane { padding:0; min-height:400px; }
#host-manager #settings-files-mount .cloud-drive-toolbar { grid-template-columns:auto minmax(100px,1fr); padding:14px 0; }
#host-manager #settings-files-mount .cloud-sort-control { grid-column:1 / -1; }
#host-manager #settings-files-mount :is(.cloud-list-header,.cloud-file-row) { grid-template-columns:28px 30px minmax(0,1fr) 44px; }
#host-manager #settings-files-mount :is(.cloud-item-date,.cloud-item-size,.cloud-list-header>span:nth-child(4),.cloud-list-header>span:nth-child(5)) { display:none; }
#host-manager #settings-files-mount :is(.cloud-file-list,.cloud-breadcrumbs,.cloud-list-header) { padding-inline:0; }
#host-manager .settings-toast,.settings-toast { max-width:min(560px,calc(100% - 32px)); bottom:18px; padding:12px 16px; border-color:var(--ws-line); border-radius:8px; color:var(--ws-surface); background:var(--ws-ink); box-shadow:var(--ws-shadow); font-size:14px; }
#host-manager .settings-toast.error,.settings-toast.error { color:var(--ws-danger); border-color:var(--ws-danger); background:var(--ws-danger-soft); }
.settings-confirm { color:var(--ws-ink); background:var(--ws-surface); border-color:var(--ws-line); border-radius:12px; padding:24px; font:14px/1.7 var(--workspace-font); }
.settings-confirm h2 { color:var(--ws-ink); font-size:20px; }.settings-confirm p { color:var(--ws-muted); }
.settings-confirm input { min-height:44px; border-color:var(--ws-control); background:var(--ws-surface); color:var(--ws-ink); font-size:16px; }
.settings-confirm button { min-height:44px; border-color:var(--ws-line); border-radius:7px; color:var(--ws-ink); background:var(--ws-surface); }
.knowledge-links-dialog { max-height:calc(var(--app-height) - 32px); padding:24px; border-color:var(--ws-line); border-radius:12px; color:var(--ws-ink); background:var(--ws-surface); box-shadow:var(--ws-shadow); }
.knowledge-links-dialog::backdrop { background:var(--ws-scrim); }

/* Login and setup use the same type and control hierarchy. */
.auth-dialog { width:min(440px,calc(100vw - 32px)); max-height:calc(var(--app-height) - 32px); border:1px solid var(--ws-line); border-radius:12px; color:var(--ws-ink); background:var(--ws-surface); box-shadow:var(--ws-shadow); }
.auth-dialog[open] { max-height:calc(var(--app-height) - 32px); }
.auth-shell { padding:28px; gap:24px; }
.auth-topline>button { width:44px; height:44px; border:0; border-radius:7px; color:var(--ws-muted); background:transparent; }
.auth-brand { width:36px; height:36px; border-radius:8px; background:var(--ws-hover); color:var(--ws-ink); font-size:16px; font-weight:500; }
.auth-shell h2 { color:var(--ws-ink); font-size:24px; font-weight:600; line-height:1.5; letter-spacing:-.02em; }
.auth-shell p { color:var(--ws-muted); font-size:14px; line-height:1.75; }
.auth-kicker { color:var(--ws-muted); font-size:12px; letter-spacing:0; font-weight:500; }
.auth-form { gap:18px; }.auth-form label { gap:8px; font-size:14px; color:var(--ws-ink); font-weight:400; }
.auth-form :is(input,select) { min-height:46px; padding:10px 12px; border-color:var(--ws-control); border-radius:7px; color:var(--ws-ink); background:var(--ws-surface); font-size:16px; }
.auth-form button,.onboarding-start { min-height:46px; border-radius:7px; color:var(--ws-on-accent); background:var(--ws-accent); font-size:14px; font-weight:500; }
.auth-route,.auth-secondary-routes { font-size:13px; color:var(--ws-muted); gap:10px; flex-wrap:wrap; }
.auth-route button,.auth-secondary-routes button,.auth-back { min-height:44px; color:var(--ws-accent); font-size:13px; font-weight:500; }
.auth-secondary-routes { gap:4px 12px; padding-top:12px; border-color:var(--ws-line); }
.auth-error { color:var(--ws-danger) !important; font-size:13px; }
.otp-field { min-width:0; gap:8px; }.otp-field input { min-width:0; }.otp-field button { min-width:105px; white-space:nowrap; font-size:13px; }
.onboarding-progress { color:var(--ws-muted); font-size:12px; }.onboarding-progress b { color:var(--ws-accent); }
.assistant-choice label { border-color:var(--ws-line); background:var(--ws-surface); border-radius:7px; }

.assistant-choice label:has(input:checked) { border-color:var(--ws-accent); background:var(--ws-accent-soft); }
.assistant-choice small { color:var(--ws-muted); font-size:13px; }.assistant-choice b { color:var(--ws-ink); font-size:15px; }
.onboarding-steps li { border-color:var(--ws-line); background:var(--ws-surface); }.onboarding-steps small { color:var(--ws-muted); font-size:13px; }.onboarding-steps strong { color:var(--ws-ink); font-size:14px; }

/* Existing project, journey and integration surfaces retain every operation. */
.project-list-pane,.project-direct-navigation { background:var(--ws-subtle); border-color:var(--ws-line); }
.project-card,.project-empty,.project-direct-thread { border-color:var(--ws-line); border-radius:8px; background:var(--ws-surface); color:var(--ws-ink); box-shadow:none; }
.project-card-heading strong { font-size:16px; }.project-status { font-size:12px; font-weight:500; border-radius:5px; background:var(--ws-hover); color:var(--ws-muted); }
.project-card.blocked { border-color:var(--ws-warning); }.project-card.blocked .project-status { color:var(--ws-warning); background:var(--ws-warning-soft); }.project-blocker { color:var(--ws-warning); }
.project-goal,.project-evidence p,.project-empty p,.project-card-meta,.project-create-card p,.project-create-card label { font-size:14px; line-height:1.75; color:var(--ws-muted); }
.project-evidence { border-radius:7px; background:var(--ws-subtle); }.project-evidence strong { font-size:14px; }
.project-create-card :is(input,textarea) { border-color:var(--ws-control); border-radius:7px; background:var(--ws-surface); color:var(--ws-ink); font-size:16px; }
.project-create-card button,.project-direct-composer button { min-height:44px; border-radius:7px; background:var(--ws-accent); color:var(--ws-on-accent); font-size:14px; font-weight:500; }
.project-direct-navigation label { color:var(--ws-muted); font-size:13px; }
.project-direct-navigation select { min-height:44px; border-color:var(--ws-control); border-radius:7px; font-size:14px; }
.project-direct-thread { min-height:76px; border:0; border-bottom:1px solid var(--ws-line); border-radius:0; padding:14px 8px; }
.project-direct-thread.active { background:var(--ws-selected); box-shadow:inset 2px 0 var(--ws-accent); }
.project-direct-thread-copy strong { font-size:14px; font-weight:500; }.project-direct-thread-copy small,.project-direct-thread time { font-size:12px; }
.project-direct-thread-heading button,.project-direct-create-thread button,.project-direct-release { min-height:44px; border-radius:7px; font-size:13px; color:var(--ws-ink); background:var(--ws-surface); }
.project-direct-interrupt { min-height:44px; border-color:var(--ws-danger); border-radius:7px; color:var(--ws-danger); background:var(--ws-danger-soft); font-size:13px; }
.project-direct-message { padding:12px 14px; border:0; border-radius:8px; background:transparent; color:var(--ws-ink); }
.project-direct-message.user { color:var(--ws-ink); background:var(--ws-hover); border-color:transparent; }
.project-direct-message p,.project-direct-message summary { font-size:15px; line-height:1.8; }.project-direct-message small { font-size:12px; opacity:1; color:var(--ws-muted); }
.project-direct-thread-header small,.project-direct-status,.project-direct-empty p { font-size:13px; color:var(--ws-muted); }

/* The same stylesheet is loaded inside same-origin settings frames. */
body.connection-settings,body.runtime-workspace { margin:0; min-height:100dvh; height:auto; overflow:auto; background:var(--ws-surface); color:var(--ws-ink); font:14px/1.75 var(--workspace-font); }
.connection-settings main,.runtime-workspace main { max-width:1080px; margin:0 auto; padding:28px 24px 44px; }
.connection-settings.embedded main,.runtime-workspace.embedded main { max-width:none; margin:0; padding:20px; }
.connection-settings :is(h1,h2,h3),.runtime-workspace :is(h1,h2,h3) { color:var(--ws-ink); font-weight:600; letter-spacing:-.015em; }
.connection-settings h1,.runtime-workspace h1 { font-size:24px; }.connection-settings h2,.runtime-workspace h2 { font-size:19px; }.connection-settings h3,.runtime-workspace h3 { font-size:16px; }
.connection-settings :is(p,small,label,.muted,.server-address,.connection-summary),.runtime-workspace :is(.muted,.description,summary small,.keyvals dt) { color:var(--ws-muted); font-size:13px; line-height:1.75; }
.connection-settings label { color:var(--ws-ink); font-size:14px; }
.connection-settings :is(a,.back),.runtime-workspace :is(a,.back) { color:var(--ws-accent); }
.connection-settings :is(section,.server,.connection-history),.runtime-workspace :is(.panel,.card,.metric,.tool-group) { padding:18px; border:1px solid var(--ws-line); border-radius:8px; background:var(--ws-surface); color:var(--ws-ink); box-shadow:none; }
.runtime-workspace .panel { padding:22px 0; border-width:1px 0 0; border-radius:0; }
.runtime-workspace.embedded-tools .tool-group { border-color:var(--ws-line); background:var(--ws-surface); }
.runtime-workspace :is(.card,.metric) { background:var(--ws-subtle); }
.runtime-workspace .tool-group { padding:0; }.runtime-workspace .tool-group>summary { min-height:44px; padding:14px 16px; background:var(--ws-subtle); }
.runtime-workspace :is(.tool,.turn,.inspection-detail,.card .role),.connection-settings :is(.tool,.connection-tools) { border-color:var(--ws-line); }
.runtime-workspace :is(.tool,.turn,.inspection-detail)>summary { min-height:44px; }
.connection-settings :is(input,select,textarea),.runtime-workspace :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { min-height:44px; padding:10px 11px; border:1px solid var(--ws-control); border-radius:7px; color:var(--ws-ink); background:var(--ws-surface); font-size:14px; }
.connection-settings :is(button,.secondary),.runtime-workspace button { min-height:44px; padding:10px 14px; border:1px solid var(--ws-line); border-radius:7px; color:var(--ws-ink); background:var(--ws-surface); font-size:14px; font-weight:500; }
.connection-settings :is(button[type="submit"],#add-connection),.runtime-workspace #refresh { color:var(--ws-on-accent); border-color:var(--ws-accent); background:var(--ws-accent); }
.connection-settings .danger-action { color:var(--ws-danger); border-color:var(--ws-danger); background:var(--ws-surface); }
.connection-settings button.secondary { border-color:var(--ws-line); background:var(--ws-surface); color:var(--ws-ink); }
.connection-settings button.danger-action { color:var(--ws-danger); border-color:var(--ws-danger); background:var(--ws-surface); }
.connection-settings #status,.runtime-workspace #status { color:var(--ws-muted); background:var(--ws-subtle); font-size:13px; }
.connection-settings #status.error,.runtime-workspace .error { color:var(--ws-danger) !important; background:var(--ws-danger-soft); }
.runtime-workspace .warning { color:var(--ws-warning) !important; }
.connection-settings :is(pre,.badge),.runtime-workspace :is(pre,.badge,.badge:not(.good),.chip,.dim,.empty) { border-color:var(--ws-line); border-radius:6px; color:var(--ws-text-soft); background:var(--ws-subtle); }
.connection-settings pre,.runtime-workspace pre { padding:14px; font-size:12px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.runtime-workspace .good { color:var(--ws-positive); background:var(--ws-positive-soft); }.runtime-workspace .warn { color:var(--ws-warning); background:var(--ws-warning-soft); border-color:var(--ws-warning); }
.runtime-workspace .environment-note { border-color:var(--ws-line); background:var(--ws-subtle); color:var(--ws-ink); }
.runtime-workspace .tabs a { min-height:44px; display:inline-flex; align-items:center; padding:9px 12px; border:0; border-radius:6px; color:var(--ws-muted); background:var(--ws-hover); }
.runtime-workspace .metric strong { color:var(--ws-ink); font-family:inherit; font-size:25px; }
.runtime-workspace :is(th,td),.connection-settings :is(th,td) { padding:12px 8px; border-color:var(--ws-line); color:var(--ws-text-soft); font-size:13px; }
.runtime-workspace th,.connection-settings th { color:var(--ws-muted); }
.runtime-workspace .heading button { min-height:44px; margin:0; }
.connection-settings .tool label { gap:12px; min-height:44px; }.connection-settings .tool select { width:auto; min-width:135px; }

/* New shell pieces and the global search surface. */
.workspace-sidebar-footer { display:flex; align-items:center; gap:6px; margin-top:auto; padding-top:16px; }
#web-workspace .workspace-sidebar-footer .personal-entry { flex:1; min-height:48px; padding:8px 10px; order:0; }
.workspace-version { color:var(--ws-muted); font-size:11px; padding-right:6px; }
.workspace-recent-heading { padding:8px 10px; color:var(--ws-muted); font-size:12px; }
#workspace-recent-tasks { display:grid; gap:2px; }
.workspace-recent .workspace-recent-item { display:block; width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.workspace-recent-item.needs-attention::before { content:""; display:inline-block; width:6px; height:6px; margin-right:8px; border-radius:50%; background:var(--ws-warning); vertical-align:middle; }
#web-workspace .message { flex:0 0 auto; }
#web-workspace .icon-button { display:inline-grid; place-items:center; width:44px; height:44px; min-height:44px; flex:0 0 44px; padding:0; border:0; border-radius:7px; color:var(--ws-muted); background:transparent; }
#web-workspace .icon-button:hover { color:var(--ws-ink); background:var(--ws-hover); }
#companion-image-fallback { display:grid; place-items:center; width:120px; height:120px; border:1px solid var(--ws-line); border-radius:24px; color:var(--ws-muted); background:var(--ws-subtle); font-size:40px; }
#workspace-search-dialog { width:min(640px,calc(100vw - 32px)); max-height:calc(var(--app-height) - 56px); padding:0; overflow:hidden; border:1px solid var(--ws-line); border-radius:12px; color:var(--ws-ink); background:var(--ws-surface); }
#workspace-search-dialog>header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:8px 18px 8px 24px; border-bottom:1px solid var(--ws-line); }
#workspace-search-dialog h2 { margin:0; font-size:17px; font-weight:600; }
#workspace-search-dialog>header button { width:44px; height:44px; padding:0; border:0; border-radius:7px; color:var(--ws-muted); background:transparent; font-size:24px; }
.workspace-search-field { display:block; padding:16px 22px; }
.workspace-search-field input { width:100%; min-height:46px; padding:10px 12px; border:1px solid var(--ws-control); border-radius:7px; font-size:16px; }
.workspace-search-results { max-height:calc(var(--app-height) - 230px); min-height:120px; overflow:auto; padding:0 12px 16px; }
.workspace-search-section h3 { margin:12px 10px 5px; color:var(--ws-muted); font-size:12px; font-weight:500; }
.workspace-search-section>.empty { padding:14px 10px; color:var(--ws-muted); font-size:14px; }
.workspace-search-result { display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:12px; border:0; border-radius:6px; color:var(--ws-ink); background:transparent; text-align:left; }
.workspace-search-result:hover { background:var(--ws-hover); }
.workspace-result-kind { flex:0 0 auto; padding:4px 6px; border-radius:5px; background:var(--ws-subtle); color:var(--ws-muted); font-size:12px; }
.workspace-search-copy { display:grid; gap:4px; min-width:0; }.workspace-search-copy strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }.workspace-search-copy small { color:var(--ws-muted); font-size:12px; overflow-wrap:anywhere; }

/* A desktop document stays beside its source, leaving the source operable. */
@media (min-width:1180px) {
  body:has(#file-preview[open][data-presentation="side"]) #web-workspace { padding-right:420px; }
  body:has(#file-preview[open][data-presentation="side"]) #cloud-manager[open] { right:420px; }
  #file-preview[open][data-presentation="side"] { position:fixed; z-index:50; inset:0 0 0 auto; width:420px; max-width:420px; height:var(--app-height); max-height:var(--app-height); margin:0; border:0; border-left:1px solid var(--ws-line); border-radius:0; box-shadow:none; }
  #file-preview[data-presentation="side"] .file-preview-body { padding:24px; }
  #file-preview[data-presentation="side"] .file-preview-actions { justify-content:stretch; }
  #file-preview[data-presentation="side"] .file-preview-actions>* { flex:1 1 120px; }
  body:has(#file-preview[open][data-presentation="side"]) .cloud-manager-body { grid-template-columns:150px minmax(0,1fr); }
  body:has(#file-preview[open][data-presentation="side"]) :is(.cloud-list-header,.cloud-file-row) { grid-template-columns:24px 28px minmax(0,1fr) 44px; gap:8px; }
  body:has(#file-preview[open][data-presentation="side"]) :is(.cloud-item-date,.cloud-item-size,.cloud-list-header>span:nth-child(4),.cloud-list-header>span:nth-child(5)) { display:none; }
  body:has(#file-preview[open][data-presentation="side"]) .cloud-drive-toolbar { grid-template-columns:auto minmax(100px,1fr); }
  body:has(#file-preview[open][data-presentation="side"]) .cloud-sort-control { grid-column:1 / -1; }
  body:has(#file-preview[open][data-presentation="side"]) #web-workspace .task-workspace { grid-template-columns:minmax(220px,270px) minmax(0,1fr); }
  body:has(#file-preview[open][data-presentation="side"]) .task-detail-content { padding:20px; }
}
@media (min-width:760px) and (max-width:1179px) {
  .cloud-manager-body { grid-template-columns:160px minmax(0,1fr); }
  .cloud-drive-toolbar { grid-template-columns:auto minmax(100px,1fr); }
  .cloud-sort-control { grid-column:1 / -1; justify-self:end; }
  .cloud-list-header,.cloud-file-row { grid-template-columns:24px 28px minmax(0,1fr) 44px; gap:8px; }
  .cloud-item-date,.cloud-item-size,.cloud-list-header>span:nth-child(4),.cloud-list-header>span:nth-child(5) { display:none; }
  #web-workspace .task-workspace { grid-template-columns:minmax(230px,280px) minmax(0,1fr); }
  .task-detail-content { padding:22px; }.task-detail-heading { flex-wrap:wrap; }
  #host-manager .host-manager-body.personal-settings-layout { grid-template-columns:190px minmax(0,1fr); }
  #host-manager .personal-settings-content { padding:24px; }
  #host-manager .core-model-role { grid-template-columns:1fr; }
}

/* Phone: one current surface, four persistent primary destinations. */
@media (max-width:759px), (max-height:540px) and (pointer:coarse) {
  :root { --workspace-nav:0px; --workspace-bottom:calc(62px + env(safe-area-inset-bottom)); --workspace-header:58px; }
  body[data-access="app"] { position:fixed; top:var(--app-top,0px); left:0; width:100%; }
  body[data-access="app"] #web-workspace { height:100%; }
  #web-workspace,body[data-surface="tasks"] #web-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) var(--workspace-bottom); }
  #web-workspace .side-rail { display:none; }
  #web-workspace :is(.assistant-main,.task-panel,.companion-surface) { grid-column:1; grid-row:1; padding-bottom:0; }
  #web-workspace .mobile-nav { position:relative; z-index:20; inset:auto; grid-column:1; grid-row:2; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; height:var(--workspace-bottom); min-height:62px; padding:5px 8px calc(5px + env(safe-area-inset-bottom)); border-top:1px solid var(--ws-line); background:var(--ws-surface); }
  #web-workspace .mobile-nav button { min-width:0; min-height:48px; padding:3px 2px; gap:4px; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:12px; font-weight:500; }
  #web-workspace .mobile-nav button.active { color:var(--ws-accent); }
  #web-workspace .mobile-nav svg { width:22px; height:22px; }
  #web-workspace .mobile-nav b { top:0; left:calc(50% + 7px); height:17px; min-width:17px; padding:0 4px; border-radius:5px; background:var(--ws-accent); color:var(--ws-on-accent); font-size:11px; font-weight:500; }
  #web-workspace :is(.surface-header,.assistant-header,.task-panel-header) { min-height:58px; padding:7px 12px 7px 18px; gap:8px; }
  .assistant-identity { gap:8px; }.identity-line h1 { font-size:16px; }.assistant-identity p { max-width:44vw; font-size:12px; }
  .header-actions { gap:0; }.header-actions .project-direct-entry { width:44px; padding:0; justify-content:center; }
  .header-actions .project-direct-entry>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #web-workspace .assistant-avatar { width:26px; height:26px; }
  #web-workspace .conversation { padding:24px 18px 20px; gap:24px; }
  #web-workspace .message { font-size:16px; line-height:1.8; }
  #web-workspace .message.user { max-width:94%; padding:10px 13px; }
  #web-workspace .message-meta { gap:6px; font-size:12px; }
  #web-workspace .message-actions button { width:auto; min-width:44px; min-height:44px; }
  #web-workspace #composer { padding:7px 12px 10px; }
  #web-workspace .composer-box { padding:10px 10px 7px; border-radius:18px; }
  #web-workspace #composer textarea { min-height:38px; max-height:120px; font-size:16px; }
  #web-workspace .composer-toolbar { align-items:center; gap:4px; }
  #web-workspace .voice-entry-actions { gap:0; flex:1; flex-wrap:wrap; }
  #web-workspace :is(.composer-action,.execution-options>summary) { padding:8px; font-size:12px; gap:4px; }
  #web-workspace .composer-action svg { width:18px; height:18px; }
  #web-workspace #composer .send-button { width:44px; flex:0 0 44px; padding:4px; }
  #web-workspace #composer .send-button>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #web-workspace .composer-hint { display:none; }
  .execution-options-menu { left:0; right:auto; width:min(310px,calc(100vw - 38px)); }
  #web-workspace .execution-options-menu :is(select,input) { font-size:16px; max-width:175px; }
  #web-workspace .voice-dock { max-width:calc(100% - 24px); max-height:34dvh; padding:12px; margin-bottom:4px; }
  .voice-io-grid { gap:7px; }.voice-wave { height:24px; }
  .jump-to-latest { right:14px; bottom:122px; font-size:13px; }
  .message-presentation-item { grid-template-columns:1fr; }
  .companion-surface .companion-stage { gap:18px; padding:24px 18px; }
  .companion-surface .companion-portrait { width:min(290px,76vw); height:min(43dvh,350px); min-height:170px; }
  .companion-copy p { font-size:14px; }.companion-actions { gap:8px; }.companion-actions button { min-width:112px; padding:10px 14px; }
  #web-workspace .task-toolbar { grid-template-columns:minmax(0,1fr) 126px; padding:18px 16px 8px; gap:10px; }
  .project-workspace { padding:18px 16px 28px; }
  .project-workspace-heading { align-items:flex-start; gap:10px; }
  .project-workspace-heading strong { font-size:16px; }
  .project-workspace-heading p { max-width:190px; font-size:12px; }
  .project-workspace-heading button { padding-inline:11px; font-size:13px; }
  .project-panel-list { grid-template-columns:minmax(0,1fr); }
  .task-toolbar input,.task-toolbar select { font-size:14px; min-height:44px; }
  #web-workspace .task-filters { padding:0 16px 12px; gap:3px; }
  #web-workspace .task-filters button { padding-inline:11px; font-size:13px; }
  #web-workspace .task-workspace { display:block; position:relative; height:100%; overflow:hidden; }
  #web-workspace .tasks { height:100%; padding:0 16px 24px; border:0; overflow:auto; }
  #web-workspace .task-summary { min-height:106px; padding:16px 2px; }
  #web-workspace .task-summary.selected { background:transparent; box-shadow:none; }
  #web-workspace .task-detail { display:none; height:100%; overflow:auto; }
  body[data-task-detail="open"] #web-workspace .task-panel { grid-template-rows:minmax(0,1fr); }
  body[data-task-detail="open"] #web-workspace .task-panel>:is(.task-panel-header,.task-toolbar,.task-filters,.diagnostics) { display:none; }
  body[data-task-detail="open"] #web-workspace .tasks { display:none; }
  body[data-task-detail="open"] #web-workspace .task-detail { display:block; }
  #task-detail-back { display:inline-flex; align-items:center; min-height:44px; justify-self:start; margin:-8px 0 -4px -7px; padding:9px 7px; border:0; border-radius:6px; color:var(--ws-muted); background:transparent; font-size:14px; }
  .task-detail-content { padding:20px 20px 30px; gap:22px; }
  .task-detail-heading { display:block; position:relative; }.task-detail-heading h3 { font-size:21px; }.task-detail-heading p { font-size:14px; }
  .task-detail-heading>div:first-child { padding-top:52px; }
  .task-detail-heading>div:first-child>.task-state { position:absolute; top:10px; left:0; max-width:calc(100% - 132px); }
  .task-organize-actions { position:absolute; top:0; right:0; width:auto; gap:4px; }
  .task-organize-actions>button { flex:0 0 auto; min-height:44px; padding:9px 10px; border:0; color:var(--ws-muted); background:transparent; font-size:13px; white-space:nowrap; }
  .task-organize-actions>.danger-secondary-action { color:var(--ws-danger); }
  .task-organize-actions>button:hover:not(:disabled) { background:var(--ws-hover); }
  .task-facts { grid-template-columns:82px minmax(0,1fr); gap:12px; }
  .task-result-deliverable { font-size:16px; }.task-detail-section>p { font-size:15px; }
  .task-panel .diagnostics summary { padding-inline:18px; }
  #cloud-manager[open] { inset:0 0 auto; height:calc(var(--app-height) - var(--workspace-bottom)); max-height:calc(var(--app-height) - var(--workspace-bottom)); }
  #cloud-manager[open] .cloud-manager-body { display:flex; flex-direction:column; overflow:hidden; }
  #cloud-manager[open] .cloud-folder-pane { display:flex; align-items:center; gap:4px; flex:0 0 auto; max-height:58px; padding:6px 12px; border:0; border-bottom:1px solid var(--ws-line); overflow-x:auto; overflow-y:hidden; background:var(--ws-surface); }
  #cloud-manager[open] .cloud-folder-heading { display:none; }
  #cloud-manager[open] .cloud-folder-tree { display:flex; flex-wrap:nowrap; gap:4px; margin:0; }
  #cloud-manager[open] :is(.cloud-folder-all,.cloud-folder-select) { width:auto; min-width:max-content; min-height:44px; padding:9px 11px; font-size:13px; }
  #cloud-manager[open] .cloud-file-pane { flex:1; min-height:0; }
  .cloud-drive-navigation { padding:10px 14px 0; }
  #cloud-manager[open] .cloud-drive-toolbar { position:relative; top:auto; padding:12px 14px; grid-template-columns:auto minmax(0,1fr); gap:10px; }
  .cloud-file-search input { font-size:16px; padding-inline:9px; }.cloud-file-search button { padding-inline:10px; }
  .cloud-sort-control { grid-column:1 / -1; justify-self:end; }.cloud-sort-control select { min-height:44px; }
  .cloud-breadcrumbs { padding-inline:12px; }
  .cloud-list-header { display:none; }
  #cloud-manager[open] .cloud-file-list { padding:0 14px 22px; }
  #cloud-manager[open] .cloud-file-row,.cloud-file-row { min-width:0; min-height:84px; padding:12px 0; grid-template-columns:24px 28px minmax(0,1fr) 44px; gap:7px; }
  .cloud-file-row :is(.cloud-item-date,.cloud-item-size) { display:none; }
  #cloud-manager[open] .cloud-file-copy strong { font-size:15px; font-weight:500; }
  #cloud-manager[open] .cloud-file-copy small { font-size:12px; }
  .cloud-file-name-button { min-height:44px; }.cloud-file-icon { width:28px; height:32px; }
  .cloud-selection-toolbar { padding:8px 14px; }.cloud-selection-actions { justify-content:flex-start; }
  .file-preview,.project-manager,.project-direct,html[data-theme] #host-manager { position:fixed; inset:0; width:100%; max-width:100%; height:var(--app-height); max-height:var(--app-height); margin:0; border:0; border-radius:0; }
  .file-preview-header { min-height:58px; padding:7px 12px 7px 18px; }.file-preview-header strong { font-size:15px; }.file-preview-header small { font-size:12px; }
  .file-preview-body { padding:24px 20px; }.file-preview-body>.markdown-body { font-size:16px; }
  .file-preview-actions { padding:12px 16px max(12px,env(safe-area-inset-bottom)); justify-content:stretch; }
  .file-preview-actions>* { flex:1 1 140px; }
  .document-textarea { padding:14px; min-height:44dvh; font-size:16px; }
  .document-version-select { min-height:44px; font-size:16px; }
  .document-editor-controls { gap:8px; }.document-editor-controls button { min-height:44px; }
  html[data-theme] #host-manager>.host-manager-shell>.file-preview-header { padding:7px 12px; }
  #host-manager .host-manager-body.personal-settings-layout { position:relative; grid-template-columns:minmax(0,1fr); }
  #settings-category-toggle { display:block; min-height:44px; padding:9px 11px; border:1px solid var(--ws-line); border-radius:7px; color:var(--ws-muted); background:var(--ws-surface); font-size:14px; }
  #host-manager .personal-settings-nav { position:absolute; z-index:3; inset:0 auto 0 0; display:none; width:min(300px,86vw); padding:18px 12px; background:var(--ws-canvas); box-shadow:var(--ws-shadow); }
  #host-manager[data-navigation="open"] .personal-settings-nav { display:block; }
  #host-manager[data-navigation="open"] #settings-category-dismiss { display:block; position:absolute; z-index:2; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:0; background:var(--ws-scrim); }
  #host-manager .personal-settings-nav button { min-height:48px; padding:12px 18px 12px 27px; font-size:14px; }
  #host-manager .settings-category>summary { min-height:48px; font-size:14px; }
  #host-manager .personal-settings-content { padding:24px 20px max(30px,env(safe-area-inset-bottom)); }
  #host-manager .settings-panel-header h2 { font-size:21px; }
  #host-manager .settings-panel-header p { font-size:14px; }
  #host-manager :is(.settings-form-card,.model-settings-card,.marketplace-section,.group-detail-section,.account-operation-card,.settings-route-card) { padding:20px 0; }
  #host-manager :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { min-height:46px; font-size:16px; }
  #host-manager :is(.core-model-role,.agent-sharing-form,.foundation-form-grid,.group-form-grid,.group-inline-form,.marketplace-inline-form,.personal-workspace-pane) { grid-template-columns:minmax(0,1fr); }
  #host-manager .brain-role-row { grid-template-columns:minmax(0,1fr); gap:5px; }
  #host-manager .marketplace-card-list,.skill-grid { grid-template-columns:minmax(0,1fr); }
  #host-manager .marketplace-record-row { flex-wrap:wrap; align-items:flex-start; }
  #host-manager .marketplace-record-actions { flex-wrap:wrap; }
  #host-manager :is(.settings-row-heading,.group-section-heading,.group-directory-heading,.settings-feature-row) { flex-wrap:wrap; gap:10px; }
  #host-manager .settings-feature-row small { text-align:left; }
  #host-manager .settings-scope-bar select { width:100%; }
  #host-manager :is(.settings-empty-card,.settings-route-card,.account-operation-card) { flex-wrap:wrap; }
  #host-manager .settings-tools-panel iframe { min-height:600px; }
  #host-manager .settings-current-location { display:none; }
  #host-manager .settings-toast,.settings-toast { bottom:max(14px,env(safe-area-inset-bottom)); font-size:14px; }
  .project-manager-body,.project-direct-body { grid-template-columns:minmax(0,1fr); overflow:auto; }
  .project-list-pane { border-right:0; border-bottom:1px solid var(--ws-line); }
  .project-direct-navigation { min-height:260px; max-height:40dvh; border-right:0; border-bottom:1px solid var(--ws-line); }
  .project-direct-conversation { min-height:55dvh; }
  .project-direct-message p { font-size:16px; }
  .project-direct-composer textarea { font-size:16px; }
  .auth-dialog { width:calc(100vw - 24px); max-width:calc(100vw - 24px); max-height:calc(var(--app-height) - 24px); border-radius:11px; }
  .auth-dialog[open] { max-height:calc(var(--app-height) - 24px); }
  .auth-shell { padding:22px; gap:20px; }.auth-shell h2 { font-size:22px; }
  .auth-secondary-routes { flex-direction:column; gap:0; }
  .onboarding-steps li { flex-wrap:wrap; }.onboarding-steps :is(button,a) { min-height:44px; }
  #workspace-search-dialog { width:calc(100vw - 24px); max-height:calc(var(--app-height) - 24px); }
  #workspace-search-dialog>header { padding:8px 12px 8px 18px; }.workspace-search-field { padding:14px 18px; }
  .workspace-search-results { max-height:calc(var(--app-height) - 200px); }
  .connection-settings main,.runtime-workspace main,.connection-settings.embedded main,.runtime-workspace.embedded main { padding:20px 16px 32px; }
  .connection-settings :is(input,select,textarea),.runtime-workspace :is(input:not([type="checkbox"]),select,textarea) { min-height:44px; font-size:16px; }
  .connection-settings .row { display:block; }.connection-settings .row label { min-width:0; }
  .connection-settings .tool label { flex-wrap:wrap; }.connection-settings .tool select { width:100%; }
  .runtime-workspace .cards { grid-template-columns:minmax(0,1fr); }.runtime-workspace .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .runtime-workspace .keyvals { grid-template-columns:80px minmax(0,1fr); }
  .runtime-workspace .section-title { flex-wrap:wrap; }.runtime-workspace .search { width:100%; }.runtime-workspace .search input { width:100%; }
  body.keyboard-open #web-workspace,body[data-keyboard="open"] #web-workspace { grid-template-rows:minmax(0,1fr); }
  body.keyboard-open #web-workspace .mobile-nav,body[data-keyboard="open"] #web-workspace .mobile-nav { display:none; }
  body.keyboard-open #web-workspace #composer,body[data-keyboard="open"] #web-workspace #composer { padding-bottom:8px; }
  body.keyboard-open #web-workspace #composer textarea,body[data-keyboard="open"] #web-workspace #composer textarea { max-height:72px; }
}

@media (max-width:359px) {
  #web-workspace :is(.assistant-header,.surface-header) { padding-left:13px; }
  #web-workspace .conversation { padding-inline:14px; }
  #web-workspace :is(.composer-action,.execution-options>summary) { padding-inline:6px; }
  #web-workspace .task-toolbar { grid-template-columns:minmax(0,1fr) 110px; padding-inline:14px; }
  #web-workspace .task-filters { padding-inline:14px; }
  .task-detail-content { padding-inline:16px; }
  #host-manager .personal-settings-content { padding-inline:16px; }
  .cloud-file-search button { padding-inline:8px; }
  .cloud-file-row { gap:5px; }.cloud-file-copy strong { font-size:14px; }
  .file-preview-body { padding-inline:16px; }.auth-shell { padding:20px; }
}
@media (max-height:500px) and (min-width:760px) {
  :root { --workspace-header:50px; }
  #web-workspace .conversation { padding-block:16px 12px; }
  #web-workspace #composer { padding-block:5px 7px; }
  #web-workspace .composer-box { padding:5px 9px; }
  #web-workspace #composer textarea { max-height:72px; }
  #web-workspace .composer-hint { display:none; }
  .companion-surface .companion-stage { grid-template-columns:minmax(150px,1fr) minmax(180px,1fr); gap:12px 24px; padding:18px 30px; }
  .companion-surface .companion-portrait { grid-column:1; grid-row:1 / 3; width:100%; height:calc(var(--app-height) - 100px); min-height:100px; }
  .companion-copy,.companion-actions { grid-column:2; }
}
@media (pointer:coarse) {
  #web-workspace .message-actions button { width:auto; min-width:44px; min-height:44px; }
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,summary) { min-height:44px; }
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) { font-size:16px; }
  .cloud-file-check { width:22px; height:22px; position:relative; }
  .cloud-file-row { min-height:88px; }
}
@media (prefers-reduced-motion:reduce) {
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) *,
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) *::before,
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
@media (forced-colors:active) {
  :is(#web-workspace,dialog,.connection-settings,.runtime-workspace) :is(button,input,select,textarea) { border:1px solid ButtonText; }
  #web-workspace .rail-button.active,#web-workspace .task-summary.selected,#host-manager .personal-settings-nav button.active { outline:2px solid Highlight; outline-offset:-2px; }
}

#task-create-routine { grid-column:1 / -1; justify-self:start; min-height:44px; }

/* Focused work entries and bounded personal-memory management. */
.work-shortcuts { grid-column:1 / -1; grid-row:1; display:flex; flex-wrap:wrap; gap:8px; }
.work-shortcuts :is(a,button) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid var(--ws-line); border-radius:8px; background:var(--ws-surface); color:var(--ws-ink); font:inherit; text-decoration:none; }
.memory-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0; }
.memory-filters label { display:grid; gap:6px; flex:1 1 180px; }
.memory-filters :is(input,select) { width:100%; min-height:44px; font-size:16px; }
.memory-filters output { padding:12px 0; color:var(--ws-muted); }
.memory-provenance { color:var(--ws-muted); font-size:13px; overflow-wrap:anywhere; }
.work-calendar-dialog { width:min(860px,calc(100vw - 32px)); overflow:auto; }
.work-calendar-dialog input { min-width:0; max-width:100%; font-size:16px; }
.settings-route-card>a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
@media (hover:none) and (pointer:coarse) {
  body[data-access="app"] { position:fixed; top:var(--app-top,0px); left:0; width:100%; }
  #web-workspace #composer { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  body.keyboard-open #web-workspace #composer { padding-bottom:8px; }
}
@media (hover:none) and (pointer:coarse) and (max-height:540px) {
  #web-workspace .side-rail { overflow-y:auto; }
}

/* Application navigation 0.8.6: live business components, shared web/mobile presentation. */
#applications-surface[hidden],#applications-surface [hidden]{display:none!important}
#web-workspace>.applications-surface{grid-column:2;grid-row:1;min-width:0;min-height:0;background:var(--ws-surface);color:var(--ws-ink);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
body[data-surface="apps"] #web-workspace>:is(.assistant-main,.task-panel,.companion-surface){display:none!important}
.ax-header{display:flex;align-items:center;gap:10px;min-height:62px;padding:8px 26px;border-bottom:1px solid var(--ws-line);min-width:0}.ax-header h1{font-size:18px;line-height:1.4;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-header-actions{display:flex;gap:8px;margin-left:auto}.ax-brand{width:38px;height:38px;min-width:38px;border-radius:10px;border:0;background:var(--ws-accent-soft);color:var(--ws-accent);font-size:23px;font-weight:600}.ax-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ws-muted);cursor:pointer}.ax-icon-button svg{width:20px;height:20px}.ax-icon-button:hover{background:var(--ws-hover);color:var(--ws-ink)}.ax-button{min-height:44px;padding:8px 12px;background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:8px;color:var(--ws-ink);font:inherit;font-size:13px;cursor:pointer}.ax-button:hover{background:var(--ws-hover)}
.ax-root,.ax-app-body{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 28px 24px}.ax-root{max-width:1240px;width:100%;margin:0 auto}.ax-panes,.ax-subtabs{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--ws-line);margin:0 0 16px;overflow-x:auto}.ax-panes .ax-button,.ax-subtabs .ax-button{border:0;border-bottom:2px solid transparent;border-radius:0;min-height:49px;padding:10px 3px;background:transparent;color:var(--ws-muted);flex:none;font-size:14px}.ax-panes [aria-current="page"],.ax-subtabs [aria-current="page"]{color:var(--ws-accent);border-bottom-color:var(--ws-accent);font-weight:650}
.ax-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) minmax(90px,150px) auto;gap:10px;margin-bottom:20px;align-items:center}.ax-search,.ax-kind{min-width:0;width:100%;font:inherit;font-size:14px;height:44px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-subtle);color:var(--ws-ink);padding:8px 12px}.ax-layout{display:flex;border:1px solid var(--ws-line);border-radius:8px;padding:2px}.ax-layout .ax-icon-button{min-height:38px;min-width:38px;padding:7px}.ax-layout [aria-pressed="true"]{color:var(--ws-accent);background:var(--ws-accent-soft)}.ax-content h2{font-size:14px;font-weight:600;margin:0}.ax-common{margin:0 0 22px}.ax-common-grid{display:flex;gap:20px;margin:10px 0 0}.ax-common-item{display:flex;align-items:center;gap:9px;min-height:46px;padding:6px 10px;border-radius:8px;border:0;background:var(--ws-subtle);color:var(--ws-ink);font-size:13px;cursor:pointer}.ax-common-item svg{width:21px;height:21px;color:var(--ws-accent)}.ax-results-heading{display:flex;justify-content:space-between;align-items:center;margin:10px 0 12px}.ax-results-heading small{font-size:12px;color:var(--ws-muted)}.ax-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ax-application{display:flex;align-items:center;gap:12px;min-height:90px;padding:16px;text-align:left;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface);color:var(--ws-ink);cursor:pointer;min-width:0}.ax-application:hover{border-color:var(--ws-control);background:var(--ws-subtle)}.ax-app-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;flex:none;background:var(--ws-accent-soft);color:var(--ws-accent)}.ax-app-icon svg{width:23px;height:23px}.ax-app-icon.knowledge{background:var(--ws-selected);color:var(--ws-accent)}.ax-app-copy{min-width:0;flex:1;display:grid;gap:5px}.ax-app-copy strong{font-size:14px;font-weight:600}.ax-app-copy small{font-size:12px;line-height:1.6;color:var(--ws-muted)}.ax-arrow{flex:none;color:var(--ws-control)}.ax-arrow svg{width:16px;height:16px}
[data-layout="list"]>.ax-root .ax-catalog{display:block;border-top:1px solid var(--ws-line)}[data-layout="list"]>.ax-root .ax-application{width:100%;border:0;border-bottom:1px solid var(--ws-line);border-radius:0;min-height:74px;padding:12px 6px}.ax-market-card{padding:15px;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-surface);color:var(--ws-ink)}.ax-market-card strong{font-size:14px}.ax-market-card p{font-size:12px;color:var(--ws-muted);line-height:1.7}.ax-empty{padding:22px 0;line-height:1.8;color:var(--ws-muted);font-size:14px;display:grid;gap:12px;justify-items:start}.ax-app-body{padding-top:16px}.ax-frame-deck{min-width:0;min-height:0;overflow:hidden;grid-row:2}.ax-app-frame{width:100%;height:100%;border:0;display:block;background:var(--ws-surface)}.applications-surface[data-frame="sub"]{grid-template-rows:auto auto minmax(0,1fr)!important}.applications-surface[data-frame="sub"]>.ax-app-body{padding-bottom:0;overflow:visible}.applications-surface[data-frame="sub"]>.ax-frame-deck{grid-row:3}.ax-app-body:has(>#host-manager){overflow:auto}
/* The settings manager is a non-modal app workspace while embedded. Its original fields and handlers are retained. */
html[data-theme] #host-manager[data-application-embedded]{position:static;inset:auto;display:block;width:100%;height:auto;max-width:none;max-height:none;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:var(--ws-surface);color:var(--ws-ink);box-shadow:none}
html[data-theme] #host-manager[data-application-embedded]>.host-manager-shell{display:block;height:auto;max-height:none;min-height:0;border:0;padding:0;background:transparent}html[data-theme] #host-manager[data-application-embedded] .host-manager-shell>.file-preview-header,html[data-theme] #host-manager[data-application-embedded] .personal-settings-nav,html[data-theme] #host-manager[data-application-embedded] #settings-category-dismiss{display:none!important}
html[data-theme] #host-manager[data-application-embedded] .personal-settings-layout{display:block;min-height:0;padding:0}html[data-theme] #host-manager[data-application-embedded] .personal-settings-content{padding:0;overflow:visible;max-width:none}html[data-theme] #host-manager[data-application-embedded] .personal-settings-panel{max-width:none;padding:0}html[data-theme] #host-manager[data-application-embedded] .settings-panel-header{display:none}html[data-theme] #host-manager[data-application-embedded] :is(.settings-form-card,.model-settings-card,.group-detail-section){padding:14px;border-radius:10px;margin:0 0 14px;box-shadow:none}html[data-theme] #host-manager[data-application-embedded] :is(input,select,textarea){min-width:0;max-width:100%}html[data-theme] #host-manager[data-application-embedded] :is(.marketplace-import-drawer,.marketplace-section){margin-top:14px}html[data-theme] #host-manager[data-application-embedded] :is(.marketplace-section-heading,.model-settings-heading)>div>p{font-size:12px;line-height:1.7;margin:5px 0}html[data-theme] #host-manager[data-application-embedded] .group-management-shell{grid-template-columns:230px minmax(0,1fr)}html[data-theme] #host-manager[data-application-embedded] .group-directory{position:static}
#host-manager:not([data-application-embedded]) .personal-settings-nav [data-settings-section]:is([data-settings-section="places"],[data-settings-section="marketplace"],[data-settings-section="agents"],[data-settings-section="appearance"],[data-settings-section="storage"],[data-settings-section="data:files"],[data-settings-section="data:knowledge"],[data-settings-section^="workspace:"]){display:none!important}#host-manager:not([data-application-embedded]) [data-settings-category="groups"]{display:none}.application-settings-link{min-height:44px;margin:12px 10px;padding:8px;border:1px solid var(--ws-line);border-radius:8px;color:var(--ws-accent);background:var(--ws-surface)}
.ax-live-capabilities .ss-heading>div,.ax-live-capabilities .cu-main-tabs{display:none!important}.ax-live-capabilities .ss-heading{margin:0 0 12px;padding:0}.ax-live-capabilities .ss-toolbar{gap:8px;margin:12px 0}.ax-live-capabilities .cu-card{padding:14px;border-radius:10px;min-width:0}.ax-live-capabilities .ss-status:empty{display:none}.ax-live-capabilities .cu-grid{gap:12px}.applications-surface[data-layout="list"]>.ax-root :is(.cu-grid,.cu-list,.marketplace-card-list){display:flex;flex-direction:column}.applications-surface[data-layout="grid"]>.ax-root :is(.cu-grid,.cu-list,.marketplace-card-list){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ax-live-capabilities .cu-card h3{font-size:15px}.ax-live-capabilities .cu-card p{font-size:13px;line-height:1.75}.ax-channels{max-width:1100px}.ax-calendar-workspace{max-width:1100px}.ax-calendar-workspace #calendar-skill-dashboard{display:block;margin:0}.ax-calendar-workspace #calendar-skill-dashboard[hidden]{display:none}.ax-calendar-workspace .marketplace-inline-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) minmax(120px,1fr) auto;gap:10px;align-items:end}.ax-calendar-workspace :is(input,button){min-height:44px;min-width:0}.ax-calendar-workspace .marketplace-record{padding:12px;border-bottom:1px solid var(--ws-line)}
/* One message rhythm for both sides; technical source and task cards remain distinct within the bubble. */
#web-workspace #conversation .message{width:fit-content;max-width:min(84%,760px);padding:13px 16px;border:1px solid var(--ws-line);border-radius:14px;background:var(--ws-subtle);margin:0 0 18px;overflow-wrap:anywhere}#web-workspace #conversation .message.user{margin-left:auto;background:var(--ws-accent-soft);border-color:transparent;color:var(--ws-ink)}#web-workspace #conversation .message.assistant{margin-right:auto;background:var(--ws-subtle)}#web-workspace #conversation .message :is(p,li){line-height:1.8}#web-workspace #conversation .message .message-meta{font-size:11px;color:var(--ws-muted)}#web-workspace #conversation .message pre{max-width:100%;overflow:auto}#web-workspace #conversation .message .message-content{font-size:15px}#web-workspace #conversation .message-actions{margin-top:9px}.assistant-identity .assistant-avatar{cursor:pointer}.assistant-header .mobile-personal-entry{display:none!important}.application-call-entry svg{height:20px;width:20px}.task-filters{overflow-x:auto;flex-wrap:nowrap}.task-filters>*{flex:none}.task-filters #application-work-extra{font:inherit;background:transparent;color:var(--ws-muted);border:1px solid var(--ws-line);min-width:100px;min-height:38px;border-radius:7px}.task-panel-header>div>p{font-size:17px!important}.project-workspace-heading p{display:none}.project-workspace-heading{padding:12px 0}.project-card{padding:14px!important;margin-bottom:12px!important}
.ax-button:focus-visible,.ax-icon-button:focus-visible,.ax-application:focus-visible,.ax-common-item:focus-visible,.ax-brand:focus-visible{outline:3px solid var(--ws-accent);outline-offset:2px}
@media(max-width:1000px)and (min-width:760px){.ax-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.ax-common-grid{gap:8px}}
@media(max-width:759px){#web-workspace>.applications-surface{grid-column:1;grid-row:1;min-height:0;max-height:100%}.ax-header{min-height:56px;padding:6px 14px;gap:8px}.ax-header h1{font-size:17px}.ax-header-actions .ax-icon-button{min-width:40px}.ax-root,.ax-app-body{padding-left:16px;padding-right:16px;padding-bottom:16px}.ax-panes{gap:24px;margin-bottom:12px}.ax-panes .ax-button{min-height:45px}.ax-toolbar{grid-template-columns:minmax(80px,1fr) 100px auto;gap:7px;margin-bottom:16px}.ax-search,.ax-kind{font-size:16px;padding:8px;min-height:44px}.ax-layout .ax-icon-button{min-width:32px;width:32px;min-height:38px;padding:5px}.ax-layout svg{width:18px;height:18px}.ax-common{margin-bottom:16px}.ax-common-grid{gap:6px;justify-content:space-between}.ax-common-item{flex-direction:column;gap:6px;background:transparent;padding:7px 9px;font-size:12px;min-height:64px}.ax-common-item svg{width:25px;height:25px}.ax-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ax-application{min-height:107px;padding:12px;flex-wrap:wrap;align-content:center;gap:9px}.ax-app-icon{width:34px;height:34px;border-radius:9px}.ax-app-icon svg{width:21px;height:21px}.ax-app-copy strong{font-size:14px}.ax-app-copy small{font-size:11px;line-height:1.6}.ax-arrow{display:none}.ax-subtabs{gap:22px}.ax-subtabs .ax-button{font-size:13px;min-height:44px}.ax-app-body{padding-top:12px}.ax-results-heading{margin-top:4px}.ax-empty{font-size:13px}.applications-surface[data-layout="list"] .ax-application{min-height:68px;flex-wrap:nowrap;padding:10px 0}.applications-surface[data-layout="list"] .ax-arrow{display:inline-flex}html[data-theme] #host-manager[data-application-embedded] .group-management-shell{display:block}html[data-theme] #host-manager[data-application-embedded] .group-directory{margin:0 0 12px;padding:0;border:0}html[data-theme] #host-manager[data-application-embedded] :is(input,select,textarea),.ax-live-capabilities :is(input,select,textarea){font-size:16px!important}.ax-live-capabilities .ss-toolbar{flex-wrap:wrap}.ax-live-capabilities .ss-toolbar>*{min-width:0}.ax-live-capabilities .cu-search{width:100%;flex:1 1 100%}.applications-surface[data-layout="grid"]>.ax-root :is(.cu-grid,.cu-list,.marketplace-card-list){grid-template-columns:minmax(0,1fr)}.ax-calendar-workspace .marketplace-inline-form{grid-template-columns:minmax(0,1fr)}#web-workspace #conversation .message{max-width:89%;padding:11px 13px;margin-bottom:16px}#web-workspace #conversation .message .message-content{font-size:15px}.assistant-header #project-direct-open span{display:none}.assistant-header #project-direct-open{min-width:38px;padding:6px}.task-toolbar .work-shortcuts{display:none}.task-toolbar{gap:8px}.task-filters #application-work-extra{font-size:14px}.ax-app-frame{min-width:0}}

.applications-surface>.ax-root .ax-live-capabilities :is(.ss-tabs,.ss-toolbar>.cu-search,.ss-toolbar>button){display:none!important}.applications-surface>.ax-root .ax-live-capabilities .ss-heading{display:none}.ax-live-capabilities .cu-list{gap:10px}.ax-live-capabilities .cu-card-copy{min-width:0}.ax-live-capabilities .cu-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.applications-surface[data-layout="grid"]>.ax-root .cu-card{height:100%;align-items:flex-start;flex-wrap:wrap}.applications-surface[data-layout="grid"]>.ax-root .cu-card-copy{flex:1 1 70%}.applications-surface[data-layout="grid"]>.ax-root .cu-state{font-size:11px}
html[data-theme] #host-manager[data-application-embedded] #settings-panel-knowledge>.settings-summary-grid{margin:0;gap:10px}html[data-theme] #host-manager[data-application-embedded] .knowledge-summary-card{padding:10px;min-height:0}html[data-theme] #host-manager[data-application-embedded] .marketplace-section{padding:12px 0;min-height:0}html[data-theme] #host-manager[data-application-embedded] #knowledge-marketplace-disclosure{padding:8px 0;margin:0;min-height:0}html[data-theme] #host-manager[data-application-embedded] .marketplace-inline-form{margin-top:10px}html[data-theme] #host-manager[data-application-embedded] .marketplace-card-list{margin-top:10px}html[data-theme] #host-manager[data-application-embedded] #knowledge-marketplace-disclosure summary{min-height:36px}

.ax-date-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ax-date-toolbar input{flex:1;min-width:150px}.ax-date-toolbar :is(input,select){min-height:44px;padding:8px 12px;border-radius:8px;border:1px solid var(--ws-line);background:var(--ws-subtle);color:var(--ws-ink);font:inherit}.ax-date-status{font-size:12px;color:var(--ws-muted)}.ax-date-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ax-date-card{border:1px solid var(--ws-line);border-radius:10px;padding:14px;display:grid;gap:6px;min-width:0}.ax-date-card-heading{display:flex;justify-content:space-between;gap:10px}.ax-date-card p{margin:0;font-size:13px}.ax-date-card small{color:var(--ws-muted);font-size:12px}.ax-date-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}.ax-date-actions button{min-height:36px;padding:5px 8px;font-size:12px}.ax-date-dialog{background:var(--ws-surface);color:var(--ws-ink);width:min(520px,calc(100vw - 24px));border:1px solid var(--ws-line);border-radius:14px;padding:20px;max-height:calc(100dvh - 32px);overflow:auto}.ax-date-dialog::backdrop{background:#10182780}.ax-date-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ax-date-form h2,.ax-date-form output,.ax-date-form p{grid-column:1/-1}.ax-date-form h2{font-size:18px;margin:0}.ax-date-form label{display:grid;gap:5px;font-size:12px}.ax-date-form :is(input,select){font:inherit;min-height:44px;min-width:0;padding:8px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-surface);color:var(--ws-ink)}.ax-date-form output{font-size:12px;color:var(--ws-accent)}.ax-primary{background:var(--ws-accent)!important;color:var(--ws-surface)!important}@media(max-width:759px){.ax-date-list{grid-template-columns:minmax(0,1fr)}.ax-date-form input,.ax-date-form select,.ax-date-toolbar input,.ax-date-toolbar select{font-size:16px}}

.applications-surface[data-layout="list"]>.ax-root .ax-market-card{border-radius:0;border-width:0 0 1px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 18px;padding:14px 4px}.applications-surface[data-layout="list"]>.ax-root .ax-market-card p{grid-column:1;margin:0}.applications-surface[data-layout="list"]>.ax-root .ax-market-card button{grid-column:2;grid-row:1/span 2;align-self:center}
@media(max-width:759px){.applications-surface[data-layout="grid"]>.ax-root :is(.cu-list,.marketplace-card-list){grid-template-columns:repeat(2,minmax(0,1fr))}.applications-surface[data-layout="grid"]>.ax-root .cu-card{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid var(--ws-line);height:100%;min-height:145px}.applications-surface[data-layout="grid"]>.ax-root .cu-card-copy{flex:auto}.applications-surface[data-layout="grid"]>.ax-root .cu-card-copy strong{font-size:13px}.applications-surface[data-layout="grid"]>.ax-root .cu-description{font-size:11px;line-height:1.6;white-space:normal}.applications-surface[data-layout="grid"]>.ax-root .cu-icon{width:30px;height:30px;flex:0 0 30px;font-size:20px;border-radius:8px}.applications-surface[data-layout="grid"]>.ax-root .cu-source{font-size:10px}.applications-surface[data-layout="list"]>.ax-root .ax-market-card{grid-template-columns:1fr}.applications-surface[data-layout="list"]>.ax-root .ax-market-card button{grid-column:1;grid-row:auto;justify-self:start}}

#web-workspace #conversation .message{font-size:15px}#web-workspace #conversation .message-actions{gap:8px;flex-wrap:wrap;margin:8px 0 0;min-height:32px}#web-workspace #conversation .message-actions>button{min-height:32px;padding:4px 2px;font-size:12px}#web-workspace #conversation .message-more{font-size:12px;min-height:32px;margin:0;color:var(--ws-muted)}#web-workspace #conversation .message-more>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;list-style:none;padding:4px 2px}#web-workspace #conversation .message-more>summary::after{content:'⌄';margin-left:4px}.message-more-actions{display:flex;flex-wrap:wrap;gap:5px;border-top:1px solid var(--ws-line);padding-top:6px}.message-more[open]{flex-basis:100%}#web-workspace #conversation .message-more-actions button{min-height:36px;padding:6px;font-size:12px}#web-workspace #conversation .message-meta{margin-top:5px;font-size:11px;gap:6px}#web-workspace #conversation .message-meta :is(small,time,span){font-size:11px}.message-day{align-self:center;font-size:11px;color:var(--ws-muted);margin:4px 0;line-height:1.5}#web-workspace .conversation{gap:14px}@media(max-width:759px){#web-workspace #conversation .message{max-width:89%;padding:11px 13px}#web-workspace #conversation .message-actions>button,#web-workspace #conversation .message-more>summary{min-height:40px}}

#host-manager:not([data-application-embedded]) #scheduled-task-manager,#host-manager:not([data-application-embedded]) section[aria-label="通讯渠道"]{display:none!important}.ax-calendar-workspace>#scheduled-task-manager{padding:0;margin:0;border:0;background:transparent}.ax-calendar-workspace>#scheduled-task-manager .settings-form-card{padding:12px;background:var(--ws-subtle);color:var(--ws-ink);border:1px solid var(--ws-line);border-radius:10px}.ax-calendar-workspace .foundation-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ax-calendar-workspace .settings-subsection{margin:10px 0}.ax-calendar-workspace .settings-subsection>summary{min-height:44px;cursor:pointer;color:var(--ws-accent)}.ax-calendar-workspace #scheduled-task-manager :is(input,select,textarea){color:var(--ws-ink);background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:7px;padding:8px;font:inherit;max-width:100%}.ax-calendar-workspace #scheduled-task-manager label{display:grid;gap:5px;font-size:13px}.ax-calendar-workspace #scheduled-task-manager fieldset{border:1px solid var(--ws-line);border-radius:8px}.ax-calendar-workspace #scheduled-task-list{margin-bottom:12px}@media(max-width:759px){.ax-calendar-workspace .foundation-form-grid{grid-template-columns:1fr}.ax-calendar-workspace #scheduled-task-manager :is(input,select,textarea){font-size:16px}}

.ax-calendar-workspace #scheduled-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ax-calendar-workspace #scheduled-task-list>.marketplace-record{border:1px solid var(--ws-line);border-radius:10px;padding:14px;min-width:0;margin:0;display:block}.ax-calendar-workspace #scheduled-task-list>.marketplace-record>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;margin:7px 0}.ax-calendar-workspace #scheduled-task-list>.marketplace-record>small{display:block;font-size:12px;line-height:1.7;color:var(--ws-muted)}.application-schedule-more{margin:8px 0 0}.application-schedule-more>summary{min-height:36px;display:flex;align-items:center;color:var(--ws-accent);font-size:12px;cursor:pointer}.application-schedule-more :is(small,p){font-size:12px;line-height:1.7}.application-schedule-more .foundation-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#host-manager:not([data-application-embedded]) .personal-settings-panel{gap:14px}#host-manager:not([data-application-embedded]) :is(.settings-form-card,.model-settings-card,.marketplace-section,.group-detail-section,.account-operation-card){padding:14px 0;gap:10px}#host-manager:not([data-application-embedded]) .settings-panel-header>span{display:none}#host-manager:not([data-application-embedded]) .settings-panel-header h2{font-size:20px}#host-manager .workspace-appearance .settings-row-heading{display:flex;flex-wrap:nowrap;align-items:center}#host-manager .workspace-appearance select{width:auto;min-width:132px;max-width:180px}#host-manager:not([data-application-embedded]) :is(.settings-form-card,.model-settings-card)>p{margin:5px 0;font-size:13px}@media(max-width:759px){.ax-calendar-workspace #scheduled-task-list{grid-template-columns:1fr}#host-manager:not([data-application-embedded]) .personal-settings-content{padding-top:16px}}

@media(min-width:760px) and (max-width:1000px){.ax-calendar-workspace .marketplace-inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A shared footer keeps message context and icon actions below the content. */
.message-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:4px 8px; margin-top:8px; }
.message-delivery { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:8px; color:var(--ws-muted); font-size:12px; }
#web-workspace #conversation .message-footer .message-meta { margin:0; gap:5px; min-height:28px; min-width:0; flex-wrap:nowrap; }
#web-workspace #conversation .message-footer time { white-space:nowrap; font-variant-numeric:tabular-nums; }
#web-workspace #conversation .message-footer .message-actions { display:flex; flex-wrap:nowrap; gap:2px; margin:0 0 0 auto; min-height:32px; }
#web-workspace #conversation .message-footer .message-action-icon {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px;
  width:28px; min-width:28px; height:32px; min-height:32px; padding:5px;
  border:0; border-radius:7px; background:transparent; color:var(--ws-muted); cursor:pointer;
}
#web-workspace #conversation .message-action-icon svg { width:14px; height:14px; pointer-events:none; }
#web-workspace #conversation .message-action-icon :is(.message-action-confirm,.message-action-error) { display:none; }
#web-workspace #conversation .message-action-icon[data-feedback] .message-action-glyph { display:none; }
#web-workspace #conversation .message-action-icon[data-feedback="success"] .message-action-confirm { display:block; color:var(--ws-positive); }
#web-workspace #conversation .message-action-icon[data-feedback="error"] .message-action-error { display:block; color:var(--ws-danger); }
#web-workspace #conversation .message-action-icon:focus-visible { outline:2px solid var(--ws-accent); outline-offset:1px; }
@media(max-width:759px) {
  #web-workspace #conversation .message { max-width:calc(100% - 8px); }
  #web-workspace #conversation .message-footer { gap:4px; }
  #web-workspace #conversation .message-footer :is(.message-source,.message-unread) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  #web-workspace #conversation .message-footer .message-action-icon { flex-basis:26px; width:26px; height:32px; min-width:26px; min-height:32px; padding:5px; }
  #web-workspace #conversation .message-footer .message-actions { gap:0; flex-shrink:0; }
  #web-workspace #conversation .message-footer .message-channel { flex:0 0 18px; width:18px; height:18px; min-width:18px; padding:2px; }
}
@media(max-width:359px) {
  #web-workspace #conversation .message-footer .message-action-icon { flex-basis:24px; width:24px; min-width:24px; padding:3px; }
  #web-workspace #conversation .message-footer time { font-size:10px; }
}

/* Compact settings, separate from the business pages reusing this host. */
html[data-theme] #host-manager:not([data-application-embedded]) {
  width:min(980px,calc(100vw - 40px));
  height:min(640px,calc(var(--app-height) - 48px));
  max-height:calc(var(--app-height) - 48px);
}
#host-manager:not([data-application-embedded]) > .host-manager-shell > .file-preview-header {
  min-height:56px; padding:6px 16px;
}
#host-manager:not([data-application-embedded]) .settings-current-location { display:none; }
#host-manager:not([data-application-embedded]) .personal-settings-layout { grid-template-columns:176px minmax(0,1fr); }
#host-manager:not([data-application-embedded]) .personal-settings-nav {
  display:flex; flex-direction:column; gap:12px; padding:14px 10px; overflow:auto;
}
#host-manager:not([data-application-embedded]) .settings-nav-primary { display:grid; gap:2px; }
#host-manager .settings-nav-label { padding:4px 12px 0; color:var(--ws-muted); font-size:12px; }
html:not([data-server-maintenance="true"]) [data-message-action="info"] { display:none!important; }
#host-manager:not([data-application-embedded]) .personal-settings-nav button {
  width:100%; min-height:40px; padding:9px 12px; text-align:left; line-height:1.5;
}
#host-manager:not([data-application-embedded]) .settings-nav-footer {
  display:grid; gap:2px; padding:10px 0 0; margin:0; border-top:1px solid var(--ws-line);
}
#host-manager:not([data-application-embedded]) .settings-advanced { margin:0; }
#host-manager:not([data-application-embedded]) .settings-advanced > summary {
  display:flex; align-items:center; justify-content:space-between; min-height:40px;
  padding:9px 12px; list-style:none; color:var(--ws-muted); cursor:pointer; font-size:13px;
}
#host-manager:not([data-application-embedded]) .settings-advanced > summary::after { content:'⌄'; }
#host-manager:not([data-application-embedded]) .settings-advanced[open] > summary { margin:0; }
#host-manager:not([data-application-embedded]) .settings-advanced[open] > summary::after { content:'⌃'; }
#host-manager:not([data-application-embedded]) .application-settings-link {
  margin:auto 0 0; color:var(--ws-accent); flex-shrink:0;
}
#host-manager:not([data-application-embedded]) .personal-settings-content { padding:20px 26px 28px; }
#host-manager:not([data-application-embedded]) .personal-settings-panel { max-width:700px; gap:10px; }
#host-manager:not([data-application-embedded]) .settings-panel-header { gap:4px; padding-bottom:8px; }
#host-manager:not([data-application-embedded]) .settings-panel-header p { font-size:13px; line-height:1.6; }
#host-manager:not([data-application-embedded]) :is(.settings-form-card,.model-settings-card,.account-settings-card,.account-operation-card,.settings-route-card) {
  padding:14px 0; gap:10px;
}
#host-manager:not([data-application-embedded]) :is(button,.secondary-action,input:not([type=checkbox]):not([type=radio]),select) {
  min-height:38px; padding:8px 10px; font-size:13px;
}
#host-manager:not([data-application-embedded]) .settings-row-heading { gap:12px; }
#host-manager:not([data-application-embedded]) .settings-help > summary { min-height:32px; padding:4px 0; font-size:12px; color:var(--ws-muted); }
#host-manager:not([data-application-embedded]) .settings-help p { margin:4px 0; font-size:12px; }
#host-manager:not([data-application-embedded]) .settings-autoplay-switch { padding:4px 0; }
#host-manager:not([data-application-embedded]) details.settings-form-card:not([open]) { padding-block:5px; }
#host-manager:not([data-application-embedded]) .foundation-quiet-toggle { display:flex; align-items:center; gap:8px; font-size:12px; }
#host-manager:not([data-application-embedded]) .foundation-quiet-toggle input[type="checkbox"] { width:16px; height:16px; min-height:16px; padding:0; margin:0; flex:0 0 16px; }
#host-manager:not([data-application-embedded]) #assistant-profile-settings {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;
}
#host-manager:not([data-application-embedded]) #assistant-profile-settings > :not(label:nth-child(-n+3)) { grid-column:1/-1; }
#host-manager:not([data-application-embedded]) #assistant-instructions { min-height:160px; }
#host-manager:not([data-application-embedded]) :is(p,output):empty { display:none; }
@media(max-width:759px) {
  html[data-theme] #host-manager:not([data-application-embedded]) {
    inset:var(--app-top,0px) 0 auto; margin:0; width:100vw; max-width:100vw;
    height:var(--app-height); max-height:var(--app-height); border:0; border-radius:0;
  }
  #host-manager:not([data-application-embedded]) .personal-settings-layout { position:relative; grid-template-columns:minmax(0,1fr); }
  #host-manager:not([data-application-embedded]) > .host-manager-shell > .file-preview-header { gap:10px; padding:6px 14px; }
  #host-manager:not([data-application-embedded]) .file-preview-header > div { order:0; flex:1; }
  #host-manager:not([data-application-embedded]) #settings-category-toggle {
    order:1; display:block; width:auto; min-height:44px; padding:8px 10px; font-size:13px;
  }
  #host-manager:not([data-application-embedded]) #host-manager-close { order:2; min-width:44px; min-height:44px; }
  #host-manager:not([data-application-embedded]) .personal-settings-nav { display:none; }
  #host-manager:not([data-application-embedded])[data-navigation="open"] .personal-settings-nav {
    display:flex; position:absolute; inset:6px 12px auto auto; width:min(270px,calc(100% - 24px));
    max-height:calc(100% - 18px); z-index:3; gap:6px; padding:8px;
    border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-surface); box-shadow:var(--ws-shadow);
  }
  #host-manager:not([data-application-embedded])[data-navigation="open"] #settings-category-dismiss {
    display:block; position:absolute; inset:0; z-index:2; width:100%; height:100%; padding:0;
    border:0; border-radius:0; background:#10182745;
  }
  #host-manager:not([data-application-embedded]) .personal-settings-nav :is(button,.settings-advanced > summary) { min-height:44px; }
  #host-manager:not([data-application-embedded]) .application-settings-link { margin:0; }
  #host-manager:not([data-application-embedded]) .personal-settings-content { padding:16px 18px max(24px,env(safe-area-inset-bottom)); }
  #host-manager:not([data-application-embedded]) :is(button,.secondary-action,input:not([type=checkbox]):not([type=radio]),select) { min-height:44px; }
  #host-manager:not([data-application-embedded]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
  #host-manager:not([data-application-embedded]) #assistant-profile-settings { grid-template-columns:1fr; }
}

/* Work is a compact record of requests, execution and results. */
#web-workspace .task-controls{display:grid;grid-template-columns:minmax(180px,1fr) 112px 112px 132px auto;align-items:center;gap:10px;padding:18px 24px;position:relative;z-index:4}
#web-workspace .task-controls .task-toolbar,#web-workspace .task-controls .task-filters{display:contents}
#web-workspace .work-search{display:flex;align-items:center;gap:8px;min-width:0;min-height:42px;max-width:600px;padding:0 12px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-subtle);order:0}
#web-workspace .work-search svg{width:17px;height:17px;flex-shrink:0;color:var(--ws-muted)}
#web-workspace .work-search #task-search{min-width:0;width:100%;height:40px;min-height:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:var(--ws-ink);font-size:13px}
#web-workspace .work-search:focus-within{border-color:var(--ws-accent);box-shadow:0 0 0 2px var(--ws-accent-soft)}
#web-workspace .task-controls select{min-width:0;width:100%;height:42px;min-height:42px;padding:0 10px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);color:var(--ws-text-soft);font-size:12px}
#work-kind-filter{order:1}#application-work-extra{order:2}#task-sort{order:3}
.work-create-menu{order:4;position:relative;justify-self:end}
.work-create-menu>summary{min-height:42px;display:flex;align-items:center;padding:0 16px;list-style:none;white-space:nowrap;border:0;border-radius:9px;background:var(--ws-accent);color:var(--ws-on-accent);font-size:13px;cursor:pointer}
.work-create-menu>summary::-webkit-details-marker,.work-action-menu>summary::-webkit-details-marker{display:none}
.work-create-options,.work-action-options{position:absolute;right:0;top:calc(100% + 6px);min-width:170px;max-width:min(320px,85vw);display:grid;padding:5px;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-surface);box-shadow:var(--ws-shadow);z-index:30}
:is(.work-create-options,.work-action-options)>button{display:block;min-height:40px;width:100%;padding:8px 12px;text-align:left;border:0;border-radius:6px;background:transparent;color:var(--ws-text-soft);font-size:13px;white-space:nowrap}
:is(.work-create-options,.work-action-options)>button:hover{background:var(--ws-hover)}
.work-action-options>button.danger-secondary-action{color:var(--ws-danger)}
.work-create-menu:not([open])>.work-create-options,.work-action-menu:not([open])>.work-action-options{display:none}
#web-workspace .tasks{padding:0 10px 16px;scroll-padding:8px}
#web-workspace .task-summary{min-height:92px;padding:12px 10px;gap:6px;border-radius:7px;border-bottom:1px solid var(--ws-line);margin:4px 0}
#web-workspace .task-summary:focus{outline:none}
#web-workspace .task-summary:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-3px}
#web-workspace .task-summary.selected{background:var(--ws-accent-soft);box-shadow:inset 2px 0 var(--ws-accent)}
#web-workspace .task-summary-heading{justify-content:flex-start;gap:6px;min-width:0;flex-wrap:wrap}
#web-workspace .task-summary-heading time{margin-left:auto;font-size:10px;white-space:nowrap;color:var(--ws-muted)}
.work-executor{font-size:10px;color:var(--ws-muted);white-space:nowrap}
#web-workspace .task-summary-title{font-size:14px;line-height:1.6;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#web-workspace .task-summary-copy{font-size:12px;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#web-workspace .task-summary-meta{font-size:10px;line-height:1.5;gap:8px}
#web-workspace .task-summary .next-execution-marker{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#web-workspace .task-detail-content{padding:24px 30px}
#web-workspace .task-detail-heading{align-items:flex-start;gap:12px;padding-bottom:20px}
#web-workspace .task-detail-heading>div:first-child{min-width:0;flex:1}
#web-workspace .task-detail-heading h3{font-size:20px;line-height:1.5;margin-top:8px}
#web-workspace .task-detail-heading p{font-size:13px;line-height:1.6;margin-bottom:0}
#web-workspace .task-detail-section{padding:18px 0}
#web-workspace .task-facts{padding:18px 0;font-size:12px;gap:10px 18px}
#web-workspace .task-organize-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#web-workspace .task-organize-actions>button,.work-action-menu>summary{display:flex;align-items:center;min-height:36px;padding:6px 11px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-surface);color:var(--ws-text-soft);font-size:12px;white-space:nowrap;cursor:pointer;list-style:none}
.work-action-menu{position:relative}
.work-entry-dialog{width:min(740px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:20px;border:1px solid var(--ws-line);border-radius:16px;background:var(--ws-surface);color:var(--ws-ink);box-shadow:var(--ws-shadow)}
.work-entry-dialog::backdrop{background:var(--ws-scrim);backdrop-filter:blur(3px)}
.work-entry-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.work-entry-dialog h2{margin:0;font-size:19px}.work-dialog-close{min-height:40px;padding:6px 12px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-surface);color:var(--ws-muted);font-size:13px}
.work-create-form{display:grid;gap:16px}.work-create-form label{display:grid;gap:8px;font-size:13px}.work-create-form :is(input,textarea,select){width:100%;min-height:42px;padding:10px;border:1px solid var(--ws-line);border-radius:8px;color:var(--ws-ink);background:var(--ws-subtle);font-size:14px}.work-create-form .task-primary-action{justify-self:end;min-height:42px;padding:8px 20px;border:0;border-radius:8px;background:var(--ws-accent);color:var(--ws-on-accent)}
.work-create-form output{font-size:13px;color:var(--ws-danger)}
.work-schedule-dialog #scheduled-task-manager{padding:0;border:0;margin:0}.work-schedule-dialog #scheduled-task-manager>:is(.marketplace-section-heading,#scheduled-task-list){display:none}.work-schedule-dialog .settings-form-card{padding:12px 0;background:transparent;border:0}.work-schedule-dialog :is(input,select,textarea){color:var(--ws-ink);background:var(--ws-subtle);border-color:var(--ws-line)}
.work-process{padding:16px 0;border-top:1px solid var(--ws-line);font-size:12px;color:var(--ws-muted)}.work-process summary{min-height:40px;cursor:pointer}.work-process p{line-height:1.8}
body[data-work-tab=projects] #web-workspace .task-controls{display:none}
@media(max-width:979px){#web-workspace .task-controls{grid-template-columns:minmax(130px,1fr) 104px 104px auto;gap:8px;padding:14px 16px}#web-workspace .task-controls #task-sort{display:none}}
@media(max-width:759px){
 #web-workspace .task-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 16px}
 #web-workspace .work-search{grid-column:1/3;min-height:44px;max-width:none}#web-workspace .work-search #task-search{height:42px;font-size:16px}
 .work-create-menu{order:1;grid-column:3;justify-self:stretch}.work-create-menu>summary{min-height:44px;justify-content:center;padding-inline:9px;font-size:14px}
 #work-kind-filter{order:2}#application-work-extra{order:3}#web-workspace .task-controls #task-sort{display:block;order:4}
 #web-workspace .task-controls select{min-height:44px;height:44px;padding:0 8px;font-size:12px}
 #web-workspace .task-detail-content{padding:12px 20px 24px}#web-workspace .task-detail-heading{flex-direction:column;gap:12px;padding-bottom:18px}#web-workspace .task-detail-heading h3{font-size:19px}
 #web-workspace .task-organize-actions>button,.work-action-menu>summary{min-height:44px;font-size:13px}
 .work-entry-dialog{padding:18px;max-height:92dvh}.work-create-form :is(input,textarea,select){font-size:16px}.work-dialog-close{min-height:44px}
 body[data-task-detail=open] #web-workspace .task-panel>.task-controls{display:none}
}
body[data-surface=tasks]:not([data-work-tab=projects]) #web-workspace .task-panel{grid-template-rows:auto auto minmax(0,1fr) auto}
#web-workspace .task-detail-heading h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#web-workspace .task-panel-header .panel-close{display:none}
@media(max-width:759px){body[data-surface=tasks][data-task-detail=open] #web-workspace .task-panel{grid-template-rows:minmax(0,1fr)}}

/* Message execution uses one fixed glyph; animation never changes layout. */
.conversation-execution{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--ws-muted);font-size:11px;line-height:18px;white-space:nowrap}
.conversation-execution[hidden]{display:none!important}
.conversation-execution>i{box-sizing:border-box;display:inline-block;flex:none;width:12px;height:12px;border:1.5px solid currentColor;border-radius:50%;position:relative;font-style:normal}
.conversation-execution[data-state=running]>i{border-right-color:transparent;animation:conversation-executing 1s linear infinite;color:var(--ws-accent)}
.conversation-execution[data-state=waiting]>i:after{content:'Ⅱ';position:absolute;inset:-4px 0 0;text-align:center;font-size:9px}
.conversation-execution:is([data-state=failed],[data-state=unknown])>i:after{content:'!';position:absolute;inset:-4px 0 0;text-align:center;font-size:9px}
@keyframes conversation-executing{to{transform:rotate(360deg)}}
@media(max-width:759px){.conversation-execution-label{display:none}}
@media(prefers-reduced-motion:reduce){.conversation-execution[data-state=running]>i{animation:none;border-right-color:currentColor}}

/* 0.8.9: listing retained applications and closing a window are distinct actions. */
.ax-catalog-back{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-subtle);font-size:14px;font-weight:600;white-space:nowrap}.ax-catalog-back::before{content:'‹';font-size:23px;line-height:1}.ax-header-actions>.ws-close-page{white-space:nowrap}.ax-header h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:480px){.ax-catalog-back{padding:6px 8px;font-size:13px}.ax-header{gap:7px}.ax-header-actions{gap:4px}.ax-header-actions>.ws-close-page{font-size:12px;padding:6px}.ax-header-actions>.ax-icon-button{min-width:36px;width:36px}.ax-header h1{font-size:16px}}

/* Web display controls preserve the mounted application and its media. */
.ws-sidebar-heading{display:flex;align-items:center;gap:4px;min-width:0;margin-bottom:22px}
#web-workspace .ws-sidebar-heading .workspace-brand{flex:1;min-width:0;margin:0;padding-left:9px;padding-right:0}
#web-workspace .ws-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ws-muted);cursor:pointer}
.ws-sidebar-toggle::before{content:'‹';font-size:28px;line-height:1}
.ws-sidebar-toggle[data-collapsed=true]::before{content:'›'}
#web-workspace .ws-sidebar-toggle:hover{background:var(--ws-hover);color:var(--ws-ink)}
.ws-app-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;white-space:nowrap}
.ws-app-fullscreen::before{content:none}
.ws-app-fullscreen[aria-pressed=true]{color:var(--ws-accent);background:var(--ws-accent-soft)}
.ws-app-fullscreen[hidden]{display:none!important}
@media(min-width:760px) and (min-height:541px),(min-width:760px) and (pointer:fine){
  html[data-sidebar-collapsed=true]{--workspace-nav:64px}
  html[data-sidebar-collapsed=true] #web-workspace .side-rail{padding-left:8px;padding-right:8px;overflow-x:hidden}
  html[data-sidebar-collapsed=true] #web-workspace .ws-sidebar-heading{justify-content:center}
  html[data-sidebar-collapsed=true] #web-workspace .ws-sidebar-heading .workspace-brand,
  html[data-sidebar-collapsed=true] #web-workspace .workspace-search :is(span,kbd),
  html[data-sidebar-collapsed=true] #web-workspace .rail-button>span:not(.personal-entry-avatar),
  html[data-sidebar-collapsed=true] #web-workspace .rail-button>b,
  html[data-sidebar-collapsed=true] #web-workspace :is(.workspace-recent,.workspace-version),
  html[data-sidebar-collapsed=true] #web-workspace .workspace-sidebar-footer .rail-status{display:none}
  html[data-sidebar-collapsed=true] #web-workspace :is(.workspace-search,.rail-button){justify-content:center;padding-left:0;padding-right:0}
  html[data-sidebar-collapsed=true] #web-workspace .workspace-search{border-color:transparent;background:transparent}
}
html[data-application-expanded=true] body[data-access=app][data-surface=apps] #web-workspace.has-global-system-bar{
  --workspace-nav:0px;--workspace-bottom:0px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:0;
}
html[data-application-expanded=true] body[data-access=app][data-surface=apps] #web-workspace>:is(.side-rail,.ws-system-bar,.mobile-nav){display:none!important}
html[data-application-expanded=true] body[data-access=app][data-surface=apps] #web-workspace #applications-surface{
  grid-column:1;grid-row:1;width:100%;height:100%;max-height:100%;padding-bottom:0;
}
@media(max-width:480px){.ax-header-actions>.ws-app-fullscreen{padding:6px;font-size:12px;gap:3px}.ws-app-fullscreen::before{font-size:17px}}

/* Extra per-application actions wrap instead of clipping the title or exit. */
@media(max-width:759px){.ax-header{height:auto;flex-wrap:wrap}.ax-header-actions{max-width:100%;flex-wrap:wrap;justify-content:flex-end}}

/* Native fullscreen keeps the application and its media mounted; iOS owns the exit control. */
html.native-global-shell[data-application-expanded=true] #applications-surface>.ax-header{display:none!important}

/* VI right-slit-warm-family-vi 1.0.1. Selectable, presentation only. */



/* Quiet Conversation r2 · typographic, restrained, using the approved VI roles. */
.interface-debug-setting{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;cursor:pointer;font-size:13px}
.interface-debug-setting input{width:20px;height:20px;accent-color:var(--ws-accent)}
.interface-debug-setting small{flex-basis:100%;color:var(--ws-muted);line-height:1.6}
html[data-visual-theme="warm"] #web-workspace{--workspace-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--workspace-header:76px;--tap:48px;font-synthesis:none;font-kerning:normal;text-rendering:optimizeLegibility}
body[data-access="app"]{background:var(--ws-surface)}
html[data-visual-theme="warm"] #web-workspace :is(.assistant-main,.assistant-header,.conversation,#composer){background:var(--ws-surface)}
/* One quiet heading. The existing native call controller keeps every action. */
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace.has-global-system-bar{--system-bar-height:0px;position:relative}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace>.ws-system-bar{position:absolute;inset:0 0 auto;grid-row:1 / span 2;height:76px;padding:0;border:0;background:transparent;pointer-events:none}
html[data-visual-theme="warm"] body[data-surface="conversation"] .ws-system-bar>:is(.ws-system-apps,.ws-application-header,.ws-system-separator){display:none}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-system-button{position:absolute;right:128px;top:14px;width:48px;height:48px;min-height:48px;padding:14px;pointer-events:auto;color:var(--vi-muted);border-radius:14px}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-call-cluster{position:absolute;right:24px;top:14px;margin:0;pointer-events:auto}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-call-cluster[data-state="idle"]{--ws-call-dock-width:48px;--ws-call-side:12px;height:48px;background:transparent;border:0}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-call-cluster[data-state="idle"]>.ws-call-entry{height:48px;min-height:48px;color:var(--vi-muted)}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .assistant-header{position:relative;min-height:76px;padding:14px 188px 14px 36px;border-bottom:1px solid color-mix(in srgb,var(--vi-border) 46%,transparent);gap:16px}
html[data-visual-theme="warm"] #web-workspace .assistant-identity{gap:12px}
html[data-visual-theme="warm"] #web-workspace .assistant-identity::before{content:'';flex:0 0 36px;width:36px;height:36px;background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgcm9sZT0iaW1nIj48dGl0bGU+VkkgdjEuMCDCtyDlj7Pkvqfnu4bnvJ3moIfor4Y8L3RpdGxlPjxwYXRoIGZpbGw9IiNGMDc4NDgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwNy45NSAxMjQgQTEgMSAwIDAgMCAyMDguNjYgMTIzLjcgQTU0IDU0IDAgMCAwIDIyNCA4NiBBNTQgNTQgMCAwIDAgMTcwIDMyIEE1NCA1NCAwIDAgMCAxMjggNTIuMDYgQTU0IDU0IDAgMCAwIDg2IDMyIEE1NCA1NCAwIDAgMCAzMiA4NiBBNTQgNTQgMCAwIDAgNTIuMDYgMTI4IEE1NCA1NCAwIDAgMCAzMiAxNzAgQTU0IDU0IDAgMCAwIDg2IDIyNCBBNTQgNTQgMCAwIDAgMTI4IDIwMy45NCBBNTQgNTQgMCAwIDAgMTcwIDIyNCBBNTQgNTQgMCAwIDAgMjI0IDE3MCBBNTQgNTQgMCAwIDAgMjA4LjY2IDEzMi4zIEExIDEgMCAwIDAgMjA3Ljk1IDEzMiBMMTc1LjQzIDEzMiBBMSAxIDAgMCAwIDE3NC43MiAxMzMuNzEgTDE5MC41MSAxNDkuNDkgQTI5IDI5IDAgMCAxIDE5MC41MSAxOTAuNTEgQTI5IDI5IDAgMCAxIDE0OS40OSAxOTAuNTEgTDEyOCAxNjkuMDEgTDEwNi41MSAxOTAuNTEgQTI5IDI5IDAgMCAxIDY1LjQ5IDE5MC41MSBBMjkgMjkgMCAwIDEgNjUuNDkgMTQ5LjQ5IEw4Ni45OSAxMjggTDY1LjQ5IDEwNi41MSBBMjkgMjkgMCAwIDEgNjUuNDkgNjUuNDkgQTI5IDI5IDAgMCAxIDEwNi41MSA2NS40OSBMMTI4IDg2Ljk5IEwxNDkuNDkgNjUuNDkgQTI5IDI5IDAgMCAxIDE5MC41MSA2NS40OSBBMjkgMjkgMCAwIDEgMTkwLjUxIDEwNi41MSBMMTc0LjcyIDEyMi4yOSBBMSAxIDAgMCAwIDE3NS40MyAxMjQgWiIvPjwvc3ZnPg==') center/contain no-repeat}
html[data-visual-theme="warm"] #web-workspace .assistant-identity .assistant-avatar:not(:has(img)){display:none!important}
html[data-visual-theme="warm"] #web-workspace .assistant-identity:has(.assistant-avatar img)::before{display:none}
html[data-visual-theme="warm"] #web-workspace .assistant-identity h1{font-family:var(--workspace-font);font-size:19px;line-height:28px;font-weight:500;letter-spacing:-.03em}
html[data-visual-theme="warm"] #web-workspace .assistant-identity p{display:none}
html[data-visual-theme="warm"] #web-workspace .identity-line .online-dot{width:5px;height:5px;margin-left:2px;background:var(--vi-support)}
html[data-visual-theme="warm"] #web-workspace .assistant-header .header-actions{position:absolute;right:76px;top:14px}
html[data-visual-theme="warm"] #web-workspace .assistant-header button{width:48px;min-width:48px;height:48px;min-height:48px;color:var(--vi-muted);border-radius:14px}
html[data-visual-theme="warm"] #web-workspace .assistant-header svg{width:19px;height:19px;stroke-width:1.6}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace:has(.ws-call-cluster:not([data-state="idle"])){--system-bar-height:48px}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace>.ws-system-bar:has(.ws-call-cluster:not([data-state="idle"])){position:static;grid-row:1;height:48px;pointer-events:auto;background:var(--ws-surface)}
html[data-visual-theme="warm"] body[data-surface="conversation"] .ws-system-bar:has(.ws-call-cluster:not([data-state="idle"]))>.ws-system-button{top:0!important;left:16px;right:auto!important}
html[data-visual-theme="warm"] body[data-surface="conversation"] .ws-system-bar:has(.ws-call-cluster:not([data-state="idle"]))>.ws-call-cluster{position:relative!important;top:auto!important;right:auto!important;margin-left:auto!important}
/* Reading rhythm: a generous column, finer weight, consistent optical spacing. */
html[data-visual-theme="warm"] #web-workspace #conversation{padding:32px max(32px,calc((100% - 800px)/2)) 44px;gap:30px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--vi-border) 80%,transparent) transparent}
html[data-visual-theme="warm"] #web-workspace #conversation .message{width:fit-content;max-width:min(680px,calc(100% - 32px));margin:0;padding:18px 22px;border:1px solid color-mix(in srgb,var(--vi-border) 38%,transparent);border-radius:20px;color:var(--vi-ink);background:var(--vi-surface);font-family:var(--workspace-font);font-size:16.5px;line-height:1.76;font-weight:400;letter-spacing:.008em;box-shadow:0 2px 3px rgb(48 51 47 / 1.5%);outline-offset:5px}
html[data-visual-theme="warm"] #web-workspace #conversation .message.user{max-width:min(500px,88%);margin-left:auto;background:var(--vi-brand-soft);border-color:color-mix(in srgb,var(--vi-action) 7%,var(--vi-brand-soft));box-shadow:none}
html[data-visual-theme="warm"] #web-workspace #conversation .message.assistant{margin-right:auto}
html[data-visual-theme="warm"] #web-workspace #conversation .message :is(p,li),html[data-visual-theme="warm"] #conversation .markdown-body{line-height:1.76}
html[data-visual-theme="warm"] #conversation .markdown-body p{margin:0 0 13px}
html[data-visual-theme="warm"] #conversation .markdown-body>:last-child{margin-bottom:0}
html[data-visual-theme="warm"] #conversation .markdown-body :is(h1,h2,h3,h4){margin:24px 0 9px;font-size:18px;line-height:1.55;font-weight:500;letter-spacing:-.015em}
html[data-visual-theme="warm"] #conversation .markdown-body>:first-child{margin-top:0}
html[data-visual-theme="warm"] #conversation .markdown-body :is(ul,ol){margin:8px 0 14px;padding-left:1.35em}
html[data-visual-theme="warm"] #conversation .markdown-body li{margin:5px 0;padding-left:3px}
html[data-visual-theme="warm"] #conversation .markdown-body li::marker{color:var(--vi-action);font-size:.8em}
html[data-visual-theme="warm"] #conversation .markdown-body strong{font-weight:500}
html[data-visual-theme="warm"] #conversation .markdown-body blockquote{margin:14px 0;padding:4px 0 4px 14px;border-left:2px solid var(--vi-action);border-radius:0;background:transparent;color:var(--vi-muted)}
html[data-visual-theme="warm"] #conversation .markdown-body :is(pre,table){max-width:100%;overflow-x:auto}
html[data-visual-theme="warm"] #conversation .markdown-body :is(td,th){font-size:14px;line-height:1.7}
html[data-visual-theme="warm"] #conversation .markdown-body code{font-size:.86em;border:0;border-radius:5px;padding:2px 5px;background:transparent}
html[data-visual-theme="warm"] :is(#conversation,.im-log) .message-day{display:flex;align-items:center;align-self:stretch;justify-content:center;gap:14px;margin:2px 0;padding:0;background:transparent;color:var(--vi-muted);font-size:11px;font-weight:400;letter-spacing:.06em}
html[data-visual-theme="warm"] :is(#conversation,.im-log) .message-day::before,html[data-visual-theme="warm"] :is(#conversation,.im-log) .message-day::after{content:'';width:28px;height:1px;background:var(--vi-border);opacity:.6}
/* Keep records and exact source identity, reveal the low-frequency controls on demand. */
html[data-visual-theme="warm"] #web-workspace #conversation .message-footer{min-height:0;margin:0}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .message-meta>:is(.message-source,time,.message-channel,.streaming-elapsed),html[data-visual-theme="warm"][data-interface-debug="false"] #conversation :is(.message-debug,.message-route){display:none!important}
html[data-visual-theme="warm"] #web-workspace #conversation .message-footer .message-meta{min-height:0;flex-wrap:wrap}
html[data-visual-theme="warm"] #conversation .conversation-execution:not([hidden]){margin-top:12px}
html[data-visual-theme="warm"] #conversation .conversation-execution-label{display:inline;font-size:12px}
html[data-visual-theme="warm"] #conversation .conversation-execution[data-state="failed"]{color:var(--vi-danger)}
html[data-visual-theme="warm"] #conversation .conversation-execution:is([data-state="waiting"],[data-state="unknown"]){color:var(--vi-warning)}
html[data-visual-theme="warm"] #conversation .message-delivery{margin-top:12px;color:var(--vi-muted);font-size:13px}
html[data-visual-theme="warm"] #conversation .message-reply{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;max-width:100%;margin:0 0 12px;padding:2px 0 10px;border:0;border-bottom:1px solid var(--vi-border);border-radius:0;background:transparent;color:var(--vi-muted);text-align:left}
html[data-visual-theme="warm"] #conversation .message-reply::before{content:'❞';flex:none;font-size:19px;color:var(--vi-action)}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .message-reply-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-visual-theme="warm"] #conversation .message-reply-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:20px}
html[data-visual-theme="warm"] .chat-message-menu{position:absolute;bottom:-35px;right:0;margin:0;padding:0;border:0;background:transparent}
html[data-visual-theme="warm"] .chat-message-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:48px;min-width:48px;height:48px;min-height:48px;padding:15px;box-sizing:border-box;border:0;border-radius:12px;background:transparent;color:var(--vi-muted);cursor:pointer}
html[data-visual-theme="warm"] .chat-message-menu>summary::-webkit-details-marker{display:none}
html[data-visual-theme="warm"] .chat-message-menu>summary svg{width:18px;height:18px}
html[data-visual-theme="warm"] .chat-message-menu>summary:hover{color:var(--vi-action);background:var(--vi-brand-soft)}
html[data-visual-theme="warm"] .message>.message-footer>.chat-message-menu:not([open]){opacity:0;transition:opacity 140ms ease}
html[data-visual-theme="warm"] .message:is(:hover,:focus-within)>.message-footer>.chat-message-menu,html[data-visual-theme="warm"] #conversation>.message:last-child>.message-footer>.chat-message-menu{opacity:.7}
html[data-visual-theme="warm"] .chat-message-menu .chat-message-options{z-index:150;width:184px;min-width:184px;padding:6px;border:1px solid var(--vi-border);border-radius:16px;background:var(--vi-surface);color:var(--vi-ink);box-shadow:0 8px 32px rgb(0 0 0 / 10%)}
html[data-visual-theme="warm"] .chat-message-menu:not([open])>.chat-message-options{display:none}
html[data-visual-theme="warm"] #web-workspace #conversation .chat-message-options .message-actions,html[data-visual-theme="warm"] .quiet-card-secondary{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;margin:0}
html[data-visual-theme="warm"] #web-workspace #conversation .chat-message-options :is(button,a){display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;height:auto;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--vi-ink);text-align:left;text-decoration:none;font-size:14px;font-weight:400}
html[data-visual-theme="warm"] #web-workspace #conversation .chat-message-options :is(button,a):hover{background:var(--vi-brand-soft)}
html[data-visual-theme="warm"] #web-workspace #conversation .chat-message-options svg{width:19px;height:19px}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation [data-message-action="info"]{display:none!important}
html[data-visual-theme="warm"][data-interface-debug="true"] #web-workspace #conversation .message-footer{margin-top:12px}
html[data-visual-theme="warm"][data-interface-debug="true"] #web-workspace #conversation .message-meta :is(.message-source,time){position:static;width:auto;height:auto;clip-path:none;font-size:12px}
/* Compact editorial cards. Real previews, file permissions and action callbacks stay intact. */
html[data-visual-theme="warm"] #web-workspace #conversation .message.message-with-cards{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html[data-visual-theme="warm"] #conversation .message-with-cards>.markdown-body:not(:empty){width:fit-content;max-width:100%;box-sizing:border-box;padding:18px 22px;border:1px solid color-mix(in srgb,var(--vi-border) 38%,transparent);border-radius:20px;background:var(--vi-surface)}
html[data-visual-theme="warm"] #conversation .message-with-cards>.markdown-body:empty,html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .message-card-only>.markdown-body{display:none}
html[data-visual-theme="warm"] #conversation .artifact-file-list{gap:12px;margin-top:16px}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .message-card-only>.artifact-file-list{margin-top:0}
html[data-visual-theme="warm"] #conversation :is(.artifact-file,.conversation-object,.message-presentation,.cu-chat-preview){border:1px solid color-mix(in srgb,var(--vi-border) 72%,transparent);border-radius:18px;background:var(--vi-surface);color:var(--vi-ink);box-shadow:0 3px 8px rgb(48 51 47 / 2%)}
html[data-visual-theme="warm"] #conversation .artifact-file{min-height:88px;padding:18px;gap:14px;grid-template-columns:36px minmax(0,1fr) auto}
html[data-visual-theme="warm"] #conversation .artifact-file .file-type{width:36px;height:44px;border:0;color:var(--vi-action);background:transparent}
html[data-visual-theme="warm"] #conversation :is(.artifact-file-copy strong,.conversation-object-body>strong,.message-presentation-title){font-size:15px;font-weight:500;line-height:1.65;letter-spacing:-.008em}
html[data-visual-theme="warm"] #conversation .artifact-file-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word}
html[data-visual-theme="warm"] #conversation :is(.artifact-file-copy small,.conversation-object-body>p){color:var(--vi-muted);font-size:12px;line-height:20px;letter-spacing:.015em}
html[data-visual-theme="warm"] #conversation .library-card-location{display:none}
html[data-visual-theme="warm"] #conversation :is(.artifact-file-actions,.conversation-object-actions){display:flex;align-items:center;gap:4px}
html[data-visual-theme="warm"] #conversation :is(.artifact-file-actions,.conversation-object-actions)>.chat-message-menu{position:relative;inset:auto}
html[data-visual-theme="warm"] #conversation :is(.artifact-file-actions,.conversation-object-actions)>:is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 12px;border:0;border-radius:12px;font-size:13px;font-weight:500;background:var(--vi-brand-soft);color:var(--vi-action);white-space:nowrap}
html[data-visual-theme="warm"] #conversation .artifact-file.image{display:grid;grid-template-columns:144px minmax(0,1fr);width:min(520px,100%);padding:0;gap:0;overflow:visible}
html[data-visual-theme="warm"] #conversation .artifact-image-button{display:block;width:144px;min-width:0;height:176px;overflow:hidden;border-radius:17px 0 0 17px;background:var(--vi-paper)}
html[data-visual-theme="warm"] #conversation .artifact-image{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 28%;background:var(--vi-paper)}
html[data-visual-theme="warm"] #conversation .artifact-image-footer{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:12px;min-width:0;padding:18px 20px;background:transparent;border-radius:0 18px 18px 0}
html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-actions{justify-content:flex-start;align-self:flex-start}
html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-copy small{margin-top:5px}
html[data-visual-theme="warm"] #conversation .conversation-object{margin-top:16px;overflow:visible;grid-template-columns:92px minmax(0,1fr)}
html[data-visual-theme="warm"] #conversation .conversation-object>img{border-radius:17px 0 0 17px}
html[data-visual-theme="warm"] #conversation .conversation-object-body{padding:18px}
html[data-visual-theme="warm"] #conversation .message-presentation{padding:18px}
html[data-visual-theme="warm"] #conversation .message-presentation-field>b{font-size:14px;line-height:23px;white-space:normal;font-weight:400}
/* The composer is one line until text, a quote or attachments actually need space. */
html[data-visual-theme="warm"] #web-workspace #composer{padding:16px 32px 24px;border:0}
html[data-visual-theme="warm"] #web-workspace .composer-box{display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:4px;max-width:800px;padding:8px;border:1px solid color-mix(in srgb,var(--vi-control-border) 52%,var(--vi-surface));border-radius:22px;background:var(--vi-surface);box-shadow:0 4px 20px rgb(48 51 47 / 4%);transition:border-color 160ms ease,box-shadow 160ms ease}
html[data-visual-theme="warm"] #web-workspace .composer-box:focus-within{border-color:var(--vi-action);box-shadow:0 0 0 3px var(--vi-brand-soft),0 4px 20px rgb(48 51 47 / 4%)}
html[data-visual-theme="warm"] #web-workspace #composer textarea{order:2;flex:1 1 80px;width:0;min-width:0;min-height:48px;max-height:140px;margin:0;padding:10px 2px;border:0;outline:none;box-shadow:none;color:var(--vi-ink);background:transparent;font-family:var(--workspace-font);font-size:16px;font-weight:400;line-height:27px;letter-spacing:.008em}
html[data-visual-theme="warm"] #web-workspace #composer :is(.composer-toolbar,.voice-entry-actions){display:contents}
html[data-visual-theme="warm"] #web-workspace #composer .composer-attachment-button{order:1;flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;padding:13px;border:0;background:transparent;color:var(--vi-muted);border-radius:14px}
html[data-visual-theme="warm"] #web-workspace #composer #voice-push{order:3;flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;padding:13px;border:0;background:transparent;color:var(--vi-muted);border-radius:14px}
html[data-visual-theme="warm"] #web-workspace #composer #voice-push.active{color:var(--vi-danger);background:var(--ws-danger-soft)}
html[data-visual-theme="warm"] #web-workspace #composer #chat-auto-voice{order:3;flex:0 0 44px;width:44px;height:48px;min-width:44px;padding:11px;border:0;background:transparent;color:var(--vi-muted)}
#web-workspace #composer #chat-auto-voice[aria-pressed="true"]{color:var(--vi-action)}
html[data-visual-theme="warm"] #web-workspace #composer #voice-push-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-visual-theme="warm"] #web-workspace #composer .send-button{order:4;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:15px;background:var(--vi-action);color:var(--vi-on-action)}
html[data-visual-theme="warm"] #web-workspace #composer .send-button:disabled{background:var(--vi-disabled-surface);color:var(--vi-disabled-text)}
html[data-visual-theme="warm"] #web-workspace #composer .send-button svg{width:22px;height:22px;stroke-width:1.6}
html[data-visual-theme="warm"] #web-workspace #composer .composer-box>:is(.composer-capture-session,.composer-quote,.cu-composer-skill,.composer-attachments,.composer-attachment-notice){order:0;flex:0 0 100%;width:100%;box-sizing:border-box}
html[data-visual-theme="warm"] #web-workspace .composer-hint{display:none}
html[data-visual-theme="warm"] #composer #composer-quote-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-visual-theme="warm"] #composer #composer-quote-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px}
html[data-visual-theme="warm"] #composer .composer-quote{min-height:48px;max-height:72px;margin:0 0 6px;padding:0 4px 0 12px;border:0;border-left:2px solid var(--vi-action);border-radius:4px 12px 12px 4px;background:var(--vi-paper)}
html[data-visual-theme="warm"] #composer #composer-quote-cancel{width:48px;min-width:48px;height:48px}
html[data-visual-theme="warm"] #web-workspace .rail-button{border-radius:14px}
html[data-visual-theme="warm"] #web-workspace .rail-button.active{color:var(--vi-action);background:var(--vi-brand-soft)}
html[data-visual-theme="warm"] #web-workspace .rail-button.active svg{color:var(--vi-action)}
@media(max-width:759px){
 html[data-visual-theme="warm"] #web-workspace{--workspace-header:64px}
 html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace>.ws-system-bar{height:64px}
 html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .assistant-header{min-height:64px;padding:8px 160px 8px 16px}
 html[data-visual-theme="warm"] #web-workspace .assistant-identity{gap:7px}
 html[data-visual-theme="warm"] #web-workspace .assistant-identity::before{width:32px;height:32px;flex-basis:32px;background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgcm9sZT0iaW1nIj48dGl0bGU+VkkgdjEuMCDCtyDlsI/lsLrlr7jmoIfor4Y8L3RpdGxlPjxwYXRoIGZpbGw9IiNGMDc4NDgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwOS44IDEyMiBBMSAxIDAgMCAwIDIxMC41NSAxMjEuNjYgQTU0IDU0IDAgMCAwIDIyNCA4NiBBNTQgNTQgMCAwIDAgMTcwIDMyIEE1NCA1NCAwIDAgMCAxMjggNTIuMDYgQTU0IDU0IDAgMCAwIDg2IDMyIEE1NCA1NCAwIDAgMCAzMiA4NiBBNTQgNTQgMCAwIDAgNTIuMDYgMTI4IEE1NCA1NCAwIDAgMCAzMiAxNzAgQTU0IDU0IDAgMCAwIDg2IDIyNCBBNTQgNTQgMCAwIDAgMTI4IDIwMy45NCBBNTQgNTQgMCAwIDAgMTcwIDIyNCBBNTQgNTQgMCAwIDAgMjI0IDE3MCBBNTQgNTQgMCAwIDAgMjEwLjU1IDEzNC4zNCBBMSAxIDAgMCAwIDIwOS44IDEzNCBMMTc3LjQzIDEzNCBBMSAxIDAgMCAwIDE3Ni43MiAxMzUuNzEgTDE5MC41MSAxNDkuNDkgQTI5IDI5IDAgMCAxIDE5MC41MSAxOTAuNTEgQTI5IDI5IDAgMCAxIDE0OS40OSAxOTAuNTEgTDEyOCAxNjkuMDEgTDEwNi41MSAxOTAuNTEgQTI5IDI5IDAgMCAxIDY1LjQ5IDE5MC41MSBBMjkgMjkgMCAwIDEgNjUuNDkgMTQ5LjQ5IEw4Ni45OSAxMjggTDY1LjQ5IDEwNi41MSBBMjkgMjkgMCAwIDEgNjUuNDkgNjUuNDkgQTI5IDI5IDAgMCAxIDEwNi41MSA2NS40OSBMMTI4IDg2Ljk5IEwxNDkuNDkgNjUuNDkgQTI5IDI5IDAgMCAxIDE5MC41MSA2NS40OSBBMjkgMjkgMCAwIDEgMTkwLjUxIDEwNi41MSBMMTc2LjcyIDEyMC4yOSBBMSAxIDAgMCAwIDE3Ny40MyAxMjIgWiIvPjwvc3ZnPg==')}
 html[data-visual-theme="warm"] #web-workspace .assistant-identity h1{font-size:18px;line-height:26px;letter-spacing:-.025em}
 html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-system-button{top:8px;right:112px}
 html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-call-cluster{top:8px;right:12px}
 html[data-visual-theme="warm"] #web-workspace .assistant-header .header-actions{top:8px;right:62px}
 html[data-visual-theme="warm"] #web-workspace #conversation{padding:24px 20px 40px;gap:28px;scrollbar-gutter:auto}
 html[data-visual-theme="warm"] #web-workspace #conversation .message{max-width:calc(100% - 8px);padding:15px 18px;border-radius:18px;font-size:16px;line-height:1.72}
 html[data-visual-theme="warm"] #web-workspace #conversation .message.user{max-width:88%}
 html[data-visual-theme="warm"] #conversation .message-with-cards>.markdown-body:not(:empty){padding:15px 18px;border-radius:18px}
 html[data-visual-theme="warm"] #web-workspace #conversation .message :is(p,li),html[data-visual-theme="warm"] #conversation .markdown-body{line-height:1.72}
 html[data-visual-theme="warm"] #conversation .artifact-file{grid-template-columns:28px minmax(0,1fr);padding:16px;gap:12px}
 html[data-visual-theme="warm"] #conversation .artifact-file-actions{grid-column:2}
 html[data-visual-theme="warm"] #conversation .artifact-file.image{grid-template-columns:106px minmax(0,1fr);width:min(420px,100%);padding:0;gap:0}
 html[data-visual-theme="warm"] #conversation .artifact-image-button{width:106px;height:164px;min-height:164px}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer{padding:15px 14px;gap:10px}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-actions{grid-column:auto;gap:0}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-actions>button{padding:8px 10px;font-size:12px}
 html[data-visual-theme="warm"] #conversation .artifact-file-copy strong{font-size:14px;line-height:1.6;font-weight:500}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-copy strong{-webkit-line-clamp:3}
 html[data-visual-theme="warm"] #conversation .conversation-object{grid-template-columns:76px minmax(0,1fr)}
 html[data-visual-theme="warm"] #conversation .conversation-object-body{padding:15px}
 html[data-visual-theme="warm"] #web-workspace #composer{padding:10px 16px 14px}
 html[data-visual-theme="warm"] #web-workspace .composer-box{padding:6px;column-gap:0;border-radius:21px}
 html[data-visual-theme="warm"] #web-workspace .mobile-nav{padding-top:7px;padding-bottom:max(9px,env(safe-area-inset-bottom));background:var(--ws-surface);border-top:1px solid color-mix(in srgb,var(--vi-border) 55%,transparent)}
 html[data-visual-theme="warm"] #web-workspace .mobile-nav button{background:transparent;border-radius:12px;font-size:11px;letter-spacing:.02em;color:var(--vi-muted)}
 html[data-visual-theme="warm"] #web-workspace .mobile-nav button.active{color:var(--vi-action);background:transparent}
 html[data-visual-theme="warm"] #web-workspace .mobile-nav svg{width:22px;height:22px;stroke-width:1.65}
 html[data-visual-theme="warm"][data-interface-debug="true"] #web-workspace #conversation .message-meta{gap:4px;font-size:11px}
}
@media(max-width:359px){
 html[data-visual-theme="warm"] #web-workspace #conversation{padding-inline:16px}
 html[data-visual-theme="warm"] #web-workspace #conversation .message{padding-inline:15px}
 html[data-visual-theme="warm"] #conversation .artifact-file.image{grid-template-columns:88px minmax(0,1fr)}
 html[data-visual-theme="warm"] #conversation .artifact-image-button{width:88px;height:170px;min-height:170px}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer{padding:13px 12px}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-actions>button{font-size:0;padding:8px;min-width:48px}
 html[data-visual-theme="warm"] #conversation .artifact-image-footer .artifact-file-actions>button::after{content:'↗';font-size:20px;line-height:24px}
}
@media(prefers-reduced-motion:reduce){
 html[data-visual-theme="warm"] #web-workspace *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* One call icon and one overflow entry; search/settings remain one tap inside. */
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-system-button{display:none!important}
html[data-visual-theme="warm"] #web-workspace .assistant-header>.header-actions{display:none}
html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-call-cluster{right:76px}
html[data-visual-theme="warm"] #web-workspace .assistant-header>.chat-header-menu{position:absolute;inset:14px 24px auto auto;opacity:1;margin:0}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu>summary{padding:13px;color:var(--vi-muted)}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu>summary svg{width:22px;height:22px}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu .chat-message-options>div{display:grid;gap:2px}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu .chat-message-options button{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;height:auto;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--vi-ink);font-size:14px;font-weight:400;text-align:left}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu .chat-message-options button svg{width:19px;height:19px;stroke-width:1.6}
html[data-visual-theme="warm"] #web-workspace .chat-header-menu .chat-message-options button:hover{background:var(--vi-brand-soft)}
@media(max-width:759px){
 html[data-visual-theme="warm"] body[data-surface="conversation"] #web-workspace .ws-system-bar>.ws-call-cluster{right:62px}
 html[data-visual-theme="warm"] #web-workspace .assistant-header>.chat-header-menu{inset:8px 12px auto auto}
}

html[data-visual-theme="warm"] .message>.message-footer>.chat-message-menu:not([open])>summary{pointer-events:none}
html[data-visual-theme="warm"] .message:is(:hover,:focus-within)>.message-footer>.chat-message-menu>summary,
html[data-visual-theme="warm"] #conversation>.message:last-child>.message-footer>.chat-message-menu>summary{pointer-events:auto}
html[data-visual-theme="warm"] #web-workspace #conversation>.message.assistant+.message.assistant{margin-top:-14px}

/* Shared mouse, keyboard and touch feedback; device haptics are optional. */
:is(#web-workspace,dialog) :is(button,summary,[role="button"]):not(:disabled):not([aria-disabled="true"]):is(:active,[data-pressed="true"]){filter:brightness(.92);transform:scale(.97);box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 14%,transparent)}
:is(#web-workspace,dialog) :is(button,summary,[role="button"]){transition:background-color 120ms ease,color 120ms ease,filter 90ms ease,transform 90ms ease}
:is(#web-workspace,dialog) button:disabled{cursor:default}
#conversation>.message:focus-visible{outline:2px solid var(--vi-action,var(--ws-accent));outline-offset:5px}
#conversation>.message.message-selecting{outline:2px solid var(--vi-action,var(--ws-accent));outline-offset:5px}
#conversation>.message.message-selecting>.message-selectable-text{user-select:text!important;-webkit-user-select:text!important;-webkit-touch-callout:default;cursor:text}
.message-selection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px;padding:8px;border:1px solid var(--vi-border,var(--ws-line));border-radius:12px;background:var(--vi-surface,var(--ws-surface));color:var(--vi-ink,var(--ws-text));user-select:none;-webkit-user-select:none}
.message-selection-toolbar>span{flex:1 0 100%;font-size:13px;line-height:1.5;color:var(--vi-muted,var(--ws-muted))}
#web-workspace #conversation .message-selection-toolbar>button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--vi-border,var(--ws-line));border-radius:10px;background:var(--vi-paper,var(--ws-surface));color:var(--vi-action,var(--ws-accent));font:inherit;font-size:14px;white-space:nowrap}
#web-workspace #conversation .message-selection-toolbar>button:disabled{opacity:.45}
@media(pointer:coarse){
 #conversation>.message:not(.message-selecting)>.message-selectable-text{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
 #web-workspace #conversation .message-footer .message-action-icon{min-width:44px;min-height:44px;width:44px;height:44px;flex-basis:44px;padding:10px}
 html:not([data-visual-theme="warm"]) #web-workspace #conversation .message-footer{flex-wrap:wrap}
 html:not([data-visual-theme="warm"]) #web-workspace #conversation .message-footer .message-actions{flex-wrap:wrap;gap:4px}
 :is(dialog,.connection-settings) :is(button[aria-label^="关闭"],.dialog-close,.work-dialog-close){min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 :is(#web-workspace,dialog) :is(button,summary,[role="button"]){transition:none!important}
 :is(#web-workspace,dialog) :is(button,summary,[role="button"]):is(:active,[data-pressed="true"]){transform:none}
}
html[data-visual-theme="warm"][data-interface-debug="false"] #composer .communication-draft-status[data-state="saved"]{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Chat images are images, not file cards. Original file metadata stays in preview/debug. */
html[data-visual-theme="warm"] #conversation .artifact-file.image{
 display:block;grid-template-columns:none;width:fit-content;max-width:100%;padding:0;gap:0;border:0;border-radius:18px;background:transparent;box-shadow:none;overflow:visible;
}
html[data-visual-theme="warm"] #conversation .artifact-file.image .artifact-image-button{
 display:block;width:fit-content;max-width:100%;height:auto;min-height:0;padding:0;border:0;border-radius:18px;overflow:hidden;background:transparent;cursor:zoom-in;
}
html[data-visual-theme="warm"] #conversation .artifact-file.image .artifact-image{
 display:block;width:auto;height:auto;max-width:min(420px,100%);max-height:min(64dvh,560px);object-fit:contain;object-position:center;border-radius:inherit;background:transparent;
}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .artifact-file.image .artifact-image-footer{display:none}
html[data-visual-theme="warm"][data-interface-debug="true"] #conversation .artifact-file.image .artifact-image-footer{padding:10px 0;background:transparent}
@media(max-width:759px){
 html[data-visual-theme="warm"] #conversation .artifact-file.image .artifact-image{max-width:100%;max-height:min(64dvh,480px)}
}
/* A single image sent by the user follows the same image-first treatment. */
html[data-visual-theme="warm"] #web-workspace #conversation .message:has(>.message-attachment-list>.message-attachment.image:only-child){padding:0;border:0;background:transparent;box-shadow:none}
html[data-visual-theme="warm"] #web-workspace #conversation .message-attachment-list:has(>.message-attachment.image:only-child){width:fit-content;max-width:100%;margin:0}
html[data-visual-theme="warm"] #web-workspace #conversation .message-attachment-list>.message-attachment.image:only-child{width:fit-content;max-width:100%;padding:0;border:0;border-radius:18px;background:transparent}
html[data-visual-theme="warm"][data-interface-debug="false"] #conversation .message-attachment.image:only-child>.message-attachment-copy{display:none}
html[data-visual-theme="warm"] #conversation .message-attachment.image:only-child .message-image-button{display:block;width:fit-content;max-width:100%;height:auto;min-height:0;padding:0;border:0;border-radius:18px;overflow:hidden;background:transparent;cursor:zoom-in}
html[data-visual-theme="warm"] #conversation .message-attachment.image:only-child .message-image-thumbnail{position:static;display:block;width:auto;height:auto;max-width:min(420px,100%);max-height:min(64dvh,560px);object-fit:contain;border-radius:inherit}
html[data-visual-theme="warm"] #conversation .message.user:has(>.message-attachment-list>.message-attachment.image:only-child)>.message-plain:not(:empty){margin-top:12px;padding:15px 18px;border-radius:18px;background:var(--vi-brand-soft)}
@media(max-width:759px){html[data-visual-theme="warm"] #conversation .message-attachment.image:only-child .message-image-thumbnail{max-width:100%;max-height:min(64dvh,480px)}}

/* Work · neutral records, warm orange only for selection and primary actions. */
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace{
 font-weight:400;letter-spacing:0;
}
html[data-visual-theme="warm"][data-theme="light"] body[data-surface="tasks"] #web-workspace{
 --ws-muted:#6f6e69;--ws-text-soft:#53534e;--ws-positive:#6f6e69;--ws-positive-soft:#f1f0ec;--ws-hover:#f1f0ec;--ws-subtle:#faf9f6;
}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace :is(.rail-button,.rail-button.active,.work-tabs [aria-selected="true"]){font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-panel :is(button,input,select,summary){font-weight:400}
html[data-visual-theme="warm"][data-theme="dark"] body[data-surface="tasks"] #web-workspace{
 --ws-muted:var(--vi-muted);--ws-text-soft:#d4d2ca;--ws-positive:var(--vi-muted);--ws-positive-soft:var(--ws-hover);
}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .workspace-recent{display:none}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-panel-header{min-height:64px;padding:8px 24px;gap:12px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-panel-header>div>p{display:none}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-tabs{gap:20px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-tabs [role="tab"]{position:relative;min-width:48px;min-height:48px;padding:8px 0;border-radius:0;background:transparent;color:var(--ws-muted);font-size:16px;font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-tabs [aria-selected="true"]{color:var(--ws-ink);font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-tabs [aria-selected="true"]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;border-radius:2px;background:var(--ws-accent)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-panel{grid-template-columns:minmax(0,1fr)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-controls{min-width:0;grid-template-columns:minmax(100px,1fr) 108px 108px 124px auto;gap:8px;padding:12px 24px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-search{max-width:none;min-height:42px;border-radius:11px;background:var(--ws-subtle)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-controls select{height:42px;border-radius:11px;background:var(--ws-surface);font-size:13px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-search #task-search{font-size:14px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-create-menu>summary{border-radius:11px;min-height:42px;padding:0 14px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-workspace{grid-template-columns:minmax(270px,320px) minmax(0,1fr)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .tasks{padding:8px 10px 20px;background:var(--ws-surface)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary{display:flex;flex-direction:column;align-items:stretch;min-height:78px;gap:8px;margin:0;padding:14px 14px 15px;border:0;border-bottom:1px solid color-mix(in srgb,var(--ws-line) 60%,transparent);border-radius:0;box-shadow:none;text-align:left}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary.selected{background:var(--ws-accent-soft);box-shadow:inset 2px 0 var(--ws-accent);border-radius:10px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-title{order:0;margin:0;font-size:15px;font-weight:400;line-height:1.6;letter-spacing:0}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-heading{order:1;gap:8px;min-height:18px;align-items:center;flex-wrap:wrap}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-heading :is(.work-executor,time){font-size:12px;font-weight:400;color:var(--ws-muted);line-height:20px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-heading time{font-variant-numeric:tabular-nums;letter-spacing:0}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-copy{order:2;font-size:12px;color:var(--ws-muted);line-height:1.7}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary-meta{order:3;font-size:11px;line-height:18px;color:var(--ws-muted)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary .next-execution-marker{order:2;background:transparent;color:var(--ws-muted);padding:0;font-size:11px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-state{padding:0;min-height:18px;background:transparent;border:0;border-radius:0;color:var(--ws-muted);font-size:11px;line-height:18px;font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-state:is(.result,.success){color:var(--ws-muted);background:transparent}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-state:is(.active,.attention){color:var(--ws-accent);background:transparent}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-state.danger{color:var(--ws-danger);background:transparent}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .attention-dot{color:var(--ws-accent)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-content{width:min(920px,100%);margin:0;padding:24px 28px;gap:20px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading{gap:12px;padding-bottom:0;flex-wrap:wrap;align-items:flex-start}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading h3{margin:8px 0 0;font-size:22px;line-height:1.55;font-weight:400;letter-spacing:0}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading p{margin:8px 0 0;font-size:13px;line-height:1.7;color:var(--ws-muted)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-organize-actions{gap:4px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-organize-actions :is(button,summary){min-height:40px;padding:8px 10px;border-radius:10px;font-size:13px;font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-organize-actions>.secondary-action{border-color:transparent;background:transparent;color:var(--ws-muted)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-organize-actions>.secondary-action:hover{background:var(--ws-hover);color:var(--ws-ink)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace :is(.task-result-section,.task-detail-section,.task-facts){padding-top:18px;margin:0;border-top-color:color-mix(in srgb,var(--ws-line) 60%,transparent)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-result-section h4{margin:0 0 12px;font-size:14px;font-weight:400;line-height:24px}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-content .section-eyebrow{color:var(--ws-muted);font-size:12px;font-weight:400}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-facts{gap:7px 18px;font-size:13px;grid-template-columns:76px minmax(0,1fr)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-facts :is(dt,dd){font-size:13px;line-height:1.7}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-file.image{display:block;width:fit-content;max-width:100%;padding:0;border:0;background:transparent;box-shadow:none}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-image-button{display:block;width:fit-content;max-width:100%;height:auto;min-height:0;padding:0;border:0;border-radius:14px;overflow:hidden;background:transparent;cursor:zoom-in}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-image{display:block;width:auto;height:auto;max-width:min(420px,100%);max-height:340px;object-fit:contain;border-radius:inherit;background:transparent}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-image-footer{display:flex;align-items:center;gap:12px;padding:10px 0;background:transparent}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-file-copy strong{font-size:13px;font-weight:400;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-file-copy small{font-size:11px;color:var(--ws-muted)}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-image-footer .artifact-file-actions>button:first-child{display:none}
html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-file-actions a{min-height:40px;padding:8px;color:var(--ws-muted);font-size:12px}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace [data-work-redundant="true"],
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-panel>.diagnostics,
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-panel-tools .count{display:none}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"]:not([data-work-tab="projects"]) #web-workspace .task-panel{grid-template-rows:auto auto minmax(0,1fr)}
/* Completed rows: title and time; keep attention and incomplete outcomes explicit. */
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary .work-executor,
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary[data-work-complete="true"] .task-state{display:none}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary[data-work-complete="true"]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px 12px;min-height:64px;padding:16px 12px}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary[data-work-complete="true"]>.task-summary-title{grid-column:1;grid-row:1}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary[data-work-complete="true"]>.task-summary-heading{grid-column:2;grid-row:1;flex-wrap:nowrap}
html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"] #web-workspace .task-summary[data-work-complete="true"]>:is(.task-summary-copy,.task-summary-meta,.next-execution-marker){grid-column:1 / -1}
@media(min-width:760px) and (max-width:1179px){
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-workspace{grid-template-columns:minmax(210px,250px) minmax(0,1fr)}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-content{padding:22px 20px}
}
@media(min-width:760px) and (max-width:979px){
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-controls{grid-template-columns:minmax(0,1fr) 96px 96px auto;padding-inline:16px}
}
@media(max-width:759px){
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-panel-header{min-height:60px;padding:6px 20px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 16px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-search{grid-column:1 / 3;grid-row:1;min-width:0;min-height:44px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-create-menu{grid-column:3;grid-row:1;justify-self:stretch}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-create-menu>summary{justify-content:center;min-height:44px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .work-search #task-search{font-size:16px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-controls select{grid-row:2;height:44px;padding:0 7px;font-size:13px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-workspace{grid-template-columns:minmax(0,1fr)}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .tasks{padding:4px 16px 20px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-summary{padding:14px 10px;min-height:76px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-content{padding:12px 20px 24px;gap:18px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading{padding:0;gap:6px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading>div:first-child{padding-top:32px}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading>div:first-child>.task-state{top:0}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail-heading h3{font-size:20px;line-height:1.6}
 html[data-visual-theme="warm"] body[data-surface="tasks"] #web-workspace .task-detail .artifact-image{max-height:320px}
 html[data-visual-theme="warm"][data-interface-debug="false"] body[data-surface="tasks"][data-task-detail="open"] #web-workspace .task-panel{grid-template-rows:minmax(0,1fr)}
}

/* Shared conversation answers; original reply/permission paths remain authoritative. */
#web-workspace #conversation>.message.assistant:has(>.interaction-card){width:min(100%,760px);max-width:100%;box-sizing:border-box}
.interaction-card{display:grid;gap:12px;min-width:0}
.interaction-card h3,.interaction-card p{margin:0}
.interaction-card-form,.interaction-card fieldset{display:grid;gap:10px;min-width:0}
.interaction-card fieldset{border:0;padding:0;margin:0}
.interaction-card legend{padding:0 0 8px;font-size:.9em}
.interaction-card-option{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;border:1px solid var(--vi-border,#DEDCD6);border-radius:12px;cursor:pointer;box-sizing:border-box}
.interaction-card-option input{width:20px;height:20px;flex:0 0 20px;accent-color:var(--vi-brand,#B8451E)}
#web-workspace #conversation>.message.assistant:has(>.interaction-card-form-layout){width:min(100%,600px)}
.interaction-card-form-layout>.interaction-card-form{gap:16px}
.interaction-card-header{display:grid;justify-items:start;gap:6px}
.interaction-card-count{padding:2px 8px;border:1px solid var(--vi-border,#DDDCD5);border-radius:7px;background:var(--vi-support-soft,#F3F1ED);color:var(--vi-muted,#62675F);font-size:12px}
#web-workspace #conversation .interaction-card-header h3.message-presentation-title{font-size:20px;line-height:1.4;font-weight:650}
.interaction-card-details{border-top:1px solid var(--vi-border,#DDDCD5);color:var(--vi-muted,#62675F);font-size:13px}
.interaction-card-details>summary{min-height:36px;padding:6px 0;color:var(--vi-brand,#B8451E);cursor:pointer}
.interaction-card-details>.interaction-card-description{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.interaction-card .interaction-card-field-title{display:flex;align-items:baseline;gap:9px;width:100%;font-size:14px;line-height:1.55;font-weight:600}
.interaction-card-field-number{flex:none;min-width:27px;padding:2px 5px;border-radius:6px;background:var(--vi-support-soft,#F3F1ED);color:var(--vi-brand,#B8451E);text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.interaction-card-field-copy{min-width:0;overflow-wrap:anywhere}
.interaction-card-required{margin-inline-start:7px;color:var(--vi-muted,#62675F);font-size:11px;font-weight:400;white-space:nowrap}
.interaction-card-options{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.interaction-card-option>span{min-width:0;overflow-wrap:anywhere}
.interaction-card-option:has(input:checked){border-color:var(--vi-brand,#B8451E);background:color-mix(in srgb,var(--vi-surface,#fff) 93%,var(--vi-brand,#B8451E))}
.interaction-card-clear{justify-self:start;min-height:32px;padding:0 4px;border:0;color:var(--vi-brand,#B8451E);background:transparent;font:inherit;cursor:pointer}
.interaction-card-field{display:grid;gap:6px;min-width:0}
.interaction-card-field input:not([type=checkbox]),.interaction-card-field textarea{box-sizing:border-box;display:block;width:100%;max-inline-size:100%;min-width:0;min-height:44px;border:1px solid var(--vi-border,#DEDCD6);border-radius:10px;padding:10px 12px;font:inherit;color:inherit;background:var(--vi-surface,var(--surface,#fff))}
.interaction-card-field input[type=date]{appearance:none;min-inline-size:0}
.interaction-card-field textarea{min-height:88px;resize:vertical}
.interaction-card-submit{justify-self:start;min-height:44px;padding:10px 18px;border:1px solid var(--vi-brand,#B8451E);border-radius:12px;color:var(--vi-brand,#B8451E);background:transparent;font:inherit;cursor:pointer}
.interaction-card-submit:disabled{opacity:.6;cursor:default}
.interaction-card input:focus-visible,.interaction-card textarea:focus-visible,.interaction-card-clear:focus-visible,.interaction-card-submit:focus-visible{outline:2px solid var(--vi-brand,#B8451E);outline-offset:3px}

/* File preview controls: themed chrome, document/iframe/canvas untouched. */
#file-preview[open]{z-index:50}
html[data-visual-theme="warm"] #file-preview .pdf-preview-position{color:var(--vi-muted,#62675F)}
html[data-visual-theme="warm"] #file-preview .html-preview-controls{background:var(--vi-support-soft,#F3F1ED)}
html[data-visual-theme="warm"] #file-preview .html-preview-controls button{background:var(--vi-surface,#FFFFFF);color:var(--vi-ink,#30332F);border-color:var(--vi-border,#DDDCD5)}
html[data-visual-theme="warm"] #file-preview .html-artifact-preview>p{color:var(--vi-muted,#62675F)}
@media(max-width:600px){html[data-visual-theme="warm"] #file-preview .pdf-preview-toolbar button,html[data-visual-theme="warm"] #file-preview .html-preview-controls button{min-height:44px}}

/* Compact Web catalog and persistent application window controls. */
.ax-kind-control{display:contents}
.ax-settings-glyph,.ax-filter-glyph,.ax-toolbar>.ax-view-cycle{display:none}
@media(max-width:759px){
  html:not(.native-global-shell) .ax-header .ax-brand>.coapps-logo{display:none}
  html:not(.native-global-shell) .ax-header .ax-brand>.ax-settings-glyph{display:block;width:23px;height:23px}
  html:not(.native-global-shell) .ax-toolbar{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;align-items:center}
  html:not(.native-global-shell) .ax-toolbar>.ax-search{grid-column:1;min-width:0;font-size:16px}
  html:not(.native-global-shell) .ax-toolbar>.ax-layout{display:none!important}
  html:not(.native-global-shell) .ax-toolbar>:is(.ax-kind-control,.ax-view-cycle){display:grid;place-items:center;position:relative;width:44px;height:44px;min-width:0;padding:0;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-subtle);color:var(--ws-ink)}
  html:not(.native-global-shell) .ax-kind-control[data-active=true]{color:var(--ws-accent);background:var(--ws-accent-soft);border-color:var(--ws-accent)}
  html:not(.native-global-shell) .ax-kind-control:focus-within{outline:2px solid var(--ws-accent);outline-offset:2px}
  html:not(.native-global-shell) .ax-filter-glyph{display:grid;place-items:center;pointer-events:none}
  html:not(.native-global-shell) .ax-filter-glyph svg{width:21px;height:21px}
  html:not(.native-global-shell) .ax-kind-control>.ax-kind{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
}
/* Reserve a window header above the application in fullscreen. */
html:not(.native-global-shell)[data-application-immersive=true] #web-workspace > #applications-surface {
  display:grid; grid-template-rows:auto minmax(0,1fr)!important;
}
html:not(.native-global-shell)[data-application-immersive=true] #web-workspace > #applications-surface[data-frame="sub"] {
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
html:not(.native-global-shell)[data-application-immersive=true] #applications-surface > .ax-header {
  display:flex; grid-row:1; grid-column:1; flex-wrap:nowrap;
  padding-top:calc(2px + env(safe-area-inset-top,0px));
}
html:not(.native-global-shell)[data-application-immersive=true] #applications-surface > .ax-header > .ax-page-back { display:none; }
html:not(.native-global-shell)[data-application-immersive=true] #applications-surface > :is(.ax-app-body,.ax-frame-deck) {
  grid-row:2; grid-column:1;
}
html:not(.native-global-shell)[data-application-immersive=true] #applications-surface[data-frame="sub"] > .ax-frame-deck {
  grid-row:3;
}

.ax-frame-deck[data-group-album] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.ax-group-album-bar {
  padding: 4px 12px;
  border-bottom: 1px solid var(--ws-line);
  background: var(--ws-surface);
}
.ax-group-album-bar .ax-button { min-height: 44px; }
.gx-sharing { display: grid; gap: 12px; }
.gx-sharing [hidden] { display: none !important; }

/* The embedded course library shares the workspace layout at phone widths. */
@media (max-width:480px) {
  .cx4-library .cx4-folder-rail { flex-wrap:wrap; overflow:visible; }
  .cx4-library .cx4-folder-rail > button { max-width:100%; }
}
/* Assistant and IM share the reading columns and their theme tokens. */
html[data-theme] #web-workspace :is(#conversation,.im-log).chat-rail {
  container-type:inline-size;
  --chat-rail-edge:max(18px,calc((100% - 860px) / 2));
  --chat-rail-avatar:36px;
  --chat-rail-gap:12px;
  --chat-rail-ink:color-mix(in srgb,var(--vi-border,var(--ws-line)) 58%,transparent);
  padding:18px calc(var(--chat-rail-edge) + var(--chat-rail-avatar) + var(--chat-rail-gap)) 30px;
  gap:0;
  background-image:linear-gradient(var(--chat-rail-ink),var(--chat-rail-ink)),linear-gradient(var(--chat-rail-ink),var(--chat-rail-ink));
  background-repeat:no-repeat;
  background-size:1px 100%;
  background-position:left calc(var(--chat-rail-edge) + var(--chat-rail-avatar) / 2) top,right calc(var(--chat-rail-edge) + var(--chat-rail-avatar) / 2) top;
}
html[data-theme][data-visual-theme] #web-workspace :is(#conversation,.im-log).chat-rail > :is(.message,.im-message) {
  position:relative; flex:none; width:fit-content; min-width:0;
  max-width:min(640px,100%); margin:0; padding:5px 0 0;
  border:0; border-radius:6px; background:none; box-shadow:none;
  line-height:1.72; font-size:16px; color:var(--ws-ink);
}
html[data-theme][data-visual-theme] #web-workspace :is(#conversation,.im-log).chat-rail > :is(.message.user,.im-message.im-mine) {
  align-self:flex-end; max-width:min(550px,100%); margin-inline-start:auto;
}
html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail > .message.assistant {
  align-self:flex-start; margin-inline-end:auto;
}
html[data-theme][data-visual-theme] #web-workspace :is(#conversation,.im-log).chat-rail > .chat-rail-start { margin-block-start:13px; }
:is(#conversation,.im-log).chat-rail > .chat-rail-break { height:1px; width:100%; flex:none; background:var(--chat-rail-ink); margin-block:5px 0; }
:is(#conversation,.im-log).chat-rail > .message-day { margin-block:10px 4px; }
#conversation.chat-rail > .message > .chat-rail-avatar {
  position:absolute; inset-block-start:4px; inset-inline-start:calc(-1 * (var(--chat-rail-avatar) + var(--chat-rail-gap)));
  display:grid; place-items:center; overflow:hidden; width:var(--chat-rail-avatar); height:var(--chat-rail-avatar);
  border-radius:10px; background:var(--ws-hover); box-shadow:0 0 0 3px var(--ws-surface);
  color:var(--ws-muted); font-size:14px; font-weight:600; pointer-events:none;
}
#conversation.chat-rail > .message.user > .chat-rail-avatar {
  inset-inline-start:auto; inset-inline-end:calc(-1 * (var(--chat-rail-avatar) + var(--chat-rail-gap)));
}
#conversation.chat-rail > .message:has(> .chat-rail-avatar + .message-source-replay) > .chat-rail-avatar {
  inset-block-start:5px;
}
#conversation .chat-rail-avatar > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--ws-surface); }
html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail > .message.message-referenced {
  background:var(--ws-hover); outline:2px solid var(--ws-line); outline-offset:3px;
}
#conversation.chat-rail .message-selectable-text { overflow-wrap:anywhere; }
html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail .message.user > .message-plain {
  display:block; margin:0; padding:0; border:0; background:none; white-space:pre-wrap;
}
#conversation.chat-rail .message-plain:empty { display:none!important; }
#conversation.chat-rail .markdown-body > :is(ul,ol,p):not(:last-child) { margin-block-end:10px; }
#conversation.chat-rail .markdown-body > :first-child { margin-block-start:0; }
#conversation.chat-rail .markdown-body :is(pre,table) { max-width:100%; }
html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail .message-footer {
  display:flex; justify-content:flex-start; min-height:20px; gap:3px; margin:0;
}
html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail .user > .message-footer { justify-content:flex-end; }
html:not([data-interface-debug=true]) #web-workspace #conversation.chat-rail .message-footer > .message-meta { display:none; }
html[data-theme] #web-workspace #conversation.chat-rail .message-footer > .chat-message-menu {
  position:relative; inset:auto; margin:0; opacity:0;
}
html[data-theme] #web-workspace #conversation.chat-rail .chat-message-menu > summary {
  display:flex; align-items:center; justify-content:center; list-style:none;
  width:44px; min-width:44px; height:22px; min-height:22px; padding:0;
  border:0; border-radius:6px; background:none; color:var(--ws-muted); pointer-events:none;
}
html[data-theme] #web-workspace #conversation.chat-rail .chat-message-menu > summary::-webkit-details-marker { display:none; }
html[data-theme] #web-workspace #conversation.chat-rail .chat-message-menu > summary svg { width:16px; height:16px; }
html[data-theme] #web-workspace #conversation.chat-rail .message:focus-visible .chat-message-menu,
html[data-theme] #web-workspace #conversation.chat-rail .chat-message-menu:is([open],:focus-within) { opacity:.9; }
html[data-theme] #web-workspace #conversation.chat-rail .message:focus-visible .chat-message-menu > summary,
html[data-theme] #web-workspace #conversation.chat-rail .chat-message-menu:is([open],:focus-within) > summary { pointer-events:auto; }
#conversation.chat-rail .chat-message-menu .chat-message-options {
  width:184px; min-width:184px; max-width:calc(100vw - 16px); padding:6px;
  border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-surface); color:var(--ws-ink);
}
#conversation.chat-rail .chat-message-options .message-actions { display:grid; width:100%; gap:0; margin:0; }
#conversation.chat-rail .chat-message-options .message-action-icon { display:flex; width:100%; min-height:44px; justify-content:flex-start; gap:9px; }
#conversation.chat-rail .image-gallery { display:flex; align-items:center; gap:0; width:min(300px,100%); padding:4px 5px; }
#web-workspace #conversation.chat-rail .image-gallery .image {
  flex:1 1 82px; min-width:0; width:auto; margin:0; border:2px solid var(--ws-surface);
  border-radius:10px; box-shadow:0 0 0 1px var(--ws-line);
}
#web-workspace #conversation.chat-rail .image-gallery .image + .image { margin-inline-start:-8px; }
#conversation.chat-rail .image-gallery .message-image-button { display:block; width:100%; height:88px; min-height:0; border:0; border-radius:7px; }
#conversation.chat-rail .image-gallery .message-image-thumbnail { width:100%; height:100%; object-fit:cover; }
#conversation.chat-rail .image-gallery .message-attachment-copy { display:none; }
@media(hover:hover) and (pointer:fine) {
  html[data-theme] #web-workspace #conversation.chat-rail .message:hover .chat-message-menu { opacity:.8; }
  html[data-theme] #web-workspace #conversation.chat-rail .message:hover .chat-message-menu > summary { pointer-events:auto; }
}
@media(max-width:759px) {
  html[data-theme] #web-workspace :is(#conversation,.im-log).chat-rail { --chat-rail-edge:12px; --chat-rail-avatar:32px; --chat-rail-gap:9px; padding-block:14px 22px; }
  html[data-theme][data-visual-theme] #web-workspace :is(#conversation,.im-log).chat-rail > :is(.message,.im-message) { font-size:15px; }
  html[data-theme][data-visual-theme] #web-workspace #conversation.chat-rail .message-footer { min-height:15px; }
}
@media(pointer:coarse) {
  #conversation.chat-rail > .message { -webkit-touch-callout:none; }
}

/* A footer is one row in both appearances; status is a real network state. */
#web-workspace .workspace-sidebar-footer{flex-wrap:nowrap;min-width:0;background:var(--vi-navigation-surface)}
#web-workspace .workspace-sidebar-footer .personal-entry{min-width:0;margin:0}
#web-workspace .workspace-version{white-space:nowrap;flex:none}
