:root {
  --sl-checkin-navy: #0a2145;
  --sl-checkin-blue: #164d86;
  --sl-checkin-gold: #c99b3b;
  --sl-checkin-gold-soft: #f6e9c7;
  --sl-checkin-ink: #142039;
  --sl-checkin-muted: #68738a;
  --sl-checkin-line: #dfe5ed;
  --sl-checkin-paper: #fffefa;
}

.sl-checkin-launcher {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 92px;
  height: 40px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(201, 155, 59, .68);
  border-radius: 12px;
  background: var(--sl-checkin-navy);
  color: #fff;
  box-shadow: 0 7px 18px rgba(10, 33, 69, .16);
  font: inherit;
  text-align: left;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.sl-checkin-launcher:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 33, 69, .22); border-color: #e1bd6e; }
.sl-checkin-launcher:focus-visible { outline: 3px solid rgba(46, 123, 214, .34); outline-offset: 3px; }
.sl-checkin-launcher:disabled { cursor: progress; transform: none; box-shadow: none; }
.sl-checkin-launcher[data-attention="true"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ef3f49;
  box-shadow: 0 1px 4px rgba(126, 20, 28, .3);
  pointer-events: none;
}
.sl-checkin-launcher[data-state="syncing"] .sl-checkin-launcher__coin { animation: sl-checkin-sync 1.1s ease-in-out infinite alternate; }
.sl-checkin-launcher[data-state="error"] { border-color: #d7a89f; background: #48312f; }
.sl-checkin-launcher.is-complete { background: #163657; border-color: rgba(122, 193, 157, .74); }
.sl-checkin-launcher__coin { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; overflow: hidden; background: #f2d486; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.sl-checkin-launcher__coin img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.sl-checkin-launcher__copy { display: grid; line-height: 1.05; }
.sl-checkin-launcher__copy strong { font-size: 12px; letter-spacing: .02em; }
.sl-checkin-launcher__copy small { margin-top: 3px; color: #f4d88f; font-size: 9px; white-space: nowrap; }
.sl-checkin-launcher.is-complete .sl-checkin-launcher__copy small { color: #b9ebd1; }
.sl-checkin-account-host { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.site-header > .sl-checkin-account-cluster,
body > header:not(.site-header):not(.ecosystem-header) > .sl-checkin-account-cluster { grid-column: 3; justify-self: end; }
.agent-header > .sl-checkin-account-cluster { grid-column: 3; justify-self: end; }
.docs-header > .sl-checkin-account-cluster { margin-left: auto; }
.tool-detail-header > .sl-checkin-account-cluster { margin-left: auto; }
.model-global-header > .sl-checkin-account-cluster,
.practice-global-header > .sl-checkin-account-cluster {
  position: absolute;
  top: 50%;
  right: 22px;
  z-index: 3;
  grid-column: auto;
  transform: translateY(-50%);
}
.model-global-header > .sl-checkin-account-cluster > .model-account,
.practice-global-header > .sl-checkin-account-cluster > .practice-account { position: static; top: auto; right: auto; transform: none; }
.sl-checkin-launcher.is-floating-fallback { position: fixed; top: 82px; right: 18px; z-index: 2147481800; }

.sl-checkin-coin__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: radial-gradient(circle at 31% 25%, var(--sl-checkin-gold-soft) 0 8%, transparent 9%), linear-gradient(145deg, var(--sl-checkin-gold) 0 47%, var(--sl-checkin-blue) 48% 100%);
}
.sl-checkin-coin__fallback svg { width: 70%; height: 70%; fill: var(--sl-checkin-navy); stroke: var(--sl-checkin-gold-soft); stroke-width: .65; stroke-linecap: round; stroke-linejoin: round; }
.sl-checkin-launcher__coin.is-image-missing img { display: none; }

@keyframes sl-checkin-sync { to { transform: rotate(-8deg) scale(.94); opacity: .72; } }

@media (max-width: 1100px) {
  .sl-checkin-launcher { min-width: 72px; }
  .sl-checkin-launcher__copy small { display: none; }
}

@media (max-width: 860px) {
  .site-header > .sl-checkin-account-cluster,
  body > header:not(.site-header):not(.ecosystem-header) > .sl-checkin-account-cluster { grid-column: 2; grid-row: 1; }
}

@media (max-width: 760px) {
  .sl-checkin-account-host { gap: 6px; }
  .model-global-header > .sl-checkin-account-cluster,
  .practice-global-header > .sl-checkin-account-cluster { right: 14px; }
  .sl-checkin-launcher { min-width: 44px; width: 44px; height: 44px; padding: 7px; border-radius: 12px; }
  .sl-checkin-launcher__coin { width: 28px; height: 28px; }
  .sl-checkin-launcher__copy { display: none; }
  .sl-checkin-launcher.is-floating-fallback { top: 72px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-checkin-launcher, .sl-checkin-launcher__coin { transition: none; animation: none; }
}
