/* ============================================================
   ieskau — design system
   Brand: deep teal (#163d55). Font: IBM Plex Sans + Plex Mono.
   ============================================================ */

/* ---------- Tokens ---------------------------------------- */
:root {
  --brand-50:  #eef4f8;
  --brand-100: #d7e4ee;
  --brand-200: #a9c4d6;
  --brand-300: #7aa3bc;
  --brand-400: #4a82a1;
  --brand-500: #2c6584;
  --brand-600: #1f4e6b;
  --brand-700: #163d55;
  --brand-800: #102d40;

  --ink-50:  #f7f7f5;
  --ink-100: #f1f1f2;
  --ink-200: #e4e4e7;
  --ink-300: #d1d5db;
  --ink-400: #9ca3af;
  --ink-500: #6b7280;
  --ink-600: #4b5563;
  --ink-700: #374151;
  --ink-900: #111827;
  --ink-950: #0b1220;

  --paper:   #fbfaf7;
  --canvas:  #f4f1ea;

  --ok-50:   #eaf5ef;
  --ok-600:  #236d44;
  --ok-700:  #1a5435;

  --warn-50:  #fbf2e2;
  --warn-700: #6a4709;

  --bad-50:  #fbecea;
  --bad-600: #92291c;
  --bad-700: #6f1c11;

  /* Bootstrap overrides */
  --bs-primary: var(--brand-700);
  --bs-primary-rgb: 22, 61, 85;
  --bs-body-font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink-900);
}

