* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
       background: #f4f6f8; color: #1f2933; line-height: 1.55; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header { background: #1f4e79; color: #fff; margin-bottom: 24px; }
.nav { display: flex; justify-content: space-between; align-items: center;
       padding: 12px 16px; }
.brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
header nav a { color: #cfe2f3; text-decoration: none; margin-left: 16px; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; margin-top: 28px; }
.card { background: #fff; border: 1px solid #e0e6ea; border-radius: 10px;
        padding: 18px 20px; margin-bottom: 16px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #c3ccd3;
        border-radius: 6px; font: inherit; }
textarea { min-height: 90px; }
button, .btn { display: inline-block; background: #1f4e79; color: #fff;
        border: none; border-radius: 6px; padding: 9px 16px; font: inherit;
        font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 10px; }
button.secondary, .btn.secondary { background: #eef2f5; color: #1f4e79; }
button.danger { background: #b3392f; }
button:hover, .btn:hover { opacity: .92; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash.ok { background: #e3f5e5; border: 1px solid #9ed3a3; }
.flash.error { background: #fdeaea; border: 1px solid #eba7a2; }
.tag { display: inline-block; background: #eef2f5; border-radius: 999px;
       padding: 2px 10px; font-size: .85rem; margin: 2px; }
.tag.ok { background: #e3f5e5; } .tag.miss { background: #fdeaea; }
.muted { color: #6b7680; font-size: .9rem; }
.due { border-left: 4px solid #d99a2b; }
.pending { border-left: 4px solid #d99a2b; }
.approved { border-left: 4px solid #4a9e52; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 8px 6px; border-bottom: 1px solid #e8ecef; text-align: left; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.material-text { white-space: pre-wrap; background: #fafbfc; border: 1px solid
       #e8ecef; border-radius: 6px; padding: 12px; max-height: 320px;
       overflow-y: auto; font-size: .92rem; }
.center { text-align: center; }
.answerbox { background: #f0f6ff; border: 1px solid #bcd4ee; border-radius: 6px;
       padding: 12px 14px; }
.progress { background: #e8ecef; border-radius: 999px; height: 12px;
       margin: 10px 0; overflow: hidden; }
.progress-fill { background: #4a9e52; height: 100%; border-radius: 999px;
       transition: width .3s; }
