:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687286;
  --subtle: #8f98a9;
  --line: #e3e7ee;
  --line-dark: #d7dce5;
  --paper: #ffffff;
  --wash: #f5f6f9;
  --navy: #111827;
  --navy-soft: #1d293d;
  --indigo: #5a5ce2;
  --indigo-dark: #4849c7;
  --violet: #7a4fe0;
  --fuchsia: #b73caf;
  --green: #278b6c;
  --amber: #b97017;
  --orange: #db652e;
  --red: #c94a54;
  --sky: #3184b9;
  --shadow: 0 12px 35px rgba(31, 39, 60, .08);
  --soft-shadow: 0 5px 18px rgba(31, 39, 60, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--wash); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, select { outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px rgba(90, 92, 226, .22); }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: var(--wash);
}
.boot-screen p { margin: 0; font-size: 13px; }
.boot-mark, .brand-mark, .auth-mobile-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--fuchsia));
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(90, 92, 226, .25);
}
.boot-mark { width: 54px; height: 54px; border-radius: 17px; font-size: 29px; }

/* Authentification */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: var(--paper); }
.auth-story {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(183, 60, 175, .32), transparent 29%),
    radial-gradient(circle at 15% 92%, rgba(90, 92, 226, .3), transparent 31%),
    linear-gradient(155deg, #101827 0%, #17233b 55%, #111827 100%);
}
.auth-story::before, .auth-story::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.auth-story::before { width: 420px; height: 420px; right: -210px; top: 24%; }
.auth-story::after { width: 250px; height: 250px; right: -125px; top: calc(24% + 85px); }
.auth-brand, .sidebar-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; font-size: 23px; }
.auth-brand > span:last-child, .sidebar-brand > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.auth-brand strong, .sidebar-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.3px; }
.auth-brand small, .sidebar-brand small { color: rgba(255, 255, 255, .55); font-size: 10px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; }
.auth-story-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; padding: 9vh 0; }
.eyebrow, .step, .kicker {
  margin: 0 0 9px;
  color: var(--indigo);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.55px;
}
.eyebrow.light { color: #aeb5ff; }
.auth-story-copy h1 { margin: 0; font: 500 clamp(40px, 4.5vw, 65px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -2px; }
.auth-story-copy h1 em { color: #b7baff; font-style: normal; }
.auth-story-copy > p:last-child { max-width: 570px; margin: 25px 0 0; color: rgba(255, 255, 255, .66); font-size: 17px; line-height: 1.7; }
.auth-proof { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.proof-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #bdf0dc; background: rgba(55, 190, 142, .13); border: 1px solid rgba(91, 215, 171, .25); }
.auth-proof p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.auth-proof strong { font-size: 13px; }
.auth-proof small { color: rgba(255, 255, 255, .52); font-size: 11px; }
.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 38px; background: #fbfbfc; }
.auth-card { width: min(100%, 430px); padding: 40px 38px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 25px 70px rgba(33, 39, 65, .10); }
.auth-card-heading { margin-bottom: 29px; }
.auth-card-heading h2 { margin: 0; font: 600 31px/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.6px; }
.auth-card-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-mobile-mark { display: none; width: 43px; height: 43px; margin-bottom: 26px; border-radius: 13px; font-size: 23px; }
.activation-icon { width: 46px; height: 46px; margin-bottom: 22px; display: grid; place-items: center; color: var(--indigo); background: #eeeeff; border-radius: 14px; font-size: 23px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form label, .invite-fields label { display: flex; flex-direction: column; gap: 7px; color: #414b5c; font-size: 12px; font-weight: 750; }
.auth-form label small { color: var(--subtle); font-size: 10px; font-weight: 500; }
.auth-form input, .invite-fields input, .invite-fields select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-form input:focus, .invite-fields input:focus, .invite-fields select:focus { border-color: var(--indigo); }
.form-error { margin: -4px 0 0; padding: 10px 12px; color: #a82e3d; background: #fff0f1; border: 1px solid #f5d2d6; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.auth-help { margin: 24px 0 0; padding-top: 20px; color: var(--subtle); border-top: 1px solid var(--line); text-align: center; font-size: 11px; line-height: 1.5; }
.text-button { align-self: center; padding: 6px; color: var(--muted); background: none; border: 0; font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--indigo); }

/* Structure du CRM */
.crm-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  color: #cbd2df;
  background: linear-gradient(180deg, #111827 0%, #121b2b 100%);
  box-shadow: 8px 0 28px rgba(14, 20, 32, .06);
}
.sidebar-brand { height: 76px; flex: 0 0 76px; padding: 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar-brand .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 21px; }
.sidebar-brand strong { color: #fff; font-size: 19px; }
.sidebar-brand small { font-size: 8px; }
.main-nav { flex: 1; overflow-y: auto; padding: 14px 13px 20px; scrollbar-width: thin; }
.nav-label { margin: 20px 11px 7px; color: #667085; font-size: 9px; font-weight: 850; letter-spacing: 1.5px; }
.nav-label:first-child { margin-top: 4px; }
.nav-item {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  color: #aeb7c6;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 620;
  transition: color .16s ease, background .16s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.nav-item.active { color: #fff; background: linear-gradient(100deg, rgba(90, 92, 226, .95), rgba(105, 76, 215, .9)); box-shadow: 0 7px 18px rgba(24, 24, 68, .28); }
.nav-icon { width: 22px; display: inline-grid; place-items: center; color: currentColor; font-size: 19px; font-weight: 400; }
.nav-icon.sparkle { color: #d8c7ff; }
.nav-item.active .nav-icon.sparkle { color: #fff; }
.nav-count { min-width: 23px; margin-left: auto; padding: 2px 6px; color: #aab3c2; background: rgba(255, 255, 255, .08); border-radius: 20px; text-align: center; font-size: 9px; }
.nav-item.active .nav-count { color: #fff; background: rgba(255, 255, 255, .17); }
.admin-navigation { display: block; }
.sidebar-footer { min-height: 76px; display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-user { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.user-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.user-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: #7f8a9c; font-size: 10px; }
.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--fuchsia));
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.avatar.small { width: 34px; height: 34px; flex-basis: 34px; font-size: 10px; }
.avatar.tiny { width: 31px; height: 31px; flex-basis: 31px; font-size: 9px; }
.avatar.rose { background: #d74f79; }
.avatar.green { background: #2c9a73; }
.avatar.gold { background: #c58a2c; }
.logout-button { width: 35px; height: 35px; display: grid; place-items: center; color: #7f8a9c; background: transparent; border: 0; border-radius: 9px; font-size: 20px; }
.logout-button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.close-menu { display: none; margin-left: auto; color: #fff; }
.crm-content { min-height: 100vh; margin-left: 264px; }
.crm-topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 3vw, 42px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.page-heading { min-width: 0; flex: 1; }
.page-heading h1 { margin: 0; font: 600 20px/1.2 Georgia, "Times New Roman", serif; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.environment-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #5b6677; background: #f6f7fa; border: 1px solid var(--line); border-radius: 20px; font-size: 9px; font-weight: 750; letter-spacing: .3px; }
.environment-pill i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(39, 139, 108, .12); }
.notification-button { width: 35px; height: 35px; display: grid; place-items: center; color: #6f7888; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.notification-button:disabled { opacity: 1; }
.notification-button span { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; font-size: 0; }
.topbar-user { display: flex; align-items: center; gap: 9px; padding-left: 2px; }
.topbar-user > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.topbar-user strong { max-width: 150px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user small { color: var(--muted); font-size: 9px; }
.icon-button { width: 37px; height: 37px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 22px; }
.icon-button:hover { background: rgba(255, 255, 255, .08); }
.menu-button { display: none; color: var(--ink); }
.view-container { max-width: 1560px; margin: 0 auto; padding: 32px clamp(20px, 3vw, 42px) 60px; }
.crm-view { min-width: 0; }
.view-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 2px 0 27px; }
.view-intro.compact { align-items: center; margin-bottom: 23px; }
.view-intro h2 { margin: 0; font: 600 clamp(27px, 3vw, 35px)/1.14 Georgia, "Times New Roman", serif; letter-spacing: -.7px; }
.view-intro > div > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.module-flag { flex: 0 0 auto; padding: 7px 10px; color: #796628; background: #fff7dc; border: 1px solid #eee1ad; border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.panel-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid #edf0f4; }
.panel-heading .kicker { margin-bottom: 4px; }
.panel-heading h3 { margin: 0; font: 600 17px/1.2 Georgia, "Times New Roman", serif; }
.count-pill { padding: 5px 9px; color: var(--indigo); background: #eeeeff; border-radius: 20px; font-size: 9px; font-weight: 800; }

/* Tableau de bord */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 17px; }
.goal-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px 28px;
  padding: 27px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 87% 0%, rgba(183, 60, 175, .42), transparent 32%),
    linear-gradient(125deg, #5759dd 0%, #4c46b6 43%, #1c263e 100%);
  border-radius: var(--radius);
  box-shadow: 0 17px 35px rgba(55, 54, 145, .19);
}
.goal-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -100px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; }
.goal-copy, .goal-rank, .progress-track, .goal-footer { position: relative; z-index: 1; }
.goal-copy > span, .goal-rank > span { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .65); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.goal-copy > strong { display: block; font: 700 38px/1 Georgia, "Times New Roman", serif; }
.goal-copy > strong small { color: #c7c9ff; font-size: 20px; }
.goal-copy p { margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: 11px; }
.goal-rank { min-width: 100px; text-align: right; }
.goal-rank strong { display: block; font: 700 30px/1 Georgia, "Times New Roman", serif; }
.goal-rank small { color: rgba(255, 255, 255, .65); font-size: 10px; }
.progress-track { grid-column: 1 / -1; height: 8px; margin-top: 5px; overflow: hidden; background: rgba(255, 255, 255, .16); border-radius: 20px; }
.progress-track i { display: block; width: 67%; height: 100%; background: linear-gradient(90deg, #52d3a0, #b4e863); border-radius: inherit; }
.goal-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .67); font-size: 9px; }
.ranking-card { padding-bottom: 8px; }
.ranking-list { margin: 0; padding: 8px 14px; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: 16px 31px 1fr auto; align-items: center; gap: 8px; padding: 7px 4px; color: var(--muted); }
.ranking-list li.current { color: var(--ink); }
.ranking-list li > b { font-size: 10px; }
.ranking-list li > span:nth-child(3) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ranking-list li strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list li i { height: 4px; overflow: hidden; background: #edf0f4; border-radius: 10px; }
.ranking-list li em { display: block; height: 100%; background: var(--indigo); border-radius: inherit; }
.bar-100 { width: 100%; } .bar-90 { width: 90%; } .bar-63 { width: 63%; }
.ranking-list li > small { font-size: 9px; font-weight: 700; }
.alert-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 16px 0; }
.alert-strip article { display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.alert-symbol { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 900; }
.alert-symbol.urgent { color: var(--red); background: #fff0f2; }
.alert-symbol.info { color: var(--sky); background: #edf7fc; }
.alert-strip p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.alert-strip strong { display: block; color: var(--ink); font-size: 10px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 17px; }
.task-list { margin: 0; padding: 0; list-style: none; }
.task-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #edf0f4; }
.task-list li:last-child { border-bottom: 0; }
.task-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; font-weight: 800; }
.task-icon.danger { color: var(--red); background: #fff0f2; }
.task-icon.warning { color: var(--amber); background: #fff5e5; }
.task-icon.neutral { color: var(--violet); background: #f2eeff; }
.task-icon.success { color: var(--green); background: #e9f7f1; }
.task-list p { min-width: 0; flex: 1; margin: 0; }
.task-list strong, .task-list small { display: block; }
.task-list strong { font-size: 11px; }
.task-list small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-tag { padding: 4px 7px; color: var(--muted); background: #f4f5f7; border-radius: 20px; font-size: 8px; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.metric-card > span, .admin-metrics article > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .9px; }
.metric-card strong { margin: 7px 0 4px; font: 700 26px/1 Georgia, "Times New Roman", serif; }
.metric-card small { color: var(--subtle); font-size: 9px; }

/* Écrans métier */
.kanban-board { display: flex; gap: 13px; padding-bottom: 12px; overflow-x: auto; scrollbar-color: #bec5d0 transparent; }
.kanban-column { width: 250px; min-width: 250px; min-height: 255px; padding: 11px; background: #ebeef3; border-radius: 13px; }
.kanban-column > header { display: flex; align-items: center; gap: 7px; padding: 3px 2px 11px; }
.kanban-column > header strong { flex: 1; font-size: 10px; }
.kanban-column > header small { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .7); border-radius: 50%; font-size: 8px; }
.stage-dot, .flow-dot { width: 8px; height: 8px; border-radius: 50%; }
.stage-dot.slate { background: #929bab; } .stage-dot.sky { background: #48a2d6; } .stage-dot.violet { background: #7b5bd6; }
.stage-dot.amber { background: #d59a2d; } .stage-dot.orange { background: #e36f38; } .stage-dot.green { background: #2d9b72; }
.lead-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 10px rgba(35, 43, 63, .06); }
.lead-card > div { display: flex; align-items: center; gap: 7px; }
.lead-card strong { flex: 1; font-size: 11px; }
.lead-card p { height: 30px; margin: 8px 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.lead-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #eef0f3; }
.lead-card footer b { font-size: 10px; }
.lead-card footer span, .heat { padding: 3px 6px; color: var(--muted); background: #f1f3f6; border-radius: 20px; font-size: 7px; }
.hot { color: #ed7046; font-size: 9px; }
.preview-note { margin: 18px 0 0; padding: 12px 15px; color: #7c704a; background: #fffbec; border: 1px solid #eee5c8; border-radius: 9px; font-size: 10px; line-height: 1.55; }
.preview-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.fake-search { max-width: 460px; flex: 1; display: flex; gap: 8px; padding: 11px 13px; color: var(--subtle); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.disabled-action { padding: 10px 13px; color: #8c94a1; background: #eceef2; border-radius: 9px; font-size: 9px; font-weight: 750; }
.table-panel { overflow: hidden; }
.responsive-table, .table-wrap { overflow-x: auto; }
.crm-table, .ai-table { width: 100%; border-collapse: collapse; }
.crm-table { min-width: 790px; }
.crm-table th, .ai-table th { padding: 11px 14px; color: var(--muted); background: #f9fafb; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; font-weight: 850; letter-spacing: .75px; text-transform: uppercase; }
.crm-table td, .ai-table td { padding: 13px 14px; color: #525d6e; border-bottom: 1px solid #edf0f4; font-size: 10px; vertical-align: middle; }
.crm-table tbody tr:last-child td, .ai-table tbody tr:last-child td { border-bottom: 0; }
.crm-table tbody tr:hover, .ai-table tbody tr:hover { background: #fbfbfd; }
.crm-table td strong { color: var(--ink); }
.contact-cell { display: flex; align-items: center; gap: 9px; }
.contact-cell > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.contact-cell strong { font-size: 10px; }
.contact-cell small { color: var(--subtle); font-size: 8px; }
.status-pill, .role-pill { display: inline-flex; padding: 4px 8px; border-radius: 20px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-pill.violet { color: #6744b9; background: #eee9fb; }
.status-pill.orange { color: #b5582c; background: #fff0e9; }
.status-pill.amber { color: #a76917; background: #fff4df; }
.status-pill.neutral { color: #66717f; background: #edf0f3; }
.status-pill.green { color: #24775d; background: #e7f5ef; }
.status-pill.sky { color: #28769f; background: #e6f3fa; }
.filter-row { display: flex; gap: 9px; margin-bottom: 15px; overflow-x: auto; }
.filter-row span { min-width: 140px; flex: 1; padding: 11px 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.program-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.program-visual { height: 145px; padding: 17px; color: #fff; }
.sky-gradient { background: linear-gradient(135deg, #3296ca, #5458cb); }
.green-gradient { background: linear-gradient(135deg, #2caa83, #257780); }
.violet-gradient { background: linear-gradient(135deg, #c14cb5, #6550c4); }
.program-visual > span { display: inline-block; margin-right: 4px; padding: 3px 7px; background: rgba(255, 255, 255, .19); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; font-size: 7px; font-weight: 750; }
.program-visual > div { margin-top: 47px; display: flex; flex-direction: column; gap: 4px; }
.program-visual strong { font: 600 18px/1.1 Georgia, "Times New Roman", serif; }
.program-visual small { color: rgba(255, 255, 255, .73); font-size: 9px; }
.program-body { padding: 15px; }
.program-body p { display: flex; justify-content: space-between; margin: 0; }
.program-body p > span { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 8px; }
.program-body p > span:last-child { text-align: right; }
.program-body p small { color: var(--ink); font-size: 13px; font-weight: 800; }
.program-body footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 11px; color: var(--muted); border-top: 1px solid #edf0f4; font-size: 8px; }
.success-text { color: var(--green) !important; }
.warning-text { color: var(--amber) !important; }
.danger-text { color: var(--red) !important; }
.info-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 14px 16px; color: #5f5680; background: #f2effc; border: 1px solid #e2dcf5; border-radius: 11px; }
.info-banner > span { font-size: 22px; }
.info-banner p { margin: 0; font-size: 10px; line-height: 1.5; }
.info-banner strong { display: block; color: #443b65; }

/* Atelier IA conservé */
.ai-title-row { align-items: flex-end; }
.sync-hint { margin: -16px 0 17px; color: var(--muted); font-size: 9px; text-align: right; }
.button { min-height: 40px; padding: 10px 15px; border-radius: 9px; border: 0; font-size: 11px; font-weight: 780; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.wide { width: 100%; min-height: 47px; margin-top: 3px; }
.primary, .magic { color: #fff; background: var(--indigo); box-shadow: 0 7px 18px rgba(90, 92, 226, .2); }
.primary:hover, .magic:hover { background: var(--indigo-dark); }
.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line-dark); }
.secondary:hover { border-color: #aab2c0; }
.publish { color: #fff; background: var(--navy); }
.publish:hover { background: #222e43; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; margin-bottom: 17px; }
.status-card { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.status-card > div { display: flex; flex-direction: column; gap: 4px; }
.status-card small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .9px; }
.status-card strong { font-size: 11px; }
.status-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: #edf0f4; border-radius: 50%; font: 800 17px/1 Georgia, "Times New Roman", serif; }
.status-icon.sparkle { color: var(--indigo); background: #eeeeff; }
.dot { width: 8px; height: 8px; margin-left: auto; background: #b5bbc5; border-radius: 50%; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(39, 139, 108, .12); }
.status-card.metric { justify-content: space-around; }
.status-card.metric > div { flex: 1; align-items: center; }
.status-card.metric > div + div { border-left: 1px solid var(--line); }
.status-card.metric strong { font: 700 22px/1 Georgia, "Times New Roman", serif; }
.workspace { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 21px 16px; }
.workspace-heading .step { margin-bottom: 5px; }
.workspace-heading h3 { margin: 0; font: 600 22px/1.2 Georgia, "Times New Roman", serif; }
.search { width: min(330px, 40vw); display: flex; align-items: center; gap: 8px; padding: 9px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.search input { width: 100%; color: var(--ink); background: transparent; border: 0; font-size: 10px; }
.editorial-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; padding: 14px 21px; background: #f8f9fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection-count { min-width: 105px; display: flex; align-items: center; gap: 8px; }
.selection-count strong { color: var(--indigo); font: 700 29px/1 Georgia, "Times New Roman", serif; }
.selection-count span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.instructions { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.instructions input { width: 100%; height: 37px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.magic { min-height: 38px; }
.ai-table { min-width: 960px; }
.ai-table th { padding: 11px 12px; }
.ai-table td { padding: 14px 12px; vertical-align: top; font-size: 10px; }
.ai-table th.check, .ai-table td.check { width: 47px; padding-left: 20px; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--indigo); }
.property-ref { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; font-weight: 850; }
.property-meta { color: var(--muted); font-size: 9px; line-height: 1.5; }
.copy-title { display: block; margin-bottom: 5px; color: var(--ink); font-size: 10px; font-weight: 750; line-height: 1.35; }
.copy-description { max-width: 390px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.proposal { padding-left: 10px; border-left: 3px solid #adaef2; }
.proposal.empty-copy { color: #9ca4b1; border-color: var(--line); }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.badge.none { color: #727b86; background: #eef0f2; }
.badge.draft { color: var(--amber); background: #fff2da; }
.badge.approved { color: var(--green); background: #e5f4ee; }
.badge.published { color: #236b94; background: #e3f2fa; }
.badge.stale, .badge.failed, .badge.verification_failed, .badge.unknown_outcome { color: var(--red); background: #fae8e8; }
.empty { padding: 38px !important; color: var(--muted) !important; text-align: center !important; }
.batch-actions { display: flex; justify-content: space-between; gap: 13px; padding: 15px 19px; background: #fbfbfc; }
.batch-actions > div { display: flex; gap: 8px; }
.safety-note { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 12px 15px; color: #5e6877; background: #e9edf2; border-radius: 9px; font-size: 9px; line-height: 1.55; }
.safety-note > span { color: var(--green); font-size: 20px; }
.safety-note p { margin: 0; }

/* Pilotage */
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.admin-metrics article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.admin-metrics strong { margin: 8px 0 5px; font: 700 21px/1.05 Georgia, "Times New Roman", serif; }
.admin-metrics small { color: var(--subtle); font-size: 8px; }
.pilotage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.funnel-panel, .flow-panel { overflow: hidden; }
.funnel-list, .flow-panel ul { margin: 0; padding: 13px 18px 17px; list-style: none; }
.funnel-list li { display: grid; grid-template-columns: 100px 1fr 25px; align-items: center; gap: 10px; padding: 7px 0; font-size: 9px; }
.funnel-list i { height: 7px; overflow: hidden; background: #eef0f3; border-radius: 20px; }
.funnel-list em { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), #8d6ae7); border-radius: inherit; }
.funnel-list progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  background: #eef0f3;
  border: 0;
  border-radius: 20px;
}
.funnel-list progress::-webkit-progress-bar { background: #eef0f3; border-radius: 20px; }
.funnel-list progress::-webkit-progress-value { background: linear-gradient(90deg, var(--indigo), #8d6ae7); border-radius: 20px; }
.funnel-list progress::-moz-progress-bar { background: linear-gradient(90deg, var(--indigo), #8d6ae7); border-radius: 20px; }
.funnel-100 { width: 100%; } .funnel-75 { width: 75%; } .funnel-50 { width: 50%; } .funnel-32 { width: 32%; } .funnel-20 { width: 20%; }
.funnel-list b { text-align: right; }
.flow-panel ul li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.flow-panel ul li:last-child { border-bottom: 0; }
.flow-dot { flex: 0 0 8px; }
.flow-dot.ok { background: var(--green); } .flow-dot.late { background: var(--amber); } .flow-dot.off { background: var(--red); }
.flow-panel li p { flex: 1; display: flex; flex-direction: column; gap: 3px; margin: 0; }
.flow-panel li strong { font-size: 9px; }
.flow-panel li small, .flow-panel li > span { color: var(--muted); font-size: 8px; }

/* Utilisateurs */
.invite-panel { margin-bottom: 15px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.invite-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.invite-heading h3 { margin: 0; font: 600 19px/1.2 Georgia, "Times New Roman", serif; }
.invite-fields { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 13px; }
.invite-fields input, .invite-fields select { height: 41px; font-size: 11px; }
.invite-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.invite-actions p { margin: 0; color: var(--muted); font-size: 9px; }
.activation-result { margin-bottom: 15px; padding: 15px 17px; color: #285f4e; background: #eaf7f2; border: 1px solid #cceadd; border-radius: 11px; }
.activation-result > div:first-child strong { font-size: 11px; }
.activation-result > div:first-child p { margin: 3px 0 11px; font-size: 9px; }
.activation-link { display: flex; align-items: center; gap: 9px; }
.activation-link code { min-width: 0; flex: 1; overflow: auto; padding: 9px 10px; color: #3d4c47; background: rgba(255, 255, 255, .8); border: 1px solid rgba(61, 119, 94, .16); border-radius: 7px; font-size: 9px; white-space: nowrap; }
.users-panel .panel-heading { padding-left: 15px; }
.users-table { min-width: 720px; }
.username { color: #555f70; font-size: 9px; }
.role-pill.admin { color: #6744b9; background: #eee9fb; }
.role-pill.vendeur { color: #28769f; background: #e6f3fa; }
.user-role-select { min-width: 132px; min-height: 36px; padding: 6px 8px; color: #475162; background: #fff; border: 1px solid var(--line-dark); border-radius: 8px; font: inherit; font-size: 11px; }
.user-role-select:disabled { color: #6b7280; background: #f1f3f5; }

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(440px, calc(100vw - 30px));
  padding: 12px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
  font-size: 11px;
  line-height: 1.45;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #ac3542; }
.busy { cursor: wait !important; }
.mobile-backdrop { display: none; }

@media (max-width: 1180px) {
  .dashboard-lower { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-card { min-height: 104px; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .close-menu { display: grid; }
  .crm-content { margin-left: 0; }
  .menu-button { display: grid; }
  .mobile-backdrop { position: fixed; z-index: 45; inset: 0; display: block; background: rgba(10, 16, 27, .5); backdrop-filter: blur(2px); }
  body.menu-open { overflow: hidden; }
  .auth-layout { grid-template-columns: minmax(340px, 42%) 1fr; }
  .auth-story { padding: 40px; }
  .auth-story-copy h1 { font-size: 43px; }
  .auth-panel { padding: 25px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-card.metric { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .responsive-table, .table-wrap { width: 100%; max-width: 100%; min-width: 0; contain: layout paint; }
  .auth-layout { display: block; background: #f5f6f9; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; padding: 22px; }
  .auth-card { padding: 32px 26px; }
  .auth-mobile-mark { display: grid; }
  .topbar-actions { gap: 7px; }
  .environment-pill, .notification-button { display: none; }
  .view-container { padding: 23px 15px 45px; }
  .view-intro, .view-intro.compact { align-items: flex-start; flex-direction: column; gap: 13px; }
  .module-flag { align-self: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .alert-strip { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; }
  .pilotage-grid { grid-template-columns: 1fr; }
  .ai-title-row .primary { width: 100%; }
  .sync-hint { margin-top: -5px; text-align: left; }
  .status-grid { grid-template-columns: 1fr; }
  .status-card.metric { grid-column: auto; }
  .workspace-heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .editorial-bar { grid-template-columns: 1fr; align-items: stretch; }
  .batch-actions { align-items: stretch; flex-direction: column; }
  .batch-actions > div { flex-direction: column; }
  .batch-actions .button { width: 100%; }
  .invite-fields { grid-template-columns: 1fr; }
  .invite-actions { align-items: stretch; flex-direction: column; }
  .activation-link { align-items: stretch; flex-direction: column; }
  .preview-toolbar { align-items: stretch; flex-direction: column; }
  .fake-search { max-width: none; }
}

@media (max-width: 520px) {
  .crm-topbar { height: 68px; padding: 0 13px; }
  .page-heading p { display: none; }
  .page-heading h1 { font-size: 17px; }
  .topbar-user > span:last-child { display: none; }
  .view-intro h2 { font-size: 27px; }
  .goal-card { grid-template-columns: 1fr; padding: 22px; }
  .goal-rank { position: absolute; right: 22px; top: 23px; }
  .goal-footer { gap: 15px; font-size: 8px; }
  .goal-footer span:last-child { text-align: right; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 100px; padding: 14px; }
  .task-tag { display: none; }
  .admin-metrics { grid-template-columns: 1fr; }
  .funnel-list li { grid-template-columns: 82px 1fr 23px; }
  .auth-card { border: 0; box-shadow: 0 16px 40px rgba(33, 39, 65, .08); }
  .auth-card-heading h2 { font-size: 27px; }
  .toast { right: 15px; bottom: 15px; }
}

/* CRM opérationnel */
body { font-size: 14px; }
a { color: #4547bd; text-underline-offset: 2px; }
a:hover { color: var(--indigo-dark); }
button, input, select, textarea, a { outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid rgba(90, 92, 226, .34);
  outline-offset: 2px;
  box-shadow: none;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 300;
  left: 16px;
  top: 12px;
  padding: 11px 15px;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow, .step, .kicker { font-size: 11px; }
.page-heading p, .environment-pill, .topbar-user small { font-size: 12px; }
.topbar-user strong { font-size: 13px; }
.icon-button, .logout-button, .notification-button { min-width: 44px; min-height: 44px; }
.environment-pill.demo i { background: var(--amber); box-shadow: 0 0 0 3px rgba(185, 112, 23, .14); }
.environment-pill.warning i { background: var(--amber); box-shadow: 0 0 0 3px rgba(185, 112, 23, .14); }
.environment-pill.ok i { background: var(--green); }
.notification-button:disabled { opacity: .48; }

.view-intro > div > p:last-child { font-size: 14px; }
.panel-heading h3 { font-size: 19px; }
.count-pill, .module-flag { font-size: 11px; }
.dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 17px; }
.metric-card { min-height: 118px; }
.metric-card > span, .admin-metrics article > span { font-size: 11px; }
.metric-card small, .admin-metrics small { font-size: 12px; }
.dashboard-lower.operational { align-items: start; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); }
.pipeline-summary { overflow: hidden; }
.empty-state {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.panel-empty { width: 100%; grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.task-list li { min-height: 64px; }
.task-list strong { font-size: 13px; }
.task-list small { font-size: 12px; }
.task-main {
  min-width: 0;
  flex: 1;
  display: block;
  padding: 3px 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}
.task-main strong, .task-main small { display: block; }
.task-main small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-list li { grid-template-columns: 130px 1fr 34px; min-height: 42px; font-size: 12px; }

.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar .search { width: min(520px, 48vw); min-height: 44px; background: #fff; }
.search input { min-height: 24px; font-size: 13px; }
.compact-field {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #4f5969;
  font-size: 12px;
  font-weight: 750;
}
.compact-field select {
  min-height: 44px;
  padding: 0 35px 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
}

.crm-table { min-width: 900px; }
.crm-table th, .ai-table th { font-size: 10px; }
.crm-table td, .ai-table td { font-size: 13px; line-height: 1.45; }
.crm-table td strong, .contact-cell strong, .property-ref, .copy-title { font-size: 13px; }
.contact-cell small, .property-meta, .table-subline { color: var(--muted); font-size: 11px; }
.table-subline { display: block; margin-top: 4px; }
.stacked-copy { display: flex; flex-direction: column; gap: 4px; }
.stacked-copy small { color: var(--muted); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--indigo-dark);
  background: #eeeeff;
  border: 0;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 800;
}
.icon-action:hover { background: #dedfff; }
.button { min-height: 44px; font-size: 13px; }
.button.tiny { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.success-button { color: #fff; background: var(--green); border: 1px solid var(--green); }
.success-button:hover { background: #207459; }
.status-pill, .role-pill, .badge { padding: 5px 9px; font-size: 11px; }
.status-pill.red { color: #a93442; background: #fdebed; }
.row-complete { opacity: .7; }

.kanban-board { gap: 14px; padding: 3px 2px 18px; }
.kanban-column { width: 276px; min-width: 276px; min-height: 320px; padding: 12px; }
.kanban-column > header { min-height: 39px; }
.kanban-column > header strong { font-size: 13px; }
.kanban-column > header small { width: 25px; height: 25px; font-size: 11px; }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; }
.column-empty { margin: 14px 2px; color: var(--subtle); font-size: 12px; text-align: center; }
.lead-card { padding: 0; }
.lead-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}
.lead-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-title strong { min-width: 0; font-size: 13px; }
.lead-title small { flex: 0 0 auto; padding: 3px 6px; color: var(--muted); background: #f1f3f6; border-radius: 20px; font-size: 10px; }
.lead-contact { color: var(--ink); font-size: 12px; font-weight: 700; }
.lead-program { min-height: 32px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.lead-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #eef0f3; }
.lead-footer b { font-size: 12px; }
.lead-footer small { color: var(--muted); font-size: 10px; text-align: right; }
.stage-control { display: block; padding: 0 12px 12px; }
.stage-control select {
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  color: #4d5767;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.stage-dot.red { background: var(--red); }

.activity-cell { display: flex; align-items: center; gap: 10px; }
.activity-cell > span { display: flex; flex-direction: column; gap: 3px; }
.activity-cell small { color: var(--muted); font-size: 11px; }
.kind-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--indigo-dark);
  background: #eeeeff;
  border-radius: 10px;
  font-style: normal;
  font-weight: 850;
}
.kind-icon.call { color: var(--green); background: #e7f5ef; }
.kind-icon.email { color: var(--sky); background: #e6f3fa; }
.kind-icon.meeting { color: var(--amber); background: #fff4df; }
.kind-icon.note { color: #6744b9; background: #eee9fb; }

.operational-grid { margin-bottom: 18px; }
.operational-card .neutral-gradient {
  background:
    radial-gradient(circle at 90% 10%, rgba(183, 60, 175, .25), transparent 36%),
    linear-gradient(135deg, #273654, #5256c6);
}
.operational-card .program-body p small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operational-card .program-body footer { align-items: center; }
.stock-table-panel { margin-top: 5px; }
.info-banner p { font-size: 13px; }

.copy-description {
  max-width: 520px;
  display: block;
  margin: 0;
  overflow: visible;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  -webkit-line-clamp: unset;
}
.ai-table { min-width: 1080px; }
.ai-table td { vertical-align: top; }
.property-meta { font-size: 11px; }
.sync-hint, .safety-note { font-size: 12px; }
.status-card small { font-size: 10px; }
.status-card strong { font-size: 13px; }
.instructions { font-size: 12px; }
.instructions input { height: 44px; font-size: 13px; }

.team-panel { margin-top: 16px; }
.flow-panel li strong { font-size: 12px; }
.flow-panel li small, .flow-panel li > span { font-size: 11px; }

.entity-dialog, .confirm-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 18px;
}
.confirm-dialog { width: min(520px, calc(100vw - 28px)); }
.entity-dialog::backdrop, .confirm-dialog::backdrop { background: rgba(10, 16, 27, .62); backdrop-filter: blur(3px); }
.dialog-shell {
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(8, 13, 24, .28);
}
.compact-dialog { padding-bottom: 0; }
.compact-dialog > p { margin: 0; padding: 4px 24px 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.dialog-heading {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-heading h2 { margin: 0; font: 600 26px/1.2 Georgia, "Times New Roman", serif; }
.dialog-close { color: var(--muted); background: #f5f6f9; }
.dialog-close:hover { color: var(--ink); background: #eceef3; }
.dialog-body { overflow-y: auto; padding: 22px 24px; }
.dialog-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: #fbfbfc;
  border-top: 1px solid var(--line);
}
#entityFormError { margin: 0 24px 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #414b5c;
  font-size: 13px;
  font-weight: 750;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  font: inherit;
}
.form-grid textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--indigo); }
.wide-field { grid-column: 1 / -1; }
.form-context {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form-context strong { font-size: 15px; }
.form-context small { color: var(--muted); font-size: 12px; }
.consent-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.consent-fields legend { padding: 0 6px; color: #414b5c; font-size: 13px; font-weight: 750; }
.form-grid .check-field { flex-direction: row; align-items: center; gap: 8px; font-weight: 650; }
.form-grid .check-field input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; padding: 0; }

/* Paramètres et flux d'administration */
.settings-view { scroll-behavior: smooth; }
.admin-scope-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  padding: 15px 17px;
  color: #3f485b;
  background: #f0f1ff;
  border: 1px solid #dfe0fa;
  border-radius: 12px;
}
.admin-scope-banner > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--indigo-dark);
  background: #fff;
  border-radius: 10px;
  font-size: 18px;
}
.admin-scope-banner strong { display: block; margin-bottom: 3px; font-size: 13px; }
.admin-scope-banner p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.config-load-state {
  padding: 6px 9px;
  color: #716235;
  background: #fff7dd;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.config-load-state.ready { color: #26654f; background: #dcf2e8; }
.config-load-state.error { color: #9b3540; background: #fae7e9; }
.settings-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 17px; }
.settings-summary article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}
.settings-summary article > div { display: flex; flex-direction: column; gap: 3px; }
.settings-summary strong { font: 700 22px/1 Georgia, "Times New Roman", serif; }
.settings-summary small { color: var(--muted); font-size: 11px; }
.summary-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  color: #39765f;
  background: #e3f4ec;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.summary-icon.active { color: #4143aa; background: #ececff; }
.summary-icon.tested { color: #2a6e91; background: #e4f3fa; }
.summary-icon.pending { color: #876923; background: #fff3d8; }
.settings-section-nav {
  position: sticky;
  z-index: 5;
  top: 78px;
  display: flex;
  gap: 5px;
  margin-bottom: 17px;
  padding: 7px;
  overflow-x: auto;
  background: rgba(247, 248, 251, .94);
  border: 1px solid var(--line);
  border-radius: 11px;
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}
.settings-section-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #596273;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.settings-section-nav a:hover, .settings-section-nav a:focus-visible { color: var(--indigo-dark); background: #fff; }
.settings-stack { display: flex; flex-direction: column; gap: 17px; }
.settings-card { scroll-margin-top: 145px; overflow: hidden; }
.settings-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 21px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.settings-card-heading h3 { margin: 4px 0 5px; font: 600 22px/1.2 Georgia, "Times New Roman", serif; }
.settings-card-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.settings-origin { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.settings-origin span, .config-scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  color: #3e5383;
  background: #eaf0ff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}
.settings-origin small { color: var(--subtle); font-size: 10px; }
.config-scope-badge.infrastructure { color: #5d5870; background: #eeecf3; }
.config-scope-badge.dynamic { color: #2c6c56; background: #e2f3eb; }
.config-scope-badge.pending { color: #806320; background: #fff1d1; }
.config-scope-badge.restart { color: #915c22; background: #fff0df; }
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 19px;
  padding: 22px;
}
.settings-fields > label:not(.toggle-field), .flow-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #414b5c;
  font-size: 12px;
  font-weight: 750;
}
.settings-fields input:not([type="checkbox"]), .settings-fields select, .settings-fields textarea,
.flow-fields input:not([type="checkbox"]), .flow-fields select, .flow-fields textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  font: inherit;
  font-weight: 500;
}
.settings-fields textarea, .flow-fields textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.settings-fields label > small, .flow-field > small { color: var(--subtle); font-size: 10px; font-weight: 500; line-height: 1.4; }
.settings-fields input:disabled, .settings-fields select:disabled, .settings-fields textarea:disabled,
.flow-fields input:disabled, .flow-fields select:disabled, .flow-fields textarea:disabled { color: #777f8c; background: #f2f3f5; cursor: not-allowed; }
.input-with-unit { display: flex; align-items: stretch; }
.input-with-unit input { min-width: 0; border-radius: 9px 0 0 9px !important; }
.input-with-unit b { display: grid; place-items: center; padding: 0 11px; color: #6b7483; background: #f2f4f7; border: 1px solid var(--line-dark); border-left: 0; border-radius: 0 9px 9px 0; font-size: 10px; }
.toggle-field {
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.toggle-field input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--indigo); }
.toggle-field > span { display: flex; flex-direction: column; gap: 3px; }
.toggle-field strong { color: #414b5c; font-size: 12px; }
.toggle-field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.toggle-field.fixed-on { cursor: default; }
.runtime-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 22px 0;
  padding: 14px 15px;
  background: #f6f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.runtime-setting > div { display: flex; flex-direction: column; gap: 3px; }
.runtime-setting > div > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.runtime-setting strong { font-size: 13px; }
.runtime-setting small { color: var(--subtle); font-size: 10px; }
.capability-list { margin: 0 22px 20px; border: 1px solid var(--line); border-radius: 10px; }
.capability-list > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.capability-list > div:last-child { border-bottom: 0; }
.capability-list > div > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.capability-list strong { font-size: 12px; }
.capability-list small { color: var(--muted); font-size: 10px; }
.infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 22px 20px;
}
.infrastructure-grid article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.infrastructure-grid span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .35px; text-transform: uppercase; }
.infrastructure-grid strong { overflow-wrap: anywhere; font-size: 12px; }
.infrastructure-grid small { color: var(--subtle); font-size: 9px; line-height: 1.4; }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 20px 22px 22px; }
.reference-grid > .empty-state { grid-column: 1 / -1; }
.reference-card { min-width: 0; padding: 15px; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; }
.reference-card h4 { margin: 0 0 5px; font-size: 12px; }
.reference-card > p { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.reference-values { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-value { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #515a69; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 9px; font-weight: 750; }
.reference-value code { color: var(--subtle); font-size: 8px; }
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 65px;
  padding: 13px 22px;
  background: #fbfbfc;
  border-top: 1px solid var(--line);
}
.settings-save-state { flex: 1; margin: 0; color: var(--muted); font-size: 11px; }
.settings-save-state.error { color: var(--red); }
.settings-save-state.success { color: var(--green); }

.flow-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.flow-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.flow-state-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #b7bdc7; }
.flow-state-dot.active { background: var(--green); }
.flow-state-dot.configured { background: var(--indigo); }
.flow-state-dot.tested { background: var(--sky); }
.flow-state-dot.pending { background: var(--amber); }
.flow-toolbar { display: flex; align-items: flex-end; gap: 10px; padding: 15px 22px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.flow-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 19px 22px 22px; }
.flow-config-grid > .empty-state { grid-column: 1 / -1; }
.flow-config-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.flow-config-card[open] { border-color: #cbcee8; box-shadow: 0 8px 24px rgba(35, 42, 70, .07); }
.flow-config-card > summary { list-style: none; cursor: pointer; }
.flow-config-card > summary::-webkit-details-marker { display: none; }
.flow-card-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 15px; }
.flow-card-summary::after { content: "+"; width: 25px; height: 25px; display: grid; place-items: center; color: var(--muted); background: #f1f3f6; border-radius: 7px; font-size: 15px; }
.flow-config-card[open] .flow-card-summary::after { content: "−"; }
.flow-symbol { width: 38px; height: 38px; display: grid; place-items: center; color: var(--indigo-dark); background: #eeeeff; border-radius: 10px; font-size: 16px; font-weight: 800; }
.flow-symbol.incoming { color: #287496; background: #e5f3fa; }
.flow-symbol.outgoing { color: #7a4da6; background: #f0e9f8; }
.flow-symbol.service { color: #317058; background: #e4f4ec; }
.flow-summary-copy { min-width: 0; }
.flow-summary-copy > span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.flow-summary-copy strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.flow-summary-copy small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.flow-direction { color: #6a7280; font-size: 9px; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; }
.flow-state-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 14px 64px; }
.flow-state-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #747c88; background: #f0f2f4; border-radius: 20px; font-size: 9px; font-weight: 750; }
.flow-state-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b2b8c1; }
.flow-state-chip.on.active { color: #27644f; background: #e1f2e9; }
.flow-state-chip.on.active::before { background: var(--green); }
.flow-state-chip.on.configured { color: #4244a4; background: #ebebff; }
.flow-state-chip.on.configured::before { background: var(--indigo); }
.flow-state-chip.on.tested { color: #276d8e; background: #e4f2f9; }
.flow-state-chip.on.tested::before { background: var(--sky); }
.flow-state-chip.on.pending { color: #82651f; background: #fff2d4; }
.flow-state-chip.on.pending::before { background: var(--amber); }
.flow-card-body { padding: 16px; background: #fbfbfc; border-top: 1px solid var(--line); }
.flow-description { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.flow-message { margin: 0 0 13px; padding: 10px 11px; color: #75602b; background: #fff7e3; border: 1px solid #f0e2b9; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.flow-message.danger { color: #883841; background: #fff0f1; border-color: #f2d2d5; }
.flow-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 13px; color: var(--subtle); font-size: 9px; }
.flow-meta b { color: #5d6674; }
.flow-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.flow-field.wide { grid-column: 1 / -1; }
.flow-secret-wrap { position: relative; }
.flow-secret-wrap input { padding-right: 42px !important; }
.secret-toggle { position: absolute; right: 5px; top: 5px; width: 33px; height: 33px; display: grid; place-items: center; color: #697280; background: #f2f4f6; border: 0; border-radius: 7px; cursor: pointer; }
.flow-secret-field > div { display: flex; flex-direction: column; gap: 3px; min-height: 54px; padding: 10px 11px; background: #f1f2f5; border: 1px solid var(--line); border-radius: 9px; }
.flow-secret-field > div strong { color: #505968; font-size: 11px; }
.flow-secret-field > div small { color: var(--subtle); font-size: 9px; font-weight: 500; line-height: 1.4; }
.flow-toggle { display: flex; align-items: center; gap: 9px; margin: 13px 0 0; color: #465061; font-size: 11px; font-weight: 750; }
.flow-toggle input { width: 18px; height: 18px; accent-color: var(--indigo); }
.flow-locks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.flow-lock { display: flex; align-items: center; gap: 8px; padding: 9px 10px; color: #743d44; background: #fff0f1; border-radius: 8px; font-size: 9px; font-weight: 750; }
.flow-lock.unlocked { color: #2c6a54; background: #e4f3eb; }
.flow-lock i { width: 8px; height: 8px; flex: 0 0 8px; background: var(--red); border-radius: 50%; }
.flow-lock.unlocked i { background: var(--green); }
.flow-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.flow-test-result { flex: 1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.flow-test-result.success { color: var(--green); }
.flow-test-result.error { color: var(--red); }

@media (max-width: 1180px) {
  .dashboard-metrics { grid-template-columns: repeat(3, 1fr); }
  .dashboard-lower.operational { grid-template-columns: 1fr; }
  .settings-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .search, .compact-field { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .dialog-heading, .dialog-body, .dialog-actions { padding-left: 18px; padding-right: 18px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .entity-dialog, .confirm-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .dialog-shell { max-height: calc(100vh - 16px); }
  .kanban-column { width: min(84vw, 300px); min-width: min(84vw, 300px); }
  .row-actions { justify-content: flex-start; }
  .admin-scope-banner { grid-template-columns: auto 1fr; }
  .admin-scope-banner .config-load-state { grid-column: 1 / -1; justify-self: start; }
  .settings-section-nav { top: 67px; }
  .settings-card-heading { flex-direction: column; gap: 12px; }
  .settings-origin { align-items: flex-start; text-align: left; }
  .settings-fields, .flow-fields { grid-template-columns: 1fr; }
  .settings-fields .wide-field, .flow-field.wide { grid-column: auto; }
  .runtime-setting, .capability-list > div { align-items: flex-start; flex-direction: column; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions .button { width: 100%; }
  .flow-toolbar { align-items: stretch; flex-direction: column; }
  .flow-toolbar .search, .flow-toolbar .compact-field { width: 100%; }
  .flow-config-grid { grid-template-columns: 1fr; }
  .infrastructure-grid, .reference-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 96px; }
  .topbar-actions .notification-button { display: grid; }
  .task-list li { align-items: flex-start; flex-wrap: wrap; }
  .task-main { flex-basis: calc(100% - 50px); }
  .task-list .button { margin-left: 46px; }
  .settings-summary { grid-template-columns: 1fr 1fr; }
  .settings-summary article { min-width: 0; padding: 12px; }
  .settings-summary small { font-size: 9px; }
  .settings-card-heading, .settings-fields, .flow-config-grid, .flow-toolbar { padding-left: 15px; padding-right: 15px; }
  .runtime-setting, .capability-list { margin-left: 15px; margin-right: 15px; }
  .infrastructure-grid { margin-left: 15px; margin-right: 15px; }
  .reference-grid { padding-left: 15px; padding-right: 15px; }
  .settings-actions { padding-left: 15px; padding-right: 15px; }
  .flow-state-list { padding-left: 15px; }
  .flow-locks { grid-template-columns: 1fr; }
  .flow-card-actions { align-items: stretch; flex-direction: column; }
  .flow-card-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
