* { box-sizing: border-box; }
body { margin:0; font-family:Arial, Helvetica, sans-serif; background:#f4f7fb; color:#182236; }
.topbar { background:#102b52; color:white; padding:24px 5vw; display:flex; justify-content:space-between; gap:20px; align-items:center; }
.topbar h1 { margin:0 0 6px; font-size:28px; }
.topbar p { margin:0; opacity:.85; }
.wrap { padding:28px 5vw 50px; }
.btn, button { background:#0f75d1; color:white; border:0; border-radius:10px; padding:11px 16px; text-decoration:none; font-weight:700; cursor:pointer; display:inline-block; }
.btn.secondary { background:rgba(255,255,255,.15); }
.nav-actions { display:flex; gap:10px; flex-wrap:wrap; }
.panel, .empty, .notice { background:white; border-radius:16px; padding:18px; box-shadow:0 10px 28px rgba(18,35,62,.08); }
.notice { margin-bottom:16px; color:#096b3b; font-weight:700; }
.error-box { color:#b42318; background:#fff4f2; }
.panel-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:14px; }
.panel-head h2 { margin:0 0 5px; }
.panel-head p { margin:0; color:#667085; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:880px; }
th, td { padding:13px 12px; border-bottom:1px solid #e8edf5; text-align:left; vertical-align:middle; }
th { background:#f8fafc; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#475467; }
code { background:#eef3fb; padding:5px 7px; border-radius:7px; }
input[type="text"] { width:100%; padding:10px 12px; border:1px solid #d7dfeb; border-radius:9px; font-size:15px; }
.row-status { display:block; min-height:18px; margin-top:5px; font-size:12px; }
.row-status.saving { color:#9a6700; }
.row-status.saved { color:#087443; }
.row-status.failed { color:#b42318; }
.switch { position:relative; display:inline-block; width:58px; height:32px; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; cursor:pointer; background:#cbd5e1; border-radius:999px; transition:.18s; }
.switch span:before { content:""; position:absolute; height:24px; width:24px; left:4px; top:4px; background:white; border-radius:50%; transition:.18s; box-shadow:0 2px 7px rgba(0,0,0,.2); }
.switch input:checked + span { background:#16a34a; }
.switch input:checked + span:before { transform:translateX(26px); }
.badge { display:inline-block; padding:6px 9px; border-radius:999px; font-size:12px; font-weight:700; }
.badge.ok { color:#087443; background:#ecfdf3; }
.badge.warn { color:#b54708; background:#fffaeb; }
.toast { position:fixed; right:22px; bottom:22px; z-index:10; background:#102b52; color:white; padding:13px 16px; border-radius:12px; box-shadow:0 12px 34px rgba(0,0,0,.18); font-weight:700; }
.toast.bad { background:#b42318; }
.login-body { min-height:100vh; display:grid; place-items:center; background:linear-gradient(135deg,#102b52,#168c8c); }
.login-box { width:min(420px, 92vw); background:white; padding:28px; border-radius:20px; box-shadow:0 20px 60px rgba(0,0,0,.18); }
.login-box h1 { margin:0 0 4px; }
.login-subtitle { margin:0 0 18px; color:#667085; }
.login-box label { display:block; font-weight:700; margin:12px 0 6px; }
.login-box input { width:100%; padding:12px; border:1px solid #d7dfeb; border-radius:10px; }
.login-box button { width:100%; margin-top:18px; }
.error { color:#b42318; background:#fff2f1; padding:10px; border-radius:10px; }
@media(max-width:760px){ .topbar, .panel-head { flex-direction:column; align-items:flex-start; } .wrap { padding-left:14px; padding-right:14px; } }
