/* App surface — layout & components. Brand tokens/chrome live in theme.css */

html { box-sizing: border-box; overflow-x: hidden; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.wrap { width: min(1100px, calc(100% - 28px)); margin: 0 auto; }

.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.92rem; align-items: center; }
.nav a { color: var(--accent); font-weight: 600; }

main.wrap { padding: 20px 0 3rem; }

/* Banners sit above main — keep a short gap, not a second page pad */
.platformBannerWrap { margin-top: 12px; }
.platformBannerWrap + main.wrap,
.platformBannerWrap ~ main.wrap {
  padding-top: 12px;
}
main.wrap > .card:first-child,
main.wrap > section.card:first-child,
main.wrap > .adminBoard:first-child,
main.wrap > .adminPanel:first-child,
main.wrap > .authShell:first-child {
  margin-top: 0;
}

.platformBannerRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.siteLegalLinks {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: center;
  text-align: center;
  margin: 28px auto 0;
  padding: 0 14px;
  width: 100%;
}
.siteLegalLinks a {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.siteLegalLinks a:hover {
  color: var(--blue, #2f6fed);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer,
.siteDevelopedByFooter {
  box-sizing: border-box;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin: 12px auto 6px;
  padding: 0 14px;
  line-height: 1.35;
  width: 100%;
}
.site-footer p { margin: 0; }
.siteDevelopedByFooter a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.siteDevelopedByFooter a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-page); margin: 0 0 6px; }
h2 { font-size: var(--text-section); margin: 0 0 16px; }
h3 { font-size: 1rem; margin: 1rem 0 0.75rem; }

.muted { color: var(--muted); font-size: var(--text-xs); }

/* Page header strip — title + context + actions */
.pageHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: var(--space-4);
}
.pageHeader .pageHeaderMain {
  flex: 1;
  min-width: 200px;
}
.pageHeader .pageHeaderActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pageHeader h1,
.pageHeader h2 {
  margin: 0 0 4px;
}
.pageHeader .pageIntro,
.pageHeader .admin-greeting,
.pageHeader .adminHomeGreeting {
  margin: 0;
}

/* AdminBoard greeting under H1 */
.adminBoard > h1 {
  margin: 0 0 6px;
  font-size: var(--text-page);
}
.adminBoard > .pageHeader {
  margin-bottom: 10px;
}
.admin-greeting,
.adminHomeGreeting {
  margin: 0 0 10px;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy-soft);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.pageHeader .admin-greeting,
.pageHeader .adminHomeGreeting {
  margin: 0;
  font-size: var(--text-sm);
}

/* —— AdminBoard containers —— */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}
.card > h2:first-child { margin-top: 0; }

