:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #656d77;
  --line: #e4e7eb;
  --soft: #f6f7f9;
  --accent: #315ec8;
  --success: #267454;
  --danger: #b83d42;
  --radius: 5px;
  --header-height: 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.header { height: var(--header-height); display: flex; align-items: center; gap: 32px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; }
.header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo { font-size: 14px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; }
.header-nav { display: flex; align-self: stretch; gap: 24px; flex-shrink: 0; }
.nav-tab { display: flex; align-items: center; border-bottom: 2px solid transparent; padding: 1px 0 0; color: var(--muted); }
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.build-info { margin-left: auto; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .header { flex-wrap: wrap; gap: 0 20px; }
  .header-left, .header-nav { height: 42px; }
  .build-info { flex-basis: 100%; margin-top: -5px; text-align: right; }
}
@media (max-width: 359px) { :root { --header-height: 104px; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); }
.icon-btn:hover { background: var(--soft); }
.btn-primary { min-height: 36px; padding: 7px 18px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 550; }
.btn-primary:hover:not(:disabled) { background: #353c45; }
.empty, .loading { color: var(--muted); padding: 40px 20px; text-align: center; }
@media (max-width: 600px) { .header { gap: 0 20px; padding: 0 12px; } .header-nav { gap: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.console-select { width: 100%; min-width: 0; }
.console-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; min-height: 32px; padding: 5px 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; text-align: left; }
.console-select-trigger:hover:not(:disabled) { border-color: #aab3bf; }
.console-select-trigger[aria-expanded="true"] { border-color: #8c9bb0; }
.console-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-select-trigger svg { width: 14px; height: 14px; color: var(--muted); }
.console-select-menu { position: fixed; z-index: 1000; padding: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px #20242a14; box-sizing: border-box; }
.console-select-menu[hidden] { display: none; }
.console-select-option { position: relative; min-height: 32px; padding: 7px 10px 7px 18px; border-radius: 3px; color: var(--ink); font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.console-select-option[aria-selected="true"] { color: #254f9e; font-weight: 550; }
.console-select-option[aria-selected="true"]::before { content: ''; position: absolute; left: 7px; top: 14px; width: 3px; height: 8px; background: currentColor; border-radius: 1px; }
.console-select-option.focused { background: var(--soft); }
.console-select-option[aria-disabled="true"] { color: var(--muted); opacity: .55; cursor: default; }
.form-group .console-select-trigger { min-height: 38px; padding: 8px 11px; font-size: 13px; border-color: #cdd2d9; }
select[hidden] { display: none !important; }

/* Task status in the stage selector. */
.console-select-option[data-status="passed"], .console-select-trigger[data-status="passed"] { color: #167344; }
.console-select-option[data-status="running"], .console-select-trigger[data-status="running"],
.console-select-option[data-status="assigned"], .console-select-trigger[data-status="assigned"] { color: #245dbe; }
.console-select-option[data-status="failed"], .console-select-trigger[data-status="failed"] { color: #b42332; }
.console-select-option[data-status="pending"], .console-select-trigger[data-status="pending"],
.console-select-option[data-status="cancelled"], .console-select-trigger[data-status="cancelled"],
.console-select-option[data-status="shelved"], .console-select-trigger[data-status="shelved"] { color: #667085; }
