:root {
  --bg: #ffffff;
  --surface: #fbfbfd;
  --fg: #111111;
  --muted: #6b7280;
  --line: #ececf1;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --radius: 18px;
}
* { box-sizing: border-box; border-color: var(--line); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 12px 32px -12px rgba(17,17,17,.1);
  padding: 1.25rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 14px; border: 0;
  font-weight: 600; font-size: .875rem; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--fg); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, .select, .textarea {
  width: 100%; height: 2.75rem; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 .9rem; font: inherit; background: #fff;
}
.textarea { height: auto; padding: .75rem .9rem; min-height: 6rem; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.field { margin-bottom: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem;
  font-size: .75rem; font-weight: 600;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(37,99,235,.2); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.alert { border-radius: 14px; border: 1px solid; padding: .85rem 1rem; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(239,68,68,.2); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(16,185,129,.2); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(245,158,11,.25); }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.mark { width: 2rem; height: 2rem; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; font-size: .85rem; }
.nav { display: flex; gap: 1.25rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
@media (max-width: 900px) { .hide-sm { display: none !important; } }
.announce { background: #111; color: #fff; text-align: center; font-size: .8rem; font-weight: 600; padding: .55rem 1rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .75rem .75rem .2rem; margin: 0; }
.sidebar-admin { width: 16.5rem; overflow: auto; }
.admin-wide { max-width: 70rem; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.5rem 0; }
.hero { padding: 5rem 0 3.5rem; background: radial-gradient(60% 60% at 50% 0%, rgba(37,99,235,.09), transparent 70%); }
.cta-dark { background: #111; color: #fff; border-radius: 22px; padding: 3rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-dark p { color: rgba(255,255,255,.7); }
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin: 1rem 0; letter-spacing: -.03em; }
.grid-2 { display: grid; gap: 1rem; }
.grid-3 { display: grid; gap: 1rem; }
.grid-4 { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .875rem; }
.dash { display: flex; min-height: 100dvh; background: var(--surface); }
.sidebar { width: 15rem; background: #fff; border-right: 1px solid var(--line); padding: 1.25rem .75rem; display: none; flex-direction: column; }
.sidebar a, .bottom a {
  display: flex; align-items: center; gap: .7rem; border-radius: 12px; padding: .65rem .75rem;
  font-size: .875rem; font-weight: 500; color: var(--muted);
}
.sidebar a.active, .bottom a.active { background: #111; color: #fff; }
.main { flex: 1; padding: 1.25rem 1.25rem 6rem; }
.main-inner { max-width: 56rem; margin: 0 auto; }
.bottom {
  position: fixed; left: .75rem; right: .75rem; bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 40; display: flex; background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: 16px; padding: .25rem; box-shadow: 0 12px 40px -12px rgba(17,17,17,.28);
}
.bottom a { flex: 1; flex-direction: column; gap: .15rem; font-size: 10px; }
@media (min-width: 1024px) {
  .sidebar { display: flex; }
  .bottom { display: none; }
  .main { padding: 1.5rem 2rem; }
}
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
.auth-grid { min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; background: var(--surface); border-left: 1px solid var(--line); padding: 3.5rem; }
@media (min-width: 1024px) { .auth-side { display: flex; flex-direction: column; justify-content: center; } }
.stat { font-size: 1.4rem; font-weight: 800; }
.progress { height: 8px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.chips { display: flex; gap: .5rem; overflow: auto; padding-bottom: .25rem; }
.chip { height: 2.4rem; border-radius: 999px; border: 1px solid var(--line); padding: 0 1rem; background: #fff; font-size: .875rem; font-weight: 500; cursor: pointer; }
.chip.on { background: #111; color: #fff; border-color: #111; }
