.theme-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.theme-control select {
  width: auto;
  padding: 4px 7px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.theme-control select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f9fbfa;
  --sidebar: #eff4f1;
  --panel: #ffffff;
  --panel-strong: #e7eeea;
  --raised: #dce8e1;
  --ink: #1a2a24;
  --text: #30433b;
  --muted: #53665d;
  --line: #ccd9d2;
  --line-strong: #9aaba2;
  --brand: #176348;
  --brand-strong: #104b36;
  --brand-soft: #dcf1e6;
  --warn: #785016;
  --danger: #9d3039;
  --shadow: 0 18px 48px #25443622;
  --control-border: #84978d;
  --success-border: #8fb7a4;
  --warning-surface: #fff3df;
  --warning-border: #d5b887;
  --scrim: #1a2a2466;
}

:root[data-theme="light"] :is(input, textarea, select):not(:focus) {
  border-color: var(--control-border);
}

:root[data-theme="light"] .composer__mention:not(:focus) {
  border-color: transparent;
}

:root[data-theme="light"] .button--primary {
  color: #ffffff;
}

:root[data-theme="light"] #send-message:hover {
  background: var(--panel-strong);
}

:root[data-theme="light"] .composer:focus-within,
:root[data-theme="light"] .message--result .message__text {
  border-color: var(--brand);
}

:root[data-theme="light"] .dialog {
  color: var(--ink);
}

:root[data-theme="light"] .dialog::backdrop,
:root[data-theme="light"] .drawer-scrim {
  background: var(--scrim);
}

:root[data-theme="light"] .receipt-group[data-read-status="unread"] h3 {
  background: var(--panel-strong);
}

:root[data-theme="light"] :is(.approval-summary, .listener-alert) {
  background: var(--warning-surface);
  border-color: var(--warning-border);
}

:root[data-theme="light"] .listener-alert:hover {
  background: #fae7c7;
}

:root[data-theme="light"] .task__result {
  background: var(--panel-strong);
}

:root[data-theme="light"] :is(.invite-result, .task__actions [data-task-action="approve"]) {
  background: var(--brand-soft);
  border-color: var(--success-border);
  color: var(--brand-strong);
}

:root[data-theme="light"] .presence:not(.presence--online, .presence--busy) {
  background: #64756d;
}

:root[data-theme="light"] .agent-health .presence {
  background: currentColor;
}

:root[data-theme="light"] .chip--pending {
  background: #e8ecee;
  color: #3f4e58;
}

:root[data-theme="light"] .chip--running {
  background: #e0edf9;
  color: #28537b;
}

:root[data-theme="light"] .chip--waiting {
  background: var(--warning-surface);
  color: var(--warn);
}

:root[data-theme="light"] .chip--done {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

:root[data-theme="light"] .chip--failed {
  background: #fce5e7;
  color: var(--danger);
}

:root[data-theme="light"] .avatar {
  background: #e4e9ee;
  border-color: var(--line);
  color: #3f4e60;
}

:root[data-theme="light"] :is(.avatar--agent, .avatar--codex, .avatar--lancer) {
  background: #eee6f7;
  color: #624281;
}

:root[data-theme="light"] :is(.avatar--executor, .avatar--opencode, .avatar--hermes) {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

:root[data-theme="light"] .avatar--claude {
  background: #fbe9e0;
  color: #9b442b;
}

:root[data-theme="light"] .avatar--gemini {
  background: #e0edf9;
  color: #28537b;
}

:root[data-theme="light"] .avatar--workbuddy {
  background: var(--warning-surface);
  color: var(--warn);
}

:root[data-theme="light"] .avatar--copilot {
  background: #dff1f2;
  color: #235c61;
}

:root[data-theme="light"] .avatar--openclaw {
  background: #ffe1d9;
}

:root[data-theme="light"] .avatar--pi {
  background: #eaf0dc;
  color: #47592a;
}

:root[data-theme="light"] .avatar--claude [stroke="#503524"],
:root[data-theme="light"] .avatar--hermes [stroke="#224640"] {
  stroke: #ffffff;
}

:root[data-theme="light"] .avatar--hermes [fill="#224640"] {
  fill: #ffffff;
}

:root[data-theme="light"] .manual .eyebrow {
  color: var(--brand);
}

:root[data-theme="light"] .manual .muted {
  color: var(--muted);
}
