:root {
  --ink: #2b3a42;
  --ink-soft: #3b4951;
  --ink-lighter: #52616a;
  --accent: #cf5b35;
  --accent-dark: #b94a28;
  --accent-soft: #f4e0d5;
  --cream: #f9f9f7;
  --paper: #ffffff;
  --line: #e8e2db;
  --muted: #96a29f;
  --green: #4e795a;
  --green-soft: #e2ece0;
  --yellow: #b98624;
  --yellow-soft: #fff1cf;
  --red: #c84e2f;
  --red-soft: #f8dfd5;
  --blue: #49758a;
  --blue-soft: #e3eef3;
  --shadow: 0 18px 46px rgba(43, 58, 66, .10);
  --shadow-soft: 0 8px 28px rgba(43, 58, 66, .08);
  --radius: 24px;
  --radius-sm: 16px;
  --sidebar: 270px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.hidden { display: none !important; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin-bottom: .35rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
h3 { margin-bottom: .3rem; }
.eyebrow { margin-bottom: .55rem; color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #c3ccca; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--sidebar); flex-direction: column; padding: 28px 20px 22px; background: var(--ink); color: white; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: var(--accent); font-size: 1.5rem; box-shadow: 0 9px 24px rgba(207,91,53,.28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #aeb9b7; font-size: .72rem; }
.side-nav { display: grid; gap: 7px; }
.nav-link { display: flex; min-height: 50px; align-items: center; gap: 13px; border-radius: 15px; padding: 11px 13px; color: #c6cfcd; transition: .2s ease; }
.nav-link > span { display: grid; width: 29px; height: 29px; place-items: center; font-size: 1.05rem; }
.nav-link strong { font-size: .92rem; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.09); color: white; transform: translateX(2px); }
.nav-link.active { box-shadow: inset 3px 0 var(--accent); }
.sidebar-user { display: grid; grid-template-columns: 40px minmax(0,1fr) 26px; align-items: center; gap: 10px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 20px 5px 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .85rem; }
.sidebar-user small { color: #98a7a4; font-size: .68rem; }
.avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; }
.avatar.large { width: 54px; height: 54px; border-radius: 18px; font-size: 1.25rem; }
.icon-link { color: #a9b4b2; font-size: 1.1rem; }
.main-wrap { min-height: 100vh; margin-left: var(--sidebar); }
.main-content { width: min(1420px, 100%); margin: 0 auto; padding: 34px 42px 110px; }
.mobile-topbar, .bottom-nav, .mobile-drawer { display: none; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; padding: 10px 18px; cursor: pointer; font-weight: 850; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 9px 22px rgba(207,91,53,.20); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: white; }
.btn-light { background: white; color: var(--ink); }
.btn-outline { border-color: var(--line); background: white; color: var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-lighter); }
.btn-danger-outline { border-color: #e8b7a8; background: white; color: var(--red); }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding: 7px 12px; border-radius: 11px; font-size: .82rem; }
.inline-form { display: inline-flex; }

label { display: grid; gap: 7px; color: var(--ink); font-size: .84rem; font-weight: 800; }
label small { color: var(--muted); font-weight: 650; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; outline: none; background: #fff; color: var(--ink); padding: 12px 13px; transition: border-color .16s, box-shadow .16s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(207,91,53,.10); }
input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200,78,47,.12); }
textarea { resize: vertical; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.flash { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; padding: 13px 16px; background: white; box-shadow: var(--shadow-soft); font-weight: 750; }
.flash.success { border-color: #bcd7bd; background: var(--green-soft); color: #315d3d; }
.flash.error { border-color: #e5b6a7; background: var(--red-soft); color: #8e321c; }

.hero-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 30px; padding: 34px 38px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.hero-panel h1 { margin-bottom: 8px; }
.hero-panel p:not(.eyebrow) { margin-bottom: 0; color: #b9c4c2; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 22px 0; }
.kpi-card { display: flex; min-height: 126px; align-items: center; gap: 16px; border: 1px solid rgba(43,58,66,.05); border-radius: 23px; padding: 22px; background: white; box-shadow: var(--shadow-soft); }
.kpi-card .kpi-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #eef0ee; font-size: 1.35rem; }
.kpi-card strong, .kpi-card small { display: block; }
.kpi-card strong { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1; letter-spacing: -.035em; }
.kpi-card small { margin-top: 10px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.kpi-card.accent strong { color: var(--accent); }
.alert-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; border-left: 5px solid var(--accent); border-radius: 18px; padding: 17px 20px; background: var(--accent-soft); color: #875444; }
.alert-panel > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 8px; }
.alert-panel p { grid-column: 2; margin: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.85fr); gap: 22px; }
.panel { border: 1px solid rgba(43,58,66,.05); border-radius: var(--radius); padding: 24px; background: white; box-shadow: var(--shadow-soft); }
.panel.no-pad { overflow: hidden; padding: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.panel-head > a { color: var(--accent); font-size: .84rem; font-weight: 850; }
.quote-list { display: grid; }
.quote-row { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #eeece8; padding: 15px 3px; }
.quote-row:first-child { border-top: 0; }
.quote-row-main, .quote-row-right { display: flex; align-items: center; gap: 13px; }
.quote-row-main strong, .quote-row-main small { display: block; }
.quote-row-main small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.quote-row-right { justify-content: flex-end; }
.status-dot { width: 8px; height: 42px; border-radius: 10px; background: var(--muted); }
.status-dot.followup { background: var(--accent); }
.status-dot.waiting { background: #d8a029; }
.status-dot.won { background: var(--green); }
.status-dot.lost { background: #aeb8b5; }
.status-dot.sent { background: var(--blue); }
.status-dot.draft { background: #98a4a1; }
.status-badge { display: inline-flex; width: fit-content; align-items: center; justify-content: center; border-radius: 999px; padding: 7px 11px; background: #eef0ef; color: #667370; font-size: .69rem; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-badge.large { padding: 10px 16px; font-size: .78rem; }
.status-badge.followup { background: var(--accent-soft); color: var(--accent); }
.status-badge.waiting { background: var(--yellow-soft); color: #9b6e16; }
.status-badge.won { background: var(--green-soft); color: var(--green); }
.status-badge.lost { background: #eff0ef; color: #9aa4a2; }
.status-badge.sent { background: var(--blue-soft); color: var(--blue); }
.status-badge.draft { background: #edf0ef; color: #6d7775; }
.quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quick-action { display: grid; min-height: 126px; align-content: center; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--cream); }
.quick-action > span { font-size: 1.35rem; }
.quick-action strong { margin-top: 5px; }
.quick-action small { color: var(--muted); }
.tip-card { display: flex; gap: 12px; margin-top: 14px; border-radius: 18px; padding: 16px; background: var(--accent-soft); }
.tip-card p { margin: 3px 0 0; color: #91604f; font-size: .82rem; }
.empty-state { display: grid; min-height: 250px; place-items: center; align-content: center; padding: 30px; text-align: center; }
.empty-state > span { font-size: 2rem; }
.empty-state h3 { margin: 8px 0 2px; }
.empty-state p { color: var(--muted); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.page-head p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.search-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 17px; padding: 7px 8px 7px 15px; background: white; box-shadow: var(--shadow-soft); }
.search-bar input { border: 0; padding: 10px 3px; box-shadow: none; }
.filter-scroll { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 9px 18px; background: white; color: #82908d; font-weight: 850; }
.filter-chip span { opacity: .65; }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #eeece8; padding: 16px 20px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.row-arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--cream); font-weight: 900; }
.overdue-text { color: var(--accent) !important; font-weight: 800; }
.mobile-cards { display: none; }

.followup-hero { margin: -34px -42px 24px; padding: 42px; background: var(--ink); color: white; }
.hero-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.hero-title > span { font-size: 2.3rem; }
.hero-title p:not(.eyebrow) { color: #b8c3c1; }
.followup-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 27px; }
.followup-kpis > div { display: grid; min-height: 112px; place-items: center; align-content: center; border-radius: 20px; background: var(--ink-soft); }
.followup-kpis strong { font-size: clamp(1.7rem,3vw,2.25rem); line-height: 1; }
.followup-kpis small { margin-top: 13px; color: #b9c3c1; font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.followup-kpis .accent strong { color: var(--accent); }
.late-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; border-left: 5px solid var(--accent); border-radius: 0 18px 18px 0; padding: 17px 20px; background: var(--accent-soft); color: #8b5847; }
.followup-list { display: grid; gap: 14px; }
.followup-card { position: relative; display: flex; min-height: 126px; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border: 1px solid #eeeae5; border-radius: 24px; padding: 23px 28px 23px 34px; background: white; box-shadow: var(--shadow-soft); }
.followup-card::before { position: absolute; inset: 0 auto 0 0; width: 7px; content: ''; background: #aebbb8; }
.followup-card.followup::before { background: var(--accent); }
.followup-card.waiting::before { background: #dea92f; }
.followup-card.won::before { background: var(--green); }
.followup-card.lost::before { background: #aebbb8; }
.followup-main, .followup-right { display: grid; gap: 8px; }
.followup-main strong, .followup-right > strong { font-size: 1.35rem; }
.followup-main span { color: #8b9b97; }
.followup-main em { color: var(--accent); font-style: normal; font-weight: 850; }
.followup-right { justify-items: end; }
.floating-add { position: fixed; right: 42px; bottom: 42px; z-index: 30; display: grid; width: 76px; height: 76px; place-items: center; border-radius: 50%; background: var(--accent); color: white; box-shadow: 0 18px 36px rgba(207,91,53,.34); font-size: 2.4rem; font-weight: 400; }

.client-form-panel { margin-bottom: 20px; }
.client-form-panel form { display: grid; gap: 16px; }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.client-card { display: grid; gap: 15px; border: 1px solid rgba(43,58,66,.05); border-radius: 23px; padding: 22px; background: white; box-shadow: var(--shadow-soft); }
.client-card-head { display: flex; align-items: center; gap: 13px; }
.client-card-head h3 { margin: 0; }
.client-card-head small { color: var(--muted); }
.client-card > p { min-height: 24px; margin: 0; color: var(--muted); }
.client-links { display: grid; gap: 7px; font-size: .83rem; }
.client-links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; border-radius: 14px; padding: 12px; background: var(--cream); }
.client-stats span { color: var(--muted); font-size: .72rem; }
.client-stats strong { display: block; color: var(--ink); font-size: 1rem; }

/* Wizard */
.wizard-page { max-width: 1080px; margin: 0 auto; }
.wizard-header { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 18px; margin-bottom: 20px; }
.round-back { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; box-shadow: var(--shadow-soft); font-size: 1.8rem; font-weight: 350; }
.wizard-header h1 { font-size: clamp(1.8rem,3.5vw,2.7rem); }
.wizard-header p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.wizard-time { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 15px; background: var(--accent-soft); color: var(--accent); font-size: .84rem; }
.progress-wrap { margin-bottom: 22px; border-radius: 18px; padding: 15px 18px; background: white; box-shadow: var(--shadow-soft); }
.progress-bar { height: 8px; overflow: hidden; border-radius: 10px; background: #ecece8; }
.progress-bar span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.progress-text { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .76rem; }
.progress-text strong { color: var(--ink); }
.wizard-step { display: none; min-height: 520px; border: 1px solid rgba(43,58,66,.05); border-radius: 30px; padding: 30px; background: white; box-shadow: var(--shadow); animation: stepIn .22s ease both; }
.wizard-step.active { display: block; }
@keyframes stepIn { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
.step-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 27px; }
.step-emoji { display: grid; width: 60px; height: 60px; flex: 0 0 auto; place-items: center; border-radius: 20px; background: var(--ink); color: white; font-size: 1.7rem; }
.step-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.question-title { margin: 25px 0 12px; font-size: .92rem; letter-spacing: .01em; }
.choice-grid { display: grid; gap: 13px; }
.choice-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.choice-tile { position: relative; display: grid; min-height: 145px; cursor: pointer; place-items: center; align-content: center; border: 2px solid var(--line); border-radius: 22px; padding: 18px 12px; background: var(--cream); text-align: center; transition: .18s ease; }
.choice-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-tile:hover { border-color: #cfc7be; transform: translateY(-2px); }
.choice-tile.selected { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 12px 24px rgba(43,58,66,.16); }
.choice-tile.selected::after { position: absolute; top: 10px; right: 10px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--accent); content: '✓'; color: white; font-size: .75rem; font-weight: 900; }
.choice-icon { margin-bottom: 7px; font-size: 2rem; }
.choice-tile strong, .choice-tile small { display: block; }
.choice-tile strong { font-size: .95rem; letter-spacing: .02em; }
.choice-tile small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.choice-tile.selected small { color: #b9c4c2; }
.small-tiles .choice-tile { min-height: 118px; }
.form-card { display: grid; gap: 16px; margin-top: 18px; border-radius: 21px; padding: 22px; background: var(--cream); }
.form-card.compact { margin-top: 20px; }
.surface-mode { display: flex; gap: 9px; margin-bottom: 16px; }
.mini-choice { position: relative; display: inline-flex; cursor: pointer; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 10px 15px; background: white; }
.mini-choice input { position: absolute; opacity: 0; }
.mini-choice.selected { border-color: var(--ink); background: var(--ink); color: white; }
.zones-list { display: grid; gap: 16px; margin-bottom: 14px; }
.zone-card { border: 2px solid #ebe6e0; border-radius: 22px; padding: 19px; background: var(--cream); }
.zone-head { display: grid; grid-template-columns: 40px minmax(0,1fr) 36px; align-items: end; gap: 12px; margin-bottom: 14px; }
.zone-number { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--accent); color: white; font-weight: 900; }
.zone-remove, .line-remove { display: grid; width: 34px; height: 34px; cursor: pointer; place-items: center; border: 0; border-radius: 11px; background: #eeeae5; color: #8f9694; font-size: 1.25rem; }
.zone-dimensions, .zone-direct { display: grid; gap: 13px; }
.toggle-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0; padding-bottom: 2px; scrollbar-width: none; }
.toggle-row.wrap { flex-wrap: wrap; overflow: visible; }
.toggle-chip { position: relative; display: inline-flex; min-height: 43px; cursor: pointer; flex: 0 0 auto; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 8px 13px; background: white; font-size: .75rem; letter-spacing: .02em; }
.toggle-chip input { position: absolute; opacity: 0; }
.toggle-chip.selected { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.mini-fields { margin-top: 5px; }
.zone-result { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; border-radius: 14px; padding: 11px 14px; background: var(--ink); color: white; }
.zone-result span { color: #b9c4c2; font-size: .75rem; }
.split-questions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.color-dot { display: block; width: 34px; height: 34px; margin-bottom: 9px; border: 2px solid #d9d5cf; border-radius: 50%; }
.color-dot.white { background: white; }
.color-dot.light { background: #e8d8bd; }
.color-dot.dark { background: #31424b; }
.legal-hint, .demo-rate-warning { display: flex; gap: 12px; margin-top: 16px; border-radius: 17px; padding: 16px; background: var(--yellow-soft); color: #896117; }
.legal-hint p, .demo-rate-warning p { margin: 0; font-size: .82rem; }
.summary-top { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.summary-top > div { display: grid; min-height: 100px; place-items: center; align-content: center; border-radius: 19px; background: var(--ink); color: white; }
.summary-top span { color: #b9c3c1; font-size: .72rem; }
.summary-top strong { margin-top: 7px; font-size: 1.3rem; }
.lines-card, .totals-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.lines-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lines-head h3 { margin: 0; }
.quote-lines { display: grid; gap: 11px; }
.line-row { display: grid; grid-template-columns: minmax(220px,1.2fr) minmax(460px,1.8fr); align-items: end; gap: 12px; border-top: 1px solid #eeeae5; padding-top: 11px; }
.line-row:first-child { border-top: 0; }
.line-label input { font-weight: 800; }
.line-numbers { display: grid; grid-template-columns: 75px 95px 115px minmax(90px,1fr) 34px; align-items: end; gap: 8px; }
.line-numbers label { font-size: .65rem; }
.line-numbers input { padding: 9px; }
.line-numbers > strong { padding: 10px 3px; text-align: right; font-size: .86rem; }
.totals-card { display: grid; gap: 10px; width: min(490px,100%); margin: 16px 0 0 auto; background: var(--cream); }
.totals-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.totals-card span { color: var(--muted); }
.totals-card .grand-total { margin-top: 4px; border-radius: 14px; padding: 13px 15px; background: var(--ink); color: white; }
.totals-card .grand-total span { color: #c4cecc; }
.totals-card .grand-total strong { color: var(--accent); font-size: 1.45rem; }
.wizard-actions { position: sticky; z-index: 20; bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 18px; border: 1px solid var(--line); border-radius: 19px; padding: 12px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(43,58,66,.16); backdrop-filter: blur(10px); }
.autosave { justify-self: center; color: var(--muted); font-size: .75rem; font-weight: 750; }
.autosave span { color: var(--green); }
.toast-holder { position: fixed; z-index: 200; top: 20px; right: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; border-radius: 14px; padding: 12px 16px; background: var(--ink); color: white; box-shadow: var(--shadow); font-weight: 800; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* Settings */
.settings-form { display: grid; gap: 20px; }
.settings-section { padding: 0; overflow: hidden; }
.settings-section-head { display: flex; gap: 14px; border-bottom: 1px solid var(--line); padding: 21px 24px; }
.settings-section-head > span { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--ink); font-size: 1.25rem; }
.settings-section-head h2 { margin: 0; font-size: 1.25rem; }
.settings-section-head p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.settings-content { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 24px; padding: 24px; }
.settings-content.one-column { grid-template-columns: 1fr; }
.logo-uploader { display: grid; justify-items: center; align-content: start; gap: 12px; border-radius: 19px; padding: 18px; background: var(--cream); }
.logo-uploader > img, .logo-uploader > span { display: grid; width: 110px; height: 110px; object-fit: contain; place-items: center; border-radius: 18px; background: white; font-size: 2rem; }
.logo-uploader small { color: var(--muted); text-align: center; }
.settings-fields { display: grid; gap: 15px; }
.rates-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rate-field > div { display: grid; grid-template-columns: minmax(0,1fr) 45px; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; background: white; }
.rate-field input { border: 0; box-shadow: none; }
.rate-field em { color: var(--muted); font-style: normal; text-align: center; }
.rate-warning { margin: 18px 24px 0; border-left: 4px solid #d5a333; border-radius: 0 14px 14px 0; padding: 12px 15px; background: var(--yellow-soft); color: #835d18; font-weight: 750; }
.settings-save-mobile { display: none; }

/* Quote document */
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.status-panel { margin-bottom: 18px; border-radius: 22px; padding: 20px; background: white; box-shadow: var(--shadow); }
.status-choice-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.status-choice { position: relative; display: grid; min-height: 92px; cursor: pointer; place-items: center; align-content: center; border: 2px solid var(--line); border-radius: 16px; background: var(--cream); text-align: center; }
.status-choice input { position: absolute; opacity: 0; }
.status-choice.selected { border-color: var(--ink); background: var(--ink); color: white; }
.status-choice span { font-size: 1.2rem; }
.status-choice strong { font-size: .72rem; }
.status-buttons { display: flex; align-items: end; justify-content: flex-end; gap: 8px; }
.quote-document { border: 1px solid #dedbd6; border-radius: 3px; padding: 42px; background: white; box-shadow: var(--shadow); color: #25343c; }
.document-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; border-bottom: 4px solid var(--ink); padding-bottom: 23px; }
.company-block { display: flex; align-items: center; gap: 15px; }
.document-logo, .document-logo-placeholder { display: grid; width: 78px; height: 78px; object-fit: contain; place-items: center; border-radius: 16px; background: var(--cream); font-size: 2rem; }
.company-block h2 { margin: 0 0 5px; font-size: 1.5rem; }
.company-block p { margin: 0; color: #6f7b79; font-size: .78rem; }
.document-title { display: grid; justify-items: end; text-align: right; }
.document-title > span { color: var(--accent); font-size: 1.55rem; font-weight: 950; letter-spacing: .12em; }
.document-title > strong { margin: 2px 0 8px; font-size: 1.05rem; }
.document-title small { color: #788482; }
.document-parties { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin: 26px 0; }
.document-parties > div { min-height: 120px; border-radius: 13px; padding: 16px; background: #f5f6f4; }
.doc-label { display: block; margin-bottom: 8px; color: var(--accent); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.document-parties strong { display: block; margin-bottom: 5px; }
.document-parties p { margin: 0; color: #697674; font-size: .76rem; }
.document-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.document-summary > div { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e2e4e1; border-radius: 11px; padding: 10px 13px; }
.document-summary span { color: #7a8583; font-size: .72rem; }
.document-summary strong { font-size: .83rem; }
.document-lines { margin-bottom: 25px; font-size: .78rem; }
.document-lines th, .document-lines td { padding: 11px 10px; }
.document-lines th { background: var(--ink); color: white; }
.document-lines th:first-child { border-radius: 9px 0 0 0; }
.document-lines th:last-child { border-radius: 0 9px 0 0; }
.document-lines th:not(:first-child), .document-lines td:not(:first-child) { text-align: right; }
.document-bottom { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.8fr); gap: 26px; }
.document-notes { color: #6d7876; font-size: .72rem; }
.document-notes p { margin-bottom: 9px; }
.document-totals { display: grid; gap: 8px; }
.document-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.document-totals span { color: #7b8784; font-size: .75rem; }
.document-grand-total { margin-top: 4px; border-radius: 10px; padding: 13px; background: var(--ink); color: white; }
.document-grand-total span { color: #c0cac8; }
.document-grand-total strong { color: #f07950; font-size: 1.3rem; }
.signatures { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 35px; }
.signatures > div { border: 1px solid #dfe1df; border-radius: 12px; padding: 13px; color: #788482; font-size: .7rem; }
.signature-space { height: 75px; }
.document-footer { margin-top: 25px; border-top: 1px solid #dfe1df; padding-top: 12px; color: #89928f; font-size: .65rem; text-align: center; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; border: 1px dashed #dfb2a5; border-radius: 18px; padding: 17px 20px; background: #fff9f7; }
.danger-zone p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }

/* Login / install */
.login-body, .install-body { background: var(--cream); }
.login-grid { display: grid; min-height: 100vh; grid-template-columns: minmax(380px,.9fr) minmax(480px,1.1fr); }
.login-visual { display: flex; flex-direction: column; justify-content: space-between; padding: 42px; background: var(--ink); color: white; }
.login-brand { display: flex; align-items: center; gap: 11px; font-size: 1.05rem; }
.login-brand > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: var(--accent); }
.login-copy { max-width: 540px; margin: auto 0; }
.login-copy h1 { font-size: clamp(3rem,6vw,5rem); }
.login-copy > p:not(.eyebrow) { max-width: 480px; color: #b9c4c1; font-size: 1.08rem; }
.login-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.login-pills span { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 13px; background: rgba(255,255,255,.06); font-size: .78rem; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { display: grid; width: min(460px,100%); gap: 17px; border-radius: 28px; padding: 35px; background: white; box-shadow: var(--shadow); }
.login-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 21px; background: var(--accent-soft); font-size: 1.8rem; }
.login-card h2 { margin: 0; font-size: 2rem; }
.login-card > p { margin-bottom: 3px; }
.install-body { display: grid; min-height: 100vh; place-items: center; padding: 30px 15px; }
.install-card { width: min(700px,100%); border-radius: 30px; padding: 36px; background: white; box-shadow: var(--shadow); }
.install-logo { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 22px; background: var(--ink); font-size: 1.9rem; }
.install-form { display: grid; gap: 15px; }
.install-form h2 { margin: 16px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 1.15rem; }
.check-line { display: flex; align-items: center; gap: 9px; }
.check-line input { width: auto; }
.success-panel { margin: 20px 0; border-radius: 17px; padding: 18px; background: var(--green-soft); color: #345c3e; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rates-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .line-row { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: 76px; }
  .sidebar { display: none; }
  .main-wrap { margin-left: 0; }
  .mobile-topbar { position: sticky; top: 0; z-index: 35; display: flex; height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8e4df; padding: env(safe-area-inset-top) 18px 0; background: rgba(249,249,247,.94); backdrop-filter: blur(12px); }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; }
  .mobile-brand span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--accent); }
  .menu-button { border: 0; border-radius: 50%; padding: 9px 12px; background: white; font-weight: 900; }
  .main-content { padding: 22px 18px 98px; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 60; display: grid; height: calc(72px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5,1fr); align-items: start; border-top: 1px solid #e0ded9; padding: 8px 8px env(safe-area-inset-bottom); background: rgba(255,255,255,.97); backdrop-filter: blur(13px); }
  .bottom-link { display: grid; justify-items: center; gap: 2px; color: #8d9996; }
  .bottom-link span { font-size: 1.1rem; }
  .bottom-link small { font-size: .61rem; font-weight: 800; }
  .bottom-link.active { color: var(--accent); }
  .bottom-create { position: relative; top: -28px; display: grid; width: 64px; height: 64px; justify-self: center; place-items: center; border: 6px solid var(--cream); border-radius: 50%; background: var(--accent); color: white; box-shadow: 0 10px 25px rgba(207,91,53,.30); font-size: 2rem; }
  .mobile-drawer { position: fixed; inset: 0; z-index: 100; display: block; visibility: hidden; background: rgba(29,38,43,.45); opacity: 0; transition: .2s; }
  .mobile-drawer.open { visibility: visible; opacity: 1; }
  .mobile-drawer nav { position: absolute; inset: 0 0 0 auto; display: grid; width: min(330px,85vw); align-content: start; gap: 6px; padding: 75px 20px 20px; background: var(--ink); transform: translateX(100%); transition: .23s; }
  .mobile-drawer.open nav { transform: none; }
  .drawer-close { position: absolute; z-index: 2; top: 17px; right: 18px; border: 0; background: transparent; color: white; font-size: 2rem; }
  .content-grid { grid-template-columns: 1fr; }
  .hero-panel { align-items: flex-start; flex-direction: column; padding: 27px; }
  .followup-hero { margin: -22px -18px 22px; padding: 32px 18px 28px; }
  .floating-add { display: none; }
  .wizard-header { grid-template-columns: 46px minmax(0,1fr); }
  .round-back { width: 46px; height: 46px; }
  .wizard-time { display: none; }
  .choice-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wizard-step { padding: 24px 20px; }
  .settings-content { grid-template-columns: 1fr; }
  .quote-document { padding: 28px; }
  .status-choice-grid { grid-template-columns: repeat(3,1fr); }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  h1 { font-size: 2.05rem; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head > .btn, .page-head > button { width: 100%; }
  .hero-panel { border-radius: 24px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .kpi-card { min-height: 112px; align-items: flex-start; flex-direction: column; gap: 9px; padding: 17px; }
  .kpi-card .kpi-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .kpi-card strong { font-size: 1.4rem; }
  .alert-panel { align-items: stretch; flex-direction: column; }
  .quote-row { align-items: flex-start; flex-direction: column; }
  .quote-row-right { width: 100%; justify-content: space-between; padding-left: 21px; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .quick-action { min-height: 105px; }
  .filter-chip { min-height: 44px; padding: 7px 14px; }
  .search-bar { grid-template-columns: auto minmax(0,1fr); }
  .search-bar .btn { grid-column: 1 / -1; width: 100%; }
  .desktop-table { display: none; }
  .mobile-cards { display: grid; gap: 11px; padding: 0; background: var(--cream); }
  .mobile-quote-card { position: relative; display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 14px; overflow: hidden; border: 1px solid #ece8e2; border-radius: 20px; padding: 18px 18px 18px 24px; background: white; box-shadow: var(--shadow-soft); }
  .mobile-quote-card::before { position:absolute; inset:0 auto 0 0; width:6px; content:''; background:#aeb8b5; }
  .mobile-quote-card.followup::before { background:var(--accent); }.mobile-quote-card.waiting::before{background:#d9a42f}.mobile-quote-card.won::before{background:var(--green)}.mobile-quote-card.sent::before{background:var(--blue)}
  .mobile-quote-card > div { display:grid; gap:5px; }
  .mobile-quote-card small,.mobile-quote-card span:not(.status-badge){color:var(--muted);font-size:.72rem}.mobile-quote-card strong{font-size:1.05rem}.mobile-quote-card .right{justify-items:end}
  .followup-kpis { gap: 10px; }
  .followup-kpis > div { min-height: 100px; border-radius: 16px; }
  .followup-kpis strong { font-size: 1.45rem; }
  .followup-kpis small { font-size: .62rem; }
  .followup-card { min-height: 136px; align-items: flex-start; padding: 20px 17px 20px 25px; }
  .followup-main strong, .followup-right > strong { font-size: 1.06rem; }
  .followup-main span, .followup-main em { font-size: .76rem; }
  .client-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wizard-step { min-height: 0; border-radius: 24px; padding: 21px 16px; }
  .step-heading { align-items: flex-start; }
  .step-emoji { width: 50px; height: 50px; border-radius: 16px; font-size: 1.35rem; }
  .step-heading h2 { font-size: 1.55rem; }
  .choice-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .choice-grid.two { gap: 9px; }
  .choice-tile { min-height: 126px; border-radius: 18px; padding: 14px 7px; }
  .choice-grid.three .choice-tile { min-height: 119px; }
  .choice-tile strong { font-size: .76rem; }
  .choice-tile small { font-size: .62rem; }
  .choice-icon { font-size: 1.65rem; }
  .small-tiles .choice-tile { min-height: 101px; }
  .form-card { padding: 17px; }
  .zone-card { padding: 14px; }
  .zone-head { grid-template-columns: 35px minmax(0,1fr) 32px; }
  .zone-number { width:35px;height:35px; }
  .split-questions { grid-template-columns: 1fr; }
  .summary-top { gap: 7px; }
  .summary-top > div { min-height: 86px; padding: 8px; text-align: center; }
  .summary-top strong { font-size: 1rem; }
  .line-numbers { grid-template-columns: repeat(3,1fr); }
  .line-numbers > strong { text-align: left; }
  .line-remove { justify-self: end; }
  .wizard-actions { bottom: 82px; grid-template-columns: 1fr 1.4fr; }
  .wizard-actions .autosave { display: none; }
  .wizard-actions .btn { width: 100%; padding: 9px 11px; }
  .rates-grid { grid-template-columns: 1fr; }
  .settings-save-mobile { display: inline-flex; }
  .quote-page-head { align-items: flex-start; }
  .quote-actions { display: grid; grid-template-columns: 1fr; }
  .quote-actions > * { width: 100%; }
  .quote-document { margin: 0 -18px; border-left: 0; border-right: 0; padding: 22px 17px; box-shadow: none; }
  .document-header { align-items: flex-start; flex-direction: column; }
  .document-title { justify-items: start; text-align: left; }
  .document-parties { grid-template-columns: 1fr; }
  .document-summary { grid-template-columns: 1fr; }
  .document-lines { display: block; overflow-x: auto; white-space: nowrap; }
  .document-bottom { grid-template-columns: 1fr; }
  .signatures { grid-template-columns: 1fr; }
  .status-choice-grid { grid-template-columns: repeat(2,1fr); }
  .status-panel .grid-2 { grid-template-columns: 1fr; }
  .status-buttons { justify-content: stretch; }
  .status-buttons .btn { flex:1; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .login-grid { grid-template-columns: 1fr; }
  .login-visual { min-height: 40vh; padding: 28px 22px; }
  .login-copy h1 { font-size: 2.8rem; }
  .login-panel { padding: 20px 15px 35px; }
  .login-card { padding: 25px 20px; }
  .install-card { padding: 25px 18px; }
}

@media print {
  @page { size: A4; margin: 11mm; }
  body { padding: 0 !important; background: white; font-size: 10pt; }
  .sidebar, .mobile-topbar, .bottom-nav, .no-print, .page-head, .flash { display: none !important; }
  .main-wrap { margin: 0 !important; }
  .main-content { width: 100%; max-width: none; padding: 0 !important; }
  .quote-document { border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .document-header { padding-bottom: 12px; }
  .document-logo, .document-logo-placeholder { width: 58px; height: 58px; }
  .document-parties { margin: 15px 0; gap: 8px; }
  .document-parties > div { min-height: 88px; padding: 10px; }
  .document-summary { margin-bottom: 12px; }
  .document-lines { margin-bottom: 15px; font-size: 7.5pt; }
  .document-lines th, .document-lines td { padding: 6px; }
  .document-bottom { gap: 15px; }
  .signatures { margin-top: 18px; }
  .signature-space { height: 45px; }
  .document-footer { margin-top: 12px; }
  tr, .document-parties > div, .signatures > div { break-inside: avoid; }
}

/* Utilisateurs */
.user-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.users-tip { margin: 0 0 20px; }
.users-table { margin-top: 0; }
.users-table td:last-child { white-space: nowrap; }
.user-actions-cell { display: flex; justify-content: flex-end; gap: 8px; }
.role-badge, .account-state { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: 7px 11px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.role-badge.admin { background: var(--ink); color: white; }
.role-badge.user { background: var(--blue-soft); color: var(--blue); }
.account-state.active { background: var(--green-soft); color: var(--green); }
.account-state.inactive { background: #eff0ef; color: #8e9996; }
.user-mobile-cards { display: none; }
.user-card { display: grid; gap: 15px; border: 1px solid rgba(43,58,66,.05); border-radius: 22px; padding: 19px; background: white; box-shadow: var(--shadow-soft); }
.user-card.disabled { opacity: .72; }
.user-card-head { display: flex; min-width: 0; align-items: center; gap: 12px; }
.user-card-head > div:last-child { min-width: 0; }
.user-card-head h3 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.user-card-head small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.user-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.user-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.user-card-actions form, .user-card-actions button, .user-card-actions a { width: 100%; }
.small-value { font-size: .76rem !important; }
.user-edit-layout { display: grid; gap: 18px; }
.user-form-panel { overflow: hidden; padding: 0; }
.user-section-head { margin: 0; }
.user-form-actions { position: sticky; z-index: 20; bottom: 18px; display: flex; justify-content: flex-end; gap: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); backdrop-filter: blur(10px); }

@media (max-width: 920px) {
  .user-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .user-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .user-kpis .kpi-card:last-child { grid-column: 1 / -1; }
  .users-table { display: none; }
  .user-mobile-cards { display: grid; gap: 12px; }
  .user-form-actions { bottom: 82px; display: grid; grid-template-columns: 1fr; }
  .user-form-actions .btn { width: 100%; }
}

/* Régime de TVA */
.vat-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vat-mode-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 17px; border: 2px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; transition: .18s ease; }
.vat-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.vat-mode-card > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--paper); font-size: 1.35rem; }
.vat-mode-card div { display: grid; gap: 4px; }
.vat-mode-card strong { font-size: .9rem; }
.vat-mode-card small { color: var(--muted); }
.vat-mode-card.selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 10px 24px rgba(202, 84, 45, .10); }
.vat-mode-card.selected > span { background: #fff; }
.vat-mode-fields { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.vat-mode-mention { display: flex; gap: 14px; padding: 18px; border: 1px solid #cbdcc9; border-radius: 18px; background: var(--green-soft); }
.vat-mode-mention > span { font-size: 1.3rem; }
.vat-mode-mention div { display: grid; gap: 6px; }
.vat-mode-mention p, .vat-mode-mention small { margin: 0; color: var(--muted); }
.vat-mode-mention code { display: block; width: fit-content; max-width: 100%; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.72); color: var(--ink); white-space: normal; font-family: inherit; font-weight: 700; }
.vat-franchise-banner { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #cbdcc9; border-radius: 17px; background: var(--green-soft); }
.vat-franchise-banner span { font-size: 1.25rem; }
.vat-franchise-banner div { display: grid; gap: 2px; }
.vat-franchise-banner small { color: var(--muted); }

@media (max-width: 680px) {
  .vat-mode-grid { grid-template-columns: 1fr; }
  .vat-mode-card { min-height: 82px; }
}
.vat-legal-mention { padding: 10px 12px; border-left: 4px solid var(--green); border-radius: 8px; background: var(--green-soft); }
