/* Shared controls inherit the app theme; public and login pages keep their styles. */
.btl-app {
  --btl-ui-primary: #3449df;
  --btl-ui-ink: #202534;
  --btl-ui-text: #5f6878;
  --btl-ui-border: #e5e7ee;
  --btl-ui-card-shadow: 0 0 0 1px #e5e7ee, 0 1px 2px rgb(32 37 52 / 3%);
}

.btl-app .btl-ui-card {
  min-width: 0;
  border-radius: 12px;
}

.btl-app .btl-ui-btn {
  min-height: 40px;
  gap: 6px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: none;
}

.btl-app .btl-ui-btn--sm {
  font-size: 12px;
  padding: 7px 11px;
}

.btl-app .btl-ui-btn--outline {
  border-color: var(--btl-ui-border);
  color: #424b5c;
}

.btl-app .btl-ui-btn:focus-visible {
  outline: 2px solid var(--btl-ui-primary);
  outline-offset: 3px;
}

.btl-app .btl-ui-btn:disabled {
  cursor: not-allowed;
}

@media (hover: hover) {
  .btl-app .btl-ui-btn--default:hover:not(:disabled) {
    --btl-ui-button-background: #293dcb;
  }

  .btl-app .btl-ui-btn--outline:hover:not(:disabled) {
    background: #f7f8fb;
    border-color: #cbd0dc;
  }
}

.btl-app .btl-ui-input {
  min-width: 0;
  min-height: 40px;
  border-color: var(--btl-ui-border);
  border-radius: 8px;
  background: #fff;
  color: var(--btl-ui-ink);
  line-height: 1.5;
}

.btl-app .btl-ui-input::placeholder {
  color: #8b92a1;
}

.btl-app .btl-ui-input:focus {
  border-color: var(--btl-ui-primary);
  box-shadow: 0 0 0 3px rgb(52 73 223 / 12%);
}

.btl-app .btl-ui-input:disabled {
  background: #f7f8fb;
  color: #8b92a1;
  cursor: not-allowed;
}

.btl-app .btl-ui-label {
  color: #424b5c;
  font-size: 13px;
  font-weight: 600;
}

.btl-app .btl-ui-badge {
  flex-shrink: 0;
  min-height: 23px;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}

.btl-app .btl-ui-badge--secondary {
  background: #f0f2f6;
  color: #5f6878;
}

.btl-app .btl-ui-badge--outline {
  border-color: var(--btl-ui-border);
  color: #5f6878;
}

.btl-app .btl-ui-progress {
  height: 5px;
  background: #edf0f5;
}

.btl-app .btl-ui-alert {
  border-radius: 8px;
}

.btl-app .btl-ui-summary {
  padding: 18px 20px;
}

.btl-app .btl-ui-summary-content {
  min-width: 0;
  flex: 1;
}

.btl-app .btl-ui-summary-title {
  color: var(--btl-ui-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.btl-app .btl-ui-summary-value {
  margin-top: 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btl-app .btl-ui-summary-icon {
  display: none;
}

.btl-app .btl-ui-summary-description {
  margin-top: 7px;
  color: #7b8392;
  font-size: 11px;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .btl-app .btl-ui-summary {
    padding: 15px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btl-app .btl-ui-btn,
  .btl-app .btl-ui-input,
  .btl-app .btl-ui-card,
  .btl-app .btl-ui-progress-fill {
    transition: none;
  }

  .btl-app .btl-ui-btn:active {
    transform: none;
    scale: none;
  }
}
