* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #1d2330; background: #f5f6f8; }
header { background: #10305a; color: #fff; padding: 16px 24px; }
header h1 { margin: 0; font-size: 1.6rem; }
.sub { margin: 4px 0 0; opacity: .85; }
main { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 20px 24px; max-width: 1400px; margin: auto; }
aside { background: #fff; border-radius: 8px; padding: 16px; align-self: start; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
label { display: block; margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
label.inline { font-weight: 400; display: flex; gap: 6px; align-items: center; }
input[type=text], input[type=number], input[type=email], select { width: 100%; padding: 6px 8px; margin-top: 4px; border: 1px solid #c8cdd6; border-radius: 4px; font: inherit; }
.row { display: flex; gap: 8px; }
fieldset { border: 1px solid #e1e4ea; border-radius: 6px; margin: 0 0 10px; padding: 6px 10px; }
legend { font-size: .9rem; font-weight: 600; }
.checks { max-height: 130px; overflow: auto; font-size: .85rem; }
.checks label { font-weight: 400; display: flex; gap: 6px; margin: 2px 0; }
.checks .n { color: #888; margin-left: auto; }
button { background: #0b5cad; color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; font: inherit; cursor: pointer; }
button:hover { background: #094a8b; }
#reset { background: #e6e9ef; color: #1d2330; }
#alert-box { border-top: 1px solid #e1e4ea; margin-top: 16px; padding-top: 8px; }
#alert-box h2 { font-size: 1.05rem; margin: 6px 0; }
#alert-box p { font-size: .85rem; margin: 4px 0 8px; }
#alert-form { display: grid; gap: 6px; }
#alert-msg.err { color: #b3261e; }
#alert-msg.ok { color: #1e7b34; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toolbar label { display: flex; align-items: center; gap: 6px; margin: 0; }
.toolbar select { width: auto; margin: 0; }
#results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #dde1e7; }
.card .body { padding: 10px 12px 12px; font-size: .85rem; }
.card h3 { margin: 0 0 4px; font-size: 1rem; }
.card .variant { color: #555; margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.tag { background: #eef1f6; border-radius: 10px; padding: 2px 8px; font-size: .75rem; }
.tag.incident { background: #fde8e6; color: #8a1c13; }
.tag.new { background: #e3f4e6; color: #1e6b31; }
.meta { color: #555; }
#more { display: block; margin: 16px auto; }
footer { text-align: center; color: #777; font-size: .8rem; padding: 20px; }
@media (max-width: 800px) {
  main { grid-template-columns: 1fr; padding: 12px; }
  aside { position: static; max-height: none; }
}
