/* Meteori — Espace client
   Layout: top pill navigation with dropdowns, 12-column card grid, one accent card per screen for the action that matters now.
   Dark-first (Meteori brand), with a light theme. */
:root {
  --bg: #05060d;
  --surface: #10121b;
  --surface-2: #171a26;
  --surface-3: #232637;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --fg: #f4f4f8;
  --muted: #a4a6b6;
  --faint: #737688;
  --accent: #4d3dfc;
  --accent-hover: #5e50ff;
  --accent-soft: rgba(77, 61, 252, .20);
  --accent-text: #aea7ff;
  --on-accent: #ffffff;
  --hatch: rgba(255, 255, 255, .2);
  --bar: #2e3246;
  --ok: #4fd393; --ok-soft: rgba(79, 211, 147, .14);
  --warn: #f5b44e; --warn-soft: rgba(245, 180, 78, .15);
  --info: #66bfff; --info-soft: rgba(102, 191, 255, .14);
  --bad: #ff877d; --bad-soft: rgba(255, 135, 125, .14);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --font-display: "Funnel Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Funnel Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-card: 28px;
  --r-inner: 18px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eceef3; --surface: #ffffff; --surface-2: #f4f5f8; --surface-3: #e3e5ec;
    --line: rgba(10, 12, 30, .08); --line-strong: rgba(10, 12, 30, .16);
    --fg: #0b0d18; --muted: #565968; --faint: #7b7e8d;
    --accent-soft: rgba(77, 61, 252, .10); --accent-text: #3326d6; --hatch: rgba(10, 12, 30, .16); --bar: #cfd2de;
    --ok: #12773f; --ok-soft: #ddf5e7; --warn: #8a5300; --warn-soft: #fff0d6;
    --info: #0b5a96; --info-soft: #e1f0ff; --bad: #b42318; --bad-soft: #fde6e3;
    --shadow: 0 24px 60px rgba(10, 12, 30, .14);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eceef3; --surface: #ffffff; --surface-2: #f4f5f8; --surface-3: #e3e5ec;
  --line: rgba(10, 12, 30, .08); --line-strong: rgba(10, 12, 30, .16);
  --fg: #0b0d18; --muted: #565968; --faint: #7b7e8d;
  --accent-soft: rgba(77, 61, 252, .10); --accent-text: #3326d6; --hatch: rgba(10, 12, 30, .16); --bar: #cfd2de;
  --ok: #12773f; --ok-soft: #ddf5e7; --warn: #8a5300; --warn-soft: #fff0d6;
  --info: #0b5a96; --info-soft: #e1f0ff; --bad: #b42318; --bad-soft: #fde6e3;
  --shadow: 0 24px 60px rgba(10, 12, 30, .14);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Formule (aperçu Boutique Pro / Site Vitrine) */
.only-vitrine { display: none !important; }
[data-formule="vitrine"] .only-boutique { display: none !important; }
[data-formule="vitrine"] .only-vitrine { display: revert !important; }
[data-formule="vitrine"] .only-vitrine.flex { display: flex !important; }
[data-formule="vitrine"] .only-vitrine.grid { display: grid !important; }
[data-formule="vitrine"] .corner.only-vitrine, [data-formule="vitrine"] .icon-btn.only-vitrine { display: inline-grid !important; }

/* ---------- Shell ---------- */
.shell { overflow-x: clip; max-width: 1480px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); padding-block: 0 64px; }
.page { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  padding-block: 18px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-right: 6px; }
.brand svg { flex: none; }
.brand > span { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; }
.brand b { display: block; font: 600 21px/1 var(--font-display); letter-spacing: -0.01em; }
.brand small { display: block; font-size: 12px; line-height: 1.1; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: 1; justify-content: center; min-width: 0; }
.new-dot { height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.pill.is-active .new-dot { background: rgba(255,255,255,.22); color: #fff; }
.nav-item { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--line-strong); }
.pill svg { flex: none; }
.pill .chev { transition: transform .2s ease; opacity: .7; }
.pill[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill .dot-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; background: #f5b44e; color: #231400; }
.pill.is-active .dot-count { background: #fff; color: var(--accent); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; z-index: 50;
  padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.menu--right { left: auto; right: 0; }
.menu a, .menu button.menu-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px;
  color: var(--fg); text-decoration: none; border: 0; background: transparent; text-align: left; width: 100%;
}
.menu a:hover, .menu button.menu-row:hover, .menu a.is-current { background: var(--surface-2); }
.menu .mi-icon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.menu .mi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu .mi-text b { font-weight: 500; font-size: 14.5px; }
.menu .mi-text span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 8px; }
.menu-label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 4px; }
.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; flex: none;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn .ping { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: #f5b44e; }
.avatar-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 13.5px/1 var(--font-body); }
.avatar--soft { background: var(--accent-soft); color: var(--accent-text); }
.avatar-btn .who { display: flex; flex-direction: column; text-align: left; line-height: 1.15; padding-right: 6px; }
.avatar-btn .who b { font-weight: 500; font-size: 14px; }
.avatar-btn .who span { font-size: 12px; color: var(--muted); }
@media (max-width: 1480px) { .pill > svg:first-child { display: none; } .pill { padding: 0 14px; } .new-dot { display: none; } }
@media (max-width: 1340px) { .avatar-btn .who { display: none; } }
.burger { display: none; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.notif + .notif { border-top: 1px solid var(--line); border-radius: 0; }
.notif p { font-size: 14px; line-height: 1.4; }
.notif time { font-size: 12.5px; color: var(--muted); }

/* Mobile drawer menu */
.mnav { display: none; }
@media (max-width: 1240px) {
  .topbar { flex-wrap: wrap; }
  .nav { display: none; }
  .burger { display: inline-grid; }
  .avatar-btn .who { display: none; }
  .mnav { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); }
  .mnav[hidden] { display: none !important; }
  .mnav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; color: var(--fg); text-decoration: none; font-weight: 500; }
  .mnav a.is-active { background: var(--accent); color: var(--on-accent); }
  .mnav .menu-label { padding-left: 14px; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .actions .hide-sm { display: none; }
  .actions { gap: 6px; }
  .topbar .icon-btn { width: 40px; height: 40px; }
  .avatar-btn { height: 40px; }
  .avatar-btn .avatar { width: 32px; height: 32px; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 8px 4px; }
.page-head .titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: 16px; color: var(--muted); max-width: 62ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s-3 { grid-column: span 3; } .s-4 { grid-column: span 4; } .s-5 { grid-column: span 5; } .s-6 { grid-column: span 6; }
.s-7 { grid-column: span 7; } .s-8 { grid-column: span 8; } .s-12 { grid-column: span 12; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 1180px) {
  .s-3 { grid-column: span 6; } .s-4, .s-5, .s-7, .s-8 { grid-column: span 12; } .s-6 { grid-column: span 12; }
}
@media (max-width: 640px) { .s-3 { grid-column: span 12; } }

/* ---------- Cards ---------- */
.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.card--flat { background: var(--surface-2); border-color: transparent; }
.card--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card--accent .muted, .card--accent .card-sub { color: rgba(255, 255, 255, .82); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-title { font-size: 19px; line-height: 1.2; }
.card-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.corner { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; background: transparent; }
.corner:hover { background: var(--surface-2); }
.card--accent .corner { border-color: rgba(255, 255, 255, .45); color: #fff; }
.card--accent .corner:hover { background: rgba(255, 255, 255, .12); }
.corner--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card--accent .corner--solid { background: #fff; color: var(--accent); border-color: #fff; }
.big { font: 500 clamp(34px, 3.4vw, 46px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big small { font: 500 16px/1 var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.card--accent .big small { color: rgba(255, 255, 255, .8); }
.mid { font: 500 30px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi { gap: 14px; }
.kpi .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hatch { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }
.card--accent .hatch { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 2px, transparent 2px 7px); }
.dots { background-image: radial-gradient(var(--hatch) 1.4px, transparent 1.6px); background-size: 9px 9px; }
.card--accent .dots { background-image: radial-gradient(rgba(255, 255, 255, .35) 1.4px, transparent 1.6px); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-ok { color: var(--ok); background: var(--ok-soft); }
.b-warn { color: var(--warn); background: var(--warn-soft); }
.b-info { color: var(--info); background: var(--info-soft); }
.b-bad { color: var(--bad); background: var(--bad-soft); }
.b-accent { color: var(--accent-text); background: var(--accent-soft); }
.b-neutral { color: var(--muted); background: var(--surface-2); }
.b-white { color: #0b0d18; background: rgba(255, 255, 255, .92); }
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.card--accent .tag { color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn-invert { background: var(--fg); color: var(--bg); }
.btn-white { background: #fff; color: #0b0d18; }
.btn-white:hover { background: #ecebff; color: #0b0d18; }
.btn-line-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); cursor: pointer; }
.btn-line-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 6px 2px; color: var(--accent-text); font-weight: 500; font-size: 14px; text-decoration: none; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.seg a[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu form { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { text-decoration: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.chip-btn .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-btn[aria-pressed="true"] .n { color: inherit; opacity: .7; }

/* ---------- Tables & lists ---------- */
.table-wrap { position: relative; overflow-x: auto; margin-inline: -8px; }
.tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; padding: 10px 12px; font-size: 12.5px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th .th-ic { display: inline-flex; align-items: center; gap: 6px; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .strong { font-weight: 600; }
.tbl a.row-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.tbl a.row-link:hover { color: var(--accent-text); }
.who-cell { display: flex; align-items: center; gap: 10px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-row .grow b { font-weight: 500; }
.list-row .grow span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-inner); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg); font-size: 15px; }
.textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hint { font-size: 12.5px; color: var(--faint); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .suffix { position: absolute; right: 14px; color: var(--muted); font-size: 14px; pointer-events: none; }
.search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); flex: 1 1 240px; max-width: 420px; }
.menu .search { flex: none; max-width: none; width: 100%; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 14.5px; }
.switch { display: inline-block; position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .grow { display: flex; flex-direction: column; gap: 3px; }
.setting .grow span { font-size: 13.5px; color: var(--muted); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px; border-radius: var(--r-inner); border: 1.5px dashed var(--line-strong); color: var(--muted); text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--accent-text); color: var(--fg); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs .thumb { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Progress ---------- */
.track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.track > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.track.hatch > i { background: var(--accent); }
.card--accent .track { background: rgba(255, 255, 255, .22); }
.card--accent .track > i { background: #fff; }

/* Stepper */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-inner); background: var(--surface-2); }
.step .sdot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; }
.step.done .sdot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.current { outline: 2px solid var(--accent); }
.step.current .sdot { border-color: var(--accent-text); color: var(--accent-text); }
.step b { font: 500 16px/1.25 var(--font-display); }
.step span { font-size: 13px; color: var(--muted); }

/* Timeline (commande) */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.timeline li.done .tdot { background: var(--accent); color: #fff; }
.timeline li.done::before { background: var(--accent); }
.timeline .tt { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.timeline .tt b { font-weight: 500; }
.timeline .tt span { font-size: 13px; color: var(--muted); }

/* ---------- Charts ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.legend i.solid { background: var(--accent); }
.legend i.hatch { border: 1px solid var(--line-strong); }
.barchart { display: flex; flex-direction: column; gap: 10px; }
.bars { position: relative; display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); height: 250px; padding-top: 44px; padding-right: 46px; }
.bars .gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.bars .gridline span { position: absolute; right: 0; top: -18px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bar { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; gap: 3px; border: 0; padding: 0; background: transparent; }
.bar .prev, .bar .cur { position: relative; flex: 1 1 0; min-width: 0; border-radius: 10px 10px 6px 6px; }
.bars.dense .bar { gap: 1px; }
.bar .prev { border: 1px solid var(--line-strong); background-color: var(--surface); }
.bar .cur { background: var(--bar); transition: background .15s ease; }
.bar:hover .cur { background: color-mix(in srgb, var(--accent) 45%, var(--surface-3)); }
.bar.is-on .cur { background: var(--accent); }
.bars.dense .bar .prev, .bars.dense .bar .cur { border-radius: 6px 6px 3px 3px; }
.bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; z-index: 2; pointer-events: none; }
.bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--fg); }
.bar-labels { display: flex; gap: clamp(4px, 1vw, 12px); padding-right: 46px; }
.bar-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--faint); white-space: nowrap; }
.bar-labels span.on { color: var(--fg); font-weight: 600; }
.donut { position: relative; width: 168px; height: 168px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.donut .hole { width: 112px; height: 112px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.donut .hole b { font: 500 28px/1 var(--font-display); }
.donut .hole span { font-size: 12px; color: var(--muted); }
.hbar { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; }
.hbar .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: 34px repeat(12, minmax(0, 1fr)); gap: 5px; align-items: center; }
.heat .hl { font-size: 11.5px; color: var(--faint); }
.heat .cell { height: 26px; border-radius: 7px; background: var(--surface-3); }
.heat .l1 { background: color-mix(in srgb, var(--accent) 28%, var(--surface-3)); }
.heat .l2 { background: color-mix(in srgb, var(--accent) 52%, var(--surface-3)); }
.heat .l3 { background: color-mix(in srgb, var(--accent) 76%, var(--surface-3)); }
.heat .l4 { background: var(--accent); }
.heat-scale { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); }
.heat-scale i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.gauge { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gauge .gv b { font: 500 54px/1 var(--font-display); letter-spacing: -0.03em; }
.gauge .gv span { font-size: 14px; color: var(--muted); max-width: 24ch; }
.linechart { position: relative; }
.linechart svg { display: block; width: 100%; height: auto; overflow: visible; }
.linechart .lc-tip { position: absolute; transform: translate(-50%, -100%); margin-top: -14px; padding: 8px 12px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 13px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.linechart .lc-tip b { display: block; font: 600 16px/1.2 var(--font-display); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.kcol { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; }
.kcol-head b { font: 500 16px/1 var(--font-display); }
.kcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid transparent; text-align: left; color: var(--fg); width: 100%; }
.kcard:hover { border-color: var(--line-strong); }
.kcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kcard .top b { font-weight: 600; font-size: 15px; }
.kcard p { font-size: 14px; line-height: 1.45; }
.kcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Products ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.pcard:hover { border-color: var(--line-strong); }
.pvis { position: relative; height: 180px; display: grid; place-items: center; }
.pvis .badge { position: absolute; top: 12px; left: 12px; }
.pvis .corner { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .85); color: #0b0d18; border-color: transparent; }
.pbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pbody b { font: 500 17px/1.25 var(--font-display); }
.pbody .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pbody .price { font: 500 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- Drawer, toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(2, 3, 10, .55); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(480px, 100%); background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; padding-block: calc(env(safe-area-inset-top, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 20px); padding-inline: 24px; gap: 18px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 80; padding: 14px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

/* ---------- Upsell / locked ---------- */
.locked { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---------- Login ---------- */
.auth { height: 100vh; height: 100dvh; padding: 12px; background: var(--bg); overflow: hidden; }
.auth-card { height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; }
.auth-art { position: relative; overflow: hidden; min-height: 0; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #fff; background: #05060d url("../assets/login-bg.jpg") 30% center / cover no-repeat; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 13, .1) 30%, rgba(5, 6, 13, .8) 100%); pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { color: #fff; }
.auth-art .brand small { color: rgba(255, 255, 255, .8); }
.auth-art h1 { font: 600 clamp(30px, 3.6vw, 52px)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; max-width: 13ch; }
.auth-art p { font-size: 15px; line-height: 1.55; max-width: 42ch; color: rgba(255, 255, 255, .88); }
.auth-form { min-height: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px clamp(20px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.auth-form .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; margin: auto 0; }
.auth-form .form { gap: 14px; }
.auth-form h2 { font: 600 30px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0; }
.auth-form .m-brand { display: none; }
@media (max-width: 900px) {
  .auth { height: auto; min-height: 100dvh; overflow: visible; }
  .auth-card { height: auto; grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { min-height: calc(100dvh - 24px); }
  .auth-form .m-brand { display: flex; }
}
.btn-google { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
.btn-google:hover { background: var(--surface-2); color: var(--fg); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* ---------- Dashboard helpers ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: 1fr; } }
.chart-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.chart-split .chart-main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.chart-split .chart-side { flex: 0 1 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 30px; }
.chart-side .stat { display: flex; flex-direction: column; gap: 8px; }
.todo-card { overflow: hidden; justify-content: space-between; min-height: 360px; }
.todo-card .deco { position: absolute; right: 24px; top: 88px; display: flex; gap: 10px; align-items: flex-end; pointer-events: none; }
.todo-card .deco .pillshape { width: 56px; height: 112px; border-radius: 40px; }
.todo-card .deco .circ { width: 72px; height: 72px; border-radius: 50%; }
.todo-card .count { font: 500 96px/0.9 var(--font-display); letter-spacing: -0.04em; }
.todo-card > * { position: relative; }
.th-icon { display: inline-flex; align-items: center; gap: 6px; }
.th-icon svg { opacity: .8; }
.mailbox { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mailbox:last-child { border-bottom: 0; }
.mailbox .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.check-list .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); flex: none; }
.check-list .ck.todo { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .7); color: #fff; }
.variant-chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font-size: 14px; }
.variant-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sticky-col { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1180px) { .sticky-col { position: static; } }
.pvis .b-warn { color: #7a4900; background: #fff0d6; }
.pvis .b-bad { color: #a3261c; background: #fde6e3; }
.file-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-pick span { font-size: 14px; color: var(--muted); }

/* ---------- Administration ---------- */
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.alert-row:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.alert-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert-row .grow b { font-weight: 600; font-size: 14.5px; }
.alert-row .grow span { font-size: 13px; opacity: .85; }
.proj-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.proj-row:last-child { border-bottom: 0; }
.proj-top { display: flex; align-items: center; gap: 12px; }
.proj-top .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.proj-top .grow b { font-weight: 600; }
.proj-top .grow span { font-size: 13px; color: var(--muted); }
.upbars { display: flex; gap: 2px; height: 28px; }
.upbars i { flex: 1 1 0; min-width: 2px; border-radius: 3px; background: var(--ok); opacity: .85; }
.upbars i.deg { background: var(--warn); opacity: 1; }
.upbars i.down { background: var(--bad); opacity: 1; }
.upbars i.off { background: var(--surface-3); }
.mon-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(220px, 2fr) repeat(4, minmax(80px, .6fr)) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mon-row:last-child { border-bottom: 0; }
.mon-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-strip { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mon-stat { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mon-stat .muted { font-size: 12px; }
.mon-list { overflow-x: auto; }
.mon-list > div { min-width: 980px; }
.sdot-live { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.sdot-live.is-down { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.kanban.k6 { grid-template-columns: repeat(6, minmax(200px, 1fr)); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-pick label { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 2px solid var(--line-strong); cursor: pointer; }
.plan-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-pick input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.plan-pick b { font: 500 20px/1.2 var(--font-display); }

/* ---------- Brief ---------- */
.step-btn { all: unset; display: flex; flex-direction: column; gap: 8px; cursor: pointer; width: 100%; }
.step-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 8px; }
.b-steps .step { padding: 14px; }
@media (max-width: 900px) { .b-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .b-steps .step span:not(.sdot) { display: none; } }
.radio-pill, .check-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 14px; }
.radio-pill input, .check-pill input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.radio-pill:has(input:checked), .check-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-pill[hidden] { display: none !important; }
.color-pick { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.color-pick input { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 2px; background: var(--surface-2); cursor: pointer; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.style-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; border: 2px solid var(--line-strong); cursor: pointer; }
.style-card input { position: absolute; opacity: 0; }
.style-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.style-card b { font-weight: 500; font-size: 14px; }
.sw { height: 56px; border-radius: 10px; }
.sw-moderne { background: linear-gradient(90deg, #f5f6fa 0 60%, #4d3dfc 60% 100%); }
.sw-elegant { background: linear-gradient(90deg, #1d1a1f 0 70%, #c9a27e 70% 100%); }
.sw-chaleureux { background: linear-gradient(90deg, #f4ece2 0 55%, #b5643c 55% 80%, #3b2a20 80%); }
.sw-dynamique { background: linear-gradient(90deg, #ff7a1a 0 34%, #4d7cfe 34% 67%, #e4ff3c 67%); }
.sw-sobre { background: linear-gradient(90deg, #f6f5f1 0 70%, #111827 70%); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tpl-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 2px solid var(--line-strong); overflow: hidden; cursor: pointer; }
.tpl-card input { position: absolute; opacity: 0; }
.tpl-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tpl-card:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.tpl-vis { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 18px 1fr 18px; gap: 6px; padding: 10px; height: 110px; }
.tpl-vis i { border-radius: 6px; }
.tpl-vis i:nth-child(1) { grid-column: 1 / -1; }
.tpl-vis i:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
.tpl-vis i:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.tpl-vis i:nth-child(4) { grid-column: 1 / -1; grid-row: 3 / 4; }
.tpl-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tpl-txt b { font: 500 16px/1.2 var(--font-display); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tpl-txt span { font-size: 13px; color: var(--muted); }
.tpl-mini { display: flex; gap: 14px; align-items: center; }
.tpl-mini .tpl-vis { width: 110px; height: 84px; flex: none; border-radius: 12px; border: 1px solid var(--line); }
.file-names { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- SEO ---------- */
.seo-score { display: flex; align-items: center; gap: 22px; }
.seo-score svg { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.seo-score .ring-bg { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 12; }
.seo-score .ring { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .8s ease; }
.seo-score > div { display: flex; flex-direction: column; gap: 4px; }
.seo-score b { font: 500 64px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.seo-score span { font-size: 14px; opacity: .85; }
.seo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seo-kpis > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-inner); background: var(--surface-2); }
.seo-kpis .mid { font-size: 26px; }
.seo-kpis small { font-size: 12.5px; font-weight: 600; }
@media (max-width: 760px) { .seo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seo-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seo-add .input { width: 240px; min-height: 44px; }
.pos { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 10px; font: 600 15px/1 var(--font-body); font-variant-numeric: tabular-nums; background: var(--surface-2); }
.pos.top3 { background: var(--accent); color: var(--on-accent); }
.pos.top10 { background: var(--accent-soft); color: var(--accent-text); }
.trend { display: inline-flex; align-items: center; gap: 10px; }
.trend svg { width: 96px; height: 28px; flex: none; }
.trend .up { color: var(--ok); font-weight: 600; font-size: 13.5px; }
.trend .down { color: var(--bad); font-weight: 600; font-size: 13.5px; }
.trend .flat { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.serp { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-inner); background: #fff; color: #202124; border: 1px solid var(--line); font-family: Arial, Helvetica, sans-serif; }
.serp-url { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; }
.serp-url > span:last-child { display: flex; flex-direction: column; }
.serp-url b { font-weight: 400; color: #202124; font-size: 14px; }
.serp-url span span { color: #4d5156; font-size: 12px; }
.serp-fav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f4; font-size: 10.5px; font-weight: 700; color: #4d3dfc; flex: none; }
.serp-title { margin-top: 6px; font-size: 20px; line-height: 1.3; color: #1a0dab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.counter-ok { color: var(--ok); } .counter-warn { color: var(--warn); }
.act-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: 0; }
.act-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.act-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.act-row .grow b { font-weight: 500; }
.act-row .grow span { font-size: 13.5px; color: var(--muted); }
.act-row.is-done .grow b { text-decoration: line-through; color: var(--muted); }
.seo-gbp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seo-gbp > div { display: flex; flex-direction: column; gap: 6px; }
.seo-gbp .mid { font-size: 26px; }
.stars { color: #f5b44e; letter-spacing: 2px; font-size: 14px; }
@media (max-width: 640px) { .seo-gbp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Studio ---------- */
.studio-form { display: flex; flex-direction: column; gap: 18px; }
.studio-out { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1180px) { .studio-form, .studio-out { grid-column: span 12; } }
.banner-prev { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 230px; border-radius: var(--r-inner); color: #0b0d18; transition: background .3s ease; }
.banner-prev .bp-txt { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px; }
.banner-prev .bp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.banner-prev .bp-title { font: 600 clamp(24px, 2.6vw, 34px)/1.04 var(--font-display); letter-spacing: -0.02em; }
.banner-prev .bp-sub { font-size: 14px; opacity: .78; }
.banner-prev .bp-cta { align-self: flex-start; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: #0b0d18; color: #fff; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.banner-prev .bp-art { position: relative; display: grid; place-items: center; }
.banner-prev .bp-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.banner-prev .bp-art svg { position: relative; width: 44%; height: auto; }
.banner-prev .bp-badge { position: absolute; top: 16px; right: 16px; z-index: 2; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #4d3dfc; color: #fff; font: 600 24px/1 var(--font-display); transform: rotate(-10deg); box-shadow: 0 10px 24px rgba(77, 61, 252, .35); }
.banner-prev .bp-badge small { display: block; font: 600 10.5px/1.1 var(--font-body); letter-spacing: .04em; margin-top: 2px; }
.banner-prev.is-gen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1s linear infinite; z-index: 3; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (max-width: 560px) { .banner-prev { grid-template-columns: 1fr; } .banner-prev .bp-art { display: none; } }
.caption { min-height: 150px; padding: 16px 18px; border-radius: var(--r-inner); background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.caption[dir="rtl"] { font-size: 16.5px; text-align: right; }
.caption .tags { color: var(--accent-text); }
.cal-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.cal-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-inner); background: var(--surface-2); border: 1px solid var(--line); }
.cal-card.is-next { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.cal-date { display: flex; align-items: baseline; gap: 8px; }
.cal-date b { font: 500 34px/1 var(--font-display); letter-spacing: -0.03em; }
.cal-date span { font-size: 14px; color: var(--muted); }
.cal-card h3 { font: 500 17px/1.25 var(--font-display); }
.cal-card p { font-size: 13.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.qr-wrap { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { position: relative; width: 196px; height: 196px; flex: none; padding: 12px; border-radius: 20px; background: #fff; display: grid; place-items: center; }
.qr-box svg, .qr-box img.qr { width: 100%; height: 100%; display: block; }
.qr-box .qr-logo { position: absolute; width: 42px; height: 42px; border-radius: 12px; background: #fff; padding: 4px; }
.qr-box .qr-fallback { font-size: 13px; color: #4d5156; text-align: center; }
.qr-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.qr-stats > div { display: flex; flex-direction: column; gap: 6px; }
.qr-stats .mid { font-size: 26px; }
.bubble-wa { align-self: flex-start; max-width: 460px; padding: 12px 14px 22px; border-radius: 4px 16px 16px 16px; background: #dcf8c6; color: #111b21; font-size: 14.5px; line-height: 1.5; position: relative; white-space: pre-wrap; }
.bubble-wa::after { content: "10:24 ✓✓"; position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #53bdeb; }
.bubble-wa.is-off { opacity: .45; }
.bio-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.phone { width: 250px; flex: none; padding: 10px; border-radius: 38px; background: #0b0d18; border: 1px solid var(--line-strong); }
.phone-in { min-height: 440px; border-radius: 30px; padding: 30px 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: linear-gradient(180deg, #efe7dc, #e3d5c3); color: #2b1d10; }
.phone-in .ph-logo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #2b1d10; color: #efe7dc; font: 600 20px/1 var(--font-display); }
.phone-in b { font: 600 17px/1.2 var(--font-display); }
.phone-in small { font-size: 12px; opacity: .7; margin-bottom: 6px; text-align: center; }
.phone-in a { width: 100%; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .78); color: #2b1d10; text-align: center; font-size: 13px; font-weight: 600; text-decoration: none; }
.phone-in a.hl { background: #2b1d10; color: #efe7dc; }

/* Live strip (dashboard) */
.live-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 14px; line-height: 1.35; }
a.ls-item:hover { border-color: var(--line-strong); }
.ls-item b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ls-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.ls-link { color: var(--accent-text); font-weight: 500; }
.live-strip .sdot-live { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (max-width: 1000px) { .live-strip { grid-template-columns: 1fr; } }
.seo-parts { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.banner-prev.is-dark .bp-art::before { background: rgba(255, 255, 255, .08); }

/* ---------- Admin: production, briefs, automations ---------- */
.kanban.k5 { grid-template-columns: repeat(5, minmax(230px, 1fr)); }
.tpl-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.tpl-line b { color: var(--fg); font-weight: 600; }
.tpl-dots { display: inline-flex; flex: none; }
.tpl-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface-2); margin-left: -4px; }
.tpl-dots i:first-child { margin-left: 0; }
.gen-track > i { background-image: linear-gradient(90deg, var(--accent) 0 40%, color-mix(in srgb, var(--accent) 45%, #fff) 50%, var(--accent) 60% 100%); background-size: 250% 100%; animation: genflow 1.6s linear infinite; }
@keyframes genflow { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.dl-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px dashed var(--line-strong); transition: all .2s ease; }
.list-row.is-ok .dl-dot { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.list-row.is-ok .dl-st { color: var(--ok); font-weight: 600; }
.bv-kv { grid-template-columns: 170px minmax(0, 1fr); }
.bv-kv dd { white-space: pre-line; }
@media (max-width: 640px) { .bv-kv { grid-template-columns: 1fr; } .bv-kv dd { margin-bottom: 6px; } }
.sw-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line-strong); }
.code-pre { margin: 0; padding: 14px 16px; border-radius: var(--r-inner); background: var(--surface-2); border: 1px solid var(--line); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.prompt-pre { max-height: 420px; overflow: auto; }
.rule-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rule-row .grow b { font-weight: 500; }
.rule-row .grow span { font-size: 13.5px; color: var(--muted); }
.rule-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; min-width: 170px; text-align: right; }
@media (max-width: 760px) { .rule-row { flex-wrap: wrap; } .rule-stats { align-items: flex-start; text-align: left; order: 3; min-width: 0; } }
.qr-wrap > div:last-child { flex: 1 1 220px; }
.bio-wrap > div:last-child { flex: 1 1 280px; }
.seo-add .input { flex: 1 1 180px; min-width: 0; }
@media (max-width: 640px) { .seo-add { width: 100%; } .phone { margin-inline: auto; } .qr-box { margin-inline: auto; } }
.card-head.wrap { flex-wrap: wrap; }
@media (max-width: 640px) { .card-head.wrap .search { max-width: none !important; width: 100%; } }
.welcome-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.welcome-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 14px; }
.welcome-steps li:first-child { background: #fff; color: var(--accent); font-weight: 600; }
.welcome-steps b { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 13px; }
.welcome-steps li:first-child b { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .welcome-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu .site-row { align-items: center; }
.menu .site-row .avatar { width: 36px; height: 36px; font-size: 12.5px; }
.menu .site-row.is-current { background: var(--accent-soft); }
.menu .site-row .badge { margin-left: auto; flex: none; }
.dash-stack { display: flex; flex-direction: column; gap: 20px; }
.dash-stack[hidden] { display: none; }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.howto code { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Admin: incoming requests ---------- */
.lead-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lead-row:last-child { border-bottom: 0; }
.lead-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lead-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-top b { font-weight: 600; font-size: 15.5px; margin-right: 4px; }
.lead-msg { font-size: 14px; line-height: 1.5; color: var(--fg); padding: 10px 14px; border-radius: 14px; background: var(--surface-2); max-width: 760px; }
.lead-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
@media (max-width: 900px) { .lead-row { flex-wrap: wrap; } .lead-acts { max-width: none; justify-content: flex-start; width: 100%; padding-left: 50px; } }
.chk { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.chk.ok { background: var(--ok-soft); color: var(--ok); }
.chk.warn { background: var(--warn-soft); color: var(--warn); }
.chk.bad { background: var(--bad-soft); color: var(--bad); }
.mail-prev { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; color: #1b1c22; }
.mail-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: #f3f3f7; font-size: 12.5px; color: #555a66; }
.mail-meta b { color: #1b1c22; font-weight: 600; margin-right: 6px; }
.mail-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.55; }
.mail-btn { align-self: flex-start; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: #4d3dfc; color: #fff !important; font-weight: 600; text-decoration: none; }
.mail-ids { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f3f3f7; font-size: 13.5px; }
.mail-small { font-size: 12.5px; color: #6b6f7b; }
.mon-stat .badge { align-self: flex-start; }
