* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f5f6f8; color: #1a1a1a; }
header { background: #16213e; color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
header a { color: white; text-decoration: none; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.card { background: white; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
h1, h2, h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 14px; }
form.inline { display: inline; }
label { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
button { background: #16213e; color: white; border: none; padding: 10px 16px; border-radius: 4px; cursor: pointer; margin-top: 12px; font-size: 14px; }
button.secondary { background: #6c757d; }
button.danger { background: #a4161a; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; color: white; background: #6c757d; }
.badge.error { background: #a4161a; }
.badge.task { background: #b5651d; }
.badge.info { background: #0f4c81; }
.error-msg { color: #a4161a; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#sig-pad { border: 1px solid #ccc; touch-action: none; background: white; }
