
:root {
	--ink: #0f172a;
	--ink-hover: #1e293b;
	--ink-2: #334155;
	--muted: #475569;
	--code-bg: #0f172a;
	--code-line: #1e293b;
	--code-ink: #e2e8f0;
	--code-muted: #94a3b8;
	--code-del: #fecaca;
	--code-del-bg: #4c1d24;
	--code-add: #bbf7d0;
	--code-add-bg: #14402a;
	--line: #e2e8f0;
	--line-strong: #94a3b8;
	--bg: #ffffff;
	--soft: #f8fafc;
	--link: #1d4ed8;
	--ok-ink: #166534;
	--ok-bg: #f0fdf4;
	--ok-line: #bbf7d0;
	--warn-ink: #92400e;
	--warn-bg: #fffbeb;
	--warn-line: #fde68a;
	--bad-ink: #b91c1c;
	--bad-bg: #fef2f2;
	--bad-line: #fecaca;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
html:lang(ja) p, html:lang(ja) dd, html:lang(ja) li { line-height: 1.8; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
code, .mono { font-family: var(--mono); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.4; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { width: 24px; height: 24px; flex: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions form { margin: 0; }
.top-sections { display: flex; align-items: center; }
@media (max-width: 719px) { .top-sections { display: none; } }
.textbtn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
	background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5;
	text-decoration: none; cursor: pointer;
}
.textbtn:hover { background: var(--soft); }

main { padding: 32px 0 64px; }
.lead { margin-top: 12px; max-width: 640px; color: var(--muted); }
.lead-note { margin-top: 16px; }
/* /workflows: the runs-on line under its lead, not touching it. */
.lead + .code { margin-top: 16px; }
.note { color: var(--muted); font-size: 14px; }
.consent { margin: 8px 0 0; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 32px; }
.legal p, .legal ol, .legal ul { margin-top: 12px; }
.legal ol, .legal ul { padding-left: 24px; }
.legal li + li, .legal li > ul, .legal li > p { margin-top: 8px; }
.legal a { overflow-wrap: anywhere; }
.legal-table { margin-top: 16px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th[scope="row"] { width: 28%; font-weight: 600; }
.eyebrow { color: var(--muted); font-size: 14px; }
.section { margin-top: 32px; }
.section > h2 + * { margin-top: 16px; }

.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg); }
.card-soft { background: var(--soft); }
.card > * + * { margin-top: 16px; }
.card > h2 + p, .card > h3 + p { margin-top: 8px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px;
	font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--soft); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.plans { display: grid; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-label { font-size: 20px; font-weight: 700; line-height: 1.3; }
.plan-price { font-weight: 600; }
.plan-shape { margin-top: 8px; color: var(--muted); font-size: 14px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
/* The label rides with its stepper to the card's foot, so "In all" never floats above its input. */
.plan .qty-label { margin-top: auto; }
.qty-label { font-size: 14px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .input-wrap { flex: 1; }
.stepper input { text-align: center; }
.step { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.step:hover { background: var(--soft); }
.step[aria-disabled="true"], .step[aria-disabled="true"]:hover { color: var(--line-strong); background: var(--bg); cursor: default; }
.plan-total { font-size: 18px; }
html:lang(ja) .plan-total { word-break: auto-phrase; }
/* The plan page's monthly/yearly switch: two radios drawn as one segmented control. */
.interval { margin: 0; padding: 0; border: 0; min-width: 0; }
.interval legend { padding: 0; margin-bottom: 8px; }
.interval-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; }
.interval-option { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 44px; padding: 6px 12px; border-radius: 8px; font-weight: 600; line-height: 1.3; text-align: center; cursor: pointer; }
.interval-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.interval-option:has(input:checked) { background: var(--ink); color: #ffffff; }
.interval-option:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.interval-save { padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.back-link { margin-top: 24px; }
.stack > * + * { margin-top: 12px; }
.share { display: grid; gap: 8px; }
.section > .plans + .note { margin-top: 12px; }

.perms { margin: 0; }
.perm { padding: 16px 0; border-top: 1px solid var(--line); }
.perm:first-child { padding-top: 0; border-top: 0; }
.perm:last-child { padding-bottom: 0; }
.perm dt { font-family: var(--mono); font-size: 14px; font-weight: 600; line-height: 1.5; }
.perm dd { margin: 4px 0 0; color: var(--muted); }
.card > h3 + .perms { margin-top: 12px; }
/* /connect: the organization's app and the personal account's, side by side and the same height
   on a wide screen, each with its button at the foot; the permissions once below, closed. */
.choices { display: grid; gap: 24px; align-items: stretch; }
.choice { display: flex; flex-direction: column; }
.choice-action { margin-top: auto; padding-top: 16px; }
.choice-action .note { margin-top: 8px; }
html:lang(ja) .choice > p, html:lang(ja) .choice-action .note, html:lang(ja) .phrase { word-break: auto-phrase; }
/* Side by side, the heading, the sentence and the button share rows across both cards. */
@media (min-width: 900px) {
	.choices { grid-template-columns: 1fr 1fr; row-gap: 0; }
	.choice { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
	.choice-action { margin-top: 0; }
}
.perms-details > summary { display: flex; align-items: center; min-height: 48px; color: var(--link); cursor: pointer; font-weight: 600; }
.perms-details > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.perms-details > .perms { margin-top: 8px; }
.perms-details > .note { margin-top: 16px; }
.perm-app { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 4px; }

.notice { border: 1px solid; border-radius: 12px; padding: 16px; }
.notice > * + * { margin-top: 4px; }
.notice h2, .notice h3 { font-size: 16px; line-height: 1.5; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }

.org-head > * + * { margin-top: 4px; }
.org-head .others { margin-top: 8px; font-size: 14px; color: var(--muted); }
.status-row { display: flex; flex-direction: column; gap: 16px; }
.status-line { margin-top: 4px; color: var(--muted); }
.status-bad { border-color: var(--bad-line); background: var(--bad-bg); }
.status-bad .status-line { color: var(--bad-ink); }
.status-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.status-warn .status-line { color: var(--warn-ink); }
.meter { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: var(--line); appearance: none; -webkit-appearance: none; }
.meter::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.meter::-webkit-progress-value { background: var(--ink); border-radius: 4px; }
.meter::-moz-progress-bar { background: var(--ink); border-radius: 4px; }
.meter + p { margin-top: 8px; }
.waiting { font-weight: 600; }
.note code, .notice code { white-space: nowrap; }
/* A runs-on label never breaks inside itself (skipbox-8x16); the line may break before it. */
.nowrap { white-space: nowrap; }
/* A number held with its unit or counter, a login with its さん (units.ts). */
.nb { white-space: nowrap; }
/* An account or repository name in a sentence (views.ts accountName): never broken at its hyphen
   ("acme-/oss"). Inline, so the "." or "'s" after it stays on its line (review 11-09: inline-block let
   ". Trials" start the next one); names too long for a 390 px heading get no span (NAME_HELD_MAX). */
.name { white-space: nowrap; }
/* A link to copy inside a notice (the install link, the plan link) still wraps: nowrap is for short inline code. */
.notice .code code { white-space: normal; }

.code { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.code code { padding: 0 8px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field-row { display: flex; flex-direction: column; gap: 8px; }
.input-wrap { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
.input-wrap:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.input-wrap .prefix { padding-left: 12px; color: var(--muted); font-family: var(--mono); font-size: 16px; white-space: nowrap; }
.input-wrap input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.input-wrap input:focus-visible { outline: none; }
.input-wrap .prefix + input { padding-left: 0; }
.field-error { color: var(--bad-ink); font-size: 14px; }
.input-wrap:has(> input[aria-invalid="true"]) { border-color: var(--bad-ink); }
/* One question, one answer: the cancel page's reasons (cancel-views.ts). 44 px rows, the whole row is the target. */
.reasons { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.reasons legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.reason { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.reason input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.reason:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.reason:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }

.jobs { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs th { padding: 0 8px 8px; color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.jobs td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.jobs th:first-child, .jobs td:first-child { padding-left: 0; }
.jobs th:last-child, .jobs td:last-child { padding-right: 0; }
.jobs .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.jobs .repo { font-weight: 600; overflow-wrap: anywhere; }
.jobs .job-name { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 13px; line-height: 24px; white-space: nowrap; background: var(--soft); border: 1px solid var(--line); }
.pill-run { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.pill-wait { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.pill-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.pill-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jobs td.cell-log { white-space: nowrap; }
.jobs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jobs-head + * { margin-top: 16px; }
.jobs-notes > * + * { margin-top: 12px; }
.jobs-notes + .jobs, .jobs-notes + .empty { margin-top: 16px; }
.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); }
.empty > * + * { margin-top: 12px; }
.jobs .job-why { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

.progress .checklist { margin: 16px 0 0; padding: 0; list-style: none; }
.progress .checklist + .note { margin-top: 16px; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check + .check { margin-top: 12px; }
.check-mark { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1; }
.check-done .check-mark { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }
.check-now .check-mark { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.check-bad .check-mark { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad-ink); }
.check-body { min-width: 0; }
.check .check-title { line-height: 24px; }
.check-done .check-title, .check-todo .check-title { color: var(--muted); }
.check-now .check-title, .check-bad .check-title { font-weight: 600; }
.check-detail { margin-top: 4px; color: var(--muted); font-size: 14px; }
.check-bad .check-detail { color: var(--bad-ink); }
.trial-nudge, .first-prompt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.trial-nudge > * + *, .first-prompt > * + * { margin-top: 8px; }
.notice .first-prompt { border-top-color: var(--ok-line); }
.owner-message code { font-family: inherit; white-space: normal; }
.sign-in-first .start-form { margin-top: 24px; }
.start-form .consent + .note { margin-top: 8px; }
html:lang(ja) .sign-in-first p, html:lang(ja) .check-body, html:lang(ja) .notice p,html:lang(ja) .trial-nudge p, html:lang(ja) .empty p, html:lang(ja) .job-why { word-break: auto-phrase; }

.quote > * + * { margin-top: 8px; }
.quote h3 { margin-top: 24px; font-size: 16px; line-height: 1.5; }
.quote .quote-big { margin-top: 16px; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.quote .quote-big.quote-ours { margin-top: 4px; }
/* Where flat doesn't pay off yet there's no GitHub line above it (quote-view.ts). */
.quote h2 + .quote-big.quote-ours { margin-top: 16px; }
.quote .quote-payoff { margin-top: 8px; }
.quote-save { color: var(--ok-ink); font-weight: 600; }
.quote .quote-mix { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.quote-mix > * + * { margin-top: 4px; }
.quote-mix-line { font-weight: 600; }
.quote .actions { margin-top: 16px; }
.quote .quote-alt { margin-top: 8px; }
.quote .quote-alt a { display: inline-flex; align-items: center; min-height: 44px; }
.quote .quote-runners { margin-top: 8px; }
.quote .quote-runners + .note { margin-top: 16px; }

/* No specificity for the margin reset: a list that is also a .section keeps the section's gap (walk, 11-09). */
:where(.wf-list) { margin: 0; }
.wf-list { padding: 0; list-style: none; }
/* The repository's prompt button on the same edge as its Edit buttons; a notice's one action below its text. */
.repo-prompt { display: flex; justify-content: flex-end; }
.notice .notice-action { margin-top: 12px; }
.wf { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.wf:first-child { border-top: 0; padding-top: 0; }
.wf:last-child { padding-bottom: 0; }
.wf-name { font-weight: 600; }
.wf-path { color: var(--muted); font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
/* /account: a plan card's text links side by side, each a 44 px target. */
.card-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.card-links a { display: inline-flex; align-items: center; min-height: 44px; }
.repo-list { margin: 0; padding: 0; list-style: none; }
.repo-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.wf-job-stays .wf-job-name, .wf-job-stays code { color: var(--muted); }
.wf-job-line .pill { display: table; margin-top: 4px; white-space: normal; }
.repo-item { padding: 16px 0; border-top: 1px solid var(--line); }
.repo-item > * + * { margin-top: 12px; }
.repo-name { font-family: var(--mono); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.repo-item .wf-list { padding-left: 16px; border-left: 2px solid var(--line); }
.wf-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wf-main > div { min-width: 0; }
.wf-main .btn { flex: none; }
.wf-jobs { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.wf-jobs > * + * { margin-top: 8px; }
.wf-job { display: grid; grid-template-columns: minmax(96px, 200px) 1fr; gap: 4px 16px; line-height: 1.5; }
.wf-job-name { font-weight: 600; overflow-wrap: anywhere; }
.wf-job-line { overflow-wrap: anywhere; }
.wf-job-line code { font-size: 13px; }
/* The trial runs it smaller than on GitHub: said at the row's own size, not as a muted note (lead, 11-09). */
.wf-job-line .wf-job-trial { margin-top: 4px; }
.wf-job-line code.nowrap { white-space: nowrap; }
.wf-job-line .wf-job-alt { display: block; }
.wf-job-line .note { font-size: 13px; }
.wf-none { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.repo-empty > * + * { margin-top: 16px; }
.repo-more { border-top: 1px solid var(--line); }
.repo-more > summary { display: flex; align-items: center; min-height: 48px; color: var(--link); cursor: pointer; font-weight: 600; }
.repo-more > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.repo-more > .repo-list > .repo-item:first-child { border-top: 0; padding-top: 0; }
.repo-list + .note, .repo-more + .note { margin-top: 16px; }

/* The home page (home.ts). One column on a phone; the hero splits at 900px. */
.hero { display: grid; gap: 32px; }
.hero h1 { font-size: 30px; line-height: 1.25; text-wrap: balance; }
.block h2, .block h3, .fit h2 { text-wrap: balance; }
.hero .lead { margin-top: 16px; max-width: none; color: var(--ink-2); font-size: 16px; }
.hero-main > .notice { margin-top: 16px; }
.start { margin-top: 24px; display: grid; gap: 8px; justify-items: start; }
.start-form { margin: 0; }
.start-note { font-size: 14px; font-weight: 600; }
.start .note { max-width: 520px; }
/* The break-even against GitHub's rate, with its source: the calculator's proof (checklist 1.3). */
.cost-proof { margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--ok-ink); border-radius: 0 8px 8px 0; background: var(--ok-bg); }
.cost-proof-claim { font-weight: 600; color: var(--ink); }
.cost-proof .note { margin-top: 4px; color: var(--ink-2); }
html:lang(ja) .cost-proof p { word-break: auto-phrase; }
/* The trial button and, quieter, the calculator: one row, the same height; stacked full width on a phone. */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-cta .btn-secondary { min-height: 56px; }
/*
 * Under the buttons, one line: no card · the trial · the refund. It breaks between items, never
 * inside one; the separator that would start a line sits in a clipped gutter, so no line starts with it.
 */
.start-terms { margin: 12px 0 0 -16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; clip-path: inset(0 0 0 16px); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.start-terms li { position: relative; margin-left: 16px; white-space: nowrap; }
/* The dot in every browser; where the alt-text form is understood (Safari 17.4+, Firefox 128+, Chrome), screen readers skip it. */
.start-terms li::before { content: "\00b7"; content: "\00b7" / ""; position: absolute; left: -16px; width: 16px; text-align: center; color: var(--muted); }
/* Japanese on the home page breaks at phrases, never inside a word (プライベートリポジト/リ). */
html:lang(ja) .home p, html:lang(ja) .home li, html:lang(ja) .home dd, html:lang(ja) .home dt, html:lang(ja) .lead { word-break: auto-phrase; }
/* runs-on: in a lead never breaks at its hyphen. */
.lead code { white-space: nowrap; }
.btn-large { min-height: 56px; padding: 0 32px; font-size: 18px; }
.diff { margin: 0; border-radius: 12px; overflow: hidden; background: var(--code-bg); }
.diff figcaption { padding: 8px 16px; border-bottom: 1px solid var(--code-line); color: var(--code-muted); font-size: 13px; line-height: 1.5; }
.diff figcaption code { color: var(--code-ink); }
.diff pre { margin: 0; padding: 16px; overflow-x: auto; color: var(--code-ink); font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.diff .del, .diff .add { display: inline-block; min-width: 100%; }
.diff .del { background: var(--code-del-bg); color: var(--code-del); }
.diff .add { background: var(--code-add-bg); color: var(--code-add); }
/* How you start: under the facts, a row of three on a computer, stacked on a phone. */
.start-steps { margin-top: 32px; }
.steps-heading { font-size: 16px; line-height: 1.5; }
.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 24px 1fr; gap: 12px; line-height: 24px; }
html:lang(ja) .steps li { grid-template-columns: 28px 1fr; line-height: 28px; }
html:lang(ja) .steps li::before { width: 28px; height: 28px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; }
.facts { margin: 32px 0 0; padding: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.fact dd { margin: 4px 0 0; line-height: 1.5; }
/* Each fact: the benefit, then the number behind it. */
.fact-main { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.fact-detail { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.maker { margin-top: 12px; }

.block { margin-top: 48px; }
.block > h2, .fit h2, .final h2 { font-size: 22px; line-height: 1.35; }
.block > h2 + .section-lead { margin-top: 8px; }
.section-lead { max-width: 720px; color: var(--muted); }
.section-lead + * { margin-top: 24px; }
.block .card > h3 { font-size: 16px; line-height: 1.5; }
.card > h3 + ul, .card > h2 + ul { margin-top: 12px; }
.ticks, .crosses { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li, .crosses li { position: relative; padding-left: 24px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; width: 16px; text-align: center; font-weight: 700; }
.ticks li::before { content: "\2713"; color: var(--ok-ink); }
.crosses li::before { content: "\00D7"; color: var(--bad-ink); }

.calc-form { display: grid; gap: 8px; max-width: 560px; }
.calc-form label { font-size: 14px; font-weight: 600; }
.calc-form .note { margin: 0; }
.presets { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; color: var(--muted); font-size: 14px; }
.presets a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.presets a[aria-current] { color: var(--ink); font-weight: 700; }
.calc-result { margin-top: 24px; }
.calc-grid { margin-top: 16px; display: grid; gap: 16px; }
.calc-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.calc-card h3 { font-size: 16px; line-height: 1.5; }
.calc-rows { margin: 12px 0 0; }
.calc-row { padding: 12px 0; border-top: 1px solid var(--line); }
.calc-row dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.calc-row dd { margin: 4px 0 0; display: grid; gap: 4px; }
.calc-ours { margin: 0 -20px; padding: 12px 20px; background: var(--soft); }
.calc-ours + * { border-top: 0; }
.calc-total { font-size: 20px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.calc-math { color: var(--muted); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.calc-spec { flex-basis: 100%; color: var(--muted); font-weight: 400; white-space: nowrap; }
.calc-start { margin-top: 16px; }
.calc-start + .note { margin-top: 24px; }
.calc-verdict { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.tag { display: inline-block; padding: 0 8px; border: 1px solid var(--ok-line); border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }

.plan { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.plan .plan-label { font-size: 22px; line-height: 28px; }
.plan-badge { padding: 0 12px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.plan .plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-size: 32px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--muted); font-size: 14px; }
.plan .plan-shape { margin: 0; padding: 0; list-style: none; }
.plans-start { margin-top: 24px; display: grid; gap: 12px; justify-items: start; max-width: 720px; }
.plans + .plan-notes, .plans-start + .plan-notes { margin-top: 32px; }
.plan-points { margin: 4px 0 0; }
.plan-points code { font-size: 13px; white-space: nowrap; }
.calc-result + .note { margin-top: 16px; }
.trial-paused { margin-top: 8px; color: var(--warn-ink); font-weight: 600; }
html:lang(ja) .calc-verdict, html:lang(ja) .plan-why, html:lang(ja) .start-note { word-break: auto-phrase; }
.plan-why { margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.plan-notes { margin-top: 16px; display: grid; gap: 16px; }

.fit-grid { display: grid; gap: 16px; }
.crosses strong { display: block; font-weight: 600; color: var(--ink); }
.crosses { gap: 12px; }
.sec-grid { display: grid; gap: 24px; }
.sec-item { padding-top: 12px; border-top: 2px solid var(--ink); }
.sec-item h3 { font-size: 16px; line-height: 1.5; }
.sec-item p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.sec-compare { margin-top: 24px; }
.sec-compare + .limits { margin-top: 8px; }
.limits { margin-top: 24px; }
.block > h2 + .sec-grid { margin-top: 24px; }
.block > h2 + .scenes { margin-top: 16px; }
.scenes { display: grid; gap: 16px; }
.scene { display: grid; gap: 16px; }
.card.scene > * + * { margin-top: 0; }
.scene-what > * + * { margin-top: 8px; }
.scene-what h3 { font-size: 17px; line-height: 1.4; }
.scene-what p { color: var(--ink-2); }
.scene-quote code { display: block; padding: 8px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.scene-parts { margin: 0; display: grid; gap: 12px; }
.scene-parts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.scene-parts dd { margin: 4px 0 0; }
.scene-parts .scene-ours { padding-top: 12px; border-top: 1px solid var(--line); }
.scene-parts .scene-ours dt { color: var(--ok-ink); }
.approval .ticks { margin-top: 16px; }
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item h3 { font-size: 16px; line-height: 1.5; }
.faq-item p { padding-bottom: 20px; color: var(--ink-2); }
.final { display: flex; flex-direction: column; gap: 16px; }
.final p { margin-top: 8px; color: var(--muted); }
.final .btn { width: 100%; }

.foot { border-top: 1px solid var(--line); background: var(--soft); padding: 32px 0 48px; }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { font-weight: 700; }
.foot-brand + .note { margin-top: 4px; }
.foot-heading { font-size: 14px; line-height: 1.5; }
.foot-links { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.foot-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-height: 44px; }
.foot-links + .note { margin-top: 8px; }
/* The dashboard's footer: the three documents in one row, wrapping at 390. */
.foot-legal { padding: 16px 0 24px; }
.foot-legal .foot-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }

@media (min-width: 768px) {
	.block { margin-top: 64px; }
	.block > h2, .fit h2, .final h2 { font-size: 24px; }
	/* One row, however many facts factKeys() shows. */
	.facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
	.calc-grid { grid-template-columns: repeat(3, 1fr); }
	/* The three cards line up: heading, rows, verdict on shared rows; Skipbox's row at the rows' foot. */
	.calc-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
	.calc-rows { display: flex; flex-direction: column; }
	.calc-rows .calc-ours { margin-top: auto; }
	.plan-notes, .fit-grid { grid-template-columns: 1fr 1fr; }
	.sec-grid { grid-template-columns: repeat(6, 1fr); }
	.scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
	.sec-item { grid-column: span 2; }
	.sec-item:nth-child(n + 4) { grid-column: span 3; }
	.final { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
	.final .btn { width: auto; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) and (pointer: fine) {
	.foot-links li { min-height: 32px; }
}
@media (min-width: 900px) {
	/* The words get the room (the buttons and the terms each fit one line at 1280); the diff needs about 310px. */
	.hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.hero h1 { font-size: 40px; line-height: 1.2; }
	.hero .lead { font-size: 17px; }
}

@media (max-width: 767px) {
	main { padding: 24px 0 48px; }
	.start, .start-form { width: 100%; justify-items: stretch; }
	.start-form .btn { width: 100%; }
	h1 { font-size: 24px; }
	.card { padding: 16px; }
	.btn-block { width: 100%; }
	.code { flex-wrap: wrap; }
	.wf-main, .wf-none { flex-direction: column; align-items: stretch; gap: 12px; }
	.wf-main .btn, .wf-none .btn, .repo-empty .btn, .repo-item > p > .btn, .repo-prompt .btn { width: 100%; }
	.repo-item .wf-list { padding-left: 12px; }
	.wf-job { grid-template-columns: 1fr; gap: 0; }
	.jobs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.jobs, .jobs tbody { display: block; }
	.jobs tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.jobs tr:first-child { padding-top: 0; }
	.jobs td { display: block; padding: 0; border: 0; min-width: 0; }
	/* A long reason ("Not run: the trial runs 4 vCPU jobs") wraps inside its cell instead of widening the page. */
	.jobs .pill { white-space: normal; border-radius: 12px; }
	/* In Japanese, that wrap falls between phrases, never inside a word (「公開リポジト／リ」, walk 11-09). */
	html:lang(ja) .jobs .pill { word-break: auto-phrase; }
	.jobs td.cell-repo { grid-column: 1 / -1; }
	/* The job list: the log link on the job's own line, and no row for a cell with nothing in it (audit 11-09). */
	.job-list td.cell-repo { grid-column: 1; grid-row: 1; }
	.job-list td.cell-log { grid-column: 2; grid-row: 1; justify-self: end; }
	.job-list td.cell-none { display: none; }
	.legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	/* The header row is for screen readers here (each cell shows its label): one line, never a 32px column of one character a line (walk 11-09). */
	.legal-table thead th { white-space: nowrap; }
	.legal-table table, .legal-table tbody, .legal-table tr { display: block; }
	.legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.legal-table th[scope="row"], .legal-table td { display: block; width: auto; padding: 0; border: 0; }
	.legal-table td { margin-top: 4px; }
	.legal-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
	.jobs td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
	.jobs tfoot { display: block; }
	.jobs tfoot tr { grid-template-columns: 1fr auto; align-items: baseline; padding: 12px 0; }
	.jobs tfoot td.cell-repo { grid-column: auto; }
	.jobs tfoot td:empty { display: none; }
	.jobs tfoot td[data-label]::before { content: none; }
	/* The cost tool's total has two figures: each keeps its column's label, as the rows above. */
	.jobs.quote-runners tfoot tr { grid-template-columns: 1fr 1fr; align-items: start; }
	.jobs.quote-runners tfoot td.cell-repo { grid-column: 1 / -1; }
	.jobs.quote-runners tfoot td[data-label]::before { content: attr(data-label); }
}
@media (min-width: 768px) {
	.wrap { padding: 0 32px; }
	.plans { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.status-row { flex-direction: row; align-items: center; justify-content: space-between; }
	.field-row { flex-direction: row; }
	.field-row .input-wrap { flex: 1; }
	.wf { flex-direction: row; align-items: center; justify-content: space-between; }
	.repo-item .wf { flex-direction: column; align-items: stretch; }
}

/* The cost tool (tool-cost.ts) and the guides (guides.ts). */
.tool-steps { margin: 16px 0 0; padding-left: 24px; }
.tool-steps li + li { margin-top: 8px; }
.tool-start .start-form { display: grid; gap: 8px; justify-items: start; }
.tool-what { margin-top: 12px; max-width: 640px; }
html:lang(ja) .tool-what, html:lang(ja) .tool-csv .quote-trial, html:lang(ja) .guide-cta p, html:lang(ja) .tool-csv .drop-text, html:lang(ja) .tool-minutes, html:lang(ja) .tool-csv .quote-ours-what { word-break: auto-phrase; }
.tool-csv .drop-zone { display: grid; gap: 12px; justify-items: center; padding: 24px 16px; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--soft); text-align: center; }
.tool-csv .drop-zone.drop-over { border-color: var(--link); background: var(--bg); }
.tool-csv .drop-zone .drop-text { font-weight: 600; font-size: 16px; cursor: pointer; }
.tool-csv input[type="file"] { display: block; width: 100%; max-width: 360px; min-height: 44px; font: inherit; font-size: 14px; }
.tool-csv input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tool-csv .quote-trial { font-weight: 600; }
.tool-csv .csv-gate .start-form { margin-top: 12px; }
.tool-csv .quote-big { font-size: 22px; font-weight: 700; line-height: 1.3; }
/* GitHub's bill and Skipbox's price are two answers, not one block: a clear gap between them. */
.tool-csv .quote-mix > .quote-big + .quote-big { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tool-csv .quote-ours-what { color: var(--muted); font-size: 14px; }
.tool-start .note + .note { margin-top: 8px; }
.tool-gets > h2 + * { margin-top: 16px; }
.tool-csv .notice .start-form { margin-top: 12px; }
.tool-result > * + * { margin-top: 16px; }
.table-wrap { max-width: 100%; }
.breakdown { margin-top: 8px; }
.approval { break-inside: avoid; }
.approval dl { display: grid; gap: 0; margin: 0; }
.approval .approval-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.approval dt { color: var(--muted); font-weight: 600; }
.approval dd { margin: 0; overflow-wrap: anywhere; }
.approval .approval-total { font-weight: 700; }
.md-code { margin: 12px 0 0; padding: 16px; overflow-x: auto; border-radius: 8px; background: var(--code-bg); color: var(--code-ink); font-size: 14px; }
.guide { max-width: 760px; }
.guide .updated { margin-top: 8px; }
.guide h2 { margin-top: 32px; }
.guide h3 { margin-top: 24px; }
.guide p, .guide ol, .guide ul { margin-top: 12px; }
.guide ol, .guide ul { padding-left: 24px; }
.guide li + li { margin-top: 8px; }
.guide a { overflow-wrap: anywhere; }
.guide .guide-cta { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.guide .guide-cta > p:first-child { margin-top: 0; }
.guide .guide-cta-title { font-weight: 600; }
.guide .guide-cta .btn { margin-top: 4px; }
.guide .guide-cta + h2 { margin-top: 40px; }
.guide .guide-cta code { white-space: nowrap; }
.guide .guide-cta .start-form { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.guides-index .guide-list { margin-top: 24px; padding: 0; list-style: none; }
.guides-index .guide-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.guides-index .guide-list li + li { margin-top: 0; }
.guides-index .guide-list p { margin-top: 4px; }
.guides-index .guide-link { font-size: 18px; font-weight: 600; line-height: 1.4; }
@media (max-width: 719px) {
	.approval .approval-row { grid-template-columns: 1fr; gap: 4px; }
	/* The sign-in label is the searcher's own words, so on a phone it wraps by design: balanced, by phrase, with room. */
	.tool-start .start-form .btn, .tool-csv .start-form .btn, .guide-cta .start-form .btn { width: 100%; padding: 12px 16px; white-space: normal; text-wrap: balance; word-break: auto-phrase; }
}
@media print {
	.top, .foot, .no-print, .print-hide { display: none !important; }
	main { padding: 0; }
	.approval { border: 0; padding: 0; }
}
