/* HKS-IVR — design system (espace client + administration) */
:root {
  --bg: #f3f5fb;
  --bg-glow: radial-gradient(1100px 520px at 85% -10%, rgb(99 102 241 / .10), transparent 60%),
             radial-gradient(900px 480px at -10% 10%, rgb(14 165 233 / .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #eceff7;
  --fg: #0f1324;
  --fg-2: #3f4659;
  --muted: #6b7286;
  --line: #e4e7f0;
  --line-2: #d6dae6;
  --accent: #5046e5;
  --accent-2: #0ea5e9;
  --accent-soft: #eeedff;
  --accent-fg: #ffffff;
  --grad: linear-gradient(135deg, #5b4cf0 0%, #3b82f6 55%, #06b6d4 100%);
  --ok: #05875f;  --ok-soft: #e3f7ee;
  --warn: #b25e09; --warn-soft: #fff3e0;
  --err: #c0262d;  --err-soft: #fdeceb;
  --side: #0b0f22;
  --side-2: #12172e;
  --side-fg: #a9afcb;
  --side-line: rgb(255 255 255 / .07);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 19 36 / .05);
  --shadow: 0 1px 2px rgb(15 19 36 / .04), 0 10px 30px -14px rgb(15 19 36 / .16);
  --shadow-lg: 0 24px 60px -18px rgb(15 19 36 / .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bnav-h: 66px;
}
:root {  /* thème sombre permanent */
  color-scheme: dark;
    --bg: #080a14;
    --bg-glow: radial-gradient(1100px 520px at 85% -10%, rgb(99 102 241 / .16), transparent 60%),
               radial-gradient(900px 480px at -10% 10%, rgb(14 165 233 / .10), transparent 60%);
    --surface: #10142a; --surface-2: #151a33; --surface-3: #1b2140; --fg: #eef0fa; --fg-2: #c4c9dc;
    --muted: #8e95b0; --line: #222949; --line-2: #2d3559; --accent: #8b84ff; --accent-2: #38bdf8;
    --accent-soft: #1f1f4a; --accent-fg: #0a0c18; --ok: #34d399; --ok-soft: #0c2b22; --warn: #fbbf24;
    --warn-soft: #2d230d; --err: #f87171; --err-soft: #321418; --side: #070914; --side-2: #0d1124;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -14px rgb(0 0 0 / .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }  /* pas de zoom au double-toucher */
* { -webkit-tap-highlight-color: transparent; }                       /* pas de flash au toucher */
button, .btn, .nav button, .bnav button, .target-opt, .switch, .check, .quick button, .copy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); background: var(--bg-glow), var(--bg); background-attachment: fixed;
       color: var(--fg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
[hidden] { display: none !important; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; }
::selection { background: rgb(80 70 229 / .22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- marque ---------- */
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; color: inherit; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
              background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgb(80 70 229 / .7); }
.brand-mark svg { width: 20px; height: 20px; }
.brand b { font-weight: 800; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-top: -2px; }

/* ---------- connexion ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 52px 56px; display: flex; flex-direction: column;
             justify-content: space-between; background: #0b0f22; isolation: isolate; }
.auth-hero::before { content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(600px 400px at 20% 20%, rgb(91 76 240 / .75), transparent 60%),
              radial-gradient(520px 380px at 85% 75%, rgb(6 182 212 / .55), transparent 60%),
              radial-gradient(400px 300px at 60% 30%, rgb(59 130 246 / .45), transparent 60%);
  filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.auth-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.06); } }
.auth-hero h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.035em; max-width: 15ch; font-weight: 800; }
.auth-hero p { color: #d7dbf7; max-width: 44ch; margin: 0; font-size: 1.06rem; }
.features { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; max-width: 440px; }
.features li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
               background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(6px); }
.features i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / .12); flex: none; }
.features i svg { width: 18px; height: 18px; }
.features b { display: block; font-size: .95rem; } .features span { color: #c9cdf0; font-size: .85rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 36px; margin-top: 30px; }
.wave span { width: 4px; border-radius: 4px; background: rgb(255 255 255 / .55); animation: wv 1.4s ease-in-out infinite; }
@keyframes wv { 0%,100% { height: 20%; } 50% { height: 100%; } }
.auth-main { display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden;
  background: radial-gradient(520px 380px at 80% 10%, rgb(91 76 240 / .16), transparent 70%),
              radial-gradient(460px 360px at 10% 95%, rgb(6 182 212 / .10), transparent 70%), var(--bg); }
.auth-card { background: rgb(16 20 42 / .72); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px;
             box-shadow: 0 30px 70px -30px rgb(0 0 0 / .8); backdrop-filter: blur(10px); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .brand { margin-bottom: 34px; display: none; }
.auth-card h2 { font-size: 1.75rem; margin: 0 0 6px; letter-spacing: -.025em; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; }
.auth-foot { margin-top: 26px; color: var(--muted); font-size: .82rem; text-align: center; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-main { align-items: start; padding-top: 12vh; }
  .auth-card .brand { display: flex; }
}

/* ---------- structure ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { background: linear-gradient(180deg, var(--side-2), var(--side)); color: var(--side-fg); padding: 22px 14px 16px;
        display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; height: 100dvh;
        border-right: 1px solid var(--side-line); overflow: hidden; min-width: 0; }
.side .brand { color: #fff; padding: 2px 10px; }
.nav-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6e7596; padding: 0 12px 6px; }
.nav { display: grid; gap: 3px; }
.nav button { all: unset; position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
              border-radius: 11px; cursor: pointer; color: var(--side-fg); font-weight: 550; font-size: .94rem; transition: background .15s, color .15s; }
.nav button:hover { background: rgb(255 255 255 / .05); color: #fff; }
.nav button[aria-current="true"] { background: linear-gradient(90deg, rgb(91 76 240 / .32), rgb(91 76 240 / .08)); color: #fff; }
.nav button[aria-current="true"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
                                           border-radius: 0 3px 3px 0; background: var(--grad); }
.nav button:focus-visible { outline: 2px solid #8b84ff; }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgb(255 255 255 / .1); color: #fff; }
.side-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.credit-card { position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px; color: #fff; background: var(--grad); }
.credit-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.credit-card small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 600; }
.credit-card b { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.credit-card.low { background: linear-gradient(135deg, #e11d48, #f97316); }
.credit-card.neutral { background: rgb(255 255 255 / .06); border: 1px solid var(--side-line); }
.credit-card.neutral::after { display: none; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--side-line); }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.side-user .who { min-width: 0; flex: 1; line-height: 1.3; }
.side-user .who b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: .78rem; }
.icon-btn { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; color: inherit; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgb(127 127 127 / .14); }
.icon-btn svg { width: 18px; height: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 30px 36px 0; flex-wrap: wrap; }
.crumb { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.topbar h1 { font-size: 1.7rem; margin: 0; letter-spacing: -.03em; font-weight: 800; }
.topbar .sub { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
.content { padding: 24px 36px 72px; max-width: 1280px; width: 100%; }
.panel { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* barre mobile haute + navigation basse */
.mtop, .bnav { display: none; }
@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 14px;
          padding-top: max(10px, env(safe-area-inset-top)); background: rgb(11 15 34 / .92); color: #fff;
          backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--side-line); }
  .mtop .brand { font-size: 1.02rem; } .mtop .brand-mark { width: 32px; height: 32px; }
  .mtop .grow { flex: 1; }
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-weight: 700;
          font-size: .82rem; background: var(--grad); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .chip.low { background: linear-gradient(135deg, #e11d48, #f97316); }
  .chip.neutral { background: rgb(255 255 255 / .1); }
  .bnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
          height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
          background: rgb(12 15 32 / .94); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); }
  .bnav button { all: unset; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 12px; cursor: pointer;
                 color: var(--muted); font-size: .68rem; font-weight: 650; -webkit-tap-highlight-color: transparent; }
  .bnav button svg { width: 22px; height: 22px; padding: 3px 14px; box-sizing: content-box; border-radius: 99px; transition: background .15s; }
  .bnav button[aria-current="true"] { color: var(--accent); }
  .bnav button[aria-current="true"] svg { background: var(--accent-soft); }
  .main { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .topbar { padding: 20px 16px 0; } .topbar h1 { font-size: 1.4rem; }
  .content { padding: 16px 16px 36px; }
}

/* ---------- cartes & grilles ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card h2 { font-size: 1.06rem; margin: 0; letter-spacing: -.015em; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card h2 .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.card h2 .ico svg { width: 16px; height: 16px; }
.card .desc { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1080px) { .grid-2 { grid-template-columns: 1fr; } }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
       padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--fg-2); flex: none; }
.kpi-ico svg { width: 17px; height: 17px; }
.kpi-ico.ok { background: var(--ok-soft); color: var(--ok); } .kpi-ico.live { background: var(--accent-soft); color: var(--accent); }
.kpi-ico.warn { background: var(--warn-soft); color: var(--warn); } .kpi-ico.err { background: var(--err-soft); color: var(--err); }
.kpi b { display: block; font-size: 1.85rem; letter-spacing: -.035em; margin-top: 6px; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.15; }
.kpi small { color: var(--muted); font-size: .82rem; }
.kpi.hero { background: var(--grad); border: 0; color: #fff; box-shadow: 0 16px 34px -16px rgb(80 70 229 / .7); }
.kpi.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgb(255 255 255 / .12); }
.kpi.hero .kpi-top, .kpi.hero small { color: rgb(255 255 255 / .85); }
.kpi.hero .kpi-ico { background: rgb(255 255 255 / .18); color: #fff; }
.kpi.hero.low { background: linear-gradient(135deg, #e11d48, #f97316); box-shadow: 0 16px 34px -16px rgb(225 29 72 / .6); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px 14px; } .kpi b { font-size: 1.4rem; } .kpi-ico { display: none; }
  .kpi.hero { grid-column: 1 / -1; } .kpi.hero b { font-size: 1.9rem; }
  .kpi.hero ~ .kpi:last-child:nth-child(even) { grid-column: 1 / -1; }  /* pas de tuile orpheline */
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); } .dot.warn { background: var(--warn); }
.dot.live { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgb(80 70 229 / .45); } 50% { box-shadow: 0 0 0 5px rgb(80 70 229 / 0); } }

