/* Loading occupies the same surface as its content, not a replacement page. */
.load-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.load-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
  flex: 0 0 auto;
}
.load-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: load-pulse 1.4s ease-in-out infinite;
}
.load-dots i:nth-child(2) { animation-delay: 0.16s; }
.load-dots i:nth-child(3) { animation-delay: 0.32s; }
.launch-loading {
  display: grid;
  place-items: center;
  min-height: 100svh;
  max-width: none;
  padding: 32px 24px;
  text-align: center;
}
.launch-content { display: grid; justify-items: center; gap: 24px; }
.launch-loading .wordmark { font-size: 2.25rem; line-height: 1.2; letter-spacing: -.06em; gap: 14px; margin: 0; }
.launch-loading .brand-mark { width: 56px; height: 56px; }
.launch-loading .load-signal { gap: 10px; }
.daily-usage { min-height: 24px; }
.daily-usage .load-signal { font-size: inherit; }
.list-loading { padding: 12px; }
.list-loading > .load-signal { justify-content: flex-start; }
.skeleton-rows { margin-top: 22px; }
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
  background: var(--panel);
}
.skeleton-copy { display: grid; gap: 10px; flex: 1; }
.skeleton-copy i {
  display: block;
  height: 10px;
  width: 76%;
  border-radius: 8px;
  background: var(--panel);
}
.skeleton-copy i:first-child { width: 42%; height: 12px; }
.skeleton-row:nth-child(2) .skeleton-copy i:last-child { width: 92%; }
.skeleton-row:nth-child(3) .skeleton-copy i:last-child { width: 60%; }
.pending-inbox-space { background: var(--paper); }
.pending-conversation .conversation-heading h1 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
.conversation-load-body {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
  padding: 32px 24px;
}
.conversation-load-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.load-error { padding: 16px; text-align: center; }
.load-error p { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.load-error .button { min-height: 44px; }
.route-notice { margin: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: white; }
.route-notice .load-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; }
.route-notice .load-error p { flex: 1 1 160px; margin: 0; }
.inbox-sidebar > .route-notice { margin: 0 12px 12px; }
/* Programmatic page focus stays local to its heading; interactive rings remain. */
h1[tabindex="-1"]:focus, .conversation-heading[tabindex="-1"]:focus { outline: none; }
@keyframes load-pulse {
  0%, 70%, 100% { opacity: 0.35; }
  35% { opacity: 1; }
}
@media (max-width: 760px) {
  .list-loading { padding: 0; }
  .conversation-load-body { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .load-dots i { animation: none; opacity: 0.7; }
}
@media (max-width: 400px) {
  html[lang="en"][data-large-text="true"] .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  html[lang="en"][data-large-text="true"] .mobile-nav a:first-child {
    grid-column: 1 / -1;
  }
  html[lang="en"][data-large-text="true"] .flow-shell:not(.detail-shell) main {
    padding-bottom: calc(5.5rem + 32px + env(safe-area-inset-bottom));
  }
}
