/* ========================================================= тема «Апельсин» ===
   Тёплая рабочая палитра без декора. Общая оболочка продолжает владеть
   каноничным знаком, Phosphor-иконками и геометрией desktop-панелей. */

html[data-theme="orange"] {
  --dialog-canvas: #f7f4ee;
  --dialog-chrome: #efeae1;
  --dialog-raised: #fdfbf7;
  --dialog-sunken: #f2ece2;
  --dialog-bubble-user: #efe7db;
  --dialog-code-bg: #eee7dc;
  --dialog-hairline: #e3dace;
  --dialog-text: #2b2723;
  --dialog-text-2: #56504a;
  --dialog-text-3: #8a8075;
  --dialog-text-4: #a49a8d;
  --dialog-accent: #c2643a;
  --dialog-accent-press: #a8542a;
  --dialog-danger: #b8493c;
  --dialog-agent-1: #c2643a;
  --dialog-agent-2: #8a5fa8;
  --dialog-agent-3: #3f8a7d;
  --dialog-neutral-bar: #b9ac97;
  --dialog-control-hover: #efe9df;
  --dialog-list-marker: #c0b5a4;
  --dialog-shadow-soft: 0 1px 2px rgb(0 0 0 / 4%);
  --dialog-shadow-popover: 0 14px 34px rgb(60 45 25 / 13%), 0 2px 6px rgb(60 45 25 / 6%);
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-title: Inter, "Segoe UI", system-ui, sans-serif;
  --font-numeric: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
  --display-weight: 650;
  --display-spacing: -0.02em;
  --title-weight: 620;
  --label-spacing: 0.08em;

  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --radius-chip: 8px;
  --rail-width: 2px;
  --stream-status-border-color: transparent;

  --bg: #f7f1e8;
  --surface-1: #f2e8dc;
  --surface-2: #eadfd2;
  --surface-3: #dfd2c4;
  --sunken: #efe5d9;
  --line: #d8cbbc;
  --line-strong: #bea997;

  --card-bg: #fffaf4;
  --card-bg-open: #fffdf9;
  --card-texture: none;
  --card-border: #dfd1c2;
  --card-border-open: #cbb6a4;
  --card-shadow: none;
  --plate-bg: #f4eadf;
  --plate-texture: none;
  --plate-shadow: none;
  --turn-shadow: none;

  --text: #2a2424;
  --text-soft: #4a3f3d;
  --text-muted: #5f534f;
  --text-faint: #645854;
  --warning: #9e3316;
  --accent: #9e3316;
  --accent-soft: #f5dfd4;
  --accent-line: #d86a43;
  --accent-glow: none;
  --selection: #e8a489;
  --brand-gradient: none;
  --brand-shadow: none;

  --provider-none: #8b807b;
  --provider-codex: #168f82;
  --provider-claude: #9e3316;
  --provider-tone-lightness: 0.46;
  --provider-tone-chroma: 0.1;
  --provider-tone-alpha: 0.13;
  --ok: #0d655d;
  --pending: #82500d;

  --dot-input: #9e3316;
  --dot-cache: #168f82;
  --dot-output: #497eaa;
  --dot-think: #8f63a8;
  --comparison-local: #286a9c;
  --comparison-deviation: #72531d;
  --comparison-cost: #764d8d;

  --space-glow-a: transparent;
  --space-glow-b: transparent;
  --space-base: var(--bg);
  --space-star: transparent;
  --star-opacity: 0;
  --decor-opacity: 0;

  --task-rail-width: clamp(270px, 18vw, 320px);
  --activity-rail-width: clamp(300px, 20vw, 360px);
  --shell-header-background: #211a20;
  --shell-header-border: 1px solid #44353e;
  --shell-header-rule: none;
  --shell-control-background: #2b2229;
  --shell-control-border: 1px solid #504049;
  --shell-panel-border: 1px solid var(--line);
  --shell-tab-active-background: #bf4822;
  --shell-tab-active-border: 1px solid #df7652;
  --shell-tab-active-color: #fffaf5;
  --shell-stream-tabs-background: #fffaf4;
  --shell-stream-tab-background: transparent;
  --shell-stream-tab-hover-background: #f6e9df;
  --shell-stream-tab-active-background: #fff4ed;
  --shell-stream-card-background: transparent;
  --shell-stream-card-border: 1px solid transparent;
  --current-limit-name-color: #5f534f;
  --current-limit-value-color: #2a2424;
  --current-limit-reset-color: #5f534f;
  --current-limit-ring-value-color: #2a2424;
  --current-limit-track: #d7caba;
  --tooltip-background: #fffaf4;
}

html[data-theme="orange"] .provider-connection-quality[data-link-state="normal"] {
  --provider-link-active: #8a8075;
  --provider-link-color: #8a8075;
  --provider-link-inactive: #d9cfc0;
}

html[data-theme="orange"] .provider-connection-quality[data-link-state="weak"] {
  --provider-link-active: #c2643a;
  --provider-link-bg: #f7efe7;
  --provider-link-color: #a8542a;
  --provider-link-inactive: #e6cbb8;
}

