:root {
  color-scheme: light;
  --ink: #1d3327;
  --muted: #718575;
  --paper: #f4f6ef;
  --surface: #fffefa;
  --line: #dce5d9;
  --green: #1f4930;
  --lime: #dbf3a8;
  --error: #a03427;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #9fc873; outline-offset: 3px; }
.brand { font-size: 29px; line-height: 1; font-weight: 820; letter-spacing: -.095em; white-space: nowrap; }
.brand span { color: #8bb350; }
.eyebrow, .section-kicker, .card-kicker { font-size: 10px; line-height: 1.4; font-weight: 850; letter-spacing: .16em; color: #71964f; }
.eyebrow:before { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 10px 3px 0; background: #71964f; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 770; white-space: nowrap; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; box-shadow: 0 9px 20px #1d493018; }
.button.primary:hover:not(:disabled) { background: #173a26; }
.button.secondary { background: #f4f8ef; border-color: #c9dac1; color: #315838; }
.button.secondary:hover:not(:disabled) { background: #e7f1df; }
.text-button { border: 0; background: none; color: #426e43; font-size: 12px; font-weight: 790; padding: 7px 2px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: #a05c4c; }
.free-pill { color: #3f7140; background: #eaf5e3; border: 1px solid #d3e8cc; border-radius: 99px; padding: 6px 10px; font-size: 9px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.loading-screen { min-height: 100vh; display: grid; place-items: center; color: #5a765d; font-size: 13px; letter-spacing: .05em; }
.site-header { min-height: 72px; padding: 0 max(25px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #fbfcf8; border-bottom: 1px solid var(--line); }
.header-left, .header-right { display: flex; align-items: center; gap: 19px; }
.header-left>strong { font-size: 11px; color: #35513b; }
.header-divider { width: 1px; height: 22px; background: var(--line); }
.signed-in-as { font-size: 11px; color: var(--muted); font-weight: 700; }

/* GitHub sign-in */
.sign-in-shell { min-height: 100vh; background: radial-gradient(circle at 16% 62%, #e9f4dd, transparent 34%), var(--paper); }
.sign-in-main { max-width: 1160px; min-height: calc(100vh - 72px); margin: auto; padding: 70px 30px 90px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .8fr); gap: 8vw; align-items: center; }
.sign-in-copy h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(53px, 6vw, 82px); line-height: 1.07; letter-spacing: -.065em; font-weight: 500; margin: 22px 0; }
.sign-in-copy h1 em { color: #6c9547; font-weight: 400; }
.sign-in-copy>p { max-width: 560px; color: #5d7360; font-size: 16px; line-height: 1.75; margin: 0 0 30px; }
.sign-in-points { border-top: 1px solid #d1dfca; padding-top: 22px; display: grid; gap: 10px; color: #617763; font-size: 11px; font-weight: 700; }
.sign-in-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 28px 68px #22392412; padding: 35px 37px 0; }
.sign-in-card:before { content: ""; position: absolute; left: 37px; right: 37px; top: 0; height: 3px; background: linear-gradient(90deg, #87b557, #d9efaf, transparent); }
.sign-in-card h2 { font-size: 30px; letter-spacing: -.05em; margin: 13px 0 8px; }
.sign-in-card>p { color: #6a7c6e; font-size: 12px; line-height: 1.7; margin: 0 0 23px; }
.sign-in-card .button { width: 100%; }
.sign-in-card .setup-message { margin: 12px 0 0; color: #4f7251; font-size: 11px; line-height: 1.6; }
.sign-in-card #ownerSetupLink { margin-top: 17px; }
.card-footer { border-top: 1px solid var(--line); margin: 28px -37px 0; padding: 15px 37px; color: #91a092; font-size: 10px; }
.status-message { color: #4c784e; font-size: 11px; line-height: 1.55; margin: 10px 0 0; }
.status-message.error { color: var(--error); }

/* Dashboard */
.dashboard-main { max-width: 1210px; margin: 0 auto; padding: 45px 30px 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.3vw, 57px); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; margin: 12px 0 9px; }
.page-heading p { color: #728275; font-size: 13px; margin: 0; max-width: 600px; }
.cost-note { background: #e9f3e2; border: 1px solid #d5e8cb; border-radius: 10px; padding: 12px 15px; min-width: 205px; }
.cost-note strong, .cost-note span { display: block; }
.cost-note strong { color: #365b3a; font-size: 12px; }
.cost-note span { color: #69836b; font-size: 10px; margin-top: 3px; }
.onboarding { padding: 28px 30px 30px; margin-bottom: 22px; border-color: #c5dbc0; background: linear-gradient(125deg, #fffefa 55%, #f1f8e8); }
.onboarding h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: -.04em; margin: 8px 0 2px; }
.onboarding>p { color: #748776; font-size: 12px; margin: 0 0 20px; }
.onboarding-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-choice { min-height: 157px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid #d4e2ce; border-radius: 10px; background: #fff; color: var(--ink); padding: 20px 21px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.onboarding-choice:hover { border-color: #91b57e; box-shadow: 0 9px 25px #2d5d3014; transform: translateY(-2px); }
.choice-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #e9f4df; color: #426d41; font-size: 17px; margin-bottom: 11px; }
.onboarding-choice strong { font-size: 15px; letter-spacing: -.02em; }
.onboarding-choice small { color: #7c8d7c; font-size: 11px; line-height: 1.5; margin-top: 3px; }
.choice-action { color: #3f7547; font-size: 11px; font-weight: 800; margin-top: auto; padding-top: 13px; }
.catalog-panel { padding: 23px 27px 25px; margin-bottom: 22px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 19px; }
.catalog-card { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid #e1eade; border-radius: 8px; background: #fbfdf9; padding: 12px; }
.catalog-card.selected { border-color: #b8d8ae; background: #f4faef; }
.catalog-card .provider-icon { width: 31px; height: 31px; border-radius: 7px; font-size: 13px; }
.catalog-card-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.catalog-card-copy strong { font-size: 11px; overflow-wrap: anywhere; }
.catalog-card-copy small { font-size: 9px; line-height: 1.35; color: #879788; }
.catalog-card .button { min-height: 31px; padding: 6px 9px; font-size: 9px; gap: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.summary-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 8px 28px #24432c08; }
.summary-card { min-height: 135px; padding: 19px 22px; display: flex; flex-direction: column; }
.summary-card span { font-size: 9px; letter-spacing: .14em; font-weight: 850; color: #829684; }
.summary-card strong { font-size: 31px; font-weight: 720; letter-spacing: -.06em; line-height: 1.25; margin: 11px 0 0; }
.summary-card small { font-size: 10px; color: #879788; margin-top: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.035em; margin: 6px 0 3px; }
.section-heading p { color: #849285; font-size: 11px; line-height: 1.55; margin: 0; }
.import-panel { padding: 23px 27px 25px; }
.import-panel form { margin-top: 23px; }
.import-panel label { display: block; font-size: 11px; font-weight: 790; color: #354e3a; margin-bottom: 8px; }
.import-controls { display: flex; gap: 9px; }
.import-controls select { flex: 1; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #cbdac7; border-radius: 7px; background: white; color: #1e3626; }
.import-controls select:focus { border-color: #82ad67; box-shadow: 0 0 0 3px #e4f1dc; }
.install-link { display: inline-block; margin-top: 12px; color: #427347; font-size: 11px; font-weight: 790; }
.install-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.provider-section, .connections-section, .repository-section { margin-top: 34px; }
.provider-section>.section-heading, .connections-section>.section-heading, .repository-section>.section-heading { margin-bottom: 15px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.provider-card { padding: 19px 20px; min-width: 0; }
.provider-card-top { display: flex; align-items: flex-start; gap: 10px; }
.provider-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: #e5f1dd; color: #4f7c48; font-size: 16px; font-weight: 850; }
.provider-card-title { flex: 1; min-width: 0; }
.provider-card-title h3 { font-size: 13px; letter-spacing: -.02em; margin: 0 0 2px; overflow-wrap: anywhere; }
.provider-card-title small { display: block; color: #89988a; font-size: 10px; }
.confidence { padding: 5px 7px; border-radius: 4px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.confidence.detected { color: #397346; background: #e7f4e7; }
.confidence.possible { color: #846d31; background: #f7f0db; }
.confidence.selected { color: #4c7046; background: #e9f4e5; }
.capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.capability { border-radius: 4px; padding: 5px 7px; font-size: 9px; font-weight: 750; }
.capability.active { color: #3a7341; background: #eaf4e7; }
.capability.pending { color: #859486; background: #f0f3ed; }
.provider-connect { margin-top: 1px; border: 0; background: none; color: #427347; font-size: 10px; font-weight: 790; padding: 0; }
.provider-connect:hover { text-decoration: underline; text-underline-offset: 2px; }
.provider-remove { display: block; border: 0; background: none; color: #8c9d8d; font-size: 10px; padding: 0; margin-top: 7px; }
.provider-remove:hover { color: #a05c4c; text-decoration: underline; text-underline-offset: 2px; }
.evidence { border-top: 1px solid #e8eee6; padding-top: 10px; }
.evidence summary, .other-signals summary { cursor: pointer; color: #48744a; font-size: 10px; font-weight: 780; }
.evidence ul { list-style: none; padding: 0; margin: 10px 0 0; max-height: 160px; overflow: auto; }
.evidence li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid #eef2eb; }
.evidence li strong { font-size: 9px; color: #778b78; }
.evidence code, .signal-list code { font-size: 10px; color: #2e5234; overflow-wrap: anywhere; }
.connection-form-panel { padding: 23px 27px; margin-bottom: 13px; border-color: #c5dac0; }
.connection-form-panel .section-heading h3, .account-panel h3 { font-size: 19px; letter-spacing: -.03em; margin: 6px 0 2px; }
.close-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbf7; color: #5e785f; font-size: 23px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.field.full { grid-column: 1 / -1; }
.field label, dialog label { display: block; color: #354e3a; font-size: 11px; font-weight: 790; margin-bottom: 7px; }
.field input, .field select, dialog input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cbdac7; border-radius: 7px; background: white; color: #1e3626; }
.field input:focus, .field select:focus, dialog input:focus { border-color: #82ad67; box-shadow: 0 0 0 3px #e4f1dc; }
.field small { display: block; color: #839484; font-size: 10px; line-height: 1.5; margin-top: 6px; }
.optional { color: #9baa9a; font-weight: 500; }
.secret-input { display: flex; border: 1px solid #cbdac7; border-radius: 7px; background: white; }
.secret-input:focus-within { border-color: #82ad67; box-shadow: 0 0 0 3px #e4f1dc; }
.secret-input input { flex: 1; min-width: 0; border: 0; box-shadow: none !important; }
.secret-input button { border: 0; border-left: 1px solid #e6ece3; background: none; color: #54794f; font-size: 10px; font-weight: 750; padding: 0 14px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.form-actions .status-message { margin: 0 0 0 4px; }
.account-panel { padding: 19px 22px; margin-bottom: 13px; }
.account-summary { color: #7b8c7c; font-size: 11px; line-height: 1.6; margin: 12px 0 0; }
.account-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.account-details>div, .key-usage-grid>div { background: #f4f8f0; border: 1px solid #e1eadb; border-radius: 7px; padding: 9px 11px; }
.account-details span, .account-details strong, .key-usage-grid span, .key-usage-grid strong { display: block; }
.account-details span, .key-usage-grid span { font-size: 9px; color: #7a8d78; }
.account-details strong, .key-usage-grid strong { font-size: 14px; color: #2e5036; margin-top: 2px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.connection-card { padding: 20px 21px; min-width: 0; }
.connection-card-top { display: flex; align-items: flex-start; gap: 10px; }
.connection-card-title { flex: 1; min-width: 0; }
.connection-card-title h3 { font-size: 13px; margin: 0 0 2px; overflow-wrap: anywhere; }
.connection-card-title small { font-size: 10px; color: #89988a; }
.connection-status { font-size: 9px; font-weight: 800; border-radius: 4px; padding: 5px 7px; white-space: nowrap; background: #f0f3ec; color: #6e826d; }
.connection-status.verified { color: #397346; background: #e7f4e7; }
.connection-status.failed { color: #a44f39; background: #f9ece7; }
.connection-card>p { color: #819183; font-size: 10px; line-height: 1.6; margin: 16px 0 6px; }
.connection-meta { color: #94a095; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.key-usage { border-top: 1px solid #e8eee6; margin-top: 13px; padding-top: 12px; }
.key-usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 7px; }
.key-usage-grid>div { padding: 7px 9px; }
.key-usage-grid strong { font-size: 12px; white-space: nowrap; }
.key-usage>small { color: #7d8d7d; font-size: 9px; line-height: 1.5; }
.key-usage>small.error { color: var(--error); }
.connection-actions { border-top: 1px solid #e8eee6; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 12px; }
.connection-actions button { border: 0; background: none; color: #48744a; font-size: 10px; font-weight: 770; padding: 0; }
.connection-actions button:hover { text-decoration: underline; text-underline-offset: 2px; }
.connection-actions button.danger { color: #a05c4c; }
dialog { width: min(460px, calc(100vw - 30px)); border: 1px solid var(--line); border-radius: 13px; padding: 28px 30px 30px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px #10281845; }
dialog::backdrop { background: #14251baa; }
.dialog-close { float: right; border: 0; background: none; color: #668167; font-size: 24px; line-height: 1; }
dialog h2 { font-size: 24px; letter-spacing: -.04em; margin: 10px 0 7px; }
dialog p { font-size: 11px; color: #788a7b; line-height: 1.6; margin: 0 0 18px; }
dialog label:not(:first-of-type) { margin-top: 16px; }
dialog .status-message { margin-top: 10px; }
.repository-list { display: grid; gap: 12px; }
.repository-card { padding: 21px 23px; }
.repository-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.repository-link, .repository-card-heading h3 { display: block; font-size: 14px; font-weight: 770; letter-spacing: -.02em; margin: 0; }
.repository-link:hover { color: #528656; text-decoration: underline; text-underline-offset: 3px; }
.repository-card-heading small { display: block; color: #8a998a; font-size: 10px; margin-top: 2px; }
.privacy-badge { color: #668e5d; background: #eef6e6; border: 1px solid #dbeacf; border-radius: 5px; padding: 5px 7px; font-size: 8px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.repository-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.repository-metrics>div { background: #f4f8f0; border: 1px solid #e1eadb; border-radius: 7px; padding: 9px 11px; }
.repository-metrics span, .repository-metrics strong { display: block; }
.repository-metrics span { font-size: 9px; color: #7a8d78; }
.repository-metrics strong { font-size: 14px; color: #2e5036; margin-top: 2px; }
.coverage-note { color: #9c6b34; font-size: 10px; line-height: 1.5; margin: 11px 0 0; }
.analysis-note { margin-top: 13px; padding: 12px 14px; border: 1px solid #dce8d6; border-radius: 8px; background: #f5f9f1; }
.analysis-note strong { display: block; color: #47724a; font-size: 10px; }
.analysis-note p { color: #647b67; font-size: 11px; line-height: 1.55; margin: 4px 0 0; }
.analysis-providers { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.analysis-providers span { border-radius: 4px; background: #e5f0de; color: #52774d; padding: 4px 6px; font-size: 9px; font-weight: 700; }
.other-signals { margin-top: 12px; }
.signal-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.signal-list code { background: #f1f5ef; border: 1px solid #e3ebe0; border-radius: 4px; padding: 4px 6px; }
.repository-actions { border-top: 1px solid #e8eee6; display: flex; align-items: center; gap: 16px; margin-top: 17px; padding-top: 13px; }
.repository-actions .button { min-height: 35px; padding: 7px 12px; font-size: 10px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #cbdcc6; border-radius: 11px; background: #fbfcf9; min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 25px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #edf4e7; color: #6e9a64; border-radius: 10px; font-size: 23px; }
.empty-state strong { font-size: 13px; margin-top: 12px; }
.empty-state p { font-size: 11px; line-height: 1.5; color: #879889; max-width: 380px; margin: 5px 0 0; }
.next-step-note { display: flex; gap: 20px; border-top: 1px solid #dae5d5; padding-top: 18px; margin-top: 33px; }
.next-step-note strong { font-size: 11px; white-space: nowrap; }
.next-step-note p { font-size: 10px; color: #8a9a8c; line-height: 1.55; margin: 0; }
.toast { position: fixed; bottom: 20px; right: 22px; z-index: 30; background: #214732; color: white; border-radius: 8px; box-shadow: 0 16px 34px #193e2640; padding: 12px 16px; font-size: 12px; max-width: min(380px, calc(100vw - 40px)); }

@media (max-width: 900px) {
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-grid { grid-template-columns: 1fr; }
  .sign-in-main { gap: 5vw; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  .sign-in-copy h1 { font-size: 55px; }
}
@media (max-width: 690px) {
  .site-header { min-height: 64px; padding: 0 20px; }
  .sign-in-main { grid-template-columns: 1fr; gap: 30px; padding: 50px 20px 65px; }
  .sign-in-copy h1 { font-size: clamp(47px, 11vw, 65px); }
  .sign-in-copy>p { font-size: 13px; margin-bottom: 18px; }
  .sign-in-points { display: none; }
  .sign-in-card { padding: 28px 25px 0; }
  .card-footer { margin-left: -25px; margin-right: -25px; padding-left: 25px; padding-right: 25px; }
  .dashboard-main { padding: 31px 19px 65px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 44px; }
  .cost-note { min-width: 0; }
  .onboarding { padding: 21px; }
  .onboarding-choices { grid-template-columns: 1fr; }
  .onboarding-choice { min-height: 127px; }
  .catalog-panel { padding: 20px; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 15px; min-height: 119px; }
  .summary-card strong { font-size: 26px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: column; gap: 7px; }
  .import-panel { padding: 20px; }
  .connection-form-panel { padding: 20px; }
  .import-controls { flex-direction: column; }
  .repository-metrics { gap: 5px; }
  .repository-metrics>div { padding: 7px; }
  .repository-metrics span { font-size: 8px; }
  .repository-metrics strong { font-size: 12px; }
  .next-step-note { display: block; }
  .next-step-note p { margin-top: 5px; }
}
@media (max-width: 520px) {
  .site-header { padding: 12px 16px; gap: 10px; }
  .header-divider, .header-left>strong, .signed-in-as, #dashboardShell .free-pill { display: none; }
  .header-left { gap: 9px; }
  .header-right { gap: 8px; }
  .provider-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 11px; }
  .summary-card span { font-size: 8px; }
  .summary-card small { font-size: 9px; line-height: 1.3; }
  .summary-card strong { font-size: 24px; }
  .form-grid, .account-details, .key-usage-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