/* Top shortcut row — AdminBoard #adminNavCard */
#adminNavCard,
.nav-card {
  margin-bottom: var(--space-4);
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
#adminMenu.card {
  padding: var(--space-5);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#adminNavCard .navLinks,
.nav-card .navLinks {
  margin: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: stretch;
}
#adminNavCard .navLinks > *,
.nav-card .navLinks > * {
  margin: 0;
}
#adminNavCard .navLinks form,
.nav-card .navLinks form {
  margin: 0;
}
#adminMenu > h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-section);
}
.navLinks a.navButton,
a.navButton,
#adminNavCard .navLinks a.navButton,
#adminNavCard .navLinks button.navButton,
.nav-card .navLinks a.navButton {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 8px 12px;
  min-height: var(--touch-min);
  font-size: 14px;
  line-height: 1.2;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.navLinks a.navButton:hover,
a.navButton:hover,
#adminNavCard .navLinks a.navButton:hover,
#adminNavCard .navLinks button.navButton:hover,
.nav-card .navLinks a.navButton:hover {
  background: var(--mist-hover);
  border-color: var(--accent-border-hover);
  text-decoration: none !important;
  color: var(--navy) !important;
}

/* Vendor home — ACH payment cleared */
.paymentClearedBanner {
  margin-bottom: var(--space-5);
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid rgba(31, 107, 69, 0.28);
  background:
    linear-gradient(180deg, rgba(232, 246, 238, 0.92) 0%, #fff 48%);
  box-shadow: var(--shadow-sm);
}
.paymentClearedBanner .whatsNextEyebrow {
  color: var(--ok);
}
.paymentClearedBanner .whatsNextTitle {
  max-width: 42rem;
}
.paymentClearedBanner .whatsNextPanelHeader {
  margin-bottom: 0;
  align-items: center;
}

/* Vendor home — Getting started / What's next */
.whatsNextPanel {
  margin-bottom: var(--space-5);
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid rgba(47, 95, 176, 0.22);
  background:
    linear-gradient(180deg, rgba(238, 243, 249, 0.85) 0%, #fff 42%);
  box-shadow: var(--shadow-sm);
}
.whatsNextPanelHeader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.whatsNextEyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.whatsNextTitle {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}
.whatsNextIntro {
  margin: 0;
  max-width: 42rem;
  line-height: 1.45;
}
.whatsNextHeaderAside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.whatsNextProgress {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}
.whatsNextDismiss {
  min-width: auto;
}
.whatsNextSteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.whatsNextStep {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.whatsNextStep.is-done {
  background: #f7faf8;
  border-color: rgba(31, 107, 69, 0.18);
}
.whatsNextStepIndex {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--navy);
  flex-shrink: 0;
}
.whatsNextStep.is-done .whatsNextStepIndex {
  background: var(--ok);
}
.whatsNextStepBody {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  align-items: center;
  min-width: 0;
}
.whatsNextStepCopy {
  flex: 1;
  min-width: 12rem;
}
.whatsNextStepLabel {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  color: var(--navy);
}
.whatsNextStepCopy .muted {
  margin: 0;
  line-height: 1.4;
}
.whatsNextStep.is-done .whatsNextStepLabel {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.whatsNextCta {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .whatsNextHeaderAside {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .whatsNextStepBody {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin home — rail plus job body. Tokens only; stacks under 800px. */
.homeLayout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-top: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.homeBody > .card:first-child,
.homeBody > section.card:first-child {
  margin-top: 0;
}
.homeRail {
  width: 260px;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.homeRailGroup {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.homeRailGroup > .homeRailGroupLabel {
  display: block;
  margin: 0;
  padding: 12px 14px 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.homeRailGroupItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 12px;
}
.homeRailGroupItems form {
  margin: 0;
}
.homeRailGroupItems .secondary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  height: auto;
  min-height: var(--touch-min);
  line-height: 1.3;
}
.homeRail a.menuItem {
  display: flow-root;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  min-height: var(--touch-min);
  box-sizing: border-box;
}
.homeRail a.menuItem .menuItemPill,
.homeRail a.menuItem .menuItemPills {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0 0 0 8px;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}
.homeRail a.menuItem .menuItemPills .menuItemPill {
  float: none;
  margin: 0;
}
.homeRail a.menuItem:focus-visible,
a.homeLane:focus-visible,
.portfolioGrid .card .navButton:focus-visible,
.homeExceptionRow a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.homeRailAccount .inlineForm,
.homeRailAccount form {
  margin: 0;
}
.homeRailAccount .secondary,
.homeRailAccount .navButton,
.homeRailAccount > a.menuItem {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  height: auto;
  min-height: var(--touch-min);
  line-height: 1.3;
}
.homeRailAccount {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.homeBody {
  flex: 1;
  min-width: 0;
}
.homeBody > a.menuItem {
  max-width: 280px;
}
.homeBody > .homeRail {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
}
.homeBody > .homeRail > a.menuItem {
  flex: 1 1 180px;
  max-width: 100%;
}
.homeLane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--touch-min);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.homeLaneCount {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.homeLane a,
a.homeLane {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.homeLane a:hover,
a.homeLane:hover {
  color: var(--navy);
}
.homeExceptionRow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.homeExceptionRow .statCard,
.homeExceptionRow a.statCard {
  flex: 1 1 140px;
  min-width: min(100%, 140px);
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}
.homeExceptionRow a.statCard:hover,
.homeExceptionRow .statCard:has(.homeStatLink):hover {
  border-color: var(--accent-border-hover);
}
.homeExceptionRow .homeStatLink {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: var(--touch-min);
}
.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.portfolioGrid .card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.portfolioGrid .card h2 {
  overflow-wrap: anywhere;
}
.portfolioGrid .card .navButton {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  white-space: normal;
  text-align: center;
}
.homeCardMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.homeSearch {
  margin: 0;
}
.homeSearchLabel {
  display: block;
  margin-bottom: 8px;
}
.homeSearchRow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.homeSearchRow input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
}
.homeSearchRow button {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: var(--control-height);
  min-height: var(--control-height);
}
.homeTasksHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.homeTasksHead h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.homeTasksList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.homeTask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--mist);
  color: inherit;
}
a.homeTask {
  text-decoration: none;
}
a.homeTask:hover {
  background: var(--card);
  border-color: var(--accent-border-hover);
  text-decoration: none;
}
.homeTaskLead:hover,
a.homeTaskChip:hover,
.homeCampaignList a:hover {
  text-decoration: none;
}
a.homeTask:focus-visible,
.homeTaskLead:focus-visible,
a.homeTaskChip:focus-visible,
.homeCampaignList a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.homeTaskLead {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.homeTaskCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.homeTaskBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
}
.homeTaskTitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--navy);
}
a.homeTask:hover .homeTaskTitle,
.homeTaskLead:hover .homeTaskTitle {
  color: var(--accent);
}
.homeTaskMeta {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.homeTaskChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.homeTask > .homeTaskChips,
.homeTask > .homeCampaignList {
  grid-column: 2;
  margin: 0;
}
.homeTasksHead + .deskNext,
.homeTasksHead + .workList {
  margin-top: 14px;
}
.homeTaskChip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--navy-soft);
  font-size: var(--text-sm);
  line-height: 1.35;
  text-decoration: none;
}
.homeTaskChip strong {
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
a.homeTaskChip:hover {
  border-color: var(--accent-border-hover);
  color: var(--navy);
}
.homeTask.is-alert {
  background: var(--warn-bg);
  border-color: color-mix(in srgb, var(--warn) 45%, var(--line));
}
.homeTask.is-alert .homeTaskCount {
  background: var(--warn);
}
.homeCampaignList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.homeCampaignList li {
  margin: 4px 0;
}
.homeCampaignList a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.homeCampaignList a:hover {
  color: var(--accent);
}
.homeQuiet {
  margin: var(--space-4) 0;
  overflow-wrap: anywhere;
}
.homeTasks .homeQuiet {
  margin: 12px 0 0;
}
.homeBody .adminMenu {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.homeBody .statsGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}
.homeStatsDisclosure > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}
.adminBoard h1,
.adminBoard .admin-greeting,
.whatsNextTitle {
  overflow-wrap: anywhere;
}
.workList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workRow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.workRowMain {
  flex: 1;
  min-width: 0;
}
.workRowTitle {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
a.workRowTitle:hover {
  color: var(--navy);
}
.workRowMeta,
.workRowAge,
.workRowLocked {
  margin: 2px 0 0;
  color: var(--muted, var(--navy-soft));
  font-size: 0.92em;
}
.workRowLocked {
  color: var(--navy);
}
.workRowAge {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}
.workRowActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.workRowQuiet {
  font-size: 0.92em;
}
.deskChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-3) 0;
}
.deskChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--touch-min);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
}
.deskChip.is-active {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}
.deskNext {
  margin: 0 0 var(--space-3);
}
.findGroupTitle {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1rem;
}
.homeSetupLine {
  margin: var(--space-3) 0;
}
@media (max-width: 800px) {
  .homeLayout {
    flex-direction: column;
  }
  .homeLayout > .homeBody {
    order: -1;
    width: 100%;
  }
  .homeLayout > .homeRail {
    width: 100%;
    flex-direction: column;
  }
  .workRow {
    flex-wrap: wrap;
  }
  .workRowActions {
    width: 100%;
    justify-content: flex-start;
  }
  .homeRailAccount {
    flex: 1 1 100%;
    width: 100%;
    margin-top: var(--space-3);
  }
}

#credentialOrdersDashTable,
#unidentifiedDashTable,
#dashTable,
#basicDashTable,
#adminDashTable,
#vendorCodeDashTable {
  scroll-margin-top: calc(var(--brand-header-pad) * 2 + 48px);
}

