*, *::before, *::after { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; margin: 0; }
.container-fluid { width: 100%; max-width: 1440px; margin: 0 auto; }
nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color, #cbd5e1); }
nav a { text-decoration: none; font-weight: 600; color: #2563eb; padding: 0.25rem 0.5rem; border-radius: 5px; }
[data-theme="dark"] nav a { color: #60a5fa; }
nav a:hover { background: rgba(37, 99, 235, 0.12); }
article { padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 0.85rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
h1, h2, h3, h4, h5 { margin-top: 0; margin-bottom: 0.65rem; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)); gap: 0.65rem; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }
input, select, textarea { width: 100%; padding: 0.45rem 0.65rem; border: 1px solid var(--border-color, #cbd5e1); border-radius: 6px; font-size: 0.95rem; margin-bottom: 0.55rem; }
input[type="checkbox"] { width: auto; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.25rem; }
button, [role="button"] { display: inline-flex; align-items: center; justify-content: center; padding: 0.45rem 0.85rem; border-radius: 6px; border: 1px solid #2563eb; background: #2563eb; color: #fff; font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none; margin-bottom: 0.4rem; }
button:hover, [role="button"]:hover { filter: brightness(1.08); }
button.contrast { background: #0f172a; border-color: #0f172a; color: #fff; }
[data-theme="dark"] button.contrast { background: #3b82f6; border-color: #3b82f6; color: #fff; }
button.secondary, [role="button"].secondary { background: #475569; border-color: #475569; color: #fff; }
button.outline, [role="button"].outline { background: transparent; color: inherit; border-color: var(--border-color, #94a3b8); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.45rem 0.55rem; }
details.stat-box { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 0.85rem; }
details.stat-box summary { cursor: pointer; list-style: none; }
