:root {
  --bg: #F4F6F9;
  --surface: #ffffff;
  --ink: #333333;
  --muted: #888888;
  --line: rgba(28, 36, 64, 0.08);
  --accent: #4F73FF;
  --accent-2: #7B93FF;
  --side: #fbfcff;
  --side-ink: #3c4458;
  --ok: #0b7a48;
  --ok-bg: rgba(14, 138, 82, 0.12);
  --bad: #b42318;
  --bad-bg: rgba(197, 54, 48, 0.12);
  --run: #8a5a00;
  --run-bg: rgba(180, 122, 20, 0.14);
  --keep: #4c3aa8;
  --keep-bg: rgba(91, 69, 198, 0.12);
  --info: #3454E0;
  --info-bg: rgba(79, 115, 255, 0.12);
  --space: 8px;
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 8px 24px rgba(31, 41, 71, 0.06);
}

* { box-sizing: border-box; }
html { color-scheme: light; }

body {
  margin: 0;
  background:
    radial-gradient(880px 360px at 8% -12%, rgba(79, 115, 255, 0.08), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #3454E0; }

.app { min-height: 100vh; }
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.workspace { display: contents; }
.page { grid-column: 1; grid-row: 3; padding: 24px 32px 16px; }
.top-notices + .page { padding-top: 8px; }
.page > .table-wrap,
.page > .empty,
.page > form.card,
.page > .card { margin-bottom: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(40, 50, 90, 0.08);
}
.avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  flex: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.avatar:hover { transform: translateY(-1px); border-color: rgba(79, 115, 255, 0.45); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--side-ink);
  white-space: nowrap;
  text-decoration: none;
}
.top-link:hover { text-decoration: none; color: var(--ink); background: rgba(79, 115, 255, 0.06); }
.top-link.is-active { background: rgba(79, 115, 255, 0.12); color: var(--accent); font-weight: 650; }
.top-status {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--run-bg);
  color: var(--run);
  font-size: 12px;
  white-space: nowrap;
}
.gear-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--side-ink);
  flex: none;
}
.gear-link:hover { color: var(--ink); background: rgba(79, 115, 255, 0.06); text-decoration: none; }
.gear-link.is-active { color: var(--accent); background: rgba(79, 115, 255, 0.12); }

