/* Local Pipeline — a local-first evaluation workspace.
   Ink surfaces, a signal-lime accent, one line-icon family, and a sidebar shell. Dark by default; a warm light theme is one click away. */
:root {
  color-scheme: dark;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg: #090b0a;
  --bg-elev: #0d100e;
  --panel: #111512;
  --panel-2: #151a16;
  --panel-3: #1a201b;
  --inset: #0b0e0c;
  --border: rgba(235, 243, 234, .09);
  --border-strong: rgba(235, 243, 234, .17);
  --border-muted: rgba(235, 243, 234, .055);
  --text: #eef3eb;
  --text-2: #cbd3c8;
  --muted: #8d988f;
  --faint: #69746c;
  --lime: #c9f36a;
  --lime-strong: #d9ff86;
  --lime-ink: #0a1003;
  --lime-dim: rgba(201, 243, 106, .10);
  --lime-line: rgba(201, 243, 106, .28);
  --link: #c9f36a;
  --link-soft: rgba(201, 243, 106, .12);
  --success: #61e3a3;
  --success-soft: rgba(97, 227, 163, .12);
  --danger: #ff8a8a;
  --danger-soft: rgba(255, 138, 138, .10);
  --attention: #f2c66c;
  --attention-soft: rgba(242, 198, 108, .10);
  --info: #91c2ff;
  --info-soft: rgba(145, 194, 255, .10);
  --violet: #bba8ff;
  --violet-soft: rgba(187, 168, 255, .11);
  --btn: #171c18;
  --btn-hover: #1e251f;
  --primary: var(--lime);
  --primary-hover: var(--lime-strong);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --shadow-pop: 0 30px 90px rgba(0, 0, 0, .55);
  --sidebar-bg: #0b0e0c;
  --sidebar-bg-2: #080a09;
  --sidebar-text: #e9efe7;
  --sidebar-muted: #7b867e;
  --sidebar-border: rgba(255, 255, 255, .075);
  --log-bg: #070908;
  --log-text: #c8d4c4;
  --code-bg: rgba(255, 255, 255, .055);
  --topbar-bg: rgba(9, 11, 10, .78);
  --radius: 12px;
}
:root[data-theme="light"], :root:not([data-theme="dark"]) {
  /* overridden below when the system prefers light */
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f2ec;
    --bg-elev: #f8f7f2;
    --panel: #ffffff;
    --panel-2: #fbfaf5;
    --panel-3: #f4f2ea;
    --inset: #efeee7;
    --border: #e3e1d7;
    --border-strong: #cfcdc0;
    --border-muted: #ece9df;
    --text: #171b17;
    --text-2: #3c443c;
    --muted: #687167;
    --faint: #8b9389;
    --lime: #c9f36a;
    --lime-strong: #d6ff7f;
    --lime-ink: #0a1003;
    --lime-dim: rgba(112, 140, 20, .11);
    --lime-line: rgba(91, 116, 12, .32);
    --link: #4f6d04;
    --link-soft: rgba(112, 140, 20, .12);
    --success: #137a4b;
    --success-soft: rgba(19, 122, 75, .09);
    --danger: #b83b3b;
    --danger-soft: rgba(184, 59, 59, .07);
    --attention: #8a5f00;
    --attention-soft: rgba(138, 95, 0, .08);
    --info: #1e5f9f;
    --info-soft: rgba(30, 95, 159, .08);
    --violet: #6c55bd;
    --violet-soft: rgba(108, 85, 189, .08);
    --btn: #ffffff;
    --btn-hover: #f2f0e8;
    --shadow-sm: 0 1px 2px rgba(30, 32, 20, .06);
    --shadow: 0 18px 50px rgba(46, 44, 30, .12);
    --shadow-pop: 0 30px 90px rgba(46, 44, 30, .20);
    --log-bg: #0d110e;
    --log-text: #cbd8c8;
    --code-bg: #f0eee6;
    --topbar-bg: rgba(243, 242, 236, .82);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f2ec;
  --bg-elev: #f8f7f2;
  --panel: #ffffff;
  --panel-2: #fbfaf5;
  --panel-3: #f4f2ea;
  --inset: #efeee7;
  --border: #e3e1d7;
  --border-strong: #cfcdc0;
  --border-muted: #ece9df;
  --text: #171b17;
  --text-2: #3c443c;
  --muted: #687167;
  --faint: #8b9389;
  --lime: #c9f36a;
  --lime-strong: #d6ff7f;
  --lime-ink: #0a1003;
  --lime-dim: rgba(112, 140, 20, .11);
  --lime-line: rgba(91, 116, 12, .32);
  --link: #4f6d04;
  --link-soft: rgba(112, 140, 20, .12);
  --success: #137a4b;
  --success-soft: rgba(19, 122, 75, .09);
  --danger: #b83b3b;
  --danger-soft: rgba(184, 59, 59, .07);
  --attention: #8a5f00;
  --attention-soft: rgba(138, 95, 0, .08);
  --info: #1e5f9f;
  --info-soft: rgba(30, 95, 159, .08);
  --violet: #6c55bd;
  --violet-soft: rgba(108, 85, 189, .08);
  --btn: #ffffff;
  --btn-hover: #f2f0e8;
  --shadow-sm: 0 1px 2px rgba(30, 32, 20, .06);
  --shadow: 0 18px 50px rgba(46, 44, 30, .12);
  --shadow-pop: 0 30px 90px rgba(46, 44, 30, .20);
  --log-bg: #0d110e;
  --log-text: #cbd8c8;
  --code-bg: #f0eee6;
  --topbar-bg: rgba(243, 242, 236, .82);
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -12%, color-mix(in srgb, var(--lime) 7%, transparent), transparent 65%),
    radial-gradient(760px 460px at -8% 104%, color-mix(in srgb, var(--info) 5%, transparent), transparent 62%);
}
html { scrollbar-color: var(--border-strong) transparent; }
::selection { background: color-mix(in srgb, var(--lime) 28%, transparent); color: var(--text); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; }
h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 8px 0; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--code-bg);
  border: 1px solid var(--border-muted);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text-2);
}
pre code { border: 0; background: none; padding: 0; color: inherit; }
kbd {
  font: 10.5px var(--font-mono);
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--border); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt { margin-top: 14px; }
.grow { flex: 1; min-width: 0; }
.gh-muted { color: var(--muted); }
.gh-hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.gh-hint.bad { color: var(--danger); }
.gh-hint.ok { color: var(--success); }
.gh-hint.warn { color: var(--attention); font-weight: 600; }
.bad-text { color: var(--danger); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.only-mobile, .gh-only-mobile { display: none; }
#nav-close, #nav-toggle { display: none; }

/* ------------------------------------------------------------------ icons */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}
.ic-lg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ shell */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 14px 14px;
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  border-right: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  z-index: 45;
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px 220px at 20% -4%, rgba(201, 243, 106, .075), transparent 70%);
}
.side-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 6px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--lime); filter: drop-shadow(0 4px 14px rgba(201, 243, 106, .22)); }
.brand-mark svg { width: 34px; height: 34px; display: block; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-copy strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 650; letter-spacing: -.025em; color: var(--sidebar-text); white-space: nowrap; }
.brand-copy span { font-size: 10.5px; color: var(--sidebar-muted); letter-spacing: .02em; white-space: nowrap; }
.side-new {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 11px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  border-radius: 10px;
  font: 600 13px var(--font-sans);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 243, 106, .13), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: background .15s ease, transform .15s ease;
}
.side-new:hover { background: var(--lime-strong); }
.side-new:active { transform: translateY(1px); }
.side-new .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.side-new kbd { margin-left: auto; background: rgba(10, 16, 3, .12); border-color: rgba(10, 16, 3, .18); color: rgba(10, 16, 3, .7); }
.side-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 2px; scrollbar-width: thin; }
.side-label { display: flex; align-items: center; gap: 8px; padding: 14px 10px 7px; color: var(--sidebar-muted); font-size: 10px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.side-label-row { justify-content: space-between; }
.side-label-link { color: var(--sidebar-muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: none; }
.side-label-link:hover { color: var(--sidebar-text); text-decoration: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #aeb8b0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background .14s ease, color .14s ease;
}
.side-nav a .ic { width: 17px; height: 17px; color: #7c877f; stroke-width: 1.65; transition: color .14s ease; }
.side-nav a:hover { background: rgba(255, 255, 255, .045); color: var(--sidebar-text); text-decoration: none; }
.side-nav a:hover .ic { color: #c7d0c8; }
.side-nav a.active { background: var(--lime-dim); color: var(--sidebar-text); position: relative; }
.side-nav a.active::before { content: ""; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--lime); }
.side-nav a.active .ic { color: var(--lime); }
.side-count { margin-left: auto; font: 11px var(--font-mono); color: var(--sidebar-muted); }
.side-ext { margin-left: auto; width: 12px; height: 12px; opacity: .55; }
.side-pipelines { display: flex; flex-direction: column; gap: 1px; }
.side-pipeline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #a6b0a8;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
  min-width: 0;
  transition: background .14s ease, color .14s ease;
}
.side-pipeline:hover { background: rgba(255, 255, 255, .04); color: var(--sidebar-text); text-decoration: none; }
.side-pipeline.active { background: rgba(255, 255, 255, .055); color: var(--sidebar-text); }
.side-pipeline.is-off { opacity: .55; }
.side-pipeline-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.side-running { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--lime-dim); color: var(--lime); font: 600 10px/1 var(--font-mono); }
.side-off { margin-left: auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--sidebar-muted); }
.side-empty { padding: 8px 10px; color: var(--sidebar-muted); font-size: 12px; }
.side-add {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px dashed var(--sidebar-border);
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-muted);
  font: 500 12px var(--font-sans);
  cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}
