html.hosted-auth-pending body > :not(#hostedAuthRoot) { visibility: hidden; }
html.hosted-auth-pending, html.hosted-auth-pending body { min-height: 100%; margin: 0; background: #07131d; }
.hosted-auth-root {
  position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  overflow: auto; padding: 24px; color: #eaf4ff;
  background: #07131d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hosted-auth-root[hidden] { display: none; }
.hosted-auth-root.hosted-account-open { justify-content: flex-start; }
.hosted-mfa-continue { width: min(100%, 520px); }
.hosted-auth-brand {
  flex: 0 0 auto; width: min(620px, calc(100vw - 32px)); height: clamp(92px, 16vh, 150px);
  display: grid; place-items: center; overflow: visible;
}
.hosted-auth-brand img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
  filter: none; opacity: 1;
}
.hosted-auth-panel {
  width: min(440px, calc(100vw - 32px)); border: 1px solid #2c4e66;
  border-radius: 8px; padding: 24px; background: #0d2130; box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}
.hosted-auth-root .hosted-auth-panel h1,
.hosted-auth-root .hosted-auth-panel h2 {
  display: block; grid-template-columns: none; gap: 0; max-width: none; min-width: 0;
  margin-top: 0; font-size: 24px; line-height: 1.2; letter-spacing: 0; overflow: visible;
}
.hosted-auth-panel h1, .hosted-auth-panel h2, .hosted-auth-panel p { margin-top: 0; }
.hosted-auth-title { white-space: nowrap; }
.hosted-auth-panel p { color: #a9bdcc; line-height: 1.5; }
.hosted-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; padding: 4px;
  border: 1px solid #254459; border-radius: 7px; background: #081824;
}
.hosted-auth-tabs button, .hosted-auth-panel button, .hosted-auth-panel input { min-height: 44px; border-radius: 6px; font: inherit; }
.hosted-auth-tabs button { border: 0; color: #9fb5c4; background: transparent; cursor: pointer; }
.hosted-auth-tabs button.active { color: #fff; background: #1c4770; }
.hosted-auth-form { display: grid; gap: 14px; }
.hosted-auth-form label { display: grid; gap: 6px; color: #cad8e2; font-size: 14px; font-weight: 700; }
.hosted-auth-form input { box-sizing: border-box; width: 100%; border: 1px solid #31546d; padding: 10px 12px; color: #f6fbff; background: #071723; }
.hosted-auth-form input:focus { outline: 2px solid #3b92f0; outline-offset: 1px; }
.hosted-auth-submit {
  border: 1px solid #25bd89; padding: 10px 16px; color: #03251b; background: #38d39f; font-weight: 800; cursor: pointer;
}
.hosted-auth-submit:disabled { cursor: wait; opacity: .65; }
.hosted-auth-status { min-height: 22px; margin: 0; color: #a9bdcc; font-size: 14px; }
.hosted-auth-status.error { color: #ff8585; }
.hosted-auth-status.success { color: #4ee2ac; }
.hosted-captcha { min-height: 65px; }
.hosted-auth-account {
  box-sizing: border-box; width: min(720px, calc(100vw - 32px)); margin: 0 auto; padding: 20px;
  color: #eaf4ff; background: #0d2130;
}
.hosted-auth-account h2, .hosted-auth-account h3, .hosted-auth-account p { margin-top: 0; }
.hosted-auth-account h2 { margin-bottom: 2px; font-size: 20px; }
.hosted-auth-account h3 { margin-bottom: 8px; font-size: 15px; }
.hosted-auth-account button,
.hosted-auth-account input,
.hosted-auth-account select {
  min-height: 36px; border-radius: 6px; font: inherit;
}
.hosted-auth-account button {
  border: 1px solid #31546d; padding: 7px 12px; color: #dbe8f0;
  background: #112c3f; font-size: 12px; font-weight: 720; cursor: pointer;
}
.hosted-auth-account button:hover { border-color: #4a78a0; color: #fff; background: #16364d; }
.hosted-auth-account .hosted-button-primary {
  border-color: #2c9c79; color: #eafff7; background: #176b55;
}
.hosted-auth-account .hosted-button-primary:hover { border-color: #45c698; background: #1c7c62; }
.hosted-auth-account .hosted-button-secondary { color: #c8d9e5; background: #0c2231; }
.hosted-auth-account .hosted-button-quiet { color: #9db2c1; background: transparent; }
.hosted-account-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #28475c; padding-bottom: 12px;
}
.hosted-account-header p { margin-bottom: 0; font-size: 13px; }
.hosted-account-eyebrow {
  margin: 0 0 4px !important; color: #4a9bff !important; font-size: 11px !important;
  font-weight: 820; text-transform: uppercase;
}
.hosted-auth-account .hosted-icon-button {
  flex: 0 0 36px; width: 36px; padding: 0; color: #a9bdcc; font-size: 15px;
}
.hosted-profile-form { display: grid; gap: 12px; margin-top: 14px; }
.hosted-profile-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.hosted-profile-side { display: grid; gap: 8px; }
.hosted-profile-preview {
  position: relative; display: grid; place-items: center; width: 150px; min-height: 164px;
  aspect-ratio: .92 / 1; overflow: hidden; border: 1px solid #31546d; border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,34,48,.88), rgba(7,19,29,.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 10px 28px rgba(0,0,0,.24);
  touch-action: none;
}
.hosted-profile-preview span { color: #8299aa; font-size: 12px; font-weight: 760; }
.hosted-profile-preview.has-image { cursor: grab; }
.hosted-profile-preview.dragging { cursor: grabbing; border-color: #58a5ef; }
.hosted-profile-preview.has-image span { display: none; }
.hosted-profile-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  transform-origin: center; user-select: none; pointer-events: none; will-change: transform;
}
.hosted-profile-preview img[hidden] { display: none; }
.hosted-profile-fields { display: grid; gap: 8px; min-width: 0; }
.hosted-profile-fields label,
.hosted-timeout-field,
.hosted-profile-zoom label {
  display: grid; gap: 4px; color: #cad8e2; font-size: 12px; font-weight: 700;
}
.hosted-profile-fields input,
.hosted-timeout-field select {
  box-sizing: border-box; width: 100%; border: 1px solid #31546d; padding: 7px 10px;
  color: #f6fbff; background: #071723;
}
.hosted-profile-fields input[readonly] { color: #a1b5c4; background: #0a1b28; cursor: default; }
.hosted-profile-fields small { color: #8fa5b5; font-size: 11px; line-height: 1.35; }
.hosted-profile-zoom { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.hosted-profile-zoom output { justify-self: end; color: #91a9b9; font-size: 11px; font-weight: 760; }
.hosted-profile-zoom input { grid-column: 1 / -1; min-height: 20px; padding: 0; }
.hosted-profile-fields .hosted-button-quiet { justify-self: start; min-height: 30px; padding: 4px 8px; }
.hosted-timeout-field { gap: 5px; }
.hosted-timeout-field select { min-height: 38px; }
.hosted-profile-form > .hosted-button-primary { width: 100%; }
.hosted-account-section, .hosted-robinhood-section, .hosted-delete-section {
  margin: 14px 0 0; border-top: 1px solid #28475c; padding-top: 14px;
}
.hosted-account-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px;
}
.hosted-account-facts div {
  display: grid; gap: 2px; min-width: 0; border: 1px solid #254459; border-radius: 6px;
  padding: 8px 9px; background: #0a1c29;
}
.hosted-account-facts dt { color: #839cad; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.hosted-account-facts dd { margin: 0; color: #d9e6ee; font-size: 12px; overflow-wrap: anywhere; }
.hosted-compact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hosted-account-details { margin-top: 9px; border-top: 1px solid rgba(49,84,109,.55); padding-top: 8px; }
.hosted-account-details summary, .hosted-delete-section summary {
  color: #b8cad6; font-size: 12px; font-weight: 760; cursor: pointer;
}
.hosted-account-details code { display: block; margin-top: 8px; color: #8299aa; font-size: 11px; overflow-wrap: anywhere; }
.hosted-inline-form { display: grid; gap: 10px; margin: 12px 0; }
.hosted-inline-form label { display: grid; gap: 6px; color: #cad8e2; font-size: 13px; font-weight: 700; }
.hosted-inline-form input { box-sizing: border-box; width: 100%; border: 1px solid #31546d; padding: 9px 11px; color: #f6fbff; background: #071723; }
.hosted-mfa-code-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.hosted-mfa-code-fieldset legend {
  width: 100%; margin-bottom: 8px; color: #cad8e2; font-size: 13px; font-weight: 700; text-align: center;
}
.hosted-mfa-code-inputs {
  display: grid; grid-template-columns: repeat(6, 42px); justify-content: center; gap: 8px;
}
.hosted-inline-form .hosted-mfa-digit {
  width: 42px; height: 46px; border-radius: 5px; padding: 0; text-align: center;
  font-size: 22px; font-weight: 800; line-height: 1;
}
.hosted-inline-form .hosted-mfa-digit:focus {
  border-color: #42a5ff; outline: 2px solid rgba(66,165,255,.3); outline-offset: 1px;
}
.hosted-mfa-verify { width: min(220px, 100%); justify-self: center; }
.hosted-mfa-qr { display: block; width: 180px; max-width: 100%; margin: 12px auto; padding: 8px; background: #fff; }
.hosted-mfa-secret { overflow-wrap: anywhere; font-size: 12px; }
.hosted-robinhood-section p { margin: 0 0 10px; color: #9fb1c1; font-size: 12px; }
.hosted-robinhood-section button { width: auto; }
.hosted-oauth-admin-diagnostic {
  display: block; margin-top: 8px; color: #8195a8; font-size: 12px; font-weight: 600;
}
.hosted-delete-section > div { padding-top: 7px; }
.hosted-delete-section p { margin-bottom: 8px; font-size: 12px; }
.hosted-auth-account .hosted-danger-button { border-color: #a63f4a; color: #fff; background: #7f2632; }
.hosted-auth-account button:disabled { cursor: wait; opacity: .65; }
.hosted-account-footer {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px;
  border-top: 1px solid #28475c; padding-top: 12px;
}
.hosted-account-loading { width: min(440px, calc(100vw - 32px)); }
body.hosted-read-only #liveModeBtn,
body.hosted-read-only #quickKillSwitchBtn,
body.hosted-read-only #robinhoodListsCard,
body.hosted-read-only .toolbar-queue-button,
body.hosted-read-only [data-category="queue"] { display: none !important; }
body.hosted-read-only #modeLabel { font-size: 0; }
body.hosted-read-only #modeLabel::before { content: "Paper only"; font-size: 13px; }
@media (max-width: 560px) {
  .hosted-auth-root { justify-content: flex-start; gap: 8px; padding: 10px 16px 16px; }
  .hosted-auth-brand { width: min(480px, calc(100vw - 24px)); height: 104px; }
  .hosted-auth-panel { padding: 18px; }
  .hosted-auth-root .hosted-auth-panel h1,
  .hosted-auth-root .hosted-auth-panel h2 { font-size: 22px; }
  .hosted-auth-account { padding: 16px; }
  .hosted-profile-grid { grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
  .hosted-profile-preview { width: 116px; min-height: 126px; }
  .hosted-account-facts { grid-template-columns: 1fr; }
  .hosted-account-footer { justify-content: stretch; }
  .hosted-account-footer button { flex: 1; }
}
@media (max-width: 390px) {
  .hosted-auth-root .hosted-auth-panel h1,
  .hosted-auth-root .hosted-auth-panel h2 { font-size: 18px; }
  .hosted-profile-grid { grid-template-columns: 1fr; }
  .hosted-profile-side { justify-items: center; }
  .hosted-profile-preview { width: 140px; min-height: 152px; }
  .hosted-profile-side button { width: 140px; }
}
@media (max-width: 420px) {
  .hosted-mfa-code-inputs { grid-template-columns: repeat(6, 36px); gap: 5px; }
  .hosted-inline-form .hosted-mfa-digit { width: 36px; height: 42px; font-size: 20px; }
}