html[data-theme="orange"] .provider-connection-quality[data-link-state="offline"] {
  --provider-link-active: #b8493c;
  --provider-link-bg: #f8eae8;
  --provider-link-color: #b8493c;
  --provider-link-inactive: #e3c4c0;
}

html[data-theme="orange"] body {
  background: var(--bg);
}

html[data-theme="orange"] body::before,
html[data-theme="orange"] body::after {
  content: none;
}

html[data-theme="orange"] .theme-atmosphere {
  display: none;
}

html[data-theme="orange"] .app-header,
html[data-theme="orange"] .task-rail {
  --surface-1: #211a20;
  --surface-2: #2b2229;
  --surface-3: #3a2d35;
  --line: #44353e;
  --line-strong: #66505c;
  --text: #fff8f1;
  --text-soft: #e8dcd8;
  --text-muted: #b9a9a7;
  --text-faint: #aa9d9b;
  --accent: #f08a62;
  --accent-soft: #4a2927;
  --accent-line: #b84420;
  --ok: #55c7ba;
  --pending: #e7ae5b;
  background: #211a20;
  color: var(--text);
}

html[data-theme="orange"] .task-rail {
  border-color: #44353e;
}

html[data-theme="orange"] .chat,
html[data-theme="orange"] .stream-chat-columns > .chat-pane,
html[data-theme="orange"] .stream-chat-preview {
  background: #f7f1e8;
}

html[data-theme="orange"] .activity-rail {
  background: #eee4d8;
}

html[data-theme="orange"] .stream-tabs {
  color: var(--text);
}

html[data-theme="orange"] .stream-tab[aria-pressed="true"] {
  color: var(--text);
}

html[data-theme="orange"] .stream-tab[aria-pressed="true"]::after {
  background: var(--accent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0.2rem;
  position: absolute;
  right: 0.2rem;
}

html[data-theme="orange"] .provider-dot[data-provider="codex"] {
  background: var(--provider-codex);
}

html[data-theme="orange"] .provider-dot[data-provider="claude"] {
  background: #c84f27;
}

html[data-theme="orange"] .task-workspace-item {
  border-radius: var(--radius-sm);
}

html[data-theme="orange"] .task-workspace-item[data-selected] {
  background: #bf4822;
  border-color: #df7652;
}

html[data-theme="orange"] .task-workspace-item[data-selected] .task-title,
html[data-theme="orange"] .task-workspace-item[data-selected] .task-time,
html[data-theme="orange"] .task-workspace-item[data-selected] .task-workspace-time,
html[data-theme="orange"] .task-workspace-item[data-selected] .task-status {
  color: #fffdf8;
}

html[data-theme="orange"] .task-workspace-item[data-selected] .task-time,
html[data-theme="orange"] .task-workspace-item[data-selected] .task-workspace-time {
  color: #fffdf8;
  font-weight: 700;
}

html[data-theme="orange"] .journal span[data-kilo-usage] {
  color: #7a341c !important;
}

html[data-theme="orange"] .msg {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

html[data-theme="orange"] .msg-agent {
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

html[data-theme="orange"] .msg-user {
  background: #fff0e7;
  border-color: #edc7b5;
  border-radius: 12px;
  color: var(--text);
  padding: 0.72rem 0.9rem;
}

html[data-theme="orange"] .msg-live {
  background: #edf7f3;
  border-color: #8bc5bb;
}

html[data-theme="orange"] .composer {
  background: #fffaf4;
  border-color: #dfd1c2;
  box-shadow: none;
}

html[data-theme="orange"] .composer-send,
html[data-theme="orange"] .board-task-primary {
  background: #bf4822;
  border-color: #bf4822;
  color: #fff;
}

html[data-theme="orange"] .composer-send svg line {
  display: none;
}

html[data-theme="orange"] .composer-send svg path {
  fill: currentColor;
  stroke: none;
}

html[data-theme="orange"] .chat-scroll-down {
  background: #fff8ec;
  border-color: #e8d9c7;
  box-shadow: 0 0.3rem 0.8rem rgb(88 55 26 / 0.12);
  color: #75685d;
}

html[data-theme="orange"] .chat-scroll-down:hover,
html[data-theme="orange"] .chat-scroll-down:focus-visible {
  background: #fff3e3;
  border-color: #dfc8b3;
  color: #5f5147;
}

html[data-theme="orange"] .chat-scroll-count {
  background: #c65c37;
  color: #fffaf4;
}

html[data-theme="orange"] .chat-scroll-down[data-working] {
  background: #fff8ec;
  border-color: #efc7b3;
  color: #bf6a45;
}

html[data-theme="orange"] .activity-stream-item,
html[data-theme="orange"] .workspace-task-panel .board-task-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="orange"] .activity-stream-item[data-current],
html[data-theme="orange"] .workspace-task-panel .board-task-card:hover {
  background: #f8ece3;
  border-color: #d9c6b7;
}

html[data-theme="orange"] .toolbar .view-settings {
  min-height: var(--shell-tab-height, 2rem);
}

html[data-theme="orange"] .view-tab[data-view-button="background"] {
  display: none !important;
}

html[data-background-override="true"][data-background="orange"] {
  --hub-background-color: #f7f1e8;
  --hub-background-image: none;
}
