:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #1c2130;
  --muted: #6d7588;
  --line: rgba(28, 36, 64, 0.08);
  --accent: #4452e8;
  --accent-2: #5c6bff;
  --side: #fbfcff;
  --side-ink: #3c4458;
  --ok: #0e8a52;
  --ok-bg: rgba(14, 138, 82, 0.12);
  --bad: #c53630;
  --bad-bg: rgba(197, 54, 48, 0.10);
  --run: #9a6700;
  --run-bg: rgba(180, 122, 20, 0.14);
  --keep: #5b45c6;
  --keep-bg: rgba(91, 69, 198, 0.12);
  --space: 8px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 12px 32px rgba(28, 36, 68, 0.06);
}

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

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(92, 107, 255, 0.10), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(140, 120, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

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

.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: 28px 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(68, 82, 232, 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(68, 82, 232, 0.06); }
.top-link.is-active { background: rgba(68, 82, 232, 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(68, 82, 232, 0.06); text-decoration: none; }
.gear-link.is-active { color: var(--accent); background: rgba(68, 82, 232, 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(68, 82, 232, 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(68, 82, 232, 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;
}

h2 { font-size: 15px; margin: 0 0 8px; }
.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 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  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; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; background: transparent; font-size: 12px; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover td { background: rgba(68, 82, 232, 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(68, 82, 232, 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;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { height: auto; padding: 8px 12px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(68, 82, 232, 0.7);
  box-shadow: 0 0 0 4px rgba(68, 82, 232, 0.12);
}
.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(68, 82, 232, 0.12);
  border-color: rgba(68, 82, 232, 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(68, 82, 232, 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(68, 82, 232, 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, #6d78ff 0%, #4452e8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(68, 82, 232, 0.22);
}
.btn-primary:hover { filter: brightness(1.05); color: #fff; background: linear-gradient(180deg, #6d78ff 0%, #4452e8 100%); }
.btn-danger { background: #c53630; border-color: transparent; color: #fff; }
.btn-danger:hover { color: #fff; background: #b12e29; }
.btn-ok { background: #0e8a52; border-color: transparent; color: #fff; }
.btn-ok:hover { color: #fff; background: #0c7747; }
#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: auto; padding: 0; box-shadow: none; }
.linkish.danger { color: var(--bad); }
.linkish:hover { text-decoration: underline; background: none; }
.linkish:disabled,
.linkish:disabled:hover {
  color: var(--muted);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 22px;
  background: rgba(28, 36, 64, 0.06);
  color: var(--muted);
}
.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); }
.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 svg { animation: branch-spin 0.8s linear infinite; }

.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.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: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.filters label { min-width: 160px; flex: 1; }
.list-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.list-toolbar .filters { flex: 1; margin: 0; }
.board-panel .list-toolbar { margin: 0; padding: 4px 0 12px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.pager-total { margin: 0 8px 0 0; }
.pager-size-label { flex-direction: row; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.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(68, 82, 232, 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(68, 82, 232, 0.45);
  background: #fff;
}
.picker.is-open .picker-trigger {
  box-shadow: 0 0 0 4px rgba(68, 82, 232, 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(68, 82, 232, 0.06); }
.picker-option.is-selected {
  background: rgba(68, 82, 232, 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(68, 82, 232, 0.06); }
.branch-option.is-selected {
  background: rgba(68, 82, 232, 0.1);
  color: var(--accent);
  font-weight: 650;
}
.time-range {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  flex: 2;
  min-width: min(100%, 380px);
  align-items: flex-end;
}
.time-range > label { flex: 1; min-width: 180px; }
.time-error { flex-basis: 100%; 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(68, 82, 232, 0.45);
  background: #fff;
}
.time-picker.is-open .time-trigger { box-shadow: 0 0 0 4px rgba(68, 82, 232, 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(68, 82, 232, 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(68, 82, 232, 0.08); }
.time-day.is-muted { color: #b0b6c4; }
.time-day.is-today { box-shadow: inset 0 0 0 1px rgba(68, 82, 232, 0.45); }
.time-day.is-selected, .time-day.is-selected:hover { background: var(--accent); color: #fff; box-shadow: none; }
.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;
}
.views a:hover, .view-add:hover { text-decoration: none; color: var(--ink); background: rgba(68, 82, 232, 0.06); }
.views a.is-active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(68, 82, 232, 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: 10px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.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;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.92);
}
.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-bottom: 4px; color: var(--ink); font-weight: 650; }
.board-create::before { content: "+"; font-size: 18px; line-height: 1; color: var(--accent); }
.board-link { margin-bottom: 16px; }
.board-create:hover, .board-link:hover { color: var(--ink); background: rgba(68, 82, 232, 0.06); text-decoration: none; }
.board-link.is-active { background: rgba(68, 82, 232, 0.12); color: var(--accent); font-weight: 650; }
.board-widget {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.board-widget summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.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(68, 82, 232, 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);
}
.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 {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s ease;
}
.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; }
.board-main { min-width: 0; padding: 28px 32px 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: 18px; }
.board-main .empty { margin-bottom: 16px; }
.board-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  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(68, 82, 232, 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: 15px 20px; }
.board-panel .board-table th {
  background: #fff;
  color: #8b93a7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.board-panel .board-table tbody tr:hover td { background: rgba(68, 82, 232, 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: 12px; min-width: 0; }
.project-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(180deg, rgba(109, 120, 255, 0.18), rgba(68, 82, 232, 0.08));
  color: var(--accent);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(68, 82, 232, 0.14);
}
.project-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.project-copy .name { line-height: 1.3; }
.name-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(28, 36, 64, 0.045);
  color: #a0a7b8;
  font-size: 12px;
  line-height: 1;
}
.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(68, 82, 232, 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(68, 82, 232, 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(68, 82, 232, 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; }
.log-screen {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.log-title { margin: 0; font-size: 18px; }
.log-screen > .log-card {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.log-card { padding: 0; overflow: hidden; }
.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.log-card .banner { margin: 16px 20px 0; }
.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: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  width: min(520px, calc(100% - 32px));
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
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(68, 82, 232, 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(68, 82, 232, 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(68, 82, 232, 0.12);
  overflow: hidden;
}
.starting-bar span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: #4452e8;
  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; }
.script-box { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.script-box .banner { width: 100%; margin: 0; }
.script-mode {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.script-mode[aria-pressed="true"] { background: #1c2130; border-color: transparent; color: #fff; }
.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-script.is-secret { -webkit-text-security: disc; text-security: disc; }
.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(68, 82, 232, 0.35); }
.choice:has(input:checked) {
  border-color: rgba(68, 82, 232, 0.55);
  background: rgba(68, 82, 232, 0.05);
  box-shadow: 0 0 0 4px rgba(68, 82, 232, 0.10);
}
.choice:focus-within { box-shadow: 0 0 0 4px rgba(68, 82, 232, 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: #4452e8; }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(68, 82, 232, 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; }
}
