/* FixArabic 2.7.5 additions. Dark mode follows theme.css. */
/* Brand accent: a deeper shade of the blue in the logo's gradient. Change it here only.
   --fa-accent fills the main button and the step numbers, with a white label on it (--fa-on-accent).
   --fa-accent-text is the same blue for links, hashtags and focus rings (a lighter one in dark mode, to stay readable). */
:root { --fa-accent: #0A72BD; --fa-accent-hover: #0868AD; --fa-on-accent: #fff; --fa-accent-strong: #075E90; --fa-accent-text: #0A72BD; --fa-accent-text-hover: #075E90; --fa-accent-rgb: 10 114 189; }
html[data-theme="dark"] { --fa-accent: #0A72BD; --fa-accent-hover: #0C7BC9; --fa-on-accent: #fff; --fa-accent-strong: #8EDCFC; --fa-accent-text: #5CCBFA; --fa-accent-text-hover: #8EDCFC; --fa-accent-rgb: 56 190 247; }

.fa-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fa-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 0 .25rem; font-size: .875rem; color: #6E6E73; }
.fa-toggle { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; }
.fa-toggle input { width: 1rem; height: 1rem; accent-color: var(--fa-accent-text); cursor: pointer; }
.fa-link { display: inline-flex; align-items: center; gap: .375rem; color: var(--fa-accent-text); font-weight: 500; border-radius: 9999px; padding: .25rem .5rem; margin: -.25rem -.5rem; transition: color .2s, background-color .2s; }
.fa-link:hover { color: var(--fa-accent-text-hover); background: rgb(var(--fa-accent-rgb) / .06); }

button:focus-visible, .fa-toggle input:focus-visible { outline: 2px solid var(--fa-accent-text); outline-offset: 2px; }

.fa-error { background: #FFF1F0; color: #C9302C; padding: .5rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; text-align: center; }

.fa-lines { padding: 1rem; }
.fa-lines-title { font-size: .8125rem; font-weight: 500; color: #86868B; margin: 0 .25rem .75rem; }
.fa-lines ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.fa-lines li { min-width: 0; }
.fa-line { width: 100%; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .875rem; background: #F5F5F7; color: #1D1D1F; text-align: start; transition: background-color .2s; }
.fa-line:hover { background: #E5E5E7; }
.fa-line.is-changed { box-shadow: inset 0 0 0 1.5px var(--fa-accent-text); }
.fa-chip { flex: none; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; padding: .1875rem .5rem; border-radius: 9999px; min-width: 4.25rem; text-align: center; }
.fa-chip-rtl { background: rgb(var(--fa-accent-rgb) / .12); color: var(--fa-accent-strong); }
.fa-chip-ltr { background: rgb(134 134 139 / .16); color: #48484A; }
.fa-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.fa-changed { flex: none; font-size: .6875rem; color: var(--fa-accent-text); font-weight: 500; }

html[data-theme="dark"] .fa-options { color: #98989D; }
html[data-theme="dark"] .fa-link, html[data-theme="dark"] .fa-changed { color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-link:hover { color: var(--fa-accent-text-hover); background: rgb(var(--fa-accent-rgb) / .1); }
html[data-theme="dark"] .fa-error { background: rgb(255 69 58 / .14); color: #FF6961; }
html[data-theme="dark"] .fa-line { background: #2C2C2E; color: #F5F5F7; }
html[data-theme="dark"] .fa-line:hover { background: #3A3A3C; }
html[data-theme="dark"] .fa-line.is-changed { box-shadow: inset 0 0 0 1.5px var(--fa-accent-text); }
html[data-theme="dark"] .fa-chip-rtl { background: rgb(var(--fa-accent-rgb) / .18); color: var(--fa-accent-strong); }
html[data-theme="dark"] .fa-chip-ltr { background: rgb(152 152 157 / .2); color: #D1D1D6; }
html[data-theme="dark"] button:focus-visible, html[data-theme="dark"] .fa-toggle input:focus-visible { outline-color: var(--fa-accent-text); }

/* ---------- 2.7.1: privacy note, content sections, privacy page ---------- */
.fa-privacy-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .375rem; font-size: .8125rem; color: #86868B; text-align: center; }
.fa-privacy-note svg { flex: none; }
.fa-privacy-note a, .fa-footer-link, .fa-prose a { color: var(--fa-accent-text); text-decoration: none; }
.fa-privacy-note a:hover, .fa-footer-link:hover, .fa-prose a:hover { text-decoration: underline; }

.fa-section { margin-top: 3.5rem; color: #1D1D1F; }
.fa-section h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; text-align: center; margin-bottom: 1.25rem; }

.fa-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .fa-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fa-step { background: rgb(255 255 255 / .7); border: 1px solid #E5E5E7; border-radius: 1rem; padding: 1.125rem; }
.fa-step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: var(--fa-accent); color: var(--fa-on-accent); font-size: .8125rem; font-weight: 600; margin-bottom: .625rem; }
.fa-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.fa-step p { font-size: .875rem; color: #6E6E73; line-height: 1.5; }

.fa-demo { display: grid; gap: .75rem; }
.fa-demo-box { margin: 0; background: rgb(255 255 255 / .7); border: 1px solid #E5E5E7; border-radius: 1rem; padding: 1rem 1.125rem 1.25rem; }
.fa-demo-box figcaption { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1875rem .625rem; border-radius: 9999px; margin-bottom: .75rem; }
.fa-demo-box.is-before figcaption { background: #FFF1F0; color: #C9302C; }
.fa-demo-box.is-after figcaption { background: #E8F5EC; color: #248A3D; }
.fa-demo-text p { font-size: 1.0625rem; line-height: 1.7; }
.fa-demo-text p[dir="rtl"] { text-align: right; }
.fa-demo-text p[dir="ltr"] { text-align: left; }
.fa-demo-box.is-before .fa-demo-text p { text-align: left; }

.fa-faq { display: grid; gap: .5rem; }
.fa-faq-item { background: rgb(255 255 255 / .7); border: 1px solid #E5E5E7; border-radius: 1rem; padding: 0 1.125rem; }
.fa-faq-item summary { cursor: pointer; list-style: none; font-weight: 500; padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fa-faq-item summary::-webkit-details-marker { display: none; }
.fa-faq-item summary::after { content: '+'; flex: none; font-size: 1.25rem; font-weight: 400; color: #86868B; transition: transform .2s; }
.fa-faq-item[open] summary::after { transform: rotate(45deg); }
.fa-faq-item p { padding-bottom: 1rem; font-size: .9375rem; color: #48484A; line-height: 1.6; }
.fa-faq-item summary:focus-visible { outline: 2px solid var(--fa-accent-text); outline-offset: 2px; border-radius: .5rem; }

.fa-prose { padding: 1.5rem; color: #1D1D1F; line-height: 1.65; }
@media (min-width: 640px) { .fa-prose { padding: 2rem; } }
.fa-prose h2 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 .375rem; }
.fa-prose h2:first-child { margin-top: 0; }
.fa-prose p { font-size: .9375rem; color: #48484A; }
.fa-prose p:last-child { margin-top: 1.5rem; }

html[data-theme="dark"] .fa-section, html[data-theme="dark"] .fa-prose { color: #F5F5F7; }
html[data-theme="dark"] .fa-step, html[data-theme="dark"] .fa-demo-box, html[data-theme="dark"] .fa-faq-item { background: rgb(28 28 30 / .7); border-color: #38383A; }
html[data-theme="dark"] .fa-step p, html[data-theme="dark"] .fa-faq-item p, html[data-theme="dark"] .fa-prose p { color: #C7C7CC; }
html[data-theme="dark"] .fa-demo-box.is-before figcaption { background: rgb(255 69 58 / .14); color: #FF6961; }
html[data-theme="dark"] .fa-demo-box.is-after figcaption { background: rgb(48 209 88 / .14); color: #30D158; }
html[data-theme="dark"] .fa-privacy-note a, html[data-theme="dark"] .fa-footer-link, html[data-theme="dark"] .fa-prose a { color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-step-n { background: var(--fa-accent); }

.fa-back { margin-top: 1.5rem; text-align: center; font-size: .875rem; }
.fa-back a { color: var(--fa-accent-text); text-decoration: none; }
.fa-back a:hover { text-decoration: underline; }
html[data-theme="dark"] .fa-back a { color: var(--fa-accent-text); }


.fa-pv-state { font-size: .6875rem; font-weight: 600; padding: .1875rem .625rem; border-radius: 9999px; }
.fa-pv-state.is-raw { background: #FFF1F0; color: #C9302C; }
.fa-pv-state.is-fixed { background: #E8F5EC; color: #248A3D; }
html[data-theme="dark"] .fa-pv-state.is-raw { background: rgb(255 69 58 / .14); color: #FF6961; }
html[data-theme="dark"] .fa-pv-state.is-fixed { background: rgb(48 209 88 / .14); color: #30D158; }

/* ---------- 2.7.3 layout ---------- */
.fa-head { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: .25rem 0 .375rem; }
.fa-head img { width: 44px; height: 44px; }
.fa-head h1 { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 640px) { .fa-head img { width: 52px; height: 52px; } .fa-head h1 { font-size: 2.5rem; } }
.fa-sub { text-align: center; font-size: .9375rem; line-height: 1.45; color: #6E6E73; margin: 0 auto 1.25rem; max-width: 32rem; text-wrap: balance; }
.fa-main { display: grid; gap: .875rem; }
.fa-box-tools { display: flex; justify-content: flex-end; gap: .375rem; padding: .75rem .875rem 0; }
.fa-chip-btn { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 500; color: #6E6E73; border: 1px solid #E5E5E7; border-radius: 9999px; padding: .25rem .625rem; transition: background-color .2s, color .2s; }
.fa-chip-btn:hover { background: #F5F5F7; color: #1D1D1F; }
.fa-textarea { display: block; min-height: 11rem; max-height: 60vh; overflow-y: auto; padding: .5rem 1.25rem .75rem; line-height: 1.7; }
@media (min-width: 640px) { .fa-textarea { min-height: 13rem; } }
.fa-box-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 2.5rem; padding: .5rem 1rem; border-top: 1px solid #E5E5E7; font-size: .75rem; color: #86868B; }
.fa-count { font-variant-numeric: tabular-nums; margin-inline-start: auto; }
.fa-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .75rem; transition: grid-template-columns .25s ease; }
.fa-actions.is-fixed { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fa-links { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8125rem; padding: 0 .25rem; }
.fa-more { color: #6E6E73; }
.fa-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; }
.fa-more summary::-webkit-details-marker { display: none; }
.fa-more summary::after { content: ''; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.fa-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.fa-more .fa-options { flex-direction: column; align-items: flex-start; gap: .625rem; margin-top: .75rem; padding: 0; }
[dir="ltr"] .fa-more { text-align: right; } [dir="ltr"] .fa-more .fa-options { align-items: flex-end; }
[dir="rtl"] .fa-more { text-align: left; } [dir="rtl"] .fa-more .fa-options { align-items: flex-end; }
html[data-theme="dark"] .fa-chip-btn { color: #98989D; border-color: #38383A; }
html[data-theme="dark"] .fa-chip-btn:hover { background: #2C2C2E; color: #F5F5F7; }
html[data-theme="dark"] .fa-box-foot { border-color: #38383A; color: #98989D; }
html[data-theme="dark"] .fa-more { color: #98989D; }

/* ---------- 2.7.4 ---------- */
.fa-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1rem; border-radius: 9999px; font-size: .875rem; font-weight: 500; background: #F5F5F7; color: #1D1D1F; transition: background-color .2s, color .2s; }
.fa-btn:hover { background: #E5E5E7; }
.fa-actions:not(.is-fixed) #fix, .fa-actions.is-fixed #copy { background: var(--fa-accent); color: var(--fa-on-accent); }
.fa-actions:not(.is-fixed) #fix:hover, .fa-actions.is-fixed #copy:hover { background: var(--fa-accent-hover); }
.fa-pv-state.is-hint { background: none; padding: 0; font-weight: 400; color: #86868B; }
.fa-box { transition: box-shadow .3s; }
.fa-box.is-copied { animation: fa-copied .9s ease-out; }
@keyframes fa-copied { 0% { box-shadow: 0 0 0 0 rgb(var(--fa-accent-rgb) / .45); } 100% { box-shadow: 0 0 0 10px rgb(var(--fa-accent-rgb) / 0); } }
@media (prefers-reduced-motion: reduce) { .fa-box.is-copied { animation: none; } .fa-actions { transition: none; } }

/* Phones: the two buttons stay at the bottom of the screen while a long caption pushes them out of view. */
@media (max-width: 639px) {
  .fa-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -1rem; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom, 0px)); background: rgb(251 251 253 / .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}

.fa-how { margin-top: 2.5rem; }
.fa-how ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .875rem; color: #6E6E73; }
.fa-how li { display: inline-flex; align-items: center; gap: .5rem; }
.fa-how .fa-step-n { margin: 0; width: 1.375rem; height: 1.375rem; font-size: .75rem; }

html[data-theme="dark"] .fa-sub, html[data-theme="dark"] .fa-how ol { color: #98989D; }
html[data-theme="dark"] .fa-btn { background: #2C2C2E; color: #F5F5F7; }
html[data-theme="dark"] .fa-btn:hover { background: #3A3A3C; }
html[data-theme="dark"] .fa-actions:not(.is-fixed) #fix, html[data-theme="dark"] .fa-actions.is-fixed #copy { background: var(--fa-accent); color: var(--fa-on-accent); }
html[data-theme="dark"] .fa-pv-state.is-hint { color: #6E6E73; }
@media (max-width: 639px) { html[data-theme="dark"] .fa-actions { background: rgb(0 0 0 / .85); } }
.fa-btn span { white-space: nowrap; }
@media (max-width: 639px) { .fa-actions.is-fixed { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* ---------- 2.7.5: Apple-style pass ---------- */
:root { --fa-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "IBM Plex Sans Arabic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html, body, button, input, textarea { font-family: var(--fa-font); }
body { background: #FBFBFD; color: #1D1D1F; }
html[data-theme="dark"] body { background: #000; color: #F5F5F7; }

/* Frosted top bar */
.fa-bar { position: sticky; top: 0; z-index: 20; background: rgb(251 251 253 / .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .06); }
.fa-bar-in { max-width: 42rem; margin: 0 auto; height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
.fa-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: #1D1D1F; text-decoration: none; min-height: 44px; }
.fa-brand img { width: 26px; height: 26px; border-radius: 7px; }
.fa-bar-actions { display: flex; align-items: center; gap: .25rem; }
.fa-bar-btn { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 44px; min-width: 44px; padding: 0 .625rem; border-radius: 9999px; font-size: .875rem; font-weight: 500; color: #1D1D1F; text-decoration: none; transition: background-color .2s; }
.fa-bar-btn:hover { background: rgb(0 0 0 / .05); }
.fa-bar-btn svg { width: 17px; height: 17px; }
.fa-bar-icon { padding: 0; }
.theme-switch-row { display: none; }

/* Page and headline */
.fa-page { padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 2.5rem; }
@media (min-width: 640px) { .fa-page { padding-left: 1.5rem; padding-right: 1.5rem; } }
.fa-hero { text-align: center; padding: 2.5rem 0 1.75rem; }
@media (min-width: 640px) { .fa-hero { padding: 3.5rem 0 2.25rem; } }
.fa-hero h1 { font-size: clamp(2rem, 7.5vw, 3.5rem); line-height: 1.07; font-weight: 700; letter-spacing: -.035em; color: #1D1D1F; text-wrap: balance; margin: 0 auto .75rem; max-width: 14ch; }
[dir="rtl"] .fa-hero h1 { letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
.fa-hero .fa-sub { margin-bottom: 0; font-size: clamp(1rem, 2.6vw, 1.1875rem); color: #6E6E73; }

/* Softer text box: shaded card, no outline */
.fa-box { background: #fff; border-radius: 1.375rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 28px rgb(0 0 0 / .06); overflow: hidden; }
.fa-box:focus-within { box-shadow: 0 0 0 4px rgb(var(--fa-accent-rgb) / .18), 0 8px 28px rgb(0 0 0 / .06); }
.fa-box-foot { border-top: 1px solid rgb(0 0 0 / .06); }
.fa-box-tools { padding: .375rem .5rem 0; gap: 0; }
.fa-chip-btn { border: 0; min-height: 44px; padding: 0 .75rem; font-size: .8125rem; color: var(--fa-accent-text); background: none; border-radius: 9999px; }
.fa-chip-btn:hover { background: rgb(var(--fa-accent-rgb) / .07); color: var(--fa-accent-text); }
.fa-btn { min-height: 50px; font-size: .9375rem; }
.fa-link, .fa-more summary { min-height: 44px; }
.fa-links { align-items: center; }
.fa-count.is-over { color: #B25000; }
.fa-undo { margin-inline-start: .5rem; min-height: 32px; padding: 0 .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: var(--fa-accent-text); }
.fa-undo:hover { background: rgb(var(--fa-accent-rgb) / .08); }

/* iOS-style notice */
.fa-toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translate(-50%, 12px); opacity: 0; padding: .625rem 1.125rem; border-radius: 9999px; background: rgb(29 29 31 / .88); color: #fff; font-size: .875rem; font-weight: 500; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.fa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 639px) { .fa-toast { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .fa-toast { transition: none; } }

/* Dark */
html[data-theme="dark"] .fa-bar { background: rgb(22 22 23 / .72); border-color: rgb(255 255 255 / .08); }
html[data-theme="dark"] .fa-brand, html[data-theme="dark"] .fa-bar-btn, html[data-theme="dark"] .fa-hero h1 { color: #F5F5F7; }
html[data-theme="dark"] .fa-bar-btn:hover { background: rgb(255 255 255 / .08); }
html[data-theme="dark"] .fa-hero .fa-sub { color: #A1A1A6; }
html[data-theme="dark"] .fa-box { background: #1C1C1E; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }
html[data-theme="dark"] .fa-box:focus-within { box-shadow: 0 0 0 4px rgb(var(--fa-accent-rgb) / .3); }
html[data-theme="dark"] .fa-box-foot { border-color: rgb(255 255 255 / .08); }
html[data-theme="dark"] .fa-chip-btn, html[data-theme="dark"] .fa-undo { color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-count.is-over { color: #FF9F0A; }
html[data-theme="dark"] .fa-toast { background: rgb(245 245 247 / .92); color: #1D1D1F; }

/* ---------- feature request page ---------- */
.fa-hero-sm { padding-bottom: 1.5rem; }
.fa-hero-sm h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
.fa-form { display: grid; gap: .5rem; background: #fff; border-radius: 1.375rem; padding: 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 28px rgb(0 0 0 / .06); }
@media (min-width: 640px) { .fa-form { padding: 1.75rem; } }
.fa-label { font-size: .875rem; font-weight: 600; color: #1D1D1F; margin-top: .5rem; }
.fa-field { width: 100%; font-size: 1rem; line-height: 1.5; padding: .75rem .875rem; border-radius: .875rem; border: 1px solid #D2D2D7; background: #fff; color: #1D1D1F; min-height: 44px; }
.fa-field:focus { outline: none; border-color: var(--fa-accent-text); box-shadow: 0 0 0 4px rgb(var(--fa-accent-rgb) / .18); }
textarea.fa-field { resize: vertical; }
.fa-hint { font-size: .8125rem; color: #86868B; margin: 0; }
.fa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fa-form-error { margin: .25rem 0 0; font-size: .875rem; color: #C9302C; }
.fa-btn-primary { margin-top: .75rem; background: var(--fa-accent); color: var(--fa-on-accent); }
.fa-btn-primary:hover { background: var(--fa-accent-hover); }
.fa-btn-primary:disabled { opacity: .6; }
.fa-form-done { text-align: center; background: #fff; border-radius: 1.375rem; padding: 2rem 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 28px rgb(0 0 0 / .06); font-size: 1.0625rem; color: #1D1D1F; }
.fa-form-done .fa-link { margin: .5rem auto 0; }
html[data-theme="dark"] .fa-form, html[data-theme="dark"] .fa-form-done { background: #1C1C1E; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); color: #F5F5F7; }
html[data-theme="dark"] .fa-label { color: #F5F5F7; }
html[data-theme="dark"] .fa-field { background: #2C2C2E; border-color: #3A3A3C; color: #F5F5F7; }
html[data-theme="dark"] .fa-field:focus { border-color: var(--fa-accent-text); box-shadow: 0 0 0 4px rgb(var(--fa-accent-rgb) / .3); }
html[data-theme="dark"] .fa-form-error { color: #FF6961; }
html[data-theme="dark"] .fa-btn-primary { background: var(--fa-accent); }

/* ---------- FAQ page in the 2.7.5 style ---------- */
.fa-faq { gap: .625rem; }
.fa-faq-item { background: #fff; border: 0; border-radius: 1.125rem; padding: 0 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 6px 20px rgb(0 0 0 / .05); }
.fa-faq-item summary { min-height: 56px; font-size: 1rem; font-weight: 600; color: #1D1D1F; }
.fa-faq-item summary::after { color: var(--fa-accent-text); font-size: 1.375rem; }
.fa-faq-item p { font-size: 1rem; line-height: 1.65; color: #424245; padding-bottom: 1.25rem; }
.fa-back a { display: inline-flex; align-items: center; min-height: 44px; }
html[data-theme="dark"] .fa-faq-item { background: #1C1C1E; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }
html[data-theme="dark"] .fa-faq-item summary { color: #F5F5F7; }
html[data-theme="dark"] .fa-faq-item summary::after { color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-faq-item p { color: #C7C7CC; }

/* ---------- consent line, legal pages, request type ---------- */
.fa-consent { font-size: .8125rem; line-height: 1.5; color: #86868B; text-align: center; margin: -.125rem auto 0; max-width: 34rem; text-wrap: balance; }
.fa-consent a, .fa-legal a { color: var(--fa-accent-text); text-decoration: none; }
.fa-consent a:hover, .fa-legal a:hover { text-decoration: underline; }
.fa-legal { background: #fff; border-radius: 1.375rem; padding: 1.5rem 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 28px rgb(0 0 0 / .06); color: #1D1D1F; }
@media (min-width: 640px) { .fa-legal { padding: 2rem 2.25rem; } }
.fa-legal h2 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 .375rem; }
.fa-legal h2:first-child { margin-top: 0; }
.fa-legal p { font-size: 1rem; line-height: 1.65; color: #424245; max-width: 65ch; }
.fa-legal-contact { margin-top: 1.75rem; }
.fa-legal-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.fa-type { border: 0; padding: 0; margin: 0 0 .25rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fa-type legend { margin-bottom: .25rem; }
.fa-type label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; color: #1D1D1F; cursor: pointer; }
.fa-type input { width: 1.125rem; height: 1.125rem; accent-color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-consent { color: #8E8E93; }
html[data-theme="dark"] .fa-consent a, html[data-theme="dark"] .fa-legal a { color: var(--fa-accent-text); }
html[data-theme="dark"] .fa-legal { background: #1C1C1E; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); color: #F5F5F7; }
html[data-theme="dark"] .fa-legal p { color: #C7C7CC; }
html[data-theme="dark"] .fa-type label { color: #F5F5F7; }

/* ---------- brand accent, steps on phones, shorter footer ---------- */
.fa-how-note { margin: 1.25rem auto 0; text-align: center; font-size: .875rem; line-height: 1.5; color: #86868B; max-width: 34rem; text-wrap: balance; }
@media (max-width: 639px) {
  .fa-how ol { flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; gap: .625rem; }
}
.fa-foot { margin-top: 3rem; text-align: center; font-size: .8125rem; line-height: 1.5; color: #86868B; }
.fa-foot p { margin: 0; }
.fa-foot p + p { margin-top: .125rem; }
.fa-foot a { display: inline-block; padding: .375rem .125rem; }
html[data-theme="dark"] .fa-how-note, html[data-theme="dark"] .fa-foot { color: #98989D; }

/* ---------- hashtags in colour (see paint() in app.js) ---------- */
.fa-edit { position: relative; }
.fa-hl { position: absolute; top: 0; inset-inline-start: 0; box-sizing: border-box; overflow: hidden; pointer-events: none; padding: .5rem 1.25rem .75rem; font-size: 1.125rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: break-word; color: #1D1D1F; }
.fa-hl[dir="auto"] { unicode-bidi: plaintext; }
.fa-tag { color: var(--fa-accent-text); }
.fa-edit textarea { position: relative; }
.fa-edit.is-hl textarea { color: transparent; caret-color: #1D1D1F; }
.fa-edit.is-hl textarea::selection { color: transparent; background: rgb(var(--fa-accent-rgb) / .28); }
html[data-theme="dark"] .fa-hl { color: #F5F5F7; }
html[data-theme="dark"] .fa-edit.is-hl textarea { color: transparent; caret-color: #F5F5F7; }

/* ---------- emoji panel ---------- */
.fa-tools-start { margin-inline-end: auto; }
.fa-chip-btn[aria-expanded="true"] { background: rgb(var(--fa-accent-rgb) / .1); }
.fa-emoji { margin: .25rem .75rem; border-radius: 1rem; background: #F5F5F7; overflow: hidden; }
.fa-emoji-tabs { display: flex; gap: .125rem; padding: .25rem .375rem 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgb(0 0 0 / .07); }
.fa-emoji-tabs::-webkit-scrollbar { display: none; }
.fa-emoji-tabs button { flex: 1 1 0; min-width: 1.875rem; height: 2.5rem; font-size: 1.25rem; line-height: 1; border-radius: .625rem .625rem 0 0; border-bottom: 2px solid transparent; filter: grayscale(1); opacity: .6; transition: opacity .15s, filter .15s; }
.fa-emoji-tabs button:hover { opacity: 1; }
.fa-emoji-tabs button[aria-pressed="true"] { filter: none; opacity: 1; border-bottom-color: var(--fa-accent-text); }
.fa-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr)); gap: .125rem; padding: .375rem; max-height: 13rem; overflow-y: auto; overscroll-behavior: contain; }
.fa-emoji-grid button { height: 2.5rem; border-radius: .625rem; font-size: 1.375rem; line-height: 1; transition: background-color .15s; }
.fa-emoji-grid button:hover { background: #E5E5E7; }
.fa-emoji button { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
html[data-theme="dark"] .fa-emoji { background: #2C2C2E; }
html[data-theme="dark"] .fa-emoji-tabs { border-color: rgb(255 255 255 / .1); }
html[data-theme="dark"] .fa-emoji-grid button:hover { background: #3A3A3C; }
