/* Conversation workspace and owner navigation. Live controls retain their own state. */
:root {
  --sidebar-surface: #ededed;
  --sidebar-ink: #1a1c1f;
  --sidebar-muted: #5d6570;
  --sidebar-line: #d4d4d4;
  --sidebar-hover: #e1e1e1;
  --chat-paper: #fff;
  --chat-text: #232520;
  --chat-muted: #696c64;
  --composer-surface: #fff;
  --composer-line: #d6d8cf;
  --composer-tool-ink: #5b5e55;
  --composer-hover: #eeefea;
  --chat-gutter: clamp(30px, 5.35vw, 88px);
}

@media (min-width: 901px) {
  #app {
    grid-template-columns: 258px minmax(0, 1fr);
    padding: 0;
    background: var(--sidebar-surface);
  }
  #app > .rail { display: none; }
  #app > .workspace { border-radius: 0; }
}
@media (min-width: 901px) and (max-width: 1050px) {
  #app { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (min-width: 901px) {
  #sidebar #close-sidebar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sidebar-muted);
  }
  #sidebar #close-sidebar:hover { background: var(--sidebar-hover); }
  #sidebar #close-sidebar svg { width: 18px; height: 18px; }
  #app.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  #app.sidebar-collapsed #sidebar { display: none; }
  #app:is(.sidebar-collapsed,[data-screen="files"]) #open-sidebar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink);
  }
  #app:is(.sidebar-collapsed,[data-screen="files"]) #open-sidebar svg { width: 20px; height: 20px; }
}

#sidebar {
  min-height: 0;
  background: var(--sidebar-surface);
  color: var(--sidebar-ink);
}
#sidebar .sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#sidebar .sidebar-scroll #conversations { overflow: visible; }
:root:not([data-theme="dark"]) #theme-toggle .sun,
:root[data-theme="dark"] #theme-toggle .moon { display: none; }
#sidebar .drawer-shortcuts, #sidebar .side-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
#sidebar .drawer-shortcuts { display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:16px; }
#sidebar .side-links {
  flex: none;
  padding-top: 13px;
  border-top: 1px solid var(--sidebar-line);
}
#sidebar :is(.drawer-shortcuts,.side-links) button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--sidebar-ink);
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  background: transparent;
}
#sidebar .side-links button { min-height: 38px; font-size: 13px !important; }
#sidebar :is(.drawer-shortcuts,.side-links) button:is(:hover,[aria-current="page"]) {
  background: var(--sidebar-hover);
  box-shadow: none;
}
#sidebar :is(.drawer-shortcuts,.side-links) svg { flex: none; width: 18px; height: 18px; color: var(--sidebar-muted); }
#conversations > .workspace-project-section {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--sidebar-line);
  border-bottom: 0;
}
#conversations :is(.workspace-list-heading,.workspace-recent-target) {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0 1px 0 12px;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .045em;
}
#conversations > .workspace-recent-target { margin: 6px 0 0; }
#conversations .project-master-toggle {
  flex: 1;
  justify-content: flex-start;
  gap: 6px;
  min-height: 36px;
  padding: 0;
  color: inherit;
  font-size: 12px !important;
  font-weight: 600;
}
.project-master-toggle svg { order: 1; width: 13px; height: 13px; }
#conversations :is(.workspace-create,.workspace-folder-menu,.history-more,.history-search-toggle) {
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  color: var(--sidebar-muted);
}
#conversations :is(.workspace-create,.workspace-folder-menu,.history-more,.history-search-toggle) svg {
  width: 16px; height: 16px;
}
#conversations .history-title {
  min-height: 41px;
  padding: 5px 4px 5px 13px;
  border-radius: 8px;
  color: var(--sidebar-ink);
  line-height: 1.5;
}
#conversations .workspace-folder-toggle {
  min-height: 40px;
  padding: 6px 13px;
  font-size: 13px !important;
  color: var(--sidebar-ink);
}
#conversations .workspace-history-row:is(:hover,:focus-within),
#conversations .workspace-folder-line:hover,
#conversations .history-title.active { background-color: var(--sidebar-hover); }
#conversations .workspace-history-row { border-radius: 8px; }

