/* unidash.food account deletion pages (2026-10-14; plainer with the site's 2026-11-04 redesign):
   delete.html and delete-account.html.
   Loaded AFTER each page's own <style>, and only restyles: fonts, colours, corners, focus. It never
   changes what is shown or hidden (the flow's .hidden steps, its buttons and its messages), because
   App Review completes a deletion on this page. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/assets/fonts/epilogue-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

body {
  font-family: "Inter", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #F4F5F9;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body[dir="rtl"] { font-family: "Plex Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif; }
.wrap { padding-top: 48px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px;
  font: 600 0.95rem/1 "Epilogue", "Inter", sans-serif; letter-spacing: -0.02em;
  background: #1533BF; color: #fff;
}
.brand::before { content: ""; width: 22px; height: 22px; border-radius: 5px; background: #fff url("/brand/favicon.svg") center / 18px no-repeat; }
body[dir="rtl"] .brand { padding: 6px 6px 6px 12px; }
h1 { font-family: "Epilogue", "Inter", "Plex Arabic", sans-serif; font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
body[dir="rtl"] h1 { font-family: "Plex Arabic", sans-serif; letter-spacing: 0; line-height: 1.4; }
.card {
  border-radius: 10px; padding: 24px; border-color: #E3E6EB; box-shadow: none;
}
.steps { font-weight: 600; color: #1533BF; }
input[type=email], input[type=password], input[type=text], textarea, select {
  border-radius: 8px; background: #fff; border-color: #D3D8E0; padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: #1533BF; background: #fff; box-shadow: 0 0 0 3px rgba(21, 51, 191, 0.14); }
button { border-radius: 8px; padding: 14px 18px; transition: background 0.15s; }
.primary { background: #1533BF; }
.primary:not(:disabled):hover { background: #0C2494; }
.ghost { border-color: #D3D8E0; }
.ghost:not(:disabled):hover { background: #F4F5F7; }
button:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible { outline: 2px solid #1533BF; outline-offset: 3px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #1533BF; }
.warn { border-radius: 8px; }
footer { border-color: rgba(17, 24, 39, 0.1); }

@media (prefers-color-scheme: dark) {
  body { background: #0B1020; }
  .card { background: #0F1638; border-color: rgba(255, 255, 255, 0.09); box-shadow: none; }
  .steps { color: #8CA1FF; }
  input[type=email], input[type=password], input[type=text], textarea, select { background: #0B1230; border-color: rgba(255, 255, 255, 0.12); }
  input:focus, textarea:focus { background: #0B1230; border-color: #8CA1FF; box-shadow: 0 0 0 4px rgba(140, 161, 255, 0.2); }
  .ghost:not(:disabled):hover { background: #18215A; }
  footer { border-color: rgba(255, 255, 255, 0.1); }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

/* delete.html fills its text from script that runs only once supabase-js has arrived from the CDN,
   so the empty heading and form painted first and then jumped down (CLS 0.31 before this restyle).
   Keep everything under the badge unpainted until the heading has its text. The animation shows it
   after 4 s whatever happens, so a failed script can never leave the page blank. */
.wrap:has(> h1:empty) > :not(.brand) { visibility: hidden; animation: ud-show 0s 4s forwards; }
@keyframes ud-show { to { visibility: visible; } }