.side-add:hover { border-color: rgba(201, 243, 106, .3); color: var(--lime); }
.side-add .ic { width: 13px; height: 13px; }
.side-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.side-note { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--sidebar-border); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.side-note-icon { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--lime-dim); color: var(--lime); }
.side-note-icon .ic { width: 14px; height: 14px; }
.side-note div { display: flex; flex-direction: column; gap: 2px; }
.side-note b { font-size: 11.5px; font-weight: 600; color: #d5ddd5; }
.side-note span { font-size: 10.5px; line-height: 1.45; color: var(--sidebar-muted); }
.side-foot-row { display: flex; justify-content: space-between; padding: 0 3px; font-size: 10.5px; color: var(--sidebar-muted); }
.side-foot-row a { color: var(--sidebar-muted); }
.side-foot-row a:hover { color: var(--sidebar-text); }
.side-version { font-family: var(--font-mono); }
.side-scrim { display: none; position: fixed; inset: 0; z-index: 44; background: rgba(2, 4, 3, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.side-scrim.open { opacity: 1; pointer-events: auto; }

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(1.15);
}
.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 30vw);
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.top-search:focus-within { border-color: var(--lime-line); box-shadow: 0 0 0 3px var(--lime-dim); background: var(--panel); }
.top-search .ic { width: 15px; height: 15px; flex: none; color: var(--faint); }
.top-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: 12.5px var(--font-sans); }
.top-search input::placeholder { color: var(--faint); }
.top-search kbd { flex: none; }
.top-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.top-sep { width: 1px; height: 22px; margin: 0 5px; background: var(--border); }
.top-new { margin-left: 3px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn:focus-visible { outline: 2px solid var(--lime-line); outline-offset: 2px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 210px;
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font: 500 11.5px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.status-pill:hover { background: var(--panel-2); border-color: var(--border-strong); }
.status-pill .ic { width: 13px; height: 13px; stroke-width: 2; flex: none; }
.status-pill span { overflow: hidden; text-overflow: ellipsis; }
.status-pill.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: var(--success-soft); }
.status-pill.warn { color: var(--attention); border-color: color-mix(in srgb, var(--attention) 30%, var(--border)); background: var(--attention-soft); }
.status-pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, var(--border)); background: var(--danger-soft); font-weight: 600; }
.user-btn { color: var(--text-2); }
.user-btn .ic { width: 14px; height: 14px; color: var(--muted); }
.user-btn.admin-on { border-color: color-mix(in srgb, var(--lime) 34%, var(--border)); color: var(--text); }
.user-btn.admin-on .ic { color: var(--lime); }
.user-btn .btn-label { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.banner {
  margin: 14px clamp(20px, 3vw, 40px) 0;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
}
.banner.bad { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); border-left-color: var(--danger); background: var(--danger-soft); }
.banner-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-icon { display: grid; place-items: center; color: var(--danger); }
.banner-icon .ic { width: 15px; height: 15px; }
.banner .icon-btn { width: 28px; height: 28px; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  max-width: min(520px, 92vw);
  padding: 11px 15px 11px 17px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--muted);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  cursor: pointer;
  animation: rise .22s ease both;
}
.toast.bad { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--success); }
.gh-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 2.7vw, 38px) clamp(20px, 3vw, 40px) 76px;
}
#view { animation: rise .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ buttons */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 33px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--btn);
  color: var(--text-2);
  font: 550 12.5px var(--font-sans);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .1s ease;
}
.gh-btn .ic { width: 14px; height: 14px; }
.gh-btn:hover { background: var(--btn-hover); border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.gh-btn:active { transform: translateY(1px); }
.gh-btn:focus-visible, a:focus-visible { outline: 2px solid var(--lime-line); outline-offset: 2px; }
.gh-btn-sm { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; }
.gh-btn-sm .ic { width: 13px; height: 13px; }
.gh-btn-icon { width: 32px; padding: 0; }
.gh-btn-primary {
  background: linear-gradient(180deg, var(--lime-strong), var(--lime));
  border-color: color-mix(in srgb, var(--lime) 75%, #5c7617);
  color: var(--lime-ink);
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 5px 16px rgba(201, 243, 106, .10);
}
.gh-btn-primary:hover { background: var(--lime-strong); border-color: var(--lime-strong); color: var(--lime-ink); }
.gh-btn-primary:disabled { opacity: .45; box-shadow: none; }
.gh-btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 26%, var(--border)); background: var(--danger-soft); }
.gh-btn-danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 16%, var(--panel)); border-color: var(--danger); }
.gh-btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.gh-btn-quiet:hover { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.gh-btn.on { border-color: var(--lime-line); background: var(--lime-dim); color: var(--text); }
.gh-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.gh-btn-primary:disabled:hover { background: linear-gradient(180deg, var(--lime-strong), var(--lime)); }

/* ------------------------------------------------------------------ pills, status, counts */
.status-icon { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.status-icon svg { width: 16px; height: 16px; fill: currentColor; }
.st-success { color: var(--success); }
.st-failure { color: var(--danger); }
.st-in_progress { color: var(--attention); }
.st-queued, .st-skipped, .st-neutral { color: var(--muted); }
.st-open { color: var(--success); }
.st-merged { color: var(--violet); }
.st-disabled { color: var(--attention); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font: 550 10.5px var(--font-sans);
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: middle;
}
.pill.open, .pill.success { color: var(--success); border-color: color-mix(in srgb, var(--success) 27%, var(--border)); background: var(--success-soft); }
.pill.merged { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 30%, var(--border)); background: var(--violet-soft); }
.pill.closed, .pill.failure { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); background: var(--danger-soft); }
.pill.in_progress { color: var(--attention); border-color: color-mix(in srgb, var(--attention) 28%, var(--border)); background: var(--attention-soft); }
.pill.in_progress::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.pill.queued, .pill.skipped, .pill.neutral { color: var(--muted); }
.pill.OVERRIDDEN { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, var(--border)); background: var(--info-soft); }
.pill.PIPELINE_BUG, .pill.INFRA, .pill.DISABLED { color: var(--attention); border-color: color-mix(in srgb, var(--attention) 28%, var(--border)); background: var(--attention-soft); }
@keyframes blink { 50% { opacity: .25; } }
.gh-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
  font: 600 10px var(--font-mono);
}
.badge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--panel); white-space: nowrap; }
.badge.ok { color: var(--success); border-color: var(--success); }
.badge.bad { color: var(--danger); border-color: var(--danger); }
.progress { display: inline-flex; gap: 3px; align-items: center; }
.progress i { width: 7px; height: 7px; border-radius: 2.5px; background: var(--border); display: inline-block; opacity: .85; }
.progress i.dot-disabled { background-image: repeating-linear-gradient(135deg, transparent 0 2px, var(--bg) 2px 3px); outline: 1px solid var(--attention); outline-offset: -1px; }

