:root[data-theme="dark"] {
  --bo-bg: #0b0c10;
  --bo-panel: #12141a;
  --bo-panel-soft: #0f1118;
  --bo-panel-muted: #151a2b;
  --bo-ink: #eef1ff;
  --bo-muted: #aab0c0;
  --bo-line: #222636;
  --bo-accent: #5b7cfa;
  --bo-accent-strong: #8ea4ff;
  --bo-accent-soft: rgba(91, 124, 250, 0.16);
  --bo-success: #10b981;
  --bo-success-strong: #72e8b4;
  --bo-warning: #f59e0b;
  --bo-warning-strong: #ffd792;
  --bo-danger: #ff4d6d;
  --bo-danger-strong: #ffb6c3;
  --bo-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --bo-shell-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(91, 124, 250, 0.22), transparent 55%),
    radial-gradient(800px 460px at 90% 0%, rgba(255, 77, 109, 0.14), transparent 55%),
    var(--bo-bg);
}

:root[data-theme="dark"] .bo-page-head,
:root[data-theme="dark"] .bo-panel,
:root[data-theme="dark"] .bo-list-card,
:root[data-theme="dark"] .bo-table-wrap,
:root[data-theme="dark"] .bo-stat-card,
:root[data-theme="dark"] .bo-empty,
:root[data-theme="dark"] .bo-filter-field,
:root[data-theme="dark"] .bo-request-glance,
:root[data-theme="dark"] .bo-module-banner,
:root[data-theme="dark"] .bo-kpi-stack__item,
:root[data-theme="dark"] .bo-mini-metric,
:root[data-theme="dark"] .bo-drawer__hero,
:root[data-theme="dark"] .bo-drawer__fact,
:root[data-theme="dark"] .bo-drawer__fold,
:root[data-theme="dark"] .bo-drawer__card,
:root[data-theme="dark"] .bo-drawer__inline-block,
:root[data-theme="dark"] .bo-drawer__composer,
:root[data-theme="dark"] .bo-drawer__note-card,
:root[data-theme="dark"] .bo-drawer__timeline-item,
:root[data-theme="dark"] .bo-modal__panel,
:root[data-theme="dark"] .bo-modal__surface,
:root[data-theme="dark"] .bo-pick-card {
  border-color: rgba(34, 38, 54, 0.96);
}

:root[data-theme="dark"] .bo-page-head,
:root[data-theme="dark"] .bo-panel,
:root[data-theme="dark"] .bo-list-card,
:root[data-theme="dark"] .bo-table-wrap,
:root[data-theme="dark"] .bo-stat-card,
:root[data-theme="dark"] .bo-empty,
:root[data-theme="dark"] .bo-filter-field,
:root[data-theme="dark"] .bo-request-glance,
:root[data-theme="dark"] .bo-module-banner,
:root[data-theme="dark"] .bo-kpi-stack__item,
:root[data-theme="dark"] .bo-mini-metric,
:root[data-theme="dark"] .bo-drawer__hero,
:root[data-theme="dark"] .bo-drawer__fact,
:root[data-theme="dark"] .bo-drawer__fold,
:root[data-theme="dark"] .bo-drawer__card,
:root[data-theme="dark"] .bo-drawer__inline-block,
:root[data-theme="dark"] .bo-drawer__composer,
:root[data-theme="dark"] .bo-drawer__note-card,
:root[data-theme="dark"] .bo-drawer__timeline-item,
:root[data-theme="dark"] .bo-modal__panel,
:root[data-theme="dark"] .bo-modal__surface,
:root[data-theme="dark"] .bo-pick-card {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96), rgba(15, 17, 24, 0.98));
}

