/* Waribiz — écran « Outils » (gf-outils.js).
   Même ossature que « Mes signaux » : plein écran sur téléphone, monté sur
   document.body, rien d'inséré dans le rendu de React. */

.gf-ot {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  background: var(--surface-soft);
}
html.gf-ot-open, html.gf-ot-open body { overflow: hidden }

.gf-ot-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.gf-ot-back {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0;
  border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.gf-ot-title strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em }

.gf-ot-body {
  flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 14px;
  max-width: 760px; width: 100%; margin: 0 auto; align-content: start;
}

.gf-ot-card {
  display: grid; gap: 12px; padding: 16px; border-radius: 18px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.gf-ot-card h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em }
.gf-ot-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55 }

/* align-items: start — sans lui, un champ dont le voisin porte une aide se
   retrouve poussé vers le bas, et les deux entrées ne s'alignent plus. */
.gf-ot-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; align-items: start;
}
.gf-ot-field { display: grid; gap: 4px; min-width: 0; align-content: start }
.gf-ot-field > span {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.gf-ot-field > small { color: var(--muted); font-size: 11.5px; line-height: 1.4 }

/* Les résultats : alignés, chiffres tabulaires — on les compare d'un coup d'œil. */
.gf-ot-results { display: grid; gap: 2px; margin-top: 2px }
.gf-ot-result {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.gf-ot-result span { color: var(--ink-soft); font-size: 13px }
.gf-ot-result b { font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap }
/* La taille de position est la réponse qu'on est venu chercher : elle se voit. */
.gf-ot-result.is-strong b { font-size: 20px; font-weight: 800 }
/* La valeur exacte sous la taille arrondie : l'arrondi doit s'expliquer. */
.gf-ot-exact { margin: 0; padding: 2px 0 6px; color: var(--muted); font-size: 12px; line-height: 1.5 }

.gf-ot-warn {
  margin: 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, #d4513d 10%, transparent); color: #a13c2c;
  font-size: 12.5px; line-height: 1.55;
}

.gf-ot-series { display: grid; gap: 2px }
.gf-ot-serie {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.gf-ot-serie span { color: var(--ink-soft); font-size: 13px }
.gf-ot-serie b { font-size: 14.5px; font-variant-numeric: tabular-nums }

.gf-ot-note, .gf-ot-privacy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55 }
.gf-ot-privacy { text-align: center; padding: 4px 0 8px }

@media (min-width: 720px) {
  .gf-ot-body { padding: 22px 16px 32px }
}
