:root { --navy:#1f2d4d; --orange:#e8762b; }
* { box-sizing: border-box; }
body { margin:0; font-family: 'Segoe UI', Tahoma, sans-serif; background:#f3f5f9; color:#1d2433; }
.topbar { background:var(--navy); padding:14px 22px; }
.topbar a { color:#fff; text-decoration:none; font-weight:700; font-size:18px; }
.wrap { max-width:1200px; margin:22px auto; padding:0 14px; }
.card { background:#fff; border-radius:12px; padding:22px; box-shadow:0 2px 10px rgba(0,0,0,.06); }
h1 { margin:0 0 16px; color:var(--navy); }
label { display:block; margin:10px 0; font-weight:600; }
input, select { display:block; width:100%; padding:9px; margin-top:5px; border:1px solid #cfd6e4; border-radius:8px; font-size:15px; }
button, .btn { background:var(--orange); color:#fff; border:0; padding:11px 18px; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.ghost { background:#eef1f6; color:var(--navy); margin-top:14px; }
.rowflex { display:flex; justify-content:space-between; align-items:center; }
.err { background:#fdecea; border:1.6px solid #e74c3c; color:#9b2c2c; padding:12px; border-radius:8px; margin:10px 0; }
.warn { background:#fff7e6; border:1.4px solid #e8a33d; padding:12px; border-radius:8px; margin:14px 0; }
.assign-row { display:flex; gap:10px; align-items:center; margin:7px 0; }
.assign-row span { flex:1; }
table.report { width:100%; border-collapse:collapse; margin-top:14px; font-size:13px; }
table.report th, table.report td { border:1px solid #e3e8f0; padding:6px 8px; text-align:center; }
table.report th { background:var(--navy); color:#fff; }
tr.total { font-weight:700; background:#eef1f6; }
tr.losing td { background:#ffe3e3; }
.overlay { display:none; position:fixed; inset:0; background:rgba(255,255,255,.85); flex-direction:column; align-items:center; justify-content:center; z-index:9; }
.spinner { width:54px; height:54px; border:6px solid #e0e6f0; border-top-color:var(--orange); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
