/* Shared attendance and installation shell */

.section-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--app-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-logo-line {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.public-brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--app-primary);
  text-decoration: none;
}

.public-brand-link:hover,
.public-brand-link:focus-visible {
  color: var(--app-primary);
}

.public-brand-link .brand-logo {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  border-radius: 7px;
}

.public-logo-line .section-kicker {
  margin-bottom: 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1;
}

.app-version {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.attendance-body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(25, 135, 84, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--app-bg);
  background-attachment: fixed;
  background-size: cover;
}

.attendance-shell {
  width: min(100% - 32px, 720px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.attendance-panel {
  width: 100%;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--app-shadow);
}

:root[data-theme="dark"] .attendance-body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--app-bg);
}

:root[data-theme="dark"] .attendance-panel {
  background: rgba(18, 18, 18, 0.98);
  color: var(--app-text);
}

.attendance-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--app-border);
}

.attendance-panel-header > .public-logo-line {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}

.public-header-actions {
  display: contents;
}

.public-header-actions .app-version {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

.header-theme-toggle {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
}

.attendance-heading-copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.attendance-panel-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  word-break: keep-all;
  white-space: nowrap;
}

.attendance-panel-header p {
  width: 100%;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.05rem;
  white-space: nowrap;
}


.attendance-step-heading {
  margin-bottom: 20px;
}

.attendance-step-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 850;
}


@media (max-width: 576px) {
  .public-logo-line {
    display: flex;
    width: 100%;
    overflow: hidden;
  }

  .public-brand-link {
    overflow: hidden;
  }

  .public-logo-line .section-kicker {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .attendance-shell {
    width: min(100% - 20px, 440px);
    min-height: 100svh;
    align-items: flex-start;
    padding: max(32px, env(safe-area-inset-top)) 0 18px;
  }

  .attendance-panel {
    padding: 18px;
  }

  .attendance-panel-header {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .attendance-panel-header h1 {
    font-size: clamp(1.35rem, 7vw, 1.55rem);
  }

  .attendance-panel-header p {
    font-size: 0.92rem;
    white-space: normal;
  }


  .attendance-step-heading {
    margin-bottom: 14px;
  }

  .attendance-step-heading h2 {
    font-size: 1.25rem;
  }

  .attendance-panel .form-control-lg {
    min-height: 48px;
    font-size: 1rem;
  }
}
