:root {
  --button-blue: #05227a;
  --button-blue-border: #03195f;
  --button-blue-hover: #03195f;
  --button-outline-border: #b8c8df;
  --button-outline-hover-border: #91a9d0;
}

button.primary,
.primary {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--button-blue-border);
  border-radius: 5px;
  background: var(--button-blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 3px 8px #2347b526;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

button.primary:hover:not(:disabled),
.primary:hover:not(:disabled) {
  border-color: #02144e;
  background: var(--button-blue-hover);
  box-shadow: 0 4px 10px #1e3f9e35;
}

button.primary:active:not(:disabled),
.primary:active:not(:disabled) {
  transform: translateY(1px);
}

.task-attention button.task-attention-open,
.overview-current-details button.overview-action-button {
  border-color: #744b00;
  background: #8f5c00;
  color: #fff;
  box-shadow: 0 2px 5px #80530030;
}

.task-attention button.task-attention-open:hover:not(:disabled),
.overview-current-details button.overview-action-button:hover:not(:disabled) {
  border-color: #603d00;
  background: #744b00;
  color: #fff;
  box-shadow: 0 3px 7px #80530040;
}

.task-attention button.task-attention-open:focus-visible,
.overview-current-details button.overview-action-button:focus-visible {
  outline-color: #805300;
}

button.outline,
.outline,
button.small-btn,
.small-btn {
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid var(--button-outline-border);
  border-radius: 5px;
  background: #fff;
  color: #405673;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 1px 2px #203b6010;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

button.small-btn,
.small-btn {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 12px;
}

button.outline:hover:not(:disabled),
.outline:hover:not(:disabled),
button.small-btn:hover:not(:disabled),
.small-btn:hover:not(:disabled) {
  border-color: var(--button-outline-hover-border);
  background: #f4f7fd;
  color: #29466f;
}

button.danger:not(.danger-primary) {
  border-color: #e0b5bb;
  color: #a93440;
}

button.danger:not(.danger-primary):hover:not(:disabled) {
  border-color: #ca7b85;
  background: #fff4f5;
  color: #922b36;
}

button.primary:focus-visible,
button.outline:focus-visible,
button.small-btn:focus-visible,
button.danger:focus-visible {
  outline: 2px solid #5275c8;
  outline-offset: 2px;
}

.tab.active {
  color: #294da9;
  border-bottom-color: #294da9;
}

.task-board-tab.active,
.task-subtask-tab.active,
.agent-category-tabs button[aria-selected="true"],
.repository-tabs button.active,
.tools-providers button.active,
.tools-sections button.active,
dialog:has(#preset-search) .preset-category-tabs .tab.active {
  border-color: #bccbec;
  background: #edf2fc;
  color: #294da9;
}
