:root {
  --navy: #0F2537;
  --cerulean: #0284C7;
  --cerulean-dark: #0369A1;
  --bg: #F4F7FA;
  --border: #DCE4EC;
  --text: #1E293B;
  --muted: #64748B;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; width: 100%; }
.main-wrap { flex: 1; padding-top: 24px; padding-bottom: 36px; }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(15,37,55,0.18); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-badge { width: 36px; height: 36px; border-radius: 8px; background: var(--cerulean); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.brand-name { display: block; font-size: 16px; line-height: 1.2; }
.brand-sub { display: block; font-size: 11px; color: #BAE6FD; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.main-nav a { color: #E0F2FE; text-decoration: none; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 6px; transition: background 0.15s; }
.main-nav a:hover { background: rgba(255,255,255,0.12); }
.main-nav a.active { background: var(--cerulean); color: #fff; }
.main-nav a.nav-admin { border: 1px solid rgba(186,230,253,0.35); }
.badge { background: #38BDF8; color: var(--navy); font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(15,37,55,0.05); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.grid-2-asym { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .grid-2-asym { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cerulean); box-shadow: 0 0 0 3px rgba(2,132,199,0.15); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-primary { background: var(--cerulean); color: #fff; }
.btn-primary:hover { background: var(--cerulean-dark); }
.btn-primary:disabled { background: #CBD5E1; cursor: not-allowed; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--navy); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #E0F2FE; color: var(--cerulean-dark); border: 1px solid #BAE6FD; }
.pill-warn { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.result-box { background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 10px; padding: 16px; margin-top: 16px; }
.nomatch-box { background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 10px; padding: 16px; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.error-inline { color: #DC2626; font-size: 12px; font-weight: 600; margin-left: 8px; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 20px rgba(15,37,55,0.12); max-height: 200px; overflow-y: auto; z-index: 40; display: none; }
.ac-item { padding: 7px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #F1F5F9; display: flex; justify-content: space-between; }
.ac-item:hover { background: #E0F2FE; color: var(--cerulean-dark); }
.hidden { display: none !important; }
.site-footer { background: #fff; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
table.excel-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.excel-tbl th, table.excel-tbl td { border-bottom: 1px solid var(--border); padding: 7px 8px; text-align: left; white-space: nowrap; }
table.excel-tbl th { background: #F1F5F9; color: var(--navy); font-weight: 600; }
