/* Replixy app (Django): the same look as replixy.com v2. Deep green ink, electric lime, warm gold.
   One stylesheet for every page: public pages, sign-in, Studio and allauth's own pages. */

@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0a1912;
  --ink-2: #10251a;
  --ink-3: #173525;
  --ink-4: #21452f;
  --lime: #c5f04a;
  --lime-2: #b3e132;
  --lime-soft: #eefbd0;
  --leaf: #1f7a4a;
  --mint: #eaf6ee;
  --mint-2: #d7eedf;
  --gold: #f2b640;
  --gold-soft: #fdf1d6;
  --rose-soft: #ffe4ea;

  --text: #0a1912;
  --muted: #4d5e55;
  --muted-2: #66766d;
  --border: #dce5df;
  --border-2: #c9d5cd;
  --bg: #f6f9f7;
  --on-dark-muted: #a9bdb1;
  --line-dark: rgba(255, 255, 255, 0.1);

  --display: 'Bricolage Grotesque Variable', 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter Variable', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --header-h: 64px;
  --gutter: clamp(16px, 3vw, 32px);

  --shadow-sm: 0 1px 2px rgba(10, 25, 18, 0.06), 0 2px 8px rgba(10, 25, 18, 0.06);
  --shadow: 0 2px 4px rgba(10, 25, 18, 0.06), 0 12px 32px rgba(10, 25, 18, 0.1);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.12), 0 30px 80px rgba(0, 0, 0, 0.3);

  /* Older names still used by a few inline styles. */
  --forest: var(--ink);
  --forest-deep: var(--ink-2);
  --forest-soft: var(--muted);
  --accent: var(--lime-2);
  --accent-text: var(--ink);
  --accent-tint: var(--lime-soft);
  --band: var(--mint);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; width: 100%; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm); background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--lime); }

