/* Généré par outils/assembler.mjs depuis public/styles.css : ne pas modifier ici. */
.sms a { color: var(--info); text-decoration: none; }
.sms button { font-family: inherit; }
.sms .page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sms .page-title { font-size: 22px; font-weight: 700; padding-left: 12px; position: relative; }
.sms .page-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 3px; background: var(--accent); }
.sms .page-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; padding-left: 12px; }
.sms .muted { color: var(--text-faint); }
.sms .dim { color: var(--text-dim); }
.sms .small { font-size: 12px; }
.sms .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sms .row.between { justify-content: space-between; }
.sms .stack { display: flex; flex-direction: column; gap: 10px; }
.sms .grid { display: grid; gap: 14px; }
.sms .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sms .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sms .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sms .mt { margin-top: 14px; }
.sms .mb { margin-bottom: 14px; }
.sms .mt-s { margin-top: 8px; }
.sms .card { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; }
.sms .card.tight { padding: 14px 16px; }
.sms .card-title { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sms .card-title .link { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.sms .stat-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.sms .stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.sms .stat-value small { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.sms .stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.7px; margin-top: 5px; }
.sms .stat-delta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.sms .chip { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--bg-input); color: var(--text-dim); white-space: nowrap; letter-spacing: 0.3px; display: inline-block; }
.sms .chip.vert { background: rgba(76, 175, 80, 0.16); color: #6fce74; }
.sms .chip.orange { background: rgba(232, 114, 42, 0.16); color: #f0924d; }
.sms .chip.rouge { background: rgba(224, 82, 82, 0.16); color: #ee7a7a; }
.sms .chip.bleu { background: rgba(77, 163, 255, 0.16); color: #7db8f5; }
.sms .chip.jaune { background: rgba(245, 197, 66, 0.16); color: #f5c542; }
.sms .chip.violet { background: rgba(176, 124, 247, 0.16); color: #c09cf9; }
.sms .chip.gris { background: rgba(139, 151, 171, 0.12); color: var(--text-dim); }
.sms .score { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: rgba(232, 114, 42, 0.14); color: #f0924d; border: 1px solid rgba(232, 114, 42, 0.35); }
.sms .score.froid { background: var(--bg-input); color: var(--text-dim); border-color: var(--border); }
.sms .score.chaud { background: rgba(232, 114, 42, 0.26); color: #ffb16a; border-color: #e06a21; }
.sms .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, filter 0.15s; white-space: nowrap; }
.sms .btn:hover { background: var(--bg-card-hover); }
.sms .btn:disabled { opacity: 0.5; cursor: default; }
.sms .btn.primary { background: linear-gradient(135deg, #ef8434, #dd5f1c); border: none; color: #fff; }
.sms .btn.primary:hover { filter: brightness(1.1); background: linear-gradient(135deg, #ef8434, #dd5f1c); }
.sms .btn.danger { background: rgba(224, 82, 82, 0.12); border-color: rgba(224, 82, 82, 0.3); color: #ee7a7a; }
.sms .btn.ok { background: rgba(76, 175, 80, 0.14); border-color: rgba(76, 175, 80, 0.35); color: #6fce74; }
.sms .btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.sms .btn.ghost:hover { background: var(--bg-card); color: var(--text); }
.sms .btn.sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.sms .btn.block { width: 100%; }
.sms .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sms .btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.sms .switch { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border); cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.sms .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-dim); transition: transform 0.2s, background 0.2s; }
.sms .switch.on { background: var(--accent); border-color: var(--accent); }
.sms .switch.on::after { transform: translateX(20px); background: #fff; }
.sms .switch.big { width: 64px; height: 34px; border-radius: 17px; }
.sms .switch.big::after { width: 28px; height: 28px; }
.sms .switch.big.on::after { transform: translateX(30px); }
.sms .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.sms .switch-row:last-child { border-bottom: none; }
.sms .switch-row .lbl { font-size: 13.5px; }
.sms .switch-row .hint { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.sms .field { display: flex; flex-direction: column; gap: 6px; }
.sms .field-label { font-size: 11.5px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.sms .field-opt { font-weight: 400; color: var(--text-faint); font-size: 11px; margin-left: 4px; text-transform: none; }
.sms input[type="text"], .sms input[type="tel"], .sms input[type="search"], .sms input[type="number"], .sms input[type="password"], .sms input[type="date"], .sms input[type="time"], .sms input[type="datetime-local"], .sms input[type="url"], .sms textarea, .sms select { width: 100%; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 9px 11px; font-size: 13.5px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.sms input:focus, .sms textarea:focus, .sms select:focus { border-color: var(--accent); }
.sms textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.sms select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.sms .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sms .span2 { grid-column: span 2; }
.sms .check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 4px 0; }
.sms .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.sms .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sms .pill { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-dim); cursor: pointer; user-select: none; }
.sms .pill.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.sms .pill .n { opacity: 0.7; font-weight: 500; margin-left: 4px; }
.sms .search-box { display: flex; align-items: center; gap: 8px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 9px; padding: 0 12px; min-width: 200px; }
.sms .search-box input { border: none; background: transparent; padding: 8px 0; }
.sms .search-box svg { width: 15px; height: 15px; stroke: var(--text-faint); fill: none; stroke-width: 2; }
.sms .table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sms .table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--border-soft); font-weight: 700; }
.sms .table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.sms .table tr:last-child td { border-bottom: none; }
.sms .table tr.clic { cursor: pointer; }
.sms .table tr.clic:hover td { background: var(--bg-card-hover); }
.sms .table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sms .table-wrap { overflow-x: auto; }
.sms .bar { height: 6px; border-radius: 3px; background: var(--bg-input); overflow: hidden; min-width: 60px; }
.sms .bar > i { display: block; height: 100%; background: var(--c1); border-radius: 3px; }
.sms .bar.bleu > i { background: var(--c2); }
.sms .bar.vert > i { background: var(--c3); }
.sms .list { display: flex; flex-direction: column; }
.sms .item { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--border-soft); cursor: pointer; border-radius: 8px; }
.sms .item:hover { background: var(--bg-card-hover); }
.sms .item:last-child { border-bottom: none; }
.sms .item.actif { background: var(--accent-soft); }
.sms .avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.sms .item-main { flex: 1; min-width: 0; }
.sms .item-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.sms .item-sub { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sms .item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 11px; color: var(--text-faint); flex-shrink: 0; }
.sms .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.sms .inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.sms .inbox > *, .sms .grid > *, .sms .carte-wrap > * { min-width: 0; }
.sms .thread { display: flex; flex-direction: column; min-height: 60dvh; }
.sms .thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.sms .bubbles { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 0; overflow-y: auto; max-height: 56dvh; }
.sms .bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; position: relative; }
.sms .bubble.out { align-self: flex-end; background: linear-gradient(135deg, #ef8434, #dd5f1c); color: #fff; border-bottom-right-radius: 5px; }
.sms .bubble.in { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-soft); border-bottom-left-radius: 5px; }
.sms .bubble.sys { align-self: center; background: transparent; color: var(--text-faint); font-size: 11.5px; padding: 2px 8px; }
.sms .bubble-meta { font-size: 10.5px; opacity: 0.75; margin-top: 4px; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.sms .bubble.in .bubble-meta { justify-content: flex-start; color: var(--text-faint); opacity: 1; }
.sms .compose { border-top: 1px solid var(--border-soft); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sms .compose textarea { min-height: 64px; }
.sms .quick { display: flex; gap: 6px; flex-wrap: wrap; }
.sms .suggestion { background: rgba(108, 140, 245, 0.1); border: 1px solid rgba(108, 140, 245, 0.3); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.sms .suggestion b { color: #9db1ff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.sms .meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; font-size: 12.5px; }
.sms .meta-grid b { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1px; }
.sms .rings { display: flex; justify-content: space-around; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.sms .ring { position: relative; width: 104px; text-align: center; }
.sms .ring svg { width: 74px; height: 74px; }
.sms .ring-num { position: absolute; top: 26px; left: 0; right: 0; font-size: 14px; font-weight: 700; }
.sms .ring-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; line-height: 1.3; }
.sms .chart { width: 100%; height: auto; display: block; overflow: visible; }
.sms .chart text { fill: var(--text-dim); font-size: 10px; font-family: inherit; }
.sms .chart .axis { stroke: var(--border); stroke-width: 1; }
.sms .chart .grid { stroke: var(--border-soft); stroke-width: 1; stroke-dasharray: 2 3; }
.sms .chart rect.barre { rx: 3; }
.sms .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-dim); margin-top: 8px; }
.sms .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sms .tooltip { position: fixed; z-index: 950; pointer-events: none; background: #0c111c; border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); max-width: 260px; }
.sms .tooltip b { display: block; font-size: 13px; margin-bottom: 3px; }
.sms .tooltip .l { color: var(--text-dim); }
.sms .funnel { display: flex; flex-direction: column; gap: 6px; }
.sms .funnel-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.sms .funnel-row .bar { height: 18px; border-radius: 5px; }
.sms .funnel-row .bar > i { border-radius: 5px; }
.sms .funnel-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.sms .funnel-row .pct { color: var(--text-faint); font-size: 11px; }
.sms .carte-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.sms .carte-svg { width: 100%; height: auto; display: block; }
.sms .carte-svg path { stroke: #0c111c; stroke-width: 0.8; cursor: pointer; transition: filter 0.1s; }
.sms .carte-svg path:hover { filter: brightness(1.35); stroke: #fff; }
.sms .carte-svg path.sel { stroke: #fff; stroke-width: 1.6; }
.sms .carte-svg path.vide { fill: #182134; }
.sms .carte-legende { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); margin-top: 8px; }
.sms .carte-legende .ramp { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3a2a1f, #7a401f, #b4521e, #e06a21, #ffb16a); max-width: 220px; }
.sms .potentiel { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sms .potentiel-row { display: grid; grid-template-columns: 80px 1fr 36px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); }
.sms .feed { display: flex; flex-direction: column; }
.sms .feed-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; align-items: flex-start; }
.sms .feed-item:last-child { border-bottom: none; }
.sms .feed-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.sms .feed-time { font-size: 11px; color: var(--text-faint); margin-left: auto; white-space: nowrap; }
.sms .feed-detail { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.sms .paliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sms .palier { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.sms .palier.ok { border-color: rgba(232, 114, 42, 0.4); color: var(--text); background: rgba(232, 114, 42, 0.08); }
.sms .palier .ico { font-size: 16px; }
.sms .modal-backdrop { position: fixed; inset: 0; background: rgba(4, 8, 16, 0.72); display: flex; align-items: center; justify-content: center; z-index: 700; padding: 16px; }
.sms .modal { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; }
.sms .modal.large { max-width: 820px; }
.sms .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sms .modal-head h2 { font-size: 17px; }
.sms .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sms .close { background: transparent; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1; }
.sms .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 11px 18px; border-radius: 10px; font-size: 13px; z-index: 900; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); max-width: 90vw; }
.sms .toast.err { border-color: rgba(224, 82, 82, 0.5); }
.sms .lock { max-width: 340px; text-align: center; }
.sms .lock .ico { font-size: 34px; margin-bottom: 10px; }
.sms .lock input { text-align: center; font-size: 15px; letter-spacing: 2px; margin-top: 12px; }
.sms .lock .err { color: #ee7a7a; font-size: 12.5px; margin-top: 9px; }
.sms .empty { text-align: center; color: var(--text-faint); padding: 30px 10px; font-size: 13px; }
.sms .empty .big { font-size: 30px; margin-bottom: 8px; }
.sms .alerte { border-left: 3px solid var(--warn); background: rgba(245, 197, 66, 0.08); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.sms .alerte.rouge { border-color: var(--danger); background: rgba(224, 82, 82, 0.08); }
.sms .alerte.verte { border-color: var(--ok); background: rgba(76, 175, 80, 0.08); }
.sms .kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg-input); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }
.sms .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg-input); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); overflow-x: auto; white-space: pre; }
.sms .step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.sms .step:last-child { border-bottom: none; }
.sms .step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.sms .progress { height: 8px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.sms .progress > i { display: block; height: 100%; background: linear-gradient(90deg, #ef8434, #dd5f1c); }
.sms .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 14px; overflow-x: auto; }
.sms .tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-dim); padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sms .tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.sms .simbar { background: rgba(245, 197, 66, 0.1); border: 1px dashed rgba(245, 197, 66, 0.5); color: #f5c542; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
.sms .grid.c2 { grid-template-columns: 1fr; }
.sms .grid.c3, .sms .grid.c4 { grid-template-columns: 1fr 1fr; }
.sms .grid.c3 > .span-m, .sms .grid.c4 > .span-m { grid-column: span 2; }
.sms .form-grid { grid-template-columns: 1fr; }
.sms .span2 { grid-column: auto; }
.sms .inbox { grid-template-columns: 1fr; }
.sms .inbox.fil .inbox-liste { display: none; }
.sms .inbox:not(.fil) .inbox-fil { display: none; }
.sms .carte-wrap { grid-template-columns: 1fr; }
.sms .page-title { font-size: 19px; }
.sms .rings { gap: 4px; }
.sms .ring { width: 82px; }
.sms .ring svg { width: 64px; height: 64px; }
.sms .ring-num { top: 22px; font-size: 12.5px; }
.sms .bubble { max-width: 88%; }
.sms .bubbles { max-height: none; }
.sms .funnel-row { grid-template-columns: 110px 1fr 58px; }
}
@media (min-width: 861px) {
.sms .only-mobile { display: none !important; }
}
