:root { --brand: #0f4c81; --accent: #f59e0b; --text: #1f2937; --muted: #6b7280; --bg: #f4f6fa; --card: #fff; --line: #e5e7eb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
header { background: var(--brand); color: #fff; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.brand { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
nav a, nav .link { color: #fff; text-decoration: none; font-weight: 500; }
nav .who { opacity: .8; }
main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 28px 16px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
h1 { margin-top: 0; color: var(--brand); }
h2.section { margin-top: 28px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.center { text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.narrow { max-width: 420px; margin: 20px auto; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
button, .button { background: var(--brand); color: #fff; border: 0; padding: 11px 20px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { filter: brightness(1.1); }
button.link { background: none; padding: 0; font-weight: 500; }
button.small { padding: 6px 10px; font-size: 13px; }
button.secondary { background: #64748b; }
button.danger { background: #dc2626; }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row label { flex: 1 1 180px; }
.row .grow { flex: 3 1 240px; }
.row button { margin-bottom: 14px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; word-break: break-all; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 10px; padding: 24px; text-decoration: none; color: var(--text); transition: transform .1s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.tile h2 { margin: 0 0 6px; color: var(--brand); }
.list { list-style: none; padding: 0; }
.list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.tag { display: inline-block; background: #e0e7ff; color: #3730a3; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.off { background: #fee2e2; color: #991b1b; }
.exercise { white-space: pre-wrap; background: #f8fafc; border-left: 4px solid var(--accent); padding: 16px 18px; margin: 16px 0 24px; line-height: 1.6; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
th { background: #f8fafc; }
td.actions { display: flex; gap: 6px; }
