/* The panel's own styles, on top of pink's theme (theme/base.css, copied, never edited here).
   Only pink's tokens and its breakpoints (640 and 1024 px); see docs/CONTROL_PANEL.md,
   "Pages and the look". Spacing, links and the spinner follow pink's main.css. */

:root {
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

html {
  scrollbar-color: var(--border-strong) var(--bg);
}

body {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--space-md);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* First in the page, shown only when it has keyboard focus */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  background: var(--surface);
  z-index: 10;
}

.skip-link:focus-visible {
  top: var(--space-xs);
}

.site-header {
  display: flex;
  align-items: center;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

main {
  display: grid;
  gap: var(--space-md);
  max-width: 40rem;
  padding-block: var(--space-lg);
}

main:focus {
  outline: none;
}

/* A link that leads somewhere as an action (Sign in): pink's primary button */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.place-list {
  display: grid;
  gap: var(--space-sm);
  padding: 0;
  list-style: none;
}

.place {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.place h3 {
  font-size: 1.15rem;
}

/* The platform's word for the place, after its name */
.place-word {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.place[aria-busy="true"] .place-status {
  color: var(--text-muted);
}

.status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
}

/* pink's spinner (main.css), with a small size for inline use */
.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.small {
  width: 1.1em;
  height: 1.1em;
  border-width: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  main {
    padding-block: var(--space-xl);
  }
}