/* Choose-a-task menu — AdminBoard .adminMenu / .taskGroup / .menuItem */
.adminMenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.taskGroup {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--card);
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
h3.taskGroupTitle,
.taskGroupTitle {
  margin: 0 !important;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.taskGroupItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.adminMenu a.menuItem,
a.menuItem,
.taskGroupItems a.menuItem {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  touch-action: manipulation;
}
.adminMenu a.menuItem:hover,
a.menuItem:hover,
.taskGroupItems a.menuItem:hover {
  background: var(--mist);
  border-color: var(--accent-border-hover);
  color: var(--navy) !important;
  text-decoration: none !important;
}
.adminMenu a.menuItem.menuItem--unused,
a.menuItem.menuItem--unused,
.taskGroupItems a.menuItem.menuItem--unused {
  opacity: 0.55;
  border-style: dashed;
  color: var(--muted) !important;
}
.adminMenu a.menuItem.menuItem--unused:hover,
a.menuItem.menuItem--unused:hover,
.taskGroupItems a.menuItem.menuItem--unused:hover {
  opacity: 0.8;
}
.adminMenu a.menuItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.menuItemPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
}
.menuItemPills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.menuItemPill--notStarted {
  background: #eaf2ff;
  color: var(--navy);
}
.menuItemPill--inProgress {
  background: #fff6e5;
  color: var(--warn);
}
.dangerZoneBlock {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-control);
  background: var(--card);
}
.demoDataBlock {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
}
.demoDataBlock button,
.dangerZoneBlock button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 6px 12px;
  min-height: 32px;
  height: auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-control);
  box-shadow: none;
}
.demoDataBlock a.navButton,
.demoDataBlock button.navButton,
.demoDataBlock button.secondary {
  background: var(--mist);
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 6px 12px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 600;
}
.demoDataBlock button.navButton:hover,
.demoDataBlock button.secondary:hover {
  background: var(--mist-hover);
  border-color: var(--accent-border-hover);
  color: var(--navy);
}
.demoDataBlock button.danger,
.dangerZoneBlock button.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-line);
}
.demoDataBlock button.danger:hover,
.dangerZoneBlock button.danger:hover {
  background: var(--danger-line);
  color: var(--danger-border);
}
.envBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #1a3a5c;
  color: #f4f7fb;
}
.demoOpenAs {
  display: inline;
  margin: 0;
  padding: 0;
}
.demoOpenAs button {
  background: none;
  border: none;
  padding: 0;
  color: var(--link, #2f5fb0);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.demoDirectoryLinks {
  white-space: nowrap;
}
.demoDirectoryLinks a,
.demoDirectoryLinks .demoOpenAs {
  margin-right: 0;
}
.demoDirectoryTocCard {
  margin-bottom: 1.25rem;
}
.demoDirectoryTocLead {
  margin: 0 0 0.5rem;
}
.demoDirectoryToc {
  margin: 0;
  padding-left: 1.25rem;
}
.demoDirectoryTocNested {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.1rem;
  list-style: disc;
}
.demoDirectoryTable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.demoDirectoryTable th,
.demoDirectoryTable td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.demoDirCompany {
  margin: 1.75rem 0 2.5rem;
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.demoDirCompany__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.demoDirCompany__head h2 {
  margin: 0 0 0.2rem;
}
.demoDirCompany__vendors {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  background: #f3f5f8;
}
.demoDirCompany__vendors h3 {
  margin: 0 0 0.25rem;
  font-size: var(--text-base);
}

.demoDirCommunity {
  margin: 1.15rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg, #f7f8fa);
}
.demoDirCommunity__banner {
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #1a3a5c 0%, #243f5f 100%);
  color: #f4f7fb;
}
.demoDirCommunity__bannerMain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
}
.demoDirCommunity__bannerMain h3 {
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
}
.demoDirCommunity__code {
  margin: 0;
  opacity: 0.85;
}
.demoDirCommunity__code code {
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.demoDirSetup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem 1rem;
  margin: 0;
}
.demoDirSetup > div {
  min-width: 0;
}
.demoDirSetup--wide {
  grid-column: 1 / -1;
}
.demoDirSetup dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}
.demoDirSetup dd {
  margin: 0.1rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
}
.demoDirCommunity__section {
  padding: 0.85rem 1rem 1rem;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.demoDirCommunity__section h4 {
  margin: 0 0 0.55rem;
  font-size: var(--text-base);
}
.demoDirResidentPlain {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}
.demoDirResidentList {
  margin: 0;
  padding-left: 1.15rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.demoDirResidentList li {
  margin: 0.2rem 0;
}

@media (max-width: 700px) {
  .demoDirCompany {
    padding: 0.85rem;
  }
  .demoDirCompany__head {
    flex-direction: column;
  }
  .demoDirectoryTable {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  #adminNavCard .navLinks,
  .nav-card .navLinks { flex-direction: column; align-items: stretch; }
  #adminNavCard .navLinks a.navButton,
  .nav-card .navLinks a.navButton { width: 100%; text-align: center; }
}

/* Full-page task panel — AdminBoard .adminPanel.card */
.adminPanel.card { display: block; }
.adminPanel > h1,
.adminPanel > h2 { margin-top: 0; }
.adminPanel .innerCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--card);
  margin-top: 14px;
  overflow: hidden;
}
.adminPanel .innerCard:first-of-type { margin-top: 12px; }
.adminPanel .innerCard:has(> .tableScrollBox:only-child) {
  padding: 0;
}
.adminPanel .innerCard > .tableScrollBox {
  border: none;
  border-radius: 0;
  max-height: 420px;
}

/* Back link — AdminBoard .backRow (text link, not a gray button) */
.backRow { margin: 0 0 16px; }
.backRow a,
.backRow button,
.adminPanel .backRow a {
  display: inline;
  background: transparent !important;
  color: var(--accent) !important;
  border: none !important;
  padding: 6px 0 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 0 !important;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none !important;
}
.backRow a:hover,
.backRow button:hover,
.adminPanel .backRow a:hover {
  text-decoration: underline;
  background: transparent !important;
  color: var(--accent) !important;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.statsSubgroup {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  background: #fff;
}
.statsSubgroup:first-of-type { margin-top: 10px; }
.statsSubgroupTitle {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-soft);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.statsSubgroup .statsGrid { margin-top: 0; }

.tableScrollBox {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.tableScrollBox table { margin: 0; }
.tableScrollBox thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.resultBox {
  margin-top: 12px;
  padding: 12px;
  background: var(--mist);
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

label {
  display: block;
  font-size: var(--text-xs);
  margin-bottom: 4px;
  color: var(--navy-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}
input, select, textarea, button, .btn {
  font-family: inherit;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
}
/* Checkboxes/radios must not inherit text-field width/height/padding. */
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  max-width: none;
  margin: 0 0.4rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
  flex-shrink: 0;
  accent-color: var(--navy);
}
/* Inline checkbox/radio labels sit beside the control, not like field captions. */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--ink);
  cursor: pointer;
}
label:has(> input[type="checkbox"]) > input[type="checkbox"],
label:has(> input[type="radio"]) > input[type="radio"] {
  margin-right: 0;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 95, 176, 0.14);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(47, 95, 176, 0.14);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea { min-height: 100px; }
.field { margin-bottom: 0.9rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.row > * { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
.adminMenu .menuItem,
.navLinks a,
.backRow a,
.backRow button {
  touch-action: manipulation;
}

button, .btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  min-height: var(--control-height);
  border-radius: var(--radius-control);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button:hover, .btn:hover {
  background: var(--accent);
  text-decoration: none;
  color: #fff;
}
button.secondary, .btn.secondary {
  background: var(--mist);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}
button.secondary:hover, .btn.secondary:hover {
  background: #e4ebf5;
  color: var(--navy);
}
.logoutButton {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.accountSwitcherForm {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
}
.accountSwitcher {
  max-width: 16rem;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border, #c9d0da);
  background: var(--surface, #fff);
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button.danger, .btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger-border);
  box-shadow: none;
}
button.danger:hover, .btn.danger:hover { background: var(--danger-border); }
button:disabled, .btn:disabled { opacity: 0.65; cursor: not-allowed; }
button:disabled:hover { background: var(--navy); }
button.secondary:disabled:hover { background: var(--mist); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  background: var(--mist);
}
tbody tr:hover td {
  background: rgba(238, 243, 249, 0.55);
}
tbody tr:last-child td { border-bottom: none; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.flash.info { background: var(--info-bg); color: var(--navy); }
.flash.warning { background: var(--warn-bg); color: var(--warn); }
.flash.error { background: var(--danger-bg); color: var(--danger); }
.flash.success { background: var(--ok-bg); color: var(--ok); }
.systemBanner {
  font-weight: 400;
}
.systemBannerTitle {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.systemBannerMessage {
  white-space: pre-wrap;
  font-weight: 400;
}
.systemBannerPosted {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
}
.campaignDeadlineBanner,
.billingHoldBanner {
  align-items: center;
}
.campaignDeadlineBanner .navButton {
  flex-shrink: 0;
}

/* Premium auth */
.authShell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-6) 0 var(--space-8);
  min-height: min(70vh, 640px);
}
.authCheck {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
.authCheck input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.authCheck a {
  color: var(--accent);
  font-weight: 600;
}
.authCard {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: var(--space-6) var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.authCard--wide {
  max-width: 720px;
}
.apSystemOther {
  margin-top: 8px;
}
.modalDialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  max-width: 480px;
  width: calc(100% - 32px);
  overflow: visible;
}
.vendorBroadcastDialog {
  max-width: 36rem;
}
.vendorBroadcastMessage {
  white-space: pre-wrap;
  margin: 0;
}
.checkboxLine {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}
.modalDialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.35rem 0;
}
.billingInviteBox {
  margin: 0.15rem 0 0;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--mist);
  border: 1px solid rgba(47, 95, 176, 0.22);
  border-radius: var(--radius);
}
.billingInviteBox form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
}
.billingInviteBox form > * {
  margin: 0;
}
.billingInviteKicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.billingInviteTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.billingInviteBox button[type="submit"] {
  width: 100%;
}
.authCard h1 {
  margin: 0 0 6px;
  font-size: var(--text-page);
}
.authCard .authSubtitle,
.authCard > .muted {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
}
.authCard .actions {
  margin-top: var(--space-5);
}
.authCard .actions button,
.authCard form > button[type="submit"] {
  width: 100%;
}
.authForgot {
  margin-top: 0.85rem;
  text-align: center;
  font-size: var(--text-sm);
}
.authForgot a {
  color: var(--muted);
}

.passwordFieldWrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.passwordFieldWrap input[type="password"],
.passwordFieldWrap input[type="text"] {
  flex: 1;
  min-width: 0;
  padding-right: 4.5rem;
}
.passwordToggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--accent, #2563eb);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1.2;
}
.passwordToggle:hover {
  text-decoration: underline;
}
.passwordToggle:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Panel toolbar + empty state */
.panelToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 16px 0 0;
  min-width: 0;
}
.card > .panelToolbar:first-child,
.adminPanel > .panelToolbar {
  margin-top: 16px;
}
.card > .panelToolbar:first-child {
  margin-top: 0;
  margin-bottom: 12px;
}
.panelToolbar .field {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.pageIntro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.tableEmpty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
  font-size: var(--text-sm);
}

/* Data panel — list/table chrome */
.dataPanel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}
.dataPanel > h2:first-child { margin-top: 0; }