/* ---------- header ---------- */
.rx-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; border-bottom: 1px solid var(--line-dark); }
.rx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); padding-inline: var(--gutter); }
.rx-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; white-space: nowrap; }
.rx-brand svg { width: 30px; height: 30px; flex: none; }
.rx-brand__tag { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(197, 240, 74, 0.3); background: rgba(197, 240, 74, 0.12); color: var(--lime); font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; }
.rx-header__nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rx-header__nav > a:not(.btn) { color: #dbe7df; text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.rx-header__nav > a:not(.btn):hover { color: #fff; }
.rx-user { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-dark-muted); font-size: 0.85rem; }
/* Language menu of the sign-in pages: EN / FR / ES, the current one highlighted. */
.rx-lang { position: relative; margin: 0; }
.rx-lang summary { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 11px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: #dbe7df; font-size: 0.88rem; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.rx-lang summary::-webkit-details-marker { display: none; }
.rx-lang summary:hover, .rx-lang details[open] summary { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.rx-lang__globe { width: 16px; height: 16px; flex: none; color: #9fb3a8; }
.rx-lang__chev { width: 13px; height: 13px; flex: none; color: #9fb3a8; transition: transform 0.18s ease; }
.rx-lang details[open] .rx-lang__chev { transform: rotate(180deg); }
.rx-lang__list { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; display: flex; flex-direction: column; gap: 2px; min-width: 190px; padding: 6px; background: #10261c; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.rx-lang__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px 9px 12px; border: 0; border-radius: 9px; background: transparent; color: #dbe7df; font: inherit; font-size: 0.93rem; font-weight: 550; text-align: left; cursor: pointer; }
.rx-lang__list button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.rx-lang__code { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: #8aa093; }
.rx-lang__check { width: 16px; height: 16px; flex: none; color: var(--lime); visibility: hidden; }
.rx-lang__list button[aria-current='true'] { color: #fff; font-weight: 700; }
.rx-lang__list button[aria-current='true'] .rx-lang__check { visibility: visible; }
.rx-logout { margin: 0; }
.rx-logout button { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 0.85rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.rx-logout button:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 720px) {
  .rx-user, .rx-hide-sm { display: none; }
  .rx-header__nav { gap: 12px; }
  .rx-brand__tag { display: none; }
}

/* flash messages */
.rx-messages { display: grid; gap: 6px; padding: 10px var(--gutter); background: var(--lime-soft); border-bottom: 1px solid #d9f08f; }
.rx-msg { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.rx-msg::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #2bb24c; }
.rx-msg--error::before, .rx-msg--warning::before { background: #c0392b; }
.rx-msg--error, .rx-msg--warning { color: #7c1f2e; }
.rx-msg__text { flex: 1; min-width: 0; }
.rx-msg__close { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin: -3px -4px -3px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: 0.6; }
.rx-msg__close:hover { opacity: 1; background: rgba(10, 25, 18, 0.08); }
.rx-msg__close:focus-visible { opacity: 1; }
.rx-msg__close svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.rx-footer { margin-top: auto; background: var(--ink); color: var(--on-dark-muted); font-size: 0.86rem; }
.rx-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px var(--gutter); }
.rx-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.rx-footer__brand svg { width: 22px; height: 22px; flex: none; }
.rx-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rx-footer a { color: #fff; text-decoration: none; }
.rx-footer a:hover { color: var(--lime); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-2); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.94rem; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); box-shadow: 0 6px 18px rgba(197, 240, 74, 0.28); }
.btn.primary:hover, .btn--lime:hover { background: var(--lime-2); border-color: var(--lime-2); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.btn.small, .btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.86rem; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn.quiet:hover { color: var(--ink); background: var(--mint); }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
button:disabled, .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- small pieces ---------- */
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.label { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--ink); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--ink); font-size: 0.82rem; font-weight: 650; }
.eyebrow--dark { background: rgba(197, 240, 74, 0.12); color: var(--lime); border: 1px solid rgba(197, 240, 74, 0.25); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(197, 240, 74, 0.25); }
.crumbs { font-size: 0.86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.rule { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #eef2ef; color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.pill.live { background: var(--lime-soft); color: var(--ink); }
.pill.live .dot { background: #2bb24c; box-shadow: 0 0 0 3px rgba(43, 178, 76, 0.18); }
.pill.off { background: #eef2ef; color: var(--muted); }
.pill.soon, .pill.warn { background: var(--gold-soft); color: #6e4a00; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--mint); color: var(--ink-3); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
a.chip:hover { background: var(--mint-2); text-decoration: none; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #eef2ef; color: var(--muted); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.tag.valid { background: var(--lime-soft); color: #2a5a12; }
.tag.risky { background: var(--gold-soft); color: #6e4a00; }
.tag.invalid { background: var(--rose-soft); color: #8f1d34; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 0.82rem; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: #a3182f; font-size: 0.85rem; font-weight: 600; }
.alert { padding: 12px 14px; border-radius: var(--r); border: 1px solid #f3b8c4; background: #fff5f7; color: #7c1f2e; font-size: 0.9rem; }
.alert .errorlist { margin: 0; color: inherit; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.card--notice { border-color: #cfe98a; background: linear-gradient(120deg, var(--lime-soft), #fff 70%); }
.card--band { background: var(--mint); border-color: var(--mint-2); }
.card--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card h2 { margin: 0; }

/* ---------- forms ---------- */
input[type='text'], input[type='url'], input[type='email'], input[type='password'], input[type='number'], input[type='search'], input[type='tel'], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: 12px; background: #fff; color: var(--text); font-size: 0.95rem; line-height: 1.4; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #8a988f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-4); box-shadow: 0 0 0 3px rgba(179, 225, 50, 0.55); }
input[readonly] { background: #f7faf8; }
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1912' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
input[type='file'] { width: 100%; font-size: 0.9rem; color: var(--muted); }
input[type='file']::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 650; font-size: 0.88rem; color: var(--ink-3); }
.helptext, .hint { display: block; font-size: 0.82rem; color: var(--muted-2); line-height: 1.45; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

/* Django's form.as_p output */
.as-p p { margin: 0 0 14px; }
.as-p label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.88rem; color: var(--ink-3); }
.as-p .helptext { margin-top: 6px; }
.as-p p:has(> input[type='checkbox']) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.as-p p:has(> input[type='checkbox']) label { margin: 0; font-weight: 500; color: var(--muted); }
.as-p input[type='checkbox'] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }

/* toggle switch built on a real checkbox */
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; color: var(--text); font-weight: 400; cursor: pointer; }
.switch:hover { border-color: var(--border-2); }
.switch strong { display: block; font-weight: 700; }
.switch input[type='checkbox'] { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 42px; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: #cfd8d2; cursor: pointer; transition: background-color 0.15s ease; }
.switch input[type='checkbox']::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 25, 18, 0.25); transition: transform 0.15s ease, background-color 0.15s ease; }
.switch input[type='checkbox']:checked { background: var(--lime); }
.switch input[type='checkbox']:checked::after { transform: translateX(18px); background: var(--ink); }
.switch input[type='checkbox']:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 2px; }

/* segmented control */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #e9efeb; }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 650; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--lime-2); outline-offset: 2px; }

/* ---------- Studio layout ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); flex: 1 0 auto; min-height: calc(100vh - var(--header-h)); }
.app-nav { position: sticky; top: var(--header-h); align-self: start; display: flex; flex-direction: column; gap: 4px; height: calc(100vh - var(--header-h)); padding: 22px 14px; overflow-y: auto; background: var(--ink); border-right: 1px solid var(--line-dark); }
.app-nav__label { padding: 0 12px 8px; color: var(--on-dark-muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark-muted); font-weight: 600; font-size: 0.94rem; text-decoration: none; white-space: nowrap; }
.app-nav a svg { width: 18px; height: 18px; flex: none; }
.app-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.app-nav a[aria-current='page'] { background: rgba(197, 240, 74, 0.12); color: var(--lime); }
.app-nav__foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.app-nav__foot a { font-size: 0.86rem; padding: 8px 12px; }
.app-main { min-width: 0; width: 100%; max-width: 1260px; padding: clamp(22px, 3vw, 36px) clamp(16px, 3vw, 40px) 72px; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-nav { position: static; flex-direction: row; height: auto; gap: 4px; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-dark); scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav__label, .app-nav__foot { display: none; }
  .app-nav a { padding: 8px 12px; font-size: 0.88rem; }
  .app-nav a svg { width: 16px; height: 16px; }
}

/* page heading inside the Studio */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head__text { display: grid; gap: 8px; min-width: 0; }
.page-head h1, .bl h1 { margin: 0; font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.45rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; }
.page-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.bl { color: var(--text); }
.bl h2 { margin: 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.bl h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.bl p { margin: 0; }
.bl a:not(.btn):not(.chip) { color: var(--leaf); }

/* KPI tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; }
.stat strong { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.stat:has(strong.gold) { background: var(--lime-soft); border-color: #d9f08f; }

/* two-column builder layout */
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 24px; }
.layout > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.layout > .side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1100px) { .layout > .side { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (max-width: 860px) { .layout > .side { max-width: none; } }
.columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .columns { grid-template-columns: minmax(0, 1fr); } }

/* builder steps and messages */
.step { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.step-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.step-title { display: flex; gap: 12px; align-items: flex-start; }
.num { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--display); font-weight: 800; font-size: 0.95rem; }
.msg { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.msg.on { border-color: var(--lime-2); background: #fbfef2; box-shadow: 0 0 0 3px rgba(197, 240, 74, 0.35); }
.msg-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.actions-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--ink); }
.actions-bar .switch { margin-right: auto; background: #fff; }
.actions-bar .errorlist { color: #ffc2cf; }

/* reels */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.reel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r); background: #fff; }
.thumb { display: block; width: 100%; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--ink-4), var(--ink)) center / cover no-repeat; }
.reel-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.reel-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.86rem; }
.reel form { margin-top: auto; }

/* phone preview, same device as on replixy.com */
.phone { position: relative; width: 100%; max-width: 340px; margin-inline: auto; padding: 10px; border-radius: 42px; background: #050c08; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.phone::before { content: ''; position: absolute; z-index: 2; top: 19px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 999px; background: #050c08; }
.screen { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; border-radius: 32px; background: #fff; }
.screen-head { display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; border-bottom: 1px solid #eef2ef; }
.screen-head strong { font-size: 0.9rem; }
.chat { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 14px 12px 18px; }
.bubble { align-self: flex-start; max-width: 86%; overflow: hidden; border-radius: 18px 18px 18px 6px; background: #f0f3f1; }
.bubble p { margin: 0; padding: 10px 13px; white-space: pre-line; font-size: 0.87rem; line-height: 1.42; overflow-wrap: anywhere; }
.bubble .bubble-button { padding: 10px 13px; border-top: 1px solid #dfe6e2; background: #fff; color: var(--ink); text-align: center; font-weight: 750; font-size: 0.85rem; }
.mine { align-self: flex-end; max-width: 72%; padding: 9px 13px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; font-size: 0.87rem; overflow-wrap: anywhere; }
.context { align-self: center; color: var(--muted-2); font-size: 0.74rem; }

/* tables */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; white-space: nowrap; }
.table th { position: sticky; top: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fbfcfb; color: var(--muted); font-size: 0.76rem; font-weight: 700; text-align: left; letter-spacing: 0.02em; }
.table td { padding: 12px 14px; border-bottom: 1px solid #eef2ef; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; max-width: 280px; margin-top: 2px; color: var(--muted-2); font-size: 0.78rem; white-space: normal; }
.table .empty { padding: 44px 16px; color: var(--muted); text-align: center; white-space: normal; }
.pager { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 0.9rem; }

/* conversations flow line */
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #dbe7df; font-size: 0.9rem; }
.flowline strong { color: var(--lime); font-weight: 700; }
.flowline__arrow { color: var(--on-dark-muted); }
.flowline small { flex-basis: 100%; color: var(--on-dark-muted); font-size: 0.8rem; }
.checklist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef2ef; }
.checklist li:last-child { border-bottom: 0; }
.checklist__mark { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eef2ef; color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.checklist__mark--ok { background: var(--lime); color: var(--ink); }
.searchbar { display: flex; gap: 8px; max-width: 460px; }
.searchbar input { min-width: 0; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filters label { display: block; margin: 0 0 6px; font-size: 0.82rem; font-weight: 650; color: var(--ink-3); }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters > :first-child { grid-column: 1 / -1; } }

/* ---------- sign-in, join and other entrance pages ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1 0 auto; min-height: calc(100vh - var(--header-h) - 58px); }
.auth__panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(32px, 6vw, 80px); background: var(--ink); color: #fff; }
.auth__panel::before { content: ''; position: absolute; z-index: -1; top: -30%; right: -25%; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(197, 240, 74, 0.22), transparent 70%); }
.auth__panel::after { content: ''; position: absolute; z-index: -1; bottom: -35%; left: -25%; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(242, 182, 64, 0.16), transparent 70%); }
.auth__panel .eyebrow { align-self: flex-start; }
.auth__panel h1 { margin: 0; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.auth__panel p { margin: 0; max-width: 44ch; color: var(--on-dark-muted); font-size: 1.05rem; }
.auth__list { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; color: #dbe7df; }
.auth__list li { display: flex; gap: 10px; align-items: flex-start; }
.auth__list svg { width: 20px; height: 20px; margin-top: 1px; flex: none; color: var(--lime); }
.auth__body { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px) 16px; }
.auth__card { width: 100%; max-width: 460px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.auth__card h2 { margin: 0 0 6px; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.auth__card > p { margin: 0 0 18px; color: var(--muted); }
.auth__form { display: grid; gap: 14px; margin: 0; }
.auth__foot { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth__panel { padding: 28px 20px 30px; gap: 12px; }
  .auth__panel h1 { font-size: 2.1rem; }
  .auth__panel p { font-size: 0.98rem; }
  .auth__list { display: none; }
  .auth__body { padding: 20px 16px 40px; }
}

/* social sign-in buttons (partials/social_login.html) */
.social-login { display: grid; gap: 10px; margin: 4px 0 2px; }
.social-login form { margin: 0; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 18px; border: 1px solid var(--border-2); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.98rem; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.social-btn:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.social-btn:active { transform: translateY(1px); }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; color: var(--muted-2); font-size: 0.82rem; font-weight: 600; }
.social-or::before, .social-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* single message card (invitation problems, private beta, confirmations) */
.notice { width: 100%; max-width: 600px; margin: clamp(32px, 8vw, 96px) auto; padding: 0 16px; }
.notice__card { padding: clamp(24px, 5vw, 44px); border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.notice__mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px; background: var(--ink); }
.notice__mark svg { width: 34px; height: 34px; }
.notice .label { margin-bottom: 12px; }
.notice h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.notice__text { margin: 0 0 24px; color: var(--muted); font-size: 1.02rem; }
.notice__foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #eef2ef; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.notice__foot form { margin: 0; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--leaf); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- public tutorial landing ---------- */
.tut__hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(110px, 12vw, 150px); background: var(--ink); color: #fff; }
.tut__hero::before { content: ''; position: absolute; z-index: -1; top: -40%; right: -10%; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(197, 240, 74, 0.2), transparent 70%); }
.tut__hero h1 { max-width: 16ch; margin: 18px 0 16px; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.tut__hero .lead { max-width: 52ch; margin: 0; color: var(--on-dark-muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.tut__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: calc(-1 * clamp(80px, 9vw, 110px)); padding-bottom: 72px; position: relative; }
.tut__grid .card { padding: clamp(22px, 3.5vw, 34px); box-shadow: var(--shadow); }
.tut__grid h2 { margin: 12px 0 10px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.tut__grid h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.tut__steps { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; }
.tut__steps li { display: flex; gap: 12px; align-items: center; counter-increment: s; font-weight: 600; }
.tut__steps li::before { content: counter(s); display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 800; }
.fine { display: block; margin-top: 14px; color: var(--muted-2); font-size: 0.82rem; }
@media (max-width: 860px) { .tut__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- text pages (privacy, academy leftovers) ---------- */
.page-band { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: var(--mint); }
.page-band h1 { margin: 14px 0 10px; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.page-band p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.prose { max-width: 72ch; padding-block: clamp(28px, 5vw, 56px) 72px; font-size: 1.02rem; line-height: 1.72; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.prose .card { margin-top: 1.6em; }
.prose .card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.list-rows { display: grid; gap: 12px; padding-block: 28px 72px; }

/* ---------- Studio dashboard (overview.html) ---------- */
.bl .seg.seg--links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 650; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.bl .seg.seg--links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); text-decoration: none; }
.bl .seg.seg--links a[aria-current='true'] { background: var(--ink); color: #fff; }
.ov { display: flex; flex-direction: column; gap: 18px; }
.ov .page-head { margin-bottom: 4px; }
.ov-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.ov-card-head h2 { margin-right: auto; }
.ov-card-head__action { margin-left: 4px; }

/* setup checklist */
.ov-setup { border-color: #cfe98a; background: linear-gradient(120deg, var(--lime-soft), #fff 62%); }
.ov-setup__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.ov-progress { flex: 0 0 220px; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(10, 25, 18, 0.1); }
.ov-progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.ov-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ov-step { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; }
.ov-step__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef2ef; color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 0.88rem; }
.ov-step__mark svg { width: 15px; height: 15px; }
.ov-step__text { display: grid; gap: 3px; }
.ov-step__text strong { font-size: 0.92rem; line-height: 1.3; }
.ov-step__text span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.ov-step .btn { align-self: flex-start; margin-top: auto; }
.ov-step.is-done { background: transparent; border-style: dashed; }
.ov-step.is-done .ov-step__mark { background: var(--lime); color: var(--ink); }
.ov-step.is-done .ov-step__text strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(10, 25, 18, 0.35); }
.ov-step.is-next { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(197, 240, 74, 0.55); }
.ov-step.is-next .ov-step__mark { background: var(--ink); color: var(--lime); }
@media (max-width: 1100px) { .ov-steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* plan usage: contacts this month */
.ov-usage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.ov-usage__text { display: grid; gap: 2px; flex: 1 1 320px; min-width: 0; }
.ov-usage__text strong { font-size: 0.95rem; }
.ov-usage__text span { color: var(--muted); font-size: 0.86rem; }
.ov-usage__bar { flex: 0 1 240px; height: 10px; overflow: hidden; border-radius: 999px; background: #eef2ef; }
.ov-usage__bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--leaf); }
.ov-usage.is-close { border-color: #f3c7a0; background: #fff9f1; }
.ov-usage.is-close .ov-usage__bar span { background: var(--gold); }
.ov-usage.is-full { border-color: #f3b8c4; background: #fff5f7; }
.ov-usage.is-full .ov-usage__bar span { background: #c0392b; }
@media (max-width: 640px) { .ov-usage__bar { flex-basis: 100%; } }
.auth__fine { margin: 14px 0 0; color: var(--muted-2); font-size: 0.82rem; line-height: 1.5; }

/* needs a look */
.bl a.ov-alert:not(.btn) { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #f3c7a0; border-radius: var(--r-lg); background: #fff7ee; color: var(--ink); text-decoration: none; }
.bl a.ov-alert:not(.btn):hover { border-color: #e0a066; text-decoration: none; }
.ov-alert__icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 800; }
.ov-alert__text { display: grid; gap: 2px; margin-right: auto; }
.ov-alert__text span { color: var(--muted); font-size: 0.86rem; }
.ov-alert__go { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }

/* headline numbers */
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ov-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.ov-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl .ov-kpi__label { font-family: var(--font); font-size: 0.84rem; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.ov-kpi__value { font-family: var(--display); font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ov-spark { display: block; width: 100%; height: 34px; margin: 2px 0 2px; overflow: visible; }
.ov-spark polyline { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bl .ov-kpi__help { color: var(--muted-2); font-size: 0.78rem; line-height: 1.4; }
.ov-kpi--emails { background: var(--ink); border-color: var(--ink); color: #fff; }
.ov-kpi--emails .ov-kpi__label { color: var(--on-dark-muted); }
.bl .ov-kpi--emails .ov-kpi__help { color: var(--on-dark-muted); }
.ov-kpi--emails .ov-kpi__value { color: var(--lime); }
.ov-kpi--emails .ov-spark polyline { stroke: var(--lime); }
.ov-delta { padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 750; white-space: nowrap; }
.ov-delta--up { background: #e3f6dc; color: #22661d; }
.ov-delta--down { background: var(--rose-soft); color: #8f1d34; }
.ov-delta--flat { background: #eef2ef; color: var(--muted); }
.ov-kpi--emails .ov-delta--up { background: rgba(197, 240, 74, 0.16); color: var(--lime); }
.ov-kpi--emails .ov-delta--flat { background: rgba(255, 255, 255, 0.08); color: var(--on-dark-muted); }
@media (max-width: 1100px) { .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* chart and funnel */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ov-grid--b { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .ov-grid, .ov-grid--b { grid-template-columns: minmax(0, 1fr); } }
.ov-chart { background: var(--ink); border-color: var(--ink); color: #fff; }
.ov-chart h2 { color: #fff; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--on-dark-muted); }
.ov-key { display: inline-flex; align-items: center; gap: 7px; }
.ov-key::before { content: ''; width: 14px; height: 4px; border-radius: 2px; background: currentColor; }
.ov-key--bar::before { height: 10px; width: 10px; background: var(--lime); }
.ov-key--links::before { background: #fff; }
.ov-key--emails::before { background: var(--gold); }
.ov-svg { display: block; width: 100%; height: auto; }
.ov-gridline { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.ov-ylabel { fill: var(--on-dark-muted); font-size: 11px; text-anchor: end; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.ov-xlabel { fill: var(--on-dark-muted); font-size: 11px; text-anchor: middle; }
.ov-bar { fill: var(--lime); opacity: 0.88; }
.ov-bar:hover { opacity: 1; }
.ov-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ov-line--links { stroke: #fff; }
.ov-line--emails { stroke: var(--gold); }
.ov-empty { display: grid; justify-items: start; gap: 6px; padding: 28px 22px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: var(--r); color: var(--on-dark-muted); }
.ov-empty strong { color: #fff; }
.ov-empty .btn { margin-top: 8px; }
.ov-empty--light { border-color: var(--border-2); color: var(--muted); }
.ov-empty--light strong { color: var(--ink); }
.ov-funnel { display: flex; flex-direction: column; }
.ov-funnel__list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ov-funnel__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.9rem; font-weight: 600; }
.ov-funnel__row strong { margin-left: auto; font-family: var(--display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ov-funnel__row em { min-width: 42px; color: var(--muted-2); font-style: normal; font-size: 0.8rem; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.ov-funnel__track { height: 8px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #eef2ef; }
.ov-funnel__track span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--ink); }
.ov-funnel__step--last .ov-funnel__track span { background: var(--gold); }

/* automations table and account */
.ov-table { border: 0; border-radius: 0; margin: 0 -20px; }
.ov-table .table th:first-child, .ov-table .table td:first-child { padding-left: 20px; }
.ov-table .table th:last-child, .ov-table .table td:last-child { padding-right: 20px; }
.ov-table .table td { vertical-align: middle; }
.ov-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.ov-auto-name { margin-right: 10px; color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.ov-auto-name:hover { text-decoration: underline; }
.ov-rate { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, var(--lime-soft) var(--rate), #f2f5f3 var(--rate)); font-weight: 700; text-align: center; }
.ov-more { display: inline-block; margin-top: 12px; font-weight: 650; }
.ov-account { display: flex; flex-direction: column; gap: 14px; }
.ov-account__id { display: flex; align-items: center; gap: 12px; }
.ov-account__id .avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 1rem; }
.ov-account__id div { display: grid; gap: 1px; min-width: 0; }
.ov-account__id strong { overflow: hidden; text-overflow: ellipsis; }
.ov-account .checklist li { font-size: 0.9rem; }
.ov-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; border-top: 1px solid #eef2ef; }

/* latest conversations */
.ov-feed { display: grid; margin: 0; padding: 0; list-style: none; }
.ov-feed li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 76px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2ef; }
.ov-feed li:last-child { border-bottom: 0; }
.ov-feed__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--mint); color: var(--ink-3); }
.ov-feed__icon svg { width: 17px; height: 17px; }
.ov-feed__icon--dm { background: var(--gold-soft); color: #6e4a00; }
.ov-feed__text { display: grid; gap: 1px; min-width: 0; }
.ov-feed__text strong { font-size: 0.9rem; }
.ov-feed__text span { overflow: hidden; color: var(--muted); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.ov-feed__time { color: var(--muted-2); font-size: 0.8rem; text-align: right; white-space: nowrap; }
.ov-tag { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ov-tag--good { background: var(--lime-soft); color: #2a5a12; }
.ov-tag--wait { background: #eef2ef; color: var(--muted); }
.ov-tag--bad { background: var(--rose-soft); color: #8f1d34; }
@media (max-width: 640px) {
  .ov-kpis { gap: 10px; }
  .ov-kpi { padding: 14px 14px 12px; }
  .ov-kpi__help { display: none; }
  .ov-feed li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .ov-feed__time { grid-column: 2; text-align: left; margin-top: -8px; }
  .ov-feed__icon { width: 32px; height: 32px; }
  .ov-alert__go { display: none; }
  .ov-progress { flex-basis: 100%; }
}

/* ---------- allauth's own pages (Google sign-in errors, confirmations) ---------- */
main.rx-allauth { flex: 0 0 auto; width: calc(100% - 32px); max-width: 520px; margin: clamp(32px, 8vw, 88px) auto; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
main.rx-allauth h1 { margin: 0 0 12px; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
main.rx-allauth h2 { margin: 18px 0 8px; font-size: 1.2rem; font-weight: 750; }
main.rx-allauth p { margin: 0 0 14px; color: var(--muted); }
main.rx-allauth form { display: grid; gap: 12px; margin: 8px 0 0; }
main.rx-allauth form p { margin: 0; }
main.rx-allauth label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.88rem; color: var(--ink-3); }
main.rx-allauth button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--lime); border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 750; cursor: pointer; justify-self: start; }
main.rx-allauth button:hover { background: var(--lime-2); border-color: var(--lime-2); }
main.rx-allauth ul { margin: 0 0 14px; padding-left: 18px; }
main.rx-allauth a { font-weight: 650; }
.errorlist.nonfield { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f3b8c4; border-radius: 12px; background: #fff5f7; color: #7c1f2e; }

/* ---------- Channels: Instagram, Facebook Messenger and TikTok ---------- */
.ch { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.ch svg { width: 12px; height: 12px; flex: none; }
.ch--instagram { background: #fde8f1; color: #8a1f4d; }
.ch--facebook { background: #e5eeff; color: #1a4fb5; }
.ch--tiktok { background: #e8f6f7; color: #0d5c62; }
.ov-feed__text .ch { overflow: visible; margin-left: 6px; font-size: 0.68rem; }
.ov-feed__text .ch--instagram { color: #8a1f4d; }
.ov-feed__text .ch--facebook { color: #1a4fb5; }
.ov-feed__text .ch--tiktok { color: #0d5c62; }
.ov-auto-name + .ch { margin-right: 8px; }
.ov-channel { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid #eef2ef; }
.bl .ov-channel h3 { font-size: 1rem; }
.fb-pages { display: grid; gap: 10px; }
.fb-page { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; cursor: pointer; }
.fb-page:hover { border-color: var(--border-2); }
.fb-page:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.fb-page input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.fb-page__pic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.fb-page__pic--sm { width: 32px; height: 32px; flex-basis: 32px; }
.ov-account__id .fb-page__pic { width: 42px; height: 42px; flex-basis: 42px; }
.fb-page__text { display: grid; gap: 1px; min-width: 0; }
.fb-page__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.is-muted { opacity: 0.62; }

/* ---------- Replixy connector: consent page and Settings > AI assistants ---------- */
.consent__pair { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.consent__pair .notice__mark { margin-bottom: 0; }
.consent__plus { color: var(--muted-2); font-size: 1.4rem; font-weight: 700; }
.consent__app { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--gold-soft); color: #6e4a00; font-family: var(--display, inherit); font-size: 1.6rem; font-weight: 800; }
.consent__form { gap: 18px; }
.consent__block { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.consent__block legend { margin-bottom: 8px; padding: 0; color: var(--ink-3); font-size: 0.88rem; font-weight: 700; }
.consent__choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; cursor: pointer; }
.consent__choice--fixed { cursor: default; background: #fbfcfb; }
.consent__choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.consent__choice:has(input:checked) { border-color: var(--ink); }
.consent__choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent__name { display: grid; gap: 2px; min-width: 0; }
.consent__never { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.consent__return { margin: 0; overflow-wrap: anywhere; }
.consent__warn { margin: 0; }
.assistant { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); }
.assistant__who { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 260px; }
.assistant form { margin: 0; }
.assistant-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; font-size: 0.86rem; }
.assistant-log li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid #eef2ef; }
.assistant-log code, .copy-line input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84rem; }

/* Live / Off switch: automations list and the top of each automation's settings. */
.live-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.live-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 12px 3px 4px; border: 1px solid var(--border-2); border-radius: 999px; background: #eef2ef; color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.live-toggle__track { position: relative; flex: 0 0 38px; width: 38px; height: 22px; border-radius: 999px; background: #cfd8d2; transition: background-color 0.15s ease; }
.live-toggle__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 25, 18, 0.25); transition: transform 0.15s ease, background-color 0.15s ease; }
.live-toggle[aria-checked='true'] { background: var(--lime-soft); border-color: var(--lime-2); color: var(--ink); }
.live-toggle[aria-checked='true'] .live-toggle__track { background: var(--lime); }
.live-toggle[aria-checked='true'] .live-toggle__track::after { transform: translateX(16px); background: var(--ink); }
.live-toggle:hover:not(:disabled) { border-color: var(--ink); }
.live-toggle:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 2px; }
.live-toggle:disabled { cursor: not-allowed; opacity: 0.7; }
.live-toggle[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.live-switch__error { flex-basis: 100%; color: #a3182f; font-size: 0.82rem; font-weight: 600; }
.live-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.live-card .live-switch { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .live-toggle, .live-toggle__track, .live-toggle__track::after { transition: none; } }

/* Missed comments: the notice and the catch-up card */
.missed-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; }
.catch-up .stats { margin-top: 0; }
.catch-up__list { max-height: 360px; }
.catch-up__list td { white-space: normal; }
.catch-up__error { color: #8a4b00; }
.spinner { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--border); border-top-color: var(--ink, #0a1912); border-radius: 50%; vertical-align: -1px; animation: rx-spin 0.9s linear infinite; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
