/* Blue liquid material shared by current and future conversation surfaces. */
:root {
  --canvas: #eef5fc;
  --paper: #fafdff;
  --ink: #17324d;
  --action: #2168c7;
  --action-hover: #1857ac;
  --group-line: rgba(83, 129, 180, .2);
  --group-accent: #4eadd0;
  --group-bubble: rgba(255, 255, 255, .87);
  --group-own-bubble: #e4efff;
  --group-quiet: #eff5fc;
  --group-selected: #dceaff;
  --group-bg: rgba(249, 252, 255, .71);
}
.brand-mark { flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 14px; background: #e7f2ff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand strong { white-space: nowrap; font-size: 16px; }
.brand small { font-size: 11px; }
.theme-control { flex: 0 0 auto; }
.theme-control select { min-height: 44px; max-width: 112px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-face); color: var(--ink-secondary); font: inherit; font-size: 12px; }
.theme-control select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html[data-theme="dark"] {
  --canvas: #101e2c;
  --paper: #192e43;
  --paper-soft: #14283b;
  --input: #12263b;
  --ink: #edf6ff;
  --ink-secondary: #c3d6ea;
  --ink-tertiary: #a9c0d7;
  --ink-muted: #a4bdd4;
  --action: #83bbff;
  --action-hover: #b0d6ff;
  --action-soft: #203e61;
  --archive: #77dbc3;
  --archive-soft: #153f3a;
  --attention: #f1c580;
  --attention-soft: #493a25;
  --danger: #ffabb6;
  --danger-soft: #4a2b39;
  --line: rgba(169, 201, 230, .2);
  --line-soft: rgba(169, 201, 230, .12);
  --line-strong: rgba(169, 201, 230, .34);
  --focus: #92c6ff;
  --glass-face: rgba(24, 45, 66, .86);
  --glass-raised: rgba(33, 57, 83, .96);
  --glass-edge: rgba(189, 221, 250, .2);
  --glass-shadow: 0 10px 28px -15px rgba(0, 0, 0, .65), inset 0 1px 0 var(--glass-edge);
  --glass-control-shadow: 0 3px 7px -3px rgba(0, 0, 0, .45), inset 0 1px 0 var(--glass-edge);
  --glass-inset-shadow: inset 2px 3px 6px rgba(0, 0, 0, .18), inset -1px -1px 3px rgba(189, 221, 250, .06);
  --group-line: rgba(154, 190, 225, .2);
  --group-accent: #70d0ed;
  --group-bubble: rgba(33, 57, 81, .94);
  --group-own-bubble: #214e7b;
  --group-quiet: #19344e;
  --group-selected: #244b73;
  --group-bg: rgba(18, 36, 55, .82);
}
html[data-theme="dark"] body::before { background: radial-gradient(ellipse at 12% 14%, #21425c88, transparent 51%), radial-gradient(ellipse at 88% 75%, #244e5b66, transparent 50%), linear-gradient(145deg, #112237, #101e2c 65%, #142d3c); }
html[data-theme="dark"] ::selection { color: #fff; background: #30679f; }
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar { background: rgba(17, 35, 53, .78); border-color: var(--glass-edge); }
html[data-theme="dark"] .nav-link.active { color: #d7eaff; background: #224368; }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .data-table tbody tr:hover { background: rgba(91, 140, 187, .19); }
html[data-theme="dark"] .nav-count { color: #cee6ff; background: #25486e; }
html[data-theme="dark"] .panel,
html[data-theme="dark"] .model-overview,
html[data-theme="dark"] .summary-strip,
html[data-theme="dark"] .button,
html[data-theme="dark"] .select-field,
html[data-theme="dark"] .filter-menu summary { border-color: var(--line); }
html[data-theme="dark"] .summary-strip,
html[data-theme="dark"] .chat-thread,
html[data-theme="dark"] .chat-evidence,
html[data-theme="dark"] .chat-composer,
html[data-theme="dark"] .detail-dialog,
html[data-theme="dark"] .mobile-nav-dialog { background: var(--group-bg); }
html[data-theme="dark"] .global-search,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .collab-text-input,
html[data-theme="dark"] .collab-requirement,
html[data-theme="dark"] .review-form textarea,
html[data-theme="dark"] .path-box { background: var(--input); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #a4bdd4; }
html[data-theme="dark"] .button:hover:not(:disabled) { background: #2c4d70; border-color: var(--line-strong); color: #fff; }
html[data-theme="dark"] .button.primary { color: #fff; background: linear-gradient(160deg, #327ddd, #2363b2); border-color: #5790ce; }
html[data-theme="dark"] .button.primary:hover:not(:disabled) { background: #347bcf; }
html[data-theme="dark"] .button.subtle { background: transparent; color: var(--action); }
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .detail-footer,
html[data-theme="dark"] .stage-node { background: var(--group-quiet); }
html[data-theme="dark"] .stage-node.current,
html[data-theme="dark"] .collab-job-item.selected { background: var(--group-selected); }
html[data-theme="dark"] .chat-message[data-kind="agent"] .chat-bubble { background: var(--group-bubble); }
html[data-theme="dark"] .chat-message[data-kind="user"] .chat-bubble { background: var(--group-own-bubble); }
html[data-theme="dark"] .tool-avatar,
html[data-theme="dark"] .empty-symbol { background: var(--group-quiet); }
html[data-theme="dark"] .toast,
html[data-theme="dark"] .filter-options { background: var(--glass-raised); border-color: var(--line); }
html[data-theme="dark"] .tag,
html[data-theme="dark"] .local-label,
html[data-theme="dark"] .count-pill { color: var(--ink-secondary); background: var(--group-quiet); }
@media (max-width: 760px) {
  .theme-control select { width: 76px; padding: 0 3px; font-size: 11px; }
  .topbar .local-presence, .topbar .topbar-separator, .topbar #identity-motion { display: none; }
  .topbar .breadcrumb { flex: 1; min-width: 0; }
  .topbar .breadcrumb-root, .topbar .breadcrumb-divider { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="dark"] .panel, html[data-theme="dark"] .sidebar, html[data-theme="dark"] .topbar, html[data-theme="dark"] .chat-composer { background: #192e43; }
}
