:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --surface: #ffffff;
  --ink: #233e36;
  --text: #303b36;
  --muted: #657069;
  --line: #dedfd5;
  --green: #245347;
  --green-light: #eaf1e9;
  --accent: #e6ecb5;
  --amber: #85501a;
  --amber-light: #fcf0df;
  --red: #973f35;
  --red-light: #fbede9;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a76b12; outline-offset: 4px; }
button, a { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 10; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 720; letter-spacing: -.4px; text-decoration: none; color: var(--ink); }
.version { font: 10px/1.5 ui-monospace, monospace; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; margin-left: 2px; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { text-decoration: none; font-size: 13px; }
.site-header nav a:hover { text-decoration: underline; }
.github-link { border: 1px solid #c8cec3; padding: 8px 14px; border-radius: 6px; }
.hero { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: 64px; padding-block: 55px 52px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: 1.35px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #497967; box-shadow: 0 0 0 4px #e4e9dd; }
h1 { font-size: clamp(40px, 4.5vw, 62px); letter-spacing: -2.8px; line-height: 1.05; font-weight: 620; color: var(--ink); margin-top: 17px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-aside { padding-top: 25px; }
.hero-aside > p:first-child { max-width: 410px; font-size: 16px; line-height: 1.7; color: #536259; }
.hero-links { display: flex; align-items: center; gap: 23px; margin: 20px 0 14px; }
.hero-links > a:not(.button) { font-size: 12px; text-decoration: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 1px solid transparent; min-height: 42px; padding: 9px 16px; border-radius: 6px; font-size: 12px; font-weight: 620; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #173f34; }
.button.secondary { background: white; border-color: #ced4c9; color: var(--ink); }
.button.secondary:hover { background: var(--green-light); border-color: #9fb4a5; }
.button.subtle { background: transparent; color: var(--muted); padding-inline: 10px; }
.button.subtle:hover { background: var(--green-light); }
.fine-print { color: var(--muted); font-size: 11px; line-height: 1.5; }
.workspace { background: var(--surface); border: 1px solid #ced5c8; border-radius: 12px; box-shadow: 0 8px 34px -18px #243e3524; overflow: clip; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 25px; border-bottom: 1px solid var(--line); background: #fafbf7; }
.workspace-name { display: flex; gap: 10px; align-items: center; }
.workspace-icon { color: #608475; font-size: 21px; line-height: 1; }
.workspace-heading h2 { font-size: 13px; font-weight: 650; letter-spacing: -.1px; }
.source-badge { font: 10px/1.5 ui-monospace, monospace; padding: 4px 9px; color: var(--green); background: #edf2e6; border: 1px solid #d8e2cc; border-radius: 5px; }
.source-badge[data-live="true"] { background: #e8f4ed; }
.workspace-content { padding: 24px 25px 27px; }
.source-toolbar { display: flex; gap: 28px; align-items: start; justify-content: space-between; }
.scan-form { flex: 1; max-width: 730px; min-width: 0; }
.scan-form > label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.scan-fields { display: flex; gap: 8px; }
.scan-fields input { flex: 1; width: 100%; min-width: 0; border: 1px solid #cbd4c9; background: #fdfefa; border-radius: 6px; padding: 10px 13px; font-size: 13px; color: var(--text); }
input::placeholder { color: #7d867c; }
.scan-fields input:focus { outline: 2px solid #8baa93; outline-offset: 1px; }
.scan-form .fine-print { margin-top: 7px; }
.sample-control { display: grid; gap: 7px; padding-top: 1px; }
.sample-control > span { font-size: 11px; color: var(--muted); }
.demo-status { font-size: 11px; color: var(--muted); min-height: 20px; margin-top: 13px; }
.demo-status[data-kind="loading"] { color: var(--green); }
.demo-status[data-kind="loading"]::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border: 1px solid #aabdae; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
.notice, .error-panel { margin-top: 12px; border-radius: 6px; padding: 12px 15px; font-size: 12px; background: var(--amber-light); color: #784917; border: 1px solid #ead7b9; }
.error-panel { background: var(--red-light); color: var(--red); border-color: #e9cfc8; }
.error-panel p { margin: 5px 0 10px; }
.error-panel strong { display: block; }
.queue-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 23px 0 24px; border-top: 1px solid var(--line); }
.queue-overview h3 { margin-top: 5px; font-size: 21px; font-weight: 630; letter-spacing: -.5px; overflow-wrap: anywhere; }
.queue-overview > div > p:last-child { margin-top: 5px; color: var(--muted); font-size: 12px; max-width: 550px; }
.overview-stats { display: flex; gap: 0; flex-shrink: 0; }
.overview-stats div { display: grid; min-width: 82px; padding-left: 22px; margin-left: 22px; border-left: 1px solid var(--line); }
.overview-stats strong { color: var(--ink); font: 500 28px/1.2 ui-monospace, monospace; letter-spacing: -1.5px; }
.overview-stats span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; align-items: start; }
.queue-column, .plan-column { min-width: 0; }
input[type="checkbox"] { accent-color: var(--green); }
.queue-list { display: grid; gap: 10px; }
.pr-card { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.pr-card-main { padding: 16px 17px 14px; }
.pr-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pr-number { font: 11px/1.5 ui-monospace, monospace; color: var(--muted); }
.pill { display: inline-block; font-size: 10px; line-height: 1.6; font-weight: 550; border-radius: 4px; padding: 3px 8px; background: #f0f1ed; color: #57635d; }
.pill.review { color: #266343; background: #e9f3e8; }
.pill.ci, .pill.caution { color: var(--amber); background: var(--amber-light); }
.pill.followup { color: var(--red); background: var(--red-light); }
.pill.waiting { color: #5f6277; background: #eef0f5; }
.pr-card h4 { margin: 0; font-size: 14px; font-weight: 620; letter-spacing: -.2px; line-height: 1.5; overflow-wrap: anywhere; }
.pr-card h4 a { text-decoration: none; color: var(--text); }
.pr-card h4 a:hover { color: var(--green); text-decoration: underline; }
.pr-next { font-size: 12px; color: #5c685f; margin-top: 5px; }
.pr-metadata { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; font: 10px/1.5 ui-monospace, monospace; color: #6a746e; }
.diff-add { color: #397246; }
.diff-remove { color: #9b5348; }
.pr-details { border-top: 1px solid #edf0e8; }
.pr-details summary { font-size: 10px; color: #627266; padding: 9px 17px; }
.pr-details[open] summary { background: #f9faf6; }
.pr-evidence { padding: 4px 17px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-evidence h5 { margin: 8px 0 5px; font-size: 11px; font-weight: 650; }
.pr-evidence ul { margin: 0; padding-left: 15px; font-size: 11px; color: var(--muted); }
.pr-evidence li { margin-bottom: 4px; }
.pr-score { grid-column: 1 / -1; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pr-score strong { color: var(--text); }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed #cbd4c5; border-radius: 8px; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty-state p { max-width: 360px; margin-inline: auto; font-size: 12px; }
.queue-footnote { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 16px; max-width: 580px; }
.queue-footnote a { white-space: nowrap; }
.plan-panel { padding: 20px; border: 1px solid #dbe2cf; background: #f5f7ed; border-radius: 8px; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; }
.plan-heading > span:last-child { font-size: 21px; line-height: 1; color: #718567; }
.plan-heading .eyebrow { font-size: 9px; letter-spacing: .8px; }
.plan-panel h3 { font-size: 18px; letter-spacing: -.4px; font-weight: 620; margin-top: 9px; }
.budget-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 17px 0 15px; }
.budget-presets { display: flex; gap: 4px; }
.budget-presets button { border: 1px solid #d6ddca; background: transparent; padding: 7px 10px; border-radius: 5px; color: var(--muted); font-size: 11px; }
.budget-presets button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.custom-budget { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.custom-budget input { width: 58px; padding: 5px; background: #fff; border: 1px solid #cdd6c0; border-radius: 4px; color: var(--text); font-size: 11px; }
.plan-meta { font-size: 11px; color: #5c6b54; }
.time-track { height: 4px; background: #e2e7d7; border-radius: 5px; overflow: hidden; margin: 10px 0 15px; }
.time-track span { display: block; height: 100%; width: 0; background: #6c8d50; border-radius: inherit; transition: width .2s; }
.time-track[data-over="true"] span { background: var(--amber); }
.plan-list { display: grid; }
.plan-row { display: grid; grid-template-columns: 20px 1fr; gap: 3px 9px; padding: 12px 0; border-bottom: 1px solid #e2e7d8; }
.plan-order { font: 10px/20px ui-monospace, monospace; text-align: center; background: #e7ecd9; border-radius: 4px; grid-row: span 2; height: 20px; color: #547045; }
.plan-row strong { font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
.plan-row strong a { color: var(--text); text-decoration: none; }
.plan-row strong a:hover { text-decoration: underline; }
.plan-row > span:last-child { font-size: 10px; color: var(--muted); }
.plan-empty { font-size: 12px; padding: 16px 0; color: var(--muted); }
#plan-overflow { margin-top: 10px; }
#plan-overflow[data-over="true"] { color: var(--amber); font-weight: 550; }
.plan-caveat { font-size: 10px; color: var(--muted); margin: 15px 0; line-height: 1.6; }
.full-width { width: 100%; }
.install-section { padding-block: 65px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.install-copy h2 { font-size: 35px; line-height: 1.15; letter-spacing: -1.1px; color: var(--ink); font-weight: 550; margin: 15px 0; }
.install-copy > p:not(.eyebrow) { color: var(--muted); max-width: 350px; font-size: 13px; line-height: 1.8; }
.install-links { display: grid; gap: 8px; font-size: 12px; margin-top: 22px; }
.install-links a { width: fit-content; }
.terminal { background: #213c33; color: #eff3e8; border-radius: 9px; overflow: hidden; min-width: 0; }
.terminal-heading { display: flex; justify-content: space-between; gap: 15px; padding: 13px 20px; border-bottom: 1px solid #3a5046; font: 10px/1.5 ui-monospace, monospace; color: #b6c8b9; }
.terminal pre { margin: 0; padding: 20px; font: 11px/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .code-comment { color: #a5baaa; }
.terminal > a { display: block; padding: 11px 20px; color: #d6e5c7; font-size: 11px; border-top: 1px solid #3a5046; }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.footer-dot { margin-inline: 4px; }
dialog { border: 1px solid #cad5c5; border-radius: 10px; padding: 24px; width: min(650px, calc(100% - 32px)); color: var(--text); background: var(--surface); box-shadow: 0 18px 50px #18352622; }
dialog::backdrop { background: #18352666; }
.dialog-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.dialog-heading h2 { font-size: 19px; }
.dialog-heading button { border: 0; background: #edf2e7; border-radius: 5px; font-size: 23px; width: 35px; height: 35px; }
dialog p { margin: 10px 0; font-size: 12px; color: var(--muted); }
dialog textarea { width: 100%; min-height: 280px; max-height: 55vh; padding: 12px; border: 1px solid var(--line); border-radius: 5px; font: 11px/1.6 ui-monospace, monospace; resize: vertical; }
dialog .button { margin-top: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1400px) { .hero { padding-block: 62px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 40px; }
  .hero-links { gap: 14px; }
  .hero-links > a:not(.button) { font-size: 11px; }
  .work-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
  .overview-stats div { padding-left: 14px; margin-left: 14px; min-width: 67px; }
  .workspace-content { padding: 20px; }
  .install-section { gap: 40px; }
}
@media (max-width: 800px) {
  .version { display: none; }
  .site-header { min-height: 70px; }
  .site-header nav { gap: 18px; }
  .hero { gap: 28px; padding-block: 34px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .8px; }
  h1 { font-size: 43px; letter-spacing: -2px; }
  .hero-aside { padding-top: 0; }
  .hero-aside > p:first-child { font-size: 13px; }
  .hero-links { flex-wrap: wrap; margin-top: 13px; }
  .source-toolbar { gap: 15px; }
  .sample-control { align-self: center; padding-top: 16px; }
  .sample-control > span { display: none; }
  .sample-control .button { font-size: 10px; padding-inline: 10px; }
  .queue-overview { align-items: start; flex-direction: column; }
  .overview-stats { width: 100%; }
  .overview-stats div { flex: 1; margin-left: 0; padding-left: 17px; }
  .overview-stats div:first-child { border-left: 0; padding-left: 0; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-column { max-width: none; grid-row: 1; }
  .install-section { padding-block: 40px; gap: 28px; }
  .install-copy h2 { font-size: 28px; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { gap: 10px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand img { width: 25px; height: 25px; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 11px; }
  .site-header nav a[href="#install"] { display: none; }
  .github-link { padding: 6px 9px; }
  .hero { grid-template-columns: 1fr; gap: 19px; padding-block: 30px; }
  h1 { font-size: 47px; margin-top: 15px; }
  .hero-aside > p:first-child { font-size: 14px; line-height: 1.65; max-width: 370px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-links { gap: 20px; }
  .hero-aside .fine-print { font-size: 10px; }
  .workspace-heading { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .workspace-heading h2 { font-size: 12px; }
  .source-badge { font-size: 9px; }
  .workspace-content { padding: 15px 13px; }
  .source-toolbar { flex-direction: column; gap: 10px; }
  .scan-form { width: 100%; }
  .scan-fields .button { padding-inline: 11px; gap: 6px; font-size: 11px; }
  .scan-fields input { padding: 10px; font-size: 12px; }
  .sample-control { display: flex; align-self: start; padding: 0; align-items: center; }
  .sample-control > span { display: inline; font-size: 10px; }
  .sample-control .button { min-height: 32px; padding-block: 5px; }
  .demo-status { font-size: 10px; }
  .queue-overview { margin-top: 15px; padding: 18px 0; gap: 18px; }
  .queue-overview h3 { font-size: 19px; }
  .queue-overview > div > p:last-child { font-size: 11px; }
  .overview-stats strong { font-size: 24px; }
  .overview-stats span { font-size: 10px; }
  .pr-card-main { padding: 13px; }
  .pr-card h4 { font-size: 13px; }
  .pr-next { font-size: 11px; }
  .pr-evidence { grid-template-columns: 1fr; gap: 6px; }
  .pr-evidence .pr-score { margin-top: 5px; }
  .plan-column { grid-template-columns: 1fr; }
  .plan-panel { padding: 18px; }
  .plan-row strong { font-size: 12px; }
  .plan-row > span:last-child { font-size: 11px; }
  .install-section { grid-template-columns: 1fr; gap: 25px; padding-block: 38px; }
  .install-copy h2 { font-size: 31px; }
  .site-footer { gap: 14px; }
  .site-footer nav { gap: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.queue-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.queue-heading h3 { font-size: 13px; font-weight: 600; }
.queue-heading span { font-size: 10px; color: var(--muted); }
#budget-error { color: var(--red); margin-bottom: 10px; }

.arrow-icon { display: inline-block; flex-shrink: 0; vertical-align: -.1em; }
