:root {
  --navy: #1d3041;
  --navy-dark: #142432;
  --red: #a21f25;
  --cream: #f4f1e8;
  --white: #ffffff;
  --text: #1d3041;
  --muted: #66737d;
  --border: #d9dee3;
  --background: #f5f6f7;
  --hover: #eef2f5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.siteBar {
  background: var(--navy);
  border-bottom: 5px solid var(--red);
}

.siteBarInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 24px;
}

.siteTitle {
  font-size: 24px;
  font-weight: 700;
}

.siteSubtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.pageShell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 14px;
}

.backButton {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.backButton:hover {
  background: var(--hover);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.contentPanel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.panelHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.scoutSearchPanel {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.scoutSearchLabel {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.scoutSearchRow {
  display: flex;
  gap: 10px;
}

.scoutSearchInput {
  width: 100%;
  max-width: 460px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.scoutSearchInput:focus {
  outline: 2px solid rgba(29, 48, 65, 0.18);
  border-color: var(--navy);
}

.scoutSearchResults {
  display: grid;
  gap: 8px;
  max-width: 650px;
  margin-top: 12px;
}

.scoutSearchResult {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.scoutSearchResult:hover {
  background: var(--hover);
}

.scoutSearchName {
  font-weight: 700;
}

.scoutSearchTroop {
  color: var(--muted);
  font-size: 13px;
}

.scoutSearchCount {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.scoutSearchMessage {
  padding: 12px 2px;
  color: var(--muted);
  font-size: 14px;
}

.panelHeader h1 {
  margin: 0;
  font-size: 25px;
}

.panelHeader p {
  margin: 6px 0 0;
  color: var(--muted);
}

.searchInput {
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
}

.searchInput:focus {
  outline: 2px solid rgba(29, 48, 65, 0.18);
  border-color: var(--navy);
}

.folderGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.folderCard {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.folderCard:hover {
  background: var(--hover);
  border-color: #c7d0d8;
}

.folderIcon {
  width: 42px;
  height: 32px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #d9ad57;
}

.folderIcon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 3px;
  width: 18px;
  height: 9px;
  border-radius: 4px 4px 0 0;
  background: #d9ad57;
}

.folderName {
  font-weight: 700;
}

.folderMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.yearSection {
  grid-column: 1 / -1;
}

.yearHeading {
  margin: 10px 0 0;
  padding: 14px 4px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}

.fileList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fileRow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}

.fileRow:hover {
  background: var(--hover);
}

.fileInfo {
  min-width: 0;
}

.fileName {
  font-weight: 700;
}

.fileMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.fileLink {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.fileLink:hover {
  text-decoration: underline;
}

.emptyState {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}

.fileActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fileLink {
  display: inline-block;
  padding: 6px 12px;
  background: var(--navy);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.fileLink:hover {
  background: var(--navy-dark);
}

.breadcrumbLink {
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
  font: inherit;
}

.breadcrumbLink:hover {
  text-decoration: underline;
}

/* Authenticated header */

.siteBrand {
  color: var(--white);
  text-decoration: none;
}

.accountArea {
  position: relative;
  flex: 0 0 auto;
}

.accountMenuButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.accountMenuButton:hover,
.accountMenuButton[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.accountChevron {
  font-size: 10px;
  opacity: 0.8;
}

.accountMenu {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 100;
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.accountMenu.open {
  display: block;
}

.accountMenuHeader {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.accountMenuHeader strong {
  font-size: 15px;
}

.accountMenuHeader span {
  color: var(--muted);
  font-size: 13px;
}

.accountMenuDivider {
  height: 1px;
  background: var(--border);
}

.accountMenuItem {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: var(--white);
  color: var(--red);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.accountMenuItem:hover {
  background: var(--hover);
}

.headerButton {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.headerButton:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* Login */

.loginView {
  min-height: calc(100vh - 77px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.loginCard {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

.loginCard h1 {
  margin: 0 0 8px;
}

.loginCard p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.loginEyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.loginField {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.loginField input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.loginField input:focus {
  outline: 2px solid rgba(29, 48, 65, 0.18);
  border-color: var(--navy);
}

.loginMessage {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  background: #fbeaec;
  color: var(--red);
}

.loginButton {
  width: 100%;
  min-height: 42px;
  margin-top: 20px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.loginButton:hover {
  background: #86191e;
}

.loginButton:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.siteNav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 18px;
}

.siteNav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
}

.siteNav a:hover {
  background: rgba(255, 255, 255, .12);
}

.siteNav a.current {
  display: none;
}


/* Administration */

.adminShell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 77px);
}

.adminSidebar {
  padding: 28px 18px;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.adminSidebarTitle {
  padding: 0 12px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adminSidebarNav {
  display: grid;
  gap: 5px;
}

.adminSidebarNav a,
.adminReturnLink {
  padding: 12px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.adminSidebarNav a:hover {
  background: var(--hover);
}

.adminSidebarNav a.active {
  background: var(--navy);
  color: var(--white);
}

.adminReturnLink {
  display: block;
  margin-top: 28px;
  color: var(--red);
  font-size: 14px;
}

.adminMain {
  min-width: 0;
  padding: 36px;
}

.adminView {
  width: 100%;
  max-width: 1100px;
}

.adminPageHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.adminPageHeading h1 {
  margin: 0;
  font-size: 32px;
}

.adminPageHeading p,
.adminCard p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.adminEyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adminStatGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.adminStatCard,
.adminCard,
.adminUserTable,
.adminEditorCard {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.adminStatCard {
  padding: 22px;
}

.adminStatCard span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.adminStatCard strong {
  font-size: 30px;
}

.adminCardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.adminCard {
  padding: 22px;
}

.adminCard h2 {
  margin-top: 0;
}

.adminPrimaryButton,
.adminSecondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.adminPrimaryButton {
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
}

.adminPrimaryButton:hover {
  background: #86191e;
}

.adminPrimaryButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.adminSecondaryButton {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.adminSecondaryButton:hover {
  background: var(--hover);
}

.adminCard .adminSecondaryButton {
  margin-top: 18px;
}

.adminToolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.adminSearchInput,
.adminSelectInput,
.adminFormField input,
.adminFormField select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.adminSearchInput {
  width: min(360px, 100%);
}

.adminWideSearch {
  width: 100%;
  margin-bottom: 10px;
}

.adminSelectInput {
  min-width: 170px;
}

.adminUserTable {
  overflow: hidden;
}

.adminUserHeader,
.adminUserRow {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr) 130px minmax(190px, 1fr) 140px 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.adminUserHeader {
  background: #edf0f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.adminUserRow {
  border-top: 1px solid var(--border);
}

.adminUserName {
  font-weight: 700;
}

.adminUserEmail,
.adminAssignmentText {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.adminStatusStack {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.statusBadge {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.statusActive {
  background: #eaf5ed;
  color: #2d6a42;
}

.statusInactive {
  background: #fbeaec;
  color: var(--red);
}

.statusSetup {
  background: #fff4d6;
  color: #8a5a00;
}

.adminEditLink,
.adminEditorBack a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.adminEditorBack {
  margin-bottom: 18px;
}

.adminEditorCard {
  padding: 24px;
}

.adminFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.adminFormField {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.adminCheckboxField {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
}

.adminAssignmentSection {
  margin-top: 26px;
}

.adminAssignmentList {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.assignmentOption {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.assignmentOption:last-child {
  border-bottom: 0;
}

.adminFormMessage {
  margin-top: 18px;
  padding: 12px;
  border-radius: 6px;
  background: #fbeaec;
  color: var(--red);
}

.adminFormMessage.success {
  background: #eaf5ed;
  color: #2d6a42;
}

.adminEditorActions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.adminActionSpacer {
  flex: 1;
}

.adminDangerButton {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
}

.adminImportCard {
  max-width: 820px;
}

.adminImportHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.adminProgressSection {
  margin-top: 28px;
}

.adminProgressLabels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
}

.adminProgressTrack {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8eb;
}

.adminProgressBar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.2s ease;
}

.adminImportResult {
  margin-top: 20px;
  padding: 16px;
  border-radius: 6px;
  background: #eaf5ed;
  color: #2d6a42;
  line-height: 1.6;
}

.adminImportResult.error {
  background: #fbeaec;
  color: var(--red);
}

.adminImportProgress {
    margin-top: 24px;
}

.adminImportProgressHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.adminImportProgressHeader span {
    color: var(--muted);
}

.adminProgressTrack {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}

.adminProgressBar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--red);
    transition: width 0.15s ease;
}

#importResult {
    margin-top: 20px;
    white-space: pre-wrap;
}

#importResult.error {
    color: var(--red);
}

@media (max-width: 1050px) {
  .adminStatGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .adminShell {
    display: block;
  }

  .adminSidebar {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .adminSidebarTitle,
  .adminReturnLink {
    display: none;
  }

  .adminSidebarNav {
    grid-template-columns: repeat(3, 1fr);
  }

  .adminSidebarNav a {
    text-align: center;
  }

  .adminMain {
    padding: 22px 15px;
  }

  .adminStatGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adminCardGrid {
    grid-template-columns: 1fr;
  }

  .adminUserHeader {
    display: none;
  }

  .adminUserRow {
    grid-template-columns: 1fr auto;
  }

  .adminUserRow> :not(:first-child):not(:last-child) {
    display: none;
  }
}

/* D1 JSON import panel */
.d1ImportPanel {
  max-width: 760px;
}

.d1ImportPanel .adminCardHeader {
  margin-bottom: 20px;
}

.d1ImportPanel .adminCardHeader h2 {
  margin: 0 0 6px;
}

.d1ImportPanel .adminCardHeader p {
  margin: 0;
  color: var(--muted, #66737d);
}

.d1ImportField {
  margin-bottom: 18px;
}

.d1ImportField label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.d1ImportField input[type="file"] {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border, #d9dee3);
  border-radius: 6px;
  background: #fff;
}

.d1ImportStatus {
  margin-top: 18px;
  padding: 14px;
  border-radius: 6px;
  background: var(--cream, #f4f1e8);
  white-space: pre-wrap;
  line-height: 1.45;
}

.d1ImportStatus.is-error {
  background: #fce8e8;
  color: #7e171b;
}

@media (max-width: 700px) {

  .adminPageHeading,
  .adminImportHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .adminToolbar {
    flex-direction: column;
  }

  .adminSearchInput,
  .adminSelectInput {
    width: 100%;
  }

  .adminFormGrid {
    grid-template-columns: 1fr;
  }

  .adminCheckboxField {
    padding-top: 0;
  }
}


@media (max-width: 700px) {
  .accountArea span {
    display: none;
  }
}

@media (max-width: 700px) {
  .pageShell {
    padding: 14px;
  }

  .panelHeader {
    flex-direction: column;
  }

  .searchInput {
    width: 100%;
  }

  .folderGrid {
    grid-template-columns: 1fr;
  }

  .fileRow {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Admin overview attention grid */

.adminAttentionCard {
  grid-column: 1 / -1;
}

.adminAttentionHeading {
  margin-bottom: 18px;
}

.adminAttentionHeading h2 {
  margin: 0;
}

.adminAttentionHeading p {
  margin: 6px 0 0;
}

.adminAttentionGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.adminAttentionItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.adminAttentionItem:hover {
  border-color: #c7d0d8;
  background: var(--hover);
  transform: translateY(-1px);
}

.adminAttentionText {
  min-width: 0;
}

.adminAttentionText strong {
  display: block;
  line-height: 1.3;
}

.adminAttentionText small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.adminAttentionCount {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--red);
  font-size: 26px;
  font-weight: 800;
  text-align: right;
}

.adminAttentionCount.isClear {
  color: #2d6a42;
}

@media (max-width: 1050px) {
  .adminAttentionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .adminAttentionGrid {
    grid-template-columns: 1fr;
  }
}

/*
 * The overview has one supporting card, so keep its outer grid
 * explicitly single-column and full-width.
 */
.adminOverviewCardGrid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.adminOverviewCardGrid .adminAttentionCard {
  grid-column: 1;
  width: 100%;
}


/* Account dropdown links use the same appearance as menu buttons. */
a.accountMenuItem {
  display: block;
  text-decoration: none;
}


.adminAssignmentHelp {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}


/* Consolidated Admin adult and access editor */
.adminHeadingActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adminAccessSummary {
  font-weight: 700;
  line-height: 1.35;
}

.adminFieldHelp {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.adminUnitAssignmentRow {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(170px, auto);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.adminUnitAssignmentRow:last-child {
  border-bottom: 0;
}

.adminUnitAssignmentIdentity {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.adminUnitAssignmentIdentity span {
  display: grid;
  gap: 2px;
}

.adminUnitAssignmentIdentity small {
  color: var(--muted);
  font-size: 12px;
}

.adminInlineSelect {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.adminManagerToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.adminManagerToggle:has(input:disabled),
.adminUnitAssignmentIdentity:has(input:not(:checked)) ~ .adminManagerToggle {
  color: var(--muted);
}

.adminAssignmentGroupHeading {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #edf0f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.adminAssignmentGuidance {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.adminScoutAssignmentOption {
  align-items: center;
}

@media (max-width: 800px) {
  .adminUnitAssignmentRow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .adminManagerToggle {
    padding-left: 28px;
  }
}
