/* Race-day check-in looping demo */

.sol-checkin {
  width: 100%;
}
.sol-checkin--autoplay {
  pointer-events: none;
  user-select: none;
}
.sol-checkin__device {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 15, 14, 0.1);
}
.sol-checkin__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(242, 237, 230, 0.85);
}
.sol-checkin__chrome em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.sol-checkin__body {
  padding: 12px 14px 14px;
}

.sol-checkin__tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sol-checkin__tabs span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 8px;
}
.sol-checkin__tabs span.is-on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--green);
}

.sol-checkin__toolbar {
  margin-bottom: 10px;
}
.sol-checkin__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 12px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #faf8f5;
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.sol-checkin__search svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.sol-checkin__search.is-focused {
  border-color: rgba(39, 107, 60, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 107, 60, 0.12);
  color: var(--text);
}
.sol-checkin__query {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.sol-checkin__query:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-weight: 500;
}
.sol-checkin__search.is-typing .sol-checkin__query::after,
.sol-checkin__search.is-focused:not(.is-typing) .sol-checkin__query:not(:empty)::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: var(--green);
  animation: sol-checkin-caret 1s steps(1) infinite;
}
@keyframes sol-checkin-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sol-checkin__stage {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 12px;
  min-height: 280px;
  align-items: stretch;
}

.sol-checkin__list {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.sol-checkin__list-head,
.sol-checkin__row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.45fr 0.95fr;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  text-align: left;
}
.sol-checkin__list-head {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(242, 237, 230, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sol-checkin__row {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 11px;
  color: var(--text);
  transition: background 140ms ease;
}
.sol-checkin__row:last-of-type {
  border-bottom: 0;
}
.sol-checkin__row.is-selected {
  background: rgba(39, 107, 60, 0.08);
  box-shadow: inset 3px 0 0 var(--green);
}
.sol-checkin__row.is-hidden {
  display: none;
}
.sol-checkin__row.is-flash {
  animation: sol-checkin-row-flash 700ms ease;
}
@keyframes sol-checkin-row-flash {
  0%, 100% { background: rgba(39, 107, 60, 0.08); }
  40% { background: rgba(39, 107, 60, 0.16); }
}

.sol-checkin__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  min-width: 0;
}
.sol-checkin__av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sol-checkin__av--lg {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.sol-checkin__race,
.sol-checkin__bib {
  color: var(--muted);
  font-weight: 600;
}
.sol-checkin__bib {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--text);
}
.sol-checkin__status .lf-pill {
  font-size: 9px;
}
.sol-checkin__empty {
  margin: 0;
  padding: 28px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.sol-checkin__detail {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #faf8f5;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sol-checkin__detail-view[hidden] {
  display: none;
}
.sol-checkin__detail-view.is-animating {
  display: block;
  animation: sol-checkin-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sol-checkin-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sol-checkin__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 220px;
  padding: 12px;
  color: var(--muted);
}
.sol-checkin__idle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  font-size: 18px;
  margin-bottom: 4px;
}
.sol-checkin__idle strong {
  color: var(--text);
  font-size: 14px;
}
.sol-checkin__idle p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  max-width: 22ch;
}

.sol-checkin__detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sol-checkin__detail-head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sol-checkin__detail-head span:last-child {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.sol-checkin__meta {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.sol-checkin__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}
.sol-checkin__meta > div:first-child {
  border-top: 0;
}
.sol-checkin__meta span {
  color: var(--muted);
  font-weight: 600;
}
.sol-checkin__meta strong {
  font-weight: 800;
}
.sol-checkin__meta strong.is-ok {
  color: var(--green);
}
.sol-checkin__meta strong.is-warn {
  color: var(--red);
}

.sol-checkin__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.sol-checkin__btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(39, 107, 60, 0.22);
}
.sol-checkin__btn--ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--text);
}
.sol-checkin__btn.is-beacon {
  animation: sol-checkin-btn-pulse 1.6s ease-in-out infinite;
}
.sol-checkin__btn.is-press {
  transform: scale(0.97);
  background: #1f5a32;
}
@keyframes sol-checkin-btn-pulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(39, 107, 60, 0.22); }
  50% { box-shadow: 0 8px 18px rgba(39, 107, 60, 0.22), 0 0 0 6px rgba(39, 107, 60, 0.16); }
}

.sol-checkin__block,
.sol-checkin__done-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}
.sol-checkin__block {
  background: rgba(251, 69, 40, 0.08);
  color: #8a2e1f;
}

.sol-checkin__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 220px;
  padding: 8px;
}
.sol-checkin__success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(39, 107, 60, 0.14);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sol-checkin__success strong {
  font-size: 16px;
  font-weight: 800;
}
.sol-checkin__success p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .sol-checkin__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sol-checkin__list-head,
  .sol-checkin__row {
    grid-template-columns: 1.5fr 0.55fr 1fr;
  }
  .sol-checkin__list-head span:nth-child(2),
  .sol-checkin__race {
    display: none;
  }
  .sol-checkin__idle,
  .sol-checkin__success {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sol-checkin__btn.is-beacon,
  .sol-checkin__row.is-flash,
  .sol-checkin__search.is-typing .sol-checkin__query::after,
  .sol-checkin__search.is-focused:not(.is-typing) .sol-checkin__query:not(:empty)::after {
    animation: none;
  }
  .sol-checkin__detail-view.is-animating {
    animation: none;
  }
}
