:root {
  --blue: #002dbb;
  --blue-600: #0038d8;
  --blue-700: #00249a;
  --blue-soft: #eaf0ff;
  --blue-rgb: 0, 45, 187;
  --teal: #00d2a0;
  --teal-dark: #00a884;
  --teal-soft: #e6faf4;
  --teal-rgb: 0, 210, 160;
  --ink: #0b1b3f;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6ebf4;
  --surface: #f5f8fe;
  --white: #fff;
  --amber: #f79009;
  --amber-soft: #fff7e8;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --green: #12b76a;
  --green-soft: #eafaf1;
  --violet: #7a5af8;
  --navy: #071a3f;
  --brand-grad-1: #001a75;
  --brand-grad-2: #002dbb;
  --brand-grad-3: #003ecb;
  --brand-glow-rgb: 0, 89, 255;
  --hero-grad-1: #001d86;
  --hero-grad-2: #002dbb;
  --hero-grad-3: #0041d6;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .03);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-lg: 0 28px 70px rgba(9, 30, 84, .16);
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ---------- boot ---------- */
.app-root { min-height: 100vh; }
.boot-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 26px; background: radial-gradient(circle at 50% 20%, #eef4ff 0, #f8faff 55%, #f5f8fe 100%); }
.boot-logo img { width: 210px; }
.boot-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #d9e3fa; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 44px 54px;
  background:
    radial-gradient(900px 520px at 78% 10%, rgba(var(--teal-rgb), .24), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(var(--brand-glow-rgb), .6), transparent 65%),
    linear-gradient(145deg, var(--brand-grad-1) 0%, var(--brand-grad-2) 47%, var(--brand-grad-3) 100%);
  display: flex; flex-direction: column; min-height: 100vh;
}
.auth-brand:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 45%, #000 20%, transparent 78%);
}
.auth-brand-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.auth-brand-top img { width: 196px; }
.auth-brand-badge { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); padding: 7px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.auth-hero { position: relative; z-index: 2; margin-top: auto; margin-bottom: auto; padding: 48px 0 24px; max-width: 560px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: color-mix(in srgb, var(--teal) 62%, #fff); text-transform: uppercase; margin-bottom: 18px; }
.auth-kicker span { width: 22px; height: 2px; background: var(--teal); display: inline-block; }
.auth-hero h1 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.07; margin: 0 0 20px; letter-spacing: -1.6px; font-weight: 800; }
.auth-hero h1 em { font-style: normal; color: color-mix(in srgb, var(--teal) 58%, #fff); }
.auth-hero p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.76); max-width: 490px; margin: 0; }
.auth-visual { position: relative; z-index: 2; margin: 42px 0 34px; height: 210px; }
.auth-visual .map-card {
  position: absolute; inset: 0 auto auto 0; width: 390px; max-width: 92%; height: 186px; border-radius: 20px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); overflow: hidden; backdrop-filter: blur(6px);
}
.auth-visual .map-card svg { width: 100%; height: 100%; }
.pulse-dot { animation: pulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity: .65; transform: scale(.7);} 70% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(1.7);} }
.float-card {
  position: absolute; right: 0; bottom: -10px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center; width: 236px;
}
.float-card .icon { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); font-size: 11px; }
.auth-points { position: relative; z-index: 2; display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.72); }
.auth-points span { display: inline-flex; align-items: center; gap: 7px; }
.auth-points i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; display: inline-block; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 6vw; background: linear-gradient(180deg,#fff 0%,#fbfcff 100%); }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.9px; }
.auth-box > p { color: var(--muted); font-size: 14px; margin: 0 0 26px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f2f5fb; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.auth-footnote { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.auth-invite-badge { background: var(--blue-soft); color: var(--blue); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; gap: 9px; align-items: center; margin-bottom: 20px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #dce3ef; border-radius: 11px; background: #fff; color: var(--ink);
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 14px;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: color-mix(in srgb, var(--blue) 55%, #fff); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .08); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #98a2b3; }
.input-icon .input { padding-left: 40px; }
.checkline { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.checkline input { width: 16px; height: 16px; accent-color: var(--blue); }

.btn {
  border: 1px solid transparent; border-radius: 11px; padding: 11px 16px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(var(--blue-rgb), .2); }
.btn-primary:hover { background: var(--blue-600); }
.btn-teal { background: var(--teal); color: #003b30; }
.btn-teal:hover { background: #00e0ab; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c8d3e6; background: #fafbff; }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-danger-soft { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 14px; border-radius: 13px; }
.btn-full { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn:hover { background: #f8faff; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 40; padding: 22px 16px 18px;
}
.sidebar-logo { padding: 2px 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-logo img { width: 166px; }
.workspace-chip { margin: 0 6px 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 10px; align-items: center; background: linear-gradient(180deg,#fbfcff,#f7f9ff); }
.workspace-chip .avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.workspace-chip b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 152px; }
.workspace-chip small { color: var(--muted); font-size: 10px; }
.nav-label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #98a2b3; font-weight: 700; padding: 10px 12px 8px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #475467; font-size: 13px; font-weight: 600; position: relative; }
.nav a svg { color: #7f8ba3; }
.nav a:hover { background: #f6f8fd; color: var(--ink); }
.nav a.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.nav a.active svg { color: var(--blue); }
.nav a.active:before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.nav .nav-badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 6px; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { background: linear-gradient(150deg,var(--blue-700),var(--blue-600)); color: #fff; border-radius: 14px; padding: 16px; margin: 18px 2px; position: relative; overflow: hidden; }
.sidebar-help:after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(var(--teal-rgb),.25); right: -40px; top: -30px; }
.sidebar-help b { display: block; font-size: 12px; margin-bottom: 5px; position: relative; z-index: 2; }
.sidebar-help p { font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,.72); margin: 0 0 11px; position: relative; z-index: 2; }
.sidebar-help a { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #7ff3d7; font-weight: 700; position: relative; z-index: 2; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.user-mini .avatar { width: 34px; height: 34px; border-radius: 50%; background: #e8f7f2; color: #00876a; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.user-mini b { font-size: 12px; display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini small { color: var(--muted); font-size: 10px; display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini button { margin-left: auto; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar {
  height: 74px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 18px; padding: 0 30px; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px);
}
.topbar .crumb { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.topbar h1 { font-size: 17px; margin: 2px 0 0; letter-spacing: -.3px; }
.topbar-spacer { flex: 1; }
.topbar-search { width: 260px; position: relative; }
.topbar-search .input { padding: 9px 12px 9px 36px; background: #f7f9fd; border-color: transparent; font-size: 12px; border-radius: 10px; }
.topbar-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #98a2b3; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(18,183,106,.12); }
.env-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 11px; font-size: 11px; color: var(--ink-2); font-weight: 600; }

.content { padding: 28px 30px 56px; max-width: 1560px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-head h2 { font-size: 25px; letter-spacing: -.7px; margin: 0 0 5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.page-head .actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- cards / stats ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: 28px 30px; margin-bottom: 20px;
  background: radial-gradient(680px 300px at 88% 8%, rgba(var(--teal-rgb), .32), transparent 60%), linear-gradient(120deg, var(--hero-grad-1), var(--hero-grad-2) 55%, var(--hero-grad-3));
  display: flex; align-items: center; gap: 26px; min-height: 176px;
}
.hero:after { content: ""; position: absolute; right: -60px; bottom: -100px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.025); }
.hero .copy { position: relative; z-index: 2; max-width: 600px; }
.hero .eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #7ff3d7; display: flex; align-items: center; gap: 8px; }
.hero .eyebrow:before { content: ""; width: 20px; height: 2px; background: var(--teal); }
.hero h3 { font-size: 27px; letter-spacing: -.7px; margin: 10px 0 8px; line-height: 1.15; }
.hero p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 470px; }
.hero .actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.17); }
.hero-art { margin-left: auto; position: relative; z-index: 2; width: 320px; flex: none; }
.hero-art svg { width: 100%; height: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-card .label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat-card .val { font-size: 29px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-card .sub { font-size: 10.5px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.stat-card .sub b { color: var(--green); }
.stat-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal-dark); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.violet { background: #f1edff; color: var(--violet); }
.stat-card:after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; right: -28px; bottom: -38px; background: #f3f6fd; }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card-head h4 { font-size: 14px; margin: 0; letter-spacing: -.2px; }
.card-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.card-head .actions { margin-left: auto; display: flex; gap: 7px; }
.card-body { padding: 18px 20px 20px; }
.chart-wrap { position: relative; }
.chart-legend { display: flex; gap: 16px; font-size: 10.5px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.chart-svg { width: 100%; height: 210px; overflow: visible; }
.chart-tooltip { position: absolute; background: var(--ink); color: #fff; border-radius: 8px; font-size: 10px; padding: 5px 8px; pointer-events: none; transform: translate(-50%,-130%); white-space: nowrap; opacity: 0; transition: opacity .12s; }

.quick-list { display: flex; flex-direction: column; gap: 9px; }
.quick-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.quick-item:hover { border-color: #c9d6ef; background: #fbfcff; }
.quick-item .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.quick-item .ic.teal { background: var(--teal-soft); color: var(--teal-dark); }
.quick-item .ic.amber { background: var(--amber-soft); color: var(--amber); }
.quick-item b { display: block; font-size: 12px; }
.quick-item small { font-size: 10.5px; color: var(--muted); }
.quick-item svg.chev { margin-left: auto; color: #b0b9c9; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; color: #7d879b; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid #f0f3f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcff; }
.table .main-cell b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.table .main-cell small { color: var(--muted); font-size: 10.5px; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .em-icon { width: 56px; height: 56px; border-radius: 16px; background: #f3f6fd; display: grid; place-items: center; margin: 0 auto 14px; color: #98a2b3; }
.empty h5 { margin: 0 0 6px; color: var(--ink); font-size: 14px; }
.empty p { margin: 0 auto 16px; font-size: 12px; max-width: 340px; line-height: 1.6; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.chip:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.active, .chip.sent, .chip.delivered, .chip.read, .chip.approved, .chip.completed { background: var(--green-soft); color: #087443; }
.chip.scheduled, .chip.pending { background: var(--amber-soft); color: #b54708; }
.chip.sending, .chip.queued, .chip.draft { background: var(--blue-soft); color: var(--blue); }
.chip.paused, .chip.inactive { background: #f2f4f7; color: #667085; }
.chip.failed, .chip.rejected { background: var(--red-soft); color: #b42318; }
.chip.mode { background: #f4f7ff; color: #3b5bdb; }
.chip.mode.enter { background: var(--teal-soft); color: #087e65; }
.chip.mode.exit { background: #fff4e8; color: #b54708; }
.chip.mode:before { display: none; }

/* ---------- filters ---------- */
.filterbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.filterbar .input, .filterbar .select { padding: 9px 12px; font-size: 12px; border-radius: 10px; width: auto; }
.filterbar .select { min-width: 150px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f2f5fb; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.seg { display: flex; background: #eef2f9; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 7px 11px; border-radius: 8px; }
.seg button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #98a2b3; }
.searchbox .input { padding-left: 34px; min-width: 220px; }

/* ---------- campaign cards ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.camp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 232px; transition: box-shadow .18s, transform .18s, border-color .18s; }
.camp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d7e1f3; }
.camp-card .top { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.camp-card h4 { font-size: 14px; margin: 0 0 3px; line-height: 1.4; }
.camp-card .meta { color: var(--muted); font-size: 10.5px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.camp-card .body { flex: 1; }
.camp-line { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); margin: 7px 0; }
.camp-line svg { color: #8b96aa; flex: none; }
.camp-line b { font-weight: 600; }
.progress { height: 6px; background: #eef2f9; border-radius: 99px; overflow: hidden; margin: 7px 0 4px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #3b73ff); }
.progress i.ok { background: linear-gradient(90deg, #00b98e, var(--teal)); }
.camp-card .foot { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #f0f3f9; }
.camp-card .foot .kpi { font-size: 10px; color: var(--muted); }
.camp-card .foot .kpi b { color: var(--ink); font-size: 12px; }
.camp-card .foot .actions { margin-left: auto; display: flex; gap: 4px; }

/* ---------- templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tpl-preview { background: #e9e3d8; padding: 16px; min-height: 210px; background-image: radial-gradient(#d8d1c4 1px, transparent 1px); background-size: 12px 12px; }
.wa-bubble { background: #fff; border-radius: 4px 12px 12px 12px; padding: 9px 10px 7px; box-shadow: 0 1px 1px rgba(0,0,0,.12); font-size: 11px; line-height: 1.5; color: #111; max-width: 100%; position: relative; }
.wa-bubble .hdr { font-weight: 700; margin-bottom: 3px; }
.wa-bubble .ftr { color: #8696a0; font-size: 9.5px; margin-top: 4px; }
.wa-bubble .time { color: #8696a0; font-size: 8.5px; text-align: right; margin-top: 3px; }
.wa-btn { border-top: 1px solid #e9edef; margin-top: 7px; padding-top: 1px; }
.wa-btn div { color: #027eb5; text-align: center; font-size: 10px; font-weight: 600; padding: 5px 0; border-bottom: 1px solid #e9edef; }
.wa-btn div:last-child { border-bottom: 0; }
.tpl-info { padding: 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tpl-info h4 { font-size: 13px; margin: 0; word-break: break-word; }
.tpl-info .meta { display: flex; gap: 5px; flex-wrap: wrap; }
.tpl-info .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; border-top: 1px solid #f0f3f9; }

/* ---------- map ---------- */
.map-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; min-height: 560px; }
.map-side { display: flex; flex-direction: column; gap: 10px; max-height: 700px; overflow: auto; }
.geo-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.geo-item:hover, .geo-item.active { border-color: color-mix(in srgb, var(--blue) 45%, #fff); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .06); }
.geo-item .top { display: flex; align-items: center; gap: 9px; }
.geo-item .ic { width: 31px; height: 31px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; flex: none; }
.geo-item b { display: block; font-size: 12px; }
.geo-item small { color: var(--muted); font-size: 10px; }
.geo-item p { font-size: 10.5px; color: var(--muted); line-height: 1.45; margin: 8px 0 0; }
.geo-item .foot { display: flex; gap: 6px; margin-top: 9px; }
.map-card-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.map-toolbar { position: absolute; z-index: 500; top: 12px; left: 54px; right: 12px; display: flex; gap: 7px; align-items: center; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.map-toolbar .map-hint { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 11px; color: var(--ink-2); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.map-toolbar .actions { margin-left: auto; display: flex; gap: 6px; }
.map-canvas { width: 100%; height: 100%; min-height: 560px; background: #e8eef7; }
.map-canvas .leaflet-container, .map-canvas.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 8px !important; }
.custom-marker { width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--blue); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(11,27,63,.3); }
.custom-marker:after { content: ""; display: block; width: 8px; height: 8px; background: #fff; border-radius: 50%; margin: 8px; }
.custom-marker.enter { background: var(--teal-dark); }
.custom-marker.exit { background: var(--amber); }
.custom-marker.customer { background: #fff; border: 2px solid var(--blue); border-radius: 50% 50% 50% 4px; }
.custom-marker.customer:after { background: var(--blue); }
.map-vertex { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 2px 6px rgba(11,27,63,.25); }
.leaflet-popup-content { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7,19,48,.46); backdrop-filter: blur(3px); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: 20px; width: 560px; max-width: 100%; box-shadow: var(--shadow-lg); animation: pop .18s ease; overflow: hidden; margin: auto; }
@keyframes pop { from { transform: translateY(10px) scale(.99); opacity: .6; } }
.modal.wide { width: 880px; }
.modal.xwide { width: 1080px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head h3 { font-size: 18px; margin: 0 0 3px; letter-spacing: -.4px; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.modal-head .icon-btn { margin-left: auto; flex: none; }
.modal-body { padding: 20px 24px 24px; }
.modal-foot { padding: 0 24px 24px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-foot.spread { justify-content: space-between; }
.steps { display: flex; gap: 8px; padding: 16px 24px 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #98a2b3; font-weight: 700; }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f1f4fa; color: #98a2b3; font-size: 10px; font-style: normal; }
.step.active { color: var(--blue); }
.step.active i { background: var(--blue); color: #fff; }
.step.done i { background: var(--teal); color: #003d31; }
.step-line { width: 22px; height: 1px; background: var(--line); margin: 0 2px; align-self: center; }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mode-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; position: relative; background: #fff; transition: border-color .15s, background .15s; }
.mode-card:hover { border-color: #bdcdf0; }
.mode-card.selected { border-color: var(--blue); background: color-mix(in srgb, var(--blue-soft) 55%, #fff); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .07); }
.mode-card .mi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 9px; }
.mode-card.selected .mi { background: var(--blue); color: #fff; }
.mode-card b { display: block; font-size: 11.5px; margin-bottom: 3px; }
.mode-card small { font-size: 9.5px; color: var(--muted); line-height: 1.45; display: block; }
.mode-card .check { position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; }
.mode-card.selected .check { display: grid; }

.tpl-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 280px; overflow: auto; }
.tpl-pick-item { border: 1px solid var(--line); border-radius: 11px; padding: 11px; cursor: pointer; background: #fff; }
.tpl-pick-item:hover { border-color: #bdcdf0; }
.tpl-pick-item.selected { border-color: var(--blue); background: color-mix(in srgb, var(--blue-soft) 55%, #fff); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .06); }
.tpl-pick-item b { font-size: 11.5px; display: block; margin-bottom: 3px; }
.tpl-pick-item small { font-size: 10px; color: var(--muted); display: block; line-height: 1.45; }
.tpl-pick-item .meta { display: flex; gap: 4px; margin-top: 7px; }

.summary-box { background: #f8faff; border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.summary-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; padding: 7px 0; border-bottom: 1px dashed #e8edf7; }
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); width: 132px; flex: none; font-size: 11px; }
.summary-row .v { font-weight: 600; word-break: break-word; }
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.wa-preview-phone { background: #efe7db; border-radius: 16px; padding: 20px 16px; min-height: 280px; background-image: radial-gradient(#dcd3c5 1px, transparent 1px); background-size: 12px 12px; }
.wa-preview-phone .wa-bubble { max-width: 92%; font-size: 11.5px; }
.preview-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 9px; }

/* ---------- reports ---------- */
.report-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.mini-stat small { font-size: 9.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.mini-stat b { font-size: 20px; letter-spacing: -.5px; }
.pagination { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pagination .spacer { flex: 1; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.user-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.user-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.user-card b { display: block; font-size: 12.5px; }
.user-card small { font-size: 10.5px; color: var(--muted); }
.user-card .right { margin-left: auto; text-align: right; }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f3f9; }
.invite-row:last-child { border-bottom: 0; }
.invite-row .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-soft); color: #b54708; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.invite-row b { display: block; font-size: 12px; }
.invite-row small { font-size: 10px; color: var(--muted); }
.invite-row .actions { margin-left: auto; display: flex; gap: 5px; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card h4 { font-size: 13.5px; margin: 0 0 4px; }
.settings-card p.desc { font-size: 11px; color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.setting-line { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f0f3f9; font-size: 11.5px; }
.setting-line:last-child { border-bottom: 0; }
.setting-line .k { color: var(--muted); }
.setting-line .v { margin-left: auto; font-weight: 600; text-align: right; }
.code-pill { background: #f6f8fc; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; word-break: break-all; }
.phone-option { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 7px; cursor: pointer; }
.phone-option:hover { border-color: #bdcdf0; }
.phone-option.selected { border-color: var(--blue); background: #f7f9ff; }
.phone-option b { font-size: 11px; display: block; }
.phone-option small { font-size: 9.5px; color: var(--muted); }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7,19,48,.35); z-index: 1800; }
.drawer { position: fixed; z-index: 1850; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .5; } }
.drawer-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 10px; }
.drawer-body { padding: 18px 24px 28px; overflow-y: auto; }

/* ---------- toast ---------- */
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 11px; box-shadow: var(--shadow-md); padding: 12px 14px; font-size: 12px; min-width: 260px; max-width: 380px; animation: toastIn .2s ease; display: flex; gap: 9px; align-items: flex-start; }
.toast.success { border-left-color: var(--teal-dark); }
.toast.error { border-left-color: var(--red); }
.toast b { display: block; margin-bottom: 2px; font-size: 12px; }
.toast small { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.dot-sep { color: #c5cddd; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.nowrap { white-space: nowrap; }
.alert { border-radius: 11px; padding: 11px 13px; font-size: 11.5px; line-height: 1.55; display: flex; gap: 9px; align-items: flex-start; }
.alert.info { background: var(--blue-soft); color: #1d3fa8; }
.alert.warn { background: var(--amber-soft); color: #92400e; }
.alert.error { background: var(--red-soft); color: #b42318; }
.alert.success { background: var(--green-soft); color: #087443; }
.skeleton { background: linear-gradient(90deg,#f1f4fa 25%,#e8edf7 37%,#f1f4fa 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 1260px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-grid, .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .report-grid, .settings-grid { grid-template-columns: 1fr; }
  .hero-art { width: 250px; }
}
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .topbar-search { display: none; }
  .content { padding: 20px 16px 48px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-art { display: none; }
  .map-layout { grid-template-columns: 1fr; }
  .map-side { max-height: 280px; }
  .camp-grid, .tpl-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode-grid { grid-template-columns: 1fr; }
  .tpl-pick { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
  .mobile-only { display: inline-grid !important; }
}
@media (min-width: 981px) { .mobile-only { display: none !important; } }
@media (max-width: 560px) {
  .stats-grid, .report-summary { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; }
  .page-head .actions { margin-left: 0; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; margin: 0; }
  .camp-card .foot { flex-wrap: wrap; }
}

/* ---------- template media ---------- */
.upload-zone { border: 1.5px dashed #c9d5ea; border-radius: 12px; background: #f9fbff; padding: 18px 14px; text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--blue); background: #f1f5ff; }
.upload-zone svg { color: var(--blue); margin-bottom: 3px; }
.upload-zone b { font-size: 11.5px; }
.upload-zone small { font-size: 10px; color: var(--muted); }
.media-uploading { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.media-preview { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 8px; margin-top: 8px; background: #fff; }
.media-preview img, .media-preview video { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: #eef2f9; flex: none; }
.media-preview .doc-preview { width: 54px; height: 54px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.media-meta { min-width: 0; flex: 1; }
.media-meta b { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta small { font-size: 9.5px; color: var(--muted); }
.wa-media { margin: -9px -10px 7px; overflow: hidden; border-radius: 4px 11px 0 0; background: #eef2f9; }
.wa-media img, .wa-media video { display: block; width: 100%; max-height: 170px; object-fit: cover; }
.wa-doc { display: flex; align-items: center; gap: 7px; background: #f2f5fa; border-radius: 7px; padding: 7px 8px; margin: -9px -10px 7px; }
.wa-doc-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.wa-doc b { display: block; font-size: 10px; word-break: break-all; line-height: 1.3; }
.wa-doc small { font-size: 8.5px; color: #8696a0; }

/* sidebar footer */
.sidebar-logout { margin: 9px 6px 0; width: calc(100% - 12px); color: var(--red); border-color: #f3d9db; background: #fff; }
.sidebar-logout:hover { background: var(--red-soft); border-color: #f1b9bd; color: #b42318; }


/* ---------- geofence page layout ---------- */
.geo-page-layout { height: clamp(460px, calc(100vh - 270px), 720px); min-height: 0; }
.geo-page-layout .map-side { max-height: 100%; overflow-y: auto; }
.geo-page-layout .geo-filter { position: sticky; top: 0; z-index: 3; padding: 0 0 10px; background: var(--surface); }
.geo-page-layout .geo-filter .searchbox { width: 100%; }
.geo-page-layout .geo-filter .searchbox .input { width: 100%; min-width: 0; padding: 9px 12px 9px 34px; font-size: 12px; }
.geo-map-shell { height: 100%; }
.geo-map-shell .map-canvas { height: 100%; min-height: 0; }

/* compact geofence cards */
#geo-items { display: flex; flex-direction: column; gap: 9px; }
.geo-item { padding: 10px 11px; }
.geo-item .ic { width: 28px; height: 28px; border-radius: 8px; }
.geo-item .geo-copy { min-width: 0; flex: 1; }
.geo-item .top { align-items: flex-start; }
.geo-item .geo-actions { margin-left: auto; display: flex; gap: 4px; flex: none; }
.geo-item .geo-actions .icon-btn { width: 27px; height: 27px; border-radius: 7px; }
.geo-item p { margin: 6px 0 0; font-size: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.logo-tagline { font-size: 9.5px; letter-spacing: .25px; color: #98a2b3; font-weight: 600; text-align: center; width: 100%; }


/* campaign wizard location step */
.wiz-map-layout { height: clamp(280px, calc(100vh - 430px), 460px); min-height: 0; grid-template-columns: 270px 1fr; }
.wiz-map-layout .wiz-map-side { max-height: 100%; overflow-y: auto; }
.wiz-map-layout .map-card-shell { height: 100%; min-height: 0; }
.wiz-map-layout .map-canvas { height: 100%; min-height: 0; }


.wiz-geo-count { font-size: 10px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 7px; padding: 7px 9px; text-align: center; }
.wiz-geo-check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; margin-left: auto; background: #fff; }
.geo-item.active .wiz-geo-check { background: var(--blue); border-color: var(--blue); }

/* campaign wizard parameter step + viewport scrolling */
.campaign-wizard-modal { max-height: calc(100vh - 8vh); display: flex; flex-direction: column; overflow: hidden; }
.campaign-wizard-modal .modal-head,
.campaign-wizard-modal .steps,
.campaign-wizard-modal .modal-foot { flex: 0 0 auto; }
.campaign-wizard-modal #wiz-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.subscriber-options { display: flex; flex-direction: column; gap: 7px; }
.subscriber-check { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: pointer; background: #fff; }
.subscriber-check:hover { border-color: #bdcdf0; }
.subscriber-check.selected { border-color: var(--blue); background: #f7f9ff; box-shadow: 0 0 0 3px rgba(0,45,187,.05); }
.subscriber-check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--blue); }
.subscriber-check b { display: block; font-size: 11.5px; }
.subscriber-check small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

.input-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .input-row.three { grid-template-columns: 1fr; } }