/* ------------------------------------------------------------------ page language */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 32px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(620px 280px at 90% -25%, color-mix(in srgb, var(--lime) 9%, transparent), transparent 70%),
    linear-gradient(150deg, var(--panel-2), var(--bg-elev) 68%);
  box-shadow: var(--shadow-sm);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(560px 300px at 15% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(560px 300px at 15% 0%, #000 10%, transparent 72%);
}
.hero-copy { min-width: 0; max-width: 660px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim), 0 0 12px var(--lime); }
.page-hero h1 { font-size: clamp(28px, 3.1vw, 37px); line-height: 1.08; letter-spacing: -.045em; }
.page-sub { max-width: 590px; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 8px; flex: none; }
.hero-stat {
  min-width: 112px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  backdrop-filter: blur(8px);
}
.hero-stat span { display: block; color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-stat b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.hero-stat small { display: block; color: var(--faint); font-size: 10.5px; }
.hero-stat.ok b { color: var(--success); }
.hero-stat.hot b { color: var(--attention); }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-title h1 { font-size: 31px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.actions-head h1 { font-size: 31px; }
.actions-head .gh-muted { margin-top: 5px; font-size: 13px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 32px 0 13px; }
.section-head h2 { font-size: 17px; letter-spacing: -.025em; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section-head a { font-size: 12px; font-weight: 500; }
.section-head .section-side { display: flex; align-items: center; gap: 10px; }
.gh-empty { padding: 38px 20px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.7; }
.box .gh-empty { border-top: 0; }
.gh-empty b { color: var(--text-2); }
.gh-empty .gh-btn { margin-left: 8px; }

/* ------------------------------------------------------------------ boxes and tabs */
.box { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-sm); }
.box-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-height: 45px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.box-head b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.box-head > .ic { width: 14px; height: 14px; flex: none; color: var(--muted); }
.box-head > .gh-muted { font-size: 11.5px; }
.box-body { padding: 17px; }
.box-row { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border-muted); transition: background .13s ease; }
.box-row:last-child { border-bottom: 0; }
.box-row:hover { background: var(--panel-2); }
.box-row .grow { flex: 1; min-width: 0; }
.gh-tabs { display: flex; gap: 4px; margin: 18px 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px 11px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: color .14s ease, border-color .14s ease;
}
.gh-tab:hover { color: var(--text); border-bottom-color: var(--border-strong); text-decoration: none; }
.gh-tab.active { color: var(--text); border-bottom-color: var(--lime); }
.gh-tab .gh-counter { height: 17px; min-width: 17px; font-size: 9.5px; background: var(--panel-3); }
.pl-tabs .gh-tab.dirty::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--attention); margin-left: 1px; }

/* inputs */
.inline-input, .run-filters select, .run-filters input, .provider-head input, .provider-head select, .route-row select, .chips input, .account input, .log-tools input {
  height: 33px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--inset);
  color: var(--text);
  font: 12.5px var(--font-sans);
  min-width: 0;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.inline-input:focus, .run-filters select:focus, .run-filters input:focus, .provider-head input:focus, .provider-head select:focus, .route-row select:focus, .chips input:focus, .account input:focus {
  outline: none;
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.inline-input.mono { flex: 1; min-width: 180px; font-family: var(--font-mono); }
select.inline-input, .run-filters select { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.gh-label { display: block; margin: 13px 0 4px; color: var(--text-2); font-size: 11.5px; font-weight: 600; letter-spacing: .005em; }
.gh-label input, .gh-label textarea, .gh-label select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--inset);
  color: var(--text);
  font: 12.5px var(--font-mono);
  font-weight: 400;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.gh-label select { font-family: var(--font-sans); font-size: 12.5px; }
.gh-label input:focus, .gh-label textarea:focus, .gh-label select:focus { outline: none; border-color: var(--lime-line); box-shadow: 0 0 0 3px var(--lime-dim); }
.gh-label input[type="password"] { font-family: var(--font-sans); }
.gh-label textarea { resize: vertical; min-height: 60px; }
.gh-label .gh-muted { font-weight: 400; }
.gh-label.inline { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 11.5px; }
.gh-label.inline select { width: auto; margin: 0; display: inline-block; padding: 5px 26px 5px 9px; font: 12px var(--font-sans); }
.chk { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; color: var(--text-2); font-size: 12.5px; line-height: 1.5; cursor: pointer; }
.chk input { margin: 2px 0 0; width: 14px; height: 14px; flex: none; accent-color: var(--lime); }
.chk .gh-muted { font-weight: 400; }
.chk input[type="checkbox"], .step-opt input[type="checkbox"], .chk-grid input[type="checkbox"], .options input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--inset);
  cursor: pointer;
  transition: background .13s ease, border-color .13s ease;
}
.chk input[type="checkbox"]::before, .step-opt input[type="checkbox"]::before, .chk-grid input[type="checkbox"]::before, .options input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  background: var(--lime-ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform .12s ease;
}
.chk input[type="checkbox"]:checked, .step-opt input[type="checkbox"]:checked, .chk-grid input[type="checkbox"]:checked, .options input[type="checkbox"]:checked {
  background: var(--lime);
  border-color: var(--lime);
}
.chk input[type="checkbox"]:checked::before, .step-opt input[type="checkbox"]:checked::before, .chk-grid input[type="checkbox"]:checked::before, .options input[type="checkbox"]:checked::before { transform: scale(1); }
.chk input[type="checkbox"]:disabled, .step-opt input[type="checkbox"]:disabled, .chk-grid input[type="checkbox"]:disabled, .options input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.chk input[type="checkbox"]:focus-visible, .step-opt input[type="checkbox"]:focus-visible, .chk-grid input[type="checkbox"]:focus-visible, .options input[type="checkbox"]:focus-visible { outline: 2px solid var(--lime-line); outline-offset: 2px; }
.form-error { color: var(--danger); }
.notice { margin-top: 14px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--attention) 26%, var(--border)); border-left: 3px solid var(--attention); border-radius: 10px; background: var(--attention-soft); font-size: 12.5px; line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tabs { display: inline-flex; gap: 3px; padding: 3px; margin: 13px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--inset); }
.tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 550 12px var(--font-sans); cursor: pointer; transition: background .14s ease, color .14s ease; }
.tab .ic { width: 13px; height: 13px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ dashboard */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 16px; }
.pl-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 19px 20px 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 58%);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pl-card::before { content: ""; position: absolute; z-index: -1; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pl, var(--lime)), transparent); opacity: .7; }
.pl-card::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 250px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pl, var(--lime)) 13%, transparent), transparent 68%); opacity: 0; transition: opacity .25s ease; }
.pl-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.pl-card:hover::after { opacity: 1; }
.pl-card.is-off { opacity: .68; }
.pl-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pl-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; line-height: 1.3; letter-spacing: -.025em; }
.pl-card h3 a { color: var(--text); }
.pl-card h3 a:hover { color: var(--lime); text-decoration: none; }
.pl-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pl-badges .pill { height: 19px; font-size: 9.5px; }
.pl-desc { margin: -3px 0 0; min-height: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.pl-health { display: flex; align-items: center; gap: 6px; min-height: 19px; font-size: 11.5px; }
.pl-health a { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.pl-health a:hover { text-decoration: none; filter: brightness(1.1); }
.pl-health .ic { width: 12px; height: 12px; }
.pl-stats-row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 1px 0; padding: 9px 0; border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
.pl-stat { min-width: 0; padding: 0 10px; border-left: 1px solid var(--border-muted); }
.pl-stat:first-child { padding-left: 0; border-left: 0; }
.pl-stat b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.pl-stat span { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; }
.pl-stat.ok b { color: var(--success); }
.pl-stat.bad b { color: var(--danger); }
.pl-stat.hot b { color: var(--attention); }
.pl-last, .pl-key { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.pl-last a { font-weight: 500; }
.pl-last .pill { height: 18px; font-size: 9px; }
.pl-key .ic { width: 12px; height: 12px; color: var(--faint); }
.pl-card footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--border-muted); }
.pl-card footer .gh-btn { height: 29px; padding: 0 10px; font-size: 11px; }
.pl-card footer .gh-btn-quiet { margin-left: auto; }
.pl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 2px; flex: none; vertical-align: baseline; background: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pl, var(--muted)) 12%, transparent); }
.pl-dot.big { width: 13px; height: 13px; }
.pl-grid .skeleton { height: 240px; }
.pl-max { color: var(--faint); }

