:root {
  color-scheme: light;
  font-family: "Firs Neue", "Segoe UI", Arial, sans-serif;
  color: #101010;
  background: #f7f7f7;
  --brand: #d0043c;
  --brand-dark: #a4002c;
  --brand-soft: #fff0f3;
  --muted: #728197;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(16, 16, 16, 0.035) 50%, transparent calc(50% + 1px)),
    #f7f7f7;
}

button { font: inherit; }
a { color: inherit; }

.topbar {
  height: 86px;
  border-bottom: 1px solid #e1e1e7;
  background: #ffffff;
}

.topbar::before {
  display: block;
  height: 4px;
  background: #d0043c;
  content: "";
}

.topbar-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  height: 82px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: min(270px, 48vw);
  height: auto;
}

.product-label {
  color: #4a5464;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 32px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 290px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px 48px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(208, 4, 60, 0.98), rgba(164, 0, 44, 0.96)),
    #d0043c;
}

.hero::after {
  position: absolute;
  top: -170px;
  right: 125px;
  width: 2px;
  height: 650px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  transform: rotate(31deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow { color: rgba(255, 255, 255, 0.75); }

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.5;
}

.hero-number {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.16);
  font-size: 132px;
  font-weight: 500;
  line-height: 0.7;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 54px 0 24px;
  border-bottom: 1px solid #c5c5d0;
}

