/* The home page (the app's home and join screens, for an observer) and the sheets it opens:
   session length, extension, settings. Colours only from theme.css; components from observer.css. */

/* ── Home: a centred column (max 440 px), scrolling as a whole ── */

.app {
  min-height: 100%;
}

.home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(32px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
}
/* Stays in the corner while the column scrolls, as in the app. */
.home-settings {
  position: fixed;
  z-index: 1;
  top: calc(8px + env(safe-area-inset-top));
  right: calc(8px + env(safe-area-inset-right));
}
.home-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
}
.home-logo {
  align-self: center;
}
.home-title {
  margin-top: 16px;
  text-align: center;
  /* displaySmall, bold. */
  font: 700 36px/44px var(--font);
}
.home-tagline {
  margin: 8px 0 32px;
  color: var(--md-on-surface-variant);
  text-align: center;
  white-space: pre-line;
  /* bodyLarge. */
  font: 400 16px/24px var(--font);
  letter-spacing: 0.5px;
}
.home-saved {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-saved:not(:empty) {
  margin-bottom: 24px;
}
.home-code {
  margin-top: 16px;
}
.home-joining {
  margin-top: 16px;
}
.home-join {
  margin-top: 20px;
}
.home-joining:not([hidden]) + .home-join {
  margin-top: 8px;
}
.home-create {
  margin-top: 12px;
}
.home-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.home-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--md-on-surface-variant);
}
.home-note .icon {
  /* On the first line of text (20 px high). */
  margin-top: 1px;
}
.home-footer {
  margin-top: 24px;
  color: var(--md-on-surface-variant);
  text-align: center;
  /* bodySmall. */
  font: 400 12px/16px var(--font);
  letter-spacing: 0.4px;
  overflow-wrap: anywhere;
}
.home-licences {
  color: inherit;
  text-underline-offset: 2px;
}
.home-licences:hover {
  color: var(--md-on-surface);
}

/* A paused session: Card.filled in secondaryContainer (radius 12). */
.saved-card {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px 16px;
  border-radius: 12px;
  background: var(--md-secondary-container);
}
.saved-code {
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}
.saved-details {
  overflow-wrap: anywhere;
}
.saved-progress {
  margin: 8px 8px 0 0;
}
.saved-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 8px;
}

/* ── Session length and extension sheets ── */

.lifetime-choices {
  margin-top: 16px;
}
.lifetime-until {
  margin-top: 12px;
  text-align: center;
}
.lifetime-create {
  margin-top: 16px;
}
.extension-choices {
  margin-top: 12px;
}

/* ── Settings sheet: the settings screen's sections ── */

.settings-section {
  margin: 28px 0 12px;
  color: var(--md-primary);
  /* titleMedium. */
  font: 500 16px/24px var(--font);
  letter-spacing: 0.15px;
}
.sheet-title + .settings-section {
  margin-top: 16px;
}
/* SwitchListTile with contentPadding zero. */
.tile-flush {
  padding-right: 0;
  padding-left: 0;
}
