:root {
    --navy: #17365d;
    --blue: #2f75b5;
    --light: #eef3f8;
    --border: #c9d3df;
    --text: #1f2937;
    --green: #207245;
    --red: #b42318;
    --amber: #9a6700;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #f5f7fa; }
.site-header { background: var(--navy); color: #fff; padding: 16px 4%; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.brand { font-size: 1.25rem; font-weight: 700; }
.subtitle { opacity: .9; margin-top: 3px; }
nav { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; font-size: .9rem; }
nav a { color: #fff; }
.container { max-width: 1180px; margin: 24px auto; padding: 0 18px 40px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.narrow { max-width: 520px; margin: 40px auto; }
h1 { color: var(--navy); font-size: 1.55rem; margin: 0 0 18px; }
h2 { color: var(--navy); font-size: 1.15rem; margin-top: 0; }
.muted { color: #5f6b7a; }
.small { font-size: .86rem; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea, select { width: 100%; padding: 10px; border: 1px solid #aebaca; border-radius: 5px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.button, button { display: inline-block; border: 0; border-radius: 5px; padding: 10px 16px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; cursor: pointer; }
.button.secondary, button.secondary { background: #5f6b7a; }
.button.success, button.success { background: var(--green); }
.button.danger, button.danger { background: var(--red); }
.button.small-button { padding: 6px 10px; font-size: .82rem; }
.link-button { padding: 2px 0; border: 0; background: transparent; color: var(--blue); font-size: .82rem; font-weight: 400; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.alert { padding: 12px 14px; border-radius: 5px; margin-bottom: 16px; background: #e8eef5; }
.alert.success { background: #e7f6ec; color: #175c34; }
.alert.error { background: #fdeceb; color: #8a1c13; }
.alert.warning { background: #fff4d6; color: #725100; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--border); padding: 9px; text-align: left; vertical-align: top; }
th { background: var(--navy); color: #fff; }
tr:nth-child(even) td { background: #f8fafc; }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; border-radius: 12px; padding: 3px 9px; font-size: .8rem; font-weight: 700; }
.status.not-started { background: #e8eef5; color: #39485a; }
.status.draft { background: #fff4d6; color: var(--amber); }
.status.submitted { background: #e7f6ec; color: var(--green); }
.question { border-left: 4px solid var(--blue); padding-left: 15px; }
.candidate-card { display: grid; gap: 8px; }
.guide { background: var(--light); border-radius: 5px; padding: 10px; font-size: .9rem; margin: 8px 0 12px; }
.rating { display: flex; flex-wrap: wrap; gap: 8px; }
.rating label { margin: 0; font-weight: 400; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: flex; width: 42px; height: 42px; border: 1px solid #9eabb9; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; background: #fff; }
.rating input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.total-card { position: sticky; bottom: 8px; z-index: 5; display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--navy); box-shadow: 0 3px 14px rgba(23,54,93,.18); }
.total-card strong { color: var(--navy); font-size: 1.7rem; }
.score-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; margin: 8px 0; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.metric { background: var(--light); border-radius: 6px; padding: 14px; }
.metric strong { display: block; font-size: 1.4rem; color: var(--navy); }
footer { text-align: center; color: #64748b; padding: 16px; font-size: .82rem; }
@media (max-width: 720px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    th, td { padding: 7px; }
    .container { margin-top: 15px; }
}
