:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f5f8;
  color: #142033;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; }

main {
  width: min(980px, calc(100% - 32px));
  margin: 48px auto;
}

header { margin-bottom: 24px; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.02; margin: 8px 0 12px; }
h2, h3 { margin-top: 0; }
.eyebrow { color: #005ea8; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.lede { font-size: 1.12rem; max-width: 760px; }
.section-kicker { color: #005ea8; font-size: .75rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 8px; }

.card, .notice {
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(20 32 51 / 8%);
  margin: 20px 0;
  padding: clamp(20px, 5vw, 32px);
}

.notice { background: #f8fbff; box-shadow: none; }
.split { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.steps { display: grid; gap: 12px; padding-left: 24px; }
.callout { border-left: 5px solid #52789f; border-radius: 8px; margin: 22px 0; padding: 16px 18px; }
.callout p:last-child { margin-bottom: 0; }
.callout.caution { background: #fff7e6; border-color: #b45f06; }
.callout.warning { background: #fff4f2; border-color: #b42318; }
.callout.test-only { background: #f0f6fc; border-color: #005ea8; }
.model-note { font-size: 1.02rem; }
.phase-callout { background: #e8f1fa; border: 1px solid #9db9d5; border-radius: 8px; color: #183b5d; font-weight: 700; padding: 14px 16px; }
.qualification-form { background: #f8fbff; border: 1px solid #c9d8e7; border-radius: 12px; margin: 22px 0; padding: clamp(16px, 4vw, 24px); }
.qualification-form h3, .qualification-form p { margin: 0; }
.qualification-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qualification-fields label { display: block; margin-bottom: 6px; }
.qualification-fields select { background: #fff; border: 1px solid #8293a8; border-radius: 8px; color: inherit; font: inherit; min-height: 44px; padding: 8px 10px; width: 100%; }
.qualification-checkbox { align-items: center; display: flex; font-weight: 500; gap: 9px; min-height: 38px; }
.qualification-checkbox input { accent-color: #005ea8; block-size: 18px; inline-size: 18px; flex: 0 0 18px; }
.qualification-result { margin: 4px 0 0; }
.qualification-result h4 { font-size: 1.12rem; margin: 0; }
.qualification-result dl { display: grid; gap: 12px; margin: 14px 0; }
.qualification-result dt { font-weight: 750; }
.qualification-result dd { line-height: 1.5; margin: 2px 0 0; }
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
.plan-option { border: 1px solid #c9d4e1; border-radius: 12px; padding: 22px; }
.plan-option.featured { background: #f5f9fd; border-color: #6d98bf; }
.plan-option p { color: #334e68; }
.plan-option ul { display: grid; gap: 9px; margin-bottom: 0; padding-left: 22px; }
.plan-heading { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.plan-heading h3 { font-size: 1.3rem; margin-bottom: 8px; }
.plan-price { color: #005ea8; font-weight: 800; }
.current-plan { background: #f8fbff; border: 1px solid #c9d8e7; border-radius: 12px; margin: 22px 0; padding: 20px; }
.current-plan-heading { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.current-plan-heading h3 { margin-bottom: 4px; }
.plan-badge { background: #e5eef7; border: 1px solid #7f9fbd; border-radius: 999px; color: #19324d; font-weight: 800; padding: 7px 12px; white-space: nowrap; }
.plan-badge[data-plan="FREE"], .plan-badge[data-plan="PRO_EXPIRED"] { background: #e9f5ec; border-color: #6a9d76; color: #205c30; }
.plan-badge[data-plan="PRO_TRIALING"], .plan-badge[data-plan="PRO_ACTIVE"], .plan-badge[data-plan="PRO_CANCEL_AT_PERIOD_END"] { background: #e8f1fa; border-color: #52789f; color: #183b5d; }
.plan-usage { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.plan-usage:empty { display: none; }
.plan-usage > div { background: #fff; border: 1px solid #d8e0ea; border-radius: 8px; padding: 12px; }
.plan-usage dt { color: #526579; font-size: .9rem; font-weight: 700; }
.plan-usage dd { font-weight: 800; margin: 4px 0 0; }
.feature-request-list { list-style: none; margin: 0; padding: 0; }
.feature-request-row {
  align-items: start;
  border-top: 1px solid #d8e0ea;
  display: grid;
  gap: 8px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
}
.feature-request-row:last-child { padding-bottom: 0; }
.feature-request-row h4 { margin: 0 0 4px; }
.feature-request-row .feature-request-button { min-height: 44px; padding: 8px 12px; white-space: nowrap; }
.feature-request-button:disabled { background: #eef2f6; color: #3f5062; }
.feature-request-button[data-requested="true"]:disabled { background: #e9f5ec; color: #205c30; }
.feature-request-error { color: #7a271a; grid-column: 1 / -1; margin: 0; }
.feature-request-error:empty { display: none; }
#feature-requests-retry { margin-top: 12px; }
.inventory-options { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
.inventory-option { border: 1px solid #9eb6ce; border-radius: 12px; display: flex; flex-direction: column; padding: 22px; }
.inventory-option h3 { margin-bottom: 8px; }
.inventory-option p { color: #334e68; }
.inventory-option .muted { margin-top: 12px; }
.inventory-option.unavailable { background: #f4f6f8; border-color: #c5ced8; }
.option-state { background: #edf5fc; border-radius: 8px; font-weight: 750; padding: 11px 12px; }
.inventory-option.unavailable .option-state { background: #e8edf2; color: #3f5062; }
.aws-discovery-scope { display: grid; gap: 6px; margin-bottom: 12px; }
.aws-discovery-scope .muted { margin-top: 0; }
#aws-connection-start { margin-top: 10px; }
.aws-connection-panel { background: #f8fbff; border: 1px solid #9eb6ce; border-radius: 12px; margin: 20px 0; padding: clamp(16px, 4vw, 24px); }
.aws-connection-panel p { max-width: 70ch; }
.aws-connection-panel form { margin-top: 18px; }
.aws-connection-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aws-connection-fields label { display: block; margin-bottom: 6px; }
.aws-connection-panel input, .aws-connection-panel select, .aws-discovery-scope select {
  background: #fff; border: 1px solid #8293a8; border-radius: 8px; color: inherit;
  font: inherit; min-height: 44px; padding: 8px 10px; width: 100%;
}
.aws-connection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; }
#aws-connection-unlink { margin-top: 16px; }
#aws-connection-unlink p { margin-bottom: 10px; }
.button-link { align-self: flex-start; background: #005ea8; border-radius: 8px; color: #fff; display: inline-block; padding: 12px 18px; text-decoration: none; }
.button-link:hover { background: #00477f; }
.discovery-results { border-top: 1px solid #d8e0ea; margin-top: 28px; padding-top: 24px; }
.discovery-results h4 { margin: 24px 0 10px; }
.discovery-summary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 18px 0 8px; }
.discovery-summary > div { background: #f8fbff; border: 1px solid #d8e0ea; border-radius: 8px; padding: 12px; }
.discovery-summary dt { color: #526579; font-size: .9rem; font-weight: 700; }
.discovery-summary dd { font-weight: 800; margin: 4px 0 0; overflow-wrap: anywhere; }
.discovery-table { min-width: 680px; }
.discovery-table.assets { min-width: 1200px; }
.aws-provider-guidance { border-top: 1px solid #d8e0ea; margin-top: 10px; padding-top: 10px; }
.aws-provider-guidance p { margin: 4px 0 8px; }
.aws-provider-guidance a { display: block; margin-top: 4px; }
.managed-service-guidance { margin-bottom: 10px; }
.managed-service-guidance p { margin: 0 0 4px; }
.managed-service-guidance a { display: block; margin-top: 4px; }
.workload-cve-report { border-top: 1px solid #d8e0ea; margin-top: 28px; padding-top: 24px; }
.workload-cve-report h3 { margin-bottom: 6px; }
.workload-cve-report h4 { margin: 22px 0 8px; }
.workload-cve-report h4 + .muted { margin-bottom: 10px; }
#workload-cve-deadline-note { margin-bottom: 10px; }
.workload-cve-table { min-width: 680px; }
.workload-cve-table td { overflow-wrap: anywhere; }
#workload-cve-findings td:first-child { white-space: nowrap; }
.workload-severity { font-weight: 750; white-space: nowrap; }
.workload-severity.critical { color: #8b1538; }
.workload-severity.high { color: #9c3127; }
.workload-severity.medium { color: #7b4b08; }
.workload-severity.low, .workload-severity.unknown { color: #3f5062; }
.workload-severity-source { display: block; font-size: .8rem; margin-top: 3px; }
.inclusion-table { min-width: 560px; }
.inclusion-table td { overflow-wrap: anywhere; }
.inclusion-action button { font-size: .88rem; padding: 8px 10px; white-space: nowrap; }
.inclusion-action [role="status"] { color: #205c30; font-weight: 700; }
.inclusion-dialog {
  background: #fff;
  border: 1px solid #9eb6ce;
  border-radius: 14px;
  color: inherit;
  max-height: calc(100% - 32px);
  padding: clamp(20px, 5vw, 32px);
  width: min(500px, calc(100% - 32px));
}
.inclusion-dialog::backdrop { background: rgb(20 32 51 / 45%); }
.inclusion-dialog form { margin-top: 20px; }
.inclusion-dialog input {
  border: 1px solid #8293a8;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}
.inclusion-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; }
#csv-inclusion-note { margin-bottom: 12px; }
.schema { margin-top: 28px; }
.table-wrap { border: 1px solid #c9d4e1; border-radius: 8px; overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid #d8e0ea; padding: 12px; text-align: left; vertical-align: top; }
th { background: #eef4fa; color: #19324d; }
tbody tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.csv-sample { margin-top: 22px; }
.csv-sample pre { font-size: .84rem; }
form { display: grid; gap: 12px; margin-top: 28px; }
fieldset { border: 0; display: grid; gap: 12px; margin: 0; padding: 0; }
legend { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; padding: 0; }
label { font-weight: 700; }
input[type="file"] { border: 1px dashed #8293a8; border-radius: 8px; padding: 18px; background: #fbfcfe; }
input[type="file"]:disabled { background: #eef2f6; border-style: solid; color: #526579; }

button {
  appearance: none;
  background: #005ea8;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 12px 18px;
  width: fit-content;
}
button:hover { background: #00477f; }
button:disabled { background: #6f8eae; cursor: not-allowed; opacity: 1; }
button.secondary { background: #e7eef6; color: #19324d; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible,
[tabindex="-1"]:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

.muted { color: #526579; font-size: .9rem; margin: 0; }
.status { border-top: 1px solid #d8e0ea; margin-top: 28px; padding-top: 24px; }
.analysis-results { border-top: 1px solid #d8e0ea; margin-top: 28px; padding-top: 24px; }
.analysis-results pre { max-height: 70vh; overflow: auto; }
.status-message, pre { background: #eef3f8; border-radius: 8px; overflow-wrap: anywhere; padding: 16px; white-space: pre-wrap; }
.status-message.compact { margin: 14px 0 0; padding: 12px; }
.status-message.error { background: #fff0ee; border: 1px solid #d92d20; color: #7a271a; }
.app-status { margin: 20px 0; }
a { color: #005ea8; font-weight: 700; }

@media (max-width: 760px) {
  .inventory-options, .discovery-summary { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main { margin: 24px auto; }
  .split { display: block; }
  .split button { margin-top: 8px; }
  .feature-request-row { grid-template-columns: 1fr; }
  .plan-grid, .plan-usage, .qualification-fields, .inventory-options, .discovery-summary, .aws-connection-fields { grid-template-columns: 1fr; }
  .plan-heading, .current-plan-heading { align-items: start; flex-direction: column; }
}

@media print {
  :root:has(body.printing-workload-cve),
  body.printing-workload-cve { background: #fff; }
  body.printing-workload-cve main { margin: 0; width: auto; }
  body.printing-workload-cve main > :not(#signed-in),
  body.printing-workload-cve #signed-in > :not(#workload-cve-report),
  body.printing-workload-cve #workload-cve-print,
  body.printing-workload-cve dialog { display: none !important; }
  body.printing-workload-cve #signed-in {
    background: #fff; border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 0;
  }
  body.printing-workload-cve .workload-cve-report { border: 0; margin: 0; padding: 0; }
  body.printing-workload-cve .workload-cve-report h3,
  body.printing-workload-cve .workload-cve-report h4 { break-after: avoid-page; }
  body.printing-workload-cve .workload-cve-report .table-wrap { overflow: visible; }
  body.printing-workload-cve .workload-cve-table { font-size: 9pt; min-width: 0; }
  body.printing-workload-cve .workload-severity-source { font-size: 8pt; }
  body.printing-workload-cve .workload-cve-table th,
  body.printing-workload-cve .workload-cve-table td { padding: 6px; }
  body.printing-workload-cve .workload-cve-table thead { display: table-header-group; }
  body.printing-workload-cve .workload-cve-table tr { break-inside: avoid; }
}