/* ------------------------------------------------------------------ projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: 14px; }
.proj-card {
  position: relative;
  overflow: hidden;
  padding: 17px 17px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.proj-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--kind, var(--border)); opacity: .85; }
.proj-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.proj-card h3 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14.5px; line-height: 1.35; }
.proj-card h3 a { color: var(--text); }
.proj-card h3 a:hover { color: var(--lime); text-decoration: none; }
.proj-head .pl-chip { flex: none; margin-top: 1px; }
.proj-slug { margin-top: 2px; color: var(--faint); font: 10.5px var(--font-mono); }
.proj-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 11.5px; }
.proj-meta:first-of-type { margin-top: 10px; }
.proj-meta a { color: var(--text-2); }
.proj-run { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-muted); color: var(--muted); font-size: 11.5px; }
.proj-run a { color: var(--text-2); font-weight: 550; }
.proj-run .pill { height: 19px; font-size: 9.5px; }
.proj-run .status-icon { width: 14px; height: 14px; }
.proj-run .st-disabled { display: inline-flex; align-items: center; gap: 3px; color: var(--attention); }
.proj-run .st-disabled .ic { width: 10px; height: 10px; }
.proj-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border-muted); color: var(--faint); font-size: 10.5px; }
.proj-footer .pill { height: 20px; font-size: 9.5px; }
.proj-state { font-size: 9px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.proj-state.k-pass { color: var(--success); }
.proj-state.k-fail { color: var(--danger); }
.proj-state.k-error { color: var(--attention); }
.proj-state.k-running { color: var(--lime); }
.proj-state.k-none { color: var(--faint); }
.proj-card.k-pass { --kind: var(--success); }
.proj-card.k-fail { --kind: var(--danger); }
.proj-card.k-error { --kind: var(--attention); }
.proj-card.k-running { --kind: var(--lime); }
.proj-card.k-running::before { animation: glow-line 1.8s ease-in-out infinite; }
@keyframes glow-line { 50% { opacity: .28; } }
.proj-card.k-none { --kind: var(--border-strong); }
.pl-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text-2); font-size: 10.5px; white-space: nowrap; }
.pl-chip:hover { border-color: var(--lime-line); color: var(--text); text-decoration: none; }
.pl-chip .pl-dot { width: 6px; height: 6px; margin-right: 1px; box-shadow: none; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); font: 550 11px var(--font-sans); cursor: pointer; transition: border-color .14s ease, color .14s ease, background .14s ease; }
.fchip:hover { border-color: var(--border-strong); color: var(--text); background: var(--panel-2); }
.fchip.active { border-color: var(--lime-line); background: var(--lime-dim); color: var(--text); }
.fchip .gh-counter { height: 17px; min-width: 17px; background: color-mix(in srgb, var(--bg) 30%, transparent); font-size: 9px; }
.fchip.k-pass.active { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-soft); }
.fchip.k-fail.active { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.fchip.k-running.active { border-color: var(--lime-line); }
.fchip.k-error.active { border-color: color-mix(in srgb, var(--attention) 40%, transparent); background: var(--attention-soft); }
.sort-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.sort-label .inline-input { height: 28px; font-size: 11px; }
.guide { margin-top: 14px; padding: 12px 15px; border: 1px solid var(--lime-line); border-radius: 12px; background: var(--lime-dim); }
.guide-title { margin-bottom: 6px; font-weight: 600; font-size: 12px; }
.guide-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.guide-n { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-size: 10px; font-weight: 700; }
.guide-row.done .guide-n { background: var(--success); color: var(--bg); }
.guide-row.done .guide-text { color: var(--muted); }
.guide-text { flex: 1; min-width: 0; font-size: 12px; }

/* ------------------------------------------------------------------ runs list */
.actions-head { align-items: center; }
.actions-head .eyebrow { margin-bottom: 9px; }
.run-tally { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 13px; color: var(--muted); font-size: 11.5px; }
.run-tally span { display: inline-flex; align-items: baseline; gap: 5px; }
.run-tally b { color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.run-tally .ok b { color: var(--success); }
.run-tally .bad b { color: var(--danger); }
.run-tally .hot b { color: var(--attention); }
.runs-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.runs-label .ic { width: 14px; height: 14px; color: var(--muted); }
.run-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.run-filters select, .run-filters input { height: 29px; font-size: 11px; border-radius: 7px; background: var(--inset); }
.run-filters input { width: 155px; font-family: var(--font-sans); }
.filter-search { display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--inset); color: var(--faint); transition: border-color .14s ease, box-shadow .14s ease; }
.filter-search .ic { width: 13px; height: 13px; flex: none; }
.filter-search input, .filter-search input:focus { width: 145px; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; outline: none; color: var(--text); }
.filter-search:focus-within { border-color: var(--lime-line); box-shadow: 0 0 0 3px var(--lime-dim); }
.run-row { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; gap: 11px; align-items: center; cursor: pointer; }
.run-row .rt { min-width: 0; }
.run-title { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.run-title a { color: var(--text); }
.run-title a:hover { color: var(--lime); text-decoration: none; }
.run-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.run-sub .gh-muted { color: var(--muted); }
.run-sub .pl-chip { height: 18px; font-size: 9.5px; }
.run-sub .st-disabled { display: inline-flex; align-items: center; gap: 3px; color: var(--attention); }
.run-sub .st-disabled .ic { width: 10px; height: 10px; }
.run-side { display: flex; align-items: center; gap: 10px; }
.run-side .pill { height: 21px; }
.run-side .progress { max-width: 92px; flex-wrap: wrap; justify-content: flex-end; }
.run-no-match { display: none; padding: 30px 20px; color: var(--muted); text-align: center; font-size: 12.5px; }
.run-row.hidden-by-query { display: none; }

/* ------------------------------------------------------------------ project page */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 11px; height: 11px; color: var(--faint); flex: none; }
.crumbs b { color: var(--text-2); font-weight: 550; }
.repo-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 15px 0 2px; }
.repo-title h1 { display: flex; align-items: center; gap: 9px; }
.repo-title h1 .ic { width: 21px; height: 21px; color: var(--muted); }
.repo-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 12px; }
.proj-mono { color: var(--faint); font: 10.5px var(--font-mono); }
.repo-title .run-tally { margin-top: 12px; }
.pr-list-row { align-items: center; }
.pr-list-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.pr-list-title a { color: var(--text); }
.pr-list-title a:hover { color: var(--lime); text-decoration: none; }
.pr-list-title .pill { height: 18px; font-size: 9px; }
.pr-list-sub { margin-top: 3px; font-size: 10.5px; }
.pr-list-last { display: flex; align-items: center; gap: 7px; flex: none; font-size: 10.5px; }
.pr-list-last .pill { height: 20px; font-size: 9.5px; }
.repo-sub { color: var(--muted); font-size: 12.5px; }
.pr-list .box-row { align-items: flex-start; }
.pr-list .box-row .grow > div:first-child { font-size: 12.5px; font-weight: 550; }
.pr-list .box-row .grow > div:first-child a { color: var(--text); }
.pr-list .box-row .grow > div:first-child a:hover { color: var(--lime); }
.pr-list .box-row .grow > .gh-muted { margin-top: 2px; }