.hubSection {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.hubSection:first-of-type {
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: none;
}
.hubSectionRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hubSectionRow h3 {
  margin: 0;
}
.hubGrid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.inlineActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hubActions {
  margin-bottom: var(--space-4);
}
.hubManageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 24px;
  margin-top: 4px;
}
.hubManageGroup h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-soft, #5b6471);
}
.hubManageGroup .inlineActions {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.hubManageGroup .navButton,
.hubManageGroup a.navButton {
  text-align: left;
  justify-content: flex-start;
}
#techAccessNotes {
  scroll-margin-top: 16px;
}
.hubStateBanner {
  margin-bottom: var(--space-4);
  padding: 16px 18px;
  border: 1px solid var(--highlight-border, var(--line));
  border-radius: 12px;
  background: var(--mist);
}
.hubStateBanner h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.hubStateBanner ul {
  margin: 0 0 14px;
  padding-left: 18px;
}
.hubStateBanner li {
  margin: 0 0 4px;
}
.hubStateBanner .hubStateBannerActions {
  margin: 0;
}
.hubPauseZone {
  margin-top: var(--space-4);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}
.hubPauseZone > h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.hubPauseZone > .pageIntro {
  margin: 0 0 14px;
}
.hubLifecycleItem {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.hubLifecycleItem:first-of-type {
  border-top: none;
  padding-top: 0;
}
.hubLifecycleItem .hubLifecycleCopy {
  flex: 1 1 220px;
  min-width: 0;
}
.hubLifecycleItem .hubLifecycleCopy h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.hubLifecycleItem .hubLifecycleCopy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--navy-soft, #5b6471);
}
.hubLifecycleItem .hubLifecycleAction {
  flex: 0 0 auto;
}
.statusFilterRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.admin-greeting .badge {
  vertical-align: middle;
}
.inlineForm {
  display: inline;
  margin: 0;
}
.stackTight { margin: 0 0 8px; }
.stackAfter { margin: 8px 0 0; }
.textCompact { font-size: 0.92em; }
.warnCard {
  border-color: var(--highlight-border);
}
.companyDetailHeader h1 {
  margin: 0 0 4px;
}
.companyDetailHeader .pageIntro {
  margin: 0;
}

