/* fx-a11y.css — the one focus style and the shared accessibility bits of the
   signed-in pages (user test 3, A3 / A6 / A9 / A10). Loaded AFTER each page's own
   <style>, so it wins over the older per-component focus rules.

   A3: one visible focus indicator everywhere, never removed. Two rings: a 2 px
   light outline (#9ff0d4) 2 px outside the control, and a 2 px dark ring
   (#06121a) right at its edge. Whatever the background (the dark app surfaces,
   a filled green button, the light paper of a mail preview or the export page),
   one of the two rings has at least 3:1 against it: #9ff0d4 vs #0b1419 = 13.6:1,
   #06121a vs #f1efe9 = 17:1, #06121a vs the accent #59c3a0 = 8.6:1. */
:focus-visible,
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #9ff0d4 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #06121a !important;
}
/* a heading that only receives focus because the view changed: the ring still shows
   (keyboard people need to see where they are), quieter than on a control */
.fx-headfocus:focus { outline: 2px solid #9ff0d4; outline-offset: 4px; border-radius: 4px; }
.fx-headfocus:focus:not(:focus-visible) { outline: none; }

/* A6: the skip link, first thing on every page, visible when focused */
.fx-skip {
  position: absolute; z-index: 1000; inset-inline-start: 8px; top: -80px;
  padding: 10px 16px; border-radius: 8px; background: #f3f3f4; color: #0b0b0d;
  font: 700 14px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; text-decoration: none;
}
.fx-skip:focus { top: 8px; }

/* A9: reduced motion, on every page that loads this file (login included) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* F0: "Tell us what is missing" (fx-suggest.js). The app's own tokens and buttons. */
.fxs-ov { position: fixed; inset: 0; z-index: 95; background: rgba(8,16,22,.74); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fxs-ov[hidden] { display: none; }
.fxs-dlg { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card, #172b35); color: var(--text, #f4f0e7);
  border: 1px solid var(--line-2, rgba(244,240,231,.22)); border-radius: 14px; padding: 20px 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.fxs-t { font-size: 18px; margin: 0 0 6px; }
.fxs-lead { font-size: 13.5px; color: var(--dim, #b4c2c5); margin: 0 0 14px; line-height: 1.5; }
.fxs-l { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.fxs-dlg textarea { width: 100%; box-sizing: border-box; min-height: 110px; font: inherit; font-size: 14px; color: var(--text, #f4f0e7); background: rgba(255,255,255,.04);
  border: 1.5px solid var(--line-2, rgba(244,240,231,.22)); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.fxs-cnt { font-size: 12px; color: var(--dim, #b4c2c5); margin: 4px 0 12px; }
.fxs-kind { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fxs-kind legend { font-weight: 700; font-size: 13px; margin-bottom: 4px; padding: 0; }
.fxs-r { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; cursor: pointer; }
.fxs-r input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent, #59c3a0); }
.fxs-shots { margin: 0 0 12px; }
.fxs-add { min-height: 44px; border: 1px dashed var(--line-2, rgba(244,240,231,.32)) !important; }
.fxs-hint { font-size: 12px; color: var(--dim, #b4c2c5); margin: 6px 0 8px; line-height: 1.45; }
.fxs-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fxs-thumbs[hidden] { display: none; }
.fxs-thumbs li { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, rgba(244,240,231,.13)); background: rgba(255,255,255,.04); }
.fxs-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fxs-rm { position: absolute; top: 2px; inset-inline-end: 2px; width: 32px; height: 32px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(8,16,22,.82); color: #fff; font-size: 18px; line-height: 1; }
.fxs-rm:focus-visible, .fxs-add:focus-visible { outline: 2px solid var(--accent, #59c3a0); outline-offset: 2px; }
.fxs-dlg.fxs-drop { outline: 2px dashed var(--accent, #59c3a0); outline-offset: -6px; }
.fxs-msg { min-height: 1.4em; font-size: 13.5px; color: var(--ok, #59c3a0); margin: 6px 0; }
.fxs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fxs-mine { margin-top: 16px; border-top: 1px solid var(--border, rgba(244,240,231,.13)); }
.fxs-mine h3 { font-size: 14px; margin: 14px 0 8px; }
.fxs-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fxs-mine li { background: var(--panel-2, #1c3440); border: 1px solid var(--border, rgba(244,240,231,.13)); border-radius: 10px; padding: 8px 12px; }
.fxs-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--dim, #b4c2c5); }
.fxs-st { font-weight: 700; color: var(--text, #f4f0e7); border: 1px solid var(--line-2, rgba(244,240,231,.22)); border-radius: 999px; padding: 0 8px; }
.fxs-st.st-done, .fxs-st.st-planned { color: var(--ok, #59c3a0); }
.fxs-tx { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* visually hidden, still read (FXA.say) */
.fx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
