/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.08s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tg-btn:active { transform: scale(0.97); opacity: 0.85; }
.tg-btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Inline glyphs from the svg() helper carry no intrinsic size, so pin them here
   or they balloon to the SVG default. */
.tg-btn svg { width: 19px; height: 19px; flex: none; }
.tg-btn--block {
  width: 100%;
  padding: 14px 20px;
  border-radius: 1000px;
  font-size: 17px;
  font-weight: 590;
  line-height: 22px;
  letter-spacing: -0.43px;
}
.tg-btn--primary { background: var(--accent); color: var(--accent-text); }
.tg-btn--secondary { background: var(--section-bg); color: var(--text); }
.tg-btn--pill { border-radius: 999px; padding: 9px 16px; font-size: 15px; }

/* Vertical stack of full-width site actions — one gap for every button. */
.site-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.site-actions .tg-btn { margin-top: 0; }
.site-actions__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary, var(--hint));
  text-align: center;
}
.site-domains__add { margin-top: 14px; }

/* ─── Dropzone (folder upload) ────────────────────────────────────────────── */

.tg-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 18px;
  border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tg-dropzone--drag { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.tg-dropzone--files { border-style: solid; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tg-dropzone__icon { color: var(--accent); }
.tg-dropzone__hint { font-size: 0.95rem; font-weight: 600; }
.tg-dropzone__sub { font-size: 0.8rem; color: var(--hint); }

/* ─── Deploy log ──────────────────────────────────────────────────────────── */

.deploy-log {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--section-bg);
  color: var(--hint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
.deploy-log--ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }

/* ─── Empty state (iOS "Title and Subtitle") ──────────────────────────────── */

.tg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 56px 24px;
}
.tg-empty__glyph {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--section-bg);
  color: var(--hint);
  margin-bottom: 6px;
}
.tg-empty__glyph svg { width: 30px; height: 30px; }
/* Empty-state animation — box is reserved up-front so the layout doesn't
   shift when the lazily-loaded lottie chunk swaps in over the placeholder. */
.tg-empty__lottie { width: 168px; height: 168px; margin-bottom: 2px; }
.tg-empty__lottie svg { display: block; width: 100%; height: 100%; }
.tg-empty__title { font-size: 1.2rem; font-weight: 600; margin: 0; }
.tg-empty__sub { color: var(--hint); font-size: 0.95rem; margin: 0; max-width: 320px; }

/* ─── Loading dots ────────────────────────────────────────────────────────── */
.screen__loading { padding: 48px 0; text-align: center; color: var(--hint); }

/* ─── Boot shell ──────────────────────────────────────────────────────────────
   App-colored placeholder rendered server-side + on the first client render, so
   the WebView paints tonsite's own background (from Telegram's --tg-theme vars)
   the instant its splash lifts — never a blank frame that lets a preloaded page
   flash through. Just a spinner; no "signing in" text. */
.mini-boot { min-height: 78vh; display: flex; align-items: center; justify-content: center; }
.mini-boot__spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--separator);
  border-top-color: var(--accent);
  animation: mini-spin 0.7s linear infinite;
}
@keyframes mini-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mini-boot__spinner { animation-duration: 1.6s; } }
