/* studioatrium's own shell layout (ATRIUM-012/013). Structural/layout rules only -- every color,
   spacing, radius, and typography value is a Studio.Ui semantic token custom property (--color-*,
   --space-*, --radius-*, --font-*), never a raw value, matching studio-ui.css's own theme contract.
   Link studio-ui.css and tokens.css before this file (see Shared/SimpleHtml.cs). */

.atrium-body {
  margin: 0;
  background: var(--color-surface-page);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--font-lineHeight-normal);
}

.atrium-shell {
  box-sizing: border-box;
  max-width: 28rem;
  margin: var(--space-16) auto;
  padding: 0 var(--space-4);
}

/* The app-info page and the launcher use a wider shell for their app grid/description layout. */
.atrium-shell--wide {
  max-width: 42rem;
}

.atrium-app-context {
  margin: 0 0 var(--space-4) 0;
}

.atrium-shell h1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-2) 0;
}

.atrium-shell p {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4) 0;
}

.atrium-shell form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.atrium-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.atrium-footnote {
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Org picker / invitation-org list items rendered as a stack of full-width secondary buttons. */
.atrium-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.atrium-option-list form,
.atrium-option-list .studio-button {
  width: 100%;
  margin-top: 0;
}

/* App grid (the generalized launcher and, later, any per-org app browsing surface). */
.atrium-app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--space-4);
}

.atrium-app-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.atrium-app-tile__name {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.atrium-app-tile__description {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.atrium-app-tile--locked .atrium-app-tile__name {
  color: var(--color-text-secondary);
}
