/* Small Chakra-inspired primitives shared by the responsive client. */
.ui-stack { display: flex; min-width: 0; }
.ui-stack-row { flex-direction: row; }
.ui-stack-column { flex-direction: column; }
.ui-gap-xs { gap: 4px; }
.ui-gap-sm { gap: 8px; }
.ui-gap-md { gap: 12px; }
.ui-gap-lg { gap: 18px; }
.ui-gap-xl { gap: 28px; }
.ui-align-start { align-items: flex-start; }
.ui-align-center { align-items: center; }
.ui-align-end { align-items: flex-end; }
.ui-align-stretch { align-items: stretch; }
.ui-justify-start { justify-content: flex-start; }
.ui-justify-center { justify-content: center; }
.ui-justify-end { justify-content: flex-end; }
.ui-justify-between { justify-content: space-between; }

.ui-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}
.ui-heading { margin: 0; color: var(--text); letter-spacing: -.035em; }
.ui-heading-1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.05; }
.ui-heading-2 { font-size: 25px; line-height: 1.15; }
.ui-heading-3 { font-size: 17px; line-height: 1.2; }
.ui-heading-4 { font-size: 13px; line-height: 1.25; }
.ui-text { margin: 0; color: var(--muted); line-height: 1.6; }

.ui-button,
.ui-icon-button {
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 720;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.ui-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
}
.ui-button > span:not(.ui-button-icon) { min-width: 0; }
.ui-button-icon { display: inline-flex; align-items: center; }
.ui-button-icon svg { width: 16px; height: 16px; }
.ui-button-sm { min-height: 36px; padding-inline: 12px; border-radius: 10px; font-size: 10px; }
.ui-button-lg { min-height: 50px; padding-inline: 20px; border-radius: 14px; font-size: 12px; }
.ui-button-solid { background: var(--accent); color: #10150d; box-shadow: 0 8px 22px rgba(166, 244, 106, .13); }
.ui-button-solid:hover { background: #b5ff79; transform: translateY(-1px); }
.ui-button-soft { border-color: rgba(166,244,106,.18); background: var(--accent-soft); color: var(--accent); }
.ui-button-soft:hover { border-color: rgba(166,244,106,.34); background: rgba(166,244,106,.19); }
.ui-button-outline { border-color: var(--line-strong); background: transparent; color: var(--muted-bright); }
.ui-button-outline:hover { border-color: rgba(166,244,106,.35); color: var(--accent); background: var(--accent-soft); }
.ui-button-ghost { background: transparent; color: var(--muted-bright); }
.ui-button-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ui-button-danger { border-color: rgba(255,119,111,.25); background: rgba(255,119,111,.08); color: #ffaaa5; }
.ui-button-danger:hover { border-color: rgba(255,119,111,.48); background: rgba(255,119,111,.14); }
.ui-button:disabled, .ui-icon-button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.ui-icon-button { width: 40px; height: 40px; padding: 0; border-radius: 11px; display: inline-grid; place-items: center; }
.ui-icon-button svg { width: 17px; height: 17px; }

.ui-badge {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-bright);
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}
.ui-badge-accent { border-color: rgba(166,244,106,.2); background: var(--accent-soft); color: var(--accent); }
.ui-badge-warning { border-color: rgba(240,189,93,.25); background: rgba(240,189,93,.08); color: var(--warning); }
.ui-badge-danger { border-color: rgba(255,119,111,.25); background: rgba(255,119,111,.08); color: #ffaaa5; }

@media (max-width: 760px) {
  .ui-button { min-height: 46px; }
  .ui-button-sm { min-height: 40px; }
  .ui-icon-button { width: 42px; height: 42px; }
  .ui-card { border-radius: 20px; }
}

/* Product compositions built from the primitives. */
.hero-copy.ui-card {
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(25,31,27,.95), rgba(13,16,15,.96));
  box-shadow: none;
}
.hero-copy .hero-title { position: relative; z-index: 2; }
.hero-copy .hero-description { position: relative; z-index: 2; }
.hero-button.ui-button { min-height: 48px; padding-inline: 21px; border-radius: 14px; }
.topbar-task.ui-button { min-height: 45px; }
.topbar-local-status { order: -1; }
.quota-refresh.ui-icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; }
.switch-button.ui-button { min-height: 43px; width: 100%; justify-content: center; }

@media (max-width: 760px) {
  .topbar-local-status { display: none; }
  .topbar-task.ui-button { min-height: 42px; padding-inline: 12px; }
  .topbar-task.ui-button > span:not(.ui-button-icon) { font-size: 10px; }
  .hero-copy.ui-card { border-radius: 22px; }
  .hero-copy .hero-title { font-size: 41px; }
  .hero-button.ui-button { width: 100%; justify-content: space-between; }
}