.stat,
.statCard {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat .value,
.statCard .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.stat .label,
.statCard .label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.steps span,
.steps a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
}
.steps a:hover { background: #e4ebf5; border-color: rgba(47, 95, 176, 0.35); }
.steps a.done {
  background: #e8f6ee;
  color: var(--ok);
  border-color: #c5e6d2;
}
.steps a.done:hover {
  background: #dcedc8;
  border-color: #a5d6a7;
}
.steps a.optional,
.steps span.optional {
  border-style: dashed;
}
.steps span.active,
.steps a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.steps a.active:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.75rem;
}
.badge.new { background: #eaf2ff; color: var(--navy); }
.badge.in_progress { background: #fff6e5; color: var(--warn); }
.badge.complete { background: #e8f6ee; color: var(--ok); }
.badge.canceled { background: #fdecee; color: var(--danger); }
.badge.on_hold { background: #fff6e5; color: var(--warn); }
.badge.pending { background: #eaf2ff; color: var(--navy); }
.badge.submitted { background: #fff6e5; color: var(--warn); }
.badge.hold { background: #fff6e5; color: var(--warn); }
.badge.superseded { background: var(--mist); color: var(--navy-soft); }
.badge.completed { background: #e8f6ee; color: var(--ok); }
.badge.approved { background: #e8f6ee; color: var(--ok); }
.badge.rejected { background: #fdecee; color: var(--danger); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 31, 68, 0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 16px; max-width: 520px; width: 100%;
  max-height: 85vh; overflow: auto; padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(11, 31, 68, 0.22);
  border: 1px solid var(--line);
}
.modal h2 { margin: 0 0 8px; }
.login-card {
  max-width: 480px;
  margin: 2rem auto;
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.choice-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  cursor: pointer;
}
.choice-option:hover { background: #fff; border-color: rgba(47, 95, 176, 0.35); }
.choice-option input { width: auto; margin-top: 3px; flex-shrink: 0; }
.choice-option span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-option strong { font-size: 14px; color: var(--ink); }

.pillChoice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.pillChoiceOption {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.pillChoiceOption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pillChoiceOption span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink);
}
.pillChoiceOption:hover span {
  background: var(--mist);
  border-color: rgba(47, 95, 176, 0.35);
}
.pillChoiceOption input:checked + span,
.pillChoiceOption input:focus-visible + span {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pillChoiceOption input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.addonChoiceColumns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 8px 0 16px;
}
.addonChoiceColumns:has(.addonChoiceColumn[hidden]) {
  grid-template-columns: 1fr;
}
.addonChoiceColumn[hidden] {
  display: none !important;
}
.addonColumnTitle {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #0b1f44);
}
.addonChoiceList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.addonChoiceColumns .addonChoiceList {
  margin: 0;
}
.addonChoice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.addonChoice .addonHelp {
  margin: 0;
  max-width: none;
  font-size: 0.8125rem;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .addonChoiceColumns {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}
.pillChoiceOption.addonPill {
  position: relative;
}
.pillChoiceOption.addonPill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.pillChoiceOption.addonPill span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pillChoiceOption.addonPill span::before {
  content: '';
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 1.5px solid #bbb;
  border-radius: 3px;
  background: #fff;
}
.pillChoiceOption.addonPill input:checked + span,
.pillChoiceOption.addonPill input:focus-visible + span {
  background: #1b7a3d;
  color: #fff;
  border-color: #1b7a3d;
}
.pillChoiceOption.addonPill input:checked + span::before {
  border-color: #fff;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231b7a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E")
    center / 0.7rem 0.7rem no-repeat;
}
.pillChoiceOption.addonPill input:focus-visible + span {
  outline: 2px solid #1b7a3d;
  outline-offset: 2px;
}
.intakeFollowup {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: var(--mist);
}
.badge.withdrawn { background: var(--mist); color: var(--navy-soft); }

.fieldHelp {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.wizardSectionTitle {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wizardOptionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.wizardOptionCard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--mist);
}
.wizardOptionLabel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.wizardOptionLabel input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}
.wizardHidden {
  display: none !important;
}
.wizardCallout {
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: var(--mist);
}
.wizardCredTypeList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}
.wizardCredTypeOption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
}
.wizardCredTypeOption input {
  width: auto;
}
.wizardFixedRoleName {
  margin: 0 0 10px;
}
.wizardAllHours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 400;
}
.wizardAllHours input {
  width: auto;
}

.credTypePicker {
  margin-top: 4px;
}
.credTypeChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.credTypeChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  width: auto;
  max-width: 100%;
}
.credTypeChip:hover {
  background: #fff;
  border-color: rgba(47, 95, 176, 0.35);
}
.credTypeChip.is-checked {
  background: #fff;
  border-color: rgba(47, 95, 176, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 95, 176, 0.12);
}
.credTypeChip input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.credTypeChipCustom {
  cursor: default;
}
.credTypeCustomInput {
  width: 8.5rem;
  max-width: 40vw;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: inherit;
  box-shadow: none;
}
.credTypeCustomInput:focus,
.credTypeCustomInput:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}
button.credTypeChipRemove {
  min-width: auto;
  min-height: auto;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
button.credTypeChipRemove:hover {
  background: transparent;
  color: var(--danger);
}
button.credTypeAddBtn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}
button.credTypeAddBtn:hover {
  background: #fff;
  border-color: rgba(47, 95, 176, 0.45);
  color: var(--navy);
}
.wizardGrantSchedule {
  margin-left: 1.5rem;
}
.wizardStepLabel {
  margin: -0.5rem 0 1rem;
  font-size: 14px;
}
.wizardDivider {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0;
}
.wizardContactCard {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fcfcfc;
}
.wizardContactCard h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .grid.grid-3 { grid-template-columns: 1fr; }
}
.wizardRepeatList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wizardRepeatCard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--mist);
}
.wizardRepeatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wizardSystemUpload {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fcfcfc;
}
.choice-list-compact {
  margin: 0;
}
fieldset.docVisibilityField {
  border: 0;
  margin: 0 0 0.9rem;
  padding: 0;
  min-width: 0;
}
fieldset.docVisibilityField legend {
  font-size: var(--text-xs);
  margin-bottom: 8px;
  color: var(--navy-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0;
}
.wizardGrantRow {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.wizardGrantRow:first-child {
  border-top: 0;
}
.wizardGrantAccess {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 400;
}
.wizardGrantAccess input {
  width: auto;
}
.wizardWeekGrid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 1.5rem;
}
.wizardDayRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wizardDayCheck {
  min-width: 72px;
  margin: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wizardDayCheck input {
  width: auto;
}
.wizardDayRow input[type="time"] {
  width: auto;
  min-width: 7rem;
}
.modifyCommunitySelect {
  width: 100%;
  margin-top: 4px;
}
.taskGroupItems > button.secondary {
  width: 100%;
  text-align: left;
  font-weight: 400;
}
.summaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
}
.summaryItem { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summaryItem .lbl {
  font-size: 11px;
  font-weight: 600;
  color: #5b6471;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.summaryItem .val { font-size: 14px; color: #1f2937; word-break: break-word; }
.summaryLists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.progressMarkers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progressMarkers li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}
.progressMarkers li.done {
  border-color: #c8e6c8;
  background: #f4fff4;
}
.progressMarkers li.current {
  border-color: #cfd8e3;
  background: #f8fbff;
}
.progressMark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--mist);
  color: var(--navy-soft);
}
.progressMarkers li.done .progressMark {
  background: #e8f5e9;
  color: #116611;
}
.progressMarkers li.current .progressMark {
  background: #e3f2fd;
  color: #0d47a1;
}
.switchPathPanel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tableWrap {
  overflow-x: auto;
}
.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dataTable th,
.dataTable td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: top;
}
.dataTable th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b6471;
}
.dataTable .navButton {
  padding: 8px 12px;
  font-size: 13px;
  min-height: var(--touch-min);
}

