/* Identité ABT : la couche visuelle est partagée avec le formulaire public. */
html:is(.abt-crm,.abt-public) {
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --ivory: #f1f4f7;
  --card: #fff;
  --soft: #f5f7f9;
  --side: #121b2a;
  --line: #dbe3eb;
  --line-2: #e8edf2;
  --grid: #e1e7ef;
  --ink: #152334;
  --ink-2: #39495b;
  --muted: #536478;
  --navy: #24374d;
  --navy-2: #324c62;
  --navy-3: #546e83;
  --gold: #3b998d;
  --gold-strong: #0c675e;
  --gold-ink: #115e56;
  --gold-soft: #dcefea;
  --gold-wash: #eef7f4;
  --accent: #08675c;
  --accent-hover: #07534b;
  --accent-text: #fff;
  --focus: #3b998d;
  --brass: #d9ba89;
  --masthead: #111b29;
  --masthead-text: #eff4fa;
  --masthead-muted: #abbcce;
  --masthead-line: #354659;
  --masthead-active: #1f4147;
  --masthead-accent: #a7e5d9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px #15233408, 0 5px 16px #15233405;
  --shadow-lg: 0 20px 50px #12243628;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html.abt-crm[data-theme="nuit"] {
  --ivory: #0e1722;
  --card: #162330;
  --soft: #1b2b3b;
  --line: #304254;
  --line-2: #253748;
  --grid: #304254;
  --ink: #eef4fa;
  --ink-2: #d3deeb;
  --muted: #a3b3c6;
  --navy: #304d65;
  --navy-2: #47667e;
  --navy-3: #819bb1;
  --gold: #78c9bb;
  --gold-strong: #a0e1d4;
  --gold-ink: #afe7db;
  --gold-soft: #20433f;
  --gold-wash: #1a3536;
  --accent: #89d4c5;
  --accent-hover: #a6e4d7;
  --accent-text: #102b2b;
  --focus: #89d4c5;
  --shadow: 0 1px 2px #0003, 0 5px 16px #0002;
  --shadow-lg: 0 20px 50px #050b135e;
}

html:is(.abt-crm,.abt-public) body,
html:is(.abt-crm,.abt-public).has-fx-bg body,
html.abt-crm.fx-hero body {
  background: var(--ivory);
  color: var(--ink);
}

