/* Phone sign-in blocks added by phone.js (console and AI workspace). Served only while the site offers phone sign-in.
 * Every rule is scoped to the yxp- classes, so the pages' own styles are unchanged. Colours follow the pages' custom
 * properties where they exist and fall back to neutral values. */
.yxp-switch { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 10px; background: var(--surface-2, rgba(127, 127, 127, .12)); }
.yxp-switch button { flex: 1 1 0; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.yxp-switch button[aria-pressed="true"] { background: var(--surface, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.yxp-switch button:focus-visible, .yxp-form button:focus-visible, .yxp-form input:focus-visible, .yxp-form select:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.yxp-form { display: grid; gap: 12px; }
.yxp-form[hidden], #auth-form[hidden], .yxp-form .yxp-field[hidden] { display: none !important; }
.yxp-field { display: grid; gap: 6px; }
.yxp-field label { font-weight: 600; }
.yxp-field input, .yxp-field select { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, rgba(127, 127, 127, .4)); border-radius: 8px; background: var(--surface, transparent); color: inherit; font: inherit; font-size: 16px; }
.yxp-line { display: flex; gap: 8px; align-items: stretch; }
.yxp-line select { flex: 0 1 46%; width: auto; min-width: 0; }
.yxp-line input { flex: 1 1 auto; min-width: 0; }
.yxp-cc { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line, rgba(127, 127, 127, .4)); border-radius: 8px; font-variant-numeric: tabular-nums; }
.yxp-code { display: flex; gap: 8px; }
.yxp-code input { flex: 1 1 auto; min-width: 0; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.yxp-code button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line, rgba(127, 127, 127, .4)); border-radius: 8px; background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.yxp-code button:disabled { opacity: .6; cursor: default; }
.yxp-submit { min-height: 44px; }
.yxp-hint, .yxp-help, .yxp-note { margin: 0; font-size: .875em; opacity: .75; }
.yxp-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9em; }
.yxp-consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.yxp-status:empty, .yxp-error:empty { display: none; }
.yxp-status { color: var(--success, #15803d); }
.yxp-error { color: var(--danger, #b91c1c); }
.yxp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yxp-panel .yxp-current { font-weight: 600; }
@media (max-width: 480px) {
  .yxp-line { flex-direction: column; }
  .yxp-line select { flex: 1 1 auto; width: 100%; }
}