/* ------------------------------------------------------------------ pull request */
.pr-head { margin: 10px 0 2px; }
.pr-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.pr-title .ic { width: 22px; height: 22px; color: var(--success); }
.pr-title .gh-muted { font-weight: 500; color: var(--muted); }
.pr-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 11.5px; }
.pr-sub .ic { width: 12px; height: 12px; color: var(--faint); }
.gh-tab .ic { width: 13px; height: 13px; flex: none; color: var(--faint); }
.gh-tab.active .ic { color: var(--lime); }
.branch { display: inline-flex; align-items: center; padding: 1px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--inset); color: var(--text-2); font: 10.5px var(--font-mono); }
.timeline { margin: 18px 0; }
.tl-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; margin-bottom: 16px; }
.tl-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); color: var(--muted); }
.tl-icon .ic { width: 15px; height: 15px; }
.tl-body { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-sm); }
.tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 11px; }
.tl-head b { color: var(--text); font-weight: 600; }
.tl-head .diffstat { color: var(--muted); }
.tl-content { padding: 10px; }
.tl-content .box { border-radius: 9px; box-shadow: none; }
.tl-content .box-row { padding: 9px 11px; font-size: 11.5px; }
.tl-content > .gh-muted { padding: 5px 4px; font-size: 11.5px; }
.tl-norun { padding: 6px 4px; font-size: 11.5px; }
.merge-panel { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); }
.merge-panel.ok { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: linear-gradient(120deg, var(--success-soft), var(--panel) 62%); }
.merge-panel.bad { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); background: linear-gradient(120deg, var(--danger-soft), var(--panel) 62%); }
.merge-panel.warn { border-color: color-mix(in srgb, var(--attention) 32%, var(--border)); background: linear-gradient(120deg, var(--attention-soft), var(--panel) 62%); }
.merge-panel.live { border-color: var(--lime-line); }
.merge-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--panel-3); color: var(--muted); }
.merge-panel.ok .merge-mark { background: var(--success-soft); color: var(--success); }
.merge-panel.bad .merge-mark { background: var(--danger-soft); color: var(--danger); }
.merge-panel.warn .merge-mark { background: var(--attention-soft); color: var(--attention); }
.merge-panel.live .merge-mark { color: var(--lime); background: var(--lime-dim); }
.merge-mark .ic { width: 20px; height: 20px; }
.merge-copy b { display: block; font-size: 13px; letter-spacing: -.01em; }
.merge-copy p { max-width: 640px; margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.merge-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.checks { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--border-muted); font-size: 11.5px; transition: background .13s ease; }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--panel-2); }
.check-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-row .note { max-width: 46%; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-row .details { display: inline-flex; align-items: center; gap: 1px; color: var(--lime); font-size: 10.5px; }
.check-row .details .ic { width: 11px; height: 11px; }
.check-row.is-disabled .name, .job-item.is-disabled .jname, tr.is-disabled td { color: var(--muted); font-style: italic; }
.diffstat { color: var(--muted); font: 10.5px var(--font-mono); }
.diffstat .add { color: var(--success); }
.diffstat .del { color: var(--danger); }
.file-row { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-bottom: 1px solid var(--border-muted); font-size: 11.5px; cursor: pointer; transition: background .13s ease; }
.file-row:hover { background: var(--panel-2); }
.file-row .path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 11px; }
.file-chev { display: inline-flex; color: var(--faint); }
.file-chev .ic { width: 12px; height: 12px; }
.badge-s { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; font: 600 10px var(--font-mono); }
.badge-s.added { color: var(--success); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.badge-s.modified { color: var(--attention); background: var(--attention-soft); border: 1px solid color-mix(in srgb, var(--attention) 35%, transparent); }
.badge-s.removed { color: var(--danger); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.patch { margin: 0; padding: 8px 0; border-top: 1px solid var(--border); background: var(--log-bg); color: var(--log-text); font: 11.5px/1.55 var(--font-mono); overflow: auto; max-height: 48vh; }
.patch div { padding: 0 12px; white-space: pre; }
.patch .l-add { background: rgba(97, 227, 163, .10); }
.patch .l-del { background: rgba(255, 138, 138, .10); }
.patch .l-hunk { color: #8ec5ff; }
.patch .l-meta { color: #7d8b80; }

/* ------------------------------------------------------------------ run page */
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.run-head .eyebrow { margin-bottom: 8px; }
.run-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 25px; letter-spacing: -.035em; }
.run-head h1 .pill { margin-left: 2px; }
.run-head h1 > .status-icon { flex: none; }
.run-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 11.5px; }
.run-meta b { color: var(--text-2); font-weight: 600; }
.run-meta .meta-bit { display: inline-flex; align-items: center; gap: 4px; }
.run-meta .meta-bit .ic { width: 12px; height: 12px; flex: none; color: var(--faint); }
.run-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.count-bit { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.count-bit .ic { width: 11px; height: 11px; flex: none; }
.notice { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--attention) 26%, var(--border)); border-left: 3px solid var(--attention); border-radius: 10px; background: var(--attention-soft); font-size: 12px; line-height: 1.6; }
.notice > .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--attention); }
.notice-copy { min-width: 0; }
.notice-copy > .gh-muted { margin-left: 5px; font-size: 11.5px; }
.run-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 18px; }
.jobs { position: sticky; top: 82px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); }
.jobs-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--panel-2); font-size: 12px; }
.jobs-head .gh-muted { font: 10px var(--font-mono); }
.jobs-list { max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; }
.job-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-muted);
  background: none;
  color: var(--text-2);
  font: 11.5px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background .13s ease, color .13s ease;
}
.job-item:last-child { border-bottom: 0; }
.job-item:hover { background: var(--panel-2); color: var(--text); }
.job-item.sel { background: var(--lime-dim); color: var(--text); box-shadow: inset 2px 0 0 var(--lime); }
.job-item .jname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-item .jtime { color: var(--faint); font: 9.5px var(--font-mono); }
.job-panel { min-width: 0; min-height: 350px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); }
.job-panel-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 13px 15px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.job-panel-head b { font-size: 12.5px; }
.job-panel-head .gh-muted { font: 10.5px var(--font-mono); }
.job-panel-head .pill { height: 20px; font-size: 9.5px; }
.anno { display: flex; align-items: flex-start; gap: 8px; margin: 11px 14px 0; padding: 9px 11px; border: 1px solid var(--border); border-left: 3px solid var(--attention); border-radius: 9px; background: var(--attention-soft); color: var(--text-2); font-size: 11.5px; line-height: 1.55; }
.anno > .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--attention); }
.anno.error > .ic { color: var(--danger); }
.anno.error { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); border-left-color: var(--danger); background: var(--danger-soft); }
.anno.warning { border-color: color-mix(in srgb, var(--attention) 30%, var(--border)); border-left-color: var(--attention); background: var(--attention-soft); }
.anno.notice { border-color: color-mix(in srgb, var(--attention) 30%, var(--border)); border-left-color: var(--attention); background: var(--attention-soft); }
.steps { border-top: 1px solid var(--border); }
.step { border-bottom: 1px solid var(--border-muted); }
.step:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 13px; border: 0; background: none; color: var(--text-2); font: 11.5px var(--font-sans); text-align: left; cursor: pointer; transition: background .13s ease; }
.step-head:hover { background: var(--panel-2); }
.step-head .sname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-head .gh-muted { font: 9.5px var(--font-mono); }
.step-head .chev { display: inline-flex; color: var(--faint); }
.step-head .chev .ic { width: 12px; height: 12px; }
.step-log { max-height: 48vh; overflow: auto; padding: 9px 0; border-top: 1px solid var(--border-muted); background: var(--log-bg); scrollbar-width: thin; }
.step-log pre { margin: 0; padding: 0 14px; color: var(--log-text); font: 11.5px/1.6 var(--font-mono); white-space: pre; }
.steps.wrap .step-log pre { white-space: pre-wrap; word-break: break-word; }
.log-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--border-muted); background: var(--panel); }
.log-tools input { flex: 1; min-width: 150px; height: 27px; border-radius: 7px; font: 11px var(--font-mono); }
.log-tools .filter-search { flex: 1; min-width: 170px; height: 27px; }
.log-tools .filter-search input { width: 100%; min-width: 0; height: 100%; font: 11px var(--font-mono); }
.log-tools .gh-muted { font-size: 10px; }
.log-tools .gh-btn { height: 27px; padding: 0 8px; font-size: 10.5px; }
.summary-banner { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.summary-banner.ok { color: var(--success); background: var(--success-soft); }
.summary-banner.bad { color: var(--danger); background: var(--danger-soft); }
.summary-banner:not(.ok):not(.bad) { color: var(--attention); background: var(--attention-soft); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 14px 16px; }
.summary-tile { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--inset); }
.summary-tile .k { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.summary-tile .v { margin-top: 3px; font-size: 13.5px; font-weight: 600; }
.summary-tile .v .count-bit .ic { width: 12px; height: 12px; }
.summary-h { margin: 4px 0 9px; font-size: 13px; letter-spacing: -.015em; }
.summary-body { padding-top: 5px; }
.report-head { border-top: 1px solid var(--border); }
.acct-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.acct-table th, .acct-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-muted); text-align: left; vertical-align: middle; }
.acct-table th { color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table tr.is-disabled td { color: var(--muted); }
.acct-table tr.is-failed td { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.v { min-width: 0; }

/* ------------------------------------------------------------------ pipeline page */
.pl-crumb { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.pl-crumb a { color: var(--muted); }
.pl-crumb a:hover { color: var(--text); }
.pl-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.pl-switch select { height: 28px; padding: 0 25px 0 9px; font-size: 11px; }
.pl-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.pl-title h1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.04em; }
.pl-title h1 .pill { font-size: 9.5px; height: 20px; }
.pl-head .pl-desc, #pl-head .pl-desc { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.pl-tabs { margin-top: 18px; }
.pl-pane { min-height: 220px; }
.pane-h { display: flex; align-items: center; gap: 8px; margin: 27px 0 8px; font-size: 13.5px; letter-spacing: -.015em; }
.pane-h:first-of-type { margin-top: 8px; }
.pane-h > .gh-muted { font-weight: 400; font-size: 11.5px; }
.metric-strip { display: flex; align-items: center; flex-wrap: wrap; margin: 18px 0 14px; padding: 4px 7px 4px 18px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow-sm); }
.metric { min-width: 92px; padding: 9px 18px; border-left: 1px solid var(--border-muted); }
.metric:first-child { padding-left: 2px; border-left: 0; }
.metric b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.metric span { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; font-weight: 550; letter-spacing: .06em; text-transform: uppercase; }
.metric.ok b { color: var(--success); }
.metric.bad b { color: var(--danger); }
.metric.hot b { color: var(--attention); }
.metric-strip > .gh-btn { margin-left: auto; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ov-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow-sm); }
.ov-card.span2 { grid-column: span 2; }
.ov-card-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.ov-card-head > .ic { width: 14px; height: 14px; flex: none; color: var(--lime); }
.ov-card-head b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.ov-card-head > span { color: var(--faint); font-size: 11px; }
.ov-card-body { padding: 14px 16px 15px; }
.ov-card-body > .health:first-child, .ov-card-body > .plan:first-child { margin-top: 0; }
.ov-card-body > .mt { margin-top: 12px; }
.ov-card-body.plan-body { padding: 0; }
.plan-body .plan { margin: 0; border: 0; border-radius: 0; background: transparent; }
.plan-body .plan-row { padding: 11px 16px; }
.ov-runs .box-row { padding: 12px 16px; }
.ov-runs .gh-empty { padding: 28px 16px; }
.ov-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 550; }
.ov-link .ic { width: 12px; height: 12px; }
.ov-access { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.ov-access > .ic { width: 15px; height: 15px; margin-top: 1px; flex: none; color: var(--muted); }
.ov-access.is-open > .ic { color: var(--success); }
.ov-access.is-closed > .ic { color: var(--attention); }
.ov-access-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.ov-access-meta > div { min-width: 0; padding: 8px 10px; border: 1px solid var(--border-muted); border-radius: 9px; background: var(--inset); }
.ov-access-meta span { display: block; color: var(--muted); font-size: 8.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ov-access-meta b { display: block; margin-top: 2px; overflow: hidden; font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.skeleton-page { display: grid; gap: 12px; padding: 4px 0; }
.skeleton { display: block; height: 58px; border-radius: 13px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel-3) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton.wide { height: 260px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.health { display: grid; gap: 6px; margin-top: 8px; }
.health-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border-muted); border-radius: 10px; background: var(--panel); font-size: 11.5px; }
.health-row.bad { border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); background: var(--danger-soft); }
.health-row.warn { border-color: color-mix(in srgb, var(--attention) 28%, var(--border)); background: var(--attention-soft); }
.health-dot { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--panel-3); color: var(--muted); font: 700 10px var(--font-sans); }
.health-row.ok .health-dot { color: var(--success); background: var(--success-soft); }
.health-row.warn .health-dot { color: var(--attention); background: var(--attention-soft); }
.health-row.bad .health-dot { color: var(--danger); background: var(--danger-soft); }
.health-text { flex: 1; min-width: 0; line-height: 1.5; }
.health-text b { font-weight: 600; }
.check-result { display: grid; gap: 6px; margin-top: 10px; }
.plan { display: grid; gap: 4px; margin-top: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 9px 13px; border-bottom: 1px solid var(--border-muted); }
.plan-row:last-child { border-bottom: 0; }
.plan-k { width: 92px; flex: none; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.plan-v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11.5px; }
.plan-row .gh-btn { height: 24px; font-size: 10px; }
.sum-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); font: 10.5px var(--font-mono); }
.model-summary { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--inset); font-size: 11.5px; }
.steps-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 5px; }
.steps-tools .inline-input { width: 180px; height: 28px; font-size: 11px; }
.steps-tools .gh-muted { font-size: 11.5px; }
.step-opts { display: grid; gap: 4px; margin-top: 8px; max-height: 44vh; overflow-y: auto; scrollbar-width: thin; }
.step-opts.tall { max-height: 56vh; }
.step-opt { display: flex; align-items: flex-start; gap: 9px; padding: 8px 11px; border: 1px solid var(--border-muted); border-radius: 9px; background: var(--panel); cursor: pointer; transition: background .13s ease, border-color .13s ease; }
.step-opt:hover { background: var(--panel-2); border-color: var(--border); }
.step-opt.off { background: var(--inset); }
.step-opt.off .step-opt-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--attention); }
.step-opt input { margin: 3px 0 0; flex: none; width: 14px; height: 14px; accent-color: var(--lime); }
.step-opt input:disabled { cursor: not-allowed; }
.step-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-opt-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; }
.step-opt-num { color: var(--muted); font: 10px var(--font-mono); font-weight: 400; }
.step-opt-desc { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.step-opt-note { color: var(--attention); font-size: 10.5px; }
.tag { padding: 0 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9.5px; font-weight: 550; text-decoration: none; }
.tag.advisory { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

/* ------------------------------------------------------------------ settings */
.set-card { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow-sm); }
.set-card:first-child { margin-top: 0; }
.set-card-head { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.set-card-head > div { flex: 1; min-width: 0; }
.set-card-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.set-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.set-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--lime-line); border-radius: 9px; background: var(--lime-dim); color: var(--lime); }
.set-ico .ic { width: 15px; height: 15px; }
.set-step { margin-left: auto; flex: none; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font: 10.5px var(--font-mono); }
.set-card-body { padding: 15px 16px 16px; }
.set-card-body > :first-child { margin-top: 0; }
.set-lead { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.toggle-stack { display: grid; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border-muted); }
.set-card.danger-zone { border-color: color-mix(in srgb, var(--danger) 24%, var(--border)); }
.set-card.danger-zone .set-card-head { background: color-mix(in srgb, var(--danger-soft) 45%, var(--panel-2)); }
.set-card.danger-zone .set-ico { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); background: var(--danger-soft); }
#pl-panes .set-footer { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 10px 13px; border: 1px solid var(--lime-line); border-radius: 12px; background: color-mix(in srgb, var(--panel-2) 92%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
#pl-panes .accounts, #pl-panes .gh-label input, #pl-panes select { max-width: 100%; }
#pl-panes #cfg-backend { width: 100%; max-width: 100%; }
#pl-panes .step-opts.tall { max-height: none; }
.accounts { margin: 14px 0 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.accounts legend { padding: 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.accounts .row { margin-top: 6px; }
.account { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 7px; margin-bottom: 6px; }
.account input { height: 30px; border-radius: 7px; font: 11.5px var(--font-mono); }
.account .gh-btn { height: 30px; }
.buildlog { max-height: 30vh; margin-top: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--log-bg); color: var(--log-text); font: 10.5px/1.5 var(--font-mono); overflow: auto; }
#cfg-backend { width: 100%; max-width: 100%; margin-top: 4px; }
.settings-form select { max-width: 100%; }
.provider { margin-top: 10px; padding: 12px; border: 1px solid var(--border-muted); border-radius: 12px; background: var(--panel); }
.provider.builtin { border-color: var(--lime-line); background: var(--lime-dim); }
.provider-head { display: grid; grid-template-columns: 120px minmax(160px, 1fr) 170px minmax(120px, 180px) auto; gap: 7px; align-items: center; }
.provider.builtin .provider-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.provider-head input, .provider-head select, .route-row select, .chips input { height: 30px; border-radius: 7px; font-family: var(--font-mono); font-size: 11.5px; }
.provider-head input[readonly] { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chips .inline-input { width: 200px; height: 30px; font-size: 11px; }
.chip-wrap { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); font-size: 10.5px; }
.chip-name { margin-right: 4px; font-family: var(--font-mono); }
.chip button { padding: 1px 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 10.5px; cursor: pointer; }
.chip button:hover { background: var(--btn-hover); color: var(--text); }
.chip button .ic { width: 11px; height: 11px; vertical-align: -1px; }
.chip-test { color: var(--lime) !important; }
.chip-status { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.chip-status .ic, .route-status .ic { width: 11px; height: 11px; vertical-align: -1px; }
.chip-status.ok { color: var(--success); }
.chip-status.bad { color: var(--danger); }
.chip-status.pending { color: var(--attention); }
.route-block { margin-top: 10px; padding: 12px 13px; border: 1px solid var(--border-muted); border-radius: 12px; background: var(--panel); }
.step-route { margin-top: 8px; padding: 9px 13px; border: 1px solid var(--border-muted); border-radius: 12px; background: var(--panel); }
.step-route > summary { cursor: pointer; font-size: 12px; list-style-position: inside; }
.step-route > summary .gh-muted { margin-left: 6px; font-size: 10.5px; font-weight: 400; }
.step-route[open] > summary { margin-bottom: 8px; }
.route-block h4 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 9px; font-size: 12px; font-weight: 600; }
.route-block h4 .gh-muted { font-weight: 400; font-size: 10.5px; }
.route-head, .route-row { display: grid; grid-template-columns: 20px minmax(130px, 200px) minmax(140px, 1fr) 100px 140px; gap: 7px; align-items: center; }
.route-head { margin-bottom: 5px; color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.route-row { margin-bottom: 6px; }
.route-row .route-status { grid-column: 2 / -1; margin-top: -2px; max-width: none; white-space: normal; }
.route-actions { display: inline-flex; gap: 3px; }
.route-n { text-align: right; color: var(--muted); font: 10px var(--font-mono); }
.route-empty { margin: 4px 0 8px; font-size: 11px; }
.routes + .row { margin-top: 6px; }
.fetched { margin-top: 8px; padding: 9px 11px; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--inset); }
.f-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; max-height: 180px; overflow-y: auto; }
.f-pick { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text-2); font: 10.5px var(--font-mono); cursor: pointer; }
.f-pick .ic { width: 11px; height: 11px; vertical-align: -1px; }
.f-pick:hover:not(:disabled) { border-color: var(--lime-line); color: var(--lime); }
.f-pick.added { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); cursor: default; }
.settings-form select { max-width: 100%; }

