:root {
  --ink: #24524a;
  --ink-2: #3b655d;
  --cream: #f7f4ec;
  --paper: #ffffff;
  --line: #dfe7e3;
  --muted: #657c79;
  --gold: #e2b64a;
  --gold-soft: #fbf0cf;
  --blue: #4a7184;
  --amber: #e2b64a;
  --violet: #7896a5;
  --green: #b9d3cc;
  --red: #b84535;
  --orange: #d98936;
  --shadow: 0 18px 50px rgba(23, 63, 59, .10);
  --radius-lg: 24px;
  --radius-md: 17px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(237, 200, 92, .2), transparent 34%), var(--cream, #f8f3e8);
}
.auth-gate[hidden] { display: none; }
.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 6vw, 42px);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(25, 61, 54, .16);
}
.auth-card__brand { color: var(--ink, #24524a); margin-bottom: 8px; }
.auth-card h1, .auth-card p { margin: 0; }
.auth-card__slogan { max-width: 330px; margin-top: -6px !important; color: #66736d; font-size: .92rem; line-height: 1.45; }
.auth-card__hint { color: #66736d; font-size: .9rem; }
.auth-card__status { min-height: 1.4em; color: #8a3e2f; font-weight: 700; }
.configuration-parameters {
  margin: 0;
  padding: 14px 18px 14px 36px;
  border: 1px solid #e1d39f;
  border-radius: 14px;
  background: var(--gold-soft);
}
.configuration-parameters:empty { display: none; }
.configuration-parameters code { color: var(--ink); font-weight: 800; }
.session-logout { align-self: flex-start; margin: 0 24px 24px; color: #f7f4ec; }
.mobile-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mobile-logout { color: var(--ink); font-size: .78rem; }
.email-attachment-reminder {
  grid-column: 1 / -1;
  margin: -4px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4c8;
  color: #4a4739;
  font-size: .9rem;
}
body[data-action-pending] { cursor: progress; }
body[data-action-pending] button { cursor: progress; }

.developer-diagnostic {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  font-size: .68rem;
  line-height: 1.35;
}
.developer-diagnostic strong { color: rgba(255, 255, 255, .88); font-size: .72rem; }
.developer-diagnostic p { margin: 2px 0 0; overflow-wrap: anywhere; }

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 63, 59, .25);
  outline-offset: 3px;
}
.page-heading__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.page-heading.page-heading--common { display: grid; grid-template-columns: minmax(0, 51%) minmax(0, 49%); }
.page-heading--common .page-heading__actions--common { width: 100%; justify-content: flex-start; align-self: start; padding-top: 8px; }
.page-heading--common .page-heading__actions--quotes { justify-content: space-between; }
.quote-create-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.secondary-action-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 790; cursor: pointer; }
.secondary-action-button:hover { background: #eef5f1; }
.secondary-action-button:focus-visible { outline: 3px solid rgba(23,63,59,.2); outline-offset: 2px; }
.secondary-action-button span:first-child { font-size: 1.2rem; line-height: 1; }
.new-request-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 19px 12px 14px; border: 1px solid var(--ink); border-radius: 17px; background: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(23,63,59,.18); font-weight: 820; letter-spacing: -.01em; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.new-request-button__plus { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 1.35rem; font-weight: 650; line-height: 1; }
.new-request-button:hover { background: var(--ink-2); box-shadow: 0 14px 28px rgba(23,63,59,.25); transform: translateY(-2px); }
.new-request-button:active { transform: translateY(0); box-shadow: 0 7px 15px rgba(23,63,59,.18); }
.new-request-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100dvh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 28px;
  background: var(--ink);
  color: #fff;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
}

.brand__logo { display: block; width: auto; height: 34px; }
.auth-card__brand .brand__logo { height: 40px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--gold);
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.brand--product {
  display: block;
  width: 100%;
  max-width: 192px;
  line-height: normal;
}

.product-logo {
  display: block;
  width: 100%;
  aspect-ratio: 4.5 / 1;
  overflow: hidden;
  line-height: 0;
}

.product-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.product-display-name {
  display: block;
  margin: 5px 4px 0;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.3;
}

.nav-list { display: grid; gap: 10px; margin-top: 64px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.is-active { background: rgba(255,255,255,.13); color: #fff; }
.nav-item.is-active svg { color: var(--gold); }

.demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}
.demo-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.main-content { min-height: 100dvh; margin-left: 244px; padding: 42px clamp(28px, 4vw, 68px) 72px; }
.mobile-header, .bottom-nav { display: none; }
.view { display: none; animation: enter .25s ease; }
.view.is-active { display: block; }

@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 2px 0 6px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.05rem; }
.page-heading--compact { margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mock-badge { align-self: flex-start; padding: 8px 12px; border: 1px solid #c7d6d1; border-radius: 999px; background: rgba(255,255,255,.6); color: var(--ink-2); font-size: .78rem; font-weight: 750; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 42px; }
.summary-grid, .kanban { scrollbar-width: none; }
.summary-grid::-webkit-scrollbar, .kanban::-webkit-scrollbar { display: none; }
.summary-card { position: relative; overflow: hidden; display: block; width: 100%; min-height: 126px; padding: 18px 21px; border: 1px solid rgba(23,63,59,.09); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 10px 32px rgba(23,63,59,.05); color: var(--ink); text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.summary-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23,63,59,.10); }
.summary-card:active { transform: translateY(0); }
.summary-card::after { content: ""; position: absolute; right: -18px; bottom: -30px; width: 100px; height: 100px; border-radius: 36px; transform: rotate(18deg); background: var(--tone, var(--blue)); opacity: .3; }
.summary-card__number { position: relative; z-index: 1; display: block; font-size: 2.15rem; font-weight: 850; line-height: 1; letter-spacing: -.05em; }
.summary-card__label { position: relative; z-index: 1; display: block; max-width: 170px; margin-top: 8px; color: var(--ink-2); font-weight: 700; }
.summary-card__open { position: absolute; right: 14px; bottom: 10px; z-index: 1; color: var(--muted); font-size: .72rem; font-weight: 700; opacity: .78; }

.today-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2, .guided-card h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-weight: 750; cursor: pointer; text-decoration: underline; text-decoration-color: #a5b9b3; text-underline-offset: 5px; }

.action-list { display: grid; gap: 12px; }
.action-card { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 19px 20px 19px 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.action-card:hover { transform: translateY(-2px); border-color: #becdc8; box-shadow: 0 12px 32px rgba(23,63,59,.08); }
.action-card__bar { align-self: stretch; border-radius: 0 10px 10px 0; background: var(--red); }
.action-card[data-priority="À traiter"] .action-card__bar { background: var(--orange); }
.action-card[data-action-kind="RELANCE_CLIENT"] .action-card__bar { background: var(--green); }
.action-card[data-action-kind="ATTENTE_INFORMATION"] .action-card__bar { background: var(--gold); }
.action-card[data-action-kind="RAPPEL_LIBRE"] .action-card__bar { background: var(--blue); }
.action-card__category { display: inline-block; margin-bottom: 5px; color: #53726c; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.action-card h3 { margin: 0 0 3px; font-size: 1rem; letter-spacing: .01em; }
.action-card p { margin: 0; color: var(--muted); }
.action-card__meta { margin-top: 8px !important; font-size: .84rem; }
.action-card__action { min-width: 140px; padding: 11px 14px; border-radius: 12px; background: #eef3f1; font-size: .86rem; font-weight: 750; text-align: center; }

.guided-card { position: sticky; top: 32px; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.guided-card .eyebrow { color: #b9ccc6; }
.guided-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 15px; background: var(--gold); color: var(--ink); }
.guided-card__case { margin: 14px 0 22px; color: #bdd0cb; font-size: .9rem; }
.guided-card__progress { margin: 10px 0 0; color: var(--gold); font-size: .84rem; font-weight: 800; }
.guided-card.is-complete { padding: 22px 26px; }
.guided-card.is-complete .guided-card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
.guided-flow { display: grid; gap: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-button { min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.08); color: #fff; font-weight: 750; cursor: pointer; }
.choice-button:hover { background: rgba(255,255,255,.16); }
.choice-button--primary { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.choice-button--later { grid-column: 1 / -1; min-height: 42px; padding: 8px 12px; border-color: rgba(255,255,255,.16); background: transparent; color: #d8e4e0; font-size: .88rem; }
.guided-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.08); color: #fff; }
.guided-input::placeholder { color: #bdd0cb; }
.assistant-next-actions, .assistant-reschedule { display: grid; gap: 10px; }
.guided-follow-up-date { margin: 0; color: var(--gold); font-size: .88rem; font-weight: 780; }
.choice-grid--follow-up a { display: grid; place-items: center; color: #fff; text-align: center; text-decoration: none; }
.choice-grid--follow-up a.choice-button--primary { color: var(--ink); }
.choice-button:disabled { cursor: not-allowed; opacity: .55; }
.guided-label { display: block; margin-top: 4px; color: #d8e4e0; font-size: .86rem; font-weight: 700; }
.guided-success { padding: 15px; border-radius: 14px; background: rgba(255,255,255,.1); color: #e8f1ee; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; align-self: end; color: #476561; font-size: .93rem; font-weight: 760; }
.legend span { display: flex; align-items: center; gap: 9px; }
.quote-scope-controls { display: flex; width: fit-content; gap: 7px; margin: 0 0 16px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.62); }
.scope-button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 780; cursor: pointer; }
.scope-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #e8efec; font-size: .75rem; }
.scope-button.is-active { background: var(--ink); color: #fff; }
.scope-button.is-active span { background: rgba(255,255,255,.18); }
.quotes-help--mobile { display: none; }
.kanban-stage-tabs { display: none; }
.kanban-stage-tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 58px; padding: 10px 12px; border: 1px solid #cad8d3; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 750; line-height: 1.25; text-align: left; cursor: pointer; }
.kanban-stage-tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 5px 14px rgba(23,63,59,.15); }
.kanban-stage-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kanban-stage-tab__label { min-width: 0; }
.kanban-stage-tab__count { display: grid; flex: 0 0 auto; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; border-radius: 999px; background: #e8efec; color: var(--ink); font-size: .75rem; }
.kanban-stage-tab.is-active .kanban-stage-tab__count { background: rgba(255,255,255,.2); color: #fff; }
.priority-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #8aa19c; box-shadow: 0 0 0 3px rgba(102,141,131,.12); }
.priority-dot--urgent { box-shadow: 0 0 0 3px rgba(184,69,53,.13); }
.priority-dot--soon { box-shadow: 0 0 0 3px rgba(217,137,54,.14); }
.priority-dot--urgent { background: var(--red); }
.priority-dot--soon { background: var(--orange); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(245px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding: 4px 2px 28px; scroll-snap-type: x proximity; }
.kanban-column { position: relative; min-height: 560px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.44); scroll-snap-align: start; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.completed-board { grid-template-columns: repeat(3, minmax(250px, 1fr)); }
.completed-column { min-height: 300px; }
.completed-column[data-terminal-status="ACCEPTE"] { --column-tone: #4f8c78; }
.completed-column[data-terminal-status="REFUSE"] { --column-tone: #b96b5f; }
.completed-column[data-terminal-status="ABANDONNE"] { --column-tone: #8b96a4; }
.completed-column .quote-card { cursor: pointer; }
.kanban-column.is-dragover { border-color: var(--ink); background: rgba(255,255,255,.9); }
.kanban-column.is-drop-allowed { border-color: var(--ink); background: #eef5f1; box-shadow: inset 0 0 0 3px rgba(36,82,74,.2), 0 10px 28px rgba(23,63,59,.1); }
.kanban-column.is-drop-allowed::after { content: "Déposer ici"; position: sticky; z-index: 5; top: 12px; display: block; width: fit-content; margin: 8px auto -41px; padding: 8px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 850; letter-spacing: .02em; pointer-events: none; opacity: .9; }
.kanban-column.is-drop-allowed.is-dragover { border-color: #8b691d; background: var(--gold-soft); box-shadow: inset 0 0 0 4px var(--gold), 0 13px 32px rgba(23,63,59,.13); }
.kanban-column.is-drop-allowed.is-dragover::after { background: var(--gold); color: var(--ink); opacity: 1; }
.kanban-column.is-drop-blocked { opacity: .68; }
.column-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 2px 14px; }
.column-heading__title { display: flex; align-items: center; gap: 9px; font-weight: 820; }
.column-heading__tone { width: 11px; height: 11px; border-radius: 4px; background: var(--column-tone); }
.column-heading__count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .8rem; font-weight: 800; }
.column-cards { display: grid; gap: 11px; min-height: 450px; }
.empty-column { display: grid; place-items: center; min-height: 120px; border: 1px dashed #cad7d3; border-radius: 15px; color: var(--muted); font-size: .86rem; text-align: center; }
.drag-hint { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 13px; padding: 8px 10px 8px 13px; border: 1px solid #d8e2de; border-radius: 12px; background: rgba(255,255,255,.65); color: var(--muted); font-size: .82rem; }
.drag-hint > span { color: var(--ink); font-size: 1rem; font-weight: 850; }
.drag-hint__close { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.drag-hint__close:hover { background: #e9efed; }
.kanban-filter { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.filter-clear { min-height: 40px; padding: 7px 12px; border: 1px solid #cbd9d4; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; }
.filter-clear:hover { background: #edf3f0; }

.quote-card { padding: 17px; border: 1px solid #e0e7e4; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(23,63,59,.055); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.quote-card:hover { transform: translateY(-2px); box-shadow: 0 12px 27px rgba(23,63,59,.1); }
.quote-card.is-grab-pending { cursor: grabbing; }
.quote-card.is-dragging { opacity: .24; transform: scale(.985); }
.drag-ghost { position: fixed; inset: 0 auto auto 0; z-index: 180; max-height: 320px; overflow: hidden; pointer-events: none; opacity: .96; transform-origin: top left; box-shadow: 0 22px 45px rgba(23,63,59,.22); cursor: grabbing; }
.drag-ghost .card-actions { display: none; }
body.is-card-dragging, body.is-card-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.quote-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quote-card h3 { margin: 0; font-size: .95rem; line-height: 1.35; }
.quote-card__work { min-height: 44px; margin: 9px 0 13px; color: var(--ink-2); font-size: .9rem; }
.quote-card__amount { margin: 0; color: #31524f; font-size: 1rem; font-weight: 780; }
.quote-card__next { display: grid; gap: 3px; margin-top: 13px; padding: 11px 12px; border-left: 3px solid var(--ink); border-radius: 0 11px 11px 0; background: #f0f5f2; }
.quote-card__next-label { color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.quote-card__next strong { color: var(--ink); font-size: .91rem; line-height: 1.35; }
.quote-card__next-due { color: var(--muted); font-size: .77rem; }
.quote-card__waiting { display: grid; gap: 4px; margin-top: 13px; padding: 13px; border: 1px solid #e5cf91; border-left: 5px solid var(--gold); border-radius: 12px; background: #fff8e6; }
.quote-card__waiting span { color: #795a13; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.quote-card__waiting strong { color: var(--ink); font-size: .93rem; line-height: 1.35; }
.quote-card__waiting small { color: #746a4e; font-size: .78rem; font-weight: 720; }
.quote-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.quote-card__age { color: #758b87; font-size: .75rem; }
.priority-badge { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 9px 15px; border: 1px solid #d8e3df; border-radius: 999px; background: #edf3f0; color: #315d55; font-size: .92rem; font-weight: 850; line-height: 1; white-space: nowrap; }
.priority-badge::before { content: ""; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: #668d83; box-shadow: 0 0 0 3px rgba(102,141,131,.13); }
.priority-badge[data-priority="Urgent"] { border-color: #e4b9b2; background: #f9e8e5; color: #8a2e23; }
.priority-badge[data-priority="Urgent"]::before { background: var(--red); box-shadow: 0 0 0 3px rgba(184,69,53,.14); }
.priority-badge[data-priority="À traiter"] { border-color: #ebc28f; background: #fff0dc; color: #81501b; }
.priority-badge[data-priority="À traiter"]::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(217,137,54,.14); }
.priority-badge[data-priority="En sommeil"] { border-color: #d7dce2; background: #eef0f3; color: #5e6976; }
.priority-badge[data-priority="En sommeil"]::before { background: #8b96a4; box-shadow: 0 0 0 3px rgba(139,150,164,.13); }
.quote-card__sent-status { display: inline-flex; align-items: center; min-height: 30px; margin: 2px 0 12px; padding: 6px 10px; border: 1px solid #bcd8cf; border-radius: 999px; background: #edf7f3; color: #2e6659; font-size: .79rem; font-weight: 820; line-height: 1.1; }
.quote-card__refusal-reason { margin: -5px 0 10px; color: var(--ink-2); font-size: .79rem; font-weight: 750; line-height: 1.35; }
.quote-card__sent-detail { display: grid; gap: 4px; margin-top: 8px; padding: 12px; border-left: 3px solid var(--green); border-radius: 0 11px 11px 0; background: #edf7f3; }
.quote-card__sent-detail span { color: var(--muted); font-size: .76rem; }
.quote-card__sent-detail strong { color: var(--ink); font-size: .9rem; line-height: 1.35; }

.settings-layout { display: grid; width: min(820px, 100%); gap: 20px; }
.settings-card { width: 100%; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 12px 34px rgba(23,63,59,.06); }
.settings-card h2 { margin: 2px 0 7px; font-size: 1.55rem; letter-spacing: -.025em; }
.settings-card__heading > div > p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); }
.profile-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 20px; }
.profile-details .form-field { margin: 0; }
.profile-details .big-button { min-height: 54px; }
.messaging-choice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.messaging-choice { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 780; cursor: pointer; }
.messaging-choice:hover, .messaging-choice.is-selected { border-color: var(--ink); background: #eff5f2; }
.messaging-choice span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #adc3bc; border-radius: 50%; font-size: .74rem; }
.messaging-choice.is-selected span { border-color: var(--ink); background: var(--ink); color: #fff; }
.settings-divider { height: 1px; margin: 30px 0 4px; background: var(--line); }
.settings-help { margin: 12px 0 5px; color: var(--muted); font-size: .86rem; }
.settings-help code { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 5px; border-radius: 5px; background: #edf3f0; color: var(--ink-2); font-family: inherit; font-size: .82rem; font-weight: 730; }
.messaging-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company-details { margin-top: 24px; }
.logo-manager { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 24px; padding: 17px; border: 1px solid #d9e4df; border-radius: 16px; background: #f8faf8; }
.logo-preview { display: grid; place-items: center; width: 112px; height: 82px; overflow: hidden; border: 1px dashed #b8c9c2; border-radius: 12px; background: #fffdf6; color: var(--ink-2); font-size: 1.8rem; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-manager h3 { margin: 0 0 4px; font-size: 1rem; }
.logo-manager p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.logo-actions, .settings-warning > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.small-button, .variable-button { min-height: 39px; padding: 8px 12px; border: 1px solid #a8c0b8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 780; cursor: pointer; }
.small-button { background: #eef4f0; border-color: #91aca3; }
.small-button:hover, .variable-button:hover { border-color: var(--ink); background: #e6f0eb; }
.text-button { padding: 6px 2px; border: 0; background: transparent; color: #426d62; font: inherit; font-size: .86rem; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.settings-advice { margin: 22px 0 8px; padding: 13px 15px; border-radius: 12px; background: #fff7df; color: #69551d; font-size: .91rem; line-height: 1.45; }
.variable-inserter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 14px; }
.variable-inserter > span { margin-right: 4px; color: var(--muted); font-size: .87rem; font-weight: 760; }
.variable-button { min-height: 34px; padding: 6px 10px; border-radius: 999px; }
.settings-warning { margin-top: 18px; padding: 15px; border: 1px solid #e4c879; border-radius: 14px; background: #fff8e7; color: #5f4d1c; }
.settings-warning p, .settings-saved p { margin: 5px 0 0; font-size: .91rem; line-height: 1.4; }
.settings-saved { margin-top: 18px; padding: 15px; border: 1px solid #a9cdbd; border-radius: 14px; background: #edf8f2; color: #285c4d; }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 28px; }

/* Relances automatiques (lots C3 et C3-UX) : démonstration locale, limitée à la page Paramètres */
.settings-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.settings-shortcuts .small-button { min-height: 44px; padding: 8px 16px; border-radius: 999px; }
.settings-scope { max-width: 640px; margin: 8px 0 0; color: #3f5a56; font-size: .9rem; line-height: 1.45; }
.settings-dirty { margin: 0 auto 0 0; color: #6b4a00; font-size: .9rem; font-weight: 750; }
.settings-actions--section { align-items: center; flex-wrap: wrap; gap: 12px; }
.settings-actions--section .text-button { margin-right: 0; }
.settings-attachment { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff4c8; color: #3d3410; font-size: .92rem; line-height: 1.45; }
.settings-warning__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.messaging-choice-list--stacked { grid-template-columns: 1fr; margin-top: 18px; }
.messaging-choice-list--stacked .messaging-choice { justify-content: flex-start; width: 100%; text-align: left; }
.messaging-choice-help { margin: 6px 0 8px 14px; color: #3f5a56; font-size: .9rem; line-height: 1.45; }
.automation-layout[hidden] { display: none; }
.automation-layout { margin-top: 20px; }
.automation-card h3 { margin: 2px 0 8px; font-size: 1.2rem; letter-spacing: -.02em; }
.automation-card h4 { margin: 14px 0 6px; font-size: 1rem; }
.automation-card p { max-width: 640px; color: #3f5a56; line-height: 1.5; }
.automation-card .settings-warning p, .automation-card .settings-saved p { color: inherit; }
.automation-card .settings-saved { color: #1f4a3d; }
.automation-card .field-error { color: #8a1f26; }
.automation-card .settings-help, .automation-card .form-field span { color: #3f5a56; font-size: .9rem; line-height: 1.45; }
.automation-card :is(button, input, summary):focus-visible, .settings-shortcuts button:focus-visible,
.automation-card [data-auto-message]:focus-visible, .automation-card [data-auto-summary]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.automation-simulation { margin: 16px 0 0; border-color: #c99a1d; background: #fff3cf; color: #3d3410; }
.automation-unavailable { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.automation-unavailable li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 14px; border: 1px dashed #6f8f85; border-radius: 12px; background: #f2f6f4; color: #34504a; }
.automation-unavailable li span { flex: 1 1 200px; min-width: 0; }
.automation-unavailable em { flex: none; padding: 3px 10px; border-radius: 999px; background: #d6e6df; color: #1d463c; font-size: .9rem; font-style: normal; font-weight: 760; }
.automation-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 0; }
.automation-switch h3 { margin: 2px 0 6px; font-size: 1.35rem; }
.automation-switch p { margin: 0 0 4px; }
.automation-switch.is-on h3 { color: #6b4a00; }
.automation-toggle { display: inline-flex; flex: none; align-items: center; gap: 12px; min-width: 190px; min-height: 52px; padding: 6px 18px 6px 8px; border: 1px solid #6f8f85; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 780; cursor: pointer; }
.automation-toggle__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: #6f8f85; transition: background .15s; }
.automation-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.automation-toggle[aria-checked="true"] .automation-toggle__track { background: var(--ink); }
.automation-toggle[aria-checked="true"] .automation-toggle__thumb { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .automation-toggle__track, .automation-toggle__thumb { transition: none; } }
.automation-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.automation-fieldset legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: .95rem; font-weight: 780; }
.automation-delays { margin-top: 20px; }
.automation-delays .form-field { max-width: 280px; }
.automation-days { display: flex; flex-wrap: wrap; gap: 8px; }
.automation-day { position: relative; }
.automation-day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.automation-day span { display: grid; min-width: 52px; min-height: 48px; place-items: center; padding: 0 12px; border: 1px solid #6f8f85; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 760; }
.automation-day input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.automation-day input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.automation-offer .big-button { margin-top: 6px; }
.automation-offer__panel { margin-top: 16px; padding: 16px 18px; border: 1px solid #b9cfc7; border-radius: 14px; background: #f2f7f4; }
.automation-offer__panel ul { margin: 6px 0 12px; padding-left: 20px; }
.automation-offer__panel li { margin: 6px 0; color: #2f4a45; line-height: 1.45; }
.automation-offer__limit { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff3cf; color: #3d3410 !important; font-size: .92rem; }
.automation-contact { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef4f1; color: #2f4a45 !important; }
.automation-card .small-button { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.automation-postpone { display: grid; gap: 4px; color: #3f5a56; font-size: .9rem; font-weight: 700; }
.automation-postpone span { color: #3f5a56; font-size: .9rem; }
.automation-postpone input { min-height: 44px; padding: 6px 10px; border: 1px solid #6f8f85; border-radius: 10px; }
.settings-actions .text-button { margin-right: auto; }
.card-actions { display: flex; gap: 7px; margin-top: 15px; }
.card-actions--sent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-button { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 43px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf9; color: var(--ink); font-size: .76rem; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.card-button:hover { border-color: #aebfba; background: #eef3f1; }
.drag-handle { display: grid; place-items: center; flex: 0 0 43px; min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }

.drawer-backdrop, .dialog-backdrop { position: fixed; inset: 0; background: rgba(10,31,29,.42); backdrop-filter: blur(3px); z-index: 70; }
.case-drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(560px, 100%); padding: 28px; overflow-y: auto; background: #fff; box-shadow: -24px 0 60px rgba(10,31,29,.18); transform: translateX(102%); transition: transform .25s ease; }
.case-drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; gap: 20px; }
.drawer-top h2 { margin: 4px 0 5px; font-size: 1.8rem; letter-spacing: -.03em; }
.drawer-top p { margin: 0; color: var(--muted); }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 1.7rem; cursor: pointer; }
.case-hero { margin: 28px 0 22px; padding: 22px; border-radius: 20px; background: var(--cream); }
.case-hero h3 { margin: 5px 0 0; font-size: 1.2rem; }
.action-now { margin: 0 0 25px; padding: 22px; border: 1px solid #dce7e1; border-radius: 20px; background: #eef4f0; }
.action-now h3 { margin: 0; font-size: 1.2rem; }
.action-now__task { margin: 10px 0 0; color: var(--ink); font-size: 1.08rem; font-weight: 780; line-height: 1.35; }
.action-now__due { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.action-now__done { width: 100%; margin-top: 17px; }
.waiting-context { margin: 0 0 25px; padding: 21px; border: 1px solid #ead39a; border-radius: 20px; background: #fff8e7; }
.waiting-context h3 { margin: 0; font-size: 1.16rem; }
.waiting-context__reason { margin: 10px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.waiting-context__date { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.quote-follow-up { margin: 0 0 25px; padding: 21px; border: 1px solid #bdd8cf; border-radius: 20px; background: #f0f8f4; }
.quote-follow-up h3 { margin: 0 0 10px; font-size: 1.16rem; }
.quote-follow-up__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 15px; }
.quote-last-client-return { padding: 14px 15px; border: 0; border-radius: 13px; background: #fff; }
.quote-last-client-return dt { color: var(--ink-2); }
.quote-last-client-return dd { margin-top: 3px; font-size: 1.02rem; }
.client-decision-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d8e7e1; }
.client-decision-block > p { margin: 0 0 10px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.client-decision-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.decision-button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 8px; border: 1px solid #bfd2cc; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-size: .79rem; font-weight: 790; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.decision-button:hover { border-color: #789b91; background: #f8fbfa; transform: translateY(-1px); }
.decision-button--accepted { border-color: #a9cfc1; background: #f7fcfa; }
.decision-button--refused { border-color: #dfb7ae; background: #fffafa; }
.decision-button--abandoned { border-color: #ccd2d8; background: #fbfcfd; }
.terminal-correction-button { width: 100%; margin-top: 17px; border-style: dashed; background: #fff; color: var(--ink-2); }
.terminal-correction-button:hover { border-color: var(--ink); background: #f8fbfa; }
.action-now--terminal { border-color: #d9e2df; background: #f7f9f8; }
.terminal-decision-detail { display: grid; gap: 4px; margin-top: 14px; padding: 14px 15px; border-radius: 14px; background: #fff; }
.terminal-decision-detail span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.terminal-decision-detail strong { color: var(--ink); font-size: 1rem; line-height: 1.4; }
.terminal-contact-actions { margin: 0 0 25px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfb; }
.terminal-contact-actions h3 { margin-bottom: 10px; }
.terminal-contact-actions__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sent-follow-up-actions { margin: 0 0 25px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(23,63,59,.05); }
.sent-follow-up-actions h3 { margin: 0 0 12px; font-size: 1.16rem; }
.sent-follow-up-actions__primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sent-follow-up-actions .email-attachment-reminder { margin: 10px 0 0; }
.tempalia-reminder-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px; border-radius: 15px; background: var(--cream); }
.tempalia-reminder-action strong, .tempalia-reminder-action span { display: block; }
.tempalia-reminder-action strong { margin-bottom: 4px; color: var(--ink); font-size: .9rem; }
.tempalia-reminder-action span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.tempalia-reminder-action .big-button { flex: 0 0 210px; background: #fff; }
.done-flow { margin-top: 16px; padding: 17px; border-radius: 15px; background: #fff; }
.done-flow__question { margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
.done-flow .choice-button { min-height: 45px; border-color: var(--line); background: #f5f8f7; color: var(--ink); }
.done-flow .choice-button--primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.done-flow .choice-button--later { grid-column: auto; border-color: transparent; background: transparent; color: var(--muted); }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-field { padding: 15px 0; border-bottom: 1px solid var(--line); }
.case-field dt { margin-bottom: 3px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.case-field dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.case-field--wide { grid-column: 1 / -1; }
.drawer-section { margin-top: 28px; }
.drawer-section--first { margin-top: 0; }
.drawer-section h3 { margin: 0 0 13px; font-size: 1rem; }
.drawer-copy { margin: 0; padding: 16px; border-radius: 14px; background: var(--cream); color: var(--ink-2); overflow-wrap: anywhere; }
.contact-value { word-break: break-word; }
.case-field--amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: end; }
.case-field--amount dt, .case-field--amount dd { grid-column: 1; }
.case-field--amount .text-button { grid-column: 2; grid-row: 1 / span 2; }
.follow-up-list { display: grid; gap: 9px; }
.follow-up-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.follow-up-item p { margin: 0; color: var(--ink); font-weight: 720; }
.follow-up-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .79rem; }
.follow-up-item__state { display: grid; justify-items: end; gap: 3px; flex: 0 0 auto; }
.follow-up-item__state strong { padding: 5px 8px; border-radius: 999px; background: #edf2f0; color: var(--ink-2); font-size: .72rem; }
.follow-up-item[data-reminder-state="today"] .follow-up-item__state strong { background: var(--gold-soft); color: #6d5315; }
.follow-up-item[data-reminder-state="overdue"] .follow-up-item__state strong { background: #f8e3df; color: #8b3025; }
.follow-up-item[data-reminder-state="done"] { opacity: .68; }
.drawer-empty { margin: 0; color: var(--muted); }
.case-status { margin: 12px 0 0; color: var(--muted); }
.history-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.history-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.history-list span { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }
.big-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.big-button { min-height: 54px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8f7; font-weight: 780; cursor: pointer; }
.big-button:hover { border-color: #adc0ba; }
.big-button--primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.big-button--link { display: flex; align-items: center; justify-content: center; color: var(--ink); text-align: center; text-decoration: none; }
.big-button:disabled { color: #889b97; cursor: not-allowed; opacity: .72; }
.quick-question { padding: 20px; border-radius: 18px; background: var(--gold-soft); }
.quick-question p { margin: 0 0 13px; font-weight: 800; }
.quick-question .choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-question .choice-button { min-height: 44px; border-color: rgba(23,63,59,.16); background: rgba(255,255,255,.7); color: var(--ink); font-size: .78rem; }

.dialog-backdrop { display: grid; place-items: center; padding: 18px; z-index: 100; }
.dialog { position: relative; width: min(440px, 100%); padding: 29px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.dialog--wide { width: min(600px, 100%); }
.dialog--refusal { width: min(560px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; }
.dialog h2 { margin: 0 0 20px; font-size: 1.45rem; }
.dialog__close { position: absolute; top: 18px; right: 18px; }
.stage-options { display: grid; gap: 9px; }
.stage-option { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 750; text-align: left; cursor: pointer; }
.stage-option:hover, .stage-option.is-current { border-color: var(--ink); background: #f3f7f5; }
.stage-option__tone { width: 13px; height: 13px; border-radius: 4px; background: var(--tone); }
.dialog-copy { margin: -8px 0 19px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog-actions .big-button:disabled { border-color: var(--line); background: #e8efec; color: #8aa09a; cursor: not-allowed; }
.refusal-reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.refusal-reason-choice { min-height: 54px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 780; text-align: left; cursor: pointer; }
.refusal-reason-choice:hover, .refusal-reason-choice.is-selected { border-color: var(--ink); background: #eef5f1; }
.refusal-reason-choice:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.refusal-reason-detail { margin-top: 16px; }
.refusal-reason-detail textarea { resize: vertical; }
.follow-up-actions, .follow-up-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.follow-up-action { display: grid; align-content: center; gap: 4px; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf9; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.follow-up-action:hover { border-color: #9eb9b0; background: #eef5f1; }
.follow-up-action strong { font-size: .94rem; }
.follow-up-action span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.follow-up-action .follow-up-action__consequence { color: #2f665a; font-weight: 790; }
.follow-up-action:disabled { cursor: not-allowed; opacity: .58; }
.follow-up-result-later { display: block; margin: 14px auto 0; }
.reminder-dialog-help { margin-bottom: 17px; padding: 11px 13px; border-radius: 11px; background: var(--cream); color: var(--ink-2); font-size: .86rem; }
.terminal-correction-help { margin-bottom: 14px; }
.terminal-correction-date { display: grid; gap: 3px; margin-top: 18px; padding: 15px; border: 1px solid #cfe0da; border-radius: 14px; background: #f3f8f6; }
.terminal-correction-date span, .terminal-correction-date small { color: var(--muted); font-size: .8rem; }
.terminal-correction-date strong { font-size: 1.05rem; }
.quote-card__client-return { display: block; width: fit-content; margin: 0 0 7px; padding: 5px 8px; border-radius: 999px; background: #e7f1ed; color: var(--ink-2); font-size: .72rem; font-weight: 780; }
.empty-state { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }

.statistics-heading { align-items: end; }
.statistics-period { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 7px 5px 13px; border: 1px solid #cbd9d4; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .78rem; font-weight: 800; }
.statistics-period select { min-height: 32px; padding: 4px 30px 4px 11px; border: 0; border-radius: 999px; background-color: #edf4f1; color: var(--ink); font: inherit; cursor: pointer; }
.statistics-period select:focus-visible { outline: 3px solid rgba(226, 182, 74, .48); outline-offset: 2px; }
.statistics-period-note { margin: -6px 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.statistics-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; margin-bottom: 20px; }
.statistics-card, .statistics-section { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 12px 34px rgba(23, 63, 59, .06); }
.statistics-card { min-width: 0; padding: clamp(22px, 3vw, 32px); }
.statistics-card h2, .statistics-section h2 { margin: 3px 0 0; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; }
.statistics-card--conversion { background: linear-gradient(145deg, var(--ink), #35695e); color: #fff; }
.statistics-card--conversion .eyebrow { color: #f5d978; }
.statistics-card--conversion p { margin: 8px 0; color: rgba(255,255,255,.88); }
.statistics-help { margin-top: 18px; color: rgba(255,255,255,.76); font-size: .78rem; line-height: 1.45; }
.statistics-help summary { width: fit-content; cursor: pointer; font-weight: 750; }
.statistics-help summary:focus-visible { outline: 3px solid rgba(245,217,120,.5); outline-offset: 3px; }
.statistics-help p { margin: 7px 0 0; }
.statistics-conversion-value { display: block; margin: 18px 0 2px; color: #fff; font-size: clamp(3.1rem, 7vw, 5.1rem); line-height: .95; letter-spacing: -.065em; }
.statistics-volume-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.statistics-volume-list div { min-width: 0; padding: 12px 14px; border-radius: 14px; background: #f3f7f5; }
.statistics-volume-list dt { color: var(--muted); font-size: .78rem; }
.statistics-volume-list dd { margin: 3px 0 0; color: var(--ink); font-size: 1.5rem; font-weight: 850; }
.statistics-section { margin-top: 20px; padding: clamp(22px, 3vw, 30px); }
.statistics-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.statistics-section__heading > span { flex: 0 0 auto; color: var(--muted); font-size: .83rem; font-weight: 760; }
.statistics-amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.statistics-amount-grid div { min-width: 0; padding: 17px; border-left: 5px solid var(--blue); border-radius: 14px; background: #f4f7f8; }
.statistics-amount-grid .is-positive { border-left-color: var(--ink); background: #eef5f1; }
.statistics-amount-grid .is-negative { border-left-color: var(--red); background: #fcf2ef; }
.statistics-amount-grid .is-secondary { border-left-color: var(--gold); background: #fdf8e9; }
.statistics-amount-grid dt { color: var(--muted); font-size: .79rem; line-height: 1.35; }
.statistics-amount-grid dd { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 850; line-height: 1.15; }
.statistics-note { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.refusal-stat-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.refusal-stat-row { min-width: 0; }
.refusal-stat-row__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.refusal-stat-row__heading span { font-weight: 780; }
.refusal-stat-row__heading strong { flex: 0 0 auto; font-size: .88rem; }
.refusal-stat-row__track { height: 11px; overflow: hidden; border-radius: 999px; background: #e7eeeb; }
.refusal-stat-row__track span { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.statistics-empty { padding: 17px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.statistics-empty--page { margin: 0 0 20px; background: #fffdf7; }
.statistics-note--warning { padding: 13px 15px; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff9e9; color: var(--ink-2); }
.statistics-trends-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.statistics-trend { min-width: 0; margin: 0; padding: 18px; border-radius: 16px; background: #f4f7f6; }
.statistics-trend figcaption { margin-bottom: 14px; color: var(--ink); font-weight: 820; }
.statistics-trend__bars { display: grid; grid-template-columns: repeat(var(--trend-columns), minmax(0, 1fr)); align-items: end; gap: clamp(3px, .7vw, 8px); min-height: 206px; margin: 0; padding: 0; list-style: none; }
.statistics-trend__bars li { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: end; gap: 6px; color: var(--muted); font-size: .65rem; text-align: center; }
.statistics-trend__bars strong { max-width: 100%; min-height: 28px; overflow-wrap: anywhere; color: var(--ink-2); font-size: .68rem; line-height: 1.15; }
.statistics-trend__plot { display: flex; width: 100%; height: 132px; align-items: end; justify-content: center; border-bottom: 1px solid #cbd9d4; }
.statistics-trend__bar { display: block; width: min(28px, 72%); min-height: 2px; border-radius: 7px 7px 2px 2px; background: var(--blue); }
.statistics-trend--amount .statistics-trend__bar { background: var(--gold); }
.statistics-trend__data { margin-top: 14px; color: var(--muted); font-size: .76rem; }
.statistics-trend__data summary { width: fit-content; cursor: pointer; font-weight: 740; }
.statistics-trend__data summary:focus-visible { outline: 3px solid rgba(226,182,74,.45); outline-offset: 2px; }
.statistics-trend__data ul { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.statistics-trend__data li { display: flex; justify-content: space-between; gap: 14px; }
.statistics-trend__data strong { color: var(--ink-2); }

.request-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(10,31,29,.47); backdrop-filter: blur(4px); }
.request-wizard { position: relative; width: min(560px, 100%); padding: 30px; border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.request-close { position: absolute; top: 18px; right: 18px; }
.request-progress { height: 7px; margin: 0 55px 28px 0; overflow: hidden; border-radius: 99px; background: #e6eeeb; }
.request-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .2s ease; }
.request-content h2, .request-wizard > h2 { max-width: 430px; margin: 0 0 9px; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.request-content p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); }
.form-field { display: grid; gap: 8px; margin-top: 16px; color: var(--ink); font-size: .92rem; font-weight: 780; }
.form-field span { color: var(--muted); font-size: .77rem; font-weight: 650; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 54px; padding: 13px 14px; border: 1px solid #cbd9d4; border-radius: 14px; background: #fff; color: var(--ink); resize: vertical; }
.form-field textarea { min-height: 94px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ink); outline: 3px solid rgba(23,63,59,.12); }
.form-field [aria-invalid="true"] { border-color: #a52f32; }
.field-error { margin: 7px 0 0; color: #92252b; font-size: .84rem; font-weight: 700; line-height: 1.4; }
.request-content p.field-error { margin: 7px 0 0; color: #92252b; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { background: #f0f5f2; color: var(--ink); }
.password-toggle:focus-visible { outline: 3px solid rgba(23,63,59,.2); outline-offset: 1px; }
.password-toggle[aria-pressed="true"] { color: var(--ink); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.schedule-choices { display: grid; gap: 9px; margin-top: 20px; }
.schedule-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 760; text-align: left; cursor: pointer; }
.schedule-choice:hover, .schedule-choice.is-selected { border-color: var(--ink); background: #f0f5f2; }
.schedule-choice span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b9cbc5; border-radius: 50%; color: var(--ink); font-size: .75rem; }
.schedule-choice.is-selected span { border-color: var(--ink); background: var(--ink); color: #fff; }
.blocking-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.blocking-choice { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-size: 1.02rem; font-weight: 820; cursor: pointer; }
.blocking-choice:hover, .blocking-choice.is-selected { border-color: var(--ink); background: #eef5f1; box-shadow: 0 7px 20px rgba(23,63,59,.08); }
.blocking-choice span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #b9cbc5; border-radius: 50%; font-size: .75rem; }
.blocking-choice.is-selected span { border-color: var(--ink); background: var(--ink); color: #fff; }
.request-date { margin-top: 14px; }
.request-summary { display: grid; gap: 11px; margin: 25px 0; padding: 21px; border-radius: 18px; background: var(--cream); color: var(--ink-2); }
.request-summary strong { color: var(--ink); font-size: 1.1rem; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.wizard-actions .big-button { min-width: 130px; }
.wizard-actions .big-button--primary { margin-left: auto; }
.standalone-wizard { width: min(680px, 100%); }
.standalone-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.standalone-field--wide { grid-column: 1 / -1; }
.standalone-optional { margin-top: 20px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfa; }
.standalone-optional summary { cursor: pointer; color: var(--ink); font-weight: 790; }
.standalone-optional summary span { color: var(--muted); font-size: .78rem; }
.standalone-choice-group { margin: 20px 0 0; padding: 0; border: 0; }
.standalone-choice-group legend { color: var(--ink); font-size: .94rem; font-weight: 790; }
.standalone-choice-group[aria-invalid="true"] { padding-left: 10px; border-left: 3px solid #a52f32; }
.standalone-info { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--cream); color: var(--ink-2); line-height: 1.5; }
.standalone-info p { margin: 5px 0 0; }
.standalone-duplicate-warning { margin: 18px 0; padding: 15px 16px; border-left: 4px solid var(--gold); border-radius: 13px; background: #fff9e9; }
.standalone-duplicate-warning p { margin: 5px 0 10px; color: var(--muted); }
.standalone-duplicate-warning ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.standalone-duplicate-warning li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.standalone-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.standalone-summary div { min-width: 0; padding: 13px 15px; border-radius: 13px; background: var(--cream); }
.standalone-summary dt { color: var(--muted); font-size: .76rem; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; }
.standalone-summary dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 780; }
.standalone-submit-note { color: var(--muted); font-size: .86rem; }
.standalone-success { text-align: center; }
.standalone-success__icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #dff3e6; color: #176b3a; font-size: 1.8rem; font-weight: 900; }
.standalone-success p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.standalone-success__close { margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 130; max-width: calc(100% - 36px); padding: 13px 18px; border-radius: 13px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .today-layout { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guided-card { position: static; }
  .kanban { grid-template-columns: repeat(4, minmax(280px, 38vw)); }
  .completed-board { grid-template-columns: repeat(3, minmax(280px, 38vw)); }
  .statistics-amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-trends-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: #fbfaf6; }
  .sidebar { display: none; }
  .developer-diagnostic { display: none; }
  .main-content { margin-left: 0; padding: 22px 18px 104px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
  .mobile-header .brand { color: var(--ink); }
  .mobile-header .brand--product { width: min(158px, 48vw); padding: 4px 7px; border-radius: 12px; background: var(--ink); }
  .mobile-header .product-display-name { margin: 3px 2px 1px; font-size: .64rem; }
  .mobile-header__actions { max-width: 58%; flex-wrap: wrap; }
  .mock-badge--desktop { display: none; }
  .page-heading { margin-bottom: 23px; }
  .page-heading, .page-heading.page-heading--common { display: flex; align-items: stretch; flex-direction: column; gap: 16px; }
  .page-heading__actions { justify-content: flex-start; }
  .new-request-button { width: 100%; }
  .page-heading h1 { font-size: 2rem; }
  .summary-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; margin: 0 -18px 34px; padding: 0 18px 8px; scroll-snap-type: x mandatory; }
  .summary-card { min-height: 112px; padding: 15px 17px; scroll-snap-align: start; }
  .summary-card__number { font-size: 1.95rem; }
  .summary-card__open { right: 11px; bottom: 6px; font-size: .67rem; }
  .action-card { grid-template-columns: 7px minmax(0, 1fr); padding-right: 16px; }
  .action-card__action { grid-column: 2; justify-self: start; min-width: auto; }
  .section-heading { align-items: center; }
  .guided-card { padding: 24px; }
  .bottom-nav { position: fixed; inset: auto 14px 12px; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px; border: 1px solid rgba(23,63,59,.12); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 12px 36px rgba(23,63,59,.18); backdrop-filter: blur(12px); }
  .bottom-nav__item { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 54px; padding: 5px 2px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 750; line-height: 1.1; }
  .bottom-nav__item.is-active { background: var(--ink); color: #fff; }
  .bottom-nav__item svg { width: 21px; height: 21px; }
  .kanban { grid-template-columns: repeat(4, minmax(82vw, 1fr)); margin: 0 -18px; padding: 4px 18px 28px; }
  .completed-board { grid-template-columns: repeat(3, minmax(82vw, 1fr)); }
  .kanban-column { min-height: 500px; }
  .page-heading__actions--quotes { flex-direction: column; align-items: stretch; }
  .quote-create-actions { display: grid; grid-template-columns: 1fr; }
  .secondary-action-button { width: 100%; }
  .page-heading--common .page-heading__actions--quotes { gap: 14px; padding-top: 0; }
  .page-heading__actions--quotes .legend { display: flex; justify-content: flex-start; align-self: flex-start; }
  .messaging-choice-list { grid-template-columns: 1fr; }
  .messaging-details { grid-template-columns: 1fr; gap: 0; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-details .big-button { width: 100%; }
  .logo-manager { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .logo-preview { width: 72px; height: 72px; }
  .variable-inserter { align-items: flex-start; }
  .settings-actions { justify-content: stretch; }
  .settings-actions .big-button { width: 100%; }
  .automation-switch { flex-direction: column; align-items: stretch; }
  .automation-switch .big-button { width: 100%; }
  .automation-delays .form-field { max-width: none; }
  .automation-toggle { width: 100%; justify-content: flex-start; }
  .settings-actions--section .big-button { width: 100%; }
  .settings-actions--section .settings-dirty { flex: 1 1 100%; order: -1; }
  .automation-day span { min-width: 44px; padding: 0 9px; }
  .case-drawer { padding: 22px 18px 100px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-field--wide { grid-column: auto; }
  .case-field--amount { grid-template-columns: 1fr; }
  .case-field--amount dt, .case-field--amount dd, .case-field--amount .text-button { grid-column: 1; grid-row: auto; justify-self: start; }
  .follow-up-item { align-items: flex-start; flex-direction: column; }
  .follow-up-item__state { justify-items: start; }
  .big-actions { grid-template-columns: 1fr; }
  .quote-follow-up__actions, .client-decision-actions, .sent-follow-up-actions__primary, .terminal-contact-actions__buttons, .follow-up-actions, .follow-up-result-grid { grid-template-columns: 1fr; }
  .tempalia-reminder-action { align-items: stretch; flex-direction: column; }
  .tempalia-reminder-action .big-button { flex-basis: auto; width: 100%; }
  .quote-scope-controls { width: 100%; }
  .scope-button { flex: 1; }
  .statistics-heading { align-items: flex-start; }
  .statistics-grid { grid-template-columns: 1fr; }
  .statistics-amount-grid { grid-template-columns: 1fr; }
  .statistics-section__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .statistics-period { width: 100%; justify-content: space-between; }
  .statistics-period select { flex: 1; max-width: 190px; }
  .statistics-trends-grid { grid-template-columns: 1fr; }
  .statistics-trend { padding: 15px 10px; }
  .statistics-trend__bars { min-height: 178px; }
  .statistics-trend__plot { height: 118px; }
  .statistics-trend--amount .statistics-trend__bars strong { visibility: hidden; }
  .quick-question .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .big-button { width: 100%; }
  .dialog--refusal { padding: 24px 20px; }
  .toast { bottom: 90px; }
  .request-backdrop { align-items: end; padding: 0; }
  .request-wizard { width: 100%; min-height: min(650px, 92dvh); padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; }
  .request-content { max-height: 61dvh; overflow-y: auto; padding-right: 3px; }
  .wizard-actions { position: sticky; bottom: 0; margin: 22px -4px 0; padding: 14px 4px 0; background: #fff; }
  .standalone-fields-grid, .standalone-summary { grid-template-columns: 1fr; }
  .standalone-field--wide { grid-column: auto; }
  .standalone-duplicate-warning li { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  .summary-grid { grid-template-columns: repeat(4, minmax(142px, 1fr)); }
  .section-heading { align-items: flex-start; }
  .text-button { text-align: right; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .quotes-help--desktop { display: none; }
  .quotes-help--mobile { display: inline; }
  .kanban-stage-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 15px; }
  .kanban, .completed-board { display: block; overflow: visible; margin: 0; padding: 4px 0 28px; }
  .kanban-column { display: none; min-height: 0; }
  .kanban-column.is-mobile-selected { display: block; }
  .column-cards { min-height: 0; }
  .drag-hint, .drag-handle { display: none; }
  .quote-card { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Enregistrement automatique et relances dans « Mes devis » (lot C4) */
.settings-save-status { color: #3f5a56; font-size: .92rem; font-weight: 700; }
.settings-save-status[data-state="saved"] { color: #1f4a3d; }
.settings-save-status[data-state="error"], .settings-save-status[data-state="invalid"] { color: #8a1f26; }
.settings-save-status:empty { display: none; }
.settings-actions--section .settings-save-status { margin-right: auto; }
.page-heading p.quote-create-hint:not(.eyebrow), .quote-create-hint { max-width: 560px; margin: 10px 0 0; color: #3f5a56; font-size: .9rem; line-height: 1.45; }
.quote-create-hint[hidden] { display: none; }
.scope-button--review { border: 1px solid #c99a1d; color: #3d3410; background: #fff8e1; }
.scope-button--review.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.quote-card__review-tag { display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff3cf; color: #3d3410; font-size: .84rem; font-weight: 760; }
.review-board { display: block; }
.review-intro p, .review-empty p { max-width: 640px; margin: 0 0 14px; color: #3f5a56; line-height: 1.5; }
.review-empty { max-width: 640px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.review-card { padding: 16px; border: 1px solid var(--line); border-left: 5px solid #c99a1d; border-radius: 14px; background: #fffaf0; }
.review-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; }
.review-card__head strong { display: block; }
.review-card__meta { display: block; margin-top: 2px; color: #3f5a56; font-size: .9rem; overflow-wrap: anywhere; }
.followup-controls { margin-top: 10px; }
.followup-controls__title { display: block; color: #3d3410; }
.followup-controls__label { margin: 4px 0 10px; color: #3f5a56; line-height: 1.45; }
.followup-controls--attention .followup-controls__label { color: #3d3410; }
.followup-controls__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.followup-controls .small-button { min-height: 44px; padding: 8px 14px; }
.followup-controls .automation-postpone input { min-height: 44px; }
.followup-note { margin: 8px 0 0; color: #3f5a56; font-size: .88rem; }
.followup-controls :is(button, input):focus-visible, .review-card .text-button:focus-visible, .review-empty .big-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 760px) {
  .followup-controls__actions .small-button { flex: 1 1 140px; }
  .review-card__head .text-button { padding: 8px 0; }
}

/* ---- Mon équipe (lot C6) : réutilise les cartes de Paramètres ; aucun tableau, lisible dès 320 px ---- */
.team-layout[hidden] { display: none; }
.team-layout { margin-top: 20px; }
.team-card h3 { margin: 2px 0 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.team-card h4 { margin: 14px 0 6px; font-size: 1rem; }
.team-card p, .team-card li { max-width: 640px; color: #3f5a56; line-height: 1.5; }
.team-card .settings-warning p, .team-card .settings-saved p, .team-card .settings-saved { color: inherit; }
.team-card .settings-saved { color: #1f4a3d; padding: 12px 15px; }
.team-card .field-error { margin: 8px 0 0; color: #8a1f26; font-weight: 700; }
.team-seats { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #eef4f1; color: var(--ink) !important; }
.team-help { margin: 8px 0 0; color: #3f5a56; font-size: .92rem; }
.team-help--demo { padding: 10px 12px; border-radius: 10px; background: #fff3cf; color: #3d3410 !important; }
.team-empty { margin: 12px 0 0; padding: 14px; border: 1px dashed #6f8f85; border-radius: 12px; background: #f2f6f4; }
.team-members { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.team-member { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.team-member.is-off { background: #f3f3f1; }
.team-member__main { display: grid; gap: 4px; min-width: 0; }
.team-member__name { font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; }
.team-member__email { color: #3f5a56; font-size: .92rem; overflow-wrap: anywhere; }
.team-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.team-badge { padding: 3px 10px; border-radius: 999px; background: #e3ece8; color: #1d463c; font-size: .86rem; font-weight: 760; }
.team-badge--owner { background: var(--ink); color: #fff; }
.team-badge--self { background: #fff3cf; color: #3d3410; }
.team-badge--status.is-active { background: #d6ecdf; color: #1c5a3a; }
.team-badge--status.is-off { background: #e6e6e3; color: #4a4a46; }
.team-badge--status.is-pending { background: #fff3cf; color: #5a4300; }
.team-member__actions, .team-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.team-actions { margin-top: 16px; justify-content: flex-end; }
.team-panel { display: grid; gap: 4px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.team-group { margin: 14px 0 0; padding: 0; border: 0; }
.team-group legend { margin-bottom: 4px; padding: 0; color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.team-group--particular { padding: 12px 14px; border-radius: 14px; background: #fbf6e8; }
.team-group__intro { margin: 0 0 6px; font-size: .92rem; }
.team-right { padding: 6px 0; }
.team-right__label, .team-confirm { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--ink); }
.team-right__label input, .team-confirm input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.team-right__label span, .team-confirm span { padding-top: 1px; }
/* C9.1 : choix de suivi dans les formulaires existants, sans débordement mobile. */
.follow-up-preferences { min-width: 0; margin-block: 16px; overflow-wrap: anywhere; }
.relance-choice { min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.relance-choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.relance-choice input { flex: 0 0 auto; width: 20px; height: 20px; }
.follow-up-preferences :is(input,select) { max-width: 100%; min-height: 44px; box-sizing: border-box; }
.follow-up-preferences :is(input,select,button):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#send-dialog .dialog { max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; }
.controlled-mail-layout { display: block; }
.controlled-mail-settings, .controlled-mail-item { min-width: 0; overflow-wrap: anywhere; margin-block: 20px; }
.controlled-mail-settings details { margin-block: 14px; }
.controlled-mail-settings summary, .controlled-mail-view summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.controlled-mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #f6f5ef; padding: 16px; border-radius: 12px; }
.controlled-mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 12px; }
.controlled-mail-actions button, .controlled-mail-entry { min-height: 44px; white-space: normal; }
.controlled-mail-view .form-field, .controlled-mail-settings .form-field { min-width: 0; }
.controlled-mail-view :is(input,textarea,select), .controlled-mail-settings :is(input,textarea,select) { max-width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.controlled-mail-confirm { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.controlled-mail-confirm::backdrop { background: #0a1f1d88; }
.controlled-mail-view :focus-visible, .controlled-mail-settings :focus-visible, .controlled-mail-confirm :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* C9.4-5B2C : état d'un message à valider */
.mail-item-state { padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); border-left-width: 8px; background: var(--cream); margin-block: 8px 12px; }
.mail-item-state p { margin-block: 3px; overflow-wrap: break-word; }
.mail-item-state__label { font-weight: 820; }
.mail-item-state[data-tone="ok"] { border-color: #2f7d5b; }
.mail-item-state[data-tone="warning"] { border-color: var(--orange); }
.mail-item-state[data-tone="error"] { border-color: var(--red); }
.mail-item-state[data-tone="progress"] { border-color: var(--blue); }
.mail-recette { margin-block: 12px; }
/* C9.4-4 : connexion de la messagerie (simulation) */
.mail-connection { margin-block: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; min-width: 0; }
.mail-connection h3 { margin: 0 0 8px; }
.mail-connection__banner { padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold); }
.mail-connection__status { padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); border-left-width: 8px; background: var(--cream); }
.mail-connection__status[data-tone="ok"] { border-color: #2f7d5b; }
.mail-connection__status[data-tone="warning"] { border-color: var(--orange); }
.mail-connection__status[data-tone="error"] { border-color: var(--red); }
.mail-connection__status[data-tone="progress"] { border-color: var(--blue); }
.mail-connection__badge { margin: 0 0 4px; font-weight: 820; font-size: 1.1rem; }
.mail-connection__status p { margin-block: 4px; overflow-wrap: break-word; }
.mail-connection__error { color: var(--red); font-weight: 700; min-height: 1.2em; }
.mail-connection__hint { font-size: .92rem; color: var(--muted); }
.mail-connection[aria-busy="true"] { cursor: progress; }
.mail-connection :focus-visible, .mail-connection-dialog :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mail-connection__accounts { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.mail-connection__account { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 6px; cursor: pointer; }
.mail-connection__account input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; }
.mail-connection button[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 600px) {
 .controlled-mail-actions { flex-direction: column; }
 .controlled-mail-entry { width: 100%; }
 .controlled-mail-item { padding: 16px; }
}
.team-right__help { margin: 0 0 0 36px; font-size: .9rem; }
.team-right__pack { display: block; margin: 2px 0 0 36px; color: #6b4a00; font-size: .88rem; font-weight: 700; }
.team-confirm { margin-top: 14px; padding: 12px 14px; border: 1px solid #6f8f85; border-radius: 12px; background: #f2f7f4; }
.team-add { margin-top: 8px; }
.team-add-form { margin-top: 16px; padding: 16px; border: 1px solid #b9cfc7; border-radius: 16px; background: #f7fbf9; }
.team-add-form .form-field { margin: 10px 0 0; }
.team-recap ul, .team-list-plain { margin: 4px 0 8px; padding-left: 22px; }
.team-transfer { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.team-card :is(button, input, summary):focus-visible, .team-card [tabindex="-1"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.team-card h2:focus, .team-card h3:focus, .team-card h4:focus, .team-card strong:focus, .team-card p[tabindex]:focus { outline: 3px solid var(--ink); outline-offset: 4px; }
.team-card .small-button, .team-card .text-button { min-height: 44px; font-size: .95rem; }
.team-card .big-button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) {
  .team-member__actions .small-button, .team-actions .big-button { flex: 1 1 100%; }
  .team-actions { justify-content: stretch; flex-direction: column-reverse; align-items: stretch; }
  .team-add .big-button { width: 100%; }
}
.controlled-mail-dashboard { --tone: var(--green); margin-bottom: 34px; }
.summary-grid:has(+ .controlled-mail-dashboard) { margin-bottom: 16px; }
.controlled-mail-dashboard.has-pending { border: 2px solid var(--green); }
.follow-up-date-warning { border-left: 4px solid var(--amber); padding: 1rem; }

/* Coordonnées modifiables depuis la fiche. */
.case-field--contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: end; }
.case-field--contact dt, .case-field--contact dd { grid-column: 1; }
.case-field--contact .text-button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; text-align: right; }
.send-email-hint, .standalone-email-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: .92rem; }
@media (max-width: 560px) { .case-field--contact { grid-template-columns: 1fr; } .case-field--contact .text-button { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; } }
.case-field--contact { grid-column: 1 / -1; }
.case-field--contact dd { overflow-wrap: anywhere; }

/* Statistiques mises en valeur : taux de devis acceptés. */
.statistics-alias { margin: 2px 0 0 !important; font-weight: 700; color: #f5d978 !important; }
.statistics-fraction { margin: 4px 0 !important; font-size: 1.25rem; }
.statistics-fraction b { font-size: 1.6rem; }
.statistics-period-line { margin: 4px 0 !important; font-size: .92rem; }
.statistics-honest { margin: 10px 0 0 !important; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); font-size: .88rem; }