.section-kicker { color: #d0043c; }

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-heading > span {
  padding-bottom: 5px;
  color: #728197;
  font-size: 14px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenario-card {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 0;
  border-right: 1px solid #e1e1e7;
  border-bottom: 1px solid #e1e1e7;
  color: inherit;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
  text-decoration: none;
}

.scenario-card:nth-child(even) { border-right: 0; }

.scenario-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d0043c;
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.scenario-card:hover,
.scenario-card:focus-visible {
  color: #ffffff;
  background: #101010;
  outline: none;
}

.scenario-card:hover::before,
.scenario-card:focus-visible::before { opacity: 1; }

.scenario-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  color: #ffffff;
  background: #d0043c;
  font-size: 14px;
  font-weight: 500;
}

.scenario-content {
  display: grid;
  flex: 1;
  gap: 9px;
}

.scenario-content strong { font-size: 21px; font-weight: 500; }
.scenario-content small { color: #728197; font-size: 14px; line-height: 1.45; transition: color 160ms ease; }
.scenario-card:hover small, .scenario-card:focus-visible small { color: #b3b9bd; }
.arrow { color: #d0043c; font-size: 27px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  color: #728197;
  font-size: 12px;
}

.narrow-shell { width: min(980px, calc(100% - 48px)); }
.result-shell { width: min(1080px, calc(100% - 48px)); }
.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: #4a5464;
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { color: #d0043c; }
.page-intro { padding: 20px 0 46px; border-bottom: 1px solid #c5c5d0; }
.page-intro.compact { padding-bottom: 38px; }
.page-intro h1 { max-width: none; color: #101010; font-size: clamp(45px, 7vw, 72px); }
.page-intro > p:last-child { max-width: 720px; margin: 20px 0 0; color: #4a5464; font-size: 18px; line-height: 1.55; }
.alert { margin: 24px 0; padding: 16px 20px; border-left: 4px solid #d0043c; background: #fff0f3; }
.upload-form { background: #fff; }
.form-section { display: grid; grid-template-columns: 90px 1fr; padding: 38px 0; border-bottom: 1px solid #e1e1e7; }
.form-section-number { padding: 4px 0 0 22px; color: #d0043c; font-size: 14px; font-weight: 600; }
.form-section-body { padding-right: 28px; }
.form-section h2, .panel h2, .summary-panel h2 { font-size: 28px; }
.muted { margin: 8px 0 24px; color: #728197; line-height: 1.5; }
.scan-support { margin: 14px 0 0; padding-left: 18px; color: #4a5464; font-size: 12px; line-height: 1.5; position: relative; }
.scan-support::before { position: absolute; left: 0; color: #14804a; content: "✓"; font-weight: 700; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.attachment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.select-field { display: grid; gap: 9px; padding: 18px; border: 1px solid #d8dbe0; background: #f7f7f7; }
.select-field strong { font-size: 15px; }
.select-field em { color: #d0043c; font-size: 10px; font-style: normal; text-transform: uppercase; }
.select-field select,
.select-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #aeb4bd;
  background: #fff;
  color: #242a33;
  font: inherit;
}
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.check-field { display: flex; align-items: flex-start; gap: 11px; padding: 16px 18px; border: 1px solid #d8dbe0; background: #fff; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: #d0043c; }
.check-field span { color: #596575; font-size: 13px; line-height: 1.45; }
.check-field strong { color: #252b34; }
.scope-note { margin: 14px 0 0; padding: 13px 15px; border-left: 3px solid #d0043c; background: #fff4f7; color: #4f5967; font-size: 13px; line-height: 1.5; }
.media-page-intro { padding-bottom: 32px; }
.media-page-intro h1 { max-width: 860px; font-size: clamp(42px, 6vw, 64px); }
.media-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
  border: 1px solid #dfe1e5;
  background: #fff;
}
.media-flow-step {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  padding: 18px 20px;
  border-right: 1px solid #dfe1e5;
  color: #343a44;
  text-decoration: none;
}
.media-flow-step:last-child { border-right: 0; }
.media-flow-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid #c8cdd4;
  color: #728197;
  font-size: 12px;
  font-weight: 700;
}
.media-flow-step strong { align-self: end; font-size: 14px; }
.media-flow-step small { margin-top: 3px; overflow: hidden; color: #728197; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.media-flow-step:hover { background: #fff6f8; }
.media-flow-step.is-current { color: #fff; background: #101010; }
.media-flow-step.is-current > span { border-color: #d0043c; color: #fff; background: #d0043c; }
.media-flow-step.is-current small { color: #b9c0ca; }
.media-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.compact-field { display: grid; gap: 9px; }
.compact-field > span { color: #343a44; font-size: 14px; font-weight: 600; line-height: 1.35; }
.compact-field em { color: #d0043c; font-size: 9px; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.compact-field small { color: #728197; font-size: 11px; font-weight: 400; }
.compact-field select,
.compact-field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #aeb4bd;
  color: #242a33;
  background: #fff;
  font: inherit;
}
.compact-field select:focus,
.compact-field input:focus { border-color: #d0043c; outline: 2px solid #fff0f3; }
.document-data-note {
  display: grid;
  gap: 5px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 3px solid #14804a;
  background: #f1f8f4;
}
.document-data-note strong { color: #253b2e; font-size: 14px; }
.document-data-note span { color: #597064; font-size: 13px; line-height: 1.5; }
.primary-file-field { margin-top: 6px; border-style: solid; border-color: #c8cdd4; background: #fff; }
.package-files-grid { margin-top: 12px; }
.media-extra-details { border-top: 1px solid #e1e1e7; background: #fff; }
.media-extra-details summary {
  padding: 21px 28px;
  color: #343a44;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style-position: inside;
}
.media-extra-details summary span { margin-left: 8px; color: #728197; font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.media-extra-details[open] summary { border-bottom: 1px solid #e1e1e7; }
.media-extra-body { padding: 24px 28px 30px 90px; }
.media-extra-body > p { margin: 0 0 16px; color: #728197; font-size: 13px; line-height: 1.5; }
.connected-standard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-top: 1px solid #e1e1e7;
  background: #f1f2f4;
}
.connected-standard > div { display: grid; gap: 5px; }
.connected-standard strong { color: #343a44; font-size: 14px; }
.connected-standard span { color: #728197; font-size: 12px; line-height: 1.4; }
.connected-standard a { flex: 0 0 auto; color: #d0043c; font-size: 13px; font-weight: 600; text-decoration: none; }
.connected-standard a:hover { color: #a4002c; }
.standard-buttons { display: grid; gap: 10px; }
.standard-open-button {
  display: grid;
  min-width: 240px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid #d8dbe0;
  color: #343a44;
  background: #fff;
  text-decoration: none;
}
.standard-open-button > span {
  padding: 8px 11px;
  color: #fff;
  background: #d0043c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.standard-open-button > strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.standard-open-button:hover { border-color: #d0043c; background: #fff6f8; }
.connected-standard .standard-buttons { flex: 0 1 360px; }
.connected-standard .standard-open-button { min-width: 0; }
.upload-group-title { margin: 28px 0 12px; font-size: 15px; font-weight: 600; }
.upload-group-title:first-of-type { margin-top: 18px; }
.file-field { display: grid; gap: 8px; padding: 22px; border: 1px dashed #9aa2af; background: #f7f7f7; cursor: pointer; }
.file-field:hover { border-color: #d0043c; background: #fff6f8; }
.file-field strong { font-size: 17px; }
.file-field em { color: #d0043c; font-size: 11px; font-style: normal; font-weight: 600; text-transform: uppercase; }
.file-field span { color: #728197; font-size: 13px; }
.file-field input { width: 100%; margin-top: 9px; color: #4a5464; }
.file-field.wide { max-width: 100%; }
.standard-list { display: grid; gap: 10px; }
.standard-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e1e1e7; text-decoration: none; }
.standard-list a:hover { border-color: #d0043c; }
.standard-list span { padding: 5px 7px; color: #fff; background: #d0043c; font-size: 10px; }
.form-actions, .analyze-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: #101010; }
.form-actions > span, .analyze-action p { margin: 0; color: #aeb4bf; font-size: 13px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; color: #fff; background: #d0043c; font-weight: 600; text-decoration: none; cursor: pointer; }
.primary-button:hover { background: #ad0030; }
.primary-button.large { min-height: 58px; padding: 0 32px; font-size: 16px; }
.inline-button { margin-top: 30px; }
.readiness-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin: 28px 0 18px; }
.panel { padding: 28px; border: 1px solid #e1e1e7; background: #fff; }
.dark-panel { color: #fff; background: #101010; }
.panel-kicker { margin: 0 0 8px; color: #d0043c; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.document-list, .check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.document-list li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #e1e1e7; }
.document-list span { color: #728197; font-size: 13px; }
.document-list strong { overflow-wrap: anywhere; font-size: 14px; }
.check-list li { padding: 8px 0 8px 23px; color: #d7d9de; position: relative; }
.check-list li::before { position: absolute; left: 0; color: #d0043c; content: "✓"; }
.standards-inline { display: grid; gap: 12px; padding: 18px 22px; color: #4a5464; background: #efeff2; font-size: 13px; line-height: 1.5; }
.standards-inline > strong { color: #343a44; }
.analyze-action { margin-top: 18px; }
.analysis-status { display: grid; gap: 7px; min-width: 0; }
.analysis-status p { color: #d7d9de; font-size: 14px; font-weight: 600; }
.analysis-status small { display: none; color: #aeb4bf; font-size: 12px; }
.analysis-progress { display: none; width: min(420px, 100%); height: 3px; overflow: hidden; background: #343434; }
.analysis-progress span { display: block; width: 38%; height: 100%; background: #d0043c; animation: analysis-progress 1.4s ease-in-out infinite; }
.button-loading { display: none; align-items: center; gap: 10px; }
.button-loading i { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: analysis-spin .8s linear infinite; }
.analyze-action.is-loading .analysis-progress,
.analyze-action.is-loading .analysis-status small,
.analyze-action.is-loading .button-loading { display: flex; }
.analyze-action.is-loading .button-default { display: none; }
.analyze-action.is-loading .analyze-button { min-width: 250px; cursor: wait; opacity: 1; }
.analyze-action.is-loading { cursor: wait; }

@keyframes analysis-spin { to { transform: rotate(360deg); } }
@keyframes analysis-progress {
  0% { transform: translateX(-105%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(270%); }
}
.verdict { display: flex; min-height: 290px; align-items: flex-end; justify-content: space-between; padding: 42px 46px; color: #fff; background: #d0043c; }
.verdict-compliant { background: #14804a; }
.verdict-compliant_with_comments { background: #4a5464; }
.verdict-analysis_failed { background: #4a5464; }
.verdict h1 { max-width: 850px; font-size: clamp(44px, 7vw, 72px); }
.verdict p:last-child { max-width: 760px; margin: 20px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.5; }
.verdict-mark { color: rgba(255,255,255,.25); font-size: 130px; line-height: .8; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(110deg, var(--brand), var(--brand-dark)); }
.metrics div { display: grid; gap: 4px; padding: 24px; border-right: 1px solid rgba(255,255,255,.22); }
.metrics div:last-child { border: 0; }
.metrics strong { color: #fff; font-size: 34px; }
.metrics span { color: rgba(255,255,255,.78); font-size: 12px; }
.decision-panel { margin-top: 22px; padding: 32px; background: #fff; }
.decision-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.decision-panel-head h2 { margin-top: 7px; font-size: 32px; }
.decision-badge { display: inline-flex; padding: 8px 11px; color: #fff; background: #d0043c; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.decision-approve { background: #14804a; }
.decision-approve_with_comments { background: #b87300; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; background: #e1e1e7; border: 1px solid #e1e1e7; }
.decision-grid div { display: grid; gap: 8px; padding: 20px; background: #f7f7f9; }
.decision-grid small, .expense-evidence-grid span { color: #728197; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.decision-grid strong { color: #343a44; font-size: 14px; line-height: 1.45; }
.dealer-actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e1e1e7; }
.dealer-actions h3 { font-size: 19px; }
.dealer-actions ol { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 22px; color: #343a44; line-height: 1.5; }
.expense-cards { display: grid; gap: 18px; padding: 18px 0 28px; }
.expense-card { padding: 28px 30px; border-left: 4px solid #d0043c; background: #fff; }
.expense-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.expense-card-head > div > span { color: #728197; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.expense-card-head h3 { margin-top: 6px; font-size: 24px; }
.comparison-table-wrap { overflow-x: auto; margin-top: 22px; }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 12px 14px; border: 1px solid #e1e1e7; color: #343a44; font-size: 13px; line-height: 1.45; text-align: left; vertical-align: top; }
.comparison-table thead th { color: #fff; background: var(--brand); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.comparison-table tbody th { width: 150px; color: #728197; background: #f7f7f9; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.comparison-table td small { display: block; margin-top: 4px; color: #728197; }
.expense-alert { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #d99916; background: #fff8e8; color: #5f5135; font-size: 13px; line-height: 1.5; }
.expense-conclusion { margin-top: 16px; padding: 16px; background: #f7f7f9; color: #343a44; }
.expense-conclusion p { line-height: 1.55; }
.expense-conclusion small { display: block; margin-top: 8px; color: #728197; line-height: 1.45; }
.expense-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: #e1e1e7; border: 1px solid #e1e1e7; }
.expense-evidence-grid div { display: grid; gap: 7px; padding: 14px 16px; background: #fff; }
.expense-evidence-grid strong { color: #343a44; font-size: 12px; line-height: 1.45; }
.expense-upload-field { margin-top: 12px; }
.expense-table-wrap { overflow-x: auto; background: #fff; }
.expense-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.expense-table th { padding: 13px 15px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.expense-table td { padding: 16px 15px; border-bottom: 1px solid #e1e1e7; color: #343a44; font-size: 13px; line-height: 1.45; vertical-align: top; }
.expense-table tbody tr:last-child td { border-bottom: 0; }
.expense-table td:nth-child(3), .expense-table td:nth-child(4) { white-space: nowrap; }
.expense-table td small { display: block; margin-top: 7px; color: #728197; line-height: 1.4; }
.expense-status { display: inline-flex; padding: 5px 8px; color: #fff; background: #d0043c; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.expense-status-compliant { background: #14804a; }
.expense-status-clarification { background: #b87300; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 48px 0 22px; border-bottom: 1px solid #c5c5d0; }
.result-heading > span { color: #728197; font-size: 13px; }
.findings { display: grid; gap: 14px; padding: 18px 0 28px; }
.finding { padding: 26px 30px; border-left: 4px solid #d0043c; background: #fff; }
.finding-compliant { border-color: #14804a; }
.finding-clarification { border-color: #d99916; }
.finding-top { display: flex; justify-content: space-between; gap: 16px; }
.status-label { color: #d0043c; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.finding-compliant .status-label { color: #14804a; }
.severity { color: #728197; font-size: 11px; text-transform: uppercase; }
.finding h3 { margin: 9px 0 20px; font-size: 23px; font-weight: 500; }
.finding dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0; }
.finding dl div { border-top: 1px solid #e1e1e7; padding-top: 12px; }
.finding dt { margin-bottom: 6px; color: #728197; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.finding dd { margin: 0; color: #343a44; font-size: 14px; line-height: 1.5; }
.finding dd b { color: #d0043c; }
.empty-result, .summary-panel { padding: 28px; background: #fff; }
.summary-panel { margin-bottom: 18px; }
.summary-panel ul { margin: 16px 0 0; padding-left: 20px; line-height: 1.7; }
.limitations { padding: 18px 22px; border-left: 3px solid #d99916; background: #fff8e8; color: #5f5135; font-size: 13px; line-height: 1.5; }
.technical-error-panel { margin-top: 22px; padding: 30px; border-left: 4px solid #d99916; background: #fff; }
.technical-error-panel h2 { margin: 8px 0 12px; font-size: 28px; }
.technical-error-panel p { max-width: 780px; color: #4a5464; line-height: 1.6; }
.technical-error-panel small { display: block; margin-top: 16px; color: #728197; line-height: 1.5; }
.retry-analysis-form { margin: 0; }
.retry-analysis-form .button-loading { align-items: center; gap: 10px; }
.retry-analysis-form.is-loading .button-loading { display: flex; }
.retry-analysis-form.is-loading .button-default { display: none; }
.retry-analysis-form.is-loading button { cursor: wait; }
.bottom-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 24px 0; }
.secondary-button { color: #101010; background: #efeff2; }

@media (max-width: 760px) {
  .narrow-shell, .result-shell { width: min(100% - 24px, 980px); }
  .form-section { grid-template-columns: 52px 1fr; }
  .form-section-number { padding-left: 12px; }
  .form-section-body { padding-right: 14px; }
  .upload-grid, .attachment-grid, .metadata-grid, .option-grid, .media-basics-grid, .readiness-grid, .finding dl { grid-template-columns: 1fr; }
  .media-flow { grid-template-columns: 1fr; }
  .media-flow-step, .media-flow-step:last-child { border-right: 0; border-bottom: 1px solid #dfe1e5; }
  .media-flow-step:last-child { border-bottom: 0; }
  .media-extra-body { padding: 20px 14px 26px 52px; }
  .connected-standard { align-items: flex-start; flex-direction: column; }
  .connected-standard .standard-buttons { width: 100%; flex-basis: auto; }
  .standard-open-button { min-width: 0; grid-template-columns: 1fr; }
  .form-actions, .analyze-action { align-items: stretch; flex-direction: column; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .decision-panel-head, .expense-card-head { align-items: stretch; flex-direction: column; }
  .decision-grid, .expense-evidence-grid { grid-template-columns: 1fr; }
  .metrics div:nth-child(2) { border-right: 0; }
  .verdict { min-height: 260px; padding: 30px 24px; }
  .verdict-mark { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 76px; }
  .topbar-inner { width: min(100% - 28px, 1180px); height: 72px; }
  .product-label { display: none; }
  .brand-logo { width: min(250px, 72vw); }
  .shell { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .hero { min-height: 310px; padding: 30px 24px; }
  .hero-number { display: none; }
  .subtitle { font-size: 16px; }
  .section-heading { padding-top: 38px; }
  .section-heading > span { display: none; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card, .scenario-card:nth-child(even) {
    grid-column: auto;
    border-right: 0;
  }
  .scenario-card { min-height: 132px; padding: 22px 20px; }
  footer { flex-direction: column; }
}

.report-shell { max-width: 1180px; }
.report-title { margin: 42px 0 24px; }
.report-title h1 { margin: 5px 0 4px; font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.report-title > p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.report-block { margin: 0 0 18px; padding: 28px 32px; background: #fff; border: 1px solid #e3e4e8; box-shadow: 0 8px 24px rgba(16,16,16,.035); }
.report-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.report-block-head > span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 4px 4px 0 var(--brand-soft); }
.report-block-head h2 { margin: 0; font-size: 24px; }
.passport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #e1e2e6; }
.passport-grid div { padding: 14px 16px; border-right: 1px solid #e1e2e6; border-bottom: 1px solid #e1e2e6; }
.passport-grid div:nth-child(2n) { border-right: 0; }
.passport-grid dt { color: var(--brand); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.passport-grid dd { margin: 7px 0 0; font-weight: 700; }
.report-decision { border-top: 5px solid var(--brand); }
.decision-summary-line { display: grid; grid-template-columns: 2fr 1fr; border: 1px solid #dedfe3; }
.decision-summary-line > div { padding: 18px; border-right: 1px solid #dedfe3; }
.decision-summary-line > div:last-child { border-right: 0; }
.decision-summary-line small { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.decision-summary-line strong { font-size: 23px; line-height: 1.2; }
.decision-explanation { margin: 16px 0 0; font-size: 16px; }
.report-table-wrap { overflow-x: auto; }
.report-expense-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-expense-table th { padding: 12px; background: var(--brand); color: #fff; text-align: left; vertical-align: bottom; border-right: 1px solid rgba(255,255,255,.2); }
.report-expense-table th:last-child { border-right: 0; }
.report-expense-table th small { color: rgba(255,255,255,.76); }
.report-expense-table td { padding: 13px 12px; border: 1px solid #dedfe3; vertical-align: top; }
.report-expense-table td:first-child { width: 30%; }
.report-expense-table td:nth-child(2), .report-expense-table td:nth-child(3) { width: 17%; white-space: nowrap; }
.report-expense-table td:last-child { width: 36%; line-height: 1.4; }
.report-expense-table td > small { display: block; margin-top: 5px; color: var(--muted); }
.report-expense-table tr.row-attention td { background: #fff7e7; }
.report-expense-table tr.row-neutral td { background: #f3f5f7; color: #59616d; }
.report-expense-table details { margin-top: 8px; }
.report-expense-table summary, .report-sources summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.report-expense-table details p { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
.report-fact { margin: 0; padding: 18px; background: #f2f3f5; font-size: 16px; line-height: 1.5; }
.standard-checks { display: grid; gap: 10px; }
.standard-checks article { padding: 18px; border: 1px solid #dedfe3; border-left: 4px solid var(--brand); background: linear-gradient(90deg, var(--brand-soft), #fff 42px); }
.standard-checks h3 { margin: 0 0 14px; font-size: 17px; }
.standard-checks dl { margin: 0; }
.standard-checks dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid #ececef; }
.standard-checks dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.standard-checks dd { margin: 0; line-height: 1.4; }
.report-actions { border-left: 5px solid var(--brand); }
.report-actions ol { margin: 0; padding-left: 24px; }
.report-actions li { padding: 8px 0 8px 8px; line-height: 1.45; }
.report-actions li::marker { color: var(--brand); font-weight: 800; }
.report-sources { color: #545d6b; font-size: 13px; }
.report-sources details { margin-top: 12px; }

@media (max-width: 720px) {
  .report-block { padding: 20px 16px; }
  .passport-grid, .decision-summary-line { grid-template-columns: 1fr; }
  .passport-grid div, .decision-summary-line > div { border-right: 0; }
  .standard-checks dl div { grid-template-columns: 1fr; gap: 4px; }
}

.account-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 13px; }
.account-nav a { color: var(--brand); font-weight: 700; text-decoration: none; }
.account-nav > span { padding-left: 14px; border-left: 1px solid #dfe1e5; color: #4a5464; }
.account-nav form { margin: 0; }
.account-nav button { padding: 0; border: 0; color: #4a5464; background: transparent; cursor: pointer; }
.topbar-inner .product-label + .account-nav { margin-left: 24px; }

.login-page { background: linear-gradient(135deg, #f7f7f7 55%, var(--brand-soft)); }
.login-shell { display: grid; min-height: calc(100vh - 86px); place-items: center; padding: 36px 20px; }
.login-panel { width: min(100%, 480px); padding: 44px; border-top: 5px solid var(--brand); background: #fff; box-shadow: 0 24px 70px rgba(16,16,16,.1); }
.login-panel h1 { margin: 8px 0 12px; font-size: 38px; }
.login-panel > p:not(.eyebrow) { color: #59616d; line-height: 1.55; }
.login-form { display: grid; gap: 18px; margin-top: 28px; }
.login-form label, .checks-filters label { display: grid; gap: 7px; color: #4a5464; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.login-form input, .checks-filters input, .checks-filters select { width: 100%; padding: 13px 14px; border: 1px solid #ced1d7; border-radius: 0; background: #fff; color: #101010; font: inherit; text-transform: none; }
.login-form input:focus, .checks-filters input:focus, .checks-filters select:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.form-error { margin-top: 18px; padding: 13px 15px; border-left: 3px solid var(--brand); background: var(--brand-soft); color: #7e0022; }

.checks-shell { padding-top: 34px; }
.checks-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.checks-heading h1 { margin: 4px 0 8px; font-size: clamp(34px, 5vw, 54px); }
.checks-heading p:last-child { margin: 0; color: var(--muted); }
.checks-filters { display: grid; grid-template-columns: 2fr 1.4fr 1.2fr auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 18px; border: 1px solid #e1e2e6; background: #fff; }
.checks-list { display: grid; gap: 12px; }
.check-row { display: grid; grid-template-columns: minmax(260px, 1.5fr) minmax(320px, 1fr) auto; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid #e1e2e6; border-left: 4px solid var(--brand); background: #fff; }
.check-row h2 { margin: 10px 0 5px; font-size: 20px; }
.check-row-main > p { margin: 0; overflow: hidden; color: #59616d; text-overflow: ellipsis; white-space: nowrap; }
.check-row-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.status-pill { padding: 5px 8px; background: #eff1f4; color: #454d59; font-weight: 800; text-transform: uppercase; }
.status-compliant { background: #e8f6ed; color: #22683b; }
.status-compliant_with_comments, .status-not_compliant, .status-analysis_failed { background: #fff1db; color: #805600; }
.check-dates { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.check-dates dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.check-dates dd { margin: 3px 0 0; font-size: 12px; }
.check-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.check-actions .secondary-button { padding: 10px 13px; text-decoration: none; }
.check-actions form { margin: 0; }
.text-danger { padding: 8px 4px; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 12px; }
.checks-empty { padding: 60px 28px; background: #fff; text-align: center; }
.checks-empty h2 { margin: 0 0 8px; }
.checks-empty p { margin-bottom: 28px; color: var(--muted); }
.retention-note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: #fff; color: #59616d; font-size: 13px; }
.retention-note strong { color: #101010; }
.disabled-note { align-self: center; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .product-label { display: none; }
  .checks-filters, .check-row { grid-template-columns: 1fr; }
  .check-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .brand-logo { width: min(190px, 48vw); }
  .account-nav > span { display: none; }
  .checks-heading { align-items: stretch; flex-direction: column; }
  .checks-filters { grid-template-columns: 1fr; }
  .check-dates { grid-template-columns: 1fr; }
  .check-actions { flex-wrap: wrap; }
  .login-panel { padding: 30px 22px; }
}