/* ------------------------------------------------------------------ agent access */
.cred { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--border-muted); }
.cred:last-of-type { border-bottom: 0; }
.cred-k { width: 142px; flex: none; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cred > code { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 7px; background: var(--inset); font: 11.5px var(--font-mono); overflow-wrap: anywhere; }
.cred code, .key-masked, .key-reveal code { font-family: var(--font-mono); }
.cred .gh-btn { height: 26px; font-size: 10.5px; }
.cred-v { flex: 1; min-width: 0; }
.cred-v p { margin: 4px 0 0; }
.key-reveal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px; border: 1px solid var(--lime-line); border-radius: 9px; background: var(--lime-dim); }
.key-reveal code { flex: 1; min-width: 200px; background: transparent; border: 0; padding: 0; color: var(--text); font-size: 12px; word-break: break-all; user-select: all; }
.key-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cred .key-actions .gh-btn { height: 28px; font-size: 11.5px; }
.key-masked { display: inline-block; padding: 4px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--inset); font-size: 12px; letter-spacing: .04em; }
.snippets { display: grid; gap: 12px; }
.snippet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.snippet-head b { font-size: 11px; font-weight: 600; }
.snippet pre { margin: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--log-bg); color: var(--log-text); font: 11px/1.6 var(--font-mono); overflow: auto; white-space: pre-wrap; word-break: break-word; }
.audit-row { align-items: baseline; gap: 12px; font-size: 11.5px; }
.audit-t { width: 66px; flex: none; font-size: 10px; }
.audit-ip { font-size: 10px; text-align: right; }
.guest-row { align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 11.5px; }
.gh-label.inline select { width: auto; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; }
.rm-url { font: 11.5px var(--font-mono); word-break: break-all; }
.rm-log { max-height: 160px; margin: 6px 0 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--log-bg); color: var(--log-text); font: 10.5px/1.55 var(--font-mono); overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------------ dialogs */
.gh-dialog { width: min(780px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--border-strong); border-radius: 19px; background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-pop); overflow-y: auto; }
.gh-dialog::backdrop { background: rgba(3, 5, 4, .68); backdrop-filter: blur(7px); }
.gh-dialog[open] { animation: dialog-in .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.gh-form { padding: 22px 24px 20px; }
.gh-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.gh-dialog-head h2 { font-size: 21px; letter-spacing: -.035em; }
.dialog-eyebrow { margin-bottom: 3px; color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.gh-dialog-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; margin: 18px -24px -20px; padding: 14px 24px 18px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-elev) 94%, transparent); backdrop-filter: blur(8px); }
.gh-dialog-foot { position: sticky; bottom: 0; z-index: 2; margin: 18px -24px -20px; padding: 0 24px 16px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-elev) 94%, transparent); backdrop-filter: blur(8px); }
.gh-dialog-foot > .gh-dialog-actions { position: static; margin: 0; padding: 13px 0 0; border-top: 0; background: none; backdrop-filter: none; }
.gh-dialog-foot > #submit-hint:not(:empty) { padding-top: 12px; }
.gh-dialog-narrow { width: min(440px, 94vw); }
.gh-dialog-wide { width: min(1040px, 96vw); }
.gh-dialog > .gh-form > p.gh-muted { font-size: 12px; line-height: 1.6; }
.pl-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 7px; margin: 7px 0 15px; }
.pl-opt { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid var(--border); border-left: 2px solid var(--pl, var(--border)); border-radius: 10px; background: var(--panel); cursor: pointer; transition: background .14s ease, border-color .14s ease; }
.pl-opt:hover { background: var(--panel-2); }
.pl-opt.sel { border-color: var(--lime-line); border-left-color: var(--pl, var(--lime)); background: var(--lime-dim); }
.pl-opt.is-off { opacity: .5; cursor: not-allowed; }
.pl-opt input { margin-top: 2px; accent-color: var(--lime); }
.pl-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-opt-title { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; }
.pl-opt-title .pill { height: 18px; font-size: 9px; }
.pl-opt-desc { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.pl-opt-state { font-size: 10.5px; }
.pl-opt-state .ic { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.drop { padding: 26px 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--inset); text-align: center; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.drop:hover, .drop.hot { border-color: var(--lime-line); background: var(--lime-dim); }
.drop-inner { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.drop-inner strong { color: var(--text-2); font-size: 12.5px; }
.options { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.options summary { color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.options summary:hover { color: var(--text); }
.opts { display: grid; gap: 4px; margin-top: 7px; }
.set-footer { display: flex; align-items: center; gap: 8px; margin: 16px -24px -20px; padding: 11px 24px; border-top: 1px solid var(--border); background: var(--panel-2); border-radius: 0 0 19px 19px; }
.set-footer .spacer { flex: 1; }

/* command palette and help */
.palette { width: min(620px, 94vw); margin-top: 11vh; padding: 0; overflow: hidden; }
.pal-box { display: flex; flex-direction: column; }
#pal-input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--border); outline: none; background: var(--bg-elev); color: var(--text); font: 14px var(--font-sans); }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-group { padding: 9px 10px 3px; color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.pal-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: 12px var(--font-sans); text-align: left; cursor: pointer; }
.pal-item.sel { background: var(--lime-dim); color: var(--text); box-shadow: inset 2px 0 0 var(--lime); }
.pal-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-hint { color: var(--muted); font-size: 10px; white-space: nowrap; }
.pal-none { padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.pal-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 10px; }
.help-list { display: grid; gap: 3px; margin-top: 8px; }
.help-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--border-muted); font-size: 11.5px; }
.help-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ markdown */
.md { padding: 15px 17px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; }
.md h1, .md h2 { margin: 18px 0 9px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 17px; }
.md h3 { margin: 16px 0 7px; font-size: 14px; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 8px 0; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { font-family: var(--font-mono); }
.md pre { margin: 10px 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--log-bg); color: var(--log-text); overflow: auto; font: 11px/1.6 var(--font-mono); }
.md pre code { background: none; padding: 0; }
.md table { display: block; width: 100%; margin: 11px 0; border-collapse: collapse; overflow-x: auto; }
.md th, .md td { padding: 7px 10px; border: 1px solid var(--border); text-align: left; font-size: 11.5px; }
.md th { background: var(--panel-2); }
.md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.md hr { margin: 15px 0; }
.md strong { font-weight: 650; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .top-search { width: min(250px, 26vw); min-width: 150px; }
  .top-search kbd { display: none; }
  .gh-tab { gap: 6px; padding: 10px 9px 11px; }
  .pl-grid { grid-template-columns: 1fr; }
  .run-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .user-btn .btn-label { display: none; }
  .user-btn { width: 34px; padding: 0; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 282px; height: 100dvh; transform: translateX(-103%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 80px rgba(0, 0, 0, .5); }
  .sidebar.open { transform: none; }
  .side-scrim { display: block; }
  body.nav-open { overflow: hidden; }
  .only-mobile, .gh-only-mobile { display: inline-flex; }
  #nav-close, #nav-toggle { display: inline-flex; }
  .topbar { min-height: 60px; }
  .page-hero { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-stats { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .hero-stat { min-width: 0; }
  .pl-grid { grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); }
  .run-layout { grid-template-columns: 1fr; }
  .jobs { position: static; }
  .jobs-list { display: flex; overflow-x: auto; max-height: none; }
  .job-item { width: auto; min-width: max-content; border-bottom: 0; border-right: 1px solid var(--border-muted); }
  .jobs-head { display: none; }
  .check-row .note { display: none; }
  .ov-grid { grid-template-columns: 1fr; }
  .ov-card.span2 { grid-column: auto; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; min-height: 0; padding: 9px 14px; gap: 7px; }
  .topbar #nav-toggle { order: 0; }
  .top-actions { order: 1; margin-left: auto; gap: 3px; }
  .top-search { order: 3; width: 100%; height: 34px; }
  .status-pill { max-width: 140px; }
  .top-sep, #btn-settings, #btn-palette, #btn-theme { display: none; }
  .top-new { padding: 0 11px; }
  .top-new .btn-label { display: none; }
  .gh-main { padding: 18px 14px 56px; }
  .banner { margin: 10px 14px 0; }
  .page-hero { padding: 22px 18px; border-radius: 17px; }
  .page-hero h1, .actions-head h1, .page-title h1 { font-size: 27px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions .gh-btn { flex: 1; }
  .page-title, .actions-head { align-items: flex-start; }
  .pl-grid, .proj-grid { grid-template-columns: 1fr; }
  .pl-card { padding: 16px; border-radius: 15px; }
  .pl-stats-row { grid-template-columns: repeat(5, 1fr); }
  .pl-stat { padding: 0 6px; }
  .pl-stat b { font-size: 15px; }
  .pl-stat span { font-size: 8px; letter-spacing: .01em; }
  .metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px 6px 10px; }
  .metric { min-width: 0; padding: 7px 8px; }
  .metric b { font-size: 17px; }
  .metric span { font-size: 8px; letter-spacing: .02em; }
  .metric-strip > .gh-btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
  .ov-card-head { padding: 9px 12px; }
  .ov-card-body { padding: 12px; }
  .plan-body .plan-row { padding: 10px 12px; }
  .ov-runs .box-row { padding: 11px 12px; }
  .box-row, .check-row, .file-row { padding-left: 12px; padding-right: 12px; }
  .run-side .progress { display: none; }
  .run-filters { width: 100%; }
  .run-filters input { flex: 1; width: auto; }
  .box-head { padding: 9px 12px; }
  .box-body { padding: 14px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
  .tl-icon { width: 26px; height: 26px; }
  .gh-tabs { gap: 0; }
  .gh-tab { padding: 9px 10px; font-size: 11.5px; }
  .pr-title { font-size: 21px; }
  .run-head h1 { font-size: 21px; }
  .run-actions { width: 100%; }
  .run-actions .gh-btn { flex: 1; }
  .patch { font-size: 10.5px; }
  .gh-dialog { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .gh-dialog::backdrop { background: rgba(3, 5, 4, .72); }
  .gh-form { padding: 18px 16px 16px; }
  .gh-dialog-actions { margin: 14px -16px -16px; padding: 12px 16px 14px; }
  .gh-dialog-foot { margin: 14px -16px -16px; padding: 0 16px 14px; }
  .set-footer { margin: 16px -16px -16px; padding: 10px 16px; border-radius: 0; }
  .palette { margin-top: 8vh; border-radius: 16px; width: calc(100vw - 24px); }
  .account { grid-template-columns: 1fr; }
  .provider-head { grid-template-columns: 1fr 1fr; }
  .provider.builtin .provider-head { display: flex; }
  .route-head { display: none; }
  .route-row { grid-template-columns: 20px 1fr; }
  .route-row > :nth-child(n+3) { grid-column: 2; }
  .cred-k { width: 100%; }
  .cred > code { flex-basis: 100%; order: 2; }
  .cred .gh-btn { order: 3; }
  .plan-k { width: 76px; }
  .pl-card footer .gh-btn-quiet { margin-left: 0; }
  .fchip { height: 26px; }
  .top-search kbd { display: none; }
  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
@media (max-width: 430px) {
  .top-actions .status-pill { max-width: 120px; padding: 0 8px; }
  .top-actions .status-pill span { font-size: 10.5px; }
  .hero-stat b { font-size: 21px; }
  .pl-badges .pill.neutral { display: none; }
  .summary-grid { grid-template-columns: 1fr; }
  .pr-sub .branch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