/* ---------- formulaires ---------- */
label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--fg-2); }
.hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238e95b0' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
textarea.numbers { font-family: var(--mono); font-size: .9rem; min-height: 150px; }
input::placeholder, textarea::placeholder { color: #5f678a; }
input:hover, select:hover, textarea:hover { border-color: #3d4670; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(80 70 229 / .14); }
input[aria-invalid="true"] { border-color: var(--err); }
@media (max-width: 900px) { input, select, textarea { font-size: 16px; } }  /* évite le zoom iOS */
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; color: var(--fg-2); cursor: pointer; margin: 0; font-size: .9rem; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); flex: none; padding: 0; }
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-weight: 550; color: var(--fg); margin: 0; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); border: 0; padding: 0;
                position: relative; cursor: pointer; transition: background .2s; flex: none; box-shadow: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
                       background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

.btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 650; font-size: .93rem; cursor: pointer; color: #fff;
       background: var(--grad); background-size: 140% 140%; box-shadow: 0 8px 20px -10px rgb(80 70 229 / .75);
       transition: transform .12s, box-shadow .15s, background-position .3s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { background-position: 100% 0; box-shadow: 0 10px 24px -10px rgb(80 70 229 / .9); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--err); border: 1px solid var(--err-soft); box-shadow: none; }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { padding: 7px 12px; font-size: .83rem; border-radius: 9px; }
