/* The Dixith account's screens, the same in every Dixith app.
 * MASTER COPY: Cowork/dixith-labs-design/account/ui/dx-ui.css (with dx-ui.js).
 * Built only from the family tokens every app defines (dixith-labs-design/
 * tokens.css), so each app shows it in its own accent and theme.
 * Red (--late) appears only on the two delete screens.
 */

.dxa { font-family: var(--font, inherit); color: var(--ink); text-align: left; }
.dxa *, .dxa *::before, .dxa *::after { box-sizing: border-box; }
.dxa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dxa b { font-weight: 650; }
.dxa [hidden] { display: none !important; }

/* ---------- the parts ---------- */
.dxa-card {
  background: var(--surface); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.dxa-cap { margin: 0 0 12px; font: 700 12.5px/1.2 var(--font, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.dxa-label { display: block; margin: 14px 2px 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dxa-label:first-child { margin-top: 0; }
.dxa-field {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; margin: 0;
  font: 400 16px/1.3 var(--font, inherit); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.dxa-field::placeholder { color: var(--ink-3); }
.dxa-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dxa-pw { position: relative; }
.dxa-pw .dxa-field { padding-right: 52px; }
.dxa-eye {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 11px; color: var(--ink-2); cursor: pointer;
}
.dxa-eye:hover { background: var(--hover); }

.dxa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 13px; cursor: pointer;
  font: 600 15px/1.2 var(--font, inherit); text-align: center; text-decoration: none;
  transition: transform .12s, background .15s, box-shadow .15s, opacity .15s;
}
.dxa-btn:active { transform: scale(.97); }
.dxa-btn:disabled { opacity: .45; cursor: default; transform: none; }
.dxa-btn:focus-visible, .dxa-link:focus-visible, .dxa-quiet-link:focus-visible, .dxa-eye:focus-visible, .dxa-row[data-run]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.dxa-big { min-height: 52px; font-size: 16px; border-radius: 15px; padding: 0 20px; width: 100%; }
.dxa-wide { width: 100%; }
.dxa-small { min-height: 34px; padding: 0 13px; font-size: 14px; border-radius: 11px; }
@media (pointer: coarse) { .dxa-small { min-height: 44px; } }   /* touch targets: 44 px on touch screens (design standard 1.2) */
.dxa-primary {
  color: var(--on-accent); background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.dxa-soft { color: var(--accent-ink); background: var(--accent-soft); }
.dxa-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.dxa-ghost:hover { background: var(--hover); }
.dxa-danger { color: var(--on-accent); background: var(--late); }
.dxa-link {
  display: block; width: 100%; min-height: 44px; padding: 10px 4px; margin: 0;
  background: none; border: 0; cursor: pointer;
  font: 600 15px/1.3 var(--font, inherit); color: var(--accent-ink); text-align: center;
}
.dxa-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.dxa-err { margin: 12px 2px 0; font-size: 14px; line-height: 1.45; color: var(--late); }
.dxa-err.dxa-ok { color: var(--ink-2); }
.dxa-help { margin: 14px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.dxa-help b { color: var(--ink); }
.dxa-fine { margin: 14px 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.dxa-fine.dxa-left { text-align: left; margin: 12px 0 0; }
.dxa-fine a { color: var(--accent-ink); }
.dxa-note { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- the sign-in screen ---------- */
.dxa-signin { max-width: 440px; margin: 0 auto; padding: 8px 0 28px; }
.dxa-head { text-align: center; margin: 6px 4px 18px; }
.dxa-icon { display: block; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.dxa-title { margin: 0 0 8px; font: 700 30px/1.1 var(--display, Georgia, serif); letter-spacing: -.015em; color: var(--ink); }
.dxa-why { margin: 0 auto; max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dxa-why b { color: var(--ink); }
.dxa-form .dxa-big { margin-top: 14px; }
.dxa-form .dxa-ghost.dxa-big { margin-top: 10px; }
.dxa-here p:first-child { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dxa-here p b { color: var(--ink); overflow-wrap: anywhere; }
.dxa-here .dxa-btn { overflow-wrap: anywhere; white-space: normal; }
.dxa-here .dxa-link { margin-top: 6px; }
.dxa-notnow { margin-top: 8px; }
.dxa-code { font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.dxa-code::placeholder { letter-spacing: .3em; }
.dxa-code-row { display: flex; gap: 8px; align-items: stretch; }
.dxa-code-row .dxa-field { flex: 1 1 auto; min-width: 0; }
.dxa-paste { flex: none; min-height: 50px; }
.dxa-links { display: flex; gap: 8px; margin-top: 6px; }
.dxa-links .dxa-link { flex: 1 1 0; font-size: 14px; }

/* ---------- Continue with Google (17 October 2026). Google's branding: a plain button, its four-colour G
   unchanged, the words "Continue with Google". In a browser Google draws its own button in the box. */
.dxa-google { display: flex; justify-content: center; min-height: 44px; }
.dxa-google[hidden], .dxa-or[hidden] { display: none; }
.dxa-gbtn { color: #1F1F1F; background: #FFFFFF; box-shadow: inset 0 0 0 1px #747775; font-family: Roboto, var(--font, inherit); font-weight: 500; }
.dxa-gbtn:hover { background: #F7F8F8; }
.dxa-g { width: 20px; height: 20px; flex: none; }
:root[data-theme="dark"] .dxa-gbtn, :root.auto-dark .dxa-gbtn { color: #E3E3E3; background: #131314; box-shadow: inset 0 0 0 1px #8E918F; }
.dxa-or { display: flex; align-items: center; gap: 12px; margin: 16px 2px 6px; font-size: 13px; color: var(--ink-2); }
.dxa-or::before, .dxa-or::after { content: ''; flex: 1 1 0; height: 1px; background: var(--line-2); }

/* ---------- the Account card ---------- */
.dxa-account { margin: 14px 0 18px; }
.dxa-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dxa-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 700 19px/1 var(--display, Georgia, serif); color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
}
.dxa-avatar-off { color: var(--ink-2); background: var(--bg-2, var(--hover)); }
.dxa-who-t { min-width: 0; flex: 1; }
.dxa-who-t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxa-who-t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.dxa-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.dxa-btns .dxa-btn svg { width: 17px; height: 17px; }
.dxa-rows { margin: 10px 0 14px; }
.dxa-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-top: 1px solid var(--line); }
.dxa-row[data-run] { cursor: pointer; }
.dxa-row-ic { flex: none; width: 22px; color: var(--ink-2); display: grid; place-items: center; }
.dxa-row-t { flex: 1; min-width: 0; }
.dxa-row-t b { display: block; font-size: 15px; font-weight: 600; }
.dxa-row-t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.dxa-chev { color: var(--ink-3); }
.dxa-chev svg { width: 18px; height: 18px; }
.dxa-account > .dxa-primary, .dxa-account > .dxa-link { margin-top: 14px; }
.dxa-account > .dxa-link { margin-top: 4px; }
.dxa-account .dxa-note { margin-top: 14px; }
.dxa-account .dxa-who + .dxa-primary { margin-top: 16px; }

/* The ways to delete: at the very end, small and grey (not red, not a
   button), so nobody taps one by mistake. The red waits on the next screen. */
.dxa-quiet { margin: 16px -4px 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.dxa-quiet-link {
  min-height: 40px; padding: 8px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 13.5px/1.35 var(--font, inherit); color: var(--ink-2);
}
.dxa-quiet-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sheets: sign out, delete, password ---------- */
.dxa-sheet { padding: 2px 0 4px; }
.dxa-sheet-title { margin: 4px 0 14px; font: 700 21px/1.2 var(--display, Georgia, serif); color: var(--ink); }
.dxa-body { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dxa-body b { color: var(--ink); overflow-wrap: anywhere; }
.dxa-caution { margin: 0 0 14px; padding: 12px 14px; border-radius: 13px; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg-2, var(--hover)); }
.dxa-choices { display: grid; gap: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.dxa-choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.dxa-choice + .dxa-choice { border-top: 1px solid var(--line); }
.dxa-choice input { flex: none; width: 21px; height: 21px; margin: 1px 0 0; accent-color: var(--accent); }
.dxa-choice b { display: block; font-weight: 600; color: var(--ink); }
.dxa-choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.dxa-choice:has(input:checked) { background: var(--accent-soft); }
.dxa-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.dxa-actions .dxa-link { margin-top: -2px; }
.dxa-extra { margin: 16px 0 0; }
.dxa-extra p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* The one place with red: what cannot be undone. */
.dxa-warn {
  display: flex; gap: 10px; align-items: center; margin: 0 0 14px; padding: 12px 14px; border-radius: 13px;
  color: var(--late); background: color-mix(in srgb, var(--late) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--late) 30%, transparent);
}
.dxa-warn b { font-size: 15px; line-height: 1.4; font-weight: 700; }
.dxa-tick { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.dxa-tick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--late); }
.dxa-delete .dxa-field { margin-bottom: 2px; }

/* ---------- the first screen ---------- */
.dxa-welcome { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 12px; }
.dxa-welcome .dxa-link { margin-top: -2px; }

@media (prefers-reduced-motion: reduce) {
  .dxa-btn, .dxa-field { transition: none; }
  .dxa-btn:active { transform: none; }
}