/* Dense directory / listing tables */
.dataTable.compact {
  font-size: 13px;
  line-height: 1.3;
}
.dataTable.compact th,
.dataTable.compact td {
  padding: 4px 8px;
  vertical-align: middle;
}
.dataTable.compact th {
  font-size: 11px;
  padding: 6px 8px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.dataTable.compact .iconBtn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
}

/* Platform company detail */
.companyDetailHeader {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.companyDetailHeaderMain {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1 1 280px;
}
.companyDetailLogo {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
}
.companyDetailHeaderActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.companyDetailLayout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.companyDetailLayout > .card {
  margin-bottom: 0;
}
.companyDetailStack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.companyDetailStack > .card {
  margin-bottom: 0;
}
.companyDetailBoard .companyDetailStack {
  width: 100%;
}
.companySectionHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.licenseCardList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.licenseTableActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.licenseTableActions form {
  margin: 0;
  display: inline-flex;
}
.licenseCard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--mist);
}
.licenseCardTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.licenseCardMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  margin-bottom: 10px;
}
.licenseCardActions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.licenseCardActions form {
  margin: 0;
  display: inline-flex;
}
.issueLicenseForm .field {
  margin-bottom: 0;
}

/* Platform company license controls */
.companyLicenseCard .dataTable {
  min-width: 0;
}
.licenseLimitInput {
  width: 110px;
  max-width: 100%;
  min-width: 0;
}
.licenseToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  white-space: normal;
  flex-wrap: wrap;
}
.licenseToggle input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
.licenseActions {
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.licenseActions form {
  display: inline;
  margin: 0;
}
.addLicenseForm {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(170px, 220px) auto;
  gap: 16px;
  align-items: end;
  max-width: 720px;
}
.addLicenseForm .field {
  min-width: 0;
  margin-bottom: 0;
}
.addLicenseToggleField .fieldLabel {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-soft);
  font-size: 12px;
}
.addLicenseToggleField .licenseToggle {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--touch-min);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}
.addLicenseForm > button {
  align-self: end;
}
@media (max-width: 680px) {
  .addLicenseForm {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .addLicenseForm > button {
    justify-self: start;
  }
}
.mapTableWrap {
  margin-bottom: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
}
.mapTable {
  margin: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.mapTable thead th {
  background: #f5f7fa;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b6471;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
}
.mapTable td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.mapTable tr:last-child td {
  border-bottom: none;
}
.mapTable .mapColField {
  width: 40%;
}
.mapTable .mapColMapTo {
  width: 60%;
}
.mapTable .mapColMapTo select.mapSelect {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.mapTable .mapColField code {
  font-size: 13px;
}
.validationPanel {
  border-width: 2px;
}
.validationPanelOk {
  border-color: #c8e6c8;
  background: #f4fff4;
}
.validationPanelErr {
  border-color: #f0c2c2;
  background: #fff7f7;
}
.validationSummary {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}
.validationSummary li {
  margin: 6px 0;
}
.validationErrorTable td {
  word-break: break-word;
}
.validationStale {
  border-color: #f0e0a8;
  background: #fffbeb;
}
.userActions summary {
  cursor: pointer;
  color: #0d47a1;
}
.userEditForm {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: var(--mist);
}
.modal .userEditForm {
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.checklist { list-style: none; padding: 0; }
.checklist li { margin: 0.35rem 0; }
.person-block { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

pre.code-block,
pre {
  white-space: pre-wrap;
  background: var(--mist);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: auto;
}

@media (max-width: 1024px) {
  .card { padding: 12px; }
}
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  #adminNavCard .navLinks,
  .nav-card .navLinks {
    flex-direction: column;
    align-items: stretch;
  }
  #adminNavCard .navLinks a.navButton,
  .nav-card .navLinks a.navButton {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 640px) {
  textarea,
  select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  input[type="month"] {
    font-size: 16px; /* ≥16px avoids iOS focus zoom */
  }
  .companyDetailLayout {
    grid-template-columns: 1fr;
  }
  .licenseLimitInput {
    width: 100%;
  }
}

/* Fresh Start campaign admin board (Heron Bay / Bellmoore style) */
.csAdmin .csBrand { margin-bottom: 16px; }
.csAdmin .csBrand h1 { margin-bottom: 4px; }
.csAdmin .csLoc { font-size: 0.95rem; }
.csAdmin .csSub { margin-top: 4px; font-size: 0.9rem; }
.csAdmin .dashboardToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.csAdmin .dashboardToolbar h2 { margin: 0; }
.csAdmin .dashboardActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.csAdmin .sectionLabel {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #667);
}
.csAdmin .adminMenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.csAdmin .taskCardForm { margin: 0; }
.csAdmin a.taskCard,
.csAdmin button.taskCard {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  padding: 16px 40px 16px 18px;
  background: #fff;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
}
.csAdmin a.taskCard::after,
.csAdmin button.taskCard::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: #889;
  line-height: 1;
}
.csAdmin a.taskCard:hover,
.csAdmin button.taskCard:hover {
  background: #fafbfc;
  border-color: #b8c0cc;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}
.csAdmin a.taskCard h3,
.csAdmin button.taskCard h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.csAdmin a.taskCard p,
.csAdmin button.taskCard p { margin: 0; line-height: 1.4; }
.csAdmin .completionProgress {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: #f8fafc;
}
.csAdmin .completionProgressHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.csAdmin .completionProgressLabel {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.csAdmin .completionProgressPct {
  font-size: 1.35rem;
  font-weight: 700;
}
.csAdmin .progressTrack {
  height: 10px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}
.csAdmin .progressFill {
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
  transition: width 0.25s ease;
}
.csAdmin .completionProgressMeta { margin: 8px 0 0; }
.csAdmin .statsStack { margin-top: 14px; display: grid; gap: 12px; }
.csAdmin .statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.csAdmin .statCell {
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.csAdmin .statCell .num {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}
.csAdmin .statCell .lbl {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #667;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.csAdmin .viewHeader {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.csAdmin .viewHeader h2 { margin: 0 0 6px; }
.csAdmin .tableScrollBox { overflow-x: auto; }
.homeStatusComplete { color: var(--ok); font-weight: 600; }
.homeStatusNoActivity { color: var(--danger); font-weight: 600; }
.homeStatusOpenedLink { color: var(--warn); font-weight: 600; }
.homeStatusInProgress { color: var(--accent); font-weight: 600; }
@media (max-width: 700px) {
  .csAdmin .dashboardToolbar { align-items: flex-start; }
  .csAdmin .adminMenu { grid-template-columns: 1fr; }
}

/* Import reconcile — one-record review */
.reconcilePanel .reconcilePersonHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.reconcileSuggest {
  background: #f7f9fc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.reconcileSuggestList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reconcileSuggestList li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.reconcileActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 12px;
}
.reconcilePicker {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.reconcileVendorPanel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.reconcileDanger summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}
.reconcileDanger[open] summary {
  margin-bottom: 12px;
}

/* —— Request / modify form (portal + vendor entry) — matches classic Index.html —— */
.requestForm .headerLine {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  margin-bottom: 12px;
}
.requestForm .headerLine > * { min-width: 0; }
.requestForm .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.requestForm .pill.remove { border-color: var(--danger-line); color: var(--danger); background: var(--danger-bg); }
.requestForm .pill.add { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.requestForm .pill.update { border-color: var(--highlight-border); color: var(--warn); background: var(--warn-bg); }
.requestForm .pill.keep { border-color: var(--line); color: var(--ink); background: var(--mist); }

.requestForm .residentList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  max-width: 100%;
  min-width: 0;
}
.requestForm .residentCardWrap {
  max-width: 100%;
  min-width: 0;
}
.requestForm .residentIndexHeader {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.requestForm .residentDivider {
  border: none;
  border-top: 2px solid var(--navy);
  margin: 16px 0;
}
.requestForm .residentCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
.requestForm .residentCard.removing { opacity: 0.6; }
.requestForm .residentTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}
.requestForm .residentTop > * { min-width: 0; }
.requestForm .residentName { font-weight: 700; }
.requestForm .residentMeta { font-size: 12px; color: #666; margin-top: 4px; }

.requestForm .fieldGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}
.requestForm .fieldGrid > * { min-width: 0; }
.requestForm .fieldGrid .field { margin-bottom: 0; }
.requestForm .fieldGrid label .req { color: var(--danger); margin-left: 2px; }
.requestForm .req { color: var(--danger); }
.requestForm .fieldHelpInline {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
.requestForm .field.readonlyDisplay > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fb;
  color: var(--navy);
  min-height: 38px;
}

.requestForm .actionsRow {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.requestForm .footerActions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
  min-width: 0;
}
.requestForm .addPersonBottom {
  margin: 8px 0 4px;
}

.requestForm button.danger,
.requestForm .btn.danger {
  background: #fff3f3;
  color: var(--ink);
  border-color: #f2b4b4;
}
.requestForm button.danger:hover,
.requestForm .btn.danger:hover {
  background: #ffe8e8;
  color: var(--ink);
  border-color: #e89a9a;
}
.requestForm button.ok,
.requestForm .btn.ok {
  background: #f4fff4;
  color: var(--ink);
  border-color: #b7e3b7;
}
.requestForm button.ok:hover,
.requestForm .btn.ok:hover {
  background: #e8fce8;
  color: var(--ink);
}
.requestForm button.addButton,
.requestForm .btn.addButton {
  background: #d4edda;
  color: #000;
  border-color: #a3d9a5;
}
.requestForm button.addButton:hover,
.requestForm .btn.addButton:hover {
  background: #c3e6cb;
  color: #000;
  border-color: #8fce93;
}

.requestForm .vehicleBox {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--mist);
}
.requestForm .vehicleHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.requestForm .vehicleTitle { font-weight: 700; }
.requestForm .vehicleList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.requestForm .vehicleCard,
.requestForm .credCard {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
  max-width: 100%;
}
.requestForm .vehicleCard.removing,
.requestForm .credCard.removing { opacity: 0.6; }
.requestForm .vehicleTop,
.requestForm .credTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.requestForm .vehicleMeta { font-size: 12px; color: #666; margin-top: 4px; }
.requestForm .vehicleGrid,
.requestForm .credGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}
.requestForm .vehicleGrid > *,
.requestForm .credGrid > * { min-width: 0; }
.requestForm .vehicleGrid .field,
.requestForm .credGrid .field { margin-bottom: 0; }

.requestForm .checkboxRow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.requestForm .checkboxRow input {
  width: 1rem;
  height: 1rem;
  min-height: 0;
}
.requestForm .metaFields {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.requestForm .homeLevelSection {
  margin-top: 16px;
}
.requestForm .homeLevelSection > h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .requestForm .fieldGrid,
  .requestForm .vehicleGrid,
  .requestForm .credGrid {
    grid-template-columns: 1fr;
  }
}

/* Platform cross-portal sessions are inspection-only. GET search/filter forms
   remain usable; mutation forms are visibly disabled. Server middleware also
   rejects the requests, so this is polish rather than the security boundary. */
body.platformReadOnly form[method='post']:not([action='/platform-admin/return']) {
  opacity: 0.55;
  pointer-events: none;
}

body.platformReadOnly form[method='post']:not([action='/platform-admin/return'])::after {
  content: 'Read-only platform view';
  display: inline-block;
  margin-left: 8px;
  color: #666;
  font-size: 12px;
}

body.communityViewOnly form[method='post']:not([action='/community-admin/logout']):not([action='/community-admin/change-password']):not([action='/account/switch']) {
  opacity: 0.55;
  pointer-events: none;
}

/* Portfolio lookups (vendor + platform) — search cards, not tables */
.lookupSearchPanel .lookupKindNav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.lookupKindLink {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.lookupKindLink:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lookupKindLink.is-active {
  background: var(--mist);
  border-color: var(--accent);
  color: var(--accent);
}
.lookupSearchCard h2 {
  margin: 0 0 4px;
}
.lookupResultsTitle {
  margin: 0 0 12px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.lookupHits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lookupHit {
  margin-top: 0;
  padding: 10px 12px;
}
.lookupHitMain {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.lookupHitBody {
  min-width: 0;
}
.lookupHitTitle {
  font-size: 14px;
  line-height: 1.3;
}
.lookupHitFacts {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.lookupHitOpen {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.lookupHitBelong {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
}
.lookupAffix {
  color: var(--navy);
}
.lookupAffixLabel {
  display: inline-block;
  margin-right: 6px;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vendorPricing .card {
  margin-top: 16px;
}
.vendorPricing .card > h2:first-child {
  margin-top: 0;
}
.vendorPricing .card > h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.vendorPricing .statCard h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.vendorPricing .priceLead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.35;
}
.vendorPricing .hubGrid {
  margin-top: 12px;
}
.vendorPricing .statCard .muted {
  margin: 0;
}
.vendorPricing .statCard > p:last-child {
  margin-bottom: 0;
}

.auditLogFilters {
  margin-top: 0;
}
.auditLogCount {
  margin: 12px 0 8px;
}
.auditLogTable .auditLogWhen {
  white-space: nowrap;
}
.auditLogPager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.referralCommissionHint {
  margin: 0 0 0.75rem;
}
.referralCommission h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1rem;
}
.referralCommission .row .field {
  flex: 1 1 8rem;
  margin-bottom: 0.6rem;
}
.referralAfterDuration {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.referralAfterDuration .pillChoice {
  margin: 0;
}
.referralMonthsInput {
  display: none;
}
.referralCommission:has(input[name="ongoing_mode"][value="months"]:checked) .referralMonthsInput {
  display: block;
}
.docBreadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.modal.docPreviewDialog {
  max-width: min(960px, 96vw);
  width: 96vw;
}
.docPreviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.docPreviewHead h2 {
  margin: 0;
  font-size: 1.05rem;
}
.docPreviewBody {
  min-height: 50vh;
  background: var(--mist, #f4f6f8);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}
.docPreviewImage {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.docPreviewFrame {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  border: 0;
  background: #fff;
}
.docFolderRow td {
  background: color-mix(in srgb, var(--surface, #f6f7f9) 80%, transparent);
}
.accessPointCard,
.scheduleRoleCard,
.scheduleGrant {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--mist);
  margin-top: 10px;
}
.accessPointCardHead,
.scheduleGrantHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.scheduleRoleTitle {
  margin: 0 0 8px;
  font-size: 15px;
}
.apRoleChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scheduleDayRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.scheduleDayRow input[type="time"] {
  width: auto;
  min-width: 7.5rem;
}
.scheduleHours {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.jobProgressCard {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f7f9fc;
}
.jobProgressItem + .jobProgressItem { margin-top: 14px; }
.jobProgressTitle {
  margin: 0 0 6px;
  font-weight: 650;
}
.jobProgressMeta { margin: 0 0 8px; }
.jobProgressHint { margin: 10px 0 0; }
.jobProgressTrack {
  height: 10px;
  border-radius: 999px;
  background: var(--mist, #e6ebf3);
  overflow: hidden;
}
.jobProgressFill {
  height: 100%;
  border-radius: 999px;
  background: var(--ok, #2f7d4a);
  transition: width 0.25s ease;
}
.jobProgressFillIndeterminate {
  width: 32%;
  animation: jobProgressSlide 1.4s ease-in-out infinite alternate;
}
@keyframes jobProgressSlide {
  from { transform: translateX(0); }
  to { transform: translateX(200%); }
}

.quoteReviewFacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1rem 0 0;
}
.quoteReviewFact { margin: 0; }
.quoteReviewFact dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.quoteReviewFact dd {
  margin: 0;
  font-weight: 650;
  color: var(--navy);
}
.quoteAddOnList { margin: 1rem 0 0; }
.quoteAddOn { margin: 0.25rem 0; }
.quoteReviewHint { margin: 0.85rem 0 0; }
.quoteReviewLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}
@media (max-width: 960px) {
  .quoteReviewLayout { grid-template-columns: 1fr; }
}
.quoteActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}
.quoteActions form { margin: 0; }
.quoteSuggest {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0.75rem 0;
}
.quoteSuggestRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.35rem 0;
}
.quoteSuggestAmount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.quoteCatalogHeading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
}
.quoteCatalogTable { margin: 0; }
.quoteCatalogCurrent td { font-weight: 700; }

.legalDocGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.legalEditorTextarea {
  width: 100%;
  min-height: 28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}
.legalEditorActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.legalAdminPreview {
  max-width: 48rem;
}
.legalRevisionMarkdown {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 28rem;
  font-size: 0.85rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pac-container {
  z-index: 10000;
}
/* Places dropdown must sit above dialog content when reparented into <dialog> */
dialog[open] {
  overflow: visible;
}
dialog[open] .pac-container {
  z-index: 2147483647;
  position: absolute;
}

/* Google paints a tiled error icon into the input when Places auth fails. */
input.gm-err-autocomplete,
input[data-address-line1].gm-err-autocomplete {
  background-image: none !important;
  background-repeat: no-repeat !important;
}


