/* Miya — le style commun des boutons-symboles (js/symboles.js) : le symbole seul, en couleur, sans cercle ni fond.
   Un seul style pour tous les boutons de Miya. Les statuts et indications sont des symboles nus (pas de cercle, pas un bouton). */
.symBtn,.miyaBtn.symBtn,.miyaBtn.miyaBtnMain.symBtn,.miyaBtn.miyaBtnDanger.symBtn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;padding:0!important;margin:0;box-sizing:border-box;
  border:0;border-radius:8px;background:transparent;box-shadow:none;
  font-size:0;line-height:0;cursor:pointer;text-decoration:none;vertical-align:middle;
  -webkit-tap-highlight-color:transparent;
}
/* Règle finale commune : une commande composée uniquement d'une icône n'a jamais de plaque de fond.
   La répétition de classe protège cette règle des variantes actives/dangereuses des pages, sans modifier leur couleur métier. */
html:root:root:root:root:root body :is(.symBtn.symBtn.symBtn,.miyaIconOnly.miyaIconOnly.miyaIconOnly:not(.mic):not(.miyaFloatMic):not(.miyaBodyMic)),
html:root:root:root:root:root body :is(.symBtn.symBtn.symBtn,.miyaIconOnly.miyaIconOnly.miyaIconOnly:not(.mic):not(.miyaFloatMic):not(.miyaBodyMic)):is(:hover,:active,:focus,[aria-pressed=true],[aria-selected=true],.active,.is-active,.is-on,.miyaBtnMain,.miyaBtnDanger){
  background:transparent!important;background-color:transparent!important;border-color:transparent!important;border:0!important;box-shadow:none!important;
}
html:root:root:root:root:root body :is(.symBtn.symBtn.symBtn,.miyaIconOnly.miyaIconOnly.miyaIconOnly){color:var(--miya-symbol-color,currentColor)!important}
html:root:root:root:root:root body :is(.symBtn,.miyaIconOnly):hover{filter:brightness(.82)}
html:root:root:root:root:root body :is(.symBtn,.miyaIconOnly):focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}
.symBtn[hidden]{display:none!important}
.symBtn svg{transition:transform .12s}
.symBtn:hover svg{transform:scale(1.15)}
.symBtn:focus-visible{background:transparent;outline:2px solid var(--miya-brand);outline-offset:1px}
.symBtn:disabled,.symBtn[aria-disabled=true]{opacity:.4;cursor:default}
.symBtn svg,.symSt svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.symSt{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 auto;cursor:help;font-size:0;line-height:0;vertical-align:middle;border:0;background:none;padding:0}
.symSt svg{width:24px;height:24px}
.symTip{position:fixed;inset:auto;margin:0;border:0;overflow:visible;z-index:9999;max-width:220px;padding:5px 9px;border-radius:8px;background:var(--miya-ink,#26191c);color:var(--miya-surface,#fff);font:600 13px/1.3 inherit;font-family:inherit;pointer-events:none;opacity:0;transition:opacity .12s}
.symTip.on{opacity:1}
/* Les ronds d'en-tête de page : le texte disparaît, il reste l'infobulle. */
.miyaRoundTxt{display:none}
.miyaRoundDot{width:34px;height:34px}
@media (max-width:899px){.symBtn,.miyaBtn.symBtn,.miyaBtn.miyaBtnMain.symBtn,.miyaBtn.miyaBtnDanger.symBtn{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}}
/* Les ronds d'en-tête et d'agenda : plus de cercle non plus. */
.miyaRoundDot,.agRound{border:0!important;background:transparent!important;border-radius:8px}
.miyaRoundDot svg,.agRound svg{width:26px;height:26px}
.miyaRound:hover .miyaRoundDot{background:transparent!important}
.miyaRound:hover .miyaRoundDot svg,.agRound:hover svg{transform:scale(1.15)}
/* L'engrenage « En cours » tourne doucement (un tour en 6 secondes), toujours : même si l'appareil demande de réduire les animations (décision de Sodi). */
@keyframes symSpin{to{transform:rotate(360deg)}}
.symSpin svg{animation:symSpin 6s linear infinite;transform-origin:50% 50%}

/* Pastille d'urgence : un rond plein de la couleur du niveau, à côté du numéro de l'affaire ; un clic ouvre les trois couleurs */
.symBtn svg .dot,.symSt svg .dot{fill:currentColor;stroke:none}
.urg{position:relative;display:inline-flex;align-items:center;vertical-align:middle;gap:2px}
.urg .symBtn,.urg .symSt{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important}
.urg .symBtn svg,.urg .symSt svg{width:20px;height:20px}
.urgPop{position:absolute;left:0;top:100%;margin-top:4px;z-index:50;display:flex;gap:4px;padding:6px 8px;border:1px solid var(--miya-frame);border-radius:12px;background:var(--miya-surface);box-shadow:0 4px 14px rgba(0,0,0,.15)}
.urgPop[hidden]{display:none}
.urgPop .symBtn{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important}
.urgPop .symBtn svg{width:28px;height:28px}
.urgPop .is-now{outline:2px solid var(--miya-line);outline-offset:-2px;border-radius:50%}

/* Le micro de tous les champs et les symboles posés dans une ligne de texte */
.mic svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mic.listening svg{stroke:#fff}
/* L'état d'écoute appartient au moteur du micro, jamais au moteur des icônes.
   Cette règle finale protège aussi les anciens boutons déjà marqués miyaIconOnly. */
html:root:root:root:root:root body .mic.listening,
html:root:root:root:root:root body .mic.miyaIconOnly.listening,
html:root:root:root:root:root body .miyaFloatMic.listening,
html:root:root:root:root:root body .miyaBodyMic.listening{
  background:#e53935!important;background-color:#e53935!important;color:#fff!important;
  border-radius:50%!important;box-shadow:none!important;
}
.symInline{display:inline-flex;vertical-align:middle;flex:0 0 auto}
.symInline svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.symEmoji{margin-right:.25em}.symEmoji svg{width:1.15em;height:1.15em;min-width:16px;min-height:16px}

/* Bouton d'état (parcours du document) : liste des affaires, fiche, À faire */
.stWrap{display:inline-flex;align-items:center}
.stWrap .stList{display:none}
.stBtn{cursor:pointer;border-radius:8px}
.stBtn:focus-visible{outline:2px solid var(--miya-brand);outline-offset:2px}
.stPop{position:fixed;z-index:200;min-width:220px;max-width:min(92vw,320px);padding:8px 10px;border:1px solid var(--miya-frame);border-radius:12px;background:var(--miya-surface);box-shadow:0 6px 18px rgba(0,0,0,.18)}
.stPop[hidden]{display:none}
.stRow{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:15px;line-height:1.25}
.stRow.is-cur{font-weight:700}
.stMark{display:inline-flex;width:22px;height:22px;flex:0 0 auto}
.stMark svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stRow.st-t .stTxt{color:var(--miya-muted)}
.stArrow{font-style:normal;font-weight:600;color:var(--miya-muted);margin-left:auto;white-space:nowrap}
.affTags .stWrap,.todoActs .stWrap,.miyaPageTitle .stWrap{margin-left:6px}
