/* Transferable account UI. Opt in with .auth-scope; no global overrides. */
.auth-scope {
  --auth-ink: #16383a;
  --auth-muted: #4f6566;
  --auth-accent: #1c746e;
  --auth-coral: #a9473d;
  --auth-error: #a62d3d;
  --auth-ok: #216347;
  --auth-line: #c6d9d2;
  color: var(--auth-ink);
  font-size: 16px;
  line-height: 1.7;
}
.auth-scope *, .auth-scope *::before, .auth-scope *::after { box-sizing: border-box; letter-spacing: 0; }
.auth-scope [hidden] { display: none !important; }
.auth-scope a { color: var(--auth-accent); text-underline-offset: 4px; }
.auth-scope button, .auth-scope input, .auth-scope select { font: inherit; }
.auth-page { width: min(1056px, calc(100% - 48px)); margin: 8px auto 0; }
.auth-page--compact { max-width: 580px; }
.auth-page--medium { max-width: 760px; }
.auth-header { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 24px; padding: 8px 0 26px; }
.auth-header__copy { min-width: 0; }
.auth-header:not(:has(.auth-art)) { grid-template-columns: minmax(0, 1fr); }
.auth-kicker { margin: 0 0 8px; color: var(--auth-coral); font-size: 14px; font-weight: 800; }
.auth-title { margin: 0; font-size: 38px; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.auth-scope .auth-title:focus, .auth-scope .auth-state h2:focus { outline: none; }
.auth-scope :is(a, button, input, summary):focus-visible { outline: 3px solid #247e77; outline-offset: 3px; }
.auth-lead { margin: 14px 0 0; max-width: 680px; color: var(--auth-muted); font-size: 17px; line-height: 1.75; }
.auth-art { display: block; width: 240px; height: 180px; max-width: 100%; object-fit: contain; }
.auth-header .auth-art { width: 200px; height: 150px; }
.auth-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 28px; list-style: none; }
.auth-progress li { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; border-bottom: 2px solid var(--auth-line); color: var(--auth-muted); font-size: 15px; }
.auth-progress__number { display: inline-grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #b7cbc3; border-radius: 50%; font-size: 13px; font-weight: 800; }
.auth-progress li[aria-current] { color: var(--auth-ink); border-bottom-color: var(--auth-accent); font-weight: 800; }
.auth-progress li[aria-current] .auth-progress__number { color: #fff; border-color: var(--auth-accent); background: var(--auth-accent); }
.auth-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 40px; row-gap: 24px; padding: 32px 36px; background: #fff; border-top: 3px solid #72b7a7; }
.auth-layout > :not(.auth-context) { grid-column: 2; min-width: 0; }
.auth-context { grid-column: 1; grid-row: 1 / span 6; padding-right: 30px; border-right: 1px solid var(--auth-line); }
.auth-context p { margin: 0 0 18px; font-size: 15px; }
.auth-context__title { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.auth-context__extra { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); }
.auth-note { padding: 16px 18px; border-left: 3px solid #cd746a; background: #fff1ed; color: #623c37; font-size: 15px; }
.auth-note p { margin: 0 0 12px; }
.auth-note p:last-child { margin-bottom: 0; }
.auth-context .auth-note { padding: 0; border: 0; background: transparent; color: var(--auth-ink); }
.auth-sheet { padding: 30px; background: #fff; border-top: 3px solid #72b7a7; }
.auth-form { display: flex; flex-direction: column; gap: 22px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.auth-field label { color: var(--auth-ink); font-size: 16px; font-weight: 800; }
.auth-field input { width: 100%; min-width: 0; height: 50px; padding: 10px 13px; border: 1px solid #829e95; border-radius: 6px; color: var(--auth-ink); background: #fff; font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.auth-field input::placeholder { color: #5b7470; }
.auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px #d5ebe4; }
.auth-field input[readonly] { background: #eff5f2; }
.auth-field input[aria-invalid="true"] { border: 2px solid var(--auth-error); }
.auth-field-err { margin: 0; color: var(--auth-error); font-size: 15px; line-height: 1.65; }
.auth-field-help, .auth-count, .auth-small { margin: 0; color: var(--auth-muted); font-size: 15px; line-height: 1.7; }
.auth-count { font-variant-numeric: tabular-nums; }
.auth-password-info { padding: 14px 16px; background: #eef5f2; border-left: 2px solid #79a799; }
.auth-password-info p + p { margin-top: 8px; }
.auth-toggle { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; align-self: flex-start; min-height: 44px; padding: 6px 0; border: 0; color: var(--auth-accent); background: transparent; cursor: pointer; font-size: 15px; font-weight: 750; }
.auth-toggle[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.auth-toggle .auth-icon { width: 20px; height: 20px; }
.auth-privacy { padding: 22px 0; border-top: 1px solid var(--auth-line); border-bottom: 1px solid var(--auth-line); }
.auth-privacy h2 { margin: 0 0 14px; font-size: 17px; line-height: 1.5; }
.auth-privacy ul { padding-left: 20px; margin: 0; color: var(--auth-muted); font-size: 15px; line-height: 1.75; }
.auth-privacy li + li { margin-top: 8px; }
.auth-privacy b { color: var(--auth-ink); font-weight: 750; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 15px; font-weight: 750; }
.auth-consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--auth-accent); flex: none; }
.auth-termslinks { color: var(--auth-muted); margin: 4px 0 0; font-size: 14px; }
.auth-termslinks a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--auth-accent); border-radius: 6px; color: #fff !important; background: var(--auth-accent); font-size: 16px; font-weight: 800; line-height: 1.5; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.auth-btn:hover { background: #155e58; border-color: #155e58; }
.auth-btn--secondary { border-color: #91ada2; color: var(--auth-accent) !important; background: #fff; }
.auth-btn--secondary:hover { color: #155e58 !important; background: #eaf4ef; border-color: #648c80; }
.auth-btn--danger { color: var(--auth-error) !important; border-color: #c6828b; background: #fff; }
.auth-btn--danger:hover { background: #fff0f2; border-color: var(--auth-error); }
.auth-btn--block { width: 100%; }
.auth-btn:disabled { color: #405851 !important; background: #dce6e0; border-color: #b3c4bb; cursor: wait; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.auth-links { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.auth-links--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; margin-top: 0; }
.auth-msg { padding: 14px 16px; border: 1px solid #c67d88; border-left-width: 4px; border-radius: 4px; color: var(--auth-error); background: #fff1f3; font-size: 15px; }
.auth-msg--success { color: var(--auth-ok); border-color: #77a88b; background: #eef8f1; }
.auth-state { padding: 26px 32px 34px; background: #fff; border-top: 3px solid #72b7a7; text-align: center; }
.auth-state .auth-art { margin: 0 auto 12px; }
.auth-state h2 { font-size: 30px; line-height: 1.35; margin: 0 0 16px; }
.auth-state p { margin: 0 0 18px; color: var(--auth-muted); overflow-wrap: anywhere; }
.auth-state .auth-actions { justify-content: center; }
.auth-state .auth-links { align-items: center; }
.auth-state .auth-msg { text-align: left; }
.auth-state .auth-btn { min-width: 170px; }
.auth-state__mail { color: var(--auth-ink); font-weight: 750; }
.auth-spinner { display: block; width: 30px; height: 30px; margin: 16px auto; border: 3px solid #d1e4dc; border-top-color: var(--auth-accent); border-radius: 50%; animation: auth-spin .8s linear infinite; }
.auth-settings { background: #fff; padding: 30px; border-top: 3px solid #72b7a7; }
.auth-divider { border: 0; border-top: 1px solid var(--auth-line); margin: 30px 0; }
.auth-settings__summary { margin: 0 0 26px; }
.auth-settings__summary > div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #dce6e0; }
.auth-settings__summary dt { color: var(--auth-muted); }
.auth-settings__summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.auth-settings details { border-top: 1px solid var(--auth-line); }
.auth-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.auth-settings summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--auth-accent); }
.auth-settings details[open] > summary::after { content: "−"; }
.auth-settings summary::-webkit-details-marker { display: none; }
.auth-settings details .auth-form { padding: 8px 0 28px; }
.auth-event { padding: 12px 0; border-top: 1px solid #dce6e0; }
.auth-event time { display: block; color: var(--auth-muted); font-size: 14px; }
.auth-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.auth-gallery figure { margin: 0; padding: 16px; border: 1px solid var(--auth-line); border-radius: 6px; background: #fff; }
.auth-gallery__image { display: grid; place-items: center; height: 190px; background: #e5eeea; }
.auth-gallery .auth-art { width: 240px; }
.auth-gallery figcaption { padding-top: 12px; font-size: 16px; font-weight: 750; }
.auth-gallery code { display: block; color: var(--auth-muted); font-size: 13px; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 240px minmax(0, 1fr); padding: 26px; column-gap: 26px; }
  .auth-context { padding-right: 22px; }
  .auth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .auth-page { width: calc(100% - 36px); margin-top: 4px; }
  .auth-header { grid-template-columns: minmax(0, 1fr) 88px; align-items: start; gap: 8px; padding: 14px 0 22px; }
  .auth-title { font-size: 28px; }
  .auth-kicker { font-size: 13px; margin-bottom: 6px; }
  .auth-lead { grid-column: 1 / -1; font-size: 16px; margin-top: 12px; }
  .auth-header__copy { display: contents; }
  .auth-header__copy > :not(.auth-lead) { grid-column: 1; }
  .auth-header .auth-art { grid-column: 2; grid-row: 1 / 3; width: 88px; height: 66px; align-self: center; }
  .auth-progress { gap: 10px; margin-bottom: 20px; }
  .auth-progress li { display: block; font-size: 14px; padding-bottom: 10px; }
  .auth-progress__number { margin-right: 6px; width: 24px; height: 24px; }
  .auth-layout { display: flex; flex-direction: column; gap: 24px; padding: 24px 18px; }
  .auth-layout > .auth-email { order: -1; }
  .auth-layout > .auth-msg { order: -2; }
  .auth-context { border-right: 0; padding: 0 0 20px; border-bottom: 1px solid var(--auth-line); }
  .auth-context .auth-note { border-left: 3px solid #cd746a; padding-left: 14px; }
  .auth-context__extra { padding-top: 18px; margin-top: 18px; }
  .auth-sheet, .auth-settings { padding: 24px 18px; }
  .auth-state { padding: 24px 18px; }
  .auth-state h2 { font-size: 25px; }
  .auth-state .auth-art { width: 176px; height: 132px; }
  .auth-actions > .auth-btn { flex: 1 1 160px; }
  .auth-settings__summary > div { grid-template-columns: 1fr; gap: 4px; }
  .auth-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-scope *, .auth-scope *::before, .auth-scope *::after { animation: none !important; transition: none !important; }
}
