/* Driftfix. Layout: 1200px column. Hero copy, then the live product in a window frame; below it the
   playground and a document-like run of sections separated by hairlines. Neutral greys; colour only
   carries meaning (green passed, red failed, purple merged, amber needs a human). */
:root {
  --bg: #ffffff; --bg-2: #fafafa; --bg-3: #f4f4f5; --hover: #f4f4f5;
  --line: #ebebed; --line-2: #dedee2;
  --fg: #0a0a0b; --fg-2: #3f3f46; --muted: #6b6b76; --faint: #9a9aa5;
  --primary: #0a0a0b; --primary-fg: #ffffff;
  --green: #1a7f37; --green-bg: #dafbe1; --add-bg: #e6ffec; --add-num: #ccffd8;
  --red: #cf222e; --red-bg: #ffebe9; --del-bg: #ffebe9; --del-num: #ffd7d5;
  --amber: #9a6700; --amber-bg: #fff8c5; --purple: #8250df; --purple-bg: #fbefff; --blue: #0969da;
  --t-kw: #cf222e; --t-str: #0a3069; --t-num: #0550ae; --t-com: #6e7781; --t-fn: #8250df;
  --shadow: 0 1px 2px rgba(10, 10, 11, .04), 0 32px 80px -32px rgba(10, 10, 11, .22);
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --bg-2: #0f0f11; --bg-3: #17171a; --hover: #1b1b1f; --line: #222226; --line-2: #2e2e34;
    --fg: #ededef; --fg-2: #c8c8ce; --muted: #8e8e98; --faint: #61616a; --primary: #ededef; --primary-fg: #0a0a0b;
    --green: #3fb950; --green-bg: rgba(46, 160, 67, .16); --add-bg: rgba(46, 160, 67, .13); --add-num: rgba(46, 160, 67, .24);
    --red: #f85149; --red-bg: rgba(248, 81, 73, .14); --del-bg: rgba(248, 81, 73, .12); --del-num: rgba(248, 81, 73, .22);
    --amber: #d29922; --amber-bg: rgba(187, 128, 9, .16); --purple: #a371f7; --purple-bg: rgba(163, 113, 247, .14); --blue: #4493f8;
    --t-kw: #ff7b72; --t-str: #a5d6ff; --t-num: #79c0ff; --t-com: #8b949e; --t-fn: #d2a8ff;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 32px 80px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg-2: #0f0f11; --bg-3: #17171a; --hover: #1b1b1f; --line: #222226; --line-2: #2e2e34;
  --fg: #ededef; --fg-2: #c8c8ce; --muted: #8e8e98; --faint: #61616a; --primary: #ededef; --primary-fg: #0a0a0b;
  --green: #3fb950; --green-bg: rgba(46, 160, 67, .16); --add-bg: rgba(46, 160, 67, .13); --add-num: rgba(46, 160, 67, .24);
  --red: #f85149; --red-bg: rgba(248, 81, 73, .14); --del-bg: rgba(248, 81, 73, .12); --del-num: rgba(248, 81, 73, .22);
  --amber: #d29922; --amber-bg: rgba(187, 128, 9, .16); --purple: #a371f7; --purple-bg: rgba(163, 113, 247, .14); --blue: #4493f8;
  --t-kw: #ff7b72; --t-str: #a5d6ff; --t-num: #79c0ff; --t-com: #8b949e; --t-fn: #d2a8ff;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 32px 80px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lock, html.lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: .9em; }
kbd { display: inline-block; font-size: 11px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); line-height: 1.5; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.i { flex: none; display: block; }
.dim { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; touch-action: manipulation; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn.primary:hover { opacity: .86; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn.merge { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- top ---------- */
.announce { border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--muted); }
.announce .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 38px; flex-wrap: wrap; text-align: center; padding-block: 6px; }
.announce b { color: var(--fg); font-weight: 500; }
.announce a { color: var(--fg); display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--fg); }
.nav { display: flex; gap: 2px; font-size: 14px; color: var(--muted); }
.nav a { padding: 6px 10px; border-radius: 6px; }
.nav a:hover { color: var(--fg); background: var(--hover); }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .top .right .btn:not(.primary) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 88px 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 25%, transparent 75%); opacity: .65; pointer-events: none; }
.hero .wrap { position: relative; }
@media (max-width: 640px) { .hero { padding-block: 56px 40px; } }
.eyebrow-link { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--muted); }
.eyebrow-link .tag { font: 500 11px var(--mono); padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.eyebrow-link:hover { border-color: var(--faint); color: var(--fg); }
.hero h1 { margin-top: 26px; font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; max-width: 13em; }
.hero h1 .soft { color: var(--faint); }
.hero .sub { margin-top: 22px; max-width: 37em; font-size: 18px; line-height: 1.55; color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts .i { color: var(--fg-2); }

/* ---------- product window ---------- */
.showcase { padding-bottom: 32px; }
.window { position: relative; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 42px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-title { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.win-title .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.win-actions { justify-self: end; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .win-actions span, .lights { display: none; } .win-bar { grid-template-columns: 1fr auto; } }
.window.is-full { position: fixed; inset: 0; z-index: 100; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.window.is-full .app { height: auto; min-height: 0; }
.caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.caption span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- app (demo workspace) ---------- */
.app { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 720px; font-size: 13.5px; line-height: 1.5; background: var(--bg); color: var(--fg); text-align: left; }
@media (max-width: 900px) { .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 760px; } }
.app-side { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-right: 1px solid var(--line); background: var(--bg-2); min-height: 0; overflow: auto; }
@media (max-width: 900px) { .app-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 8px; } .side-foot, .org-tag, .side-search span, .side-search kbd, .side-group, .org .dim { display: none !important; } }
.org { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: 8px; font-weight: 600; font-size: 14px; flex: none; }
.org-av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; }
.org-tag { font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--amber-bg); color: var(--amber); margin-left: auto; }
.side-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); cursor: pointer; font-size: 13px; flex: none; }
.side-search kbd { margin-left: auto; }
.side-search:hover { border-color: var(--line-2); color: var(--fg); }
.side-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
@media (max-width: 900px) { .side-nav { flex-direction: row; margin: 0; } }
.side-group { font-size: 11.5px; font-weight: 500; color: var(--faint); padding: 12px 8px 4px; }
.side-nav button { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.side-nav button .i { color: var(--muted); }
.side-nav button:hover { background: var(--hover); }
.side-nav button[aria-current="page"] { background: var(--bg-3); color: var(--fg); font-weight: 500; }
.side-nav button[aria-current="page"] .i { color: var(--fg); }
.side-nav em { margin-left: auto; font: 500 11px var(--mono); color: var(--muted); font-style: normal; padding-left: 8px; }
.side-foot { margin-top: auto; display: flex; gap: 9px; align-items: flex-start; padding: 10px 8px 4px; font-size: 12px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); }
.side-foot code { font-size: 11px; }
.pulse { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); flex: none; }
.app-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.app-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.crumbs button { border: 0; background: none; padding: 2px 4px; border-radius: 5px; color: var(--muted); cursor: pointer; }
.crumbs button:hover { color: var(--fg); background: var(--hover); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--fg); font-weight: 500; }
.bar-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.app-body { overflow: auto; min-height: 0; outline: none; }
.page { padding: 26px 28px 48px; display: grid; gap: 18px; align-content: start; max-width: 1240px; }
.page.wide { max-width: none; }
.page.narrow { max-width: 760px; }
@media (max-width: 640px) { .page { padding: 18px 16px 40px; } }
.page-h h1, .repo-h h1 { font-size: 22px; letter-spacing: -.025em; }
.page-h p { color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { padding: 12px 16px; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div { border-left: 0; border-top: 1px solid var(--line); } .stats > div:nth-child(-n+2) { border-top: 0; } .stats > div:nth-child(even) { border-left: 1px solid var(--line); } }

.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.panel:not(.flush) { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.panel.flush { overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.panel-h h2 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.panel-h .count { margin-right: auto; }
.count { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 999px; background: var(--bg-3); color: var(--muted); }
.count.warn { background: var(--amber-bg); color: var(--amber); }
.link { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }
.link:hover { text-decoration: underline; }
.list { display: grid; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; font-size: 13.5px; color: var(--fg); }
.list > .item:first-child { border-top: 0; }
button.item { cursor: pointer; }
button.item:hover { background: var(--bg-2); }
.item.compact { grid-template-columns: auto minmax(0, 1fr) auto; padding: 9px 2px; }
.item[aria-current="true"] { background: var(--bg-3); }
.panel.flush .item { padding-left: 14px; padding-right: 14px; }
.item-t { min-width: 0; }
.item-t b { font-weight: 500; }
.item-t > span { color: var(--fg-2); }
.item-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd-hint { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .item { grid-template-columns: auto minmax(0, 1fr); } .item > .dstat, .item > .kbd-hint { display: none; } .item > .btn { grid-column: 2; justify-self: start; } }
.st { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.st.open { color: var(--green); } .st.merged { color: var(--purple); } .st.closed { color: var(--red); } .st.draft { color: var(--muted); } .st.warn { color: var(--amber); }
.mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg-2); font: 600 10.5px var(--mono); color: var(--fg-2); flex: none; }
.mark.lg { width: 38px; height: 38px; font-size: 12px; border-radius: 9px; }
.pill { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.live { border-color: transparent; background: var(--green-bg); color: var(--green); }
.empty-row { display: flex; gap: 10px; align-items: center; padding: 18px 14px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--fg-2); }
.feed em { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.feed time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.feed-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--muted); }
.feed-ic.pr { color: var(--green); background: var(--green-bg); } .feed-ic.merge { color: var(--purple); background: var(--purple-bg); } .feed-ic.close { color: var(--red); background: var(--red-bg); }

.table-h { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; }
.table-h b { font-weight: 500; }
.filters { display: flex; gap: 2px; flex-wrap: wrap; }
.filters button { display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.filters button span { font-family: var(--mono); font-size: 11.5px; }
.filters button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2); font-weight: 500; }
.prrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--fg); }
.table-h + .prrow, .panel > .prrow:first-child { border-top: 0; }
.prrow:hover { background: var(--bg-2); }
.prrow .st { margin-top: 1px; }
.prrow-t b { font-weight: 600; margin-right: 6px; }
.prrow-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.prrow-m { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .prrow { grid-template-columns: auto minmax(0, 1fr); } .prrow-m { grid-column: 2; } }
.label { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; height: 20px; padding: 0 8px; margin-right: 4px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); vertical-align: 1px; white-space: nowrap; }
.label.warn { border-color: transparent; background: var(--amber-bg); color: var(--amber); }
.ck { display: inline-grid; place-items: center; }
.ck.pass { color: var(--green); } .ck.fail { color: var(--red); } .ck.pend { color: var(--amber); }
.cm { display: inline-flex; gap: 4px; align-items: center; }
.dstat { display: inline-flex; gap: 6px; align-items: center; font: 500 12px var(--mono); white-space: nowrap; }
.dstat .add { color: var(--green); } .dstat .del { color: var(--red); }
.boxes { display: inline-flex; gap: 1px; }
.boxes i { width: 7px; height: 7px; border-radius: 1px; background: var(--red); }
.boxes i.a { background: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: var(--green); white-space: nowrap; }
.badge.merged { background: var(--purple); } .badge.closed { background: var(--red); } .badge.draft { background: var(--muted); }

