/* Zuatrix BI — the one stylesheet.
   Brand: Zuatrix brand assets v2.1. BI is the violet product (#7C3AED);
   Exo 2 for headings and figures, Inter for reading. Colour lives in tokens
   only — no hex below the :root block except inside the token list. */

:root {
  /* brand */
  --violet: #7C3AED; --violet-600: #6D28D9; --violet-400: #8B5CF6; --violet-50: #F3EEFF; --violet-100: #E9DFFD;
  --blue: #2563EB; --indigo: #4F46E5; --cyan: #22D3EE; --navy: #0F172A; --night: #0B1226; --night-2: #1E2A6B;

  /* surfaces & ink */
  --canvas: #F6F7F9; --card: #FFFFFF; --card-2: #FAFAFB; --line: #E7EAF0; --line-2: #EEF0F4;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --faint: #94A3B8;

  /* status — reserved; always with an icon and a word */
  --good: #0ca30c; --good-bg: #EAF7EA; --good-ink: #127A12;
  --warn: #fab219; --warn-bg: #FEF6E4; --warn-ink: #8A5A00;
  --serious: #ec835a; --serious-bg: #FDEEE7; --serious-ink: #9A3D17;
  --bad: #d03b3b; --bad-bg: #FCECEC; --bad-ink: #A32424;

  /* charts — validated (dataviz validator, light): violet, orange, aqua, blue */
  --s1: #7C3AED; --s2: #eb6834; --s3: #1baf7a; --s4: #2a78d6;

  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --side: 248px; --side-collapsed: 72px;
  --head: "Exo 2", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; transition: grid-template-columns .2s ease; }
.shell.collapsed { grid-template-columns: var(--side-collapsed) 1fr; }

.side { position: sticky; top: 0; height: 100vh; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; overflow: hidden; z-index: 20; }
.side .brand { display: flex; align-items: center; height: 52px; margin: 0 2px 16px; }
.side .brand .lockup { height: 50px; width: auto; }
.side .brand .lockup.co { height: 44px; max-width: 200px; object-fit: contain; object-position: left center; }
.side .brand .tile.co { object-fit: contain; background: var(--card); border: 1px solid var(--line); }
.side .brand .tile { width: 40px; height: 40px; border-radius: 11px; display: none; }
.collapsed .side .brand .lockup { display: none; }
.collapsed .side .brand .tile { display: block; }
.side .group { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--faint); text-transform: uppercase; margin: 16px 10px 6px; white-space: nowrap; }
.collapsed .side .group { visibility: hidden; height: 6px; margin: 8px 0; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; white-space: nowrap; position: relative; }
.side nav a:hover { background: var(--card-2); color: var(--ink); }
.side nav a.on { background: var(--violet-50); color: var(--violet-600); font-weight: 600; }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); }
.side nav a .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bad-bg); color: var(--bad-ink); }
.collapsed .side nav a { justify-content: center; padding: 0; }
.collapsed .side nav a span, .collapsed .side nav a .badge { display: none; }
.side > nav { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.side .foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.side .platform { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 2px 4px 4px; margin-bottom: 6px; }
.side .platform .group { margin: 10px 8px 4px; display: flex; align-items: center; gap: 6px; }
.side .platform .group em { font-style: normal; letter-spacing: .4px; font-size: 9.5px; color: var(--violet-600); background: var(--violet-50); border-radius: 999px; padding: 1px 6px; }
.side .platform nav a { height: 34px; font-size: 13px; }
.collapsed .side .platform { background: none; border: 0; padding: 0; }
.biz-av { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 13px; }
.seg a { display: contents; }
.side .foot button { width: 100%; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.side .foot button:hover { background: var(--card-2); color: var(--ink); }
.collapsed .side .foot button { justify-content: center; padding: 0; }
.collapsed .side .foot button span { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(246, 247, 249, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .menu { display: none; }
.search { flex: 1; min-width: 300px; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--faint); }
.search input { border: 0; outline: 0; background: none; flex: 1; color: var(--ink); }
.search kbd { font-family: var(--body); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.topbar .sp { flex: 1; }
.biz { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.biz .av-img { object-fit: contain; background: var(--card); border: 1px solid var(--line); }
.biz .av { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 13px; }
.biz b { font-weight: 600; font-size: 13px; }
.biz small { display: block; font-size: 11px; color: var(--muted); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; position: relative; }
.iconbtn:hover { color: var(--violet); border-color: var(--violet-100); }
.iconbtn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--card); }
.ask { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; color: #fff; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, var(--violet), var(--indigo)); box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6); }
.me { width: 40px; height: 40px; border-radius: 50%; background: var(--night-2); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.page { padding: 8px 28px 48px; max-width: 1480px; width: 100%; }
.sample-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 999px; padding: 3px 10px; font-weight: 600; }

/* ---------------------------------------------------------------- page head */
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 14px 0 20px; }
.ph h1 { font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.ph p { color: var(--muted); margin-top: 4px; }
.ph .sp { flex: 1; }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-600); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--violet-600); }
.btn.ghost:hover { background: var(--violet-50); }
.btn.danger { color: var(--bad-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }

/* ---------------------------------------------------------------- cards & grid */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card h2 { font-family: var(--head); font-size: 16px; font-weight: 700; letter-spacing: -.1px; }
.card .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head .sp { flex: 1; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 16px; }

/* KPI tile */
.kpi { position: relative; overflow: hidden; }
.kpi .lab { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .lab .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); }
.kpi .val { font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin: 14px 0 4px; }
.kpi .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-right: 100px; min-height: 22px; }
.kpi .spark { position: absolute; right: 16px; bottom: 16px; width: 88px; height: 32px; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 999px; }
.delta.up { color: var(--good-ink); background: var(--good-bg); }
.delta.down { color: var(--bad-ink); background: var(--bad-bg); }