/* Les effets 3D existants restent réglables, en arrière-plan des surfaces opaques. */
html:is(.abt-crm,.abt-public) .fx3d.in { opacity: .10; }
html.abt-crm[data-theme="nuit"] .fx3d.in { opacity: .14; }
html:is(.abt-crm,.abt-public) .theme-flash { display: none; }
html:is(.abt-crm,.abt-public) :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Barre de navigation et outils. */
.abt-crm .app {
  --header-gutter: max(clamp(16px, 3vw, 32px), calc((100% - 1376px) / 2));
  --header-edge: #a9c0d22b;
}
.abt-crm .app .side {
  background: linear-gradient(112deg, #142233, #111b29 44%, #162635) !important;
  border-bottom: 1px solid var(--header-edge) !important;
  box-shadow: 0 3px 14px #0a152327 !important;
  backdrop-filter: none;
  color: var(--masthead-text);
}
.abt-crm .app .brand {
  gap: 11px;
  padding-inline: 0;
  border-right: 0;
}
.abt-crm .brand svg,
.abt-crm .login .l svg,
.abt-public .head svg {
  animation: none;
  filter: none;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #d9ba895c;
  flex-shrink: 0;
}
.abt-crm .brand .t,
.abt-crm .app .side-foot .who { color: var(--masthead-text); }
.abt-crm .brand .t { letter-spacing: -.025em; font-weight: 740; }
.abt-crm .brand .s,
.abt-crm .app .side-foot .muted { color: var(--masthead-muted); }
.abt-crm .app .side-foot {
  min-width: 0;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  padding: 6px 7px 6px 9px;
  gap: 8px;
  border: 1px solid var(--header-edge);
  border-radius: 12px;
  background: #ffffff06;
}
.abt-crm .side-foot .av {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #27454e;
  color: #c9f3ec;
  flex: 0 0 auto;
}
.abt-crm .side-foot .who-b { margin-right: 4px; }
.abt-crm .side-foot .who-b .small { font-size: 11px; }
.abt-crm .side-foot .icon-btn { color: var(--masthead-muted); width: 32px; height: 34px; }
.abt-crm .side-foot .icon-btn:hover { background: var(--masthead-active); color: #fff; }
.abt-crm .app .nav > a,
.abt-crm .app .nav button.lbl {
  min-height: 37px;
  border-radius: 7px;
  color: var(--masthead-muted);
  margin: 0;
  font-weight: 650;
  box-shadow: none;
  transform: none;
}
.abt-crm .app .nav :is(a,button.lbl) .ic { color: inherit; opacity: .8; }
.abt-crm .app .nav > a:hover,
.abt-crm .app .nav button.lbl:hover {
  background: #ffffff12 !important;
  color: #fff !important;
}
.abt-crm .app .nav > a.on,
.abt-crm .app .nav .grp.has-on > .lbl,
.abt-crm .app .nav .grp.open > .lbl {
  background: var(--masthead-active) !important;
  color: var(--masthead-accent) !important;
  box-shadow: none !important;
}
.abt-crm .app .nav > a.on::before { background: var(--masthead-accent); top: 10px; bottom: 10px; }
.abt-crm .app .nav :is(.cnt,.gcnt) {
  background: #304656;
  color: #edf6fb;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.abt-crm .app .nav .sub {
  min-width: 208px;
  padding: 7px;
  border-radius: 13px;
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
}
.abt-crm .app .nav .sub a { color: var(--ink-2); min-height: 37px; }
.abt-crm .app .nav .sub a:hover { background: var(--soft); color: var(--ink); }
.abt-crm .app .nav .sub a.on { background: var(--gold-soft); color: var(--gold-ink); }
.abt-crm .app .nav .sub a.on::before { background: var(--accent); }
.abt-crm .nav .mobile-menu-action { display: none; }
.abt-crm .app .main .topbar {
  gap: 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.abt-crm .topbar .search input {
  height: 41px;
  background: var(--soft);
  color: var(--ink);
  border-radius: 9px;
}
.abt-crm .topbar .search input::placeholder { color: var(--muted); opacity: 1; }
.abt-crm .topbar .search input:focus { border-color: var(--focus); }
.abt-crm .topbar .search .kbd-hint {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  color: var(--muted);
}
.abt-crm .topbar :is(.fx-toggle,.inst-btn,.theme-toggle),
.abt-crm .theme-toggle.is-floating {
  min-height: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  box-shadow: none;
  transform: none;
}
.abt-crm .topbar :is(.fx-toggle,.inst-btn,.theme-toggle):hover,
.abt-crm .theme-toggle.is-floating:hover { background: var(--gold-soft); color: var(--gold-ink); }
.abt-crm .topbar .bell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink-2);
}
.abt-crm .topbar .bell:hover { background: var(--soft); }
.abt-crm .topbar .bell .bdg { top: 0; right: 0; font-variant-numeric: tabular-nums; }
.abt-crm .fx-toggle i { animation: none; box-shadow: none; }

@media (min-width: 821px) {
  .abt-crm .app .side {
    min-height: 68px;
    padding-inline: var(--header-gutter);
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    column-gap: 14px;
  }
  .abt-crm .app .brand svg { width: 38px; height: 38px; }
  .abt-crm .app .nav {
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--header-edge);
    border-radius: 11px;
    background: #0a152366;
  }
  .abt-crm .app .nav > a,
  .abt-crm .app .nav button.lbl { padding-inline: 12px; }
  .abt-crm .app .nav .grp > .lbl::after {
    content: "";
    width: 5px;
    height: 5px;
    margin: -3px 1px 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .65;
  }
  .abt-crm .app .nav .grp.open > .lbl::after { transform: rotate(225deg); margin-top: 3px; }
  .abt-crm .app .nav > a.on::before { content: none; }
  .abt-crm .app .main .topbar {
    min-height: 58px;
    padding: 8px var(--header-gutter);
  }
  .abt-crm .topbar .search { max-width: 500px; min-width: 172px; }
  .abt-crm .topbar .sp { flex: 1 0 12px; }
  .abt-crm .topbar .demo-pill { margin-right: 3px; }
  .abt-crm .topbar .bell { margin-right: 3px; }
  .abt-crm .topbar > .av { display: none; }
}

