:root { --navy: #0a1a4a; --yellow: #f5d000; --red: #d21c1c; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8fafc;
  color: #171717;
}
a { color: inherit; }
.header {
  background: var(--navy);
  color: #fff;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav button { background: none; border: none; color: #fff; cursor: pointer; font: inherit; padding: 0; }
.sync-banner { width: 100%; text-align: center; font-size: 0.75rem; padding: 4px; }
.sync-online { background: #d1fae5; color: #064e3b; }
.sync-pending { background: #fef3c7; color: #78350f; }
.sync-offline { background: #e2e8f0; color: #334155; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px; min-height: 60vh; }
footer { text-align: center; font-size: 0.75rem; color: #94a3b8; padding: 16px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { background: #f8fafc; }
.card-title { font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 0.85rem; color: #64748b; }

.list { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.list-item { padding: 12px 14px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.list-item:first-child { border-top: none; }
.list-item:hover { background: #f8fafc; }
.muted { color: #94a3b8; font-size: 0.8rem; }

h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
p.lead { color: #64748b; font-size: 0.9rem; margin-top: 0; }

label.field-label { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 4px; }
input, select, textarea {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; font: inherit; width: 100%;
}
.row { display: grid; gap: 10px; }
.row-2 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row-4 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.btn { display: inline-block; background: var(--navy); color: #fff; border: none; border-radius: 6px; padding: 9px 16px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: 0.92; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #cbd5e1; }
.btn-danger { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

.shot-input { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: #64748b; gap: 2px; }
.shot-input input { width: 52px; text-align: center; padding: 6px 4px; }
.shot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form-section { border-top: 1px solid #e2e8f0; padding-top: 14px; margin-top: 14px; }
.form-section h3 { font-size: 0.9rem; margin: 0 0 8px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; }
.badge-rank1 { background: #fef3c7; color: #78350f; }

table { border-collapse: collapse; width: 100%; background: #fff; }
table th, table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
table th { color: #64748b; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }

.alert { border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; }
.alert-success { background: #d1fae5; border: 1px solid #a7f3d0; color: #064e3b; }
.alert-error { background: #fee2e2; border: 1px solid #fecaca; color: #7f1d1d; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 0.85rem; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.login-card { background: #fff; border-radius: 12px; padding: 32px; width: 100%; max-width: 360px; }
.login-card img { width: 56px; margin-bottom: 12px; }