/* ---------- Base ------------------------------------------ */
body { background: var(--paper); color: var(--ink-900); }
code, pre, .font-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- App shell — sidebar layout -------------------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.app-sidebar-dark {
  background: var(--ink-950);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.app-sidebar-light {
  background: #fff;
  border-right: 1px solid var(--ink-200);
  color: var(--ink-700);
}
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.app-topbar {
  height: 56px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}
.app-content {
  flex: 1;
  overflow: auto;
  background: var(--paper);
  padding: 28px;
}

/* ---------- Sidebar brand block --------------------------- */
.sidebar-brand {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-dark { border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand-light { border-bottom: 1px solid var(--ink-200); }

.sidebar-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.sidebar-logo-dark  { background: #fff; color: var(--brand-700); }
.sidebar-logo-light { background: var(--brand-700); color: #fff; }

.sidebar-brand-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.sidebar-brand-sub  { font-size: 11px; opacity: 0.5; }

/* ---------- Sidebar nav ----------------------------------- */
.sidebar-nav {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  height: 36px;
  border-radius: 6px;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
/* Dark sidebar */
.sidebar-dark .sidebar-nav-item            { color: rgba(255,255,255,0.65); }
.sidebar-dark .sidebar-nav-item:hover      { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-dark .sidebar-nav-item.active     { background: rgba(255,255,255,0.1); color: #fff; font-weight: 500; }
/* Light sidebar */
.sidebar-light .sidebar-nav-item           { color: var(--ink-700); }
.sidebar-light .sidebar-nav-item:hover     { background: var(--ink-50); color: var(--ink-900); }
.sidebar-light .sidebar-nav-item.active    { background: var(--brand-50); color: var(--brand-800); font-weight: 500; }

.sidebar-nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }

/* ---------- Sidebar footer -------------------------------- */
.sidebar-footer {
  padding: 8px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.sidebar-dark .sidebar-footer  { border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-light .sidebar-footer { border-top: 1px solid var(--ink-200); }

.avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.avatar-brand { background: var(--brand-200); color: var(--brand-800); }
.avatar-warn  { background: #f5d7aa; color: #6a4709; }

/* ---------- Card ------------------------------------------ */
.card-ie {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-ie-body    { padding: 20px; }
.card-ie-header  { padding: 12px 20px; border-bottom: 1px solid var(--ink-200); font-size: 15px; font-weight: 600; }
.card-ie-padless { padding: 0; }

/* ---------- Stat cards ------------------------------------ */
.stat-label { font-size: 11px; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); }
.stat-value { font-size: 26px; font-weight: 600; margin-top: 4px; line-height: 1; tabular-nums: ; }
.stat-delta { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat-delta-ok  { color: var(--ok-600); }
.stat-delta-brand { color: var(--brand-600); }

/* ---------- Badges ---------------------------------------- */
.badge-ie {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500;
  border: 1px solid transparent;
}
.badge-neutral { background: var(--ink-100);  color: var(--ink-700);  border-color: var(--ink-200); }
.badge-brand   { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge-ok      { background: var(--ok-50);   color: var(--ok-700);   border-color: rgba(47,138,85,.2); }
.badge-warn    { background: var(--warn-50);  color: var(--warn-700); border-color: rgba(176,122,26,.25); }
.badge-bad     { background: var(--bad-50);   color: var(--bad-700);  border-color: rgba(183,58,42,.25); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.badge-ok.badge-dot::before   { background: #2f8a55; }
.badge-warn.badge-dot::before { background: #b07a1a; }
.badge-bad.badge-dot::before  { background: #b73a2a; }
.badge-neutral.badge-dot::before { background: var(--ink-400); }

/* ---------- Buttons --------------------------------------- */
/*
 * Base: every btn-* class gets flex alignment so icons + text are always centred.
 * Size defaults to md (h=36px). Override with btn-ie-sm (h=32px) or btn-ie-lg (h=40px).
 */
.btn-brand,
.btn-secondary-ie,
.btn-ghost-danger,
.btn-danger-ie,
.btn-success-ie,
.btn-ghost-ie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  vertical-align: middle;
  font-family: inherit;
}
/* Size variants */
.btn-ie-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ie-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ie-xl { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-ie-icon { width: 36px; height: 36px; padding: 0; }

/* Variants */
.btn-brand {
  background: var(--brand-700); color: #fff;
  border-color: var(--brand-700);
}
.btn-brand:hover { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }

.btn-secondary-ie {
  background: #fff; color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-secondary-ie:hover { background: var(--ink-50); border-color: var(--ink-300); color: var(--ink-900); }

.btn-ghost-ie {
  background: transparent; color: var(--ink-700);
  border-color: transparent;
}
.btn-ghost-ie:hover { background: var(--ink-100); color: var(--ink-900); }

.btn-ghost-danger {
  background: transparent; color: var(--bad-600);
  border-color: rgba(183,58,42,.3);
}
.btn-ghost-danger:hover { background: var(--bad-50); color: var(--bad-700); }

.btn-danger-ie {
  background: var(--bad-600); color: #fff;
  border-color: var(--bad-600);
}
.btn-danger-ie:hover { background: var(--bad-700); border-color: var(--bad-700); color: #fff; }

.btn-success-ie {
  background: var(--ok-600); color: #fff;
  border-color: var(--ok-600);
}
.btn-success-ie:hover { background: var(--ok-700); color: #fff; }

/*
 * Catch-all for inline-styled <button> and <a> tags that don't use a btn-* class.
 * Ensures text and SVG icons are vertically centred without requiring a class change
 * on every element.
 */
.app-content button[style*="height"],
.app-content a[style*="height"],
.card-ie-body button[style*="height"],
.card-ie-body a[style*="height"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  text-decoration: none;
}

/* ---------- Form controls --------------------------------- */
.form-label-ie {
  font-size: 13px; font-weight: 500; color: var(--ink-800);
  margin-bottom: 6px; display: block;
}
.form-hint {
  font-size: 12px; color: var(--ink-500); margin-top: 5px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(44,101,132,0.12);
  outline: none;
}
.input-group-text { color: var(--ink-500); }

/* ---------- Tables ---------------------------------------- */
.table-ie {
  width: 100%; font-size: 13px; border-collapse: collapse;
}
.table-ie th {
  padding: 10px 12px; text-align: left;
  font-size: 11.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-500);
  border-bottom: 1px solid var(--ink-200);
  background: rgba(247,247,245,0.6);
}
.table-ie td {
  padding: 12px; border-bottom: 1px solid var(--ink-200);
  vertical-align: middle;
}
.table-ie tbody tr:last-child td { border-bottom: none; }
.table-ie tbody tr:hover { background: rgba(247,247,245,0.6); }

/* ---------- Flash alerts ---------------------------------- */
.flash-success { background: var(--ok-50); color: var(--ok-700); border: 1px solid rgba(47,138,85,.25); border-radius: 6px; padding: 10px 16px; font-size: 14px; margin-bottom: 20px; }
.flash-error   { background: var(--bad-50); color: var(--bad-700); border: 1px solid rgba(183,58,42,.25); border-radius: 6px; padding: 10px 16px; font-size: 14px; margin-bottom: 20px; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid rgba(180,120,0,.25); border-radius: 6px; padding: 10px 16px; font-size: 14px; margin-bottom: 20px; }

/* ---------- Breadcrumb ------------------------------------ */
.breadcrumb-ie { font-size: 12.5px; color: var(--ink-500); margin-bottom: 12px; }
.breadcrumb-ie a { color: var(--ink-500); text-decoration: none; }
.breadcrumb-ie a:hover { color: var(--ink-700); }

/* ---------- Page header ----------------------------------- */
.page-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.page-title  { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

/* ---------- Section label --------------------------------- */
.section-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-500); margin-bottom: 8px;
}

/* ---------- Search bar ------------------------------------ */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-50); border: 1px solid var(--ink-200);
  border-radius: 6px; height: 36px; padding: 0 12px;
  font-size: 13px; color: var(--ink-500);
}
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--ink-900);
}
.search-bar input::placeholder { color: var(--ink-400); }

/* ---------- Impersonation banner -------------------------- */
.impersonation-banner {
  background: var(--bad-600); color: #fff;
  font-size: 13px; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Mono text ------------------------------------- */
.text-mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }

/* ---------- Utilities ------------------------------------- */
.text-ink-500  { color: var(--ink-500) !important; }
.text-ink-600  { color: var(--ink-600) !important; }
.text-ink-700  { color: var(--ink-700) !important; }
.text-brand-700 { color: var(--brand-700) !important; }
.text-ok-700   { color: var(--ok-700) !important; }
.text-bad-700  { color: var(--bad-700) !important; }
.bg-paper      { background: var(--paper) !important; }
.border-ink    { border-color: var(--ink-200) !important; }
.cursor-pointer { cursor: pointer; }

/* ---------- Toggle switch --------------------------------- */
.toggle-switch { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; position:absolute; }
.toggle-track {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:var(--ink-300); border-radius:12px;
  transition:background 0.15s; cursor:pointer;
}
.toggle-track::after {
  content:''; position:absolute; top:2px; left:2px;
  width:20px; height:20px; background:#fff;
  border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,0.2);
  transition:transform 0.15s;
}
.toggle-switch input:checked + .toggle-track { background:var(--brand-700); }
.toggle-switch input:checked + .toggle-track::after { transform:translateX(20px); }

/* ---------- Avatar initials ------------------------------ */
.avatar-initial {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  background:var(--brand-100); color:var(--brand-700);
  font-size:11px; font-weight:600; flex-shrink:0;
  font-family:'IBM Plex Mono',monospace;
}

/* ---------- Stat card ------------------------------------ */
.stat-card { padding:16px 20px; }
.stat-card-label { font-size:11px; font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:0.04em; color:var(--ink-500); }
.stat-card-value { font-size:26px; font-weight:600; margin-top:4px; line-height:1.1; }

/* ---------- Meeting countdown ---------------------------- */
.countdown-display {
  font-size:42px; font-weight:600; line-height:1;
  font-family:'IBM Plex Mono',monospace;
  letter-spacing:-0.02em; tabular-nums;
}
.countdown-display .sep { color:var(--ink-300); }

/* ---------- Filter tab bar ------------------------------- */
.tab-bar { display:flex; gap:6px; margin-bottom:14px; }
.tab-btn {
  height:34px; padding:0 14px; border-radius:6px;
  border:1px solid var(--ink-200); background:#fff;
  font-size:13px; font-weight:400; cursor:pointer;
  color:var(--ink-700); transition:border-color 0.1s;
}
.tab-btn:hover { border-color:var(--ink-400); }
.tab-btn.active {
  border-width:2px; border-color:var(--brand-700);
  background:var(--brand-50); font-weight:600; color:var(--brand-700);
}
.tab-btn .tab-count { color:var(--ink-500); font-weight:400; margin-left:5px; }
.tab-btn.active .tab-count { color:var(--brand-600); }

/* ==========================================================
   PUBLIC MARKETING PAGES
   ========================================================== */

/* ---- Hero gradient (subtle, light, from design spec) --- */
.hero-grad {
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(44,101,132,.10), transparent 60%),
    radial-gradient(600px 300px at 90% 0%, rgba(176,122,26,.08), transparent 60%),
    var(--paper);
}

/* ---- Public nav (light, paper bg, sticky) -------------- */
.pub-nav {
  border-bottom: 1px solid var(--ink-200);
  background: rgba(251,250,247,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.pub-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.pub-nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink-900);
  text-decoration: none; flex-shrink: 0;
}
.pub-nav-logo-mark {
  width: 24px; height: 24px; border-radius: 5px;
  background: var(--brand-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: 'IBM Plex Mono', monospace;
}
.pub-nav-links { display: flex; align-items: center; gap: 4px; }
.pub-nav-link {
  font-size: 14px; color: var(--ink-700); text-decoration: none;
  padding: 6px 10px; border-radius: 5px;
  transition: color 0.12s, background 0.12s;
}
.pub-nav-link:hover  { color: var(--ink-900); background: var(--ink-100); }
.pub-nav-link.active { color: var(--ink-900); font-weight: 500; }
.pub-nav-spacer { flex: 1; }
.pub-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pub-nav-login {
  font-size: 14px; color: var(--ink-700); text-decoration: none;
  padding: 0 12px; height: 36px; display: inline-flex; align-items: center;
  transition: color 0.12s;
}
.pub-nav-login:hover { color: var(--ink-900); }
.pub-nav-cta {
  height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: #fff;
  background: var(--brand-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.12s;
}
.pub-nav-cta:hover { background: var(--brand-600); color: #fff; }

/* ---- Shared page container ----------------------------- */
.pub-w { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.pub-w-lg { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---- Section tag (mono uppercase label above headings) - */
.pub-section-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-500); display: block; margin-bottom: 8px;
}

/* ---- Shared heading styles ----------------------------- */
.pub-h1 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.03em; line-height: 1.05;
  margin: 0;
}
.pub-h2 {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.025em; line-height: 1.15;
  margin: 0;
}
.pub-h2-white { color: #fff; }

/* ---- Badge (brand-coloured pill) ----------------------- */
.pub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-radius: 100px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; color: var(--brand-700);
  margin-bottom: 20px;
}

/* ---- Hero CTA buttons ---------------------------------- */
.pub-btn-primary {
  height: 46px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--brand-700); border: none; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.12s;
}
.pub-btn-primary:hover { background: var(--brand-600); color: #fff; }
.pub-btn-secondary {
  height: 46px; padding: 0 20px; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  background: #fff; border: 1px solid var(--ink-300); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.12s, background 0.12s;
}
.pub-btn-secondary:hover { border-color: var(--ink-500); background: var(--ink-50); color: var(--ink-900); }
.pub-btn-onbrand {
  height: 46px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 600; color: var(--brand-700);
  background: #fff; border: none; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.12s;
}
.pub-btn-onbrand:hover { background: var(--brand-100); color: var(--brand-700); }

/* ---- Hero product preview frame ------------------------ */
.pub-preview-frame {
  background: #fff; border-radius: 8px; border: 1px solid var(--ink-200);
  box-shadow: 0 14px 38px -18px rgba(11,18,32,0.30), 0 2px 6px -2px rgba(11,18,32,0.10);
  overflow: hidden;
}
.pub-preview-chrome {
  height: 36px; background: var(--ink-50); border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.pub-preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); }
.pub-preview-url {
  margin-left: 8px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--ink-500);
}
.pub-preview-body { display: grid; grid-template-columns: 1fr 320px; }
.pub-preview-left { padding: 24px; }
.pub-preview-right {
  background: var(--paper); border-left: 1px solid var(--ink-200); padding: 20px;
}
.pub-sub-row {
  border: 1px solid var(--ink-200); border-radius: 6px;
  padding: 12px; margin-bottom: 12px;
}
.pub-sub-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-500); margin: 0 0 4px; }
.pub-sub-text { font-size: 13.5px; color: var(--ink-900); margin: 0; }
.pub-sub-counter { font-size: 12px; color: var(--ink-500); margin-top: 12px; }

/* ---- Value props 3-col grid ---------------------------- */
.pub-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 768px) { .pub-value-grid { grid-template-columns: 1fr; } }
.pub-value-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-50); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* ---- How it works (dark bg section) -------------------- */
.pub-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 768px) { .pub-steps-grid { grid-template-columns: 1fr; } }
.pub-step { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; }
.pub-step-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.4); display: block; margin-bottom: 8px; }
.pub-step-title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.pub-step-body { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; margin: 0; }

/* ---- Pricing teaser (3-col, not full table) ------------ */
.pub-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .pub-price-grid { grid-template-columns: 1fr; } }
.pub-price-card {
  border: 1px solid var(--ink-200); border-radius: 8px;
  background: #fff; padding: 24px;
}
.pub-price-card-featured { border-color: var(--brand-700); box-shadow: 0 0 0 1px var(--brand-700); }
.pub-price-name { font-weight: 600; font-size: 15px; color: var(--ink-900); margin: 0 0 4px; }
.pub-price-top { font-size: 12px; color: var(--ink-500); margin: 0 0 12px; }
.pub-price-amount {
  font-size: 32px; font-weight: 600; color: var(--ink-900);
  letter-spacing: -0.03em; line-height: 1;
}
.pub-price-period { font-size: 13px; font-weight: 400; color: var(--ink-500); }
.pub-price-members { font-size: 13px; color: var(--ink-600); margin-top: 8px; }
.pub-price-note { font-size: 12px; color: var(--ink-500); margin-top: 4px; }

/* ---- Footer (light, 4-column) -------------------------- */
.pub-footer { border-top: 1px solid var(--ink-200); margin-top: 64px; }
.pub-footer-main {
  max-width: 1200px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 768px) { .pub-footer-main { grid-template-columns: 1fr 1fr; } }
.pub-footer-brand-name { font-weight: 600; font-size: 14px; color: var(--ink-900); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pub-footer-desc { font-size: 13px; color: var(--ink-600); line-height: 1.6; }
.pub-footer-col-title { font-weight: 500; font-size: 13px; color: var(--ink-900); margin-bottom: 10px; }
.pub-footer-col-link { display: block; font-size: 13px; color: var(--ink-600); text-decoration: none; padding: 3px 0; transition: color 0.12s; }
.pub-footer-col-link:hover { color: var(--ink-900); }
.pub-footer-bottom {
  border-top: 1px solid var(--ink-200);
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-500);
}
.pub-footer-version { font-family: 'IBM Plex Mono', monospace; }

/* ---- Logo strip ---------------------------------------- */
.pub-logo-strip {
  border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
}
.pub-logo-strip-inner {
  max-width: 1100px; margin: 0 auto; padding: 32px;
  display: flex; align-items: center; gap: 40px;
}
.pub-logo-strip-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); white-space: nowrap; flex-shrink: 0; }
.pub-logo-strip-names { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.pub-logo-strip-name { font-size: 14px; color: rgba(17,24,39,0.5); font-family: Georgia, serif; }

/* ---- CTA strip (brand panel) --------------------------- */
.pub-cta-panel {
  background: var(--brand-700); color: #fff; border-radius: 8px;
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (max-width: 640px) { .pub-cta-panel { flex-direction: column; text-align: center; } }

/* ═══════════════════════════════════════════════════════════════════
   Manager panel — mobile responsive  (≤ 768 px)
   ═══════════════════════════════════════════════════════════════════ */

/* Hamburger button: hidden on desktop, shown on mobile */
.topbar-hamburger {
  display: none;
  width: 36px; height: 36px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--ink-600); border-radius: 6px;
  padding: 0;
}
.topbar-hamburger:hover { background: var(--ink-100); }

/* Sidebar backdrop overlay */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1040;
}
.sidebar-open .sidebar-backdrop { display: block; }

/* Responsive table scroll wrapper */
.table-responsive-ie {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {

  /* ── Page shell ─────────────────────────────────────────── */
  html, body { height: auto !important; overflow: auto !important; }

  .app-layout {
    flex-direction: column;
    height: auto !important;
    min-height: 100dvh;
  }

  /* Sidebar: slide-in overlay */
  .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    width: 240px;
  }
  .sidebar-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.18);
  }

  /* Main column: no overflow clipping */
  .app-main   { min-height: 0; overflow: visible; }
  .app-content { overflow: visible; padding: 14px; }

  /* ── Topbar ─────────────────────────────────────────────── */
  .app-topbar { padding: 0 10px; gap: 6px; }
  .topbar-hamburger { display: flex !important; }

  /* Shrink the breadcrumb so it doesn't push the buttons off-screen */
  .app-topbar-breadcrumb {
    font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1; min-width: 0;
  }

  /* ── Page header ────────────────────────────────────────── */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .page-header > div:last-child { flex-wrap: wrap; }
  .page-title { font-size: 20px; }

  /* ── Cards ──────────────────────────────────────────────── */
  .card-ie, .card-ie-body { border-radius: 6px; }

  /* ── Members table: show only Name · Email · Status · Actions */
  /* Columns: 1=# 2=Name 3=Email 4=Status 5=Cross 6=vCard 7=Mailwizz 8=Actions */
  #members-table th:nth-child(1),
  #members-table td:nth-child(1),
  #members-table th:nth-child(5),
  #members-table td:nth-child(5),
  #members-table th:nth-child(6),
  #members-table td:nth-child(6),
  #members-table th:nth-child(7),
  #members-table td:nth-child(7) { display: none !important; }

  /* Fixed layout so email truncation works reliably */
  #members-table { table-layout: fixed; width: 100%; }
  #members-table th:nth-child(2),
  #members-table td:nth-child(2) { width: 38%; }
  #members-table th:nth-child(3),
  #members-table td:nth-child(3) { width: 34%; }
  #members-table th:nth-child(4),
  #members-table td:nth-child(4) { width: 15%; }
  #members-table th:nth-child(8),
  #members-table td:nth-child(8) { width: 13%; }

  /* Email cell: clip and ellipsis */
  #members-table td:nth-child(3) {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* Larger touch targets for edit/delete icon buttons */
  #members-table td:nth-child(8) a,
  #members-table td:nth-child(8) button {
    width: 32px !important; height: 32px !important;
  }

  /* Search input: 16px prevents iOS auto-zoom on focus */
  #members-search { font-size: 16px !important; }

  /* Search row: full-width */
  .members-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .members-filter-row .members-search-wrap { max-width: 100% !important; flex: 1 !important; }

  /* ── General table improvements ─────────────────────────── */
  .table-ie th { padding: 8px 10px; font-size: 11px; }
  .table-ie td { padding: 10px; }

}

