:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  color: #1e2229;
  background: #eeeff1;
  font-synthesis: none;
  --ink: #1e2229;
  --muted: #515964;
  --line: #dfe2e7;
  --brand: #262d39;
  --paper: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid #8196bd;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }

.sidebar {
  background: #f9fafb;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(28px, calc((100% - 1120px) / 2));
  min-height: 68px;
}
.brand { display: inline-flex; gap: 11px; align-items: center; padding-inline: 8px; color: inherit; text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.brand-mark {
  flex: 0 0 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  --octagon: polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  clip-path: var(--octagon);
  background: #fff5f2;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 2px; clip-path: var(--octagon);
  background: linear-gradient(150deg, #ff5e60, #cb253e);
}
.brand-mark i { position: relative; color: #fff; font-size: 9px; font-style: normal; font-weight: 810; letter-spacing: .025em; }
.brand strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.navigation { display: flex; align-items: center; gap: 6px; }
.navigation .services-nav { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; padding: 10px 14px; border-radius: 9px; }
.navigation .services-nav:hover { background: #e8ebf0; }
.navigation [data-page="result"]:disabled { display: none; }
.navigation button {
  display: flex; align-items: center; gap: 8px; text-align: left; white-space: nowrap;
  padding: 11px 14px; min-height: 45px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 590;
}
.navigation button:hover:not(:disabled) { background: #e9ebee; color: var(--ink); }
.navigation button[aria-current] { background: #e6e9ed; border-color: #dce1e6; color: #2c3749; }
.navigation button[aria-current] .icon { color: #41506a; }
.navigation button:disabled { color: #6f6b7c; opacity: .67; }

.topbar {
  height: 69px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between;
  background: #ffffffdc; border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13px; color: #393b53; font-weight: 600; }
.workspace { max-width: 1196px; margin-inline: auto; padding: 44px 38px 60px; }
.topbar:has(#replace-file[hidden]) { display: none; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(32px, 5.2vw, 69px); line-height: 1.02; letter-spacing: -.066em; font-weight: 720; }
.page-heading p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 9px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 355px); gap: 20px; align-items: start; }
.stage, .controls { min-width: 0; }
.controls { display: grid; gap: 17px; }

@media (min-width: 641px) {
  .columns:has(#empty-state:not([hidden])) { align-items: stretch; }
  .columns:has(#empty-state:not([hidden])) .stage,
  .columns #empty-state:not([hidden]) { display: grid; }
  .columns:has(#empty-state:not([hidden])) .controls { grid-template-rows: minmax(min-content, 1fr); }
}

#empty-state { container-type: inline-size; }
.dropzone {
  min-height: 326px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px;
  border-radius: 22px; padding: clamp(25px, 6cqi, 42px);
  color: #fff; background: linear-gradient(126deg, #272d36, #424d5c);
  border: 1px solid #404a57;
  box-shadow: 0 10px 26px #242b3926;
}
.dropzone::before { content: ""; position: absolute; z-index: -1; inset: 10px; border: 1px dashed #778391; border-radius: 15px; pointer-events: none; }
.dropzone.dragging { box-shadow: 0 0 0 4px #9eafc7; }
.dropzone.dragging::before { border-color: #fff; }
.drop-content h2 { font-size: clamp(21px, 4.6cqi, 32px); letter-spacing: -.035em; font-weight: 710; line-height: 1.15; margin-bottom: 17px; }
.drop-content small { display: block; font-size: 12px; margin-top: 10px; color: #e0e5ed; }
.drop-content { min-width: 0; max-width: 100%; }
.selected-filename { margin: -7px 0 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbe2eb; font-size: 14px; }
.upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.dropzone .action-primary { min-height: 46px; background: #fcfdff; color: #222a38; }
.dropzone .action-primary:hover:not(:disabled) { background: #e5ebf4; }
.file-selected #choose-file { background: transparent; color: #f0f4fb; padding-inline: 5px; text-decoration: underline; text-underline-offset: 3px; transition: none; }
.file-selected #choose-file:hover:not(:disabled) { background: #ffffff19; box-shadow: none; }
.file-selected #choose-file .icon { display: none; }
.upload-document {
  width: clamp(74px, 27cqi, 156px); aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #8793a2; background: #667381; border-radius: 22%;
}
.upload-document span {
  width: 48%; aspect-ratio: 4 / 5; position: relative; border-radius: 8%;
  background: #edf1f6; clip-path: polygon(0 0, 68% 0, 100% 25%, 100% 100%, 0 100%);
}
.upload-document span::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 32%; height: 25%; background: #c1c9d5;
}
.upload-document span::after {
  content: ""; position: absolute; top: 43%; left: 21%; width: 58%; height: 38%;
  background: repeating-linear-gradient(#6d7a8d 0 13%, transparent 13% 40%);
}
@container (max-width: 420px) {
  .dropzone { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; gap: 16px; }
  .upload-document { grid-row: 1; width: 71px; }
  .drop-content h2 { margin-bottom: 13px; }
  .upload-actions { justify-content: center; }
}

.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 14px;
  min-height: 40px; font-size: 13px; font-weight: 650; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.action:disabled { opacity: .55; }
.action-primary { background: var(--brand); color: #fff; }
.action-primary:hover:not(:disabled) { background: #3c495d; box-shadow: 0 5px 12px #26324426; }
.action-light { background: #fff; border-color: #dddfee; color: #353853; }
.action-light:hover:not(:disabled) { border-color: #ab9ce3; background: #faf8ff; }
.action span { font-size: 15px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.square-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; color: #43516a; background: #edf0f4; border-radius: 11px; }
.service-options { scroll-margin-top: 18px; }
.service-options .panel-header h2 { font-size: 19px; }
.service-plans { display: grid; gap: 8px; padding: 0 15px 12px; }
.service-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #f9fafb; color: var(--ink); }
.service-plan:hover { background: #eef1f5; }
.service-plan[aria-pressed="true"] { border-color: #687787; background: #eaf0f5; box-shadow: inset 3px 0 #43526a; }
.service-plan strong { display: block; font-size: 14px; }
.service-plan small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.42; }
.plan-price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-free { padding: 4px 6px; border-radius: 6px; background: #e4eeeb; color: #255548; font-size: 11px; }
.purchase-summary { color: var(--muted); font-size: 12px; line-height: 1.4; padding-bottom: 12px; }
.panel-header {
  display: flex; align-items: center; gap: 10px; padding: 18px 17px 15px;
}
.panel-header h2 { font-size: 16px; font-weight: 680; letter-spacing: -.025em; }
.panel-header p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.switches { padding-inline: 17px; padding-bottom: 5px; }
.switch { position: relative; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 13px 0; border-top: 1px solid var(--line); }
.switch strong { display: block; font-size: 13px; font-weight: 640; }
.switch small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.switch-summary { border-top: 1px solid var(--line); padding: 11px 0 12px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 35px; height: 21px; right: 0; margin: 0; }
.switch-track { flex: 0 0 35px; height: 21px; padding: 3px; border-radius: 12px; background: #d7d8e5; transition: background .15s; }
.switch-track::before { content: ""; display: block; width: 15px; height: 15px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px #20174e39; transition: transform .15s; }
.switch input:checked + .switch-track { background: #4e6079; }
.switch input:checked + .switch-track::before { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #b2a0ff; outline-offset: 3px; }
.detector-body { padding: 0 17px 16px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.detector-body .action { margin-top: 11px; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 11px; white-space: nowrap; background: #f1edff; color: #5136b0; font-weight: 650; }
.library-panel .panel-header { padding-inline: 19px; }
.empty-list { padding: 10px 19px 20px; color: var(--muted); font-size: 13px; }
.library-panel { margin-bottom: 14px; }
.source-form { display: grid; gap: 16px; border-top: 1px solid var(--line); padding: 18px 19px; }
.source-form label { display: grid; min-width: 0; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.source-form small { color: var(--muted); font-weight: 400; }
.source-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fafaff; }
.source-form input::file-selector-button { margin-inline-end: 8px; border: 0; border-radius: 5px; padding: 5px 8px; color: #452eb8; background: #eeebff; cursor: pointer; }
.source-form > button { justify-self: start; }
.source-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-title { overflow-wrap: anywhere; }
a.source-title { color: #452eb8; text-underline-offset: 3px; }
.source-row button { flex-shrink: 0; }
.match-detail { border-top: 1px solid var(--line); }
.match-detail summary { padding: 12px 19px; cursor: pointer; overflow-wrap: anywhere; }
.match-detail summary strong { margin-inline: 6px 10px; }
.match-detail > a { display: inline-block; margin: 0 19px 15px; font-size: 13px; }
.match-guidance { margin: 0 19px 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pattern-items { padding: 0 23px 13px 39px; font-size: 13px; color: var(--muted); }
.pattern-items li { margin-top: 4px; }
.match-excerpts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 2px 19px 15px; }
.match-excerpts > div { background: #f7f6ff; border: 1px solid #eeebff; border-radius: 8px; padding: 12px; }
.match-excerpts h3 { color: #452eb8; font-size: 12px; }
.match-excerpts blockquote { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
@media (max-width: 530px) {
  .source-fields, .match-excerpts { grid-template-columns: 1fr; }
}
.history-row { margin: 0 19px; border-top: 1px solid var(--line); padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.history-row strong { font-size: 13px; }
.history-row p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.spelling-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 19px 17px; }
.message { padding: 10px 13px; border-radius: 10px; margin-top: 14px; background: #e9f4ff; color: #234778; font-size: 13px; }
.message.error { background: #fcebed; color: #8b263c; }
.operation-progress { margin-top: 14px; padding: 15px 17px; border: 1px solid #ded5f5; border-radius: 13px; background: #fbf9ff; color: var(--ink); }
.operation-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.operation-heading b { color: #5533ba; font-variant-numeric: tabular-nums; }
.operation-progress:not(.complete) .operation-heading strong::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; border: 2px solid #d7c8fa; border-top-color: #7356e7; border-radius: 50%; animation: operation-spin .8s linear infinite; }
@keyframes operation-spin { to { transform: rotate(360deg); } }
.operation-progress progress { display: block; width: 100%; height: 9px; margin-top: 10px; accent-color: #7356e7; border: 0; border-radius: 6px; background: #eae2f9; overflow: hidden; }
.operation-progress progress::-webkit-progress-bar { background: #eae2f9; border-radius: 6px; }
.operation-progress progress::-webkit-progress-value { background: #7356e7; border-radius: 6px; transition: width .25s ease; }
.operation-progress progress::-moz-progress-bar { background: #7356e7; border-radius: 6px; }
.operation-progress p { color: var(--muted); font-size: 12px; margin-top: 6px; }
code { font-family: Consolas, monospace; }

.icon { width: 17px; height: 17px; display: inline-block; position: relative; color: inherit; flex: 0 0 17px; }
.icon::before, .icon::after, .fold-icon::after { content: ""; position: absolute; }
.icon-search::before { width: 9px; height: 9px; border: 1.6px solid currentColor; border-radius: 50%; top: 1px; left: 1px; }
.icon-search::after { width: 6px; height: 1.6px; background: currentColor; transform: rotate(45deg); border-radius: 2px; bottom: 2px; right: 0; }
.icon-library::before { inset: 2px 1px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-library::after { width: 7px; height: 1px; background: currentColor; box-shadow: 0 3px 0 currentColor; left: 5px; top: 6px; }
.icon-download::before, .icon-upload::before { width: 13px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 3px 3px; left: .5px; bottom: 0; }
.icon-download::after, .icon-upload::after { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); top: 4px; left: 4.5px; }
.icon-upload::after { transform: rotate(225deg); top: 3px; }
.icon-sliders::before { width: 14px; height: 1.4px; background: currentColor; top: 3px; left: 1px; box-shadow: 0 5px 0, 0 10px 0; border-radius: 3px; }
.icon-sliders::after { border-radius: 50%; width: 3px; height: 3px; top: 2.3px; left: 4px; background: currentColor; box-shadow: 5px 5px 0, 1px 10px 0; }
.fold-icon { position: relative; display: inline-block; width: 13px; height: 16px; border: 1.5px solid currentColor; border-radius: 2px; }
.fold-icon::after { width: 5px; height: 1px; background: currentColor; box-shadow: 0 3px 0; left: 2px; top: 5px; }

@media (max-width: 1060px) {
  body { grid-template-columns: 186px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .workspace, .topbar { padding-inline: 24px; }
  .columns { grid-template-columns: minmax(0, 1fr) 235px; gap: 15px; }
}
@media (max-width: 830px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 11px 20px; flex-direction: row; justify-content: space-between; align-items: center; }
  .navigation { display: flex; margin: 0; gap: 2px; }
  .navigation button { min-height: 36px; justify-content: center; padding: 7px 8px; gap: 6px; font-size: 11px; }
  .brand { padding: 0; gap: 8px; }
  .brand-mark { flex-basis: 33px; height: 33px; }
  .brand-mark i { font-size: 7px; }
  .brand strong { font-size: 12px; }
  .topbar { height: 55px; }
  .workspace { padding-top: 28px; }
}
@media (max-width: 640px) {
  .columns { grid-template-columns: 1fr; }
  .columns:has(#empty-state:not([hidden])) .controls { display: contents; }
  .columns:has(#empty-state:not([hidden])) .settings { grid-row: 1; }
  .workspace, .topbar { padding-inline: 14px; }
  .sidebar { padding: 12px 13px; }
  .navigation button .icon { display: none; }
  .page-heading { margin-bottom: 18px; }
  .page-heading p { font-size: 13px; }
  .dropzone { min-height: 280px; padding: 24px; border-radius: 17px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.report-view { display: block; }
.report-view .sidebar {
  position: static; min-height: 62px; height: auto; padding: 9px max(20px, calc((100vw - 1100px) / 2));
  flex-direction: row; justify-content: space-between; align-items: center; gap: 10px;
  border-inline-end: 0; border-bottom: 1px solid var(--line);
}
.report-view .navigation { margin: 0; display: flex; }
.report-view .navigation :is([data-page="check"], [data-page="result"]) { display: none; }
.report-view .topbar { height: 58px; padding-inline: max(20px, calc((100vw - 1100px) / 2)); background: transparent; border-bottom: 0; }
.report-view .workspace { max-width: 1140px; padding: 12px 20px 52px; }
.report-view .columns { display: block; }
.report-view .controls, .report-view .page-heading { display: none; }
.report-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  gap: 24px 20px; padding: clamp(19px, 3vw, 35px); border-radius: 21px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 28px #43271d0a;
}
.report-document { display: flex; align-items: center; min-width: 0; gap: 9px; color: var(--muted); font-size: 13px; }
.report-document .fold-icon { flex: 0 0 13px; opacity: .8; }
#filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
#file-meta { color: #503985; background: #f2edf8; font-size: 11px; padding: 3px 6px; border-radius: 5px; }
.report-intro h1 { margin: 14px 0 8px; font-size: clamp(31px, 4.1vw, 49px); line-height: 1.08; letter-spacing: -.052em; }
.report-intro h1:focus { outline: none; }
.report-intro p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.report-actions { display: grid; justify-items: end; gap: 6px; align-self: center; }
.report-actions .action { border-radius: 11px; min-height: 48px; padding-inline: 16px; font-size: 14px; }
.report-status-note { grid-column: 1 / -1; padding: 10px 13px; border-left: 3px solid #818aa0; background: #f1f3f6; border-radius: 6px; color: #414959; font-size: 14px; line-height: 1.45; }
.report-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 395px), 1fr)); gap: 16px; }
.report-metric-group { min-width: 0; }
.report-metric-group h2 { margin: 0 0 7px; font-size: 14px; color: var(--muted); }
.report-metric-values { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-metric { min-width: 0; margin: 0; padding: 15px; border: 1px solid #e1e4e9; background: #f6f7f9; border-radius: 12px; }
.metric-unmarked { background: #e5efed; border-color: #d4e7e1; color: #255548; }
.metric-marked { background: #eeeef5; border-color: #e5e5ee; color: #484572; }
.metric-matches { background: #e9eef4; border-color: #dee5ed; color: #354966; }
.report-metric dt { font-weight: 650; font-size: 14px; }
.metric-link { color: inherit; text-decoration-color: #7d6c9a70; text-underline-offset: 3px; }
.metric-link:hover { color: var(--brand); }
.metric-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 2px; }
.report-metric dd { margin: 5px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; font-variant-numeric: tabular-nums; }
.report-metric strong { font-size: clamp(25px, 3vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 710; }
.report-metric dd:has(.metric-before) { gap: 3px 5px; }
.report-metric dd:has(.metric-before) strong { font-size: clamp(22px, 2.4vw, 32px); white-space: nowrap; }
.report-metric .metric-before { font-size: clamp(15px, 1.45vw, 19px); font-weight: 550; white-space: nowrap; color: var(--muted); }
.metric-arrow { color: var(--muted); }
.report-metric .metric-caption { font-size: 12px; color: var(--muted); }
.report-details { display: grid; gap: 9px; margin-top: 18px; }
.report-detail { scroll-margin-top: 14px; overflow: clip; }
.report-detail > summary { display: flex; align-items: baseline; gap: 7px 12px; min-height: 57px; padding: 17px 20px; cursor: pointer; list-style: none; }
.report-detail > summary::-webkit-details-marker { display: none; }
.report-detail > summary::after { content: ""; width: 7px; height: 7px; align-self: center; border: solid #654bba; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-left: auto; flex: 0 0 7px; }
.report-detail[open] > summary::after { transform: rotate(225deg); }
.original-check { margin-top: 10px; }
.original-check-body { padding-inline: 12px; }
.original-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0 7px 12px; }
.original-values div { padding: 8px 10px; border-radius: 8px; background: #f1f3f6; }
.original-values dt { color: var(--muted); font-size: 12px; }
.original-values dd { margin: 4px 0 0; font-size: 19px; font-weight: 680; font-variant-numeric: tabular-nums; }
.report-detail > summary span { font-size: 17px; font-weight: 700; }
.report-detail > summary small { color: var(--muted); font-size: 12px; }
.report-detail > summary:hover { background: #f1f3f6; border-radius: inherit; }
.report-detail > summary:focus-visible { outline: 2px solid #8970e4; outline-offset: -3px; border-radius: inherit; }
.detail-body { padding: 0 0 10px; }
.finding-group { margin-inline: 20px; padding: 12px 0 5px; border-top: 1px solid var(--line); color: #5c438f; font-size: 13px; letter-spacing: .005em; }
.issue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; margin: 0 20px; padding: 9px 0 13px; }
.issue-row h3 { font-size: 15px; font-weight: 660; }
.issue-row p { color: var(--muted); margin-top: 3px; font-size: 13px; line-height: 1.5; }
.finding-count { min-width: 29px; text-align: center; padding: 3px 8px; border: 1px solid #e5def4; border-radius: 6px; background: #f8f5ff; color: #534171; font-size: 13px; font-weight: 640; }
.issue-examples { margin-top: 6px; color: var(--muted); font-size: 13px; }
.issue-examples summary { cursor: pointer; color: #5035ab; }
.issue-examples blockquote, .ai-excerpt blockquote { margin: 6px 0 0; padding-left: 8px; border-left: 2px solid #dcd3f6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-excerpt blockquote, .ai-excerpt p, #detector-label { margin: 0 19px 10px; }
.ai-excerpt summary { color: var(--ink); }
.order-view .workspace > :not(#order-state):not(#status),
.order-view .navigation { display: none; }
.order-state { max-width: 620px; margin-inline: auto; padding: clamp(22px, 5vw, 42px); }
.order-state h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.045em; }
.order-state p { color: var(--muted); line-height: 1.55; }
.order-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.order-actions a { text-decoration: none; }
.source-group > summary { padding-block: 15px; }
.source-group > .match-detail { margin-inline: 16px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1196px; margin-inline: auto; padding: 20px clamp(14px, 4vw, 38px); color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer nav { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.help-page { max-width: 780px; margin: 32px auto; padding: clamp(18px, 4vw, 42px); }
.help-page h1 { margin: 16px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.help-page h2 { font-size: 19px; margin: 22px 0 6px; }
.help-page p { color: var(--muted); line-height: 1.55; }

@media (max-width: 640px) {
  .report-view .sidebar, .report-view .topbar { padding-inline: 14px; }
  .report-view .navigation button { white-space: normal; }
  .report-view .workspace { padding: 14px 12px 36px; }
  .report-overview { grid-template-columns: minmax(0, 1fr); gap: 14px; border-radius: 16px; }
  .report-actions { justify-items: start; }
  .report-actions .action { min-height: 44px; }
  .report-metrics { grid-template-columns: minmax(0, 1fr); }
  .report-metric-values { grid-template-columns: minmax(0, 1fr); }
  .report-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 9px; padding: 9px 11px; }
  .report-metric dd { margin: 0; justify-content: end; grid-column: 2; grid-row: 1 / 3; }
  .report-metric .metric-caption { grid-column: 1; grid-row: 2; justify-content: start; }
  .report-metric strong { font-size: 24px; }
  .report-details { margin-top: 12px; }
  .report-detail > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 9px; gap: 8px; padding: 13px; align-items: center; }
  .report-detail > summary::after { margin-left: 0; }
  .finding-group, .issue-row { margin-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .operation-progress:not(.complete) .operation-heading strong::before { animation: none; }
  .operation-progress progress::-webkit-progress-value { transition: none; }
  *, *::before, *::after { transition: none !important; }
}
