:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --canvas: #f5f7fa;
  --paper: #ffffff;
  --subtle: #f9fafb;

  --brand: #26abe2;       /* logo blue */
  --accent: #127aab;      /* logo blue, darkened for AA text contrast */
  --accent-dark: #0d6590;
  --accent-soft: #e8f6fc;

  --side: #0c2433;
  --side-2: #153a4f;
  --side-ink: #c4d3dc;

  --sent: #12805c;    --sent-soft: #e5f5ee;
  --failed: #c4362c;  --failed-soft: #fdecea;
  --pending: #d99a1e; --pending-soft: #fdf4e1;
  --skipped: #98a2b3; --skipped-soft: #f0f2f5;

  --focus: #f2b632;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18);
  --side-w: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 14px/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
code { background: #eef2f6; color: var(--ink-2); padding: 1px 6px; border-radius: 5px; font: 12.5px/1.6 ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--failed); font-weight: 600; }
.ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---- app shell ---------------------------------------------------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.side-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 6px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.side-brand:hover { text-decoration: none; }
.side-brand img { display: block; width: 176px; height: auto; }
.app-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(38,171,226,.16); color: #9bdcf7; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e8796; padding: 0 12px 8px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: var(--side-ink); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.side-nav a:hover { background: var(--side-2); color: #fff; }
.side-nav a.on { background: rgba(38,171,226,.16); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side-nav a.on .ico { color: #6fcbf1; }

.side-foot { margin-top: auto; display: grid; gap: 8px; }
.sender { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--side-2); }
.sender div { min-width: 0; display: flex; flex-direction: column; }
.sender small { font-size: 11.5px; color: #8ea6b4; }
.sender b { font-size: 13px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: #32d583; box-shadow: 0 0 0 3px rgba(50,213,131,.2); }
.dot.warn { background: var(--pending); box-shadow: 0 0 0 3px rgba(217,154,30,.25); }
.dot.bad { background: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.25); }
.side-logout {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--side-ink); font: inherit; font-weight: 500; cursor: pointer;
}
.side-logout:hover { background: var(--side-2); color: #fff; }

.shell { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; gap: 16px; min-height: 76px;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { font-size: 20px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.crumbs a { color: var(--muted); }
.crumbs .crumb-app { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.product-ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.crumbs a:hover { color: var(--accent); }
.crumbs .ico { color: #98a2b3; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions > form { display: contents; }
.icon-btn { display: none; border: 1px solid var(--line-2); background: var(--paper); border-radius: 8px; width: 38px; height: 38px; place-items: center; cursor: pointer; color: var(--ink-2); }
.scrim { display: none; }

.content { padding: 28px 32px 64px; width: 100%; max-width: 1360px; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  box-shadow: var(--shadow); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn.secondary { background: var(--paper); color: var(--ink-2); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--subtle); }
.btn.danger { background: var(--paper); color: var(--failed); border-color: #f1c0bb; }
.btn.danger:hover { background: var(--failed-soft); }
.btn.ghost-danger { background: none; border-color: transparent; color: var(--failed); box-shadow: none; }
.btn.ghost-danger:hover { background: var(--failed-soft); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; padding: 11px 16px; }

/* ---- dropdown (export menu) --------------------------------------------- */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary .ico:last-child { transform: rotate(90deg); transition: transform .15s; color: var(--muted); }
.dropdown[open] > summary .ico:last-child { transform: rotate(-90deg); }
.dropdown[open] > summary { background: var(--subtle); }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 320px; padding: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  display: grid; gap: 10px;
}
.dd-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.format-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.format-pick label, .status-pick label { cursor: pointer; }
.format-pick input, .status-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fmt-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; height: 100%; transition: border-color .15s, background .15s; }
.fmt-card b { display: block; font-size: 13.5px; }
.fmt-card small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.fmt-ico { width: 34px; height: 22px; border-radius: 5px; display: grid; place-items: center; font: 700 10px/1 Inter, sans-serif; letter-spacing: .04em; color: #fff; }
.fmt-ico.xlsx { background: #1d7a46; }
.fmt-ico.big { width: 44px; height: 44px; border-radius: 10px; font-size: 12px; flex: none; }
.template-dl { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.template-dl h2 { margin-bottom: 4px; }
.fmt-ico.csv { background: #667085; }
.format-pick input:checked + .fmt-card { border-color: var(--accent); background: var(--accent-soft); }
.format-pick input:focus-visible + .fmt-card, .status-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.status-pick { display: grid; gap: 2px; margin-bottom: 6px; }
.status-pick label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.status-pick label:hover { background: var(--subtle); }
.status-pick label:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.status-pick label.disabled { opacity: .45; cursor: not-allowed; }
.status-pick span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status-pick span i { width: 10px; height: 10px; border-radius: 3px; }
.status-pick em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- alerts ------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; margin: 0 0 20px;
  border-radius: 10px; border: 1px solid; background: var(--paper); box-shadow: var(--shadow);
}
.alert > .ico { margin-top: 1px; }
.alert > div { flex: 1; }
.alert form { margin: -3px 0; }
.alert.ok { border-color: #a6e4c9; background: #f3fbf7; color: #05603a; }
.alert.error { border-color: #f6c0ba; background: #fef6f5; color: #9a2a21; }
.alert.warn { border-color: #f5d590; background: #fffbf0; color: #7a4d00; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; }
.alert-close:hover { opacity: 1; }

/* ---- cards & KPIs ------------------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.card-pad { padding: 20px 22px; }
.card-pad > h2 { margin-bottom: 4px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.card-head .muted { margin-top: 2px; }
.card-body { padding: 20px 22px; }
.card-note { padding: 12px 22px; border-top: 1px solid var(--line); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 13px; }
.kpi-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.kpi-ico.teal { background: var(--accent-soft); color: var(--accent); }
.kpi-ico.green { background: var(--sent-soft); color: var(--sent); }
.kpi-ico.amber { background: var(--pending-soft); color: #b07a0c; }
.kpi-ico.red { background: var(--failed-soft); color: var(--failed); }
.kpi-ico.slate { background: var(--skipped-soft); color: #475467; }
.kpi-value { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.meter { position: relative; height: 8px; margin-top: 12px; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 4px; min-width: 4px; transition: width .6s ease; }
.meter.full i { background: var(--pending); }

/* ---- tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--subtle); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.compact th, .table.compact td { padding: 10px 22px; }
.row-link { cursor: pointer; transition: background .12s; }
.row-link:hover { background: #f7fafc; }
.cell-main a, .cell-main span { font-weight: 600; color: var(--ink); }
.cell-main small { display: block; color: var(--muted); font-size: 12.5px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link:hover .cell-main a { color: var(--accent); }
.chev { color: #98a2b3; width: 32px; padding-left: 0 !important; }
.no-match td { text-align: center; color: var(--muted); padding: 32px; }

.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.progress-cell span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; width: 36px; }
.bar { display: flex; flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: #eef1f4; }
.bar.big { height: 12px; border-radius: 6px; margin-top: 14px; }
.bar i { display: block; height: 100%; }
.s-sent { background: var(--sent); } .s-failed { background: var(--failed); }
.s-skipped { background: var(--skipped); } .s-pending { background: var(--pending); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---- badges, chips ------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 18px;
  padding: 2px 9px; border-radius: 999px; background: var(--skipped-soft); color: #475467; white-space: nowrap;
}
.badge.draft { background: #eef4ff; color: #3538cd; }
.badge.sending { background: var(--accent-soft); color: var(--accent-dark); }
.badge.done { background: var(--sent-soft); color: #05603a; }
.badge.paused { background: var(--pending-soft); color: #8a5a00; }
.badge.cancelled { background: var(--failed-soft); color: #9a2a21; }
.topbar h1 .badge { font-size: 12px; }
.count-pill { font-size: 12px; font-weight: 600; background: var(--skipped-soft); color: var(--ink-2); padding: 1px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  font: 500 12.5px/1 ui-monospace, Consolas, monospace; padding: 6px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid #b3e0f4; background: var(--accent-soft); color: var(--accent-dark);
}
.chip:hover { background: #d3eefa; }
.chip-key { border-color: var(--line-2); background: var(--subtle); color: var(--muted); }

/* ---- toolbar ------------------------------------------------------------ */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.segmented { display: inline-flex; background: #f0f2f5; border-radius: 8px; padding: 3px; }
.segmented button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.segmented button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.search { position: relative; display: flex; align-items: center; margin: 0; }
.search .ico { position: absolute; left: 11px; color: #98a2b3; pointer-events: none; }
.search input { padding-left: 34px !important; width: 220px; }

/* ---- forms -------------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; }
.field label, label.lbl { display: block; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--paper); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: #7ccbee; box-shadow: 0 0 0 4px rgba(38,171,226,.15); }
textarea { min-height: 240px; resize: vertical; line-height: 1.6; }
textarea.short { min-height: 130px; }
.input-group { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.input-group input { flex: 1; min-width: 180px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 28px 20px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--subtle); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #f1f9fd; }
.dropzone.has-file { border-style: solid; border-color: #9fd8f2; background: #f1f9fd; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dz-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--accent); box-shadow: var(--shadow); margin-bottom: 4px; }
.dz-text { color: var(--ink-2); }
.dz-text b { color: var(--accent); font-weight: 600; }
.dz-sub { font-size: 12.5px; color: var(--muted); }
.dz-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.dz-file[hidden] { display: none; }
.dropzone.small { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; text-align: left; padding: 14px 16px; gap: 12px; }
.dropzone.small .dz-ico { width: 36px; height: 36px; margin: 0; }
.dropzone.small .dz-file { margin: 0 0 0 auto; }
.columns-found { margin-top: 16px; display: grid; gap: 8px; }
.columns-found[hidden] { display: none; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 36px; height: 20px; border-radius: 999px; background: #d0d5dd; position: relative; transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 2px; }

.step { display: flex; align-items: center; gap: 12px; }
.step > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.steps-list { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.steps-list li::marker { color: var(--accent); font-weight: 700; }
.tip { background: linear-gradient(180deg, #f1f9fd, var(--paper)); }

/* ---- layout grids ------------------------------------------------------- */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.grid-main.reverse { grid-template-columns: minmax(0, 1fr) 340px; }
.stack-col { display: grid; gap: 0; min-width: 0; }
.sticky { position: sticky; top: 100px; }

/* ---- campaign detail ---------------------------------------------------- */
.mail-head { padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--subtle); display: grid; gap: 4px; }
.mail-head > div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.mail-head > div > span:first-child { width: 64px; flex: none; color: var(--muted); font-size: 12.5px; }
.file-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 13px; }
iframe.preview { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.details { margin: 0; padding: 6px 22px 10px; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; text-align: right; }

/* ---- empty states ------------------------------------------------------- */
.empty { text-align: center; padding: 52px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.empty .btn { margin-top: 10px; }

/* ---- login -------------------------------------------------------------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand {
  background: radial-gradient(circle at 20% 0%, #1a4a60 0, transparent 55%), radial-gradient(circle at 100% 100%, #0b6e8f55 0, transparent 50%), var(--side);
  color: #fff; padding: 40px 56px; display: flex; flex-direction: column;
}
.auth-logo { display: block; width: 220px; height: auto; }
.auth-pitch { margin: auto 0; max-width: 440px; }
.auth-pitch .app-tag { margin-bottom: 16px; }
.auth-pitch h2 { color: #fff; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; display: block; }
.auth-pitch ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: var(--side-ink); font-size: 15px; }
.auth-pitch li { display: flex; gap: 12px; align-items: flex-start; }
.auth-pitch li .ico { color: #6fcbf1; margin-top: 3px; }
.auth-foot { color: #6e8796; font-size: 13px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 18px 0 6px; }
.auth-card .alert { margin: 20px 0 0; }
.auth-lock { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ---- public unsubscribe page ------------------------------------------- */
.public-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.public-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); text-align: center; }
.public-logo { display: block; width: 200px; height: auto; margin: 0 auto; }
.public-sub { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 26px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.public-card h1 { font-size: 22px; margin-bottom: 8px; }
.public-card p { margin-bottom: 8px; }
.public-card form { margin-top: 22px; }
.result-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.result-ico.ok { background: var(--sent-soft); color: var(--sent); }
.result-ico.bad { background: var(--failed-soft); color: var(--failed); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-main.reverse { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 25; }
  .shell { margin-left: 0; }
  .icon-btn { display: grid; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .content { padding: 20px 16px 48px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; }
  .auth-logo { width: 170px; }
  .auth-pitch { margin: 32px 0 8px; }
  .auth-pitch h2 { font-size: 24px; }
  .auth-foot { display: none; }
}
@media (max-width: 560px) {
  .dropdown-panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .card-head, .card-body, .card-pad { padding-left: 16px; padding-right: 16px; }
  .table th, .table td { padding-left: 14px; padding-right: 14px; }
  .search input { width: 100%; }
  .toolbar, .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