/* ═══════════════════════════════════════════════════════════════════
   Manager panel — extended mobile fixes  (≤ 768 px)
   Targets classes added to view files to override inline styles.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Universal: override padding:28px on every page content wrapper ── */
@media (max-width: 768px) {
  .app-content > div {
    padding-left:  14px !important;
    padding-right: 14px !important;
  }
}

/* ── 2. Dashboard: 4-col active-meeting stats → 2 × 2 ── */
@media (max-width: 768px) {
  .dash-stats-4col {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }
  .dash-stats-4col > div {
    border-right:  none !important;
    padding: 12px 10px 12px 0 !important;
    border-bottom: 1px solid var(--ink-200) !important;
  }
  .dash-stats-4col > div:nth-child(even) {
    padding-left:  12px !important;
    border-left:   1px solid var(--ink-200) !important;
  }
  /* Bottom two cells: no bottom border */
  .dash-stats-4col > div:nth-last-child(-n+2) {
    border-bottom: none !important;
  }
}

/* ── 3. Dashboard: 3-col summary cards → stacked ── */
@media (max-width: 768px) {
  .dash-stats-3col {
    grid-template-columns: 1fr !important;
  }
}

/* ── 4. Dashboard / any page: "1fr 300px" aside grid → single column ── */
@media (max-width: 768px) {
  .dash-aside-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 5. Chapter settings: 2-column form grids → single column ── */
@media (max-width: 768px) {
  .form-2col {
    grid-template-columns: 1fr !important;
  }
}

/* ── 6. Recurring schedule rows (4 fixed-px columns) → flex wrapping ── */
/* Desktop: inline grid style stays. Mobile: flex overrides it.          */
@media (max-width: 768px) {
  .recurring-row {
    display:     flex !important;
    flex-wrap:   wrap !important;
    align-items: center !important;
    gap:         6px 8px !important;
    column-gap:  8px !important;
  }
  /* Label text → full-width first line */
  .recurring-row > span:first-child {
    width:        100% !important;
    font-size:    12px !important;
    color:        var(--ink-500) !important;
    margin-bottom: 0 !important;
  }
  /* Select dropdown → grow to fill available space */
  .recurring-row .form-select {
    flex: 1 1 100px !important;
    min-width: 0 !important;
  }
  /* "at" separator → auto-width */
  .recurring-row > span:not(:first-child) {
    flex:       0 0 auto !important;
    font-size:  12px !important;
    grid-column: unset !important; /* cancel any inline grid-column */
  }
  /* Time input → fixed comfortable width */
  .recurring-row input[type="time"] {
    flex:       0 0 110px !important;
    min-width:  0 !important;
  }
}

/* ── 7. Submission settings: 3-col time inputs → single column ── */
@media (max-width: 768px) {
  .time-3col {
    grid-template-columns: 1fr !important;
    max-width:             100% !important;
  }
}

/* ── 8. Meetings table: hide Form window, Send time, Delivery cols ── */
/* Columns: 1=Date 2=Status 3=Form 4=Send 5=Submissions 6=Delivery 7=Actions */
@media (max-width: 768px) {
  #meetings-table th:nth-child(3),
  #meetings-table td:nth-child(3),
  #meetings-table th:nth-child(4),
  #meetings-table td:nth-child(4),
  #meetings-table th:nth-child(6),
  #meetings-table td:nth-child(6) {
    display: none !important;
  }
  #meetings-table {
    table-layout: fixed;
    width: 100%;
  }
  #meetings-table th:nth-child(1), #meetings-table td:nth-child(1) { width: 28%; }
  #meetings-table th:nth-child(2), #meetings-table td:nth-child(2) { width: 26%; }
  #meetings-table th:nth-child(5), #meetings-table td:nth-child(5) { width: 20%; }
  #meetings-table th:nth-child(7), #meetings-table td:nth-child(7) { width: 26%; }
}