.pr-h { display: grid; gap: 10px; }
.pr-h h1 { font-weight: 500; font-size: 24px; letter-spacing: -.025em; }
.pr-h .num { color: var(--faint); font-weight: 400; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--muted); font-size: 13.5px; }
.pr-meta b { color: var(--fg); font-weight: 500; }
.pr-meta .dstat { margin-left: auto; }
code.ref { font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.tabs button span { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 999px; background: var(--bg-3); }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: start; }
@media (max-width: 1100px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
.pr-col { display: grid; gap: 16px; min-width: 0; }
.side-b { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.side-b:first-child { padding-top: 0; }
.side-b h3 { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.who .dim { margin-left: auto; font-size: 12px; }
.ok-ic { margin-left: auto; color: var(--green); }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--fg-2); flex: none; }
.av.bot { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag-bot { font: 500 10.5px var(--mono); padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.labels { display: flex; flex-wrap: wrap; gap: 4px; }
.policy { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--fg-2); }
.policy li { display: flex; gap: 7px; align-items: center; }
.comment { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.comment header { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13px; }
.comment header .dim { font-size: 12.5px; }
.md { padding: 14px 16px; display: grid; gap: 10px; font-size: 13.5px; color: var(--fg-2); }
.md a { color: var(--blue); overflow-wrap: anywhere; }
.md h4 { font-size: 13.5px; color: var(--fg); margin-top: 4px; }
.md ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.md-t { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.md-t th, .md-t td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.md-t th { background: var(--bg-2); font-weight: 500; color: var(--muted); }
.md-t code, table.grid code { font-size: 12px; overflow-wrap: anywhere; }
code.b { color: var(--red); } code.a { color: var(--green); }
.md-notes code { color: var(--amber); }
.tscroll { overflow-x: auto; }
.timeline { list-style: none; margin: 0 0 0 10px; padding: 2px 0 2px 22px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; font-size: 13px; color: var(--muted); }
.timeline b { color: var(--fg); font-weight: 500; }
.timeline time { font-size: 12px; color: var(--faint); }
.tl-ic { position: absolute; left: -34px; top: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 2px solid var(--bg); color: var(--muted); }
.tl-ic.pr { color: var(--green); } .tl-ic.merge { color: #fff; background: var(--purple); } .tl-ic.prClosed { color: #fff; background: var(--red); } .tl-ic.check { color: var(--green); }
.mergecard { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.mc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.mc-row:first-child { border-top: 0; }
.mc-row small { display: block; color: var(--muted); font-size: 12.5px; }
.mc-row b { font-weight: 500; }
.mc-row.last { background: var(--bg-2); }
.mc-row.done { background: var(--purple-bg); }
.mc-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .mc-row { grid-template-columns: auto minmax(0, 1fr); } .mc-act, .mc-row > .checkline, .mc-row > .btn, .mc-row > .link { grid-column: 2; justify-content: flex-start; justify-self: start; } }
.checkline { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; cursor: pointer; white-space: nowrap; }
.checkline input, .viewed input { width: 15px; height: 15px; accent-color: var(--fg); margin: 0; cursor: pointer; }
.compose { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.compose-b { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.compose-b:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; }
.compose textarea { width: 100%; border: 0; background: var(--bg); color: var(--fg); font: 13.5px var(--sans); padding: 10px 12px; resize: vertical; outline: none; display: block; }
.compose-a { display: flex; gap: 6px; justify-content: flex-end; padding: 8px; border-top: 1px solid var(--line); background: var(--bg-2); }
.commit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; }
.commit small { display: block; color: var(--muted); font-size: 12.5px; }
.commit b { font-weight: 500; }
.sha { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-2); }
.check-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.table-h + .check-row { border-top: 0; }
.check-row small { display: block; color: var(--muted); font-size: 12.5px; }
.check-row code { font-size: 12.5px; margin-right: 6px; }
.files { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .files { grid-template-columns: minmax(0, 1fr); } }
.ftree { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; align-content: start; position: sticky; top: 0; background: var(--bg); }
.ftree-h { display: grid; gap: 6px; padding: 4px 6px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ftree-h .bar { height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.ftree-h .bar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.ftree button { display: flex; gap: 7px; align-items: center; padding: 6px 7px; border: 0; border-radius: 6px; background: none; color: var(--fg-2); font: 12.5px var(--mono); cursor: pointer; text-align: left; }
.ftree button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.ftree button:hover { background: var(--hover); }
.ftree button[aria-current="true"] { background: var(--bg-3); color: var(--fg); }
.ftree button .i { color: var(--muted); }
.ftree button .i.ok { color: var(--green); }
.ftree em { font: 500 11px var(--mono); font-style: normal; padding: 0 5px; border-radius: 999px; background: var(--bg-3); color: var(--muted); }
.ftree em.warn { background: var(--amber-bg); color: var(--amber); }
.fdiffs { display: grid; gap: 14px; min-width: 0; }
.fdiff { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 10px; }
.fdiff > header { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.fdiff.collapsed > header { border-bottom: 0; }
.fdiff > header code { font-weight: 500; }
.fdiff .diff { overflow-x: auto; display: block; }
.viewed { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; background: var(--bg); }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
table.grid th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
table.grid td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid .r { text-align: right; }
table.grid tbody tr[data-act] { cursor: pointer; }
table.grid tbody tr[data-act]:hover { background: var(--bg-2); }
.repo-c { display: flex; gap: 10px; align-items: flex-start; }
.repo-c .i { margin-top: 2px; }
.repo-c b { font-weight: 500; }
.repo-c small { display: block; color: var(--muted); font-size: 12.5px; }
.chip { display: inline-flex; font: 12px var(--mono); padding: 1px 7px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); white-space: nowrap; }
.chip.warn { background: var(--amber-bg); color: var(--amber); }
.lang { display: inline-flex; gap: 6px; align-items: center; color: var(--fg-2); }
.lang i { width: 9px; height: 9px; border-radius: 50%; background: #3572a5; }
.rs { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rs.warn { color: var(--amber); } .rs.open { color: var(--green); } .rs.merged { color: var(--purple); } .rs.ok { color: var(--green); }
.footnote { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.footnote .i { margin-top: 2px; }
.repo-h { display: grid; gap: 6px; }
.repo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.repo-h p { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--fg-2); }
.banner.warn { background: var(--amber-bg); border-color: transparent; color: var(--fg); }
.banner.warn .i { color: var(--amber); }
.banner span { flex: 1 1 260px; }
.banner b { font-weight: 500; }
.repo-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .repo-grid { grid-template-columns: minmax(0, 1fr); } }
.viewer { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.viewer header { display: flex; gap: 10px; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; }
.viewer header .dim { margin-left: auto; }
.viewer .code { overflow: auto; max-height: 460px; }
.viewer table { border-collapse: collapse; font: 12.5px/1.75 var(--mono); min-width: 100%; }
.viewer td { padding: 0 14px 0 0; white-space: pre; vertical-align: top; }
.viewer td.ln { padding: 0 12px 0 14px; text-align: right; color: var(--faint); user-select: none; width: 1%; }
.viewer tr.hit td { background: var(--amber-bg); }
.viewer tr.hit td.ln { box-shadow: inset 2px 0 0 var(--amber); color: var(--amber); }
mark.v0 { background: transparent; color: inherit; text-decoration: underline wavy var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.runlog { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.runlog header { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; flex-wrap: wrap; }
.runlog header b { font-weight: 500; }
.runlog header .btn { margin-left: auto; }
.runlog pre { margin: 0; padding: 12px 14px; font: 12px/1.75 var(--mono); color: var(--fg-2); overflow-x: auto; max-height: 260px; }
.runlog .t { color: var(--faint); }
.runlog .ok { color: var(--green); } .runlog .warn { color: var(--amber); } .runlog .dim { color: var(--muted); }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--fg); animation: spin .7s linear infinite; flex: none; }
.spin.sm { width: 11px; height: 11px; border-width: 1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ch-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ch-h h2 { font-size: 16px; }
.ch-h .pill { margin-left: auto; }
.lead { color: var(--fg-2); }
.kv { display: grid; border: 1px solid var(--line); border-radius: 8px; }
.kv > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.kv > div:first-child { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; }
.kv a { color: var(--blue); display: inline-flex; gap: 4px; align-items: center; }
.row-actions { display: flex; gap: 8px; }
h3.sub { font-size: 13px; font-weight: 600; margin-top: 4px; }
.search-field { display: flex; gap: 8px; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); max-width: 520px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--fg); font: 13.5px var(--sans); }
.search-field span { font-size: 12px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--fg-2); }
.adopt { display: grid; grid-template-columns: 210px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 13px; }
.adopt span { color: var(--muted); }
.adopt b { font: 500 12.5px var(--mono); text-align: right; }
.track { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--fg); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 640px) { .adopt { grid-template-columns: minmax(0, 1fr) 40px; } .adopt .track { grid-column: 1 / -1; order: 3; } }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card-b { padding: 18px 20px; display: grid; gap: 10px; }
.card-b h2 { font-size: 15px; }
.card-b > p { color: var(--muted); font-size: 13.5px; }
.card-f { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px 10px 20px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; }
.card.danger { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.perm { list-style: none; padding: 0; }
.perm li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.setting { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.card-b h2 + .setting { border-top: 0; }
.setting span { display: grid; gap: 1px; }
.setting b { font-weight: 500; }
.setting small { color: var(--muted); font-size: 12.5px; }
.switch { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(14px); }
input.text { height: 36px; width: 100%; max-width: 320px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--fg); font: 13px var(--mono); }
input.text:focus, .search-field:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; }
.err { color: var(--red); font-size: 12.5px; }

.toasts { position: absolute; right: 14px; bottom: 14px; display: grid; gap: 8px; z-index: 40; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; min-width: 240px; max-width: 340px; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); font-size: 13px; transition: opacity .35s, transform .35s; }
.toast .i { color: var(--green); margin-top: 2px; }
.toast small { display: block; opacity: .7; font-size: 12px; }
.toast b { font-weight: 500; }
.toast.out { opacity: 0; transform: translateY(6px); }
.overlay { position: absolute; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 70px 16px 16px; background: rgba(10, 10, 11, .32); }
.overlay.center { place-items: center; padding: 16px; }
.pal { width: min(600px, 100%); border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); overflow: hidden; }
.pal-in { display: flex; gap: 10px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; height: 50px; border: 0; outline: none; background: none; color: var(--fg); font: 15px var(--sans); }
.pal-list { max-height: 340px; overflow: auto; padding: 6px; }
.pal-g { font-size: 11.5px; color: var(--faint); padding: 8px 10px 4px; font-weight: 500; }
.pal-list button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; font-size: 13.5px; color: var(--fg-2); }
.pal-list button .i { color: var(--muted); }
.pal-list button kbd { margin-left: auto; }
.pal-list button[aria-selected="true"], .pal-list button:hover { background: var(--bg-3); color: var(--fg); }
.pal-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--muted); }
.pal-foot kbd { margin-right: 3px; }
.modal { width: min(820px, 100%); max-height: 88%; overflow: auto; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); padding: 20px; display: grid; gap: 12px; }
.modal h2 { font-size: 16px; }
.modal p { color: var(--fg-2); }
.modal-diff { border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 52vh; }
.modal-a { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- diff + code ---------- */
.diff { font: 12.5px/1.7 var(--mono); }
.diff > * { min-width: max-content; }
.dh { display: flex; justify-content: space-between; gap: 16px; padding: 4px 14px; background: color-mix(in srgb, var(--blue) 7%, var(--bg)); color: var(--muted); border-bottom: 1px solid var(--line); }
.dh em { font-style: normal; }
.dl { display: grid; grid-template-columns: 44px 44px 18px auto; }
.dl > span { white-space: pre; }
.dn { text-align: right; padding-right: 10px; color: var(--faint); user-select: none; font-variant-numeric: tabular-nums; }
.ds { user-select: none; color: var(--faint); }
.dc { padding-right: 18px; }
.dl.add { background: var(--add-bg); } .dl.add .dn { background: var(--add-num); } .dl.add .ds { color: var(--green); }
.dl.del { background: var(--del-bg); } .dl.del .dn { background: var(--del-num); } .dl.del .ds { color: var(--red); }
.t-kw { color: var(--t-kw); } .t-str { color: var(--t-str); } .t-num { color: var(--t-num); } .t-com { color: var(--t-com); font-style: italic; } .t-fn { color: var(--t-fn); }

/* ---------- sections ---------- */
section.sec { padding-block: 96px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { section.sec { padding-block: 64px; } }
.sec-h { max-width: 820px; margin-bottom: 40px; }
.sec-h .kicker { font: 500 13px var(--mono); color: var(--muted); display: block; margin-bottom: 14px; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
.sec-h h2 .soft { color: var(--faint); }

/* playground */
.pg { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.pg-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg-3); flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; touch-action: manipulation; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
.pg-bar .right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.live-note { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--muted); }
.live-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@media (max-width: 720px) { .pg-bar .right { margin-left: 0; width: 100%; } .pg-bar .right .btn { flex: 1; } .live-note { display: none; } }
.pg-repo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pg-repo .field { flex: 1 1 280px; display: flex; gap: 8px; align-items: center; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); }
.pg-repo .field:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; }
.pg-repo input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--fg); font: 13px var(--mono); }
.pg-repo .ex { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.chipbtn { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--fg-2); font: 12px var(--mono); cursor: pointer; }
.chipbtn:hover { border-color: var(--faint); color: var(--fg); }
.pipe { list-style: none; margin: 0; padding: 0 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pipe li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 10px 6px; font-size: 12.5px; align-items: center; }
.pipe li .m { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); }
.pipe li .m .o { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.pipe li b { font-weight: 500; }
.pipe li > span:last-child { color: var(--muted); font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.4em; }
.pipe li[data-state="done"] .m { background: var(--green); border-color: var(--green); color: #fff; }
.pipe li[data-state="fail"] .m { background: var(--red); border-color: var(--red); color: #fff; }
.pipe li[data-state="run"] .m { border-color: transparent; }
.pipe li[data-state="idle"] b { color: var(--faint); }
.notice { margin: 10px 12px 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); }
.notice.error { border-color: transparent; background: var(--red-bg); color: var(--fg); }
.notice.ok { border-color: transparent; background: var(--green-bg); color: var(--fg); }
.notice pre { margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; white-space: pre-wrap; }
.notice .row { display: flex; gap: 8px; flex-wrap: wrap; }
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .panes { grid-template-columns: minmax(0, 1fr); } }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }
@media (max-width: 960px) { .pane + .pane { border-left: 0; border-top: 1px solid var(--line); } }
.pane-h { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pane-h .fname { display: inline-flex; gap: 7px; align-items: center; font-family: var(--mono); color: var(--fg-2); min-width: 0; }
.pane-h .fname span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-h .right { margin-left: auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 520px) { .pane-h .right.dim { display: none; } }
.pane-h .tabs { border-bottom: 0; height: 100%; }
.pane-h .tabs button { height: 100%; font-size: 13px; }
.pg-files { display: grid; max-height: 132px; overflow: auto; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pg-files button { display: flex; gap: 8px; align-items: center; padding: 7px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 12px var(--mono); color: var(--fg-2); cursor: pointer; }
.pg-files button:last-child { border-bottom: 0; }
.pg-files button span { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-files button[aria-current="true"] { background: var(--bg); color: var(--fg); box-shadow: inset 2px 0 0 var(--fg); }
.pg-files em { font: 500 11px var(--mono); font-style: normal; padding: 0 6px; border-radius: 99px; background: var(--bg-3); color: var(--muted); }
.pg-files em.warn { background: var(--amber-bg); color: var(--amber); }
.editor { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 500px; background: var(--bg); }
@media (max-width: 640px) { .editor { height: 380px; } }
.gutter { margin: 0; padding: 14px 10px 14px 14px; text-align: right; color: var(--faint); font: 12.5px/1.75 var(--mono); user-select: none; overflow: hidden; min-width: 46px; font-variant-numeric: tabular-nums; white-space: pre; }
.code-wrap { position: relative; overflow: hidden; min-width: 0; }
.hl, .src { margin: 0; padding: 14px 18px 14px 6px; font: 12.5px/1.75 var(--mono); white-space: pre; tab-size: 4; border: 0; letter-spacing: 0; }
.hl { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--fg); }
.src { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; background: transparent; color: transparent; caret-color: var(--fg); overflow: auto; outline: none; }
.src::selection { background: color-mix(in srgb, var(--blue) 25%, transparent); }
.src[readonly] { caret-color: transparent; }
.out { height: 500px; overflow: auto; }
@media (max-width: 640px) { .out { height: auto; max-height: 560px; } }
.out table.grid { min-width: 560px; }
.out .diff > * { min-width: max-content; }
.empty { display: grid; justify-items: center; align-content: center; text-align: center; gap: 6px; min-height: 100%; padding: 40px 24px; color: var(--muted); font-size: 13.5px; }
.empty b { color: var(--fg); font-weight: 500; }
.empty .i { color: var(--faint); margin-bottom: 4px; }
.review { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; }
.review li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); font-size: 13px; }
.review code { color: var(--amber); }
.prv { padding: 18px; display: grid; gap: 12px; font-size: 13.5px; }
.prv h3 { font-size: 17px; font-weight: 500; }
.prv .md { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.checklist { border: 1px solid var(--line); border-radius: 10px; }
.checklist > div { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.checklist > div:first-child { border-top: 0; }
.mergebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; }
.mergebar.done { background: var(--purple-bg); border-color: transparent; justify-content: flex-start; }
.pg-status { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 30px; padding: 4px 14px; border-top: 1px solid var(--line); background: var(--bg-2); font: 11.5px var(--mono); color: var(--muted); }
.pg-status span { display: inline-flex; gap: 6px; align-items: center; }
.pg-status .sp { flex: 1; }
.pg-status .good { color: var(--green); } .pg-status .bad { color: var(--red); }

/* why now */
.why { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .why { grid-template-columns: minmax(0, 1fr); } }
.cadence { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.cadence table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; }
.cadence th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cadence td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
.cadence tr:last-child td { border-bottom: 0; }
.cadence td:first-child { font-weight: 600; color: var(--fg); white-space: nowrap; }
.cadence .when { font: 12.5px var(--mono); color: var(--amber); }
.cadence a { color: var(--muted); font-size: 13px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.cadence a:hover { color: var(--fg); }
.stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 10px; }
.stat-card .big { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stat-card p { color: var(--muted); }
.stat-card p b { color: var(--fg); font-weight: 500; }
.stat-card a { font-size: 13px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 1060px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how > div { padding: 22px; display: grid; gap: 12px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.how > div:first-child { border-left: 0; }
@media (max-width: 1060px) { .how > div { border-top: 1px solid var(--line); } .how > div:nth-child(-n+2) { border-top: 0; } .how > div:nth-child(odd) { border-left: 0; } }
@media (max-width: 620px) { .how > div { border-left: 0; } .how > div:nth-child(2) { border-top: 1px solid var(--line); } }
.how .n { font: 500 12px var(--mono); color: var(--muted); }
.how h3 { font-size: 17px; }
.how p { color: var(--muted); font-size: 14px; }
.art { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font: 11.5px/1.7 var(--mono); padding: 10px 12px; overflow-x: auto; white-space: pre; color: var(--fg-2); }
.art .dl { grid-template-columns: 14px auto; margin: 0 -12px; padding: 0 12px; }
.art .ok { color: var(--green); } .art .bad { color: var(--red); }
.cli { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
@media (max-width: 960px) { .cli { grid-template-columns: minmax(0, 1fr); } }
.cli h3 { font-size: 20px; }
.cli p { color: var(--muted); margin-top: 8px; }
.cli .cmds { margin-top: 16px; display: grid; gap: 6px; font: 13px var(--mono); color: var(--fg-2); }
.cli .cmds span { color: var(--faint); }
.term { border-radius: 12px; background: #0b0b0d; color: #d4d4d8; border: 1px solid #222226; overflow: hidden; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid #1f1f23; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2f; }
.term-bar span { margin-left: 6px; font: 12px var(--mono); color: #77777f; }
.term-bar button { margin-left: auto; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid #2a2a2f; background: none; color: #a1a1aa; font: 11.5px var(--mono); cursor: pointer; }
.term-bar button:hover { color: #fff; }
.term pre { margin: 0; padding: 16px 18px 18px; font: 12.5px/1.8 var(--mono); overflow-x: auto; white-space: normal; }
.term .l { display: block; white-space: pre; min-height: 1.8em; }
.c-dim { color: #77777f; } .c-amb { color: #e3b341; } .c-grn { color: #3fb950; } .c-red { color: #f85149; } .c-b { color: #fafafa; font-weight: 500; }
.term.playing .l { opacity: 0; }
.term.playing .l.on { opacity: 1; transition: opacity .2s; }

/* trust + audiences */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .three { grid-template-columns: minmax(0, 1fr); } }
.three > div { padding: 26px 26px 26px 0; display: grid; gap: 8px; align-content: start; }
.three > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .three > div { padding-right: 0; } .three > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.three .i { color: var(--fg); margin-bottom: 6px; }
.three h3 { font-size: 16px; }
.three p { color: var(--muted); font-size: 14px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two > div { padding: 28px; display: grid; gap: 12px; align-content: start; }
.two > div + div { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .two > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.two .k { font: 500 12.5px var(--mono); color: var(--muted); }
.two h3 { font-size: 22px; letter-spacing: -.025em; }
.two p { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); }
.ticks .i { color: var(--green); margin-top: 3px; }
.cov { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.cov > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.cov > div:first-child { border-top: 0; }
.cov b { font-weight: 500; }
.cov span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .cov > div { grid-template-columns: minmax(0, 1fr) auto; } .cov > div > span:nth-child(2) { grid-column: 1 / -1; order: 3; } }
.state-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.state-chip.live { border-color: transparent; background: var(--green-bg); color: var(--green); }
.state-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact .sec-h { margin-bottom: 0; }
.contact .sec-h p { color: var(--muted); margin-top: 16px; font-size: 16px; max-width: 30em; }
.mail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.mail code { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--fg); user-select: all; }
form.lead { border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; display: grid; gap: 14px; background: var(--bg); box-shadow: var(--shadow); }
form.lead label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
form.lead input, form.lead select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 14px var(--sans); width: 100%; }
form.lead input:focus, form.lead select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
form.lead .note { font-size: 12.5px; color: var(--muted); }
form.lead .notice { margin: 0; }

footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 13.5px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.plan.featured { border-color: var(--fg); box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, .35); }
.plan h3 { font-size: 16px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); font-size: 13px; }
.plan p { color: var(--muted); font-size: 14px; }
.plan .ticks { margin: 0; }
.plan .btn { justify-self: start; margin-top: 4px; }
.plan .flag { position: absolute; top: 18px; right: 18px; font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--fg); color: var(--bg); }
.top .icon-btn.gh { color: var(--fg-2); }
@media (max-width: 560px) { .top .icon-btn.gh { display: none; } }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 720px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot > div:first-child { grid-column: 1 / -1; } }
.foot h4 { font-size: 13px; color: var(--fg); margin-bottom: 12px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--fg); }
.foot p { margin-top: 12px; max-width: 26em; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; }