:root[data-theme="dark"] .bo-sidebar__panel {
  background: linear-gradient(180deg, #2a2d31 0%, #17191d 34%, #0b0c0e 72%, #030303 100%);
}

:root[data-theme="dark"] .bo-side-note,
:root[data-theme="dark"] .bo-nav__link:hover,
:root[data-theme="dark"] .bo-nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .bo-brand {
  background: transparent;
}

:root[data-theme="dark"] .bo-nav__icon {
  background: transparent;
  color: rgba(238, 241, 255, 0.78);
}

:root[data-theme="dark"] .bo-nav__link.is-active .bo-nav__icon {
  color: var(--bo-accent-strong);
  background: transparent;
}

:root[data-theme="dark"] .bo-shell-chip {
  background: rgba(18, 20, 26, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-muted);
}

:root[data-theme="dark"] .bo-shell-chip--accent {
  background: var(--bo-accent-soft);
  color: var(--bo-accent-strong);
}

:root[data-theme="dark"] .bo-empty {
  border-style: solid;
}

:root[data-theme="dark"] .bo-stat-card::before {
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .bo-pill--blue,
:root[data-theme="dark"] .bo-pill--green,
:root[data-theme="dark"] .bo-pill--amber,
:root[data-theme="dark"] .bo-pill--red,
:root[data-theme="dark"] .bo-pill--gray {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .bo-pill--blue {
  color: #d7e0ff;
  background: rgba(91, 124, 250, 0.2);
  box-shadow: inset 0 0 0 1px rgba(142, 164, 255, 0.16);
}

:root[data-theme="dark"] .bo-pill--green {
  color: #a4f3d4;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 0 1px rgba(86, 216, 169, 0.16);
}

:root[data-theme="dark"] .bo-pill--amber {
  color: #ffd99a;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 93, 0.16);
}

:root[data-theme="dark"] .bo-pill--red {
  color: #ffc1cb;
  background: rgba(255, 77, 109, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 160, 0.16);
}

:root[data-theme="dark"] .bo-btn-secondary,
:root[data-theme="dark"] .bo-btn-ghost,
:root[data-theme="dark"] .bo-btn-danger,
:root[data-theme="dark"] .bo-icon-btn,
:root[data-theme="dark"] .bo-searchbox,
:root[data-theme="dark"] .bo-filter,
:root[data-theme="dark"] .bo-filter__search,
:root[data-theme="dark"] .bo-table__link,
:root[data-theme="dark"] .bo-drawer__textarea,
:root[data-theme="dark"] .bo-modal__select {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-btn-secondary:hover,
:root[data-theme="dark"] .bo-btn-ghost:hover,
:root[data-theme="dark"] .bo-btn-danger:hover,
:root[data-theme="dark"] .bo-icon-btn:hover,
:root[data-theme="dark"] .bo-topbar__fallback-select:hover {
  border-color: rgba(142, 164, 255, 0.2);
  background: rgba(91, 124, 250, 0.14);
}

:root[data-theme="dark"] .bo-btn-ghost {
  background: rgba(91, 124, 250, 0.14);
  border-color: rgba(142, 164, 255, 0.14);
  color: var(--bo-accent-strong);
}

:root[data-theme="dark"] .bo-btn-danger {
  background: rgba(255, 77, 109, 0.14);
  border-color: rgba(255, 140, 160, 0.18);
  color: var(--bo-danger-strong);
}

:root[data-theme="dark"] .bo-searchbox__icon,
:root[data-theme="dark"] .bo-table th,
:root[data-theme="dark"] .bo-drawer__field-label,
:root[data-theme="dark"] .bo-drawer__fact-label,
:root[data-theme="dark"] .bo-drawer__row-label,
:root[data-theme="dark"] .bo-drawer__fold-meta,
:root[data-theme="dark"] .bo-modal__field-label,
:root[data-theme="dark"] .bo-modal__eyebrow,
:root[data-theme="dark"] .bo-drawer__note-meta {
  color: var(--bo-muted);
}

:root[data-theme="dark"] .bo-pill--gray {
  color: #c8cedc;
  background: rgba(170, 176, 192, 0.14);
  box-shadow: inset 0 0 0 1px rgba(184, 191, 206, 0.12);
}

:root[data-theme="dark"] .bo-stat-card__meta,
:root[data-theme="dark"] .bo-request-pair__pill,
:root[data-theme="dark"] .bo-team-pair__pill,
:root[data-theme="dark"] .bo-client-pair__pill {
  color: #d7e0ff;
  border-color: rgba(142, 164, 255, 0.14);
  background: rgba(91, 124, 250, 0.14);
  box-shadow: inset 0 0 0 1px rgba(142, 164, 255, 0.08);
}

:root[data-theme="dark"] .bo-table th {
  background: rgba(18, 20, 26, 0.96);
}

:root[data-theme="dark"] .bo-table th,
:root[data-theme="dark"] .bo-table td {
  border-bottom-color: rgba(34, 38, 54, 0.9);
}

:root[data-theme="dark"] .bo-table tbody tr:hover {
  background: rgba(91, 124, 250, 0.08);
}

:root[data-theme="dark"] .bo-btn {
  color: #ffffff;
}

:root[data-theme="dark"] .bo-topbar::before {
  border-color: rgba(34, 38, 54, 0.92);
  background: linear-gradient(180deg, rgba(34, 36, 40, 0.46), rgba(7, 8, 10, 0.3));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .bo-topbar::after {
  background: linear-gradient(90deg, rgba(122, 136, 171, 0), rgba(122, 136, 171, 0.16) 12%, rgba(122, 136, 171, 0.16) 88%, rgba(122, 136, 171, 0));
}

:root[data-theme="dark"] .bo-topbar__title {
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-searchbox::placeholder {
  color: rgba(170, 176, 192, 0.74);
}

:root[data-theme="dark"] .bo-topbar__fallback-select {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-topbar__session-value {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-topbar__icon-btn,
:root[data-theme="dark"] .bo-topbar__profile,
:root[data-theme="dark"] .bo-topbar__user-card {
  color: #f7f7f8;
}

:root[data-theme="dark"] .bo-topbar__icon-btn:hover,
:root[data-theme="dark"] .bo-topbar__profile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .bo-sidebar__foot .bo-btn-secondary {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-sidebar__foot .bo-btn-secondary:hover {
  border-color: rgba(142, 164, 255, 0.2);
  background: rgba(91, 124, 250, 0.14);
}

:root[data-theme="dark"] .bo-drawer__panel,
:root[data-theme="dark"] .bo-drawer__head,
:root[data-theme="dark"] .bo-drawer__actions {
  border-color: rgba(34, 38, 54, 0.96);
}

:root[data-theme="dark"] .bo-drawer__panel {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.98), rgba(11, 13, 18, 0.98));
}

:root[data-theme="dark"] .bo-drawer__head,
:root[data-theme="dark"] .bo-drawer__actions {
  background: rgba(18, 20, 26, 0.92);
}

:root[data-theme="dark"] .bo-drawer__close,
:root[data-theme="dark"] .bo-drawer__toolbar .bo-btn-secondary,
:root[data-theme="dark"] .bo-drawer__actions .bo-btn-secondary {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .bo-drawer__close:hover,
:root[data-theme="dark"] .bo-drawer__toolbar .bo-btn-secondary:hover,
:root[data-theme="dark"] .bo-drawer__actions .bo-btn-secondary:hover,
:root[data-theme="dark"] .bo-modal__actions .bo-btn-secondary:hover {
  border-color: rgba(142, 164, 255, 0.2);
  background: rgba(91, 124, 250, 0.14);
}

:root[data-theme="dark"] .bo-drawer__toolbar .bo-btn {
  background: linear-gradient(180deg, #171717 0%, #0f0f10 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .bo-modal__actions .bo-btn-secondary {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .bo-modal__actions .bo-btn {
  background: linear-gradient(180deg, #171717 0%, #0f0f10 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .bo-modal__surface--warning,
:root[data-theme="dark"] .bo-modal__notice {
  border-color: rgba(255, 140, 160, 0.18);
  background: rgba(52, 18, 28, 0.92);
  color: #ffd0d8;
}

:root[data-theme="dark"] .bo-modal__helper {
  border-color: rgba(142, 164, 255, 0.18);
  background: rgba(31, 42, 76, 0.76);
  color: #d7e0ff;
}

:root[data-theme="dark"] .bo-pick-card--selected {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .bo-drawer__hero {
  background:
    radial-gradient(circle at top left, rgba(91, 124, 250, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(18, 20, 26, 0.96), rgba(15, 17, 24, 0.98));
}

:root[data-theme="dark"] .bo-modal__surface--subtle,
:root[data-theme="dark"] .bo-drawer__fact,
:root[data-theme="dark"] .bo-drawer__row,
:root[data-theme="dark"] .bo-drawer__inline-block,
:root[data-theme="dark"] .bo-drawer__note-card,
:root[data-theme="dark"] .bo-drawer__timeline-item {
  background: rgba(15, 17, 24, 0.92);
}

:root[data-theme="dark"] .bo-drawer__fold-body {
  background: linear-gradient(180deg, rgba(15, 17, 24, 0.9), rgba(11, 13, 18, 0.98));
}

:root[data-theme="dark"] .bo-table__link:disabled,
:root[data-theme="dark"] .bo-table__link:disabled:hover {
  border-color: var(--bo-line);
  background: rgba(15, 17, 24, 0.78);
  color: var(--bo-muted);
}

:root[data-theme="dark"] .bo-drawer__fold-summary::after {
  color: var(--bo-muted);
}

:root[data-theme="dark"] .bo-chat-app {
  border-color: rgba(34, 38, 54, 0.96);
  background:
    linear-gradient(180deg, rgba(18, 20, 26, 0.98), rgba(11, 13, 18, 0.98));
}

:root[data-theme="dark"] .bo-chat-sidebar {
  border-color: rgba(34, 38, 54, 0.96);
  background: rgba(15, 17, 24, 0.94);
}

:root[data-theme="dark"] .bo-chat-stage {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96), rgba(11, 13, 18, 0.98));
}

:root[data-theme="dark"] .bo-chat-sidebar__header,
:root[data-theme="dark"] .bo-chat-thread__header {
  border-color: rgba(34, 38, 54, 0.96);
  background: rgba(18, 20, 26, 0.82);
}

:root[data-theme="dark"] .bo-chat-thread__composer-wrap {
  border-color: rgba(34, 38, 54, 0.96);
  background: rgba(18, 20, 26, 0.82);
}

:root[data-theme="dark"] .bo-chat-item:hover {
  background: rgba(91, 124, 250, 0.14);
}

:root[data-theme="dark"] .bo-chat-item.is-active {
  background: rgba(91, 124, 250, 0.18);
  box-shadow: inset 0 0 0 1px rgba(91, 124, 250, 0.16);
}

:root[data-theme="dark"] .bo-chat-item__avatar,
:root[data-theme="dark"] .bo-chat-thread__avatar {
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.22), rgba(91, 124, 250, 0.12));
  color: #d7e0ff;
}

:root[data-theme="dark"] .bo-chat-item__preview,
:root[data-theme="dark"] .bo-chat-thread__line {
  color: rgba(230, 235, 244, 0.8);
}

:root[data-theme="dark"] .bo-chat-thread__line--muted {
  color: rgba(167, 176, 198, 0.78);
}

:root[data-theme="dark"] .bo-chat-thread__line--status {
  color: rgba(173, 191, 255, 0.92);
}

:root[data-theme="dark"] .bo-chat-thread__request {
  background: rgba(15, 17, 24, 0.96);
  border-color: var(--bo-line);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-chat-thread__request--quiet {
  background: rgba(23, 27, 39, 0.96);
  color: rgba(230, 235, 244, 0.82);
}

:root[data-theme="dark"] .bo-chat-bubble {
  background: rgba(15, 17, 24, 0.92);
  border-color: rgba(34, 38, 54, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .bo-chat-bubble--outgoing {
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.24), rgba(91, 124, 250, 0.12));
  border-color: rgba(91, 124, 250, 0.18);
}

:root[data-theme="dark"] .bo-chat-composer__input {
  background: rgba(11, 13, 18, 0.96);
  border-color: rgba(34, 38, 54, 0.96);
  color: var(--bo-ink);
}

:root[data-theme="dark"] .bo-chat-composer__input:focus {
  border-color: rgba(91, 124, 250, 0.46);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.18);
}

:root[data-theme="dark"] .bo-chat-composer__send {
  background: #eef2ff;
  color: #11151d;
}

:root[data-theme="dark"] .bo-chat-composer__send:hover {
  background: #dce5ff;
}

:root[data-theme="dark"] .bo-chat-composer__send::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311151d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 3.5 10.9 14.1'/%3E%3Cpath d='M21.5 3.5 14.8 20.5l-3.9-6.5-6.4-3.8Z'/%3E%3C/svg%3E");
}
