* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f9; color: #17233a; font: 16px Arial, sans-serif; }
main { max-width: 1050px; margin: auto; padding: 20px; }
h1, h2, h3 { color: #0a2342; }
a { color: #005bba; }
nav, .actions, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
nav { padding: 14px; background: #0a2342; }
nav a { color: white; }
.card, .finding { background: white; border: 1px solid #d5dce4; border-radius: 8px; padding: 16px; margin: 14px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
label { display: block; font-weight: bold; margin: 12px 0 5px; }
input, select, textarea { display: block; width: 100%; padding: 10px; border: 1px solid #aeb9c4; border-radius: 5px; font: inherit; }
textarea { min-height: 75px; }
button, .button { display: inline-block; padding: 10px 14px; border: 0; border-radius: 6px; background: #006ee6; color: white; cursor: pointer; font: inherit; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary, .button.secondary { background: #455e78; }
button.danger { background: #a32121; }
.message { white-space: pre-wrap; color: #9a1e1e; }
.notice { color: #805000; font-weight: bold; }
.badge { display: inline-block; background: #dceaf9; border-radius: 12px; padding: 4px 9px; }
#noProjects[hidden] { display: none; }
dialog#quickProjectDialog { width: min(94vw, 600px); max-height: 90vh; overflow: auto; border: 1px solid #64748b; border-radius: 8px; }
dialog#quickProjectDialog::backdrop { background: rgba(0,0,0,.7); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery img { max-width: 100%; max-height: 280px; object-fit: contain; }
canvas { width: 100%; max-width: 800px; height: 400px; display: block; background: #fff; border: 1px solid #aeb9c4; touch-action: manipulation; }
.finding p { margin: 8px 0; }
@media (max-width: 600px) { main { padding: 14px; } .actions > button, .actions > .button { width: 100%; } }
@media print {
  nav, .no-print, button, .actions { display: none !important; }
  body { background: white; }
  main { max-width: none; padding: 0; }
  .card, .finding { break-inside: avoid; box-shadow: none; }
  .gallery img { max-height: 220px; }
}
