* { box-sizing: border-box; }
body { font-family: system-ui, Segoe UI, Arial, sans-serif; margin: 0; background: #f3f5f9; color: #1f2937; }
header { background: #1e3a8a; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
header a { color: #fff; text-decoration: none; margin-left: 16px; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.1); margin-bottom: 20px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 9px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
textarea { min-height: 110px; }
button, .btn { background: #1e3a8a; color: #fff; border: 0; padding: 10px 20px; border-radius: 6px; cursor: pointer; font: inherit; }
.error { color: #b91c1c; font-size: .85rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { text-align: center; }
.stat .n { font-size: 2rem; font-weight: 700; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #e5e7eb; }
.badge { padding: 2px 8px; border-radius: 10px; color: #fff; font-size: .75rem; }
.HIGH { background: #dc2626; } .MEDIUM { background: #d97706; } .LOW { background: #059669; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal { background: #fff; padding: 28px; border-radius: 10px; max-width: 420px; text-align: center; }
.modal .id { font-size: 1.4rem; font-weight: 700; color: #1e3a8a; margin: 12px 0; }
/* Public form: background image with frosted-glass card */
body.public { background: #f59e0b; min-height: 100vh; position: relative; }
/* Blurred copy fills the viewport; the low-res source stays sharp only as the portrait layer below. */
body.public::before { content: ''; position: fixed; inset: -40px; z-index: -2; background: url('/images/form-background.jpeg') center / cover no-repeat; filter: blur(28px) saturate(1.1); }
body.public::after { content: ''; position: fixed; top: 0; right: 0; bottom: 0; width: min(55vw, 100vh); z-index: -1; background: url('/images/form-background.jpeg') center top / contain no-repeat; -webkit-mask-image: linear-gradient(to right, transparent, #000 25%); mask-image: linear-gradient(to right, transparent, #000 25%); }
@media (min-width: 1000px) { body.public main { margin-left: 5vw; max-width: 640px; } }
@media (max-width: 999px) { body.public::after { opacity: .35; width: 100vw; } }
body.public header { background: rgba(15, 23, 42, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.public .card { background: rgba(255, 255, 255, .55); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 8px 32px rgba(0, 0, 0, .25); color: #0f172a; }
body.public input, body.public select, body.public textarea { background: rgba(255, 255, 255, .85); }
body.public .error { color: #991b1b; font-weight: 600; }
.actions { display: flex; align-items: center; gap: 16px; }
.sponsor { font-style: italic; font-size: .9rem; }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
