.form-83-document-scanner {
  box-sizing: border-box;
  margin: 18px 0;
  max-width: none;
  width: 100%;
}

.f83-shell,
.f83-results-panel {
  background: #060b14;
  border: 1px solid #1f6feb;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(1, 8, 20, 0.28);
  color: #e6edf7;
  width: 100%;
}

.f83-shell { padding: 20px; }
.f83-header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.f83-eyebrow { color: #7ab7ff; display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-bottom: 4px; text-transform: uppercase; }
.f83-header h3,
.f83-results-header h3 { color: #fff; font-size: 22px; line-height: 1.25; margin: 0; }
.f83-header p { color: #a9b8cc; font-size: 14px; line-height: 1.55; margin: 8px 0 0; max-width: 880px; }

.f83-upload-row { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) auto auto; margin-bottom: 14px; }
.f83-file-label { display: flex; flex-direction: column; gap: 7px; }
.f83-file-label span { color: #a9b8cc; font-size: 13px; font-weight: 700; }
.f83-file { background: #0b1220; border: 1px solid #24466f; border-radius: 6px; color: #dce8f7; min-height: 42px; padding: 8px; width: 100%; }

.f83-reset-btn,
.f83-scan-btn { border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 800; min-height: 42px; padding: 0 16px; transition: .15s ease; white-space: nowrap; }
.f83-reset-btn { background: rgba(15,23,42,.78); border: 1px solid rgba(96,165,250,.38); color: #fff; }
.f83-reset-btn:hover { border-color: #60a5fa; color: #bfdbfe; }
.f83-scan-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); border: 1px solid #60a5fa; color: #fff; }
.f83-scan-btn:hover { filter: brightness(1.08); }
.f83-scan-btn:disabled { cursor: not-allowed; opacity: .65; }

.f83-instructions { background: rgba(15,23,42,.72); border: 1px solid rgba(96,165,250,.24); border-radius: 8px; color: #dbeafe; margin: 0 0 14px; padding: 14px 16px; }
.f83-instructions strong { color: #fff; display: block; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; }
.f83-instructions ol { margin: 0; padding-left: 20px; }
.f83-instructions li { margin: 4px 0; }

.f83-notice { border-radius: 6px; font-size: 13px; font-weight: 700; margin-top: 8px; min-height: 0; padding: 0; }
.f83-notice.is-error,
.f83-notice.is-success { padding: 10px 12px; }
.f83-notice.is-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.38); color: #fecaca; }
.f83-notice.is-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #bbf7d0; }

.f83-results { margin-top: 18px; }
.f83-results-panel { padding: 20px; }
.f83-results-header { margin-bottom: 14px; }

.f83-assessment-hero {
  border: 1px solid rgba(148,163,184,.18);
  border-left-width: 5px;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 16px;
}
.f83-assessment-hero > div { display: flex; flex-direction: column; gap: 5px; }
.f83-assessment-hero > div > span { color: #93a4ba; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.f83-assessment-hero strong { color: #fff; font-size: 24px; line-height: 1.15; }
.f83-assessment-hero p { color: #d5e1f1; font-size: 14px; line-height: 1.5; margin: 0; max-width: 980px; }
.f83-assessment-hero.is-passed { background: rgba(34,197,94,.08); border-left-color: #22c55e; }
.f83-assessment-hero.is-warning { background: rgba(245,158,11,.09); border-left-color: #f59e0b; }
.f83-assessment-hero.is-failed { background: rgba(239,68,68,.09); border-left-color: #ef4444; }
.f83-assessment-hero.is-review { background: rgba(59,130,246,.09); border-left-color: #60a5fa; }

.f83-summary-grid { display: grid; gap: 10px; grid-template-columns: repeat(6, minmax(105px, 1fr)); margin-bottom: 0; }
.f83-summary-grid div { background: #0b1220; border: 1px solid rgba(96,165,250,.22); border-radius: 8px; padding: 12px; }
.f83-summary-grid span { color: #8fa3bd; display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.f83-summary-grid strong { color: #fff; display: block; font-size: 24px; line-height: 1.1; margin-top: 6px; }

.f83-meta-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.f83-field { background: rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.18); border-radius: 8px; padding: 11px 12px; }
.f83-field span { color: #93a4ba; display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.f83-field strong { color: #fff; display: block; font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }

.f83-section { border-top: 1px solid rgba(148,163,184,.18); margin-top: 18px; padding-top: 18px; }
.f83-section h4 { align-items: center; color: #fff; display: flex; font-size: 16px; gap: 10px; justify-content: space-between; margin: 0 0 12px; }
.f83-section h4 span { color: #93c5fd; font-size: 12px; font-weight: 700; }

.f83-mini-table { border: 1px solid rgba(96,165,250,.2); border-radius: 8px; overflow: hidden; }
.f83-mini-table > div { display: grid; gap: 0; grid-template-columns: 1.4fr repeat(4, 1fr); }
.f83-mini-table b,
.f83-mini-table span { border-bottom: 1px solid rgba(148,163,184,.13); color: #dbeafe; padding: 10px 12px; }
.f83-mini-table b { background: rgba(37,99,235,.16); color: #fff; font-size: 12px; text-transform: uppercase; }
.f83-expected b { background: rgba(34,197,94,.12); color: #bbf7d0; }

.f83-dealing-block,
.f83-warning-line { align-items: center; background: rgba(15,23,42,.68); border: 1px solid rgba(148,163,184,.16); border-radius: 8px; color: #cbd5e1; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; padding: 11px 12px; }
.f83-dealing-block strong,
.f83-warning-line strong { color: #fff; }
.f83-dealing-block span,
.f83-dealing-block em { color: #93c5fd; font-style: normal; }
.f83-warning-line span { color: #fbbf24; }
.f83-empty { color: #9fb1c7; font-size: 13px; line-height: 1.45; margin: 0; }

.f83-check-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.f83-check-card { background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.16); border-left-width: 4px; border-radius: 8px; padding: 12px; }
.f83-check-card.is-passed { border-left-color: #22c55e; }
.f83-check-card.is-warning { border-left-color: #f59e0b; }
.f83-check-card.is-failed { border-left-color: #ef4444; }
.f83-check-card.is-review { border-left-color: #60a5fa; }
.f83-check-head { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.f83-check-head strong { color: #fff; font-size: 14px; }
.f83-check-card p { color: #cbd5e1; font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.f83-pill { border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 900; letter-spacing: .03em; padding: 5px 9px; text-transform: uppercase; }
.f83-pill.is-passed { background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.4); color: #86efac; }
.f83-pill.is-warning { background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.42); color: #fcd34d; }
.f83-pill.is-failed { background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.42); color: #fecaca; }
.f83-pill.is-review { background: rgba(59,130,246,.16); border: 1px solid rgba(96,165,250,.42); color: #bfdbfe; }

.f83-disclaimer { background: rgba(2,6,23,.7); border: 1px solid rgba(148,163,184,.15); border-radius: 8px; color: #9fb1c7; font-size: 12px; line-height: 1.5; margin: 18px 0 0; padding: 12px; }

@media (max-width: 820px) {
  .f83-upload-row { grid-template-columns: 1fr; }
  .f83-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f83-meta-grid { grid-template-columns: 1fr; }
  .f83-check-grid { grid-template-columns: 1fr; }
  .f83-mini-table { overflow-x: auto; }
  .f83-mini-table > div { min-width: 650px; }
  .f83-assessment-hero strong { font-size: 20px; }
}

.f83-overall {
  align-items: flex-start;
  border: 1px solid rgba(148,163,184,.18);
  border-left-width: 4px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
}
.f83-overall strong { color: #fff; font-size: 14px; }
.f83-overall span { color: #cbd5e1; font-size: 13px; }
.f83-overall.is-passed { background: rgba(34,197,94,.08); border-left-color: #22c55e; }
.f83-overall.is-warning { background: rgba(245,158,11,.08); border-left-color: #f59e0b; }
.f83-overall.is-failed { background: rgba(239,68,68,.08); border-left-color: #ef4444; }
.f83-document-summary { border-top: 0; margin-top: 0; padding-top: 0; }
.f83-dashboard { margin-top: 0; }
.f83-timing-note { color: #bfdbfe; font-size: 13px; line-height: 1.45; margin: -8px 0 0; }
