/* account.duxels.com — the page's own layout. The header and the footer are the common ones of duxels-shared (the Worker puts them in, src/site-chrome.js) and bring their own
   stylesheet, /shared/<version>/chrome/chrome.css, which loads AFTER this one: it has the palette (:root --bg --fg --mut --ia --line), the box model, the links, the header, the language
   menu and the footer. What the page used to get from duxels.com/mundo/mundo.css and the shared sheet does not carry is here: the document's background, type and resets,
   and the width of the page's body (.privacy-main). This file also lays out the Clerk area and our profile pages. The classes privacy-page / account-page are the
   shell's (the header's solid bar and the labels of its buttons come from them). */
html { background: var(--bg); color-scheme: dark; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: transparent; color: var(--fg); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { position: relative; z-index: 1; }
.privacy-page { background: radial-gradient(ellipse at 70% 0%, var(--bg2), var(--bg) 42%) fixed; }
.privacy-main { width: min(100% - 40px, 860px); margin: 0 auto; padding: max(112px, calc(88px + env(safe-area-inset-top))) 0 max(64px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .privacy-main { width: calc(100% - 32px); padding-top: max(94px, calc(80px + env(safe-area-inset-top))); } }
.account-main { display: flex; justify-content: center; align-items: flex-start; min-height: 60vh; }
#app { width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.status { color: var(--mut); text-align: center; margin-top: 12vh; max-width: 32rem; }
/* the header menu's sign-out could not be done (public/account-menu.js): a notice under the header for a few seconds */
.menu-error { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: min(92vw, 32rem); margin: 0; padding: 10px 16px; border-radius: 10px; background: #2a1620; border: 1px solid #f0392f; color: #ffd9d6; text-align: center; font-size: .9rem; }
/* our pages inside Clerk's UserProfile */
.dx-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 28rem; }
.dx-form h2 { margin: 0 0 6px; font-size: 1.1rem; }
.dx-form label { font-weight: 600; font-size: .9rem; }
.dx-form input[type="date"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  color-scheme: dark;
}
.dx-help { margin: 0; color: var(--mut); font-size: .9rem; }
.dx-btn {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dx-btn:disabled { opacity: .6; cursor: progress; }
.dx-btn:focus-visible { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-note { margin: 0; min-height: 1.5em; color: var(--mut); font-size: .9rem; }
.dx-plans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dx-plan { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; box-sizing: border-box; }
.dx-plan-name { margin: 0; }
.dx-badge { margin-left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #f0b429; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.dx-select {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit;
  color-scheme: dark; max-width: 100%;
}
.dx-select:focus-visible, .dx-check input:focus-visible + span { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.dx-check input { accent-color: var(--ia); width: 16px; height: 16px; }
.dx-check input:disabled + span { opacity: .45; }
.dx-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
/* phones and tablets: icon-only buttons, as on duxels.com (privacy-page keeps labels for its single button) */
@media (max-width: 900px) {
  .account-page .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .account-page .top .ico .lbl { display: none; }
}
/* email preferences: the Notificaciones page and the boxes under the sign-up form */
.dx-pref { display: flex; flex-direction: column; gap: 2px; }
.dx-pref .dx-help { padding-left: 24px; }
#app.dx-signup { flex-direction: column; align-items: center; gap: 16px; }
.dx-signup-prefs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; width: min(100%, 25rem); box-sizing: border-box; }
.dx-signup-prefs legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }

.dx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* «Suscripciones y pagos»: the link to the payments center (payment.duxels.com) shown for a moment before the redirect */
.dx-to-payments { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