/* pills / filters */
.seg { display: inline-flex; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: var(--violet-50); color: var(--violet-600); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip.on { border-color: var(--violet-100); background: var(--violet-50); color: var(--violet-600); font-weight: 600; }

/* status — icon + word, never colour alone */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 999px; white-space: nowrap; }
.status.good { background: var(--good-bg); color: var(--good-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }
.status.serious { background: var(--serious-bg); color: var(--serious-ink); }
.status.bad { background: var(--bad-bg); color: var(--bad-ink); }
.status.idle { background: var(--line-2); color: var(--muted); }

/* banners */
.banner { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; border: 1px solid; }
.banner.bad { background: var(--bad-bg); border-color: #F5C9C9; color: var(--bad-ink); }
.banner.good { background: var(--good-bg); border-color: #C6E9C6; color: var(--good-ink); }
.banner.violet { background: linear-gradient(135deg, var(--violet-50), #EEF2FF); border-color: var(--violet-100); color: var(--ink); }
.banner > div > b { display: block; font-size: 14px; margin-bottom: 2px; }
.banner p { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.banner .sp { flex: 1; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); max-height: 640px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { position: sticky; top: 0; z-index: 1; background: var(--card-2); text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
table.t th.r, table.t td.r { text-align: right; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--card-2); }
table.t tr.total td { font-weight: 700; background: var(--card-2); border-top: 1px solid var(--line); }
table.t tr.click { cursor: pointer; }
table.t td .muted { color: var(--muted); }
.neg { color: var(--bad-ink); }
table.t td.actions-cell { white-space: normal; width: 1%; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; min-width: 150px; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.bar-cell .track { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar-cell .fill { height: 100%; border-radius: 3px; background: var(--s1); }

/* ---------------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list .row:last-child { border-bottom: 0; }
.list .row .t1 { font-weight: 600; }
.list .row .t2 { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.list .row .grow { flex: 1; min-width: 0; }
.ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); }
.ico.wa { background: #E8F8EE; color: #128C4A; } .ico.mail { background: #EAF1FE; color: var(--blue); }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--body); }
.chart .label { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; font-family: var(--body); }
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hb { display: grid; grid-template-columns: 120px 1fr 96px; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 8px; }
.hb:hover { background: var(--card-2); }
.hb-l { font-size: 13px; color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 10px; background: var(--line-2); border-radius: 0 5px 5px 0; overflow: hidden; }
.hb-f { height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { text-align: right; font-weight: 600; font-size: 13px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--navy); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .1s; min-width: 140px; }
.tip.on { opacity: 1; }
.tip .tt { font-weight: 700; margin-bottom: 4px; }
.tip .tr { display: flex; align-items: center; gap: 8px; justify-content: space-between; color: #CBD5E1; }
.tip .tr b { color: #fff; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input { height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); outline: 0; width: 100%; }
.input:focus { border-color: var(--violet-400); box-shadow: 0 0 0 4px var(--violet-50); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--violet); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- modal / wizard */
.scrim { position: fixed; inset: 0; background: rgba(11, 18, 38, .45); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 260px 1fr; animation: rise .2s ease; }
.modal.narrow { grid-template-columns: 1fr; width: min(560px, 100%); }
.wiz-side { background: linear-gradient(165deg, var(--night-2), var(--night)); color: #fff; padding: 28px 24px; border-radius: 22px 0 0 22px; display: flex; flex-direction: column; gap: 22px; }
.wiz-side img { width: 44px; height: 44px; border-radius: 12px; }
.wiz-side h3 { font-family: var(--head); font-size: 20px; font-weight: 800; line-height: 1.2; }
.wiz-side p { color: #A9B4D8; font-size: 13px; line-height: 1.55; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps .st { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: #8D98C2; font-weight: 500; font-size: 13px; }
.steps .st .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #3B4A7A; font-size: 12px; font-weight: 700; }
.steps .st.on { background: rgba(255, 255, 255, .08); color: #fff; }
.steps .st.on .n { background: var(--violet); border-color: var(--violet); color: #fff; }
.steps .st.done { color: #C9D2F0; }
.steps .st.done .n { background: var(--good); border-color: var(--good); color: #fff; }
.wiz-body { padding: 28px 30px; display: flex; flex-direction: column; min-height: 520px; }
.wiz-body h2 { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.wiz-body > p { color: var(--muted); margin: 4px 0 22px; }
.wiz-foot { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; align-items: center; }
.wiz-foot .sp { flex: 1; }
.x { position: absolute; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s, transform .12s; }
.tile-opt:hover { border-color: var(--violet-400); transform: translateY(-1px); box-shadow: var(--shadow); }
.tile-opt.on { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.tile-opt[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; border-color: var(--line); }
.tile-opt .logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 13px; color: #fff; }
.tile-opt b { font-size: 14px; }
.tile-opt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.tile-opt .soon { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px; }

.checks { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.ck { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ck .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--muted); }
.ck.run .dot { background: var(--violet-50); color: var(--violet); }
.ck.ok .dot { background: var(--good-bg); color: var(--good-ink); }
.ck.fail .dot { background: var(--bad-bg); color: var(--bad-ink); }
.ck b { display: block; font-size: 13.5px; }
.ck span { font-size: 12.5px; color: var(--muted); }
.ck.fail span { color: var(--bad-ink); }
.spin { width: 14px; height: 14px; border: 2px solid var(--violet-100); border-top-color: var(--violet); border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------------------------------------------------------------- drawer (Ask Zuatrix, drill-down) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 40; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; }
.drawer.on { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .dh h3 { font-family: var(--head); font-size: 17px; font-weight: 800; }
.drawer .dh .sp { flex: 1; }
.drawer .db { flex: 1; overflow: auto; padding: 20px; }
.drawer .df { padding: 14px 20px; border-top: 1px solid var(--line); }
.drawer.wide { width: min(540px, 100%); }

/* ---------------------------------------------------------------- users & access */
.pp-av { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--violet), var(--indigo)); }
.pp-av.off { background: var(--line); color: var(--muted); }
.pp-who { display: flex; gap: 11px; align-items: center; }
.pp-mail { font-size: 12px; color: var(--muted); font-weight: 400; }
.pp-you { margin-left: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--violet-600); background: var(--violet-50); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.pp-warn { display: inline-flex; align-items: center; gap: 5px; color: var(--warn-ink); font-size: 12.5px; font-weight: 600; }
.pp-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pp-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--faint); }
.pp-search:focus-within { border-color: var(--violet-400); box-shadow: 0 0 0 4px var(--violet-50); }
.pp-search input { border: 0; outline: 0; background: none; flex: 1; color: var(--ink); font: inherit; }
.pp-bar .seg button em { font-style: normal; margin-left: 6px; font-size: 11px; color: var(--faint); font-weight: 700; }
.pp-bar .seg button.on em { color: var(--violet); }
select.input.pp-role { width: auto; min-width: 150px; height: 40px; }
.pp-table tbody tr { cursor: pointer; }
.pp-table tbody tr:hover td { background: var(--card-2); }
.pp-table tr.pp-off td { color: var(--muted); }
select.input.pp-inline { height: 32px; width: auto; min-width: 140px; padding: 0 30px 0 10px; font-size: 12.5px; }
.pp-role-fixed { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pp-sees { min-width: 180px; max-width: 260px; white-space: normal !important; font-size: 12.5px; color: var(--ink-2); }
.pp-act { display: flex; align-items: center; gap: 10px; }
.pp-act .num { font-weight: 700; font-size: 12.5px; min-width: 22px; }
.pp-spark { display: block; }
.pp-none { text-align: center; color: var(--muted); padding: 34px 14px !important; }
.pp-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.pp-name { font-family: var(--head); font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.pp-sec { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.pp-sec:last-child { border-bottom: 0; }
.pp-sec h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; }
.pp-sec h4 span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.pp-roles { display: flex; flex-direction: column; gap: 6px; }
.pp-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.pp-opt input { margin-top: 3px; accent-color: var(--violet); }
.pp-opt.on { border-color: var(--violet-100); background: var(--violet-50); }
.pp-opt.dis { cursor: default; opacity: .7; }
.pp-opt b { display: block; font-size: 13px; }
.pp-opt em { font-style: normal; font-size: 12px; color: var(--muted); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-empty { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--card-2); border: 1px dashed var(--line); border-radius: 11px; padding: 10px 12px; line-height: 1.5; }
.pp-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.pp-dev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13px; color: var(--muted); }
.pp-dev b { color: var(--ink); }
.pp-dev .grow { flex: 1; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pp-tl > div { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 13px; }
.pp-tl .grow { flex: 1; min-width: 0; }
.pp-tl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-top: 6px; flex: none; }
.pp-tl .dot.c { background: var(--faint); }
.pp-tl time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.pp-danger .btn.danger { border-color: #F5C9C9; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.msg.me { margin-left: auto; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.composer { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; }
.composer input { flex: 1; border: 0; outline: 0; background: none; }

/* ---------------------------------------------------------------- toast & empty */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 120; opacity: 0; transition: all .2s; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.empty { text-align: center; padding: 48px 20px; }
.empty .art { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); }
.empty h3 { font-family: var(--head); font-size: 19px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 420px; margin: 6px auto 18px; line-height: 1.55; }

/* dashboards gallery */
.dash-card { padding: 0; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(15, 23, 42, .3); }
.dash-card .thumb { height: 128px; background: linear-gradient(160deg, var(--violet-50), #EEF2FF); padding: 14px; display: flex; align-items: flex-end; gap: 6px; }
.dash-card .thumb i { flex: 1; border-radius: 4px 4px 0 0; background: var(--violet-400); opacity: .75; }
.dash-card .body { padding: 14px 16px; }
.dash-card .body b { display: block; font-size: 14px; }
.dash-card .body span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- sign in */
.auth { height: 100vh; height: 100dvh; min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--canvas); overflow: hidden; }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; padding: clamp(28px, 6vh, 56px) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(10px, 1.8vh, 16px); }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.auth-art::before { width: 420px; height: 420px; background: var(--violet); top: -120px; right: -100px; }
.auth-art::after { width: 320px; height: 320px; background: var(--blue); bottom: 80px; left: -120px; opacity: .35; }
.auth-art > * { position: relative; }
.auth-art img { width: clamp(44px, 7vh, 64px); height: clamp(44px, 7vh, 64px); margin-bottom: auto; }
.auth-art h2 { font-family: var(--head); font-size: clamp(26px, 4.4vh, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.6px; max-width: 460px; }
.auth-art p { color: #A9B4D8; font-size: clamp(13.5px, 1.9vh, 15px); line-height: 1.55; max-width: 440px; }
.auth-art h2 .hl { background: linear-gradient(90deg, #C4B5FD, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: clamp(5px, 1.1vh, 10px); margin-top: clamp(0px, .6vh, 8px); max-width: 460px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(12.5px, 1.7vh, 13.5px); line-height: 1.4; color: #A9B4D8; }
.auth-points li svg { flex: none; margin-top: 2px; color: #C4B5FD; }
.auth-points b { color: #fff; font-weight: 600; }

/* home: getting started */
.gs-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.gs-tick.ok { background: var(--good); border-color: var(--good); }
.home-empty { color: var(--muted); font-size: 13px; line-height: 1.55; }
.list a.row { color: inherit; text-decoration: none; }
.list a.row:hover .t1 { color: var(--violet-600); }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(14px, 3vh, 32px) 20px; overflow-y: auto; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(20px, 3.6vh, 34px) 32px; }
.auth-logo.co { height: clamp(40px, 7vh, 64px); max-width: 260px; object-fit: contain; object-position: left center; }
.auth-logo { height: clamp(40px, 6vh, 54px); margin-bottom: clamp(10px, 2.4vh, 22px); }
.auth-card h1 { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.auth-sub { color: var(--muted); margin: 4px 0 clamp(12px, 2.4vh, 22px); }
.auth-go { width: 100%; height: 46px; margin-top: clamp(8px, 1.6vh, 18px); font-size: 14px; }
.auth-err { color: var(--bad-ink); font-size: 13px; min-height: 16px; margin-top: 8px; }
.auth-help { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: clamp(10px, 1.8vh, 18px); }
.auth-help a { color: var(--violet-600); font-weight: 600; text-decoration: none; }
.auth-help a:hover { text-decoration: underline; }
#forgot-how { margin-top: 6px; }
.auth-tag { margin-top: clamp(12px, 2.4vh, 22px); padding-top: clamp(10px, 1.8vh, 16px); border-top: 1px solid var(--line-2); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.auth-tag b { font-size: 11.5px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); }
.auth-tag span { font-size: 11px; color: var(--faint); }
.side-badge { margin: -6px 6px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--night-2), var(--night)); border-radius: 8px; padding: 5px 10px; text-align: center; }
.collapsed .side-badge { display: none; }
button.me { border: 0; cursor: pointer; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
@media (max-height: 560px), (max-width: 900px) { .auth { height: auto; min-height: 100vh; overflow: visible; } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; width: var(--side); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.open .side { transform: none; }
  .collapsed .side .brand .lockup { display: block; } .collapsed .side .brand .tile { display: none; }
  .collapsed .side nav a span { display: inline; } .collapsed .side nav a { justify-content: flex-start; padding: 0 12px; }
  .topbar { padding: 0 16px; } .topbar .menu { display: grid; } .search { min-width: 0; } .search kbd, .biz div, .ask span { display: none; }
  .page { padding: 4px 16px 40px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; } .wiz-side { display: none; } .wiz-body { padding: 22px 18px; min-height: 0; }
  .tiles, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } .ph h1 { font-size: 23px; } }

/* ---------------------------------------------------------------- datasets */
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--violet-600); }
.ds-h { font-family: var(--head); font-size: 17px; font-weight: 800; margin: 22px 0 12px; }
.ds-h:first-of-type { margin-top: 4px; }
.ds-edit { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.ds-side { position: sticky; top: 84px; }
.ds-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ds-fixed { font-weight: 600; padding: 10px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; }
.ds-seg { display: flex; }
.ds-seg button { flex: 1; }
.ds-tables { display: flex; flex-direction: column; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; margin-top: 8px; }
.ds-tables button { display: flex; gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.ds-tables button:last-child { border-bottom: 0; }
.ds-tables button:hover { background: var(--card-2); }
.ds-tables button.on { background: var(--violet-50); color: var(--violet-600); font-weight: 600; }
.ds-tables button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-sql { width: 100%; min-height: 240px; resize: vertical; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); color: var(--ink); outline: 0; tab-size: 2; }
.ds-sql:focus { border-color: var(--violet-400); box-shadow: 0 0 0 4px var(--violet-50); background: var(--card); }
.ds-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ds-bar .sp { flex: 1; }
.ds-meta { color: var(--muted); font-size: 12.5px; }
.ds-find { flex: 0 1 280px; min-width: 200px; height: 36px; }
.ds-grid { max-height: 560px; }
.ds-grid table.t td, .ds-grid table.t th { padding: 8px 12px; font-size: 12.5px; }
.ds-null { color: var(--faint); font-style: italic; }
.ds-q { margin-top: 14px; }
.ds-q summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ds-q pre { margin-top: 8px; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow: auto; max-height: 320px; }
@media (max-width: 1000px) { .ds-edit { grid-template-columns: 1fr; } .ds-side { position: static; } }

/* ---------------------------------------------------------------- feeds */
.fd-targets { margin-top: 14px; border-top: 1px solid var(--line-2); }
.fd-target { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.fd-target:last-child { border-bottom: 0; }
.fd-target .grow { flex: 1; min-width: 0; }
.fd-req { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--violet-600); background: var(--violet-50); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.fd-map td { vertical-align: middle; }
select.input.fd-col { height: 36px; min-width: 200px; }
.fd-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.fd-acts .sp { flex: 1; }
.fd-checks { display: flex; flex-direction: column; gap: 8px; }
.fd-ck { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.fd-ck .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.fd-ck.ok .dot { background: var(--good); }
.fd-ck.bad { border-color: #F5C9C9; background: var(--bad-bg); }
.fd-ck.bad .dot { background: var(--bad); }
.fd-ck b { display: block; font-size: 13px; }
.fd-ck span { font-size: 12.5px; color: var(--muted); }
.fd-ck ul { margin: 6px 0 0 16px; font-size: 12px; color: var(--ink-2); font-family: ui-monospace, Consolas, monospace; }
.row-mini { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.row-mini span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- settings: your brand */
.bp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
.bp-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.bp-label span { font-weight: 400; color: var(--faint); margin-left: 6px; }
.bp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp-mode { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s; }
.bp-mode:hover:not([disabled]) { border-color: var(--violet-400); }
.bp-mode.on { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.bp-mode[disabled] { cursor: default; }
.bp-mode b { font-size: 13.5px; margin-top: 4px; }
.bp-mode span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.bp-mini { display: flex; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.bp-side { width: 46%; background: var(--card); border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.bp-side img { height: 22px; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.bp-side i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.bp-side i.s { background: var(--violet-100); }
.bp-none { display: flex; align-items: center; gap: 4px; height: 22px; font-size: 10.5px; color: var(--faint); border: 1px dashed var(--line); border-radius: 6px; padding: 0 6px; margin-bottom: 4px; }
.bp-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.bp-body i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); width: 70%; }
.bp-body i.w { height: 34px; width: 100%; background: var(--card); border: 1px solid var(--line-2); }
.bp-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn-ink); margin-top: 10px; }
.bp-drop { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(var(--line-2) 0% 25%, var(--card) 0% 50%) 50% / 16px 16px; }
.bp-drop.wide { height: 92px; }
.bp-drop.wide img { max-height: 70px; max-width: 86%; object-fit: contain; }
.bp-drop.sq { width: 64px; height: 64px; flex: none; }
.bp-drop.sq img { width: 44px; height: 44px; object-fit: contain; }
.bp-drop span { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; background: var(--card); padding: 6px 10px; border-radius: 8px; }
.bp-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bp-btns label.btn { cursor: pointer; }
.bp-iconrow { display: flex; gap: 14px; align-items: center; }
.bp-tab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; min-width: 0; flex: 1; max-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 10px 10px 0 0; border-bottom: 2px solid var(--violet); font-size: 12.5px; }
.bp-tabicon img { width: 16px; height: 16px; object-fit: contain; display: block; }
.bp-tabname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-x { color: var(--faint); }
.bp-tabform { display: flex; gap: 8px; }
.bp-tabform .input { height: 38px; }
@media (max-width: 1000px) { .bp-grid { grid-template-columns: 1fr; } }
.bp .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bp-marks { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 14px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line-2); }
.bp-marks b { font-size: 13px; }
.bp-marks span { font-size: 12px; color: var(--muted); }
.bp-dim .bp-label, .bp-dim .bp-drop, .bp-dim .bp-btns { opacity: .55; }

/* ---------------------------------------------------------------- settings: address, email, WhatsApp */
.dl-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: 11px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.5; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dl-top { display: flex; align-items: center; gap: 8px; }
.dl-top .sp, .dl-acts .sp { flex: 1; }
.dl-recs { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dl-sub { font-size: 12px; color: var(--muted); }
.dl-rec { display: flex; align-items: center; gap: 8px; font-size: 12px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 8px; min-width: 0; }
.dl-rec code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
.dl-rec code.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-err { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--bad-ink); margin-top: 4px; line-height: 1.45; }
.dl-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dl-add, .dl-test { display: flex; gap: 8px; margin-top: 14px; }
.dl-add .input, .dl-test .input { height: 38px; }
.dl-pair { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.field label .opt { font-weight: 400; color: var(--faint); }
p.dl-ok { font-size: 12.5px; color: var(--good-ink); margin-top: 8px; }
p.dl-err { font-size: 12.5px; color: var(--bad-ink); margin-top: 8px; line-height: 1.45; }
.dl-consent { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.dl-ch b { display: block; font-size: 13.5px; }
.dl-ch span { font-size: 12px; color: var(--muted); }
.dl-clist { display: flex; flex-direction: column; margin-top: 10px; }
.dl-c { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.dl-c .grow { flex: 1; min-width: 0; }
.dl-c.off { opacity: .6; }
.dl-cadd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dl-cadd .wide { grid-column: 1 / -1; }
.dl-cadd .input { height: 38px; }
.dl-cadd .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------------------------------------------------------------- WhatsApp connect, Meta app */
.wa-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; }
.wa-cta p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.wa-msg { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.wa-msg.bad { color: var(--bad-ink); }
.wa-conn { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.wa-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E7F8EE; color: #128C4A; flex: none; }
.wa-conn .grow { flex: 1; min-width: 0; }
.wa-lang { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.wa-lang .input { width: 70px; height: 32px; }
.mk-list { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; }
.mk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.mk.ok { color: var(--good-ink); }
.mk-steps { margin: 12px 0 0 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.dl-pair2 { display: flex; gap: 8px; }
.dl-pair2 .input { height: 36px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
