/* Isolated styles keep account forms identical in the app and workspace. */
dialog.sho-auth {
  box-sizing: border-box; width: min(464px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--sho-line); border-top: 3px solid var(--sho-orange); border-radius: 8px;
  color: var(--sho-ink); background: var(--sho-white); box-shadow: 0 24px 80px #232B312E;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: 0;
}
.sho-auth::backdrop { background: rgb(35 43 49 / 48%); }
.sho-auth *, .sho-auth *::before, .sho-auth *::after { box-sizing: border-box; letter-spacing: 0; }
.sho-auth [hidden] { display: none !important; }
.sho-auth button, .sho-auth input { font: inherit; }
.sho-auth button { cursor: pointer; }
.sho-auth button:disabled { cursor: wait; opacity: .65; }
.sho-auth button:focus-visible, .sho-auth input:focus-visible { outline: 2px solid var(--sho-teal); outline-offset: 3px; }
.sho-auth-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 28px 0 36px; }
.sho-auth-top img { width: 142px; height: auto; display: block; }
.sho-auth .sho-auth-close, .sho-auth .sho-auth-reveal { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; color: var(--sho-muted); background: transparent; flex: 0 0 40px; }
.sho-auth .sho-auth-close:hover, .sho-auth .sho-auth-reveal:hover { background: var(--sho-soft); color: var(--sho-teal); }
.sho-auth-content { padding: 26px 36px 30px; }
.sho-auth header { margin: 0 0 28px; }
.sho-auth h1 { font-size: 26px; font-weight: 650; line-height: 1.25; margin: 0 0 8px; color: var(--sho-ink); }
.sho-auth #sho-auth-intro { margin: 0; color: var(--sho-muted); font-size: 14px; }
.sho-auth fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.sho-auth label { display: block; font-size: 14px; font-weight: 600; color: var(--sho-ink); }
.sho-auth input { display: block; width: 100%; min-width: 0; height: 48px; padding: 11px 14px; margin: 8px 0 20px; border: 1px solid #B6C3CB; border-radius: 6px; background: var(--sho-white); color: var(--sho-ink); font-size: 16px; line-height: 24px; box-shadow: none; }
.sho-auth input::placeholder { color: var(--sho-muted); }
.sho-auth input:hover { border-color: var(--sho-teal); }
.sho-auth input:disabled { background: var(--sho-soft); }
.sho-auth-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sho-auth .sho-auth-link { border: 0; padding: 0; background: transparent; color: var(--sho-teal); font-size: 14px; font-weight: 600; line-height: 1.5; }
.sho-auth .sho-auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sho-auth-password { position: relative; }
.sho-auth-password input { padding-right: 52px; margin-bottom: 0; }
.sho-auth .sho-auth-reveal { position: absolute; top: 4px; right: 4px; }
.sho-auth-hint { color: var(--sho-muted); font-size: 12px; margin: 8px 0 0; }
.sho-auth-message { padding: 12px 14px; margin: 18px 0 0; border-left: 3px solid var(--sho-orange); background: var(--sho-orange-soft); color: var(--sho-ink); overflow-wrap: anywhere; }
.sho-auth-message[data-tone=success] { background: var(--sho-blue-soft); border-color: var(--sho-teal); }
.sho-auth .sho-auth-primary, .sho-auth .sho-auth-google { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border-radius: 6px; font-weight: 600; font-size: 15px; line-height: 22px; }
.sho-auth .sho-auth-primary { margin-top: 24px; border: 1px solid var(--sho-teal); color: var(--sho-white); background: var(--sho-teal); }
.sho-auth .sho-auth-primary:hover:not(:disabled) { background: #066787; }
.sho-auth .sho-auth-google { border: 1px solid #B6C3CB; background: var(--sho-white); color: var(--sho-ink); }
.sho-auth .sho-auth-google:hover:not(:disabled) { border-color: var(--sho-teal); background: var(--sho-blue-soft); }
.sho-auth-google i { font-size: 18px; color: var(--sho-teal); }
.sho-auth-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--sho-muted); font-size: 12px; }
.sho-auth-divider::before, .sho-auth-divider::after { content: ''; height: 1px; background: var(--sho-line); flex: 1; }
.sho-auth-switch { margin: 24px 0 0; text-align: center; color: var(--sho-muted); }
.sho-auth-switch:empty { display: none; }
.sho-auth-footer { padding: 16px 24px; border-top: 1px solid var(--sho-line); background: var(--sho-soft); text-align: center; }
.sho-auth .sho-auth-back { border: 0; background: transparent; color: var(--sho-muted); padding: 4px 8px; font-size: 13px; }
.sho-auth .sho-auth-back:hover { color: var(--sho-teal); }
.sho-auth-sent-icon { display: block; color: var(--sho-teal); font-size: 28px; margin-bottom: 18px; }
.sho-auth-email { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  dialog.sho-auth { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .sho-auth-top { padding: 20px 16px 0 24px; }
  .sho-auth-content { padding: 24px; }
  .sho-auth h1 { font-size: 24px; }
  .sho-auth-top img { width: 128px; }
}
@media (prefers-reduced-motion: no-preference) { .sho-auth button { transition: background-color .15s, border-color .15s; } }
