html[data-theme="dark"] {
  color-scheme: dark;
  color: #e6eee9;
  background: #101613;
}
html[data-theme="dark"] body {
  background: #101613;
  color: inherit;
}
html[data-theme="dark"] a {
  color: #a6d8b8;
}
html[data-theme="dark"] .eyebrow {
  color: #91aa9d;
}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .subtle,
html[data-theme="dark"] .privacy-note,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .typing,
html[data-theme="dark"] .service-meta,
html[data-theme="dark"] .history-note,
html[data-theme="dark"] .updated-at,
html[data-theme="dark"] footer,
html[data-theme="dark"] .runtime-map__note {
  color: #a2b3a9;
}
html[data-theme="dark"] :is(
  .card, .chat-card, .overall, .panel, .login-panel, .editor-toolbar,
  .flow-node, .runtime-map, .runtime-node, .draft-item
) {
  color: #e6eee9;
  background-color: #18211d;
  border-color: #35463d;
  box-shadow: 0 8px 28px #0003;
}
html[data-theme="dark"] :is(.chat-toolbar, .composer, .savebar) {
  color: #e6eee9;
  background-color: #18211ded;
  border-color: #35463d;
}
html[data-theme="dark"] :is(input:not([type="checkbox"]), select, textarea) {
  color: #e6eee9;
  background-color: #111915;
  border-color: #45594d;
}
html[data-theme="dark"] :is(input, select, textarea)::placeholder {
  color: #8da095;
}
html[data-theme="dark"] :is(input, select, textarea):focus,
html[data-theme="dark"] button:focus-visible {
  outline-color: #68d39b;
}
html[data-theme="dark"] :is(.secondary, .refresh.secondary) {
  color: #c5e5d0;
  background: #24382e;
  border: 1px solid #3e5b49;
}
html[data-theme="dark"] :is(.quiet, .remove-date) {
  color: #a8dbba;
}
html[data-theme="dark"] :is(.tag, .top-actions a, .topbar-links .tag) {
  color: #c2e4ce;
  background: #22352b;
}
html[data-theme="dark"] .primary {
  color: #fff;
  background: #176347;
}
html[data-theme="dark"] :is(.status.error, .login-status, .log-outage) {
  color: #ff9b92;
}
html[data-theme="dark"] :is(.date-list li, .preview-result, .notice) {
  color: #d6e8dc;
  background: #1b2b22;
  border-color: #355441;
}
html[data-theme="dark"] .notice {
  color: #c8e4d2;
}
html[data-theme="dark"] .draft-item {
  background: #141c18;
}
html[data-theme="dark"] .draft-actions .quiet {
  border-color: #35463d;
}
html[data-theme="dark"] .savebar {
  background: #151e19ed;
}
.theme-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d4e0da;
  border-radius: 999px;
  color: #1d6049;
  background: #e8f3ec;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover {
  background: #dceddf;
}
html[data-theme="dark"] .theme-toggle {
  border-color: #456150;
  color: #d5eadc;
  background: #22352b;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: #2b4335;
}
html[data-theme="dark"] .status-topbar nav a {
  color: #b6dfc4;
}
html[data-theme="dark"] .brand {
  color: #d5eadc;
}
html[data-theme="dark"] .overall p {
  color: #b5c9bd;
}
html[data-theme="dark"] .status-operational {
  border-color: #27795d;
}
html[data-theme="dark"] .status-operational .overall-heading {
  background: #15382c;
}
html[data-theme="dark"] .overall-icon,
html[data-theme="dark"] .service-icon {
  color: #68dfb4;
  background: #163d30;
}
html[data-theme="dark"] .status-degraded .overall-icon,
html[data-theme="dark"] .service-icon-degraded {
  color: #ffd06a;
  background: #43351c;
}
html[data-theme="dark"] .status-outage .overall-icon,
html[data-theme="dark"] .service-icon-outage {
  color: #ff958b;
  background: #482824;
}
html[data-theme="dark"] .service-icon-unknown {
  color: #b1c0b7;
  background: #29352e;
}
html[data-theme="dark"] .service-row,
html[data-theme="dark"] .log-row,
html[data-theme="dark"] .log-list {
  border-color: #2b3931;
}
html[data-theme="dark"] .service-status,
html[data-theme="dark"] .log-result {
  color: #69dfb5;
}
html[data-theme="dark"] .service-status-degraded,
html[data-theme="dark"] .log-degraded {
  color: #ffd06a;
}
html[data-theme="dark"] .service-status-outage {
  color: #ff958b;
}
html[data-theme="dark"] :is(.service-status-unknown, .log-unknown, .service-meta, .log-row time, .log-latency) {
  color: #9aaba1;
}
html[data-theme="dark"] .uptime {
  color: #b7d0c1;
}
html[data-theme="dark"] .bar-unknown {
  background: #34433a;
}
html[data-theme="dark"] .messages {
  background-color: #111915;
  background-image: radial-gradient(#293a30 1px, transparent 1px);
}
html[data-theme="dark"] .bubble {
  color: #e5ede8;
  background: #1c2721;
  border-color: #35463d;
  box-shadow: 0 2px 7px #0003;
}
html[data-theme="dark"] .patient .bubble {
  background: #183a2a;
  border-color: #2b5a40;
}
html[data-theme="dark"] .system .bubble {
  color: #b9c9bf;
  background: #202923;
}
html[data-theme="dark"] .quick-actions button {
  color: #c5e5d0;
  background: #20382b;
  border-color: #3d6049;
}
html[data-theme="dark"] .chat-toolbar span {
  color: #a2b3a9;
}
html[data-theme="dark"] .canvas-scroll {
  background-color: #111915;
  background-image: radial-gradient(#33473b 1px, transparent 1px);
  border-color: #35463d;
}
html[data-theme="dark"] .flow-node__head {
  background: #202c26;
}
html[data-theme="dark"] .flow-node__title,
html[data-theme="dark"] .runtime-node strong {
  color: #dcebe2;
}
html[data-theme="dark"] .flow-node__body,
html[data-theme="dark"] .port-row,
html[data-theme="dark"] .runtime-node p {
  color: #adbeb4;
}
html[data-theme="dark"] .flow-node__input,
html[data-theme="dark"] .port-button {
  background: #19231e;
  border-color: #70b08a;
}
html[data-theme="dark"] .flow-node.selected {
  border-color: #53bd83;
  box-shadow: 0 0 0 3px #53bd832c, 0 5px 18px #0005;
}
html[data-theme="dark"] .palette-item {
  color: #e2ebe5;
  background: #19231e;
  border-color: #35463d;
}
html[data-theme="dark"] .palette-item:hover {
  background: #22332a;
  border-color: #5e9872;
}
html[data-theme="dark"] .palette-item small,
html[data-theme="dark"] .runtime-node__kind {
  color: #a4b6aa;
}
html[data-theme="dark"] .mark-start,
html[data-theme="dark"] .flow-node__icon {
  color: #9be1b3;
  background: #214632;
}
html[data-theme="dark"] .mark-message {
  color: #9ec2ff;
  background: #23354e;
}
html[data-theme="dark"] .mark-condition {
  color: #ffd27a;
  background: #44371f;
}
html[data-theme="dark"] .mark-replies {
  color: #d6b5ff;
  background: #382849;
}
html[data-theme="dark"] .mark-handoff {
  color: #ffa99a;
  background: #482b27;
}
html[data-theme="dark"] .edges path {
  stroke: #69b188;
}
html[data-theme="dark"] .edges circle {
  fill: #69b188;
}
html[data-theme="dark"] .edges text {
  fill: #aac8b4;
}
html[data-theme="dark"] .runtime-map__badge,
html[data-theme="dark"] .runtime-node {
  color: #d6e6dc;
  background: #19231e;
  border-color: #35463d;
}
html[data-theme="dark"] .runtime-node--language {
  background: #1c3025;
  border-color: #365d43;
}
html[data-theme="dark"] .runtime-node--llm {
  background: #282337;
  border-color: #51466b;
}
html[data-theme="dark"] .runtime-node--local {
  background: #342c1e;
  border-color: #5a4a2c;
}
html[data-theme="dark"] .runtime-map__note {
  color: #a2b3a9;
}
html[data-theme="dark"] .flow-topbar .quiet {
  border-color: #35463d;
}
html[data-theme="dark"] ::selection {
  color: #101613;
  background: #9de1b6;
}
