:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #718096;
  --line: #e7ebf3;
  --surface: #ffffff;
  --canvas: #f7f9fc;
  --navy: #14244a;
  --blue: #3366e8;
  --blue-dark: #244fbe;
  --cyan: #16b8c8;
  --green: #198754;
  --amber: #c57b09;
  --red: #c2414b;
  --shadow: 0 10px 30px rgba(26, 43, 81, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button, .button { border: 0; border-radius: 9px; padding: 10px 15px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
button:hover, .button:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 7px 16px rgba(51, 102, 232, .18); }
button:active, .button:active { transform: translateY(1px); }
button.secondary, .button.secondary { background: #edf2fb; color: #29477e; }
button.ghost, .button.ghost { background: transparent; color: var(--blue-dark); border: 1px solid var(--line); }
button.danger, .button.danger { background: #fff1f2; color: var(--red); }
button.small, .button.small { padding: 7px 10px; font-size: 12px; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: linear-gradient(180deg, var(--navy) 0%, #101d3d 100%); color: #cbd8f6; padding: 20px 14px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 2px 13px 24px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #6d8cff, #16b8c8); color: #fff; font-weight: 900; box-shadow: 0 7px 18px rgba(22, 184, 200, .2); }
.brand-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; color: #8fa8db; font-size: 11px; margin-top: 1px; }
.nav-label { padding: 14px 13px 7px; color: #6f89bf; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar nav { flex: 1; }
.sidebar a { color: #bdcbee; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; margin: 2px 0; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: rgba(118, 145, 211, .16); color: #fff; }
.nav-icon { width: 22px; text-align: center; color: #87a4e4; font-size: 16px; }
.nav-link.active .nav-icon { color: #7ee7e8; }
.sidebar-footer { padding: 15px 12px 2px; border-top: 1px solid rgba(255,255,255,.09); color: #8fa8db; font-size: 12px; }
.sidebar-footer a { display: flex; gap: 8px; padding-top: 11px; color: #bdcbee; }
.main { flex: 1; min-width: 0; }
.topbar { min-height: 72px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 34px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.topbar-right, .user-menu { display: flex; align-items: center; gap: 14px; }
.notification-link { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: #60708e; border-radius: 9px; }
.notification-link:hover { background: #f0f4fb; }
.notification-count { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 800; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e7efff; color: var(--blue-dark); font-weight: 800; font-size: 12px; }
.user-name { font-weight: 700; font-size: 13px; }
.content { padding: 32px 34px 54px; max-width: 1560px; margin: 0 auto; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-title h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.page-title p { margin: 7px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card { padding: 19px; }
.metric-card { position: relative; overflow: hidden; min-height: 128px; }
.metric-card::after { content: ""; width: 70px; height: 70px; position: absolute; right: -20px; bottom: -24px; border-radius: 50%; background: #eff4ff; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric { font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; position: relative; z-index: 1; }
.metric-note { color: var(--muted); font-size: 11px; margin-top: 5px; position: relative; z-index: 1; }
.metric-icon { position: absolute; top: 17px; right: 18px; font-size: 20px; color: #7d98e1; z-index: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 21px; margin-bottom: 19px; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.panel h2 { font-size: 17px; line-height: 1.25; margin: 0; letter-spacing: -.015em; }
.panel h3 { font-size: 14px; margin: 0 0 11px; }
.panel-subtitle { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.panel-muted { background: #fbfcfe; box-shadow: none; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
.filter-bar .field { min-width: 160px; flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field.full { grid-column: 1 / -1; }
label { display: block; color: #52617a; font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.help { color: var(--muted); font-size: 11px; margin-top: 5px; }
input, select, textarea { width: 100%; border: 1px solid #d7deeb; border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #7b9af1; box-shadow: 0 0 0 3px rgba(51,102,232,.11); }
textarea { min-height: 128px; resize: vertical; }
select[multiple] { min-height: 122px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: #52617a; font-size: 13px; }
.check-row input { width: auto; margin-top: 4px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 17px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
th { color: #78869d; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
td { color: #33415b; }
tbody tr:hover { background: #fbfcff; }
tbody tr:last-child td { border-bottom: 0; }
.table-primary { color: var(--ink); font-weight: 750; }
.table-secondary { color: var(--muted); font-size: 12px; margin-top: 2px; }
.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 27px; opacity: .55; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: #eef2f7; color: #5e6c81; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.success, .badge.published, .badge.active, .badge.completed { background: #e9f8ef; color: var(--green); }
.badge.info, .badge.scheduled, .badge.member { background: #eaf1ff; color: var(--blue-dark); }
.badge.warning, .badge.draft, .badge.past_due { background: #fff5df; color: var(--amber); }
.badge.danger, .badge.failed, .badge.cancelled, .badge.inactive { background: #fff0f1; color: var(--red); }
.badge.sending, .badge.processing { background: #e8f8fa; color: #078392; }
.alert, .error { padding: 12px 15px; border: 1px solid; border-radius: 10px; margin-bottom: 18px; }
.alert { background: #ecfaf1; border-color: #bde7cc; color: #176b35; }
.error { background: #fff1f2; border-color: #f5c5ca; color: #9e2834; }
.flash { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.number { font-variant-numeric: tabular-nums; }
.funnel { display: grid; gap: 13px; }
.funnel-row { display: grid; grid-template-columns: 116px 1fr 46px; align-items: center; gap: 11px; font-size: 12px; }
.funnel-track { height: 11px; background: #edf1f7; border-radius: 99px; overflow: hidden; }
.funnel-bar { height: 100%; background: linear-gradient(90deg, var(--blue), #6e8ff3); border-radius: inherit; min-width: 5px; }
.funnel-step { color: #57657c; }
.funnel-value { text-align: right; font-weight: 800; }
.conversion-list { display: grid; gap: 13px; }
.conversion-row { display: flex; justify-content: space-between; align-items: center; }
.conversion-row span { color: var(--muted); font-size: 12px; }
.conversion-row strong { font-size: 16px; }
.progress { height: 7px; overflow: hidden; background: #edf1f7; border-radius: 99px; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--cyan); border-radius: inherit; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; }
.quick-action:hover { border-color: #b9c9ef; background: #f8faff; }
.quick-action-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef3ff; color: var(--blue-dark); }
.step-list { display: grid; gap: 9px; }
.step-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fcfdff; }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #eaf1ff; color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.code { padding: 2px 5px; border-radius: 5px; background: #f0f3f8; color: #56647b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.json-preview { max-height: 160px; overflow: auto; padding: 12px; border-radius: 9px; background: #111b32; color: #c4d3f7; white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--canvas); }
.login-hero { display: flex; flex-direction: column; justify-content: space-between; padding: 58px 8vw 45px; background: linear-gradient(145deg, #13234a, #1b3b78); color: #fff; }
.login-hero h1 { max-width: 500px; font-size: clamp(35px, 4vw, 58px); line-height: 1.06; letter-spacing: -.06em; margin: 45px 0 18px; }
.login-hero p { max-width: 450px; color: #b9caf1; font-size: 16px; }
.login-points { display: grid; gap: 10px; color: #d9e4ff; font-size: 13px; }
.login-points i { color: #7ee7e8; margin-right: 8px; width: 14px; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(420px, 100%); padding: 34px; }
.login-card h1 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.04em; }
.login-card .button, .login-card button { width: 100%; margin-top: 20px; }
.login-footer { margin-top: 22px; color: var(--muted); font-size: 12px; }
.public-page { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.public-brand { display: flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 800; margin-bottom: 24px; }
.public-brand .brand-mark { width: 30px; height: 30px; font-size: 12px; }
.event-hero { padding: 27px; background: linear-gradient(135deg, #eef4ff, #ecfbfb); border: 1px solid #dce6fa; border-radius: 16px; margin-bottom: 18px; }
.event-hero h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.event-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 11px; }
.post-card { overflow: hidden; }
.post-card img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.post-card-body { padding: 18px; }
.post-card h2 { margin: 0 0 6px; font-size: 19px; }
.post-content { white-space: pre-wrap; font-size: 15px; line-height: 1.8; }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sidebar { width: 76px; flex-basis: 76px; padding-inline: 9px; } .brand { justify-content: center; padding-inline: 4px; } .brand-copy, .nav-label, .nav-link span:not(.nav-icon), .sidebar-footer span { display: none; } .nav-link { justify-content: center; padding: 11px 8px; } .nav-icon { width: auto; } .content { padding-inline: 23px; } .topbar { padding-inline: 23px; } .user-name { display: none; } }
@media (max-width: 700px) { .cards, .grid-2, .grid-3 { grid-template-columns: 1fr; } .form-grid, .form-grid.three { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .page-title { flex-direction: column; } .topbar { min-height: 62px; } .content { padding: 23px 14px 40px; } .login-page { grid-template-columns: 1fr; } .login-hero { display: none; } .login-panel { min-height: 100vh; padding: 16px; } .login-card { padding: 27px 22px; } .funnel-row { grid-template-columns: 95px 1fr 40px; } .quick-actions { grid-template-columns: 1fr; } }