.btn.block { width: 100%; padding: 13px 18px; }
@media (max-width: 560px) { .btn.mobile-block { width: 100%; } }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 180px; }
.stack { display: grid; gap: 14px; }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .77rem;
         font-weight: 650; background: var(--surface-3); color: var(--fg-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.live { background: var(--accent-soft); color: var(--accent); }

/* ---------- tableaux (cartes empilées sur mobile) ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 22px; } th:last-child, td:last-child { padding-right: 22px; }
th { color: var(--muted); font-weight: 650; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
td.actions { text-align: right; }
td.empty { text-align: center; color: var(--muted); padding: 40px 20px; white-space: normal; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: .8rem; }
@media (max-width: 720px) {
  .table-wrap { margin: 0 -22px -22px; border-top: 0; overflow: visible; }
  table.rt thead { display: none; }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt tr { padding: 12px 18px; border-top: 1px solid var(--line); }
  table.rt td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0 !important; border: 0; white-space: normal; text-align: right; }
  table.rt td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; }
  table.rt td[data-label=""]::before, table.rt td.actions::before { display: none; }
  table.rt td.actions { justify-content: flex-end; }
  table.rt td.primary { font-weight: 700; font-size: 1rem; padding-bottom: 6px !important; }
  table.rt td.primary::before { display: none; }
  table.rt td.empty { justify-content: center; text-align: center; }
  table.rt td.empty::before { display: none; }
}

.alert { padding: 12px 14px; border-radius: 12px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--accent-soft); color: var(--accent); }
.field-err { color: var(--err); font-size: .8rem; margin-top: 5px; }

.toast-zone { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 100; }
@media (max-width: 900px) { .toast-zone { left: 12px; right: 12px; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 10px); } }
.toast { display: flex; align-items: center; gap: 10px; background: #1b2140; border: 1px solid var(--line-2); color: #fff; padding: 12px 16px; border-radius: 14px;
         box-shadow: var(--shadow-lg); font-weight: 550; max-width: 380px; animation: up .22s ease-out; font-size: .92rem; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
.toast.err::before { background: #f87171; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(500px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); }
dialog[open] { animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
dialog::backdrop { background: rgb(8 10 22 / .55); backdrop-filter: blur(3px); }
.dlg-head { padding: 22px 24px 0; } .dlg-head h3 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
.dlg-body { padding: 18px 24px; display: grid; gap: 14px; }
.dlg-foot { padding: 14px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: sheet .25s ease-out; }
  .dlg-foot { flex-direction: column-reverse; } .dlg-foot .btn { width: 100%; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

.secret { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px dashed var(--line-2);
          border-radius: var(--radius-sm); padding: 10px 12px; font-family: var(--mono); font-size: .88rem; word-break: break-all; }
.copy { all: unset; cursor: pointer; color: var(--accent); font-size: .78rem; font-weight: 700; font-family: var(--font); margin-left: auto; padding: 2px 6px; border-radius: 6px; flex: none; }
.copy:hover { background: var(--accent-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

.progress { height: 7px; background: rgb(127 127 127 / .16); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .4s; }

/* lancer des appels */
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.counter { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.counter b { color: var(--fg); font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--fg-2); font-size: .92rem; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
                    background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; }
.keycap { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px;
          border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); font-weight: 800; font-size: .82rem; color: var(--fg); }

