/* Outils web et SEO : formulaires, aperçu de résultat de recherche, barres de largeur, code QR, comparaison d'images. */
.ow-bench .result-wrap { position: static; min-width: 0; }
.ow-bench form, .ow-bench .result-wrap { min-width: 0; }
.ow-form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 1rem/1.5 var(--sans); resize: vertical; min-height: 80px; }
.ow-form textarea:focus, .ow-bench .code-area:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 255, 46, .15); }
.ow-form input[type="color"] { padding: 4px; min-height: 46px; cursor: pointer; }
.ow-form input[type="range"] { padding: 0; min-height: 36px; accent-color: var(--lime); }
.ow-form input[type="file"] { font: .95rem var(--sans); padding: 10px; }
.ow-form input:focus-visible, .ow-form select:focus-visible, .ow-form textarea:focus-visible, .ow-ck input:focus-visible, .ow-bench .f-btn:focus-visible, .ow-bench .copy:focus-visible, .ow-adv summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ow-help { color: var(--mute); font-size: .85rem; margin: 6px 0 0; }
.ow-form > .ow-help { margin: -4px 0 16px; }
.ow-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ow-two .field { min-width: 0; }
.ow-ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; cursor: pointer; line-height: 1.4; }
.ow-ck input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--lime); }
.ow-ck span { min-width: 0; }
.ow-adv { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 0 0 16px; }
.ow-adv summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #cfd7e6; }
.ow-adv[open] summary { margin-bottom: 8px; }
.ow-grp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; min-width: 0; background: var(--bg2); }
.ow-grp legend { font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--lime); padding: 0 8px; }
.ow-grp .field { margin-bottom: 12px; }
.ow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ow-actions .copy, .ow-actions .f-btn { margin: 0; min-height: 44px; }
.ow-actions[hidden] { display: none; }
a.copy.ow-dl { display: inline-flex; align-items: center; text-decoration: none; }
.ow-h3 { font-size: 1rem; margin: 22px 0 10px; color: #cfd7e6; }
.ow-warnlist { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ow-warnlist:empty { display: none; }
.ow-warnlist li { font-size: .9rem; color: #ffd23d; background: rgba(255, 210, 61, .07); border: 1px solid rgba(255, 210, 61, .35); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.ow-warnlist li.bad { color: var(--danger); background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); }
.ow-bench .code-area { min-height: 120px; overflow-wrap: anywhere; }
.ow-bench .kv b { max-width: 100%; }
.ow-bench .rnote:empty { display: none; }

/* Aperçu d'un résultat de recherche (carte claire) */
.ow-serp-card { background: #fff; color: #202124; border-radius: 12px; padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; overflow: hidden; min-width: 0; }
.ow-serp-url { font-size: 13px; line-height: 1.4; color: #4d5156; overflow-wrap: anywhere; }
.ow-serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 4px 0 3px; overflow-wrap: anywhere; }
.ow-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.ow-serp-card.empty .ow-serp-title, .ow-serp-card.empty .ow-serp-desc { color: #80868b; }

/* Barres de largeur */
.ow-meter { margin: 0 0 20px; }
.ow-meter-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0 0 8px; font-size: .95rem; }
.ow-meter-t span { font: 600 .85rem var(--mono); color: var(--mute); }
.ow-bar { height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ow-bar i { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 999px; transition: width .2s; }
.ow-bar.ok i { background: var(--lime); }
.ow-bar.short i { background: var(--cyan); }
.ow-bar.over i { background: var(--danger); }

/* Code QR */
.ow-qrbox { max-width: 360px; margin: 0 auto 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 0; }
.ow-qrbox svg { width: 100%; height: auto; display: block; }
.ow-qrbox:empty { display: none; }

/* Comparaison d'images */
.ow-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.ow-compare figure { margin: 0; min-width: 0; }
.ow-compare figcaption { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 8px; }
.ow-imgbox { background: repeating-conic-gradient(#1b2233 0% 25%, #121826 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; min-height: 120px; overflow: hidden; }
.ow-imgbox img { max-width: 100%; max-height: 260px; width: auto; height: auto; display: block; }
.ow-verdict { font-weight: 700; margin: 8px 0; }
.ow-verdict.good { color: var(--lime); }
.ow-verdict.bad { color: #ffd23d; }

/* Pages et hub */
.ow-hub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ow-hub-grid > li { display: flex; min-width: 0; }
.ow-others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ow-others a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-size: .9rem; }
.ow-others a:hover { border-color: var(--lime); color: var(--lime); }
.ow-others a:focus-visible, .ow-hub-grid a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 520px) {
  .ow-hub-grid { grid-template-columns: 1fr; }
  .ow-actions .f-btn, .ow-actions .copy { flex: 1 1 140px; }
  .ow-compare { grid-template-columns: 1fr; }
  .ow-serp-card { padding: 14px; }
}
@media (max-width: 380px) { .ow-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ow-bar i { transition: none; } }
