:root { --c-paper: 243 241 234; --c-card: 255 253 248; --c-ink: 20 33 58; --c-muted: 107 114 128; --c-line: 228 223 210; }
html.dark { --c-paper: 10 17 30; --c-card: 18 28 47; --c-ink: 226 232 240; --c-muted: 148 163 184; --c-line: 40 53 78; color-scheme: dark; }
.flag-stripe { background: linear-gradient(90deg, #ce1126 0 33%, #ffffff 33% 36%, #0c1c8c 36% 64%, #ffffff 64% 67%, #3a7728 67% 100%); }
.reveal { opacity: 0; transform: translateY(8px); animation: reveal .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.panel { background: rgb(var(--c-card)); border: 1px solid rgb(var(--c-line)); border-radius: 10px; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .875rem; transition: background-color .2s, color .2s, transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: #0b1d33; color: #fff; }
.btn-primary:hover { background: #0c1c8c; box-shadow: 0 6px 18px -8px rgba(12,28,140,.6); }
.btn-gold { background: #d9a514; color: #0b1d33; }
.btn-gold:hover { background: #e8b72a; }
.btn-ghost { background: transparent; border: 1px solid #d4cebf; color: #14213a; }
.btn-ghost:hover { background: #ebe7dc; }
.btn-danger { background: transparent; color: #ce1126; border: 1px solid #f1c1c8; }
.btn-danger:hover { background: #ce1126; color: #fff; }
.field { width: 100%; border: 1px solid #d4cebf; background: #fff; border-radius: 6px; padding: .6rem .8rem; font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: #0c1c8c; box-shadow: 0 0 0 3px rgba(12,28,140,.12); }
.label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #6b7280; margin-bottom: .4rem; font-weight: 600; }
.tbl { width: 100%; font-size: .875rem; }
.tbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: #6b7280; font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid #e4dfd2; background: #f8f6ef; }
.tbl td { padding: .8rem 1rem; border-bottom: 1px solid #eee9dd; vertical-align: middle; }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr:hover { background: #f8f5ec; }
.num { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.bar-track { background: #ece8dd; border-radius: 3px; overflow: hidden; height: 10px; }
.bar-fill { height: 100%; transform-origin: left; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
::selection { background: #d9a514; color: #0b1d33; }
@media print { .no-print { display: none !important; } body { background: #fff; } }

.gpf-loader { position: fixed; inset: 0; z-index: 100; background: #0b1d33; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; transition: opacity .4s ease; }
.gpf-loader.is-done { opacity: 0; pointer-events: none; }
.gpf-loader-badge { height: 110px; width: auto; object-fit: contain; border-radius: 3px; animation: badge-pulse 1.4s ease-in-out infinite; }
.gpf-loader-text { font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; color: #cbd5e1; }
.gpf-loader-bar { width: 140px; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.gpf-loader-bar span { display: block; height: 100%; width: 40%; background: #d9a514; animation: loader-slide 1.1s ease-in-out infinite; }
@keyframes badge-pulse { 50% { transform: scale(1.04); opacity: .85; } }
@keyframes loader-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.report-watermark { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.report-watermark img { width: 55%; max-width: 420px; height: auto; opacity: .06; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report-content { position: relative; z-index: 1; }
.verified-stamp { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem .9rem .55rem .6rem; border: 3px double #3a7728; border-radius: 8px; color: #2c5d1e; background: rgba(58,119,40,.05); transform: rotate(-2deg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.verified-stamp-badge { height: 52px; width: auto; object-fit: contain; border-radius: 2px; }
.verified-stamp-title { white-space: nowrap; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.verified-stamp-meta { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .04em; color: #3f6b33; }

/* Dark mode (app pages only; printed sheets stay light) */
.dark body { background: rgb(var(--c-paper)); }
.dark .field { background: #0e1829; border-color: rgb(var(--c-line)); color: rgb(var(--c-ink)); }
.dark .btn-primary { background: #1e3a8a; }
.dark .btn-primary:hover { background: #2747b0; }
.dark .btn-ghost { border-color: rgb(var(--c-line)); color: rgb(var(--c-ink)); }
.dark .btn-ghost:hover, .dark .tbl tbody tr:hover { background: rgba(255,255,255,.05); }
.dark .tbl th { background: rgb(var(--c-paper)); border-color: rgb(var(--c-line)); color: rgb(var(--c-muted)); }
.dark .tbl td { border-color: rgb(var(--c-line)); }
.dark .bar-track, .dark .bg-\[\#ece8dd\] { background: rgba(255,255,255,.08); }
.dark .bg-white, .dark .bg-\[\#f8f5ec\], .dark .bg-\[\#f8f6ef\], .dark .bg-\[\#f3f1ea\] { background-color: rgba(255,255,255,.04); }
.dark .hover\:bg-\[\#f8f5ec\]:hover, .dark .hover\:bg-\[\#f1ecdf\]:hover { background-color: rgba(255,255,255,.08); }
.dark .bg-red-50, .dark .bg-red-50\/60 { background-color: rgba(206,17,38,.14); }
.dark .bg-blue-50 { background-color: rgba(59,91,219,.16); }
.dark .bg-amber-50 { background-color: rgba(217,165,20,.12); }
.dark .bg-green-50 { background-color: rgba(58,119,40,.18); }
.dark .bg-slate-50, .dark .bg-slate-100 { background-color: rgba(148,163,184,.14); }
.dark .bg-green-100 { background-color: rgba(74,160,50,.22); }
.dark .bg-red-100 { background-color: rgba(206,17,38,.24); }
.dark .bg-amber-100 { background-color: rgba(217,165,20,.22); }
.dark .bg-blue-100 { background-color: rgba(59,91,219,.26); }
.dark .text-green-800, .dark .text-green-700 { color: #86efac; }
.dark .text-red-800, .dark .text-red-900, .dark .text-red-600 { color: #fca5a5; }
.dark .text-amber-900, .dark .text-amber-800, .dark .text-amber-700 { color: #fcd34d; }
.dark .text-blue-900 { color: #93c5fd; }
.dark .text-slate-700, .dark .text-slate-600, .dark .text-slate-900 { color: #cbd5e1; }
.dark .text-gblue { color: #8fa3ff; }
.dark .text-gred { color: #ff6b7d; }
.dark .bg-gold.text-ink, .dark .btn-gold { color: #0b1d33; }
.dark .border-navy { border-color: rgb(var(--c-line)); }
.dark .text-green-900 { color: #86efac; }
.dark .btn-danger { color: #ff8a98; border-color: rgba(255,138,152,.45); }
.dark .btn-danger:hover { color: #fff; }
.dark .bg-red-50\/40 { background-color: rgba(206,17,38,.1); }
.dark .bg-slate-200, .dark .bg-slate-300 { background-color: rgba(148,163,184,.22); }
.dark nav[role=navigation] p, .dark nav[role=navigation] p span { color: rgb(var(--c-muted)); }
.dark nav[role=navigation] p span.font-medium { color: rgb(var(--c-ink)); }
