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

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; }

.shell { width: min(940px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { max-width: 760px; margin-bottom: 28px; }
.eyebrow, .step { margin: 0 0 10px; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #6e7168; }
h1 { margin: 0; font-size: clamp(44px, 8vw, 84px); line-height: .95; letter-spacing: -.055em; }
.lede { margin: 24px 0 0; max-width: 720px; font-size: clamp(19px, 2.7vw, 28px); line-height: 1.35; color: #4e514a; }

.trust { display: flex; gap: 10px 18px; flex-wrap: wrap; padding: 15px 18px; margin-bottom: 18px; border: 1px solid #cdd2c6; border-radius: 14px; background: #eef1e9; font-size: 14px; }
.trust span { color: #5d6158; }

.panel { margin-top: 18px; padding: 24px; border: 1px solid #d8d8d1; border-radius: 20px; background: #fff; box-shadow: 0 18px 60px rgba(38, 40, 34, .06); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.version, .filename { max-width: 45%; padding-top: 3px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #73766e; text-align: right; overflow-wrap: anywhere; }
.panel-copy { margin: -4px 0 20px; max-width: 760px; color: #60635b; line-height: 1.55; }

.dropzone { display: grid; place-items: center; min-height: 230px; padding: 30px; border: 1.5px dashed #aeb1a8; border-radius: 16px; background: #fafaf7; text-align: center; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.dragging { transform: translateY(-2px); border-color: #62675c; background: #f2f4ed; }
.dropzone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.drop-title { font-size: 22px; font-weight: 760; letter-spacing: -.02em; }
.drop-subtitle { margin-top: 6px; color: #767970; }

.examples { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.examples button, .secondary-action { border: 1px solid #d4d6cf; border-radius: 999px; padding: 10px 14px; background: #fff; color: #44483f; cursor: pointer; }
.examples button:hover, .secondary-action:hover { background: #f3f4ef; }

.session-panel { margin-top: 28px; }
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.file-slot { position: relative; display: grid; gap: 5px; min-height: 128px; padding: 16px; border: 1px solid #d9dbd4; border-radius: 14px; background: #fafaf7; cursor: pointer; }
.file-slot:hover { border-color: #aeb2a8; background: #f5f6f1; }
.file-slot input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.file-slot strong { align-self: end; font-size: 18px; }
.file-slot > span:last-child { color: #70746a; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.slot-kicker { font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; color: #7a7d74; }
.session-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.primary-action { border: 0; border-radius: 999px; padding: 11px 16px; background: #252821; color: #fff; cursor: pointer; }
.primary-action:hover { background: #373b32; }
.boundary-note { margin: 16px 0 0; padding: 13px 15px; border-radius: 12px; background: #f4f4ef; color: #64675f; font-size: 13px; line-height: 1.5; }

.results-panel { scroll-margin-top: 20px; }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { min-width: 110px; padding: 14px 16px; border: 1px solid #dedfd9; border-radius: 13px; background: #fafaf8; }
.stat strong { display: block; font-size: 24px; }
.stat span { color: #6b6e66; font-size: 13px; }
.pass { width: 100%; padding: 18px; border: 1px solid #bfccb9; border-radius: 14px; background: #edf4e9; }
.pass strong, .pass span { display: block; }
.pass span { margin-top: 4px; color: #586354; font-size: 13px; }
.empty-state { width: 100%; padding: 16px 18px; border: 1px dashed #d5d7d0; border-radius: 13px; background: #fafaf8; color: #676a62; line-height: 1.5; }

.issues { display: grid; gap: 12px; }
.finding, .evidence { padding: 18px; border: 1px solid #dedfd9; border-left-width: 4px; border-radius: 14px; background: #fcfcfa; }
.finding.error { border-left-color: #9f3b32; }
.finding.warning { border-left-color: #a47424; }
.finding.unknown { border-left-color: #61718c; }
.evidence.confirmed { border-left-color: #56754e; }
.evidence.not-found { border-left-color: #a47424; }
.evidence.unknown { border-left-color: #61718c; }
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { padding: 4px 8px; border-radius: 999px; background: #eeeeea; font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .06em; }
.location { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #777a72; text-align: right; }
.finding h3, .evidence h3 { margin: 12px 0 0; font-size: 17px; line-height: 1.35; }
.finding p, .evidence p { margin: 7px 0 0; color: #60635b; font-size: 14px; line-height: 1.5; }
.finding footer, .evidence footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #ecece7; font-size: 11px; color: #777a72; }
.finding footer a, .evidence footer a { text-align: right; }

.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; }
.file-chip { padding: 7px 10px; border: 1px solid #d9dbd4; border-radius: 999px; background: #f8f8f5; color: #62665d; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.file-chip.empty { opacity: .68; }
.report-section + .report-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e6e0; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-title { margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; }
.section-head p { margin: -6px 0 14px; color: #6d7068; font-size: 13px; line-height: 1.5; }

.scope { max-width: 760px; margin: 42px 6px 0; }
.scope h2 { font-size: 18px; }
.scope p { color: #666960; line-height: 1.6; }
.scope h2:not(:first-child) { margin-top: 28px; }
.example-intro { margin: 18px 0 0; color: #60635b; font-size: 14px; line-height: 1.5; }
.guide-links p, .guide-links li { color: #4e514a; line-height: 1.6; }
.guide-links li + li { margin-top: 10px; }
.guide-links a, .scope a, .guide a { text-underline-offset: 3px; }
.dropzone:focus-within, .file-slot:focus-within { outline: 3px solid #56754e; outline-offset: 3px; }
.guide { max-width: 760px; }
.guide nav { margin-bottom: 32px; }
.guide h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.guide h2 { margin-top: 30px; font-size: 24px; }
.guide p, .guide li { font-size: 16px; line-height: 1.65; color: #4e514a; }
.guide li + li { margin-top: 8px; }
.guide pre { overflow-x: auto; padding: 18px; background: #fff; border: 1px solid #d8d8d1; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.guide code { overflow-wrap: anywhere; }
.guide .check-link { display: inline-block; margin: 14px 0; padding: 12px 20px; border-radius: 999px; color: #fff; background: #252821; text-decoration: none; font-weight: 650; }
.guide .source-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid #d8d8d1; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 760px) {
  .session-grid { grid-template-columns: 1fr; }
  .file-slot { min-height: 104px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 940px); padding-top: 34px; }
  .panel { padding: 17px; border-radius: 16px; }
  .panel-head, .finding footer, .evidence footer { align-items: flex-start; flex-direction: column; }
  .version, .filename { max-width: 100%; text-align: left; }
  .finding footer a, .evidence footer a { text-align: left; }
  .dropzone { min-height: 190px; }
}
