/* Inventory: hand-written CSS, no framework (shared look with Cronjay and Runbook). Light and dark themes via custom properties. */
:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --border: #e1e6e4;
  --border-strong: #c9d1ce;
  --text: #12201c;
  --muted: #5b6b66;
  --accent: #3451c7;
  --accent-hover: #2a43a8;
  --accent-soft: #e8ecfb;
  --accent-text: #ffffff;
  --amber: #b45309;
  --up: #15803d;
  --up-soft: #e6f6eb;
  --late: #b45309;
  --late-soft: #fdf3e1;
  --down: #c81e1e;
  --down-soft: #fdebeb;
  --idle: #6b7280;
  --idle-soft: #eef0f2;
  --start: #2563eb;
  --code-bg: #0f1a17;
  --code-text: #d8f3ec;
  --shadow: 0 1px 2px rgba(16, 32, 28, .05), 0 1px 3px rgba(16, 32, 28, .07);
  --shadow-lg: 0 14px 36px rgba(16, 32, 28, .14), 0 2px 6px rgba(16, 32, 28, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1210; --surface: #121b18; --surface-2: #18231f; --border: #24322d; --border-strong: #34463f;
    --text: #e4eeea; --muted: #93a59e; --accent: #8ea2fa; --accent-hover: #aebcfc; --accent-soft: #1a2240; --accent-text: #0a1030;
    --up: #4ade80; --up-soft: #10291a; --late: #fbbf24; --late-soft: #2c2410; --down: #f87171; --down-soft: #301515;
    --idle: #9ca3af; --idle-soft: #1d2522; --start: #60a5fa; --code-bg: #070d0b; --code-text: #c9efe5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210; --surface: #121b18; --surface-2: #18231f; --border: #24322d; --border-strong: #34463f;
  --text: #e4eeea; --muted: #93a59e; --accent: #8ea2fa; --accent-hover: #aebcfc; --accent-soft: #1a2240; --accent-text: #0a1030;
  --up: #4ade80; --up-soft: #10291a; --late: #fbbf24; --late-soft: #2c2410; --down: #f87171; --down-soft: #301515;
  --idle: #9ca3af; --idle-soft: #1d2522; --start: #60a5fa; --code-bg: #070d0b; --code-text: #c9efe5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; overflow-wrap: anywhere; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 460px; margin: 32px auto; }
.narrow-wide { max-width: 860px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.mt-sm { margin-top: 10px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 6px; }
.stack > * { margin-bottom: 0; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.logo { width: 28px; height: 28px; }
.logo-bg { fill: var(--accent); }
.logo-face { fill: var(--surface); }
.logo-hand { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.logo-dot { fill: #f59e0b; }
.mainnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--border); }
.menu-btn:hover { background: var(--surface-2); }
.menu-org { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }
.avatar.sm { width: 24px; height: 24px; font-size: .75rem; vertical-align: middle; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 8px; z-index: 30; }
.menu-email { color: var(--muted); font-size: .85rem; padding: 6px 10px; margin: 0; border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
.menu-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 10px; margin: 0; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.menu-item:hover, .menu-item.active { background: var(--surface-2); color: var(--text); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, var(--border)); }
.btn-danger:hover { background: var(--down-soft); color: var(--down); }
.btn-sm { padding: 5px 11px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 1.02rem; border-radius: 11px; }
.btn-block { width: 100%; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 11px; width: 100%; min-width: 0; }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
input.num { max-width: 110px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field .small { margin: 5px 0 0; }
.inline-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-fields > input:not(.num) { flex: 1 1 200px; }
.inline-fields > select { width: auto; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; padding: 5px 12px; border-radius: 7px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); }
.form-check:has(input[name="kind"][value="cron"]:checked) .kind-period { display: none; }
.form-check:has(input[name="kind"][value="period"]:checked) .kind-cron { display: none; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { background: var(--surface-2); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* cards, alerts, layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card h2 { font-size: 1.08rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 > .card, .grid-2 > .usage { margin-bottom: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.page-head p { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 11px 15px; margin-bottom: 18px; border: 1px solid; }
.alert p:last-child { margin-bottom: 0; }
.alert-ok { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.alert-error { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.banner { border-bottom: 1px solid var(--border); font-size: .92rem; }
.banner-warn { background: var(--late-soft); }
.banner-info { background: var(--accent-soft); }
.banner-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); vertical-align: middle; text-transform: none; }
.danger-zone { border-color: color-mix(in srgb, var(--down) 30%, var(--border)); }
.notes p { margin: 4px 0 0; }
.empty { text-align: center; padding: 40px 24px; }
.tip h3 { margin-bottom: 4px; }

/* status */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .84rem; padding: 2px 10px 2px 8px; border-radius: 999px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-up { color: var(--up); background: var(--up-soft); }
.status-late { color: var(--late); background: var(--late-soft); }
.status-down { color: var(--down); background: var(--down-soft); }
.status-down .status-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 25%, transparent); }
.status-new, .status-paused { color: var(--idle); background: var(--idle-soft); }
.running { font-size: .76rem; font-weight: 600; color: var(--start); margin-left: 6px; white-space: nowrap; }
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* check list */
.checks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.checkrow + .checkrow { border-top: 1px solid var(--border); }
.checkrow-link { display: grid; grid-template-columns: 112px minmax(0, 1fr) 190px minmax(150px, max-content); gap: 16px; align-items: center; padding: 13px 18px; color: var(--text); text-decoration: none; }
.checkrow-link:hover { background: var(--surface-2); color: var(--text); }
.checkrow-down { box-shadow: inset 3px 0 0 var(--down); }
.checkrow-late { box-shadow: inset 3px 0 0 var(--late); }
.checkrow-main { min-width: 0; display: flex; flex-direction: column; }
.checkrow-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkrow-meta { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkrow-last { text-align: right; font-size: .88rem; white-space: nowrap; }
.spark { width: 180px; height: 20px; display: block; }
.sp-ok { fill: var(--up); }
.sp-fail { fill: var(--down); }
.sp-start { fill: var(--start); opacity: .55; }

/* usage */
.usage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.card .usage { box-shadow: none; background: var(--surface-2); }
.usage-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.usage-grid dt { font-size: .78rem; color: var(--muted); }
.usage-grid dd { margin: 0; font-weight: 600; }

/* check page */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tile-value { font-size: 1.05rem; font-weight: 600; }
.grid-log { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.grid-log > .card { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.log { width: 100%; border-collapse: collapse; font-size: .9rem; }
.log th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.log td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.log tr:last-child td { border-bottom: 0; }
.kind { font-weight: 600; font-size: .82rem; padding: 1px 8px; border-radius: 6px; }
.kind-success { color: var(--up); background: var(--up-soft); }
.kind-fail { color: var(--down); background: var(--down-soft); }
.kind-start { color: var(--start); background: color-mix(in srgb, var(--start) 12%, transparent); }
.ua { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
details.body { margin-top: 6px; }
details.body summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
details.body pre { margin: 6px 0 0; background: var(--code-bg); color: var(--code-text); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.tl-when { font-size: .8rem; color: var(--muted); width: 100%; }

pre.code { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 0 0 10px; }
pre.code code { font-size: inherit; }
pre.code b { color: #fbbf24; font-weight: 600; }

/* CSS-only tabs */
.tabs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { order: 0; margin: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--muted); border: 1px solid transparent; }
.tabs > label:hover { color: var(--text); background: var(--surface-2); }
.tabs > input:checked + label { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.tabs > input:focus-visible + label { outline: 2px solid var(--accent); }
.tab-panel { order: 1; width: 100%; min-width: 0; display: none; margin-top: 8px; }
#t-curl:checked ~ .p-curl, #t-cron:checked ~ .p-cron, #t-systemd:checked ~ .p-systemd, #t-gha:checked ~ .p-gha, #t-py:checked ~ .p-py, #t-go:checked ~ .p-go { display: block; }

.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row form { margin: 0; }
.tag-slack { color: #7c3aed; }
.tag-discord { color: #4f46e5; }
.trial-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.seg-links { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.seg-links a { padding: 5px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.seg-links a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; }
.plan .ticks { flex: 1; }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-current { border-color: var(--border-strong); background: var(--surface-2); }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-text); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-current .plan-flag { background: var(--idle); color: #fff; }
.plan-price { font-size: 1.9rem; font-weight: 800; margin: 4px 0 0; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0; }
.ticks li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px; border-left: 2.5px solid var(--up); border-bottom: 2.5px solid var(--up); transform: rotate(-45deg); }

/* landing */
.landing { padding-bottom: 40px; }
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.term { background: var(--code-bg); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: rgba(255, 255, 255, .06); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.term-bar code { color: #94a3b8; margin-left: 8px; background: none; border: 0; font-size: .78rem; }
.term-body { margin: 0; padding: 14px 16px; color: var(--code-text); font: .82rem/1.6 var(--mono); overflow-x: auto; }
.term-body .c { color: #6b8a80; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; margin-left: 28px; }
.mock-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.mock-name { font-weight: 600; font-size: .92rem; }
.mock-spark { display: flex; gap: 3px; }
.mock-spark i { width: 5px; height: 16px; border-radius: 1px; background: var(--up); }
.mock-spark i.r { background: var(--start); opacity: .55; height: 10px; margin-top: 6px; }
.mock-spark i.f { background: var(--down); }
.mock-alert { font-size: .84rem; padding: 10px; color: var(--muted); }
.section { padding-top: 56px; padding-bottom: 8px; }
.section h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }
.sentry-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; margin-top: 56px; box-shadow: var(--shadow); }
.sentry-band p { color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin: 10px auto; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-final { text-align: center; padding-top: 64px; padding-bottom: 40px; }

/* docs and legal */
.docs-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 7px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 36px; scroll-margin-top: 80px; }
.prose h3 { margin-top: 20px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.legal .prose h2 { font-size: 1.08rem; margin-top: 26px; }
.legal-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 12px 0 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
address { font-style: normal; }

/* footer, feedback, toast */
.footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--muted); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-links { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.fb-btn { position: fixed; right: 18px; bottom: 18px; display: flex; gap: 6px; align-items: center; background: var(--text); color: var(--bg); border: 0; border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 25; }
.fb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fb-pop { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  position: fixed; inset: auto 18px 70px auto; margin: 0; }
.fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-result { margin: 0; font-size: .9rem; }
.fb-result.ok { color: var(--up); }
.fb-result.error { color: var(--down); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40; }
.toast-msg { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); }
.toast-msg.error { background: var(--down); color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 44px; gap: 32px; }
  .mock { margin-left: 0; }
  .features, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 520px; margin-left: auto; margin-right: auto; }
  .sentry-band { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .grid-log { grid-template-columns: minmax(0, 1fr); }
  .checkrow-link { grid-template-columns: 100px minmax(0, 1fr) 140px; }
  .checkrow-spark { display: none; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkrow-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "last last"; gap: 4px 12px; padding: 12px 14px; }
  .checkrow-main { grid-area: main; }
  .checkrow-status { grid-area: status; }
  .checkrow-last { grid-area: last; text-align: left; color: var(--muted); }
  .menu-org { display: none; }
  .topbar-inner { gap: 6px 10px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 6px; }
  /* The main nav gets its own row and wraps (no sideways scrolling, every link visible, no JS). */
  .mainnav { order: 3; flex-basis: 100%; margin: 0 -8px; flex-wrap: wrap; overflow: visible; row-gap: 2px; }
  h1 { font-size: 1.5rem; }
  .page { padding-top: 20px; }
  .card { padding: 16px; }
  .fb-btn span { display: none; }
  .fb-btn { padding: 11px; }
}
@media (max-width: 460px) {
  .hide-xs { display: none; }
  .wrap { padding: 0 14px; }
  .mainnav a { padding: 7px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .status-down .status-dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--down) 10%, transparent); } }
}

/* Guides and comparison pages */
.section-sm { margin: 28px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cards li { min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 6px; height: 100%; margin: 0; color: var(--text); text-decoration: none; transition: border-color .15s; }
.card-link:hover { border-color: var(--accent); }
.card-title { font-weight: 650; color: var(--accent); }
.card-desc { font-size: .9rem; color: var(--muted); }
.link-list { padding-left: 20px; }
.link-list li { margin: 4px 0; }
.article { max-width: 820px; margin: 0 auto; }
.article > h1 { margin-bottom: 4px; }
.article .prose { max-width: none; overflow-wrap: anywhere; }
.article .prose pre.code { margin: 12px 0 16px; }
.article .prose blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.article .prose blockquote p { margin: 4px 0; }
.article .prose :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 4px; font-size: .86em; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 14px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .9rem; }
.table-scroll th, .table-scroll td { overflow-wrap: normal; hyphens: auto; border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.table-scroll th { background: var(--surface-2); }
.article-cta { margin: 36px 0 12px; border-color: var(--accent); }
.article-cta h2 { margin-top: 0; font-size: 1.15rem; }
.cards + p { margin-top: 18px; }
.stats-table { margin-top: 16px; }
.stats-table .num { text-align: right; white-space: nowrap; }

/* Demo sandbox (/demo) */
.banner-demo { background: var(--accent-soft); }
.demo-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 24px 0 8px; }
.demo-start h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; }
.demo-start-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.demo-try { border-color: var(--accent); }
.demo-try h2 { margin-top: 0; }
@media (max-width: 760px) {
  .demo-start { grid-template-columns: 1fr; gap: 12px; }
  .demo-start-form .btn { width: 100%; justify-content: center; }
}

/* ---- EOL pages (/eol) */
.lead-sm { font-size: 1.05rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
.eol-badge { display: inline-block; font-size: .78rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.eol-ok { background: var(--up-soft); color: var(--up); border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.eol-soon { background: var(--late-soft); color: var(--late); border-color: color-mix(in srgb, var(--late) 30%, transparent); }
.eol-eol { background: var(--down-soft); color: var(--down); border-color: color-mix(in srgb, var(--down) 25%, transparent); }
.eol-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; }
.eol-next { margin: 8px 0 14px; }
.eol-table-wrap { padding: 4px 6px; }
.eol-table th[scope="row"] { text-align: left; font-weight: 650; white-space: nowrap; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--text); padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.eol-table tr:last-child th[scope="row"] { border-bottom: 0; }
.eol-table .eol-row-eol th, .eol-table .eol-row-eol td { color: var(--muted); }
.eol-legend .eol-badge { font-size: .72rem; }
.eol-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.eol-card .eol-summary { margin: 6px 0; }
.eol-faq details { margin-left: 0; margin-right: 0; }
.eol-attribution { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 12px; }

/* ---- Cronjay Stack (beta) waitlist */
.sb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sb-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sb-form legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.sb-stacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.sb-stacks legend { grid-column: 1 / -1; }
.sb-stacks label.check { margin: 0; font-size: .92rem; }
.sb-band, .sb-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.sb-page { margin-top: 12px; }
.sb-page h1 { font-size: 2rem; letter-spacing: -.02em; }
.sb-points { padding-left: 20px; }
.sb-points li { margin: 8px 0; }
.sb-card { position: relative; scroll-margin-top: 84px; }
.sb-card h2, .sb-card h3 { margin-top: 0; }
.sb-teaser { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; }
.sb-teaser p { margin: 0; }
@media (max-width: 820px) {
  .sb-band, .sb-page { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sb-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .eol-table .col-rel, .eol-table .col-eoas { display: none; }
  .eol-table { font-size: .84rem; }
  .eol-table td, .eol-table th { padding: 7px 6px !important; }
  .eol-table .eol-badge { font-size: .72rem; padding: 2px 7px; }
}
@media (max-width: 420px) {
  .sb-stacks { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Inventory ---- */
.grid-2-wide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-2-wide > .card, .grid-2-wide > div > .card:last-child { margin-bottom: 0; }
.grid-2-wide > div > .card + .card { margin-top: 18px; }
.form-narrow { max-width: 760px; }
.card-flush { padding: 0; overflow: hidden; }
.tile-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.tile-link:hover { border-color: var(--accent); color: inherit; }
.tile-big { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.prio-text { color: var(--down); font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag-link { text-decoration: none; margin: 0 2px 2px 0; }
.tag-link:hover { color: var(--accent); border-color: var(--accent); }
.tag-write { color: var(--late); background: var(--late-soft); border-color: transparent; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px !important; font-size: .9rem; }

/* todos */
.todos { list-style: none; margin: 8px 0 0; padding: 0; }
.todo-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.todo-row:last-child { border-bottom: 0; }
.todo-status { margin: 0; flex: 0 0 auto; }
.status-select { width: auto; font-size: .8rem; font-weight: 600; padding: 3px 24px 3px 8px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.status-select-open { color: var(--start); background-color: color-mix(in srgb, var(--start) 12%, var(--surface)); }
.status-select-in_progress { color: var(--late); background-color: var(--late-soft); }
.status-select-done { color: var(--up); background-color: var(--up-soft); }
.status-select-cancelled { color: var(--idle); background-color: var(--idle-soft); }
.todo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.todo-title { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.todo-title:hover { color: var(--accent); text-decoration: underline; }
.todo-closed .todo-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.todo-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .82rem; }
.todo-facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px !important; }
.prio { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 6px; }
.prio-urgent { color: #fff; background: var(--down); }
.prio-high { color: var(--down); background: var(--down-soft); }
.prio-low { color: var(--idle); background: var(--idle-soft); }
.assignee { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.assignee::before { content: "@"; opacity: .7; }
.assignee-bot { color: var(--accent); font-weight: 600; }
.assignee-bot::before { content: "⚙"; opacity: 1; }
.todo-link { font-family: var(--mono); font-size: .8rem; }
.tstatus { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .84rem; padding: 2px 10px 2px 8px; border-radius: 999px; }
.tstatus-open { color: var(--start); background: color-mix(in srgb, var(--start) 12%, var(--surface)); }
.tstatus-in_progress { color: var(--late); background: var(--late-soft); }
.tstatus-done { color: var(--up); background: var(--up-soft); }
.tstatus-cancelled { color: var(--idle); background: var(--idle-soft); }
.todo-new { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.todo-new > input[name="title"] { flex: 1 1 260px; }
.todo-new > select { width: auto; }
.todo-more { flex-basis: 100%; }
.todo-more summary { cursor: pointer; color: var(--muted); }
.seg-links { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.seg-links a { padding: 3px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.seg-links a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chips-tight { margin: 0 0 14px; }
.chip[aria-current] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }

/* environments and facts */
.env { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 6px; color: var(--idle); background: var(--idle-soft); }
.env-production { color: var(--up); background: var(--up-soft); }
.env-staging { color: var(--late); background: var(--late-soft); }
.env-input { max-width: 150px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* notes */
.notes-list { list-style: none; margin: 0; padding: 0; }
.note { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; background: var(--surface); }
/* avatar | author + time | Delete; on narrow screens the time goes under the author (two lines max). */
.note-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; margin-bottom: 8px; }
.note-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; min-width: 0; line-height: 1.3; }
.note-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.note-meta time { white-space: nowrap; }
.note-head form { margin: 0; justify-self: end; }
@media (max-width: 560px) { .note-meta { flex-direction: column; align-items: flex-start; } }
.note-event { font-size: .84rem; color: var(--muted); padding: 4px 0 4px 14px; border-left: 2px solid var(--border); margin-left: 12px; }
.note-event span:nth-child(2) { color: var(--text); }
.note-when { font-variant-numeric: tabular-nums; }
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md pre { background: var(--code-bg); color: var(--code-text); padding: 10px 12px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .85rem; }
.md pre code { font-size: inherit; }
.md :not(pre) > code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.md blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.md table { border-collapse: collapse; font-size: .9rem; }
.md th, .md td { border: 1px solid var(--border); padding: 4px 8px; }
.md ul, .md ol { padding-left: 22px; }
.md li:has(> input[type="checkbox"]) { list-style: none; margin-left: -20px; }
.md h1, .md h2, .md h3 { font-size: 1.05rem; margin-top: 14px; }

@media (max-width: 960px) {
  .grid-2-wide { grid-template-columns: minmax(0, 1fr); }
  .grid-2-wide > .card { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-row { flex-direction: column; gap: 6px; }
  table.data th, table.data td { padding: 9px 10px; }
}
.actions-center { justify-content: center; }
.avatar-bot { background: var(--accent-soft); color: var(--accent); }
.grid-2 + .card, .grid-2-wide + .card { margin-top: 18px; }

/* ---- dependencies (task #44) ---- */
.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile-bad { border-color: color-mix(in srgb, var(--down) 45%, var(--border)); box-shadow: inset 3px 0 0 var(--down), var(--shadow); }
.tile-bad .tile-value { color: var(--down); }
.tabnav { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabnav a { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabnav a:hover { color: var(--text); }
.tabnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--late-soft); color: var(--late); }
.count-bad { background: var(--down-soft); color: var(--down); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 18px 10px; }
.card-head h2 { margin: 0; }
.table-foot { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--border); }
.empty-sm { padding: 24px 18px; margin: 0; text-align: center; }
.alert-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.rt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.eol-badge { display: inline-block; font-size: .76rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.eol-unknown { background: var(--idle-soft); color: var(--idle); }

.dep-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dep-checks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; font-size: .86rem; cursor: pointer; user-select: none; }
.pill-check:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.pill-check input { margin: 0; }
.select-sm { width: auto; padding: 4px 8px; font-size: .86rem; border-radius: 999px; }
.dep-search { display: flex; gap: 6px; flex: 0 1 300px; }
.dep-search input { padding: 5px 10px; font-size: .9rem; }

.deps-table td { vertical-align: top; }
.deps-table .mono { font-size: .86rem; }
.dep-name { min-width: 220px; }
.dep-name > .mono { font-weight: 600; overflow-wrap: anywhere; }
.dep-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.dep-tags .tag { font-size: .68rem; padding: 0 6px; }
.tag-dev { color: var(--idle); }
.dep-manifest { display: block; font-size: .76rem; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.eco { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--idle-soft); color: var(--idle); }
.eco-go { color: #0e7490; background: color-mix(in srgb, #06b6d4 14%, var(--surface)); }
.eco-npm { color: #b91c1c; background: color-mix(in srgb, #ef4444 12%, var(--surface)); }
.eco-rubygems { color: #9f1239; background: color-mix(in srgb, #e11d48 12%, var(--surface)); }
.eco-pypi { color: #1d4ed8; background: color-mix(in srgb, #3b82f6 12%, var(--surface)); }
:root[data-theme="dark"] .eco-go { color: #67e8f9; } :root[data-theme="dark"] .eco-npm { color: #fca5a5; }
:root[data-theme="dark"] .eco-rubygems { color: #fda4af; } :root[data-theme="dark"] .eco-pypi { color: #93c5fd; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eco-go { color: #67e8f9; } :root:not([data-theme="light"]) .eco-npm { color: #fca5a5; }
  :root:not([data-theme="light"]) .eco-rubygems { color: #fda4af; } :root:not([data-theme="light"]) .eco-pypi { color: #93c5fd; }
}
.behind { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.behind-major { color: var(--down); background: var(--down-soft); }
.behind-minor { color: var(--late); background: var(--late-soft); }
.behind-patch { color: var(--start); background: color-mix(in srgb, var(--start) 12%, var(--surface)); }
.behind-newer { color: var(--idle); background: var(--idle-soft); }
.vcount { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; font-weight: 700; font-size: .8rem; text-decoration: none; color: #fff; background: var(--late); }
a.vcount:hover { color: #fff; filter: brightness(1.08); }
.vcount.sev-critical, .vcount.sev-high, .vcount.sev-moderate, .vcount.sev-low, .vcount.sev-unknown { color: #fff; }
.vcount.sev-critical, .vcount.sev-high { background: var(--down); }
.vcount.sev-moderate { background: var(--late); }
.vcount.sev-low, .vcount.sev-unknown { background: var(--idle); }
:root[data-theme="dark"] .vcount.vcount { color: #1a0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vcount.vcount { color: #1a0b0b; } }
.sev { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; min-width: 64px; text-align: center; }
.sev-critical { color: #fff; background: var(--down); }
.sev-high { color: var(--down); background: var(--down-soft); }
.sev-moderate { color: var(--late); background: var(--late-soft); }
.sev-low, .sev-unknown { color: var(--idle); background: var(--idle-soft); }
tr.dep-vuln td { border-bottom: 0; }
tr.dep-vuln { box-shadow: inset 3px 0 0 var(--down); }
tr.vuln-row td { padding-top: 0; background: color-mix(in srgb, var(--down-soft) 45%, transparent); box-shadow: inset 3px 0 0 var(--down); }
table.data tbody tr.vuln-row:hover { background: transparent; }
.vuln-list { list-style: none; margin: 0; padding: 4px 0 2px; display: grid; gap: 5px; }
.vuln-list li { font-size: .85rem; line-height: 1.45; }
.vuln-list a.mono { font-weight: 600; }
.vuln-summary { color: var(--text); }
.fixed { color: var(--up); font-weight: 600; white-space: nowrap; }
.manifest-row { align-items: flex-start; }
.manifest-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.manifest-main code { overflow-wrap: anywhere; align-self: flex-start; }
.upload-form { border-top: 1px solid var(--border); padding-top: 14px; }
.upload-form input[type="file"] { padding: 6px; background: var(--surface-2); }

/* Feedback button. It floats only where the page gutter beside the 1080 px content column has room for it, so it
   never covers page content (row actions such as "Create todo" sit at the right edge of the column). The content's
   right edge is (100vw + 1080 px) / 2; a fixed button of width w at right: 18px clears it by 8 px from
   100vw >= 1080 + 52 + 2w: 1220 px for the 44 px round icon, 1368 px for the labelled pill (+ scrollbar margin).
   Narrower screens show it as a normal button in the footer, and the account menu has "Send feedback" too.
   e2e: forge.spec.ts "feedback button never covers content". */
.footer-inner { align-items: center; }
.fb-btn { position: static; padding: 7px 13px; font-size: .84rem; box-shadow: none; }
.fb-btn span { display: inline; }
@media (min-width: 1240px) {
  .fb-btn { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; padding: 0; justify-content: center; box-shadow: var(--shadow-lg); }
  .fb-btn svg { width: 18px; height: 18px; }
  .fb-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1400px) {
  .fb-btn { width: auto; height: auto; padding: 9px 15px; font-size: .88rem; }
  .fb-btn svg { width: 16px; height: 16px; }
  .fb-btn span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

@media (max-width: 720px) {
  .dep-filters { padding: 12px; }
  .dep-search { flex: 1 1 100%; }
  .dep-name { min-width: 160px; }
  .deps-table th:nth-child(4), .deps-table td:nth-child(4) { padding-left: 4px; padding-right: 4px; }
}

/* Dependency tables become stacked rows on phones: name, then "used → latest  behind  vulns". */
@media (max-width: 720px) {
  .deps-table thead { display: none; }
  .deps-table, .deps-table tbody { display: block; }
  .deps-table tr.dep { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-top: 1px solid var(--border); }
  .deps-table tr.dep td { padding: 0; border: 0; }
  .deps-table td.dep-name, .deps-table td.c-app { grid-column: 1 / -1; min-width: 0; }
  .deps-table td.c-app { font-size: .82rem; }
  .deps-table td.c-latest::before { content: "→ "; color: var(--muted); }
  .deps-table td.c-vulns { justify-self: end; }
  .deps-table tr.vuln-row { display: block; }
  .deps-table tr.vuln-row td { display: block; padding: 0 12px 10px; }
  .deps-table tbody tr.dep:first-child { border-top: 0; }
  .dep-tags { margin-left: 0; }
}
.vuln-list .mono { white-space: nowrap; }

/* Forge integration (task #45): connections, repository links, PR/issue lists, Work page. */
.tiles-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile-warn { border-color: color-mix(in srgb, var(--late) 45%, var(--border)); box-shadow: inset 3px 0 0 var(--late), var(--shadow); }
.tile-warn .tile-value { color: var(--late); }
.count-info { background: var(--accent-soft); color: var(--accent); }
.err-text { color: var(--down); }
.btn-xs { padding: 2px 9px; font-size: .78rem; border-radius: 7px; line-height: 1.5; white-space: nowrap; }
.c-act { text-align: right; white-space: nowrap; width: 1%; }
.c-act form { margin: 0; }
.state { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 6px; background: var(--idle-soft); color: var(--idle); }
.state-ok { background: var(--up-soft); color: var(--up); }
.state-bad { background: var(--down-soft); color: var(--down); }
.state-warn { background: var(--late-soft); color: var(--late); }
.forge-kind { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; background: var(--idle-soft); color: var(--idle); }
.forge-forgejo { color: #c2410c; background: color-mix(in srgb, #f97316 13%, var(--surface)); }
.forge-github { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.forge-gitlab { color: #7c3aed; background: color-mix(in srgb, #8b5cf6 13%, var(--surface)); }
:root[data-theme="dark"] .forge-forgejo { color: #fdba74; } :root[data-theme="dark"] .forge-gitlab { color: #c4b5fd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .forge-forgejo { color: #fdba74; } :root:not([data-theme="light"]) .forge-gitlab { color: #c4b5fd; } }

.conn-list { padding: 0 18px; }
.conn-row { align-items: flex-start; padding: 14px 0; }
.conn-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.conn-meta { overflow-wrap: anywhere; }
.conn-actions { flex-wrap: wrap; gap: 6px; }
.conn-actions form { margin: 0; }
.hint-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.repo-bar { padding-bottom: 8px; }
.repo-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.repo-bar-head h2 { margin: 0; }
.repo-bar-head .actions { align-items: center; gap: 10px; }
.repo-bar-head form { margin: 0; }
.repo-row { align-items: flex-start; }
.repo-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 300px; }
.repo-name { font-weight: 600; overflow-wrap: anywhere; }
.repo-main .tag { margin-left: 4px; }
.link-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px; }
.link-form .field { margin: 0; }
.empty .link-form { text-align: left; max-width: 900px; margin: 14px auto 0; }

.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); }
.item:first-child { border-top: 0; }
.item:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-title { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.item-title:hover { color: var(--accent); text-decoration: underline; }
.item-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.item-meta .mono { font-size: .8rem; }
.item-meta .tag { font-size: .7rem; padding: 0 7px; }
.item-act { flex: 0 0 auto; }
.item-act form { margin: 0; }
.item-apps { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 40%; }
.item-stale { box-shadow: inset 3px 0 0 var(--late); background: color-mix(in srgb, var(--late-soft) 55%, transparent); }
.item-out { opacity: .65; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.badge-draft { background: var(--idle-soft); color: var(--idle); }
.badge-stale { background: var(--late-soft); color: var(--late); }
.item-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: inline-block; position: relative; }
.pr-icon { border: 2px solid var(--up); }
.pr-icon::after { content: ""; position: absolute; left: 5px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--up); }
.issue-icon { border: 2px solid var(--accent); }
.issue-icon::after { content: ""; position: absolute; left: 5px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.ci-success { background: var(--up); }
.ci-success::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ci-failure { background: var(--down); }
.ci-failure::before, .ci-failure::after { content: ""; position: absolute; left: 8px; top: 4px; width: 2px; height: 10px; background: #fff; transform: rotate(45deg); }
.ci-failure::after { transform: rotate(-45deg); }
.ci-pending { border: 2px solid var(--late); border-right-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .ci-pending { animation: spin 1.4s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
:root[data-theme="dark"] .ci-success::after, :root[data-theme="dark"] .ci-failure::before, :root[data-theme="dark"] .ci-failure::after { border-color: #08130f; background-color: #08130f; }
:root[data-theme="dark"] .ci-success::after { background: transparent; }

/* "Push from CI" snippets: long curl lines wrap inside their card (the URL breaks anywhere) instead of
   being cut off; continuation lines are indented so the shell line breaks stay readable. */
pre.code { max-width: 100%; overflow-x: auto; }
.card > pre.code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 900px) { .link-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 720px) {
  .link-grid { grid-template-columns: minmax(0, 1fr); }
  .item { padding: 11px 14px; flex-wrap: wrap; }
  .item-main { flex-basis: calc(100% - 30px); }
  .item-act { margin-left: 30px; }
  .item-apps { max-width: none; justify-content: flex-start; margin-left: 30px; }
  .conn-list { padding: 0 14px; }
}
.suggest-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.empty .suggest-form { justify-content: center; max-width: 900px; margin: 14px auto 0; }

/* Public pages (task #50): landing, pricing, docs, legal */
.pubnav { display: flex; gap: 4px; flex: 1; }
.pubnav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.pubnav a:hover { color: var(--text); background: var(--surface-2); }
.pubnav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.hl { color: var(--accent); }
.hero-shot { margin: 0; }
.hero-shot img, .shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.landing .section { padding-bottom: 24px; }
.section-title { text-align: center; }
.section-title.left { text-align: left; }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.landing .features { margin-top: 30px; gap: 18px; }
.landing .feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.f-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; margin-right: 6px; vertical-align: -6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.shot { margin: 0; min-width: 0; }
.split pre.code { white-space: pre; }
.badge-planned { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--late-soft); color: var(--late); border: 1px solid color-mix(in srgb, var(--late) 35%, transparent); vertical-align: middle; }
.compact3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px auto 12px; max-width: 860px; }
.price-mini { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.price-mini:hover { border-color: var(--accent); color: var(--text); }
.price-mini.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pm-name { font-weight: 700; }
.pm-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.pm-price .per, .plan-price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px; max-width: 920px; margin: 0 auto; }
.access form { gap: 12px; }
.access .field { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pricing-head { max-width: 760px; margin: 0 auto 8px; }
.plans-public { margin-top: 28px; }
.plans-public .plan h2 { font-size: 1.15rem; margin-bottom: 2px; }
.plans-public .plan .muted.small { margin-bottom: 6px; }
.price-year { margin: 2px 0 0; }
.faq h3 { margin-top: 18px; margin-bottom: 4px; }
.faq p { color: var(--muted); }
.toc-sub { padding-left: 22px !important; font-size: .88rem; }
.gs-list { padding-left: 22px; }
.gs-list li { margin: 8px 0; }
.docs-body pre.code { margin: 10px 0 16px; white-space: pre; }
.docs-body h2 { scroll-margin-top: 80px; }
.docs-body h3 { scroll-margin-top: 80px; }
.md-doc table { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: .9rem; display: block; overflow-x: auto; }
.md-doc th, .md-doc td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.md-doc th { background: var(--surface-2); }
.md-doc pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.55; }
.md-doc pre code { background: none; border: 0; padding: 0; color: inherit; }
.md-doc h1 { font-size: 1.75rem; }
.legal h1 { margin-bottom: 4px; }
.legal address { line-height: 1.7; margin-bottom: 8px; }
.draft-note { background: var(--late-soft); border: 1px solid color-mix(in srgb, var(--late) 35%, transparent); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0 14px; }
.kind-help { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; }
.kind-help p { margin: 0; }
@supports selector(:has(a)) {
  .kh { display: none; }
  form:has(option[value="github"]:checked) .kh-github,
  form:has(option[value="gitlab"]:checked) .kh-gitlab,
  form:has(option[value="forgejo"]:checked) .kh-forgejo { display: block; }
}
@media (max-width: 960px) {
  .split, .split-rev, .access { grid-template-columns: minmax(0, 1fr); }
  .split-rev > .shot { order: 2; }
}
@media (max-width: 720px) {
  .compact3 { grid-template-columns: minmax(0, 1fr); }
  .pubnav { order: 3; flex-basis: 100%; margin: 0 -8px; flex-wrap: wrap; }
  .access { padding: 18px; }
}
@media (max-width: 460px) {
  /* .wrap's padding shorthand would reset the vertical padding of these. */
  .section { padding-top: 40px; }
  .hero-inner { padding-top: 32px; padding-bottom: 36px; }
}
.pricing-head + .plans + .faq, .faq { margin-top: 40px; }

/* Organization deletion (I8b) */
.delete-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.delete-counts li { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.onboard-steps { text-align: left; max-width: 430px; margin: 4px auto 18px; padding-left: 1.4em; color: var(--muted); }
.onboard-steps li + li { margin-top: 4px; }
.check-terms { align-items: flex-start; }
.check-terms input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; }

/* Plan usage and API token scopes (I8c) */
.plan-box { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.plan-box p { margin: 0; }
.plan-usage { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; padding: 0; list-style: none; }
.plan-usage .at-limit { color: var(--late); background: var(--late-soft); font-weight: 600; padding: 0 6px; border-radius: 6px; }
.token-form h3 { margin: 6px 0 0; font-size: 1rem; }
.scope-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scope-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.scope-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 400; }
.scope-opt input { margin-top: 3px; flex: none; width: auto; }
.scope-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scope-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.scope-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tag-scope-write { color: var(--late); background: var(--late-soft); border-color: transparent; }
.tag-scope-agent { color: #7c3aed; }
.tag-scope-deploy { color: var(--accent); }
.tag-expired { color: var(--late); }
@media (max-width: 640px) { .scope-pick { grid-template-columns: 1fr; } }

/* /docs/drover: goal generator */
.goal-form .scope-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goal-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.goal-out { margin-top: 16px; }
.goal-out h3 { margin: 10px 0 0; font-size: 1rem; }
.goal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.docs-body pre.goal-text, pre.goal-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 36rem; overflow-y: auto; }
.agent-preset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 640px) {
  .goal-form .scope-pick, .goal-fields { grid-template-columns: minmax(0, 1fr); }
}
