:root {
  color-scheme: light;
  --paper: #fff;
  --white: #fff;
  --ink: #183153;
  --soft: #657a96;
  --line: #d9e7f7;
  --accent: #165dff;
  --accent-strong: #165dff;
  --blue-soft: #f3f8ff;
  --blue-header: #fff;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; }
button, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.frame { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.masthead { background: var(--blue-header); color: var(--accent-strong); border-bottom: 1px solid var(--line); }
.masthead-inner { height: 59px; display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 28px; height: 22px; flex: 0 0 28px; object-fit: contain; }
.wordmark { color: var(--accent); font-size: 15px; font-weight: 600; white-space: nowrap; }
.product-name { margin-left: 3px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--soft); font-size: 12px; white-space: nowrap; }
.connection { margin-left: auto; color: var(--soft); font-size: 12px; white-space: nowrap; }
.connection::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 100%; background: #8d9aac; }
.connection[data-state='ready']::before { background: #68dcca; }
.connection[data-state='error']::before { background: #ffa391; }
.heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 39px 0 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(25px, 4vw, 34px); letter-spacing: -.055em; }
h2 { font-size: 22px; letter-spacing: -.035em; }
.plain { border: 1px solid #cbddef; border-radius: 6px; background: var(--white); color: var(--accent-strong); padding: 7px 16px; min-height: 36px; white-space: nowrap; }
.plain:hover, select:hover { border-color: var(--accent); color: var(--accent); }
.nav { display: flex; gap: 23px; border-bottom: 1px solid var(--line); }
.nav button { position: relative; padding: 10px 5px 13px; border: 0; background: transparent; color: var(--soft); }
.nav button[aria-pressed='true'] { color: var(--accent); font-weight: 700; }
.nav button[aria-pressed='true']::after { content: ''; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
.toolbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.summary { color: var(--soft); }
select { max-width: 55%; padding: 7px 9px; min-height: 36px; color: var(--ink); background: var(--white); border: 1px solid #cbddef; border-radius: 6px; }
.table-shell { overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
section { margin-bottom: 34px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th { font-size: 12px; font-weight: 700; color: var(--soft); background: var(--blue-soft); white-space: nowrap; }
th, td { padding: 15px 17px; border-bottom: 1px solid #e9f0f8; }
td { height: 59px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7faff; }
.mono { font: 13px var(--mono); overflow-wrap: anywhere; }
.muted { color: var(--soft); }
.stamp { min-width: 113px; }
.stamp small { display: block; margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; white-space: nowrap; border-radius: 5px; font-size: 12px; font-weight: 600; background: #edf1f6; color: #425470; }
.status::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status[data-kind='enabled'], .status[data-kind='succeeded'] { background: #e3f3ee; color: #09634d; }
.status[data-kind='running'] { background: #e4eeff; color: #174ca9; }
.status[data-kind='failed'], .status[data-kind='panicked'], .status[data-kind='timed_out'] { background: #fbe8e3; color: #9c3424; }
.status[data-kind='skipped'] { background: #fff2d9; color: #795000; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: var(--accent); font-weight: 600; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.empty { text-align: center; height: 114px; color: var(--soft); }
.error { margin-top: 14px; padding: 10px 12px; border-radius: 6px; color: #8e2c1e; background: #fbe8e3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { width: min(770px, calc(100% - 36px)); max-height: calc(100% - 36px); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); box-shadow: 0 20px 70px #0b1b3e34; }
dialog::backdrop { background: #10233f93; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.dialog-head p { margin-top: 7px; color: var(--soft); }
.log-meta { padding: 0 24px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.log-body { overflow: auto; max-height: 48vh; background: #0e213b; color: #e4edff; padding: 13px 16px; margin: 0 24px 24px; border-radius: 7px; font: 13px/1.65 var(--mono); }
.log-line { display: grid; grid-template-columns: 100px 1fr; gap: 9px; padding-block: 3px; overflow-wrap: anywhere; }
.log-clock { color: #9eb6da; }
.log-note { color: #ffe4ae; }
@media (max-width: 680px) {
  .frame { width: calc(100% - 28px); }
  .heading { margin-top: 25px; }
  .toolbar { min-height: 58px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: block; padding: 10px 13px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; height: auto; min-height: 33px; gap: 8px; border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); color: var(--soft); font-size: 12px; }
  td > * { justify-self: start; }
  td.empty { display: grid; place-items: center; min-height: 90px; grid-template-columns: 1fr; }
  td.empty::before { display: none; }
  .stamp { min-width: 0; }
  .dialog-head, .log-meta { padding-inline: 14px; }
  .log-body { margin: 0 14px 14px; padding-inline: 10px; }
  .log-line { grid-template-columns: 82px 1fr; }
}
.run-reason { display: block; margin-top: 4px; white-space: nowrap; }

.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--accent); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover:not(:disabled) { background: var(--blue-soft); color: var(--accent); }
.icon-button:disabled { cursor: not-allowed; opacity: .42; }
.icon-button[aria-busy='true'] { color: var(--soft); }
.task-actions { display: flex; align-items: center; gap: 7px; }
@media (max-width: 680px) {
  .task-actions { justify-self: start; }
}

.login-view { min-height: calc(100vh - 110px); display: grid; place-items: center; }
.login-form { display: grid; gap: 12px; width: min(360px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.login-form h1 { margin-bottom: 12px; font-size: 24px; letter-spacing: 0; }
.login-form label { color: var(--soft); font-size: 13px; }
.login-form input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cbddef; border-radius: 6px; color: var(--ink); font: inherit; }
.login-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-submit { min-height: 40px; margin-top: 8px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.login-submit:disabled { opacity: .6; cursor: wait; }
.text-command { border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; white-space: nowrap; }
