[hidden] { display: none !important; }

.hosted-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: #f4f2ed;
  color: #212b39;
}

.hosted-auth-card {
  width: min(100%, 452px);
  padding: 36px;
  border: 1px solid #e4e0d8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(37 45 56 / 10%);
}

.hosted-auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #202a38; text-decoration: none; font-size: 18px; }
.hosted-auth-brand img { display: block; }
.hosted-auth-panel { margin-top: 28px; }
.hosted-auth-eyebrow { margin: 0 0 8px; color: #67738a; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hosted-auth-panel h1 { margin: 0; color: #1f2937; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.hosted-auth-intro { margin: 10px 0 22px; color: #687386; font-size: 14px; line-height: 1.6; }
.hosted-auth-google { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #d9dfe8; border-radius: 10px; color: #263348; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.hosted-auth-google span { font: 700 17px Arial, sans-serif; color: #4285f4; }
.hosted-auth-google:hover { background: #f8fafc; border-color: #bfc9d7; }
.hosted-auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #8b94a3; font-size: 12px; }
.hosted-auth-divider::before, .hosted-auth-divider::after { content: ""; height: 1px; flex: 1; background: #e8ebef; }
.hosted-auth-form { display: grid; gap: 14px; }
.hosted-auth-form label { display: grid; gap: 7px; color: #3f4a5b; font-size: 13px; font-weight: 650; }
.hosted-auth-form input { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9dfe8; border-radius: 9px; background: #fff; color: #222e3e; font: inherit; font-weight: 450; }
.hosted-auth-form input:focus { outline: 3px solid rgb(58 105 173 / 17%); border-color: #5079ba; }
.hosted-auth-form .button { justify-content: center; min-height: 44px; margin-top: 3px; }
.hosted-auth-text-button { display: block; width: 100%; margin-top: 15px; padding: 8px; border: 0; background: transparent; color: #536b91; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.hosted-auth-text-button:hover { color: #243f69; text-decoration: underline; }
.hosted-verify-panel { margin-top: 18px; padding: 15px; border: 1px solid #e7d7a6; border-radius: 10px; background: #fff9e8; }
.hosted-verify-panel p { margin: 0 0 12px; color: #66572f; font-size: 13px; line-height: 1.55; }
.hosted-verify-panel .button + .button { margin-left: 7px; }
.hosted-unverified-delete { margin-top: 16px; padding-top: 15px; border-top: 1px solid #eadfcb; }
.hosted-unverified-delete > p { margin: 0; color: #70443a; font-size: 12px; line-height: 1.5; }
.hosted-unverified-delete .button.danger { justify-content: center; min-height: 42px; border: 1px solid #9f3d35; background: #a8483e; color: white; }
.hosted-auth-message { min-height: 20px; margin: 16px 0 0; color: #a74438; font-size: 13px; line-height: 1.5; }
.hosted-auth-message:empty { min-height: 0; margin-top: 0; }
.hosted-auth-message[data-kind="success"] { color: #2d7357; }
.hosted-auth-message[data-kind="info"] { color: #5a687b; }
.hosted-auth-legal { margin: 15px 0 0; color: #8a93a1; font-size: 11px; line-height: 1.55; text-align: center; }
.hosted-auth-legal a { color: #5c6e89; }
.hosted-workspace-list { display: grid; gap: 9px; margin-bottom: 18px; }
.hosted-workspace-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 15px; border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; color: #263348; text-align: left; font: inherit; cursor: pointer; }
.hosted-workspace-choice:hover { border-color: #6f8fbe; background: #f8faff; }
.hosted-workspace-choice strong { display: block; font-size: 14px; }
.hosted-workspace-choice small { display: block; margin-top: 3px; color: #758094; font-size: 12px; }
.hosted-account-info { display: grid; gap: 3px; padding: 10px 12px; border-bottom: 1px solid #e7eaf0; }
.hosted-account-info strong { color: #2f3a4a; font-size: 13px; }
.hosted-account-info small { color: #7c8798; font-size: 11px; }
.hosted-account-signout { justify-self: start; padding: 4px 0; border: 0; background: transparent; color: #61718a; font: inherit; font-size: 12px; cursor: pointer; }
.hosted-workspace-switch { max-width: 190px; min-height: 34px; margin-right: 10px; padding: 0 9px; border: 1px solid #dce2eb; border-radius: 8px; background: #fff; color: #314158; font: inherit; font-size: 12px; }
.hosted-account-dialog { width: min(100% - 32px, 560px); max-width: 560px; max-height: min(86vh, 760px); overflow: auto; padding: 0; border: 1px solid #e1e5eb; border-radius: 16px; color: #253247; box-shadow: 0 24px 80px rgb(20 31 47 / 24%); }
.hosted-account-dialog::backdrop { background: rgb(23 32 45 / 48%); backdrop-filter: blur(3px); }
.hosted-account-dialog-content { padding: 25px; }
.hosted-account-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.hosted-account-dialog-head h2 { margin: 0; font-size: 23px; }
.hosted-account-dialog .hosted-auth-message { min-height: 0; }
.hosted-account-workspaces-section { margin-top: 25px; }
.hosted-account-workspaces-section h3 { margin: 0 0 10px; font-size: 15px; }
.hosted-account-workspaces { display: grid; gap: 10px; }
.hosted-cli-connections-section { margin-top: 25px; padding-top: 15px; border-top: 1px solid #e7eaf0; }
.hosted-cli-connections-section h3 { margin: 0 0 7px; font-size: 15px; }
.hosted-cli-connections-section > p:first-of-type { margin: 0 0 10px; color: #69778d; font-size: 12px; line-height: 1.55; }
.hosted-cli-connections { display: grid; gap: 9px; }
.hosted-cli-connection { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; padding: 11px 12px; border: 1px solid #e2e6ec; border-radius: 9px; }
.hosted-cli-connection strong { display: block; color: #26354a; font-size: 13px; }
.hosted-cli-connection small { display: block; margin-top: 4px; color: #69778d; font-size: 11px; }
.hosted-cli-connection .button { grid-row: 1 / span 2; grid-column: 2; }
.hosted-cli-pairing-device { padding: 12px; border: 1px solid #e2e6ec; border-radius: 9px; background: #f8f9fb; font-weight: 700; }
.hosted-cli-pairing-code-label { margin: 18px 0 4px; color: #68758a; font-size: 12px; font-weight: 700; }
.hosted-cli-pairing-code { margin: 0; color: #22344f; font: 800 32px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.hosted-cli-pairing-expiry { color: #69778d; font-size: 12px; }
.hosted-cli-pairing-actions { display: flex; justify-content: end; gap: 9px; margin-top: 18px; }
.hosted-cli-pairing-actions .button { min-height: 42px; }
.hosted-account-workspace { display: grid; gap: 8px; padding: 12px; border: 1px solid #e2e6ec; border-radius: 10px; }
.hosted-account-workspace strong { color: #26354a; font-size: 13px; }
.hosted-account-workspace small { color: #69778d; font-size: 12px; }
.hosted-account-workspace-actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.hosted-account-workspace-actions label { display: grid; flex: 1 1 210px; gap: 5px; color: #68758a; font-size: 11px; }
.hosted-account-workspace-actions input { min-height: 36px; padding: 7px 9px; border: 1px solid #d9dfe8; border-radius: 7px; font: inherit; }
.hosted-account-workspace-message { color: #a74438 !important; }
.hosted-account-workspace-message[data-kind="success"] { color: #2d7357 !important; }
.hosted-account-delete-section { margin-top: 25px; padding-top: 15px; border-top: 1px solid #e7eaf0; }
.hosted-account-delete-section summary { color: #9c4137; font-size: 13px; font-weight: 700; cursor: pointer; }
.hosted-account-delete-copy { margin: 10px 0 15px; color: #7f493f; font-size: 12px; line-height: 1.6; }
.hosted-account-delete-section .button.danger { justify-content: center; min-height: 42px; border: 1px solid #9f3d35; background: #a8483e; color: white; }
.hosted-account-delete-section .button.danger:hover { background: #8f382f; }

@media (max-width: 520px) {
  .hosted-auth-gate { place-items: start center; padding: 16px 12px; }
  .hosted-auth-card { margin: auto 0; padding: 24px 20px; border-radius: 16px; }
  .hosted-workspace-switch { max-width: 135px; }
  .hosted-account-dialog-content { padding: 20px 16px; }
}