/* ── 9. Dashboard recent meetings table: hide Open Rate col ── */
/* Columns: 1=Date 2=Status 3=Submissions 4=OpenRate 5=Actions */
@media (max-width: 768px) {
  #dashboard-table th:nth-child(4),
  #dashboard-table td:nth-child(4) {
    display: none !important;
  }
}

/* ── 10. Tab bar: horizontal scroll on mobile ── */
@media (max-width: 768px) {
  .tab-bar {
    overflow-x:             auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap:              nowrap !important;
    padding-bottom:         2px;
  }
  .tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* ── 11. Submission settings: toggle rows → wrap on very small screens ── */
@media (max-width: 480px) {
  .sub-settings-row {
    flex-direction: column !important;
    align-items:    flex-start !important;
    gap:            12px !important;
  }
}


/* ── Invite-manager form: stack vertically on mobile ── */
@media (max-width: 768px) {
  .invite-form > div:first-child {
    flex-direction: column !important;
    align-items:    stretch !important;
  }
  .invite-form button[type="submit"] {
    width:      100% !important;
    height:     44px !important;
    margin-top: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Cookie consent banner
   ═══════════════════════════════════════════════════════════════════ */
/* ── Cookie consent banner — GDPR compliant ── */
#cookie-banner {
  position:   fixed;
  bottom:     0; left: 0; right: 0;
  z-index:    9000;
  background: #fff;
  border-top: 2px solid var(--ink-200);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  padding:    20px 24px;
  transform:  translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.cb-visible { transform: translateY(0); }
#cookie-banner.cb-hiding  { transform: translateY(100%); }

.cb-inner {
  max-width:   900px;
  margin:      0 auto;
  display:     flex;
  gap:         24px;
  align-items: flex-start;
  flex-wrap:   wrap;
}
.cb-body {
  flex:      1;
  min-width: 240px;
}
.cb-title {
  font-size:   14px;
  font-weight: 700;
  color:       var(--ink-900);
  margin:      0 0 6px;
  display:     flex;
  align-items: center;
  gap:         8px;
}
.cb-text {
  font-size:   13px;
  color:       var(--ink-600);
  line-height: 1.55;
  margin:      0;
}
.cb-text a {
  color:           var(--brand-700);
  text-decoration: underline;
}
.cb-cats {
  display:   flex;
  flex-wrap: wrap;
  gap:       6px;
  margin-top: 10px;
}
.cb-cat {
  font-size:    11.5px;
  font-weight:  500;
  padding:      2px 8px;
  border-radius: 4px;
  border:       1px solid var(--ink-200);
  color:        var(--ink-600);
  background:   var(--ink-50);
}
.cb-cat-required { color: var(--ok-700); background: var(--ok-50); border-color: rgba(22,101,52,.2); }

/* ── Buttons — GDPR requires equal prominence for accept & decline ── */
.cb-actions {
  display:        flex;
  flex-direction: column;
  gap:            8px;
  flex-shrink:    0;
  min-width:      160px;
}
.cb-btn {
  height:        40px;
  padding:       0 20px;
  border-radius: 6px;
  font-size:     13.5px;
  font-weight:   600;
  cursor:        pointer;
  font-family:   inherit;
  white-space:   nowrap;
  width:         100%;
  text-align:    center;
  transition:    background 0.15s, border-color 0.15s;
}
/* Accept all — filled brand */
.cb-btn-accept {
  background: var(--brand-700);
  color:      #fff;
  border:     2px solid var(--brand-700);
}
.cb-btn-accept:hover { background: var(--brand-800, #122f42); border-color: var(--brand-800, #122f42); }

/* Decline / essential only — same size, outlined */
.cb-btn-essential {
  background: #fff;
  color:      var(--ink-700);
  border:     2px solid var(--ink-300);
}
.cb-btn-essential:hover { background: var(--ink-50); border-color: var(--ink-400); }

@media (max-width: 640px) {
  #cookie-banner { padding: 16px; }
  .cb-inner      { flex-direction: column; gap: 16px; }
  .cb-actions    { width: 100%; min-width: 0; }
  .cb-btn        { height: 44px; font-size: 14px; }
}