.topbar-wrap {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px 0 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-notices {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 16px 32px 0;
}
.session { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account { position: relative; }
.account-trigger {
  height: 40px;
  padding: 0 4px 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 10px;
  border-radius: 999px;
  color: var(--ink);
}
.account-trigger:hover,
.account:focus-within .account-trigger { background: rgba(79, 115, 255, 0.06); }
.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 8px;
  width: max-content;
  z-index: 6;
}
.account:hover .account-menu,
.account:focus-within .account-menu { display: block; }
.account-menu-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.account-menu-list button {
  width: auto;
  height: 36px;
  justify-content: flex-start;
  padding: 0 12px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 10px;
  color: var(--ink);
}
.account-menu-list button:hover { background: rgba(79, 115, 255, 0.08); }
.account-menu-list button.danger,
.account-menu-list button.danger:hover { color: var(--bad); }
.field-hint { margin: -4px 0 0; color: var(--muted); font-size: 12px; }
input[readonly] { background: #f6f7fb; color: var(--muted); }

.foot {
  grid-column: 1;
  grid-row: 4;
  padding: 8px 32px 24px;
  color: var(--muted);
  font-size: 12px;
}

h1, h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; color: #333333; }
.hint { margin: 0 0 16px; color: var(--muted); }
.row, .toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.card, .panel, .table-wrap, .login-card, .page-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .panel { padding: 20px; }
.section { padding-top: 8px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 4px 0 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  height: 47px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
  line-height: 20px;
  color: #333333;
}
.table-wrap td.source { white-space: nowrap; }
th {
  height: 39px;
  color: #888888;
  font-weight: 600;
  background: #fafbfd;
  font-size: 12px;
  letter-spacing: 0;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover td { background: rgba(79, 115, 255, 0.035); }
.state {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(28, 36, 64, 0.06);
}
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8b93a7; }
.state-ok { background: var(--ok-bg); }
.state-ok::before { background: var(--ok); }
.state-bad { background: var(--bad-bg); }
.state-bad::before { background: var(--bad); }
.state-run { background: var(--run-bg); }
.state-run::before { background: var(--run); }
.state-keep { background: var(--keep-bg); }
.state-keep::before { background: var(--keep); }
.build-no {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79, 115, 255, 0.10);
  color: var(--accent);
  font-size: 12px;
  line-height: 20px;
}
.click-row { cursor: pointer; }
.name { font-weight: 650; color: var(--ink); }
.name:hover { color: var(--accent); }

label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  height: 40px;
  border: 1px solid rgba(28, 36, 64, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  color: #333333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { height: auto; padding: 8px 12px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #4F73FF;
  box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.18);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { flex-direction: row; align-items: center; color: var(--ink); }

.btn, button, .btn-ghost {
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(28, 36, 64, 0.12);
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, button:hover, .btn-ghost:hover { text-decoration: none; background: #f6f7fb; }
.btn.is-active, .btn.is-active:hover {
  background: rgba(79, 115, 255, 0.12);
  border-color: rgba(79, 115, 255, 0.18);
  color: var(--accent);
  font-weight: 650;
}
.is-source-hidden { display: none; }
.md h1, .md h2, .md h3, .md h4 { margin: 18px 0 8px; line-height: 1.35; }
.md h1 { font-size: 24px; }
.md h2 { font-size: 18px; }
.md h3 { font-size: 16px; }
.md p, .md ul { margin: 8px 0; }
.md ul { padding-left: 1.2em; }
.md li { margin: 4px 0; }
.md a { color: var(--accent); }
.md blockquote {
  margin: 12px 0;
  padding: 8px 14px;
  border-left: 3px solid rgba(79, 115, 255, 0.45);
  color: var(--muted);
}
.md table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { color: var(--muted); font-weight: 650; background: rgba(79, 115, 255, 0.04); }
.md code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(28, 36, 64, 0.06);
  border-radius: 6px;
  padding: 0 4px;
}
.md-code {
  min-height: 0;
  margin: 12px 0;
  background: #f7f8fc;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
  white-space: pre;
  font-family: var(--mono);
  font-size: 12px;
}
.btn-primary {
  background: linear-gradient(180deg, #7B93FF 0%, #4F73FF 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 115, 255, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
  background: linear-gradient(180deg, #7B93FF 0%, #4F73FF 100%);
  box-shadow: 0 10px 22px rgba(79, 115, 255, 0.28);
}
.btn-danger { background: #c53630; border-color: transparent; color: #fff; }
.btn-danger:hover { color: #fff; background: #b12e29; }
.btn-ok {
  background: linear-gradient(180deg, #2ea36a 0%, #0e8a52 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 138, 82, 0.22);
}
.btn-ok:hover { color: #fff; background: linear-gradient(180deg, #2ea36a 0%, #0e8a52 100%); filter: brightness(1.05); box-shadow: 0 10px 22px rgba(14, 138, 82, 0.28); }
.btn-warn {
  background: linear-gradient(180deg, #f0b44a 0%, #e09a14 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(224, 154, 20, 0.22);
}
.btn-warn:hover { color: #fff; background: linear-gradient(180deg, #f0b44a 0%, #e09a14 100%); filter: brightness(1.05); box-shadow: 0 10px 22px rgba(224, 154, 20, 0.28); }
#restart-safe[hidden] { display: none !important; }
.btn-danger-ghost { background: transparent; border-color: rgba(197, 54, 48, 0.4); color: var(--bad); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); height: 32px; }
.btn-quiet:hover { color: var(--ink); background: transparent; }
button:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  box-shadow: none;
}
.linkish.danger { color: var(--bad); }
.linkish:hover { text-decoration: none; background: rgba(79, 115, 255, 0.08); }
.linkish.danger:hover { background: rgba(197, 54, 48, 0.08); color: var(--bad); }
.linkish:disabled,
.linkish:disabled:hover {
  color: var(--muted);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: rgba(136, 136, 136, 0.12);
  color: #5f6673;
}
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-run { background: var(--run-bg); color: var(--run); }
.tag-keep { background: var(--keep-bg); color: var(--keep); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-mute { background: rgba(136, 136, 136, 0.12); color: #666666; }
.mark-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(28, 36, 64, 0.06);
}
.mark-icon svg { display: block; }
.mark-ok { background: var(--ok-bg); color: var(--ok); }
.mark-bad { background: var(--bad-bg); color: var(--bad); }
.mark-run { background: var(--run-bg); color: var(--run); }
.mark-run:not(.mark-ring) svg { animation: branch-spin 0.8s linear infinite; }
.mark-ring {
  color: var(--accent);
  background: rgba(79, 115, 255, 0.12);
}
.mark-ring-svg {
  overflow: visible;
  transform: rotate(-90deg);
}
.mark-ring-track {
  stroke: rgba(79, 115, 255, 0.22);
}
.mark-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dasharray 0.35s ease;
}
.mark-ring-spin {
  stroke: var(--accent-2);
  stroke-linecap: round;
  opacity: 0.95;
  animation: mark-ring-orbit 1s linear infinite;
}
@keyframes mark-ring-orbit {
  to { stroke-dashoffset: -100; }
}
@media (prefers-reduced-motion: reduce) {
  .mark-ring-spin { animation: none; opacity: 0; }
}

.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.banner { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.err { background: var(--bad-bg); color: var(--bad); }
.banner.run { background: var(--run-bg); color: var(--run); }
.banner.warn { background: var(--run-bg); color: var(--run); }
.banner.run p { margin: 0; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-title { margin: 0 0 8px; color: var(--ink); font-size: 16px; font-weight: 700; }
.filters {
  --filter-slot: 252px;
  --filter-label: 4em;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--filter-slot));
  gap: 16px;
  align-items: center;
  justify-content: start;
}
.filters > label {
  display: grid;
  grid-template-columns: var(--filter-label) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  width: var(--filter-slot);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  white-space: nowrap;
}
.filters > label > input,
.filters > label > .picker {
  width: 100%;
  min-width: 0;
}
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.list-toolbar .filters {
  flex: 1 1 360px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.toolbar-actions .btn,
.toolbar-actions button { height: 40px; }
.audit-bar {
  --filter-slot: 252px;
  --filter-label: 4em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.audit-bar > .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}
.toolbar-tail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: none;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; flex: none; }
.page-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.page-note,
.form-note { margin: 4px 0 0; color: #888888; font-size: 12px; line-height: 18px; }
.page-title .page-note {
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(28, 36, 64, 0.12);
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-sheet > .form-note { margin: 0; padding: 0 16px 8px; }
.page-sheet .list-toolbar,
.board-panel .list-toolbar { margin: 0; padding: 16px 16px 8px; }
.page-sheet .table-wrap,
.page-sheet .empty,
.page-sheet > .pager {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.page-sheet > .pager { padding: 8px 16px 16px; }
.page-sheet .empty { padding: 48px 24px; }
.page-sheet .grant-actions { margin: 0; padding: 8px 16px 16px; }
.grant-cell { width: 96px; text-align: center; }
.grant-check { justify-content: center; margin: 0; gap: 0; }
.grant-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #4F73FF;
  box-shadow: none;
}
.row-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.row-actions form { display: flex; margin: 0; }
.cell-strong { font-weight: 650; color: #333333; }
.muted-empty { color: #888888; font-size: 12px; }
.col-time {
  width: 168px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #888888;
}
.hover-tip {
  position: fixed;
  z-index: 80;
  max-width: 240px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #333333;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0 8px 24px rgba(28, 36, 68, 0.16);
  pointer-events: none;
}
.hover-tip[hidden] { display: none !important; }
.pager {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  color: #333333;
  font-size: 13px;
  white-space: nowrap;
}
.pager-total { margin: 0 8px 0 0; white-space: nowrap; }
.pager-size-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: none;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
}
.pager-size-name { flex: none; white-space: nowrap; }
.pager-size-label .picker { width: 76px; flex: none; }
.pager-size-label .picker-trigger {
  width: 76px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
}
.pager-size { height: 32px; border-radius: 10px; }
.pager-btn, .pager-num, .pager-gap {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager-num, .pager-btn { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid rgba(28, 36, 64, 0.12); }
.pager-num:hover, .pager-btn:hover { text-decoration: none; background: #f6f7fb; }
.pager-num.is-active, .pager-num.is-active:hover { background: rgba(79, 115, 255, 0.12); color: var(--accent); border-color: transparent; }
.pager-btn.is-disabled, .pager-gap { color: var(--muted); background: transparent; border-color: transparent; }
dialog.dialog-wide { width: min(640px, calc(100% - 32px)); }
.picker { position: relative; width: 100%; }
.picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.picker-trigger {
  width: 100%;
  height: 40px;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 36, 64, 0.12);
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font-weight: 500;
}
.picker-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%236d7588' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2 3.5 5 6.5 8 3.5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  transition: transform 0.15s ease;
}
.picker.is-open .picker-trigger,
.picker-trigger:hover {
  border-color: rgba(79, 115, 255, 0.45);
  background: #fff;
}
.picker.is-open .picker-trigger {
  box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.12);
}
.picker.is-open .picker-trigger::after { transform: rotate(180deg); }
.picker.is-disabled .picker-trigger { opacity: 0.45; cursor: not-allowed; }
.picker-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 320px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 36, 68, 0.14);
}
.picker-menu.is-up { top: auto; bottom: calc(100% + 6px); }
.picker-option {
  width: 100%;
  height: auto;
  min-height: 36px;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.picker-option:hover { background: rgba(79, 115, 255, 0.06); }
.picker-option.is-selected {
  background: rgba(79, 115, 255, 0.1);
  color: var(--accent);
  font-weight: 650;
}
.picker-option.is-selected::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.config-control .picker { flex: 1; min-width: 0; }
.branch-field { width: 100%; min-width: 0; }
.branch-box { display: flex; gap: 8px; align-items: center; }
.branch-box input { flex: 1; min-width: 0; }
.branch-refresh {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 12px;
}
.branch-refresh::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236d7588' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M13.2 8a5.2 5.2 0 1 1-1.4-3.5M13.2 2.8V5.4H10.6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.branch-refresh.is-loading::before { animation: branch-spin 0.8s linear infinite; }
@keyframes branch-spin { to { transform: rotate(360deg); } }
.branch-menu[hidden] { display: none !important; }
.branch-menu {
  width: calc(100% - 48px);
  box-sizing: border-box;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 36, 68, 0.06);
}
.branch-option {
  width: 100%;
  height: auto;
  min-height: 36px;
  justify-content: flex-start;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.branch-option:hover { background: rgba(79, 115, 255, 0.06); }
.branch-option.is-selected {
  background: rgba(79, 115, 255, 0.1);
  color: var(--accent);
  font-weight: 650;
}
.time-range {
  position: relative;
  display: grid;
  grid-template-columns: var(--filter-label) minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  width: var(--filter-slot);
  max-width: 100%;
  min-height: 40px;
}
.time-range-name {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 40px;
  white-space: nowrap;
}
.time-range-boxes {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.time-range-sep {
  flex: none;
  color: #888888;
  font-size: 13px;
  line-height: 40px;
}
.time-range .time-picker { flex: 1 1 0; width: auto; min-width: 0; }
.time-range .time-trigger { padding: 0 8px; gap: 4px; font-size: 12px; }
.time-range .time-trigger span {
  overflow: hidden;
  text-overflow: clip;
}
.time-error { grid-column: 1 / -1; margin: 0; color: var(--bad); font-size: 12px; }
.time-picker { position: relative; width: 100%; }
.time-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.time-trigger {
  width: 100%;
  height: 40px;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 36, 64, 0.12);
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font-weight: 500;
}
.time-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.time-trigger.is-empty span { color: var(--muted); font-weight: 400; }
.time-trigger::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='11' rx='2' fill='none' stroke='%236d7588' stroke-width='1.4'/%3E%3Cpath d='M2 6.5h12M5 2v3M11 2v3' fill='none' stroke='%236d7588' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.time-picker.is-open .time-trigger,
.time-trigger:hover {
  border-color: rgba(79, 115, 255, 0.45);
  background: #fff;
}
.time-picker.is-open .time-trigger { box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.12); }
.time-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 292px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 36, 68, 0.14);
}
.time-popover.is-up { top: auto; bottom: calc(100% + 6px); }
.time-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.time-head strong { font-size: 14px; font-weight: 650; }
.time-nav {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 18px;
}
.time-nav:hover { background: rgba(79, 115, 255, 0.08); }
.time-week, .time-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.time-week { margin-bottom: 4px; color: var(--muted); font-size: 12px; text-align: center; }
.time-day {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.time-day:hover { background: rgba(79, 115, 255, 0.08); }
.time-day.is-muted { color: #b0b6c4; }
.time-day.is-today { box-shadow: inset 0 0 0 1px rgba(79, 115, 255, 0.45); }
.time-day.is-selected, .time-day.is-selected:hover { background: var(--accent); color: #fff; box-shadow: none; }
.time-range-hint { margin: 0 0 8px; color: #888888; font-size: 12px; line-height: 18px; }
.time-popover.is-range .time-days { gap: 0; }
.time-popover.is-range .time-day { width: 100%; height: 36px; border-radius: 0; }
.time-popover.is-range .time-day.is-in-range,
.time-popover.is-range .time-day.is-in-range:hover { background: rgba(79, 115, 255, 0.16); color: #333333; border-radius: 0; }
.time-popover.is-range .time-day.is-start,
.time-popover.is-range .time-day.is-end,
.time-popover.is-range .time-day.is-start:hover,
.time-popover.is-range .time-day.is-end:hover { background: #4F73FF; color: #fff; box-shadow: none; }
.time-popover.is-range .time-day.is-start { border-radius: 8px 0 0 8px; }
.time-popover.is-range .time-day.is-end { border-radius: 0 8px 8px 0; }
.time-popover.is-range .time-day.is-start.is-end { border-radius: 8px; }
.time-clock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.time-clock label { gap: 4px; font-size: 12px; }
.time-clock input {
  height: 36px;
  text-align: center;
  padding: 0 8px;
}
.time-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.time-actions .btn-primary, .time-actions .btn-quiet { height: 32px; }
.views { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.views a, .view-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.view-add { color: #0e8a52; font-weight: 650; }
.views a:hover, .view-add:hover { text-decoration: none; color: #0c7747; background: rgba(14, 138, 82, 0.08); }
.views a:hover { color: var(--ink); background: rgba(79, 115, 255, 0.06); }
.views a.is-active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(79, 115, 255, 0.18);
  box-shadow: 0 4px 14px rgba(28, 36, 68, 0.06);
  font-weight: 650;
}
.board-view-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(79, 115, 255, 0.10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 71, 0.08);
}
.board-view-add { display: flex; flex-direction: column; gap: 10px; }
.board-view-add label { min-width: 0; }
.board-view-tools .btn-primary,
.board-view-tools .btn-danger-ghost { width: 100%; }
.page.board-page { padding: 0; }
.board {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 64px);
}
.board-side {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-right: 0;
  background: transparent;
}
.board-create, .board-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--side-ink);
  text-decoration: none;
}
.board-create { margin: 0; color: #0e8a52; font-weight: 650; }
.board-create::before { content: "+"; font-size: 18px; line-height: 1; color: #0e8a52; }
.board-link { margin: 0; }
.board-create:hover { color: #0c7747; background: rgba(14, 138, 82, 0.08); text-decoration: none; }
.board-link:hover { color: var(--ink); background: rgba(79, 115, 255, 0.06); text-decoration: none; }
.board-link.is-active { background: rgba(79, 115, 255, 0.12); color: var(--accent); font-weight: 650; }
.board-widget {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(79, 115, 255, 0.10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 71, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.board-widget:hover {
  box-shadow: 0 16px 36px rgba(79, 115, 255, 0.16);
  transform: translateY(-1px);
}
.board-widget summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: -4px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}
.board-widget summary:hover { background: rgba(79, 115, 255, 0.06); }
.board-widget summary::-webkit-details-marker { display: none; }
.board-widget summary > span:first-child { margin-right: auto; }
.board-count {
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79, 115, 255, 0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
}
.board-widget summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.board-widget[open] summary::after { transform: rotate(225deg); }
.board-widget p { margin: 10px 0 0; }
.board-widget ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-widget li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.board-widget li.board-task { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.board-task-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.build-progress { display: flex; flex-direction: column; gap: 4px; min-width: 72px; }
.progress-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(28, 36, 64, 0.08);
  overflow: hidden;
}
.progress-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 100% 100%;
  transition: width 0.35s ease;
  overflow: hidden;
}
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.55) 45%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0.55) 55%,
      transparent 100%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.22) 0 6px,
      transparent 6px 12px
    );
  background-size: 60% 100%, 12px 12px;
  background-repeat: no-repeat, repeat;
  animation: progress-buffer 1.1s linear infinite;
  pointer-events: none;
}
@keyframes progress-buffer {
  0% { background-position: -40% 0, 0 0; }
  100% { background-position: 140% 0, 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill::after { animation: none; background-image: none; }
}
.progress-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-progress { margin: 16px 20px 0; }
.log-progress .progress-track { height: 8px; }
.banner.run .build-progress { margin-top: 8px; }

.project-command {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.project-command-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.project-command-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 115, 255, 0.10);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 18px;
}
.project-entry {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.03em;
  color: #1f2740;
  overflow-wrap: anywhere;
}
.project-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.project-command-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.project-command-nav,
.project-command-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.project-command-nav {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.project-command-nav .btn {
  background: #f7f8fc;
  border-color: transparent;
  box-shadow: none;
}
.project-command-nav .btn:hover {
  background: rgba(79, 115, 255, 0.08);
  color: var(--accent);
}
.project-command-primary .btn-quiet.danger {
  color: var(--bad);
  background: transparent;
  border-color: transparent;
}
.project-command-primary .btn-quiet.danger:hover {
  background: var(--bad-bg);
}

.project-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.project-status.is-run {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.95), rgba(255, 244, 220, 0.72));
  border-color: rgba(180, 122, 20, 0.16);
}
.project-status.is-wait {
  background: rgba(79, 115, 255, 0.06);
  border-color: rgba(79, 115, 255, 0.12);
}
.project-status.is-pending {
  background: #f8f9fd;
  border-color: rgba(28, 36, 64, 0.08);
}
.project-status-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.project-status-pulse,
.project-status-mark {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  flex: none;
}
.project-status-pulse {
  background: var(--run);
  box-shadow: 0 0 0 0 rgba(180, 122, 20, 0.45);
  animation: status-pulse 1.4s ease-out infinite;
}
.project-status-mark {
  background: var(--accent);
}
.project-status.is-pending .project-status-mark {
  background: #8b93a7;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 122, 20, 0.42); }
  70% { box-shadow: 0 0 0 10px rgba(180, 122, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 122, 20, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .project-status-pulse { animation: none; }
}
.project-status-copy {
  min-width: 0;
  flex: 1;
}
.project-status-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-status-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: #2a3148;
}
.project-status.is-run .project-status-copy strong { color: #7a4d00; }
.project-status-build {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a5a00;
  font-size: 11px;
  line-height: 18px;
}
.project-status-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.project-status-main > .btn {
  flex: none;
  height: 32px;
  padding: 0 12px;
  margin-left: auto;
}
.project-status-progress .build-progress {
  gap: 6px;
  min-width: 0;
}
.project-status-progress .progress-track {
  height: 8px;
  background: rgba(180, 122, 20, 0.12);
}
.project-status-progress .progress-caption {
  white-space: normal;
  color: #8a5a00;
  font-weight: 600;
}
.project-status-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding-top: 2px;
  border-top: 1px solid rgba(28, 36, 64, 0.06);
}
.project-status-facts dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.project-status-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .project-command-nav {
    padding-right: 0;
    border-right: 0;
  }
  .project-command-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .project-status-facts {
    grid-template-columns: 1fr;
  }
}
.board-main { min-width: 0; padding: 16px 24px 24px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.board-head .views { flex: 1; margin-bottom: 0; }
.board-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.board-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.board-main .empty { margin-bottom: 16px; }
.board-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-panel > .board-head {
  align-items: center;
  min-height: 64px;
  margin: 0;
  padding: 12px 16px 12px 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--line);
}
.board-panel .board-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.board-panel .board-note::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 115, 255, 0.14);
}
.board-panel .table-wrap,
.board-panel .empty {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.board-table { margin-bottom: 16px; }
.board-panel .board-table { margin-bottom: 0; }
.board-panel .board-table table { table-layout: fixed; }
.board-table th { white-space: nowrap; }
.board-panel .board-table th,
.board-panel .board-table td { padding: 0 16px; }
.board-panel .build-progress { gap: 2px; }
.board-panel .progress-track { height: 4px; }
.board-panel .progress-caption { font-size: 12px; line-height: 14px; }
.board-panel > .pager { margin: 0; padding: 8px 16px 16px; }
.board-panel .board-table th {
  background: #fafbfd;
  color: #888888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.board-panel .board-table tbody tr:hover td { background: rgba(79, 115, 255, 0.035); }
.col-mark { width: 120px; white-space: nowrap; text-align: center; }
.board-panel .col-mark { width: 128px; }
.col-mark .build-progress { text-align: left; }
.col-run { width: 72px; }
.board-panel .col-run { width: 88px; text-align: right; }
.board-panel .col-run .run { vertical-align: middle; }
.when { margin-right: 8px; }
.project-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.project-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(180deg, rgba(123, 147, 255, 0.22), rgba(79, 115, 255, 0.08));
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(79, 115, 255, 0.14);
}
.project-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.project-copy .name { font-size: 13px; line-height: 18px; }
.name-meta {
  color: #888888;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name-meta.is-empty { font-family: var(--font); }
.board-panel .mark-icon { width: 28px; height: 28px; }
.board-panel .mark-icon svg { width: 15px; height: 15px; }
.col-stamp { width: 210px; white-space: nowrap; }
.col-duration { width: 140px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.stamp .when { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.stamp .build-no { margin-left: 0; }
.stamp-ok .build-no { background: var(--ok-bg); color: var(--ok); }
.stamp-bad .build-no { background: var(--bad-bg); color: var(--bad); }
.stamp-empty {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #888888;
  font-size: 12px;
  line-height: 16px;
}
.duration { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.board-panel .sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0;
  color: #8b93a7;
}
.board-panel .sort::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%238b93a7' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.board-panel .sort[data-dir="desc"]::after { transform: rotate(180deg); }
.board-panel .sort:hover { color: var(--accent); }
.board-panel .run { box-shadow: 0 4px 12px rgba(79, 115, 255, 0.10); }
.sort {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sort::after { content: " ↓"; color: var(--muted); font-weight: 500; }
.sort:hover { background: transparent; color: var(--accent); }
.run {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(79, 115, 255, 0.18);
  display: inline-grid;
  place-items: center;
  background: #fff;
}
.run::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--accent);
}
.run:hover { background: rgba(79, 115, 255, 0.06); }
.run.is-disabled { opacity: 0.35; }
.config-group h2 { margin-bottom: 4px; }
.config-group > .muted { margin: 0 0 8px; }
.config-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 8px 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.config-item:first-of-type { border-top: 0; }
.config-title { font-weight: 650; color: var(--ink); }
.config-hint, .config-time { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.config-control { display: flex; gap: 8px; align-items: center; }
.config-control input, .config-control select { flex: 1; min-width: 0; }
.shell:has(.log-screen) { height: 100vh; overflow: hidden; }
.shell:has(.log-screen) .foot { display: none; }
.log-screen {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 20px;
}
.log-toolbar {
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 16px 24px;
}
.log-heading { min-width: 0; display: grid; gap: 8px; }
.log-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.log-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.log-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(31, 41, 71, 0.03);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}
.log-chip .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28ch;
  font-size: 12px;
  font-weight: 600;
}
.log-chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.log-chip-mute {
  color: var(--muted);
  background: rgba(247, 248, 252, 0.9);
}
.log-chip-mute .mono { font-weight: 500; }
.log-actions { flex: none; }
.log-screen > .log-card {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(31, 41, 71, 0.06);
}
.log-card { padding: 0; overflow: hidden; }
.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
}
.log-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.log-head-side { flex: none; }
.log-commit {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-error {
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 122, 20, 0.16);
  background: rgba(180, 122, 20, 0.08);
  color: var(--run);
  font-size: 12px;
  font-weight: 600;
}
.log-live.is-done {
  border-color: rgba(136, 136, 136, 0.16);
  background: rgba(136, 136, 136, 0.08);
  color: #666666;
}
.log-live.is-ok {
  border-color: rgba(14, 138, 82, 0.16);
  background: var(--ok-bg);
  color: var(--ok);
}
.log-live.is-err {
  border-color: rgba(197, 54, 48, 0.16);
  background: var(--bad-bg);
  color: var(--bad);
}
.log-live.is-run .log-live-dot,
.log-live:not(.is-done):not(.is-ok):not(.is-err) .log-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(180, 122, 20, 0.35);
  animation: log-live-pulse 1.4s ease-out infinite;
}
.log-card .banner,
.log-card .log-banner { margin: 12px 18px 0; }
.log-banner[hidden],
.log-banner:empty { display: none !important; }
.log-progress {
  margin: 0;
  padding: 12px 18px 0;
}
.log-progress .progress-track { height: 6px; border-radius: 999px; }
.log-progress .progress-caption { margin-top: 8px; }
.log-progress .progress-fill::after {
  animation-duration: 0.95s;
}
.log-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28px),
    #f5f7fb;
  display: flex;
  flex-direction: column;
  scroll-behavior: auto;
}
.log-body::-webkit-scrollbar { width: 10px; }
.log-body::-webkit-scrollbar-thumb {
  background: rgba(60, 72, 100, 0.18);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.log-body::-webkit-scrollbar-thumb:hover { background: rgba(60, 72, 100, 0.28); background-clip: padding-box; }
.log {
  min-height: 0;
  max-height: 70vh;
  overflow: auto;
  background: #f7f8fc;
  color: var(--ink);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
}
.log-card .log {
  flex: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 16px 20px 6px;
  background: transparent;
  color: #2a3142;
  font-size: 12.5px;
  line-height: 1.75;
  tab-size: 2;
}
.log-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 20px 18px;
  color: #6d7588;
  font-family: var(--mono);
  font-size: 12.5px;
  user-select: none;
}
.log-loading[hidden] { display: none !important; }
.log-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(79, 115, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: log-spin 0.65s linear infinite;
  flex: none;
}
.log-loading-text { letter-spacing: 0.01em; }
.log-caret {
  width: 7px;
  height: 14px;
  margin-left: 2px;
  border-radius: 1px;
  background: var(--accent);
  animation: log-caret 1s steps(1, end) infinite;
  flex: none;
}
@keyframes log-spin { to { transform: rotate(360deg); } }
@keyframes log-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes log-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 122, 20, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(180, 122, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 122, 20, 0); }
}
.log-screen.is-live .log-card {
  outline: 1px solid rgba(79, 115, 255, 0.08);
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(520px, calc(100% - 32px));
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(31, 41, 71, 0.16);
}
dialog::backdrop { background: rgba(28, 33, 48, 0.28); }
dialog h2 { font-size: 16px; }
dialog p { margin: 16px 0; }
dialog .cluster { justify-content: flex-end; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(680px 320px at 50% 0%, rgba(92, 107, 255, 0.16), transparent 70%),
    var(--bg);
}
.login-card { width: min(420px, 100%); padding: 28px; }
.login-card.setup { width: min(460px, 100%); }
.token-input { font-family: var(--mono); letter-spacing: 0.06em; }
.login-logo { width: 64px; height: 64px; border-radius: 16px; display: block; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(79, 115, 255, 0.12); }
.login-card h1 { font-size: 28px; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.03em; }
.login-card .lede { color: var(--muted); margin: 0 0 24px; }
.login-card .btn-primary { width: 100%; height: 44px; border-radius: 14px; }

body.signin-body { background: #fff; }
.signin {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 40vw minmax(0, 1fr);
  width: 100vw;
  min-height: 100dvh;
  margin: 0;
  background: #fff;
}
.signin-brand {
  position: relative;
  margin: 5px 0 5px 5px;
  border-radius: 0.6875rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 40% at 50% 46%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 52% 46% at 14% 16%, #7f97ff 0%, rgba(127, 151, 255, 0) 70%),
    radial-gradient(ellipse 48% 42% at 86% 12%, #c9b6ff 0%, rgba(201, 182, 255, 0) 68%),
    radial-gradient(ellipse 50% 44% at 82% 86%, #5d78f2 0%, rgba(93, 120, 242, 0) 70%),
    radial-gradient(ellipse 44% 38% at 16% 88%, #d7e3ff 0%, rgba(215, 227, 255, 0) 72%),
    linear-gradient(168deg, #b9c8ff 0%, #ddd8ff 40%, #a9beff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.signin-brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 170%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from -6deg,
    rgba(255, 255, 255, 0.62) 0deg 7deg,
    rgba(255, 255, 255, 0) 7deg 16deg
  );
  filter: blur(16px);
  opacity: 0.72;
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 10%, #000 26%, transparent 58%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 10%, #000 26%, transparent 58%);
}
.signin-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 26%),
    radial-gradient(circle at 50% 48%, transparent 30%, rgba(42, 54, 140, 0.22) 82%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
.signin-rays { position: absolute; inset: 0; z-index: 1; }
.signin-rays::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.42) 38%, rgba(255, 255, 255, 0) 68%);
}
.signin-rays img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: 60%;
  width: auto;
  min-height: 80px;
  max-height: 250px;
  transform: translate(-50%, -50%);
  border-radius: 22%;
  filter: drop-shadow(0 22px 28px rgba(36, 48, 130, 0.28));
}
.signin-main {
  display: flex;
  align-items: safe center;
  justify-content: center;
  min-height: 100dvh;
  overflow: auto;
  background: #fff;
}
.signin-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  max-width: 430px;
  margin: 4.875rem 1.625rem;
}
.signin-mini {
  display: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  align-self: flex-start;
  object-fit: cover;
}
.signin-heading h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  color: var(--ink);
}
.signin-form { display: contents; }
.signin-field { min-width: 0; }
.signin-field label {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
}
.signin-field input {
  width: 100%;
  height: auto;
  padding: 0.625rem 0.75rem;
  border-radius: 0.6875rem;
  font-size: 0.9375rem;
  background: #fff;
}
.signin .banner { margin: 0; }
.signin .check {
  color: var(--ink);
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.signin .check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
  box-shadow: none;
}
.signin .btn-primary {
  width: 100%;
  height: auto;
  padding: 0.875rem 1rem;
  border-radius: 0.6875rem;
  font-size: 0.9375rem;
}
@media (max-width: 991px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin-brand { display: none; }
  .signin-mini { display: block; }
  .signin-inner { margin: 3.75rem 1.25rem; }
  .signin-heading h1 { font-size: 1.6rem; }
  .signin-field input { font-size: 1rem; }
}
.restart-wait { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#starting-cover {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(680px 320px at 50% 0%, rgba(92, 107, 255, 0.16), transparent 70%),
    var(--bg);
  color: var(--ink);
}
#starting-cover[hidden] { display: none !important; }
.starting-card {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(460px, calc(100% - 48px));
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.starting-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  box-shadow: 0 8px 24px rgba(79, 115, 255, 0.12);
}
.starting-card h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.starting-card p { margin: 0; color: var(--muted); }
.starting-bar {
  margin-top: 16px;
  height: 3px;
  width: 168px;
  border-radius: 999px;
  background: rgba(79, 115, 255, 0.12);
  overflow: hidden;
}
.starting-bar span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: #4F73FF;
  animation: starting-slide 1.1s ease-in-out infinite;
}
@keyframes starting-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(280%); }
}