/* messages vocaux */
.prompt { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.prompt:first-child { border-top: 0; padding-top: 0; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.prompt-head b { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.voice-list { display: grid; gap: 8px; }
.voice { cursor: pointer; transition: border-color .15s, background .15s; }
.voice:hover { border-color: var(--accent); }
.voice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.voice-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 16px; border-radius: 10px; background: var(--accent-soft); }
.voice-now svg { width: 18px; height: 18px; color: var(--accent); }
.voice-now span { flex: 1; min-width: 0; }
.voice-pick { display: grid; gap: 2px; padding: 12px; margin-bottom: 16px; border-radius: 10px; background: var(--surface-3); }
.voice-pick span { font-size: .85rem; color: var(--muted); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider-head output { font-size: .85rem; color: var(--accent); font-weight: 600; }
.slider-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.voice-settings input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 2px; }
@media (min-width: 1081px) { .voice-settings { position: sticky; top: 16px; } }
.voice-group { margin-top: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.prompt-tag.premium { background: var(--accent-soft); color: var(--accent); }
.voice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.voice.on { border-color: var(--accent); background: var(--accent-soft); }
.voice-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-3); color: inherit; cursor: pointer; font-size: .8rem; }
.voice-play.playing { background: var(--accent); color: var(--accent-fg); }
.voice-txt { flex: 1; min-width: 0; display: grid; }
.voice-txt span { font-size: .8rem; color: var(--muted); }
.prompt-tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
audio { height: 38px; max-width: 100%; }
@media (max-width: 560px) { audio { width: 100%; } }
.file-btn input { display: none; }

/* accès SIP */
.access-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 18px; }
.access { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 14px; }
.access.on::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad); }
.access.off { background: var(--surface-2); box-shadow: none; }
.access-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.access-top b { font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.access-top .num { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.access.on .access-top .num { background: var(--grad); color: #fff; }
.target-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.target-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; margin: 0; font-weight: 600; color: var(--fg); transition: border-color .15s, background .15s; }
.target-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.target-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.target-opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; padding: 0; flex: none; }
.target-opt small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

/* historique de crédit */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: center; }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.tl-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.tl-ico svg { width: 18px; height: 18px; }
.tl-ico.plus { background: var(--ok-soft); color: var(--ok); } .tl-ico.minus { background: var(--err-soft); color: var(--err); }
.timeline b { font-size: .92rem; }
.amount { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.amount.plus { color: var(--ok); } .amount.minus { color: var(--err); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { all: unset; text-align: center; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .15s; }
.quick button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (max-width: 420px) { .quick { grid-template-columns: repeat(2, 1fr); } }

.empty-state { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 10px; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; opacity: .45; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; } .search input { padding-left: 38px; min-width: 240px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
@media (max-width: 560px) { .search, .search input, .toolbar select { width: 100%; min-width: 0; } .toolbar { width: 100%; } }

/* =====================================================================
   ANIMATIONS HKS-IVR
   ===================================================================== */

/* ---------- logo égaliseur ---------- */
.eq { display: flex; align-items: center; justify-content: center; gap: 2.5px; width: 100%; height: 100%; }
.eq i { display: block; width: 3px; border-radius: 3px; background: #fff; height: 30%; transform-origin: center;
        animation: eq 1.25s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.9s; } .eq i:nth-child(2) { animation-delay: -.45s; }
.eq i:nth-child(3) { animation-delay: -.15s; } .eq i:nth-child(4) { animation-delay: -.6s; }
.eq i:nth-child(5) { animation-delay: -1.05s; }
@keyframes eq { 0%, 100% { height: 26%; } 35% { height: 78%; } 65% { height: 44%; } }
.brand-mark { position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: -3px; border-radius: 13px; border: 1.5px solid rgb(139 132 255 / .55);
                     opacity: 0; animation: ring 3.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.brand em { background-size: 220% 100%; background-image: linear-gradient(110deg, #8b84ff 20%, #ffffff 40%, #38bdf8 55%, #8b84ff 80%);
            animation: shine 4.5s linear infinite; }
.auth-card .brand em, .brand.light em { background-image: linear-gradient(110deg, #5b4cf0 20%, #93c5fd 40%, #06b6d4 55%, #5b4cf0 80%); }
@keyframes shine { to { background-position: -220% 0; } }

/* ---------- écran d'ouverture ---------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #070a18; overflow: hidden;
          transition: opacity .55s ease, visibility .55s; }
.splash::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: conic-gradient(from 0deg, #5b4cf0, #3b82f6, #06b6d4, #8b5cf6, #5b4cf0); animation: spinbg 7s linear infinite; }
@keyframes spinbg { to { transform: rotate(360deg); } }
.splash.out { opacity: 0; visibility: hidden; }
.splash.out .splash-inner { transform: scale(1.08); }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 22px; transition: transform .55s ease; }
.splash-logo { position: relative; width: 104px; height: 104px; border-radius: 30px; background: var(--grad); display: grid; place-items: center;
               box-shadow: 0 30px 80px -20px rgb(91 76 240 / .9), inset 0 1px 0 rgb(255 255 255 / .3);
               animation: popin .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.splash-logo .eq { gap: 6px; } .splash-logo .eq i { width: 8px; border-radius: 8px; }
.splash-logo::before, .splash-logo::after { content: ""; position: absolute; inset: -14px; border-radius: 40px; border: 2px solid rgb(255 255 255 / .35);
  animation: ring 2s ease-out infinite; }
.splash-logo::after { animation-delay: 1s; }
@keyframes popin { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.splash-name { display: flex; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.splash-name span { display: inline-block; opacity: 0; transform: translateY(14px); animation: letter .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.splash-name span.acc { background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes letter { to { opacity: 1; transform: none; } }
.splash-tag { color: #aab0d6; font-size: .95rem; font-weight: 500; opacity: 0; animation: letter .6s .75s ease forwards; letter-spacing: .02em; }
.splash-bar { width: 140px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .12); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #8b84ff, #67e8f9);
                animation: load 1.1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- fond animé ---------- */
.shell { position: relative; isolation: isolate; }
.shell::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(28vmax 28vmax at 70% 20%, rgb(99 102 241 / .14), transparent 70%),
              radial-gradient(24vmax 24vmax at 20% 80%, rgb(6 182 212 / .11), transparent 70%);
  animation: float 22s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate3d(-4vmax, 3vmax, 0) rotate(8deg); } }

/* ---------- transitions entre onglets / connexion ---------- */
.panel.enter > *, .panel.enter .kpis > .kpi, .panel.enter .access-grid > *, .panel.enter .grid-2 > * > .card {
  animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.panel.enter > *:nth-child(2), .panel.enter .kpis > .kpi:nth-child(2), .panel.enter .access-grid > *:nth-child(2) { animation-delay: .06s; }
.panel.enter > *:nth-child(3), .panel.enter .kpis > .kpi:nth-child(3), .panel.enter .access-grid > *:nth-child(3) { animation-delay: .12s; }
.panel.enter > *:nth-child(4), .panel.enter .kpis > .kpi:nth-child(4), .panel.enter .access-grid > *:nth-child(4) { animation-delay: .18s; }
.panel.enter > *:nth-child(5), .panel.enter .kpis > .kpi:nth-child(5) { animation-delay: .24s; }
.panel.enter .grid-2 > *:nth-child(2) > .card { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.topbar h1 { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.auth.leaving .auth-card { animation: leave .45s ease forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-12px) scale(.97); } }
.shell.arriving { animation: arrive .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: scale(1.015); } }
.auth-card { animation: rise .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- micro-interactions ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.ghost):not(.danger)::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transition: none; }
.btn:not(.ghost):not(.danger):hover::after { transform: translateX(120%); transition: transform .7s ease; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: scale(0);
          animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.kpi.hero { background-size: 180% 180%; animation: grad 9s ease-in-out infinite; }
.credit-card, .chip:not(.neutral) { background-size: 200% 200%; animation: grad 9s ease-in-out infinite; }
@keyframes grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.kpi b.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.08); color: var(--accent); } }
.kpi.hero b.bump { animation: bumpw .5s ease; }
@keyframes bumpw { 40% { transform: scale(1.08); } }
tr.flash td { animation: flash 2.2s ease; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.nav button svg, .bnav button svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.nav button:hover svg { transform: scale(1.12) rotate(-4deg); }
.bnav button[aria-current="true"] svg { transform: translateY(-2px); }
.access, .card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.access.on:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.toast { animation: toastin .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes toastin { from { transform: translateY(16px) scale(.95); opacity: 0; } }
.count:not([hidden]) { animation: popin .4s cubic-bezier(.2, .9, .3, 1.4); }

/* « Réduire les animations » (souvent activé par l'économie d'énergie Android / Windows) :
   le logo, l'écran d'ouverture et les effets HKS-IVR restent animés ; seul le fond qui dérive est figé. */
@media (prefers-reduced-motion: reduce) {
  .shell::before, .auth-hero::before { animation: none; }
}

/* Notifications Telegram (espace client) */
.tg-step { display: flex; gap: 12px; align-items: flex-start; }
.tg-step.off { opacity: .45; pointer-events: none; }
.tg-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.tg-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.tg-body .row { margin: 0; }
.tg-ok { font-size: .85rem; font-weight: 600; color: var(--ok, var(--accent)); }

/* Touches DTMF */
.key-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.key-chip { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; font: 700 .8rem/1 "JetBrains Mono", ui-monospace, monospace; background: var(--surface-3); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.key-chip.k1 { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.key-chip.k9 { background: var(--err-soft, #fde8e8); color: var(--err, #c0392b); border-color: transparent; }
.dtmf-feed { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.dtmf-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.dtmf-row .key-chip { min-width: 32px; height: 32px; font-size: 1rem; }
.dtmf-txt { flex: 1; min-width: 0; display: grid; }
.dtmf-txt span { font-size: .8rem; color: var(--muted); }
.dtmf-row time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dtmf-row.flash { animation: dtmf-in 1.6s ease-out; }
@keyframes dtmf-in { 0% { background: var(--accent-soft); transform: translateY(-4px); } 100% { background: transparent; transform: none; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 50% { opacity: .3; } }
.live-dot.off { background: var(--muted); animation: none; }
@media (prefers-reduced-motion: reduce) { .dtmf-row.flash, .live-dot { animation: none; } }

/* Page de connexion : contact pour obtenir un compte */
.tg-contact { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2, transparent); color: var(--fg); text-decoration: none; transition: border-color .15s, background .15s; }
.tg-contact:hover, .tg-contact:focus-visible { border-color: #229ed9; background: var(--accent-soft); }
.tg-contact-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #229ed9; color: #fff; }
.tg-contact-ico svg { width: 18px; height: 18px; margin-left: -2px; }
.tg-contact > span:last-child { display: grid; font-size: .9rem; }
.tg-contact > span:last-child > span { color: var(--muted); font-size: .85rem; }

.hero-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }

/* Admin : voix enregistrées */
.pack-list { display: grid; gap: 10px; }
.pack { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.pack-head { display: flex; align-items: center; gap: 12px; }
.pk-texts summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
#packForm input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 2px; }

.gen-quota { font-size: .85rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-3); color: var(--fg-2); }
.gen-quota.warn { background: var(--warn-soft); color: var(--warn); }
.btn.icon-only { padding-inline: 10px; }