#chat-view {
  background: var(--chat-paper);
  color: var(--chat-text);
}
#chat-view.home-mode #welcome {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(22px,5vh,56px) var(--chat-gutter);
  overflow-y: auto;
}
#welcome .mobile-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: auto;
  text-align: center;
}
#welcome .welcome-mascot {
  display: block;
  width: clamp(108px,10.5vw,153px);
  height: auto;
  aspect-ratio: 655 / 417;
  object-fit: contain;
  margin: 0;
}
#welcome .mobile-home h1 {
  margin: 23px 0 0;
  font-size: clamp(30px,2.95vw,43px);
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
  color: var(--chat-text);
}
#welcome .welcome-intro:not([hidden]) {
  display: block;
  margin: 9px 0 0;
  max-width: 34em;
  color: var(--chat-muted);
  font-size: 14px;
  line-height: 1.7;
  text-wrap: balance;
}

#chat-view #composer {
  width: min(calc(100% - 2 * var(--chat-gutter)),850px);
  max-width: none;
  margin: 0 auto;
  padding: 9px 0 max(14px, env(safe-area-inset-bottom));
  background: transparent;
}
#composer .composer {
  padding: 10px;
  background: var(--composer-surface);
  border: 1px solid var(--composer-line) !important;
  border-radius: 34px !important;
  box-shadow: 0 5px 23px #22260d09, 0 1px 3px #292c1f05;
}
#composer .composer:focus-within { border-color: var(--chat-muted) !important; }
#composer .composer-input {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  min-height: 44px;
}
#composer .composer-input #message {
  flex: 1 1 0;
  order: 1;
  width: 0;
  min-width: 0;
  min-height: 44px !important;
  height: 44px;
  max-height: 140px;
  overflow-y: auto;
  resize: none;
  padding: 10px 2px !important;
  border: 0;
  color: var(--chat-text);
  font-size: 16px !important;
  line-height: 24px !important;
  background: transparent;
  field-sizing: fixed;
}
#composer .composer-input #message:placeholder-shown {
  white-space: nowrap;
  text-overflow: ellipsis;
}
#composer .composer-input :is(.tool,.send) {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
}
#composer .composer-input .tool {
  background: #f7f7f7;
  color: var(--composer-tool-ink);
}
#composer .composer-input .tool:hover { background: var(--composer-hover); }
#composer .composer-input #input-mode { order: 0; }
#composer .composer-input #attach { order: 2; }
#composer .composer-input #hold-to-talk {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  font-size: 17px;
  color: var(--chat-text);
}
#composer .composer-input #send { order: 3; }
#composer .composer-input :is(.tool,.send) svg { width: 24px; height: 24px; }
:root[data-theme="dark"] #composer .composer-input .tool { background: var(--bubble); }
#composer #composer-note {
  margin: 10px 0 0;
  min-height: 15px;
  color: var(--chat-muted) !important;
  font-size: 10px !important;
  line-height: 1.5;
}
@media (min-width: 901px) and (max-width: 1160px) {
  :root { --chat-gutter: 30px; }
}
@media (max-width: 900px) {
  :root { --chat-gutter: clamp(18px,4.7vw,38px); }
  #sidebar :is(.drawer-shortcuts,.side-links) button { min-height: 44px; }
  #conversations :is(.workspace-create,.workspace-folder-menu,.history-more,.history-search-toggle) {
    width: 38px; min-height: 38px; height: 38px;
  }
  #conversations :is(.history-title,.workspace-folder-toggle) { min-height: 42px; }
}
@media (max-width: 600px) {
  :root { --chat-gutter: 18px; }
  #chat-view.home-mode #welcome { padding-block: 19px 20px; }
  #welcome .mobile-home h1 { margin-top: 19px; font-size: clamp(26px,7.1vw,32px); }
  #welcome .welcome-intro:not([hidden]) { font-size: 13px; }
  #chat-view #composer { padding-block: 7px max(10px,env(safe-area-inset-bottom)); }
  #composer .composer { border-radius: 34px !important; }
  #composer #composer-note { margin-top: 7px; }
}
@media (max-width: 355px) {
  :root { --chat-gutter: 12px; }
}
@media (max-height: 580px) and (orientation: landscape) {
  #chat-view.home-mode #welcome { padding-block: 15px; }
  #welcome .welcome-mascot { width: 65px; }
  #welcome .mobile-home h1 { margin-top: 9px; font-size: 24px; }
  #chat-view #composer { padding-block: 3px; }
  #sidebar .side-links { padding-top: 6px; }
}
@media (max-width: 900px) and (max-height: 480px) {
  #sidebar {
    gap: 4px;
    padding-block: max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  #sidebar .side-heading { margin: 0; }
  #sidebar .sidebar-scroll { min-height: 56px; }
  #sidebar .side-links { padding-top: 3px; }
}
/* Shared semantic colors for the same controls in both appearances. */
:root[data-theme="dark"] {
  --sidebar-surface: var(--frame);
  --sidebar-ink: var(--ink);
  --sidebar-muted: var(--muted);
  --sidebar-line: var(--line);
  --sidebar-hover: var(--selected);
  --chat-paper: var(--conversation-bg);
  --chat-text: var(--ink);
  --chat-muted: var(--muted);
  --composer-surface: var(--panel);
  --composer-line: var(--line);
  --composer-tool-ink: var(--soft-ink);
  --composer-hover: var(--selected);
}