.setup { display: flex; flex-direction: column; gap: 16px; }
.setup-title { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.setup-head .hint { margin: 0; max-width: 720px; }
.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.setup-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.setup-card { padding: 8px 24px 12px; }
.setup-card-head { padding: 16px 0 4px; }
.setup-card h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.setup-card-head .muted { margin: 6px 0 0; }
.setup-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.82fr) minmax(260px, 1.18fr);
  gap: 12px 28px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.setup-row-start { align-items: start; }
.setup-row > input,
.setup-row > .picker,
.setup-row > div > input,
.setup-row > div > select,
.setup-row > div > .picker { width: 100%; }
.git-probe { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.git-probe.is-ok { color: var(--ok); }
.git-probe.is-bad { color: var(--bad); }
.git-probe.is-run, .git-probe.is-warn { color: var(--run); }
.setup-path, .setup-script { font-family: var(--mono); font-size: 13px; }
.setup-script {
  width: 100%;
  field-sizing: fixed;
  height: calc(1.6em * 3 + 18px);
  min-height: calc(1.6em * 3 + 18px);
  line-height: 1.6;
  resize: none;
  overflow: hidden;
}
.setup-dockerfile {
  height: calc(1.6em * 12 + 18px);
  min-height: calc(1.6em * 12 + 18px);
}
.setup [hidden] { display: none !important; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-note { margin: 12px 0 0; }
.choice {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 84px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(28, 36, 64, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: rgba(79, 115, 255, 0.35); }
.choice:has(input:checked) {
  border-color: rgba(79, 115, 255, 0.55);
  background: rgba(79, 115, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.10);
}
.choice:focus-within { box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.12); }
.choice input, .switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}
.choice-title { display: block; font-weight: 650; color: var(--ink); }
.choice-hint, .switch-row .config-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.switch-row { cursor: pointer; }
.switch { position: relative; justify-self: end; width: 44px; height: 26px; }
.switch-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(28, 36, 64, 0.16);
  position: relative;
  transition: background 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 36, 64, 0.18);
  transition: transform 0.15s ease;
}
.switch input:checked + .switch-track { background: #4F73FF; }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(79, 115, 255, 0.16); }
.setup-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 108px);
  padding: 16px;
  overflow: hidden;
}
.setup-side-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  flex: none;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.setup-side-body { min-height: 0; overflow: auto; }
.setup-side h2 { margin-bottom: 6px; }
.setup-side-body > .muted { margin: 0 0 8px; }
.setup-side-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.setup-preview { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; }
.setup-preview div { min-width: 0; }
.setup-preview dt { color: var(--muted); font-size: 12px; }
.setup-preview dd { margin: 4px 0 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: 1fr; min-height: 0; }
  .board-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .board-main { padding: 16px; }
  .board-head,
  .board-panel > .board-head { align-items: flex-start; flex-direction: column; }
  .board-note { text-align: left; }
  .board-panel .board-note { max-width: none; }
  .page, .foot, .top-notices { padding-left: 16px; padding-right: 16px; }
  .split, .facts, .grid, .stats, .config-item, .setup-layout, .setup-row, .choice-grid, .choice-grid-2, .choice-grid-4 { grid-template-columns: 1fr; }
  .setup-side { position: static; max-height: none; overflow: visible; }
  .setup-side-body { overflow: visible; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