/* Titres, cartes et listes. */
.abt-crm .content { max-width: 1440px; padding-top: 28px; }
html.abt-crm .page-head h1,
html.abt-crm .kpi .v,
.abt-public h1 {
  background: none;
  color: var(--ink);
  letter-spacing: -.04em;
}
.abt-crm .page-head h1,
.abt-public h1 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.12; font-weight: 750; }
.abt-crm .crumbs { margin-top: 7px; }
.abt-crm .card-h { padding: 19px 20px 13px; }
.abt-crm .card-h h2 { font-weight: 700; letter-spacing: -.025em; }
.abt-crm .card-b:not(.flush) { padding: 6px 20px 20px; }
.abt-crm .app .card,
.abt-public .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: none;
  box-shadow: var(--shadow);
}
.abt-crm .app .card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.abt-crm .app a.kpi:hover { border-color: var(--focus); box-shadow: 0 6px 18px #12243616; }
.abt-crm .kpi,
.abt-crm .kpi:hover { padding: 17px 18px; transform: none; animation: none; }
.abt-crm .kpi::before { width: 32px; height: 2px; left: 18px; background: var(--accent); animation: none; }
.abt-crm .kpi::after { content: none; }
.abt-crm .kpi .v { font-weight: 750; font-size: clamp(23px, 2.35vw, 34px); overflow-wrap: anywhere; }
html.abt-crm .kpi.alert .v { background: none; color: var(--warn); }
.abt-crm .dash .acts .act-t,
.abt-crm .pipe .ps {
  background: var(--soft);
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}
.abt-crm .dash .acts .act-t:hover,
.abt-crm .pipe .ps:hover { border-color: var(--focus); background: var(--gold-wash); }
.abt-crm .pipe .ps .pb i { background: var(--gold); }
.abt-crm .pipe .ps.z b,
.abt-crm .dash .act-t.ok .av2 { color: var(--muted); }
.abt-crm .tbl th { font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
.abt-crm .tbl tbody tr.click:hover,
.abt-crm .tbl tbody tr.click:hover td { background: var(--gold-wash); }
.abt-crm .tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.abt-crm .tabs a { margin: 0; padding: 8px 12px; border: 0; border-radius: 6px; }
.abt-crm .tabs a:hover { background: var(--soft); }
.abt-crm .tabs a.on { background: var(--gold-soft); color: var(--gold-ink); }
.abt-crm .drop { border-color: var(--focus); background: var(--gold-wash); border-radius: 12px; }
.abt-crm .badge:hover { transform: none; }

/* Bandeaux de dossier et du tableau de bord. */
.abt-crm .app .hero,
html.abt-crm .login .l,
html.abt-crm.fx-hero .login .l,
.abt-public .head {
  background: linear-gradient(122deg, #111d2c 4%, #19313f 69%, #174847 100%);
  color: #f5f8fb;
}
.abt-crm .app .hero {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid #385464;
  border-radius: 16px;
  box-shadow: 0 12px 24px #0e21371c;
}
.abt-crm .app .hero::before,
.abt-crm .login .l::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #defff016 0 1px, transparent 1px 36px),
              repeating-linear-gradient(90deg, #defff016 0 1px, transparent 1px 36px);
  mask-image: linear-gradient(90deg, transparent, #000);
  animation: none;
}
.abt-crm .app .hero::after,
html.abt-crm.fx-hero .login .l::before,
.abt-public .head::after { content: none; }
.abt-crm .app .hero h1 {
  background: none;
  color: #fff;
  font-size: clamp(24px, 3vw, 39px);
  line-height: 1.12;
  letter-spacing: -.04em;
  animation: none;
}
.abt-crm .hero .k { color: var(--brass); letter-spacing: .12em; }
.abt-crm .hero :is(.meta,p), .abt-crm .dash-hero .hs span { color: #c9dce7; }
.abt-crm .dash-hero .hs { gap: 8px; }
.abt-crm .dash-hero .hs a { border-radius: 8px; transform: none; }
.abt-crm .dash-hero .hs a b { color: #a7e5d9; }
.abt-crm .dash-hero .hs a.bad b { color: #ffc0b6; }
.abt-crm .hero .actions .btn:not(.btn-gold) {
  color: #fff;
  background: #203a48;
  border-color: #65808e;
}
.abt-crm .hero .actions .btn:not(.btn-gold):hover { background: #30525e; }

/* Commandes, saisies et fenêtres. */
html:is(.abt-crm,.abt-public) .btn-gold,
.abt-crm .hero .btn-gold {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}
html:is(.abt-crm,.abt-public) .btn-gold:hover,
.abt-crm .hero .btn-gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: none;
}
html:is(.abt-crm,.abt-public) .btn-gold::after { content: none; }
html:is(.abt-crm,.abt-public) .btn { transform: none; }
.abt-crm .inp,
.abt-crm[data-theme="nuit"] .inp,
.abt-public :is(input:not([type="radio"]):not([type="checkbox"]),textarea) {
  background: var(--soft);
  border-color: var(--line);
}
.abt-crm .inp:focus,
.abt-public :is(input,textarea):focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px #3b998d30;
  transform: none;
}
.abt-public :is(input,textarea).bad { border-color: var(--bad); background: var(--bad-soft); }
.abt-crm .overlay { background: #09142480; backdrop-filter: blur(4px); }
.abt-crm .modal,
.abt-crm .pub-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.abt-crm .modal :is(.modal-h,.modal-f) { background: var(--card); }
.abt-crm .app :is(.fx-in,.tbl tbody tr) { animation-duration: .2s; }

/* Connexion, invitation et préinscription. */
html.abt-crm .login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html.abt-crm .login .l {
  padding: clamp(28px, 6vw, 88px);
  gap: 48px;
}
.abt-crm .login .l > div { position: relative; z-index: 1; }
.abt-crm .login .l h1 {
  margin-top: clamp(30px, 6vh, 80px);
  font-size: clamp(35px, 5vw, 73px);
  letter-spacing: -.06em;
  line-height: 1.03;
  text-shadow: none;
  animation: none;
}
.abt-crm .login .l .gold { color: var(--brass); background: none; animation: none; }
.abt-crm .login .l p { color: #d2e1ec; text-shadow: none; margin-top: 20px; animation: none; }
html.abt-crm .login .r,
html.abt-crm.fx-hero .login .r {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px clamp(22px, 5vw, 72px);
}
html.abt-crm .login .r > :is(form,.acc,.divider) { width: 100%; max-width: 420px; }
html.abt-crm .login .r > :is(form,.acc),
html.abt-crm.fx-hero .login .r > :is(form,.acc) {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  animation: none;
}
html.abt-crm .login .r > form,
html.abt-crm.fx-hero .login .r > form { padding: clamp(20px, 3vw, 32px); }
html.abt-crm .login .r > .acc .d,
html.abt-crm.fx-hero .login .r > .acc .d { color: var(--muted); }
html.abt-crm .login .r > .acc:hover,
html.abt-crm.fx-hero .login .r > .acc:hover { background: var(--gold-wash); border-color: var(--focus); }
html.abt-crm .login .r > .divider { border-color: var(--line); }
.abt-public .pub {
  min-height: 100dvh;
  padding: calc(clamp(18px, 4vw, 54px) + var(--safe-top))
    calc(14px + var(--safe-right)) calc(38px + var(--safe-bottom))
    calc(14px + var(--safe-left));
}
.abt-public .card { border-radius: 18px; animation: none; }
.abt-public .head { padding: 17px clamp(18px, 5vw, 32px); }
.abt-public .head small { color: #d2e1ec !important; }
.abt-public .body { padding: clamp(18px, 5vw, 32px); }
.abt-public .field { min-width: 0; }
/* L’étirement de la colonne évite le calcul de largeur à 100 % du champ de date sur iOS. */
.abt-public .field input[type="date"] {
  width: auto;
  min-width: 0;
  min-height: 46px;
  align-self: stretch;
  margin: 0;
}
.abt-public .steps i { background: var(--line-2); }
.abt-public .steps i.on { background: var(--accent); box-shadow: none; animation: none; }
.abt-public :is(.choice,.yn) label { background: var(--soft); }
.abt-public :is(.choice,.yn) label:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--focus);
  box-shadow: none;
}
.abt-public :is(.choice,.yn) label:hover { transform: none; border-color: var(--focus); box-shadow: none; }
.abt-public .fx-step, .abt-public .fx-step :is(.field,.choice label,.yn) { animation-duration: .18s; animation-delay: 0s; }

@media (min-width: 821px) and (max-width: 1160px) {
  .abt-crm .app .side { grid-template-columns: 150px minmax(0,1fr) auto; column-gap: 8px; }
  .abt-crm .brand { padding-inline: 10px; }
  .abt-crm .brand svg { width: 32px; height: 32px; }
  .abt-crm .side-foot .who-b { display: none; }
  .abt-crm .app .nav { gap: 1px; justify-self: center; }
  .abt-crm .app .nav > a,
  .abt-crm .app .nav button.lbl { gap: 5px; padding-inline: 7px; font-size: 12px; }
  .abt-crm .app .nav .grp > .lbl::after { content: none; }
}

@media (min-width: 821px) and (max-width: 900px) {
  .abt-crm .app { --header-gutter: 16px; }
  .abt-crm .app .side { grid-template-columns: 140px minmax(0,1fr) auto; }
  .abt-crm .app .nav > a,
  .abt-crm .app .nav button.lbl { padding-inline: 6px; gap: 4px; }
  .abt-crm .app .side-foot { gap: 5px; }
  .abt-crm .side-foot .icon-btn { width: 29px; }
}

@media (max-width: 820px) {
  html.abt-crm {
    --mobile-header-height: calc(64px + var(--safe-top));
  }
  /* Évite qu’un conteneur de défilement masque la barre collante. */
  html.abt-crm, html.abt-crm body { overflow-x: clip; }
  .abt-crm .app .side {
    height: var(--mobile-header-height) !important;
    min-height: var(--mobile-header-height) !important;
    padding-top: var(--safe-top);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .abt-crm .app .brand {
    padding-left: calc(18px + var(--safe-left)) !important;
    padding-right: calc(104px + var(--safe-right)) !important;
    min-width: 0;
  }
  .abt-crm .app .topbar {
    top: var(--safe-top) !important;
    left: auto !important;
    width: auto !important;
    padding-inline: 10px calc(16px + var(--safe-right)) !important;
    background: transparent !important;
  }
  .abt-crm .app .topbar > .strong { display: none; }
  .abt-crm .app .topbar :is(.menu,.theme-toggle) {
    width: 44px !important;
    height: 44px !important;
    background: #ffffff09 !important;
    border-color: var(--header-edge) !important;
    color: var(--masthead-text) !important;
  }
  .abt-crm .app.nav-open .topbar .menu {
    background: var(--masthead-active) !important;
    border-color: #548578 !important;
    color: var(--masthead-accent) !important;
  }
  .abt-crm .app .nav {
    top: calc(var(--mobile-header-height) + 6px) !important;
    left: calc(10px + var(--safe-left)) !important;
    right: calc(10px + var(--safe-right)) !important;
    max-height: calc(100vh - var(--mobile-header-height) - var(--safe-bottom) - 18px) !important;
    max-height: calc(100dvh - var(--mobile-header-height) - var(--safe-bottom) - 18px) !important;
    background: var(--masthead) !important;
    border: 1px solid var(--masthead-line) !important;
    border-radius: 12px !important;
    overscroll-behavior: contain;
  }
  .abt-crm .app.nav-open::after { inset-block-start: var(--mobile-header-height) !important; }
  .abt-crm .app .nav > a, .abt-crm .app .nav button.lbl { min-height: 44px !important; }
  .abt-crm .app .nav .sub a { color: var(--masthead-text) !important; }
  .abt-crm .app .nav .sub a.on {
    color: var(--masthead-accent) !important;
    background: var(--masthead-active) !important;
  }
  .abt-crm .nav .mobile-menu-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin-top: 5px;
    padding: 8px 12px;
    border: 1px solid var(--header-edge);
    border-radius: 8px;
    background: #ffffff09;
    color: var(--masthead-text);
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }
  .abt-crm .nav .mobile-menu-action:hover { background: #ffffff15; transform: none; }
  .abt-crm .nav .mobile-menu-action .lbl {
    display: inline;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    opacity: 1;
  }
  .abt-crm .nav .mobile-menu-action svg { width: 17px; height: 17px; flex: 0 0 auto; }
  .abt-crm .nav .mobile-logout { margin-top: 0; }
  .abt-crm .content {
    padding: 19px calc(14px + var(--safe-right)) calc(60px + var(--safe-bottom)) calc(14px + var(--safe-left));
  }
  .abt-crm .overlay {
    padding: calc(12px + var(--safe-top)) calc(10px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(10px + var(--safe-left));
  }
  .abt-crm .overlay .modal { max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
  .abt-crm .toasts { bottom: calc(18px + var(--safe-bottom)); right: calc(18px + var(--safe-right)); }
  .abt-crm .card-h { padding: 16px 15px 11px; }
  .abt-crm .card-b:not(.flush) { padding: 5px 15px 16px; }
  .abt-crm .dash .kpis { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .abt-crm .dash .kpi { padding: 13px; }
  .abt-crm .dash .kpi::before { left: 13px; }
  html.abt-crm .login { grid-template-columns: minmax(0,1fr); min-height: 100dvh; }
  html.abt-crm .login .l {
    padding: calc(30px + var(--safe-top)) calc(20px + var(--safe-right)) 30px calc(20px + var(--safe-left));
    gap: 16px;
  }
  html.abt-crm .login .l h1 { font-size: clamp(32px,7vw,48px); margin-top: 22px; }
  html.abt-crm .theme-toggle.is-floating {
    top: calc(10px + var(--safe-top));
    right: calc(12px + var(--safe-right));
  }
  html.abt-crm .login .r,
  html.abt-crm.fx-hero .login .r {
    padding: 20px calc(15px + var(--safe-right)) calc(38px + var(--safe-bottom)) calc(15px + var(--safe-left));
  }
}

@media (max-width: 520px) {
  .abt-crm .dash-hero .hs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .abt-crm .dash-hero .hs a { min-width: 0; padding: 6px 7px; justify-content: flex-start; }
  .abt-crm .dash-hero .hs span { font-size: 11.5px; line-height: 1.35; }
  .abt-crm .dash-hero .actions { width: 100%; }
  .abt-crm .dash .kpi .h { overflow-wrap: anywhere; }
  .abt-crm .dash .kpi .l { font-size: 12px; }
  .abt-public :is(input,textarea) { font-size: 16px; }
}