/* App chrome uses the selected appearance. Files, media and embedded documents keep their own rendering. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171819;
  --panel: #242628;
  --ink: #f0f1f2;
  --muted: #b4bac0;
  --line: #404448;
  --bubble: #303336;
  --selected: #393d40;
  --conversation-bg: #292b2e;
  --conversation-ink: var(--ink);
  --frame: #101010;
  --field: #202224;
  --soft-ink: #d4d8dc;
  --action: #eceeef;
  --action-ink: #1c1e20;
  --link: #a9c8e5;
  --good: #b2d8bf;
  --good-bg: #263b30;
  --warn: #e9c48c;
  --warn-bg: #3d3326;
  --bad: #f0aaa4;
  --bad-bg: #422c2d;
  background: var(--frame);
  color: var(--ink);
}

:root[data-theme="dark"] :is(body, .app, .rail, .sidebar) { background: var(--frame); color: var(--ink); }
:root[data-theme="dark"] :is(.app > .workspace, .page, .auth, .startup-status) { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] :is(.chat-view, .topbar, .composer-wrap) { background: var(--conversation-bg); color: var(--ink); }
:root[data-theme="dark"] .sidebar.open ~ .sidebar-shade { background: #0002; }
@media (max-width: 900px) {
  :root[data-theme="dark"] .sidebar.open { border-right: 1px solid #404448; box-shadow: 12px 0 32px #0005; }
}
:root[data-theme="dark"] :focus-visible { outline-color: var(--link); }
:root[data-theme="dark"] :is(.transcript, .history) { scrollbar-color: var(--line) transparent; }
:root[data-theme="dark"] :is(.rail > button, .drawer-shortcuts button, .side-links button, .drawer-box) { color: var(--soft-ink); }
:root[data-theme="dark"] :is(.drawer-box strong, .topbar-title #page-title, .history-title.active, .sidebar .new-chat) { color: var(--ink); }
:root[data-theme="dark"] :is(.rail > button[aria-current="page"], .side-links button[aria-current="page"],
  .drawer-shortcuts button:hover, .side-links button:hover, .workspace-history-row:hover, .workspace-folder-line:hover,
  .rail > button:hover) { background: var(--selected); }
:root[data-theme="dark"] .sidebar .new-chat { background: #fff !important; color: #292929 !important; border-color: #dedede; }
:root[data-theme="dark"] :is(#conversations .workspace-folder-toggle, #conversations .history-title) { color: var(--soft-ink); }
:root[data-theme="dark"] #conversations .history-title.active { background: var(--selected); color: var(--ink); }
:root[data-theme="dark"] :is(#conversations .workspace-create, #conversations .workspace-folder-menu, #conversations .history-more,
  #conversations > .workspace-recent-target, .workspace-recent-target button, .workspace-list-heading .project-master-toggle) { color: var(--muted); }
:root[data-theme="dark"] :is(#conversations > .workspace-project-section, .side-links, .workspace-project-section) { border-color: var(--line); }
:root[data-theme="dark"] .workspace-drop-active { background: var(--good-bg) !important; }
:root[data-theme="dark"] :is(.drawer-box small, .section-label, .history-date, .history-search-excerpt, .workspace-folder-toggle small,
  .workspace-empty, .workspace-menu-description, #conversation-subtitle, .home-mode .mobile-home .welcome-sub,
  .welcome-intro, .auth .auth-tagline, .startup-status p, .startup-status small) { color: var(--muted); }

:root[data-theme="dark"] :is(.top-actions, .topbar #open-sidebar) { background: var(--panel); color: var(--ink); }
:root[data-theme="dark"] .top-actions > button { color: var(--soft-ink); }
:root[data-theme="dark"] .box-state-light { box-shadow: 0 0 0 2px var(--panel); }
:root[data-theme="dark"] .box-state-light.green { background: #60b98a; }
:root[data-theme="dark"] .box-state-light.yellow { background: #e4b749; }
:root[data-theme="dark"] .box-state-light.red { background: #eb7971; }

:root[data-theme="dark"] :is(dialog, .workspace-drag-ghost, .chat-jump, .composer-wrap .composer-project,
  .notice, .setting-group, .setting-row, .box-overview, .profile-card, .maintenance-details, .create-panel,
  .list-row, .settings-card, .expert-card, .expert-settings, .security-policy-list, .security-boundary-list,
  .box-security-entry, .conversation-work-link, .stat-card, .reader-toolbar, .reader-focus, #reader-content:fullscreen,
  .reader-document .markdown-preview, .knowledge-file, .project-knowledge, .shared-import-files, .file-search-bar,
  .plugin-toolbar .settings-search, .page #capability-content > .error, .remote-access .settings-card) {
  background-color: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] dialog::backdrop { background: #06070999; }
:root[data-theme="dark"] :is(.capability-form, form.settings-form) { background: var(--panel) !important; border-color: var(--line); }
:root[data-theme="dark"] :is(.primary, .startup-status a, .composer-input .send) { background: var(--action); color: var(--action-ink); border-color: var(--action); }
:root[data-theme="dark"] .composer-input .send:disabled { background: #424649; color: #acb0b4; }
:root[data-theme="dark"] :is(.secondary, .workspace-menu-action, .mount-option) { background-color: var(--bubble); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] :is(.secondary:hover:enabled, .workspace-menu-action:hover, .setting-row:hover, .notice .notice-close:hover,
  .file-search-clear:hover, .composer-project:hover, .chat-jump button:hover:enabled) { background-color: var(--selected); color: var(--ink); }
:root[data-theme="dark"] .workspace-editor .danger { background: #9e423d; color: #fff; }
:root[data-theme="dark"] :is(.auth, .settings-form, .capability-form, .expert-form, .history-search-controls,
  .import-label, .import-fields, dialog) :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"]), select, textarea) {
  color: var(--ink);
  background-color: var(--field);
  border-color: var(--line);
}
:root[data-theme="dark"] :is(#workspace-dialog-content > input[type="search"], #recordings-view input[type="search"]) {
  color: var(--ink); background-color: var(--field); border-color: var(--line);
}
:root[data-theme="dark"] :is(.file-search-bar input#file-search, .composer textarea) { color: var(--ink); }
:root[data-theme="dark"] :is(.capability-form, .expert-form, .shared-import-dialog) input:is([type="checkbox"], [type="radio"]) {
  background-color: var(--field);
  accent-color: #99b9a8;
}
:root[data-theme="dark"] :is(input, textarea)::placeholder { color: #a4aaae; }
:root[data-theme="dark"] :is(.auth, .page, dialog, .output, .file-result) a:not(.primary):not(.secondary) { color: var(--link); }

:root[data-theme="dark"] .composer-wrap .composer { background-color: var(--panel); border-color: var(--line) !important; }
:root[data-theme="dark"] :is(.composer-input > .tool, .hold-to-talk, .topbar-title #page-title, .approval h3, .stat-card strong,
  .box-facts .key-value > span:last-child, .meeting-clock, .meeting-prose h2) { color: var(--ink); }
:root[data-theme="dark"] :is(.composer-input > .tool:hover, .hold-to-talk:active, .message-user, .attachments .attachment,
  .process-row pre, .attachment .file-type, .mount-tag, .file-type, .markdown-preview pre, .markdown-table-scroll th,
  .import-examples button, .composer-model .model-select, .account-confirmation-code) {
  background-color: var(--bubble); color: var(--soft-ink); border-color: var(--line);
}
:root[data-theme="dark"] .composer-note { color: var(--muted) !important; }
:root[data-theme="dark"] .add-option { background-color: var(--panel) !important; color: var(--ink); }
:root[data-theme="dark"] :is(.mount-chip, .guidance-message) { background: #2c3341; color: #d3dff3; }
:root[data-theme="dark"] :is(.guidance-message small, .mount-chip .file-action) { color: #b7c8e3; }
:root[data-theme="dark"] :is(.message-assistant > .approval, .file-result, .file-card, .message-files a) {
  background: var(--panel); border-color: var(--line); color: var(--ink);
}
:root[data-theme="dark"] :is(.attachment, .file-result) .file-card { background-color: transparent; }
:root[data-theme="dark"] .add-option:hover { background-color: var(--selected) !important; }
:root[data-theme="dark"] :is(.reply-actions :is(button,a[role=button]):hover, .reply-actions :is(button,a[role=button])[aria-pressed="true"]) { background: var(--selected); color: var(--ink); }
:root[data-theme="dark"] :is(.composer-model > span svg, .composer-wrap .composer-project, .file-search-glyph, .file-search-clear,
  .file-action, .reply-actions :is(button,a[role=button]), .chat-jump button, .camera-dialog p, .notice .notice-close, .notice-message) { color: var(--soft-ink); }
:root[data-theme="dark"] :is(.hold-to-talk:disabled, .chat-jump button:disabled) { color: #878d92; }

:root[data-theme="dark"] :is(.skill-tree, .knowledge-cover, .reader-document, .reader-pagination, .expert-avatar, .expert-switch-avatar,
  .tree-file.active, .expert-switch-row.is-current, .expert-switch-row:hover, .expert-switch-trigger.enabled:hover) {
  background-color: var(--bubble); color: var(--ink); border-color: var(--line);
}
:root[data-theme="dark"] :is(.expert-switch-row, .expert-switch-row.is-current .expert-switch-state, .skill-source pre) { color: var(--ink); }
:root[data-theme="dark"] :is(.expert-switch-heading p, .expert-switch-close, .expert-switch-chevron, .expert-switch-state,
  .expert-switch-main small, .expert-switch-footer p, .expert-switch-footer button, .expert-setting-row small, .expert-list-row small,
  .expert-form legend, .knowledge-open > small, .knowledge-more, .knowledge-format, .knowledge-tabs button, .package-name,
  .tree-file, .source-bar, .page-heading p, .setting-row small, .box-facts .key-value > span:first-child,
  .schedule-empty h2, .official-caption, .plugin-security-link, .plugin-controls .plugin-remove,
  .plugin-card > p:nth-of-type(2), .plugin-advanced > summary, .shared-import-file small) { color: var(--muted); }
:root[data-theme="dark"] :is(.knowledge-tabs button.active, .meeting-detail-tabs button.active) { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
:root[data-theme="dark"] :is(.reader-toolbar, .skill-workbench, .source-bar, .expert-switch-footer,
  .expert-setting-row, .expert-list-row, .expert-form fieldset, .knowledge-files.list .knowledge-file,
  .knowledge-cover, .shared-import-file, .security-policy-row, .security-boundary-row, .setting-row, .list-row) { border-color: var(--line); }
:root[data-theme="dark"] :is(.plugin-symbol, .plugin-tags span, .policy-state) { background: var(--bubble) !important; color: var(--soft-ink); }
:root[data-theme="dark"] .security-boundary-row .requires-approval { background: var(--warn-bg) !important; color: var(--warn); }
:root[data-theme="dark"] .security-policy-toggle::before { background-color: #52595d; }
:root[data-theme="dark"] .security-policy-toggle[aria-checked="true"]::before { background-color: #558369; }
:root[data-theme="dark"] .import-steps li.active span { background: var(--action) !important; color: var(--action-ink) !important; }

:root[data-theme="dark"] :is(.meeting-card, .meeting-hero, .meeting-status-card, .meeting-player, .meeting-capture-card,
  .meeting-chat-attachments > div, .meeting-filters button, .execution-step-detail, .execution-dialog pre) {
  color: var(--soft-ink); background-color: var(--panel); border-color: var(--line);
}
:root[data-theme="dark"] :is(.meeting-preview-player, .meeting-filters button.active, .meeting-evidence, .meeting-file-head > span,
  .meeting-segment.highlight, .meeting-progress) { background-color: var(--bubble); color: var(--soft-ink); }
:root[data-theme="dark"] :is(#recordings-view .meeting-card-open, .meeting-preview-player .meeting-icon, .meeting-player .icon,
  .meeting-prose, .meeting-segment p, .meeting-file dd, .execution-step-main > strong, .execution-step-detail dd) { color: var(--soft-ink); }
:root[data-theme="dark"] :is(#recordings-view .meeting-card small, #recordings-view .meeting-file p, #recordings-view .meeting-more,
  .meeting-hero p, .meeting-card p, .meeting-time, .meeting-metadata, .meeting-summary-note, .meeting-empty,
  .meeting-player-note, .meeting-player-note button, .meeting-detail-tabs button:not(.active), .meeting-dialog p,
  .meeting-segment > button, .meeting-file-head small, .meeting-file dt, .meeting-status-card p, .meeting-banner button,
  .meeting-intro, .meeting-card-foot, .meeting-action-list small, .meeting-capture-card p, .meeting-capture-minimize,
  .run-process > summary, .execution-overview, .execution-step-time, .execution-step-main > small, .execution-step-detail dt,
  .execution-note > summary, .execution-dialog summary, .execution-records, .execution-foot, .run-status-hint,
  .run-process .run-narration, .run-process .elapsed, .run-process .elapsed strong) { color: var(--muted); }
:root[data-theme="dark"] :is(.meeting-detail-tabs, .meeting-file, .meeting-card-foot, .meeting-segment, .execution-foot, .execution-step-detail) { border-color: var(--line); }
:root[data-theme="dark"] .execution-step:not(:last-child)::before { background: var(--line); }
:root[data-theme="dark"] .execution-step:not(.completed) .execution-dot { background-color: var(--panel); }
:root[data-theme="dark"] .execution-step.completed .execution-dot { color: var(--good); background-color: var(--good); }
:root[data-theme="dark"] .execution-step.failed .execution-dot { color: var(--bad); }
:root[data-theme="dark"] .meeting-progress span { background: #94b4a5; }

:root[data-theme="dark"] :is(.status-pill, .meeting-state, .run-state-succeeded) { color: var(--good); background-color: var(--good-bg); }
:root[data-theme="dark"] :is(.status-pill.offline, .meeting-state.pending, .meeting-banner, .plugin-state, .run-state-waiting) {
  color: var(--warn); background-color: var(--warn-bg); border-color: #605039;
}
:root[data-theme="dark"] :is(.meeting-capture-state, .meeting-upload-retry, .meeting-eyebrow) { color: var(--warn); }
:root[data-theme="dark"] .run-state-failed { color: var(--bad); background-color: var(--bad-bg); }
:root[data-theme="dark"] :is(.error, .shared-import-file small.error, .security-policy-row > [role="alert"], .page #capability-content > .error) { color: var(--bad); }
:root[data-theme="dark"] .run-state-running { color: #b5d5e9; background-color: #263742; }
:root[data-theme="dark"] :is(.run-state-queued, .run-state-inactive, .connection) { color: var(--muted); background-color: var(--bubble); }

/* Approved 0.1.10 entry typography and project hierarchy. */
#sidebar .drawer-shortcuts button {justify-content:center;gap:8px;min-height:49px;padding:8px 14px;border-radius:12px;font-size:17px!important;line-height:1.6;font-weight:400;}
#sidebar .side-links {display:grid;gap:4px;padding-top:14px;}
#sidebar .side-links button {gap:9px;min-height:49px;padding:10px 7px;font-size:17px!important;line-height:1.6;font-weight:400;}
#sidebar :is(.drawer-shortcuts,.side-links) svg {color:inherit;}
#conversations :is(.workspace-list-heading,.workspace-recent-target) {min-height:49px;gap:10px;letter-spacing:normal;}
#conversations .workspace-recent-target>span,#conversations .project-master-toggle {font-size:17px!important;line-height:1.6;font-weight:600;}
#conversations .project-master-toggle {min-height:49px;gap:10px;}
#conversations .history-search-toggle,#conversations .workspace-create {margin-left:auto;width:44px;min-width:44px;height:44px;min-height:44px;}
#conversations .history-search-toggle svg,#conversations .workspace-create svg {width:22px;height:22px;}
#conversations .workspace-folder {margin:2px 0;}
#conversations .workspace-folder-line {border-radius:10px;}
#conversations .workspace-folder-toggle {gap:10px;min-height:48px;padding:9px 4px 9px 12px;font-size:16px!important;line-height:26px;font-weight:500;}
#conversations .workspace-folder-toggle>span {font-size:16px;line-height:26px;font-weight:500;}
#conversations .workspace-folder-toggle>svg {width:21px;height:21px;stroke-width:1.6;color:var(--sidebar-muted);}
#conversations .workspace-folder-toggle small {min-width:14px;font-size:13px;line-height:22px;font-weight:400;color:var(--sidebar-muted);text-align:right;}
#conversations .workspace-folder-toggle .folder-chevron {width:15px;height:15px;transform:rotate(-90deg);}
#conversations .workspace-folder-toggle[aria-expanded=true] .folder-chevron {transform:rotate(0);}
#conversations .workspace-folder-children {margin:2px 8px 8px 22px;padding-left:12px;border-left:1px solid var(--sidebar-line);}
#conversations .workspace-folder-children .history-title {min-height:44px;padding:9px 4px 9px 10px;font-size:15px!important;line-height:24px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#conversations .workspace-folder-children .history-title.active {font-weight:500;}
#conversations .workspace-folder-menu {width:36px;min-width:36px;min-height:44px;}

:root:not([data-theme="dark"]) #sidebar .drawer-shortcuts button:hover {background:#eee;}
:root:not([data-theme="dark"]) #sidebar .side-links button:hover {background:#e8ebe6;}
:root:not([data-theme="dark"]) #sidebar .side-links button[aria-current=page] {background:#e9e9e9;}
