:root { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111827; background: #f3f4f6; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }
a { color: #1d4ed8; }
a:hover { color: #1e40af; }
.site-header { margin-top: 40px; margin-bottom: 32px; }
h1 { font-size: 36px; line-height: 40px; margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.brand { text-decoration: none; color: inherit; }
.lead { color: #4b5563; font-size: 20px; line-height: 28px; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 32px; margin: 8px 0; }
h3 { font-size: 18px; margin: 0; }
h4 { margin: 12px 0 6px; }
p { margin: 8px 0 16px; }
.card { background: #fff; border-radius: 4px; box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f; margin-bottom: 24px; padding: 24px 32px 32px; }
.card > p { color: #4b5563; }
.step { color: #1d4ed8; font-size: 13px; font-weight: 700; }
.step span { margin-left: 8px; color: #6b7280; font-weight: 500; }
.address-row, .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.address-row code { flex: 1; min-width: 0; padding: 12px; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 4px; font-size: 18px; overflow-wrap: anywhere; }
button { border: 1px solid transparent; border-radius: 4px; background: #3b82f6; color: #fff; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #1d4ed8; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.small { font-size: 14px; color: #6b7280; }
.preview-note { padding: 8px 16px; text-align: center; background: #dbeafe; color: #1e40af; font-size: 14px; }
.receipt-basics dl { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 16px 0; margin: 0 0 12px; }
.receipt-basics dl > div { min-width: 0; }
dt { color: #6b7280; font-size: 14px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.report-summary { padding: 24px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; }
.report-summary[data-verdict="healthy"] { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.report-summary[data-verdict="problems-found"] { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 6px; }
.report-summary h3 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 6px 0 10px; }
.health-count { float: right; padding: 6px 12px; border: 1px solid currentColor; border-radius: 4px; font-size: 14px; font-weight: 700; }
#verdict-note { margin-bottom: 0; }
#priority-fixes { margin-top: 16px; }
#priority-fixes ol { padding-left: 20px; margin: 6px 0 0; }
#report-nav { display: none; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.detailed #report-nav { display: flex; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; text-decoration: none; }
.pill.pass { background: #d1fae5; color: #065f46; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.fail { background: #fee2e2; color: #991b1b; }
.pill.info { background: #f3f4f6; color: #4b5563; }
.pill.incomplete { background: #fef3c7; color: #92400e; }
.view-controls { display: flex; gap: 8px; margin: 24px 0 16px; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; }
.view-controls button { background: #fff; color: #4b5563; border-color: #d1d5db; font-size: 14px; }
.view-controls button[aria-pressed="true"] { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
#report-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-card { min-width: 0; border: 1px solid #e5e7eb; border-radius: 4px; padding: 20px; scroll-margin-top: 16px; }
#receipt:not(.detailed) .report-card.fail { order: -3; }
#receipt:not(.detailed) .report-card.warn { order: -2; }
#receipt:not(.detailed) .report-card.incomplete { order: -1; }
.report-card.warn, .report-card.fail, .report-card.incomplete { grid-column: 1 / -1; }
.report-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.report-heading .pill { flex-shrink: 0; }
.report-meaning { color: #4b5563; margin: 10px 0 0; }
.report-fix { background: #eff6ff; padding: 12px; margin: 16px 0 0; color: #1e3a8a; }
.report-list ul { padding-left: 20px; margin: 8px 0; }
.report-list li { margin: 6px 0; overflow-wrap: anywhere; }
.report-facts > div { display: grid; grid-template-columns: minmax(160px, 30%) 1fr; border-bottom: 1px solid #e5e7eb; padding: 8px 0; gap: 16px; }
.detail-only { display: none; }
.detailed .detail-only { display: block; }
.detailed #report-sections { grid-template-columns: 1fr; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f3f4f6; padding: 12px; font-size: 13px; border-radius: 4px; }
.about { margin: 32px 0 40px; color: #4b5563; }
.about h2 { color: #111827; }
footer { background: #e5e7eb; padding: 16px 0; margin-top: 32px; color: #4b5563; text-align: center; font-size: 14px; }
footer p { margin: 0; }
footer p + p { margin-top: 4px; }
footer p:last-child { margin-top: 8px; }
footer a { color: #2563eb; text-decoration: none; }
@media (max-width: 767px) {
  h1 { font-size: clamp(25px, 7.5vw, 36px); line-height: 1.2; }
  .card { padding: 20px; }
  #report-sections { grid-template-columns: 1fr; }
  .health-count { float: none; display: inline-block; margin: 8px 0; }
  .report-heading { flex-wrap: wrap; }
  .address-row { align-items: stretch; }
  .address-row code, .address-row button { width: 100%; flex-basis: 100%; }
  .report-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
.how-it-works { padding-left: 24px; margin: 20px 0; }
.how-it-works li { margin: 8px 0; }
.home-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.home-checks dt { color: #111827; font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.sponsor-note { margin: 0 0 32px; max-width: 1000px; color: #6b7280; font-size: 14px; line-height: 1.7; }
.sponsor-note a { color: #4b5563; text-underline-offset: 2px; }

.reputation-provider { border-top: 1px solid var(--border, #dbe3e9); padding: 1rem 0; }
.reputation-provider h4 { margin: 0; }
.reputation-provider:last-child { padding-bottom: 0; }

.headers-mode #report-sections { display: none; }
.raw-headers-bar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.raw-headers-bar p { margin: 0; }
.raw-headers-bar button { background: #fff; color: #1d4ed8; border-color: #93c5fd; font-size: 14px; }
.raw-headers-bar button:hover { background: #eff6ff; }
.headers-list { background: #0f172a; color: #e2e8f0; border-radius: 6px; padding: 12px 0; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 75vh; overflow: auto; }
.header-field { white-space: pre-wrap; overflow-wrap: anywhere; padding: 3px 16px 3px 13px; border-left: 3px solid transparent; }
.header-field + .header-field { border-top: 1px solid #1e293b; }
.header-field:hover { background: #1e293b; }
.header-field.trace { border-left-color: #38bdf8; }
.header-field.auth { border-left-color: #a78bfa; }
.header-field.key { border-left-color: #fbbf24; }
.h-name { font-weight: 700; color: #93c5fd; }
.trace .h-name { color: #7dd3fc; }
.auth .h-name { color: #c4b5fd; }
.key .h-name { color: #fcd34d; }
.ext .h-name { color: #94a3b8; font-weight: 500; }
.h-colon { color: #64748b; }
.ext .h-value { color: #cbd5e1; }
.h-tag { color: #5eead4; }
.h-addr { color: #f9a8d4; }
.h-ip { color: #fdba74; }
.h-keyword { color: #7dd3fc; font-style: italic; }
.h-result { font-weight: 700; padding: 0 4px; border-radius: 3px; }
.h-result.pass { color: #052e16; background: #86efac; }
.h-result.fail { color: #450a0a; background: #fca5a5; }
.h-result.warn { color: #451a03; background: #fde68a; }
