 :root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-soft: #dbeafe;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(255,255,255,0.88); border-bottom: 1px solid rgba(226,232,240,.85); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.main-content { padding: 28px 0 44px; }
.footer { padding: 20px 0 40px; color: var(--muted); font-size: .93rem; }
.hero { padding: 28px 0 14px; }
.hero h1, .page-head h1, .card h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.hero p, .page-head p, .muted { color: var(--muted); }
.eyebrow { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid rgba(226,232,240,.9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.narrow-card { max-width: 760px; margin: 0 auto; }
.hero-card { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); }
.filter-card { margin-bottom: 18px; }
.grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: 2fr 1fr; }
.auth-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card span { color: var(--muted); font-size: .95rem; display: block; }
.stat-card strong { display: block; font-size: 2rem; margin-top: 6px; }
.form-grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: white; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.02); }
.btn-secondary { background: #eff6ff; color: #1d4ed8; }
.btn-ghost { background: #f8fafc; color: #334155; border: 1px solid var(--line); }
.btn-sm { padding: 8px 12px; border-radius: 12px; font-size: .88rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row { display: flex; align-items: center; }
.wrap-gap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-danger { background: #fee2e2; color: #991b1b; }
.flash-warning { background: #fef3c7; color: #92400e; }
.flash-info { background: #e0f2fe; color: #075985; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-sand { background: #fef3c7; color: #92400e; }
.tag-mint { background: #dcfce7; color: #166534; }
.tag-lavender { background: #ede9fe; color: #6d28d9; }
.tag-rose { background: #fee2e2; color: #b91c1c; }
.tag-peach { background: #ffedd5; color: #c2410c; }
.tag-slate { background: #e2e8f0; color: #334155; }
.tag-green { background: #bbf7d0; color: #166534; }
.tag-gray { background: #f1f5f9; color: #475569; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: #334155; font-size: .9rem; }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.small-list { font-size: .93rem; }
.event-card h3, .card h2, .card h3 { margin-top: 0; }
.prose p { line-height: 1.65; }
.action-panel { min-width: 280px; display: grid; gap: 12px; }
.side-card { align-self: start; }
.event-header-card textarea { min-height: 92px; }
.agenda-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scan-result { padding: 18px; border-radius: 18px; background: #eef2ff; color: #312e81; }
.scan-result.success { background: #dcfce7; color: #166534; }
.scan-result.danger { background: #fee2e2; color: #991b1b; }
.scan-result.warning { background: #fef3c7; color: #92400e; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 8px; }
@media (max-width: 900px) {
  .cards-3, .cards-2, .detail-grid, .auth-grid, .stats-grid, .two-col { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .nav-row { align-items: flex-start; }
}
