/* Axalyon Standard — poste téléphonique (FRONT-POSTE).
   Écran « Poste de travail » (rendu dans #vue sur la route « poste »), sonnerie et barre d'appel mobile
   (#couche-appel), barre d'état du bas (#barre-etat).
   Les valeurs (couleurs, rayons, ombres, tailles) sont celles du design « Nexoria Mobile Console » :
   voir _design/CARTE-DESIGN.md §1 (fondations), §3 (patrons) et §5.2 (écran Poste).
   Toutes les classes sont préfixées « pst- » ; les classes communes restent dans css/app.css. */

/* ---------- Pictogrammes des boutons ---------- */
.pst-ic{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0}
.pst-lib{min-width:0}

/* ---------- Barre d'état ---------- */
.pst-be{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px;border-radius:999px;border:1px solid #272E39;background:#0F1319;color:#B0BAC5;font-size:12.5px;font-weight:700;white-space:nowrap;transition:border-color .15s,color .15s,background .15s}
.pst-be:hover{border-color:#3E4854;color:#EDF0F3;background:#1B2027}
.pst-be .ic{width:16px;height:16px}
.pst-be.ok{color:#4ADE80;border-color:rgba(34,197,94,.28)}
.pst-be-texte{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.pst-be-poste{color:#EDF0F3;font-weight:700}
.pst-presence{width:auto;min-height:32px;height:32px;padding:4px 30px 4px 12px;border-radius:999px;font-size:12.5px;font-weight:700}
.pst-presence[data-statut="dispo"]{color:#4ADE80;border-color:rgba(34,197,94,.28)}
.pst-presence[data-statut="pause"]{color:#FBBF24;border-color:rgba(245,158,11,.25)}
.pst-presence[data-statut="dnd"]{color:#F87171;border-color:rgba(239,68,68,.25)}
.pst-presence option{color:#EDF0F3;background:#14181F}
@media (max-width:1199.98px){#barre-etat .pst-be-texte{display:none}#barre-etat .pst-be{padding:0 9px}}
@media (max-width:899.98px){#barre-etat .pst-presence{display:none}}

/* ---------- Place du poste dans la coque ----------
   Le design n'a pas de colonne de droite : l'ancre #poste reste vide et ne prend aucune place
   (règle unique dans css/app.css, qui tient toute la coque). L'écran « Poste de travail » est rendu
   dans #vue, comme tous les autres écrans (design §5.2).
   Présence et réglages audio : seulement sous 900 px, où la barre du bas qui les porte est masquée. */
.pst-seulement-mobile{display:none}
@media (max-width:899.98px){.pst-seulement-mobile{display:flex}}

.pst-bandeau{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;max-width:1220px;margin:0 0 16px;padding:11px 13px;border-radius:12px;font-size:12.5px;border:1px solid transparent}
.pst-bandeau.onglet{background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.25);color:#FBBF24;font-weight:700}
.pst-bandeau.session{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.25);color:#EDF0F3}
.pst-bandeau.session strong{color:#F87171;display:block}
.pst-bandeau-texte{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}

.pst-lignes{display:flex;gap:6px;max-width:1220px;padding:0 0 16px;overflow-x:auto;scrollbar-width:none}
.pst-lignes::-webkit-scrollbar{display:none}
.pst-onglet-ligne{display:flex;align-items:center;gap:8px;min-width:0;max-width:220px;flex:1 1 0;padding:7px 10px;border-radius:10px;border:1px solid #272E39;background:#14181F;color:#B0BAC5;text-align:left}
.pst-onglet-ligne:hover{border-color:#3E4854;color:#EDF0F3}
.pst-onglet-ligne.actif{border-color:rgba(34,197,94,.28);background:rgba(34,197,94,.14);color:#EDF0F3}
.pst-onglet-textes{display:flex;flex-direction:column;min-width:0}
.pst-onglet-nom{font-weight:700;font-size:12.5px}
.pst-onglet-etat{font-size:11px;color:#8A95A3;white-space:nowrap}
.pst-led{width:9px;height:9px;border-radius:50%;flex:none;background:#3A424E}
.pst-led.en_cours{background:#22C55E;box-shadow:0 0 7px #22C55E}
.pst-led.attente{background:#F59E0B}
.pst-led.sonne,.pst-led.numerotation{background:#8D9BA8;animation:pst-clignote 1s ease-in-out infinite}
@keyframes pst-clignote{50%{opacity:.35}}

/* ---------- Écran « Poste de travail » (design §5.2) ---------- */
/* Le remplissage du design (26 / 30 / 30) remplace celui de .vue-contenu sur ce seul écran. */
.vue-contenu[data-vue="poste"]{padding:26px 30px 30px}
.pst-ecran{min-width:0}
.pst-ecran-entete{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px}
.pst-ecran-titres{min-width:0}
.pst-ecran-actions{align-items:center;gap:6px;flex:none}
.pst-surtitre{font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#79838F;margin-bottom:6px}
.pst-ecran-titre{font-family:"Space Grotesk",Manrope,sans-serif;font-size:25px;font-weight:600;letter-spacing:-.018em;margin:0}
.pst-colonnes{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;align-items:start;max-width:1220px}
.pst-col-clavier{min-width:0;max-width:372px;display:flex;flex-direction:column;gap:18px}
.pst-col-dossier{min-width:0;display:flex;flex-direction:column;gap:18px}
.pst-scene{min-width:0}
.pst-titre-bloc{display:block;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8A95A3;margin-bottom:10px}

/* Repli affiché tant que la ligne n'est pas démarrée. */
.pst-page-repli{min-width:0;max-width:58ch}

/* ---------- Clavier ---------- */
.pst-clavier{display:flex;flex-direction:column;gap:18px;min-width:0}
.pst-bloc-clavier{display:flex;flex-direction:column;align-items:center;gap:16px;padding:22px 20px;background:linear-gradient(180deg,#1A212C 0%,#10151C 56%);border:1px solid #272E39;border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 22px 44px -30px rgba(0,0,0,.9)}
.pst-saisie{position:relative;width:100%;padding:15px 44px 15px 15px;background:#0C1016;border:1px solid #232C40;border-radius:12px;box-shadow:inset 0 2px 7px rgba(0,0,0,.65)}
.pst-numero{width:100%;min-height:0;padding:0;border:0;border-radius:0;background:none;outline:none;box-shadow:none;font-family:"Space Grotesk",Manrope,sans-serif;font-size:20px;font-weight:500;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:#EDF0F3}
.pst-numero:focus{border:0;box-shadow:none}
.pst-numero::placeholder{font-family:Manrope,system-ui,sans-serif;font-size:14px;font-weight:500;letter-spacing:0;color:#8A95A3}
.pst-effacer{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:none;border:0;border-radius:10px;color:#8A95A3;cursor:pointer}
.pst-effacer:hover{background:#171B22;color:#EDF0F3}
.pst-effacer .ic{width:19px;height:19px}
.pst-suggestions{width:100%;display:flex;flex-direction:column;gap:2px;padding:4px;border-radius:12px;border:1px solid #272E39;background:#14181F}
.pst-suggestion{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border:0;border-radius:10px;background:none;color:#EDF0F3;text-align:left;cursor:pointer}
.pst-suggestion:hover,.pst-suggestion:focus-visible{background:#1B2027}
.pst-touches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%}
.pst-touche{display:flex;flex-direction:column;align-items:center;justify-content:center;height:52px;background:linear-gradient(180deg,#242B36,#1A202A);border:1px solid #2F3743;border-radius:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07);color:#EDF0F3;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;transition:border-color .1s,background .1s}
.pst-touche:hover{border-color:#3E4854}
.pst-touche:active{background:#151A22}
.pst-touche b{font-family:"Space Grotesk",Manrope,sans-serif;font-size:19px;font-weight:500;color:#EDF0F3}
.pst-touche span{height:11px;font-size:8.5px;font-weight:800;letter-spacing:.16em;color:#8A95A3;line-height:11px}
.pst-rangee-action{display:flex;align-items:center;gap:12px;width:100%}
.pst-carre{order:0;width:48px;height:52px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#242B36,#1A202A);border:1px solid #2F3743;border-radius:10px;color:#B0BAC5;cursor:pointer;position:relative;overflow:hidden}
.pst-carre:hover{border-color:#3E4854;color:#EDF0F3}
.pst-carre:disabled{opacity:.42;cursor:not-allowed}
.pst-carre .ic{width:21px;height:21px}
/* Le libellé reste dans le bouton pour les lecteurs d'écran ; le design ne montre que le pictogramme. */
.pst-carre .pst-lib{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pst-carre-gauche{order:-1}
.pst-appeler{order:0;flex:1;min-width:0;height:52px;display:inline-flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(180deg,#27D268,#1BA954);border:0;border-radius:10px;box-shadow:0 10px 24px -12px rgba(34,197,94,.65),inset 0 1px 0 rgba(255,255,255,.28);color:#06240F;font-family:"Space Grotesk",Manrope,sans-serif;font-weight:600;font-size:15px;cursor:pointer}
.pst-appeler:hover{background:linear-gradient(180deg,#2BDD70,#1FB55B)}
.pst-appeler:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.pst-appeler .ic{width:20px;height:20px}
.pst-appeler.chargement{opacity:.7;cursor:progress}

/* Derniers appels */
.pst-recents-liste{background:#14181F;border:1px solid #272E39;border-radius:14px;overflow:hidden;list-style:none;margin:0;padding:0}
.pst-recent{display:flex;align-items:center;gap:12px;padding:12px 15px;min-width:0}
.pst-recent + .pst-recent{border-top:1px solid #1D232C}
.pst-recent:hover{background:#1B2027}
.pst-recent-ic{flex:none;color:#8A95A3;display:inline-flex;line-height:0}
.pst-recent-ic .ic{width:16px;height:16px}
.pst-recent.manque .pst-recent-ic{color:#F87171}
.pst-recent-nom{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#EDF0F3;text-decoration:none}
.pst-recent-nom:hover{text-decoration:underline}
.pst-recent-heure{flex:none;color:#8A95A3;font-size:11.5px;font-family:"Space Grotesk",Manrope,sans-serif;font-variant-numeric:tabular-nums}
.pst-recent-rappel{width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#1B2027;border:1px solid #272E39;border-radius:8px;color:#4ADE80;cursor:pointer}
.pst-recent-rappel:hover{background:#222832}
.pst-recent-rappel .ic{width:15px;height:15px}

/* État de la ligne (note encadrée du design, variante « état ») */
.pst-pret{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#0F1319;border-radius:12px;color:#B0BAC5;font-size:12.5px}
.pst-pret-icone{width:30px;height:30px;border-radius:10px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:rgba(141,155,168,.14);color:#A9B7C5}
.pst-pret-icone .ic{width:15px;height:15px}
.pst-pret-titre{font-size:13px;font-weight:700;color:#EDF0F3}
.pst-pret-texte{color:#8A95A3;font-size:12px;margin-top:2px}
.pst-aide{color:#8A95A3;font-size:11.5px;margin:0;text-align:center;line-height:1.9}
@media (pointer:coarse){.pst-aide{display:none}}

/* ---------- Dossier du correspondant ---------- */
.pst-vide-dossier{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:64px 28px;background:#14181F;border:1px dashed #272E39;border-radius:16px;text-align:center}
.pst-vide-dossier-ic{width:52px;height:52px;display:inline-flex;align-items:center;justify-content:center;background:#0F1319;border-radius:16px;color:#6E7783}
.pst-vide-dossier-ic .ic{width:25px;height:25px}
.pst-vide-dossier-titre{font-size:15px;font-weight:700}
.pst-vide-dossier-texte{color:#B0BAC5;font-size:13px;max-width:36ch;line-height:1.6}

.pst-appel,.pst-bilan{display:flex;flex-direction:column;gap:18px;animation:apparait .2s ease both}
.pst-carte-appel{padding:20px}
.pst-etat{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#8A95A3;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pst-etat .ic{width:15px;height:15px}
.pst-etat-texte{min-width:0;overflow-wrap:anywhere}
.pst-appel[data-etat="en_cours"] .pst-etat{color:#4ADE80}
.pst-appel[data-etat="attente"] .pst-etat{color:#FBBF24}
.pst-enreg{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:#F87171;letter-spacing:.02em;text-transform:none;font-weight:700}
.pst-point-rec{width:8px;height:8px;border-radius:50%;background:#EF4444;animation:pst-clignote 1.4s ease-in-out infinite}
.pst-identite{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:14px;min-width:0}
.pst-identite .element-corps{flex:1 1 170px;min-width:0}
.pst-avatar{width:54px;height:54px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#283040;border-radius:50%;font-family:"Space Grotesk",Manrope,sans-serif;font-weight:600;font-size:17px;color:#EDF0F3}
.pst-avatar.rouge{background:rgba(239,68,68,.14);color:#F87171}
.pst-avatar .ic{width:24px;height:24px}
.pst-nom{font-family:"Space Grotesk",Manrope,sans-serif;font-size:20px;font-weight:600;margin:0}
.pst-numero-appel{color:#B0BAC5;font-size:13px;margin-top:3px;font-variant-numeric:tabular-nums}
.pst-numero-appel:empty{display:none}
.pst-fiche-lien{flex:none;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;background:#1B2027;border:1px solid #272E39;border-radius:10px;color:#EDF0F3;font-size:12.5px;font-weight:600;cursor:pointer}
.pst-fiche-lien:hover{background:#222832}
.pst-fiche-lien .ic{width:14px;height:14px}
.pst-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.pst-badges:empty{display:none}
.pst-badges .pastille{height:24px;padding:0 10px;border-radius:999px;font-size:11.5px;font-weight:700}
.pst-minuteur{font-family:"Space Grotesk",Manrope,sans-serif;font-size:26px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.02em;color:#4ADE80;margin:14px 0 0}
.pst-minuteur.attente{color:#8A95A3;font-size:20px}
.pst-info-appel,.pst-dernier{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:12.5px;color:#B0BAC5}
.pst-info-appel .ic,.pst-dernier .ic{margin-top:1px;color:#8A95A3;flex:none}
.pst-commandes{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:15px}
.pst-transfert{margin-top:12px}

/* Commandes de l'appel (bandeau du design : carrés de 38 px) */
.pst-cmd{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border-radius:10px;border:1px solid #272E39;background:#1B2027;color:#EDF0F3;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .12s,border-color .12s,color .12s}
.pst-cmd .pst-ic{line-height:0}
.pst-cmd .ic{width:17px;height:17px}
.pst-cmd:hover{background:#222832;border-color:#3E4854}
.pst-cmd:disabled{opacity:.42;cursor:not-allowed}
.pst-cmd.actif{color:#FBBF24;border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.08)}
.pst-cmd.vert{color:#04220F;background:#22C55E;border-color:#22C55E;font-weight:700}
.pst-cmd.vert:hover{background:#1FB555;border-color:#1FB555}
.pst-cmd.rouge{color:#fff;background:#EF4444;border-color:#EF4444;box-shadow:0 8px 20px -10px rgba(239,68,68,.7)}
.pst-cmd.rouge:hover{background:#DC3535;border-color:#DC3535}
.pst-cmd.grand{height:64px;width:64px;padding:0;border-radius:50%;flex:none}
.pst-cmd.grand .pst-lib{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pst-cmd.grand .ic{width:26px;height:26px}
.pst-cmd.petit{width:38px;height:38px;padding:0;flex:none}
.pst-cmd.petit .ic{width:17px;height:17px}
.pst-appel[data-etat="sonne"] .pst-cmd.vert .pst-ic{animation:pst-vibre 1.2s ease-in-out infinite}
@keyframes pst-vibre{0%,55%,100%{transform:none}10%,30%{transform:rotate(-12deg)}20%,40%{transform:rotate(12deg)}}

/* Clavier DTMF */
.pst-dtmf{margin-top:14px;padding-top:14px;border-top:1px solid #1D232C}
.pst-dtmf-saisie{min-height:26px;margin-bottom:10px;text-align:center;font-family:"Space Grotesk",Manrope,sans-serif;font-size:19px;letter-spacing:.14em;color:#EDF0F3}
.pst-dtmf .pst-touche{height:46px}

/* Motif détecté par l'assistant (encart IA du design) */
.pst-motif{padding:16px 18px;background:rgba(141,155,168,.07);border:1px solid rgba(141,155,168,.22);border-radius:16px}
.pst-motif-tete{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.pst-motif-tete .ic{width:16px;height:16px;color:#A9B7C5}
.pst-motif-titre{flex:1;min-width:0;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#A9B7C5}
.pst-motif-texte{margin:0;font-size:14.5px;line-height:1.6;color:#EDF0F3}

/* Ce qu'on lui a dit */
.pst-histo .pst-titre-bloc{margin-bottom:4px}
.pst-histo-liste{display:flex;flex-direction:column}
.pst-histo-el{display:flex;gap:12px;padding:13px 0;border-top:1px solid #1D232C;min-width:0}
.pst-histo-ic{width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
.pst-histo-ic .ic{width:15px;height:15px}
.pst-histo-ic.ok{background:rgba(34,197,94,.14);color:#4ADE80}
.pst-histo-ic.warn{background:rgba(245,158,11,.14);color:#FBBF24}
.pst-histo-ic.accent{background:rgba(141,155,168,.14);color:#A9B7C5}
.pst-histo-corps{flex:1;min-width:0}
.pst-histo-tete{display:flex;justify-content:space-between;gap:10px}
.pst-histo-titre{font-size:14px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.pst-histo-date{flex:none;color:#8A95A3;font-size:12px;font-family:"Space Grotesk",Manrope,sans-serif}
.pst-histo-texte{margin:3px 0 0;color:#B0BAC5;font-size:12.5px;line-height:1.5;overflow-wrap:anywhere}
.pst-histo-texte:empty{display:none}

/* Prochain rendez-vous / Reste à faire */
.pst-encarts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.pst-encart{padding:15px 16px;background:#14181F;border:1px solid #272E39;border-radius:14px;min-width:0}
.pst-encart-titre{font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8A95A3}
.pst-encart-ligne{display:flex;align-items:baseline;gap:9px;margin-top:8px}
.pst-encart-valeur{font-family:"Space Grotesk",Manrope,sans-serif;font-size:17px;font-weight:600;color:#EDF0F3}
.pst-encart-valeur.warn{color:#FBBF24}
.pst-encart-nom{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pst-encart-note{color:#8A95A3;font-size:12px;margin-top:3px}
.pst-encart-note.bad{color:#F87171}

/* Pendant que vous l'avez en ligne */
.pst-actions-ligne{min-width:0}
.pst-actions-grille{display:flex;flex-wrap:wrap;gap:9px}
/* Le design pose height:40px ; en colonne étroite un libellé sur deux lignes fait grandir le bouton
   au lieu de déborder — même hauteur qu'au design dès que la place suffit. */
.pst-action{flex:1 1 128px;min-width:0;min-height:40px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#1B2027;border:1px solid #272E39;border-radius:10px;color:#EDF0F3;font-size:13px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.pst-action:hover{background:#222832;border-color:#3E4854}
.pst-action .ic{width:16px;height:16px;color:#8A95A3}

/* À dire (scripts) */
.pst-a-dire,.pst-script-texte{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:rgba(141,155,168,.07);border:1px solid rgba(141,155,168,.22);border-radius:14px}
.pst-a-dire .bouton-icone{width:28px;height:28px;margin:-4px -6px 0 0;flex:none}
.pst-a-dire-titre{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#A9B7C5}
.pst-a-dire-texte{margin:4px 0 0;font-size:14.5px;line-height:1.6;color:#EDF0F3}

/* Onglets et panneaux */
/* Onglets pilule du design (P11, app.css) : ici, seulement la place prise dans le panneau. */
.pst-onglets{margin-bottom:0}
.pst-onglets .onglet{flex:none;font-size:13px}
.pst-onglets .onglet .ic{width:15px;height:15px}
.pst-point-nouveau{width:7px;height:7px;border-radius:50%;background:#22C55E;box-shadow:0 0 7px #22C55E}
.pst-panneau-ia,.pst-panneau-conversation,.pst-panneau-scripts{min-height:120px;min-width:0}
.pst-panneau-ia .vide{padding:24px 10px}

/* Notes de l'IA */
.pst-ia-attente{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;background:#14181F;border:1px dashed #272E39;color:#8A95A3;font-size:13px}
.pst-ia-attente p{margin:0}
.pst-ia-onde{display:inline-flex;align-items:flex-end;gap:3px;height:18px;flex:none}
.pst-ia-onde i{display:block;width:3px;height:6px;border-radius:2px;background:#A9B7C5;animation:pst-onde 1s ease-in-out infinite}
.pst-ia-onde i:nth-child(2){animation-delay:.15s}
.pst-ia-onde i:nth-child(3){animation-delay:.3s}
@keyframes pst-onde{50%{height:18px}}
.pst-ia-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pst-ia-bloc{padding:11px 0;border-top:1px solid #1D232C}
.pst-ia-bloc:first-of-type{border-top:0}
.pst-ia-titre{font-family:Manrope,system-ui,sans-serif;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8A95A3;margin:0 0 6px}
.pst-ia-bloc p{margin:0;font-size:13.5px;line-height:1.6;color:#C6CED6}
.pst-ia-motif{font-weight:600;color:#EDF0F3}
.pst-ia-infos{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
.pst-ia-infos dt{color:#8A95A3}
.pst-ia-infos dd{margin:0;overflow-wrap:anywhere}
.pst-ia-liste{margin:0;padding-left:18px;font-size:13px;color:#C6CED6}
.pst-ia-liste li{margin:3px 0}
.pst-ia-liste.actions{list-style:none;padding-left:0}
.pst-ia-liste.actions li{display:flex;gap:7px;align-items:flex-start}
.pst-ia-liste.actions .ic{color:#4ADE80;margin-top:2px}

/* Conversation */
.pst-vide-conversation{padding:18px 10px;text-align:center;color:#8A95A3;font-size:13px}
.pst-note-transcription{margin:8px 2px 0;padding-top:8px;border-top:1px dashed #272E39;color:#8A95A3;font-size:12px;line-height:1.4}
.pst-bulles{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.pst-bulle{max-width:88%;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#14181F;border:1px solid #272E39;color:#C6CED6;font-size:13.5px;line-height:1.5;align-self:flex-start;overflow-wrap:anywhere}
.pst-bulle.agent{align-self:flex-end;border-radius:14px 14px 4px 14px;background:rgba(141,155,168,.08);border-color:rgba(141,155,168,.22)}
.pst-bulle.assistant{align-self:flex-end;border-radius:14px 14px 4px 14px;background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.25)}
.pst-bulle small{display:block;margin-bottom:3px;color:#8A95A3;font-size:11px;font-weight:700}

/* Scripts */
.pst-liste-scripts{display:flex;flex-direction:column;gap:6px}
.pst-script{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:11px 13px;border-radius:10px;border:1px solid #272E39;background:#14181F;color:#EDF0F3;text-align:left;cursor:pointer}
.pst-script:hover{border-color:#3E4854;background:#1B2027}
.pst-script-titre{font-weight:600;font-size:13px;min-width:0}
.pst-script-texte{margin-bottom:10px}

/* Ma note d'appel */
.pst-notes{width:100%;min-height:86px;padding:13px 15px;background:#0F1319;border:1px solid #272E39;border-radius:12px;font-size:13.5px;line-height:1.6;outline:none;resize:vertical;color:#EDF0F3}
.pst-bloc-notes .pst-titre-bloc{cursor:text}
.pst-etat-notes{min-height:16px;margin-top:6px;font-size:11.5px;color:#8A95A3}
.pst-etat-notes.erreur{color:#F87171;font-weight:700}

/* ---------- Bilan ---------- */
.pst-bilan .pst-etat{color:#B0BAC5}
.pst-bilan .pst-etat .pastille{letter-spacing:0;text-transform:none}
.pst-bilan .groupe-boutons{margin-top:14px}
.pst-bilan-resume{padding:16px 18px;border-radius:16px;background:#14181F;border:1px solid #272E39;color:#C6CED6;font-size:13.5px;line-height:1.6}
.pst-bilan-resume > p{margin:0}
.pst-bilan-pied{display:flex;justify-content:flex-end}

/* ---------- Sonnerie (#couche-appel) ---------- */
/* Au-dessus des fenêtres (.modale-fond : 200) et sous les toasts (300) : un appel entrant reste visible et
   décrochable même quand une fenêtre est ouverte. */
.pst-sonneries{position:fixed;z-index:250;inset:0;display:grid;place-items:center;padding:24px;background:rgba(5,8,16,.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:none;overflow-y:auto}
.pst-sonneries:empty{display:none}
.pst-sonnerie{pointer-events:auto;width:min(400px,100%);padding:28px;border-radius:22px;background:#14181F;border:1px solid #272E39;box-shadow:0 40px 90px -30px rgba(0,0,0,.9);text-align:center;animation:pst-entree .28s cubic-bezier(.2,.7,.2,1) both}
@keyframes pst-entree{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}
.pst-sn-tete{display:flex;align-items:center;justify-content:center;gap:8px;color:#22C55E;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.pst-sonnerie.annonce .pst-sn-tete{color:#A9B7C5}
.pst-sn-titre{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pst-sn-tete .bouton-icone{margin-left:auto;width:28px;height:28px}
.pst-sn-onde{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(34,197,94,.16);color:#4ADE80}
.pst-sn-onde .ic{width:15px;height:15px}
.pst-sonnerie.annonce .pst-sn-onde{background:rgba(141,155,168,.16);color:#A9B7C5}
.pst-sn-file{margin-left:auto;color:#8A95A3;letter-spacing:.02em;text-transform:none;font-weight:700}
.pst-sonnerie .pst-identite{flex-direction:column;justify-content:center;text-align:center;margin-top:20px}
.pst-sonnerie .pst-avatar{width:88px;height:88px;font-size:28px;box-shadow:0 0 0 8px rgba(34,197,94,.1)}
.pst-sn-nom{font-family:"Space Grotesk",Manrope,sans-serif;font-size:25px;font-weight:600;margin:0;overflow-wrap:anywhere}
.pst-sonnerie .element-corps > .pst-sn-nom{margin-top:14px}
.pst-sn-numero{color:#B0BAC5;font-size:14.5px;margin-top:4px;font-variant-numeric:tabular-nums}
.pst-sn-numero:empty{display:none}
.pst-sn-dernier{margin-top:18px;padding:12px 14px;border-radius:12px;background:#0F1319;color:#C6CED6;font-size:13px;text-align:left}
.pst-sn-double{margin-top:10px;font-size:12px;color:#B0BAC5}
.pst-sn-note{margin-top:8px;font-size:12px;color:#B0BAC5}
.pst-sn-boutons{display:flex;justify-content:center;gap:16px;margin-top:26px}
.pst-sonnerie.annonce .pst-sn-boutons{flex-direction:column}
.pst-sn-boutons .pst-cmd.vert .pst-ic{animation:pst-vibre 1.2s ease-in-out infinite}
.pst-sonnerie .pst-badges{justify-content:center}

/* ---------- Barre d'appel mobile ---------- */
.pst-barre-mobile{position:fixed;z-index:140;left:10px;right:10px;bottom:calc(var(--hauteur-menu-mobile) + var(--bas-sur) + 8px);display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:16px;background:#14181F;border:1px solid #272E39;box-shadow:0 30px 70px -20px rgba(0,0,0,.8)}
.pst-mb-retour{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:4px 0;border:0;background:none;color:#EDF0F3;text-align:left;cursor:pointer}
.pst-mb-textes{display:flex;flex-direction:column;min-width:0}
.pst-mb-nom{font-weight:600;font-size:13.5px}
.pst-mb-etat{font-size:11.5px;color:#4ADE80;font-variant-numeric:tabular-nums}
body.modale-ouverte .pst-barre-mobile{display:none}
/* Barre affichée (mobile) : la fin de la vue reste atteignable au-dessus d'elle (69 px masqués + marge). */
@media (max-width:899.98px){body:has(.pst-barre-mobile:not([hidden])) .vue-contenu{padding-bottom:104px}}
/* Mise en page ordinateur (tablette en paysage comprise) : le poste est déjà affiché à droite. */
@media (min-width:900px){.pst-barre-mobile{display:none}}

/* ---------- Fenêtres : transfert, réglages ---------- */
.pst-tr-liste,.pst-tr-equipes{display:flex;flex-direction:column;gap:4px;max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.pst-tr-equipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}
@media (max-width:420px){.pst-tr-equipes{grid-template-columns:minmax(0,1fr)}}
.pst-tr-option{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 11px;border-radius:10px;border:1px solid #272E39;background:#14181F;color:#EDF0F3;text-align:left;cursor:pointer}
.pst-tr-option:hover{border-color:#3E4854;background:#1B2027}
.pst-tr-option.actif{border-color:rgba(141,155,168,.4);background:rgba(141,155,168,.14)}
.pst-tr-option .pastille{flex:none}
.pst-reglages .separateur{margin:16px 0 12px}
.pst-reglages .groupe-boutons{margin-top:10px}
.pst-reglages .encart .element-corps{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.pst-vumetre{height:6px;margin-top:6px;border-radius:999px;background:#0F1319;overflow:hidden}
.pst-vumetre i{display:block;height:100%;width:0;background:linear-gradient(90deg,#22C55E,#F59E0B,#EF4444);transition:width .08s linear}

/* ---------- Numéros de service : boutons sous le clavier et panneau pendant l'appel ---------- */
.pst-test-acces{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.pst-test-acces .bouton{max-width:100%;white-space:normal;text-align:center}
/* Agents IA du Voice Center (100 à 104) : petite liste sous les boutons de test */
.pst-agents{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid #1D232C}
.pst-agents-titre{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#A9B7C5}
.pst-agents-titre .ic{width:15px;height:15px}
.pst-agents-liste{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}
.pst-agents-liste li{max-width:100%}
.pst-agent{max-width:100%;white-space:normal;text-align:left}
.pst-agent-detail{font-size:11px;color:#8A95A3;margin-left:2px}
.pst-test{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-radius:16px;background:rgba(141,155,168,.07);border:1px solid rgba(141,155,168,.22)}
.pst-test-titre{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-family:"Space Grotesk",Manrope,sans-serif;font-weight:600;font-size:14px;color:#EDF0F3}
.pst-test-titre .pastille{margin-left:auto}
.pst-test-etape{margin:0;font-size:13.5px;font-weight:600;line-height:1.6;color:#EDF0F3;overflow-wrap:anywhere}
.pst-test-note{margin:0;font-size:12.5px;line-height:1.5;color:#8A95A3;overflow-wrap:anywhere}

/* ---------- Téléphone : une colonne, touches plus hautes ---------- */
@media (max-width:899.98px){
  .vue-contenu[data-vue="poste"]{padding:18px 16px 32px}
  /* Le titre garde toute la largeur ; présence et réglages audio passent à la ligne. */
  .pst-ecran-entete{flex-wrap:wrap;margin-bottom:18px}
  .pst-ecran-titres{flex:1 1 100%}
  .pst-ecran-actions{flex:1 1 100%}
  .pst-ecran-titre{font-size:21px}
  .pst-ecran-actions .pst-presence{max-width:150px}
  .pst-colonnes{grid-template-columns:minmax(0,1fr)}
  .pst-col-clavier{max-width:none}
  .pst-clavier{max-width:420px;margin:0 auto;width:100%}
  .pst-touche{height:62px}
  .pst-touche b{font-size:25px}
  .pst-appel,.pst-bilan{max-width:560px;margin:0 auto;width:100%}
  .pst-commandes .pst-cmd{flex:1 1 130px}
  .pst-minuteur{font-size:32px}
  .pst-bulles{max-height:none}
  .pst-sonneries{padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + var(--bas-sur));pointer-events:auto}
  .pst-sonnerie{padding:24px 20px}
  body.pst-sonne{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){
  .pst-point-rec,.pst-led,.pst-ia-onde i,.pst-cmd .pst-ic{animation:none!important}
  .pst-vumetre i{transition:none}
}
