:root{--accent: #2563eb;--danger: #dc2626;--muted: #64748b;--line: #e2e8f0}*{box-sizing:border-box}body{margin:0;font-family:system-ui,sans-serif;color:#0f172a;background:#f8fafc}#app{max-width:900px;margin:0 auto;padding:1.5rem}header p{display:flex;gap:.5rem;align-items:center;color:var(--muted)}#api-status{display:inline-block;padding:.2rem .7rem;border-radius:999px;background:#e2e8f0;font-size:.85rem}#api-status.ok{background:#dcfce7;color:#166534}#api-status.ko{background:#fee2e2;color:#991b1b}#api-url{font-size:.85rem}section{background:#fff;border:1px solid var(--line);border-radius:.5rem;padding:1rem;margin-bottom:1rem}h1{font-size:1.5rem;margin:0 0 .25rem}h2{font-size:1.1rem;margin:0 0 .75rem}#student-form{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}#student-form button{grid-column:1 / -1;justify-self:start}input{padding:.5rem;border:1px solid var(--line);border-radius:.375rem;font:inherit}button{padding:.45rem .9rem;border-radius:.375rem;border:1px solid var(--line);background:#fff;cursor:pointer;font:inherit}button[type=submit]{background:var(--accent);border-color:var(--accent);color:#fff}button:hover{filter:brightness(.96)}button.danger{color:var(--danger);border-color:#fecaca}#form-error{color:var(--danger);min-height:1.2em;margin:.5rem 0 0}#students-table{width:100%;border-collapse:collapse}#students-table th,#students-table td{text-align:left;padding:.5rem;border-bottom:1px solid var(--line)}#students-table th{color:var(--muted);font-weight:600;font-size:.85rem}td.actions{display:flex;gap:.4rem}@media(max-width:640px){#app{padding:1rem}section{overflow-x:auto}#students-table{min-width:560px}}
