/* Modern Enterprise dashboard theme. Scoped to the authenticated dashboard shell. */
.dashboard-modern-enterprise {
  --pv-bg: #eef2f4;
  --pv-surface: #ffffff;
  --pv-subtle: #f5f7f8;
  --pv-text: #162229;
  --pv-muted: #65737c;
  --pv-border: #d9e0e4;
  --pv-border-strong: #bcc8cf;
  --pv-purple: #2d6670;
  --pv-purple-dark: #174a53;
  --pv-purple-soft: #e5f0f1;
  --pv-purple-hover: #f0f6f6;
  --pv-purple-border: #9dbbc0;
  --pv-success: #276b59;
  --pv-success-soft: #e8f4ef;
  --pv-warning: #8b611d;
  --pv-warning-soft: #fff5df;
  --pv-danger: #a13d50;
  --pv-danger-soft: #fff0f2;
  --pv-info: #2d6670;
  --pv-info-soft: #e9f2f3;
  --pv-radius: 5px;
  --pv-bento-radius: 6px;
  --pv-bento-shadow: none;
  --dashboard-bg: #eef2f4;
  --dashboard-surface: #ffffff;
  --dashboard-surface-muted: #f5f7f8;
  --dashboard-ink: #162229;
  --dashboard-muted: #65737c;
  --dashboard-line: #d9e0e4;
  --dashboard-line-strong: #bcc8cf;
  --dashboard-accent: #2d6670;
  --dashboard-accent-strong: #174a53;
  --dashboard-accent-soft: #e5f0f1;
  --dashboard-success: #276b59;
  --dashboard-success-soft: #e8f4ef;
  --dashboard-warning: #8b611d;
  --dashboard-warning-soft: #fff5df;
  --dashboard-danger: #a13d50;
  --dashboard-danger-soft: #fff0f2;
  --dashboard-radius-sm: 4px;
  --dashboard-radius-md: 6px;
  --dashboard-radius-lg: 8px;
  /* Fluent 2 type ramp: Segoe UI Variable renders natively on Windows/Edge, with graceful fallback elsewhere. */
  --fluent-font-base: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "Selawik", -apple-system, BlinkMacSystemFont, system-ui, "Inter", Arial, sans-serif;
  --fluent-font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", "Selawik", -apple-system, BlinkMacSystemFont, system-ui, "Inter", Arial, sans-serif;
  /* Fluent 2 elevation ramp (ambient + directional). */
  --fluent-shadow-2: 0 1px 2px rgba(16, 31, 39, .14), 0 0 2px rgba(16, 31, 39, .12);
  --fluent-shadow-4: 0 2px 4px rgba(16, 31, 39, .14), 0 0 2px rgba(16, 31, 39, .12);
  --fluent-shadow-8: 0 4px 8px rgba(16, 31, 39, .14), 0 0 2px rgba(16, 31, 39, .12);
  --fluent-shadow-16: 0 8px 16px rgba(16, 31, 39, .14), 0 0 2px rgba(16, 31, 39, .12);
  --fluent-shadow-28: 0 14px 28px rgba(16, 31, 39, .24), 0 0 8px rgba(16, 31, 39, .2);
  --fluent-shadow-64: 0 32px 64px rgba(16, 31, 39, .24), 0 0 8px rgba(16, 31, 39, .2);
  --fluent-focus-stroke: var(--dashboard-accent-strong);
  min-width: 320px;
  color: var(--dashboard-ink);
  background: var(--dashboard-bg);
  font-family: var(--fluent-font-base);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dashboard-modern-enterprise .shell {
  --dashboard-sidebar-width: 238px;
  --dashboard-topbar-height: 60px;
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
  background: var(--dashboard-bg);
}

/* Application frame */
.dashboard-modern-enterprise .topbar {
  min-height: var(--dashboard-topbar-height);
  padding: 10px 20px;
  gap: 12px;
  color: #23313a;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce3e6;
  box-shadow: var(--fluent-shadow-2);
  backdrop-filter: none;
}

.dashboard-modern-enterprise .topbar-brand {
  flex-basis: calc(var(--dashboard-sidebar-width) - 20px);
  color: #16252c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.dashboard-modern-enterprise .topbar-breadcrumbs {
  color: var(--dashboard-muted);
  font-size: 12.5px;
}

.dashboard-modern-enterprise .topbar-breadcrumbs a {
  color: var(--dashboard-accent-strong);
}

.dashboard-modern-enterprise .topbar-breadcrumb-current {
  color: var(--dashboard-ink);
}

.dashboard-modern-enterprise .account-summary { gap: 8px; }

.dashboard-modern-enterprise .account-avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  color: #214850;
  background: #edf3f4;
  border: 1px solid #cdd9dd;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-modern-enterprise .account-name {
  color: #2d3d45;
  font-size: 12.5px;
  font-weight: 600;
}

.dashboard-modern-enterprise .button.logout-button {
  min-height: 34px;
  padding: 7px 10px;
  color: #40525b;
  background: #fff;
  border: 1px solid #c8d2d7;
  border-radius: 4px;
}

.dashboard-modern-enterprise .button.logout-button:hover {
  color: var(--dashboard-accent-strong);
  background: #f5f8f9;
  border-color: #9eafb7;
}

.dashboard-modern-enterprise .sidebar {
  min-height: calc(100dvh - var(--dashboard-topbar-height));
  color: #40515a;
  background: #fff;
  border: 0;
  border-right: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .sidebar-content { padding: 16px 12px 28px; }

@media (min-width: 901px) {
  .dashboard-modern-enterprise .sidebar {
    position: relative;
    top: auto;
    align-self: stretch;
    max-height: none;
    overflow: visible;
  }

  .dashboard-modern-enterprise .sidebar-content {
    top: var(--dashboard-topbar-height);
  }
}

.dashboard-modern-enterprise .sidebar .brand {
  min-height: 62px;
  gap: 11px;
  margin: 0 2px 18px;
  padding: 6px 8px 17px;
  border-bottom: 1px solid #e2e7ea;
}

.dashboard-modern-enterprise .sidebar .brand-logo {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  padding: 2px;
  background: #fff;
  border: 1px solid #d6dfe3;
  border-radius: 7px;
}

.dashboard-modern-enterprise .sidebar .brand > span {
  overflow: visible;
  color: #1c2a31;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-modern-enterprise .nav-section { margin-top: 20px; }
.dashboard-modern-enterprise .sidebar nav .nav-section:first-child { margin-top: 0; }

.dashboard-modern-enterprise .nav-section-title {
  margin: 0 10px 7px;
  color: #7a8991;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
}

.dashboard-modern-enterprise .sidebar nav a {
  min-height: 38px;
  gap: 10px;
  margin: 2px 0;
  padding: 8px 10px;
  color: #465860;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 19px;
}

.dashboard-modern-enterprise .sidebar nav a:hover,
.dashboard-modern-enterprise .sidebar nav a:focus-visible {
  color: var(--dashboard-accent-strong);
  background: #f3f7f7;
}

.dashboard-modern-enterprise .sidebar nav a.active {
  color: var(--dashboard-accent-strong);
  background: #e8f1f2;
  border-color: #d0e0e2;
  box-shadow: none;
  font-weight: 650;
}

.dashboard-modern-enterprise .sidebar nav a.active::before {
  inset: 8px auto 8px 0;
  width: 3px;
  background: var(--dashboard-accent);
  border-radius: 0 3px 3px 0;
}

.dashboard-modern-enterprise .sidebar .nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  filter: none;
  opacity: .7;
}

.dashboard-modern-enterprise .sidebar nav a:hover .nav-icon,
.dashboard-modern-enterprise .sidebar nav a:focus-visible .nav-icon,
.dashboard-modern-enterprise .sidebar nav a.active .nav-icon { opacity: 1; }

.dashboard-modern-enterprise .nav-notification-badge {
  top: 10px;
  right: 9px;
  min-width: 17px;
  height: 17px;
  color: var(--dashboard-accent-strong);
  background: #d7e8ea;
  box-shadow: none;
  font-size: 11px;
}

.dashboard-modern-enterprise .sidebar-backdrop { background: rgba(8, 18, 23, .48); }

.dashboard-modern-enterprise .main,
.dashboard-modern-enterprise .content { background: #fff; }

.dashboard-modern-enterprise .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 38px 64px;
}

.dashboard-modern-enterprise .private-page-header,
.dashboard-modern-enterprise .page-title {
  align-items: flex-end;
  margin: 0 0 30px;
  padding: 0 0 21px;
  border-bottom: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .private-page-header h1,
.dashboard-modern-enterprise .page-title h1,
.dashboard-modern-enterprise h1 {
  color: #142027;
  font-family: var(--fluent-font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
}

.dashboard-modern-enterprise .private-page-header p,
.dashboard-modern-enterprise .page-title p {
  max-width: 760px;
  margin-top: 7px;
  color: var(--dashboard-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.dashboard-modern-enterprise h2 {
  color: #18262d;
  font-family: var(--fluent-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.006em;
}

.dashboard-modern-enterprise h3 {
  color: #203038;
  font-family: var(--fluent-font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.dashboard-modern-enterprise p { color: var(--dashboard-muted); }

.dashboard-modern-enterprise .section-label {
  display: block;
  margin-bottom: 5px;
  color: #657a83;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
}

.dashboard-modern-enterprise .inline-link,
.dashboard-modern-enterprise .link-action {
  color: #255e69;
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dashboard-modern-enterprise .inline-link:hover,
.dashboard-modern-enterprise .link-action:hover { color: #133f47; }

/* Sections use document flow and separators instead of repeated floating cards. */
.dashboard-modern-enterprise .section-card,
.dashboard-modern-enterprise .panel,
.dashboard-modern-enterprise .card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-modern-enterprise .section-heading,
.dashboard-modern-enterprise .panel-heading {
  margin: 0 0 18px;
  gap: 14px;
}

.dashboard-modern-enterprise .section-heading h2,
.dashboard-modern-enterprise .panel-heading h2 { font-size: 17px; }

.dashboard-modern-enterprise .section-heading p,
.dashboard-modern-enterprise .panel-heading p {
  max-width: 720px;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
}

.dashboard-modern-enterprise .last-updated-chip,
.dashboard-modern-enterprise .panel-summary-chip {
  color: var(--dashboard-muted);
  background: var(--dashboard-surface-muted);
  border-color: var(--dashboard-line);
  border-radius: 4px;
  box-shadow: none;
}

.dashboard-modern-enterprise .alert,
.dashboard-modern-enterprise .notice,
.dashboard-modern-enterprise .inline-information,
.dashboard-modern-enterprise .billing-attention-inline {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  box-shadow: none;
}

.dashboard-modern-enterprise .alert {
  color: var(--dashboard-warning);
  background: var(--dashboard-warning-soft);
  border-color: #ead097;
}

.dashboard-modern-enterprise .alert-error {
  color: var(--dashboard-danger);
  background: var(--dashboard-danger-soft);
  border-color: #e6bdc5;
}

.dashboard-modern-enterprise .alert-warning {
  color: var(--dashboard-warning);
  background: var(--dashboard-warning-soft);
  border-color: #ead097;
}

.dashboard-modern-enterprise .alert-success {
  color: var(--dashboard-success);
  background: var(--dashboard-success-soft);
  border-color: #b9d8ca;
}

.dashboard-modern-enterprise .alert-info {
  color: var(--dashboard-accent-strong);
  background: var(--dashboard-accent-soft);
  border-color: #cbdfe2;
}

.dashboard-modern-enterprise .notice,
.dashboard-modern-enterprise .inline-information {
  color: var(--dashboard-accent-strong);
  background: var(--dashboard-accent-soft);
  border-color: #cbdfe2;
}

/* Controls */
.dashboard-modern-enterprise label {
  color: #26363e;
  font-size: 11.5px;
  font-weight: 650;
}

.dashboard-modern-enterprise input,
.dashboard-modern-enterprise select,
.dashboard-modern-enterprise textarea,
.dashboard-modern-enterprise .read-only-field {
  min-height: 41px;
  padding: 9px 11px;
  color: #1d2e36;
  background-color: #fff;
  border: 1px solid #c3cfd5;
  border-radius: 4px;
  box-shadow: none;
  font-family: var(--fluent-font-base);
  font-size: 12.5px;
  transition: border-color .1s ease, box-shadow .1s ease;
}

.dashboard-modern-enterprise textarea { min-height: 120px; }
.dashboard-modern-enterprise input::placeholder { color: #89969e; }

.dashboard-modern-enterprise input:hover,
.dashboard-modern-enterprise select:hover,
.dashboard-modern-enterprise textarea:hover { border-color: #97a9b2; }

.dashboard-modern-enterprise input:focus,
.dashboard-modern-enterprise select:focus,
.dashboard-modern-enterprise textarea:focus {
  border-color: var(--dashboard-accent);
  outline: none;
  box-shadow: inset 0 -2px 0 0 var(--dashboard-accent), 0 0 0 1px var(--dashboard-accent);
}

.dashboard-modern-enterprise .form-grid { gap: 16px; }

.dashboard-modern-enterprise .field-help {
  color: #70808a;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-modern-enterprise .button,
.dashboard-modern-enterprise .page-action {
  min-height: 38px;
  padding: 8px 14px;
  color: #fff;
  background: var(--dashboard-accent);
  border: 1px solid var(--dashboard-accent);
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  font-family: var(--fluent-font-base);
  font-weight: 600;
  transition: background-color .1s ease, border-color .1s ease, color .1s ease, box-shadow .1s ease;
}

.dashboard-modern-enterprise .button:hover,
.dashboard-modern-enterprise .page-action:hover {
  color: #fff;
  background: #214f57;
  border-color: #214f57;
  box-shadow: var(--fluent-shadow-4);
}

.dashboard-modern-enterprise .button.ghost {
  color: #34515a;
  background: #fff;
  border-color: #bdc9cf;
}

.dashboard-modern-enterprise .button.ghost:hover {
  color: var(--dashboard-accent-strong);
  background: #f5f8f9;
  border-color: #9eafb7;
}

.dashboard-modern-enterprise .button.danger,
.dashboard-modern-enterprise .button.danger-link {
  color: #9a3548;
  background: #fff;
  border-color: #d9aeb7;
}

.dashboard-modern-enterprise .button.danger:hover,
.dashboard-modern-enterprise .button.danger-link:hover,
.dashboard-modern-enterprise .button.danger-solid {
  color: #fff;
  background: var(--dashboard-danger);
  border-color: var(--dashboard-danger);
}

.dashboard-modern-enterprise .wide-action { width: auto; justify-self: start; }

.dashboard-modern-enterprise :focus-visible {
  outline: 2px solid var(--fluent-focus-stroke);
  outline-offset: 1px;
  border-radius: 3px;
}

.dashboard-modern-enterprise .status-badge,
.dashboard-modern-enterprise .status-pill,
.dashboard-modern-enterprise .badge {
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}

/* Unified tables and JavaScript-inserted controls */
.dashboard-modern-enterprise .dashboard-table-section,
.dashboard-modern-enterprise .table-panel,
.dashboard-modern-enterprise .table-section {
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

.dashboard-modern-enterprise .dashboard-table-section > .section-heading,
.dashboard-modern-enterprise .table-panel > .panel-heading,
.dashboard-modern-enterprise .table-section > .section-heading {
  margin: 0;
  padding: 0 0 16px;
  border: 0;
}

.dashboard-modern-enterprise .table-toolbar {
  padding: 12px 14px;
  background: #f7f9fa;
  border: 1px solid #d7dfe3;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.dashboard-modern-enterprise .table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7dfe3;
  border-radius: 0;
  contain: inline-size layout paint;
}

.dashboard-modern-enterprise .table-toolbar + .table-wrap { border-top: 0; }

.dashboard-modern-enterprise table {
  width: 100%;
  color: #24333b;
  background: #fff;
  border-collapse: collapse;
  font-size: 13px;
}

.dashboard-modern-enterprise th {
  height: 38px;
  padding: 9px 14px;
  color: #586973;
  background: #eef2f4;
  border-bottom: 1px solid #ccd6db;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .075em;
  white-space: nowrap;
}

.dashboard-modern-enterprise td {
  height: 45px;
  padding: 10px 14px;
  color: #293942;
  border-bottom: 1px solid #e1e6e9;
}

.dashboard-modern-enterprise tbody tr:hover td { background: #f3f8f8; }
.dashboard-modern-enterprise .table-action { white-space: nowrap; }

.dashboard-modern-enterprise .table-pagination {
  padding: 11px 14px;
  background: #f7f9fa;
  border: 1px solid #d7dfe3;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.dashboard-modern-enterprise .table-search input,
.dashboard-modern-enterprise .table-toolbar select {
  min-height: 36px;
  background-color: #fff;
  border-color: #c5d0d5;
  border-radius: 4px;
}

.dashboard-modern-enterprise .table-page-button {
  min-width: 31px;
  min-height: 31px;
  padding: 5px 9px;
  color: #33464f;
  background: #fff;
  border: 1px solid #c4d0d5;
  border-radius: 4px;
}

.dashboard-modern-enterprise .table-page-button[aria-current="page"] {
  color: var(--dashboard-accent-strong);
  background: var(--dashboard-accent-soft);
  border-color: var(--dashboard-accent);
}

.dashboard-modern-enterprise .table-page-button:disabled {
  color: #91a0a7;
  background: #f3f6f7;
  border-color: #d7dfe3;
}

.dashboard-modern-enterprise .guide-default-label { color: #76848c; }

/* Overview */
.dashboard-modern-enterprise .dashboard-overview-layout {
  display: grid;
  gap: 34px;
}

.dashboard-modern-enterprise .dashboard-status-band {
  padding: 20px 22px;
  background: #f3f7f7;
  border: 1px solid #d8e3e5;
  border-left: 4px solid #3f7780;
  border-radius: 6px;
}

.dashboard-modern-enterprise .dashboard-status-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.dashboard-modern-enterprise .dashboard-status-section .section-heading { margin: 0; }

.dashboard-modern-enterprise .overview-status-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.dashboard-modern-enterprise .overview-status-list > div {
  min-width: 0;
  gap: 10px;
  padding: 2px 20px;
  border: 0;
  border-left: 1px solid #d4dfe2;
  border-radius: 0;
}

.dashboard-modern-enterprise .overview-status-list > div:first-child { border-left: 0; }
.dashboard-modern-enterprise .overview-status-list strong { font-size: 12.5px; font-weight: 650; }
.dashboard-modern-enterprise .overview-status-list span:not(.status-dot) { margin-top: 3px; font-size: 11.5px; }
.dashboard-modern-enterprise .status-dot { margin-top: 5px; }

.dashboard-modern-enterprise .dashboard-overview-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
  gap: 40px;
  padding-top: 2px;
}

.dashboard-modern-enterprise .dashboard-activity-section { min-width: 0; padding-right: 8px; }
.dashboard-modern-enterprise .dashboard-actions-section { min-width: 0; }

.dashboard-modern-enterprise .activity-list > div {
  min-height: 52px;
  padding: 12px 4px;
  border-bottom: 1px solid #e1e6e9;
  border-radius: 0;
}

.dashboard-modern-enterprise .activity-list > div:last-child { border-bottom: 0; }

.dashboard-modern-enterprise .action-link-list {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .action-link-list a {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid #e1e6e9;
  border-radius: 0;
}

.dashboard-modern-enterprise .action-link-list a:hover {
  padding-left: 10px;
  background: #f5f8f8;
}

.dashboard-modern-enterprise .recent-session-list { border: 1px solid #d9e1e4; }

.dashboard-modern-enterprise .activity-list > .recent-session-heading,
.dashboard-modern-enterprise .activity-list > .recent-session-row {
  grid-template-columns: .72fr 1.4fr 1fr 1fr .72fr;
  padding-left: 16px;
  padding-right: 16px;
}

.dashboard-modern-enterprise .activity-list > .recent-session-heading {
  min-height: 38px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  background: #f3f6f7;
  border-bottom: 1px solid #d7e0e4;
}

.dashboard-modern-enterprise .activity-list > .recent-session-row {
  min-height: 45px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e6e8;
}

.dashboard-modern-enterprise .recent-session-row:hover { background: #f5f9f9; }

/* Invitation and creation strips */
.dashboard-modern-enterprise .guides-layout,
.dashboard-modern-enterprise .tours-layout {
  display: grid;
  gap: 38px;
}

.dashboard-modern-enterprise .guide-invite-strip,
.dashboard-modern-enterprise .tour-create-strip {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.6fr);
  gap: 34px;
  align-items: end;
  padding: 22px 24px;
  background: #f4f7f8;
  border: 1px solid #d9e1e4;
  border-radius: 6px;
}

.dashboard-modern-enterprise .guide-invite-strip .section-heading,
.dashboard-modern-enterprise .tour-create-strip .section-heading {
  margin: 0;
  align-self: center;
}

.dashboard-modern-enterprise .guide-invite-strip .inline-form {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.dashboard-modern-enterprise .guide-invite-strip .button { min-width: 154px; }

.dashboard-modern-enterprise .tour-create-strip .form-grid {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-modern-enterprise .tour-create-strip .form-grid > div:nth-child(3),
.dashboard-modern-enterprise .tour-create-strip .form-grid > .button { grid-column: 1 / -1; }

/* Guide and tour details */
.dashboard-modern-enterprise .guide-details-layout,
.dashboard-modern-enterprise .tour-details-layout {
  display: grid;
  gap: 40px;
}

.dashboard-modern-enterprise .guide-details-layout {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-modern-enterprise .guide-details-layout > .guide-profile-section,
.dashboard-modern-enterprise .guide-details-layout > .guide-schedule-section,
.dashboard-modern-enterprise .guide-details-layout > .guide-history-section {
  grid-area: auto;
  min-width: 0;
}

.dashboard-modern-enterprise .guide-profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 18px;
  padding-bottom: 34px;
  border-bottom: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .guide-profile-section > .section-heading {
  grid-column: 1;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e6e9;
}

.dashboard-modern-enterprise .guide-profile-section > .form-grid {
  grid-column: 1;
  width: 100%;
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.dashboard-modern-enterprise .guide-profile-section > .form-grid .wide-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.dashboard-modern-enterprise .guide-profile-section > .danger-zone {
  grid-column: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid #e4d8db;
  border-radius: 0;
  background: transparent;
}

.dashboard-modern-enterprise .guide-schedule-section {
  padding-bottom: 38px;
  border-bottom: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .guide-schedule-section > .section-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e6e9;
}

.dashboard-modern-enterprise .schedule-form { max-width: 1120px; }

.dashboard-modern-enterprise .schedule-choice-card {
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 5px;
  box-shadow: none;
}

.dashboard-modern-enterprise .schedule-choice-card:hover {
  background: #f4f8f8;
  border-color: #91aeb3;
}

.dashboard-modern-enterprise .schedule-choice-card:has(input:checked) {
  background: #edf5f5;
  border-color: #78a4aa;
  box-shadow: inset 3px 0 0 #3d737c;
}

.dashboard-modern-enterprise .schedule-choice-card input,
.dashboard-modern-enterprise .weekday-picker input { accent-color: var(--dashboard-accent); }

.dashboard-modern-enterprise .schedule-summary {
  background: #f3f7f7;
  border: 1px solid #d6e2e3;
  border-radius: 5px;
}

.dashboard-modern-enterprise .schedule-step {
  background: transparent;
  border: 0;
  border-top: 1px solid #dfe5e8;
  border-radius: 0;
  padding: 22px 0 0;
}

.dashboard-modern-enterprise .schedule-step-heading > span { background: var(--dashboard-accent); }

.dashboard-modern-enterprise .weekday-picker label:has(input:checked) {
  color: var(--dashboard-accent-strong);
  background: var(--dashboard-accent-soft);
  border-color: var(--pv-purple-border);
}

.dashboard-modern-enterprise .tour-details-layout .settings-section {
  grid-template-columns: 250px minmax(0, 760px);
}

.dashboard-modern-enterprise .tour-delete-zone {
  justify-content: flex-end;
  margin: 0;
  padding: 22px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #e4d8db;
  border-radius: 0;
}

.dashboard-modern-enterprise .tour-entry-summary {
  padding: 16px;
  background: var(--dashboard-surface-muted);
  border: 1px solid var(--dashboard-line);
  border-radius: 5px;
}

/* Usage and live activity */
.dashboard-modern-enterprise .usage-layout,
.dashboard-modern-enterprise .live-activity-layout,
.dashboard-modern-enterprise .billing-layout,
.dashboard-modern-enterprise .session-details-layout,
.dashboard-modern-enterprise .notification-settings-layout {
  display: grid;
  gap: 40px;
}

.dashboard-modern-enterprise .usage-summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr);
  border: 1px solid #d8e0e3;
  border-radius: 6px;
  overflow: hidden;
}

.dashboard-modern-enterprise .usage-summary-band.usage-summary-only { grid-template-columns: minmax(0, 1fr); }

.dashboard-modern-enterprise .usage-plan-section,
.dashboard-modern-enterprise .usage-summary-section {
  padding: 23px 25px;
  background: #fff;
}

.dashboard-modern-enterprise .usage-summary-section {
  background: #f3f7f7;
  border-left: 1px solid #d8e0e3;
}

.dashboard-modern-enterprise .usage-summary-only .usage-summary-section { border-left: 0; }
.dashboard-modern-enterprise .usage-list { margin-top: 18px; }

.dashboard-modern-enterprise .usage-row-simple {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 11px 0;
  border-top: 1px solid #e1e6e8;
}

.dashboard-modern-enterprise .progress-track {
  height: 8px;
  background: #dfe8e9;
  border-radius: 999px;
}

.dashboard-modern-enterprise .progress-track > span {
  background: #3d737c;
  border-radius: inherit;
}

.dashboard-modern-enterprise .usage-summary-band .operational-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-modern-enterprise .usage-summary-band .operational-summary > div {
  padding: 13px 16px;
  background: transparent;
  border-right: 1px solid #d6e1e3;
  border-radius: 0;
}

.dashboard-modern-enterprise .usage-summary-band .operational-summary > div:last-child { border-right: 0; }
.dashboard-modern-enterprise .usage-summary-band .operational-summary strong { font-size: 25px; letter-spacing: -.03em; }

.dashboard-modern-enterprise .live-activity-summary-band,
.dashboard-modern-enterprise .session-summary-band {
  padding: 20px 22px;
  background: #f3f7f7;
  border: 1px solid #d8e3e5;
  border-left: 4px solid #3f7780;
  border-radius: 6px;
}

.dashboard-modern-enterprise .live-activity-summary-band .operational-summary,
.dashboard-modern-enterprise .session-summary-band .operational-summary,
.dashboard-modern-enterprise .session-summary-band .summary-grid {
  gap: 0;
}

.dashboard-modern-enterprise .live-activity-summary-band .operational-summary > div,
.dashboard-modern-enterprise .session-summary-band .operational-summary > div,
.dashboard-modern-enterprise .session-summary-band .summary-grid > div {
  background: transparent;
  border-right: 1px solid #d4dfe2;
  border-radius: 0;
}

.dashboard-modern-enterprise .live-activity-summary-band .operational-summary > div:last-child,
.dashboard-modern-enterprise .session-summary-band .operational-summary > div:last-child,
.dashboard-modern-enterprise .session-summary-band .summary-grid > div:last-child { border-right: 0; }

/* Enterprise settings rows */
.dashboard-modern-enterprise .settings-layout {
  display: grid;
}

.dashboard-modern-enterprise .settings-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 42px;
  align-items: start;
  padding: 30px 0 34px;
  border-bottom: 1px solid #dce3e6;
}

.dashboard-modern-enterprise .settings-section:first-child { padding-top: 0; }
.dashboard-modern-enterprise .settings-section:last-child { border-bottom: 0; }
.dashboard-modern-enterprise .settings-section > .section-heading { grid-column: 1; margin: 0; }

.dashboard-modern-enterprise .settings-section > :not(.section-heading),
.dashboard-modern-enterprise .settings-body {
  min-width: 0;
  grid-column: 2;
}

.dashboard-modern-enterprise .settings-body > * + * { margin-top: 18px; }
.dashboard-modern-enterprise .settings-body .form-grid,
.dashboard-modern-enterprise .settings-section > .form-grid { max-width: 680px; }

.dashboard-modern-enterprise .workspace-logo-preview {
  padding: 16px;
  background: #f4f7f8;
  border: 1px solid #d8e0e3;
  border-radius: 5px;
}

.dashboard-modern-enterprise .toggle-row {
  padding: 16px;
  background: #f4f7f8;
  border: 1px solid #d8e0e3;
  border-radius: 5px;
}

.dashboard-modern-enterprise .help-option {
  padding: 12px 0;
  border-top: 1px solid #e0e6e8;
}

.dashboard-modern-enterprise .help-option:first-child { border-top: 0; }

.dashboard-modern-enterprise .account-security-section .security-settings-grid {
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-modern-enterprise .account-security-section .section-link {
  grid-column: 2;
  margin-top: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .notification-settings-section {
  max-width: 900px;
}

.dashboard-modern-enterprise .notification-settings-form {
  max-width: none;
  gap: 0;
}

.dashboard-modern-enterprise .notification-settings-form .toggle-row {
  padding: 16px 4px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .notification-settings-form .wide-action { margin-top: 18px; }

/* Billing */
.dashboard-modern-enterprise .billing-layout {
  width: 100%;
  max-width: 1320px;
  gap: 34px;
}

.dashboard-modern-enterprise .billing-plan-section {
  padding: 22px 24px;
  background: #f3f7f7;
  border: 1px solid #d8e3e5;
  border-left: 4px solid #3f7780;
  border-radius: 6px;
}

.dashboard-modern-enterprise .current-plan-layout {
  gap: 0;
  border: 1px solid var(--dashboard-line);
  border-radius: 5px;
  overflow: hidden;
}

.dashboard-modern-enterprise .current-plan-primary > div,
.dashboard-modern-enterprise .current-plan-facts > div {
  background: #fff;
  border-color: var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .billing-plan-section .inline-settings-form {
  max-width: 1080px;
  grid-template-columns: minmax(240px, .9fr) minmax(360px, 1.25fr) auto;
  grid-template-areas:
    "plan cadence action"
    "message message message"
    "payment payment payment";
  gap: 10px 18px;
  align-items: start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--dashboard-line);
}

.dashboard-modern-enterprise .billing-plan-section .billing-plan-field { grid-area: plan; }
.dashboard-modern-enterprise .billing-plan-section .billing-cadence-fieldset { grid-area: cadence; }
.dashboard-modern-enterprise .billing-plan-section .inline-settings-form > .form-actions {
  grid-area: action;
  padding-top: 22px;
}

.dashboard-modern-enterprise .billing-cadence-fieldset {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
}

.dashboard-modern-enterprise .billing-cadence-fieldset legend {
  margin: 0 0 5px;
  color: #26363e;
  font-size: 11.5px;
  font-weight: 650;
}

.dashboard-modern-enterprise .billing-cadence-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-modern-enterprise .billing-cadence-options label {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #c3cfd5;
  border-radius: 5px;
  cursor: pointer;
}

.dashboard-modern-enterprise .billing-cadence-options label:hover { border-color: #97a9b2; }
.dashboard-modern-enterprise .billing-cadence-options label:has(input:checked) {
  color: var(--dashboard-accent-strong);
  background: var(--dashboard-accent-soft);
  border-color: var(--dashboard-accent);
}

.dashboard-modern-enterprise .billing-cadence-options input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--dashboard-accent);
  box-shadow: none;
}

.dashboard-modern-enterprise .billing-cadence-options .subtle-badge {
  white-space: nowrap;
  color: #315f54;
  background: #e6f1ed;
  border: 1px solid #c6ded5;
}

.dashboard-modern-enterprise .billing-extra-coverage-row { align-items: flex-start; }
.dashboard-modern-enterprise .billing-extra-coverage-row > div:first-child {
  max-width: 900px;
  flex: 1 1 520px;
}

.dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value {
  min-width: min(100%, 560px);
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value > strong {
  align-self: center;
}

.dashboard-modern-enterprise .extra-coverage-cap-form {
  min-width: 0;
  grid-template-columns: minmax(190px, 1fr) auto;
  grid-template-areas: "label label" "input action";
  gap: 6px 8px;
  text-align: left;
}

.dashboard-modern-enterprise .extra-coverage-cap-form label { grid-area: label; margin: 0; }
.dashboard-modern-enterprise .extra-coverage-cap-form input { grid-area: input; min-width: 0; }
.dashboard-modern-enterprise .extra-coverage-cap-form .button { grid-area: action; }

.dashboard-modern-enterprise .billing-usage-section,
.dashboard-modern-enterprise .billing-payment-section {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--dashboard-line);
}

.dashboard-modern-enterprise .billing-limit-row,
.dashboard-modern-enterprise .payment-method-row {
  padding: 14px 4px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .billing-invoices-section { padding-top: 2px; }

/* Session details, profile, invitations, and result states */
.dashboard-modern-enterprise .session-content-layout {
  grid-template-columns: minmax(0, 2fr) minmax(260px, .7fr);
  gap: 36px;
}

.dashboard-modern-enterprise .session-transcript-grid {
  grid-auto-rows: 1fr;
  gap: 20px;
}

.dashboard-modern-enterprise .session-transcript-grid > .transcript-panel-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--dashboard-line);
  border-radius: 6px;
}

.dashboard-modern-enterprise .session-passenger-languages {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--dashboard-line);
}

.dashboard-modern-enterprise .transcript-panel-card > .section-heading {
  min-height: 74px;
  margin-bottom: 16px;
}

.dashboard-modern-enterprise .transcript-language-form {
  min-height: 69px;
  display: grid;
  align-content: start;
  gap: 5px;
  margin-bottom: 16px;
}

.dashboard-modern-enterprise .transcript-language-form label,
.dashboard-modern-enterprise .transcript-field-label {
  display: block;
  margin: 0;
  color: #26363e;
  font-size: 11.5px;
  font-weight: 650;
}

.dashboard-modern-enterprise .transcript-language-context .read-only-field {
  display: flex;
  align-items: center;
  color: #1d2e36;
  background: var(--dashboard-surface-muted);
}

.dashboard-modern-enterprise .transcript-list {
  align-content: start;
  gap: 10px;
  max-height: none;
  overflow: visible;
}

.dashboard-modern-enterprise .transcript-list article {
  padding: 12px 14px;
  background: var(--dashboard-surface-muted);
  border: 1px solid #e0e6e9;
  border-radius: 5px;
}

.dashboard-modern-enterprise .transcript-list article > span {
  color: #718089;
  font-size: 10.5px;
  letter-spacing: .01em;
}

.dashboard-modern-enterprise .transcript-list article > p {
  margin-top: 4px;
  color: #27373f;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-modern-enterprise .transcript-list article.transcript-line-passenger {
  width: 100%;
  margin-left: 0;
  padding: 12px 14px;
  background: var(--dashboard-accent-soft);
  border: 1px solid #d3e2e4;
  border-radius: 5px;
}

.dashboard-modern-enterprise .transcript-load-controls {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-modern-enterprise .transcript-load-controls [data-transcript-status]:empty { display: none; }
.dashboard-modern-enterprise .transcript-load-controls [data-transcript-status] {
  color: var(--dashboard-muted);
  font-size: 12px;
}

.dashboard-modern-enterprise .invitation-list { gap: 0; }

.dashboard-modern-enterprise .invitation-card {
  padding: 18px 4px;
  border-bottom: 1px solid var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .profile-workspace-history > .section-heading {
  padding: 18px 20px;
  background: var(--dashboard-surface-muted);
  border: 1px solid var(--dashboard-line);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.dashboard-modern-enterprise .empty-state,
.dashboard-modern-enterprise .result-state,
.dashboard-modern-enterprise .redirect-state {
  background: #fff;
  border: 1px solid var(--dashboard-line);
  border-radius: 5px;
  box-shadow: none;
}

.dashboard-modern-enterprise .result-state {
  width: min(100%, 620px);
  min-height: 220px;
  margin: 44px auto 0;
  padding: 32px;
}

.dashboard-modern-enterprise .redirect-state {
  width: min(100%, 620px);
  min-height: 90px;
  margin: 36px auto 0;
}

.dashboard-modern-enterprise .loading-indicator { border-top-color: var(--dashboard-accent); }

/* Admin pages */
.dashboard-modern-enterprise .admin-page-layout {
  display: grid;
  gap: 30px;
}

.dashboard-modern-enterprise .admin-page-layout .page-title { margin-bottom: 0; }

.dashboard-modern-enterprise .admin-status-row {
  padding: 12px 16px;
  background: #f3f7f7;
  border: 1px solid #d8e3e5;
  border-left: 4px solid #3f7780;
  border-radius: 6px;
}

.dashboard-modern-enterprise .admin-summary {
  gap: 0;
  margin: 0;
  background: var(--dashboard-surface-muted);
  border: 1px solid var(--dashboard-line);
  border-radius: 6px;
  overflow: hidden;
}

.dashboard-modern-enterprise .admin-summary-item {
  padding: 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--dashboard-line);
  border-radius: 0;
  box-shadow: none;
}

.dashboard-modern-enterprise .admin-summary-item:last-child { border-right: 0; }

.dashboard-modern-enterprise .admin-signal-list {
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--dashboard-line);
}

.dashboard-modern-enterprise .admin-signal-item {
  padding: 14px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dashboard-line);
  border-left: 3px solid var(--dashboard-line-strong);
  border-radius: 0;
}

.dashboard-modern-enterprise .admin-signal-item.warn { border-left-color: var(--dashboard-warning); }
.dashboard-modern-enterprise .admin-signal-item.good { border-left-color: var(--dashboard-success); }

.dashboard-modern-enterprise .admin-filter-bar {
  margin: 0;
  padding: 14px 16px;
  background: var(--dashboard-surface-muted);
  border: 1px solid var(--dashboard-line);
  border-radius: 5px;
}

.dashboard-modern-enterprise .admin-page-layout .grid.two {
  gap: 36px;
  margin: 0;
}

.dashboard-modern-enterprise .admin-page-layout .panel,
.dashboard-modern-enterprise .admin-page-layout .table-panel {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--dashboard-line);
}

.dashboard-modern-enterprise .audit-log { border-top: 1px solid var(--dashboard-line); }

.dashboard-modern-enterprise .audit-row {
  padding: 14px 4px;
  border-bottom: 1px solid var(--dashboard-line);
  border-radius: 0;
}

.dashboard-modern-enterprise .admin-page-layout .safe-action-panel {
  padding: 20px;
  background: var(--dashboard-warning-soft);
  border: 1px solid #ead097;
  border-radius: 6px;
}

.dashboard-modern-enterprise .readiness-list > div,
.dashboard-modern-enterprise .health-check-list > div,
.dashboard-modern-enterprise .detail-row,
.dashboard-modern-enterprise .summary-row {
  padding: 11px 4px;
  border-bottom: 1px solid var(--dashboard-line);
  border-radius: 0;
}

/* Floating UI remains elevated because it is detached from document flow. */
.dashboard-modern-enterprise .safe-confirm-card,
.dashboard-modern-enterprise .billing-card-dialog,
.dashboard-modern-enterprise .email-verification-dialog,
.dashboard-modern-enterprise .email-verification-exit-dialog,
.dashboard-modern-enterprise .tour-entries-popover {
  border-radius: 8px;
  box-shadow: var(--fluent-shadow-64);
}

.dashboard-modern-enterprise .safe-confirm-backdrop,
.dashboard-modern-enterprise .billing-card-backdrop,
.dashboard-modern-enterprise .email-verification-backdrop { background: rgba(8, 18, 23, .52); }

/* Fluent 2 elevation: bordered "band" and card surfaces rest on ambient shadow-2. */
.dashboard-modern-enterprise .dashboard-status-band,
.dashboard-modern-enterprise .live-activity-summary-band,
.dashboard-modern-enterprise .session-summary-band,
.dashboard-modern-enterprise .billing-plan-section,
.dashboard-modern-enterprise .admin-status-row,
.dashboard-modern-enterprise .guide-invite-strip,
.dashboard-modern-enterprise .tour-create-strip,
.dashboard-modern-enterprise .usage-summary-band,
.dashboard-modern-enterprise .admin-summary,
.dashboard-modern-enterprise .current-plan-layout,
.dashboard-modern-enterprise .recent-session-list,
.dashboard-modern-enterprise .table-wrap,
.dashboard-modern-enterprise .safe-action-panel,
.dashboard-modern-enterprise .session-transcript-grid > .transcript-panel-card,
.dashboard-modern-enterprise .empty-state,
.dashboard-modern-enterprise .result-state,
.dashboard-modern-enterprise .redirect-state {
  box-shadow: var(--fluent-shadow-2);
}

@media (max-width: 1100px) {
  .dashboard-modern-enterprise .content { padding: 28px 26px 52px; }
  .dashboard-modern-enterprise .dashboard-status-section { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-modern-enterprise .overview-status-list > div:first-child { border-left: 1px solid #d4dfe2; }
  .dashboard-modern-enterprise .dashboard-overview-lower { grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: 28px; }
  .dashboard-modern-enterprise .guide-invite-strip,
  .dashboard-modern-enterprise .tour-create-strip { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-modern-enterprise .settings-section,
  .dashboard-modern-enterprise .tour-details-layout .settings-section { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  .dashboard-modern-enterprise .usage-summary-band { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); }
  .dashboard-modern-enterprise .session-content-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-modern-enterprise .billing-plan-section .inline-settings-form {
    grid-template-columns: minmax(220px, .8fr) minmax(340px, 1.2fr);
    grid-template-areas:
      "plan cadence"
      "action action"
      "message message"
      "payment payment";
  }
  .dashboard-modern-enterprise .billing-plan-section .inline-settings-form > .form-actions { padding-top: 0; }
}

@media (max-width: 900px) {
  .dashboard-modern-enterprise .shell { grid-template-columns: minmax(0, 1fr); }

  .dashboard-modern-enterprise .sidebar {
    width: min(282px, 86vw);
    background: #fff;
    box-shadow: 10px 0 35px rgba(22, 34, 41, .18);
  }

  .dashboard-modern-enterprise .topbar-brand {
    display: block;
    flex: 1 1 auto;
  }

  .dashboard-modern-enterprise .topbar-breadcrumbs { display: none; }
  .dashboard-modern-enterprise .content { padding: 26px 22px 44px; }
  .dashboard-modern-enterprise .dashboard-overview-lower { grid-template-columns: 1fr; gap: 32px; }

  .dashboard-modern-enterprise .guide-profile-section,
  .dashboard-modern-enterprise .settings-section,
  .dashboard-modern-enterprise .tour-details-layout .settings-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dashboard-modern-enterprise .guide-profile-section > .section-heading,
  .dashboard-modern-enterprise .guide-profile-section > .form-grid,
  .dashboard-modern-enterprise .guide-profile-section > .danger-zone,
  .dashboard-modern-enterprise .settings-section > .section-heading,
  .dashboard-modern-enterprise .settings-section > :not(.section-heading),
  .dashboard-modern-enterprise .settings-body,
  .dashboard-modern-enterprise .account-security-section .security-settings-grid,
  .dashboard-modern-enterprise .account-security-section .section-link { grid-column: 1; }

  .dashboard-modern-enterprise .usage-summary-band { grid-template-columns: 1fr; }
  .dashboard-modern-enterprise .usage-summary-section { border-left: 0; border-top: 1px solid #d8e0e3; }
  .dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value {
    width: 100%;
    min-width: 0;
    grid-template-columns: auto minmax(260px, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .dashboard-modern-enterprise .shell { --dashboard-topbar-height: 54px; }
  .dashboard-modern-enterprise .topbar { min-height: 54px; padding: 8px 12px; }
  .dashboard-modern-enterprise .topbar-brand { font-size: 13px; }
  .dashboard-modern-enterprise .content { padding: 22px 16px 34px; }

  .dashboard-modern-enterprise .private-page-header,
  .dashboard-modern-enterprise .page-title {
    align-items: stretch;
    margin-bottom: 24px;
    padding-bottom: 17px;
  }

  .dashboard-modern-enterprise .private-page-header h1,
  .dashboard-modern-enterprise .page-title h1,
  .dashboard-modern-enterprise h1 { font-size: 25px; }

  .dashboard-modern-enterprise .private-page-header p,
  .dashboard-modern-enterprise .page-title p { font-size: 12.5px; }

  .dashboard-modern-enterprise .dashboard-overview-layout,
  .dashboard-modern-enterprise .guides-layout,
  .dashboard-modern-enterprise .tours-layout,
  .dashboard-modern-enterprise .guide-details-layout,
  .dashboard-modern-enterprise .tour-details-layout,
  .dashboard-modern-enterprise .usage-layout,
  .dashboard-modern-enterprise .live-activity-layout,
  .dashboard-modern-enterprise .billing-layout,
  .dashboard-modern-enterprise .session-details-layout { gap: 30px; }

  .dashboard-modern-enterprise .dashboard-status-band,
  .dashboard-modern-enterprise .live-activity-summary-band,
  .dashboard-modern-enterprise .session-summary-band { padding: 17px; }

  .dashboard-modern-enterprise .overview-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dashboard-modern-enterprise .overview-status-list > div {
    padding: 12px 10px;
    border-left: 0;
    border-top: 1px solid #d4dfe2;
  }

  .dashboard-modern-enterprise .overview-status-list > div:nth-child(-n+2) { border-top: 0; }

  .dashboard-modern-enterprise .guide-invite-strip,
  .dashboard-modern-enterprise .tour-create-strip { padding: 18px; }

  .dashboard-modern-enterprise .guide-invite-strip .inline-form,
  .dashboard-modern-enterprise .tour-create-strip .form-grid { grid-template-columns: 1fr; }

  .dashboard-modern-enterprise .guide-invite-strip .button { width: 100%; }
  .dashboard-modern-enterprise .guide-profile-section { padding-bottom: 28px; }
  .dashboard-modern-enterprise .guide-profile-section > .form-grid { grid-template-columns: 1fr; }
  .dashboard-modern-enterprise .settings-section { padding: 25px 0 28px; }

  .dashboard-modern-enterprise .usage-plan-section,
  .dashboard-modern-enterprise .usage-summary-section { padding: 19px 17px; }

  .dashboard-modern-enterprise .usage-summary-band .operational-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-modern-enterprise .usage-summary-band .operational-summary > div {
    padding: 10px 7px;
    border-right: 1px solid #d6e1e3;
  }

  .dashboard-modern-enterprise .usage-summary-band .operational-summary strong { font-size: 21px; }

  .dashboard-modern-enterprise .live-activity-summary-band .operational-summary,
  .dashboard-modern-enterprise .session-summary-band .operational-summary,
  .dashboard-modern-enterprise .session-summary-band .summary-grid { grid-template-columns: 1fr; }

  .dashboard-modern-enterprise .live-activity-summary-band .operational-summary > div,
  .dashboard-modern-enterprise .session-summary-band .operational-summary > div,
  .dashboard-modern-enterprise .session-summary-band .summary-grid > div {
    border-right: 0;
    border-bottom: 1px solid #d4dfe2;
  }

  .dashboard-modern-enterprise .live-activity-summary-band .operational-summary > div:last-child,
  .dashboard-modern-enterprise .session-summary-band .operational-summary > div:last-child,
  .dashboard-modern-enterprise .session-summary-band .summary-grid > div:last-child { border-bottom: 0; }

  .dashboard-modern-enterprise .recent-session-list { border: 0; }

  .dashboard-modern-enterprise .activity-list > .recent-session-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13px 2px;
  }

  .dashboard-modern-enterprise .table-toolbar {
    padding: 10px;
    border-radius: 5px 5px 0 0;
  }

  .dashboard-modern-enterprise th { padding: 8px 12px; }
  .dashboard-modern-enterprise td { padding: 10px 12px; }
  .dashboard-modern-enterprise .account-security-section .security-settings-grid { grid-template-columns: 1fr; }

  .dashboard-modern-enterprise .invitation-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-modern-enterprise .result-state { margin-top: 20px; padding: 24px 18px; }
  .dashboard-modern-enterprise .safe-confirm-actions,
  .dashboard-modern-enterprise .email-verification-exit-actions { flex-wrap: wrap; }

  .dashboard-modern-enterprise .billing-plan-section { padding: 18px 16px; }
  .dashboard-modern-enterprise .billing-plan-section .inline-settings-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "plan"
      "cadence"
      "action"
      "message"
      "payment";
  }
  .dashboard-modern-enterprise .billing-cadence-options { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dashboard-modern-enterprise .billing-cadence-options label { width: 100%; }
  .dashboard-modern-enterprise .billing-plan-section .inline-settings-form > .form-actions .button { width: 100%; }
  .dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }
  .dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value > strong { justify-self: start; }
  .dashboard-modern-enterprise .extra-coverage-cap-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "input" "action";
  }
  .dashboard-modern-enterprise .extra-coverage-cap-form .button,
  .dashboard-modern-enterprise .billing-extra-coverage-row .billing-limit-value > form:last-child .button { width: 100%; }

  .dashboard-modern-enterprise .session-transcript-grid > .transcript-panel-card { padding: 17px; }
  .dashboard-modern-enterprise .transcript-panel-card > .section-heading { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-modern-enterprise .sidebar,
  .dashboard-modern-enterprise .action-link-list a,
  .dashboard-modern-enterprise .loading-indicator { animation: none; transition: none; }
}

/* Fluent 2 account access: a single elevated sign-in card on the neutral app canvas. */
.dashboard-modern-enterprise.auth-dashboard-body { background: var(--dashboard-bg); }

.dashboard-modern-enterprise.auth-dashboard-body .auth-console-topbar {
  background: #fff;
  border-bottom: 1px solid #dce3e6;
  box-shadow: var(--fluent-shadow-2);
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-console-brand { color: #16252c; }

.dashboard-modern-enterprise.auth-dashboard-body .auth-console-context {
  color: var(--dashboard-muted);
  border-left-color: var(--dashboard-line-strong);
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-console-page {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 8vh, 84px) 20px 44px;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-console-page.auth-register-page {
  padding-top: 16px;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-login-content {
  width: 100%;
  max-width: 428px;
  text-align: center;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-page-header {
  margin: 0 0 20px;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-page-header h1 {
  font-size: 26px;
  letter-spacing: -.01em;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-page-header p {
  margin-left: auto;
  margin-right: auto;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-card {
  max-width: 428px;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
  border: 1px solid var(--dashboard-line);
  border-radius: 8px;
  box-shadow: var(--fluent-shadow-16);
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-form-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-form-actions .button {
  width: 100%;
  min-height: 40px;
}

.dashboard-modern-enterprise.auth-dashboard-body .auth-form-actions .inline-link {
  align-self: center;
}

@media (max-width: 640px) {
  .dashboard-modern-enterprise.auth-dashboard-body .auth-card { padding: 22px 18px; }
  .dashboard-modern-enterprise.auth-dashboard-body .auth-page-header h1 { font-size: 23px; }
}

/* VRVI workspace surfaces: scoped to the authenticated Dashboard shell. */
.dashboard-modern-enterprise .vrvi-settings-section {
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
}

.dashboard-modern-enterprise .vrvi-status-content,
.dashboard-modern-enterprise .vrvi-key-create { min-width: 0; }
.dashboard-modern-enterprise .vrvi-status-line { display: flex; gap: 12px; align-items: flex-start; }
.dashboard-modern-enterprise .vrvi-status-line p { margin: 7px 0 0; color: var(--pv-muted); line-height: 1.55; }
.dashboard-modern-enterprise .vrvi-status-mark {
  display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center;
  border: 1px solid var(--pv-border-strong); border-radius: 50%; color: var(--pv-muted); background: var(--pv-subtle); font-weight: 700;
}
.dashboard-modern-enterprise .vrvi-status-mark-good { color: var(--pv-success); border-color: #b9d8ca; background: var(--pv-success-soft); }
.dashboard-modern-enterprise .vrvi-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.dashboard-modern-enterprise .vrvi-profile-facts > div { min-width: 0; padding: 12px; border: 1px solid var(--pv-border); background: var(--pv-subtle); }
.dashboard-modern-enterprise .vrvi-profile-facts dt { color: var(--pv-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-modern-enterprise .vrvi-profile-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--pv-text); font-size: 12px; }
.dashboard-modern-enterprise .vrvi-status-content > .muted { display: block; margin-top: 14px; line-height: 1.5; }
.dashboard-modern-enterprise .vrvi-status-content .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.dashboard-modern-enterprise .vrvi-status-content .form-actions form { margin: 0; }
.dashboard-modern-enterprise .vrvi-enrollment-setup { margin-top: 14px; }
.dashboard-modern-enterprise .vrvi-enrollment-setup[hidden] { display: none; }
.dashboard-modern-enterprise .section-heading-note { max-width: 280px; margin: 0; color: var(--pv-muted); font-size: 12px; line-height: 1.45; text-align: right; }
.dashboard-modern-enterprise .vrvi-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.dashboard-modern-enterprise .vrvi-phone-option { display: contents; }
.dashboard-modern-enterprise .vrvi-choice-card {
  display: flex; width: 100%; min-height: 70px; align-items: center; gap: 12px; padding: 14px;
  color: var(--pv-text); text-align: left; background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: 6px; cursor: pointer;
}
.dashboard-modern-enterprise .vrvi-choice-card:hover,
.dashboard-modern-enterprise .vrvi-choice-card:focus-visible { border-color: var(--pv-purple-border); background: var(--pv-purple-hover); }
.dashboard-modern-enterprise .vrvi-choice-card.is-selected { border-color: var(--pv-purple); background: var(--pv-purple-soft); box-shadow: inset 3px 0 0 var(--pv-purple); }
.dashboard-modern-enterprise .vrvi-choice-card svg { width: 25px; height: 25px; flex: 0 0 25px; color: var(--pv-purple-dark); }
.dashboard-modern-enterprise .vrvi-choice-card span { display: grid; gap: 3px; min-width: 0; }
.dashboard-modern-enterprise .vrvi-choice-card strong { font-size: 13px; }
.dashboard-modern-enterprise .vrvi-choice-card small { color: var(--pv-muted); font-size: 11px; }
.dashboard-modern-enterprise .vrvi-phone-pending { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 26px; padding: 16px; border: 1px solid #cbdfe2; border-left: 3px solid var(--pv-purple); background: var(--pv-info-soft); }
.dashboard-modern-enterprise .vrvi-phone-pending h3 { margin: 3px 0 6px; font-size: 15px; }
.dashboard-modern-enterprise .vrvi-phone-pending p { max-width: 640px; margin: 0; color: var(--pv-muted); font-size: 12px; line-height: 1.5; }
.dashboard-modern-enterprise .vrvi-phone-pending form { flex: 0 0 auto; margin: 0; }
.dashboard-modern-enterprise .vrvi-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--pv-border); border-bottom: 1px solid var(--pv-border); list-style: none; }
.dashboard-modern-enterprise .vrvi-stepper li { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 12px 10px; color: var(--pv-muted); border-right: 1px solid var(--pv-border); font-size: 11px; }
.dashboard-modern-enterprise .vrvi-stepper li:last-child { border-right: 0; }
.dashboard-modern-enterprise .vrvi-stepper li span { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid var(--pv-border-strong); border-radius: 50%; font-size: 11px; }
.dashboard-modern-enterprise .vrvi-stepper li.is-current { color: var(--pv-purple-dark); background: var(--pv-purple-soft); }
.dashboard-modern-enterprise .vrvi-stepper li.is-current span { border-color: var(--pv-purple); background: var(--pv-purple); color: #fff; }
.dashboard-modern-enterprise .vrvi-form-intro { max-width: 680px; }
.dashboard-modern-enterprise .vrvi-form-intro select { max-width: 360px; }
.dashboard-modern-enterprise .form-hint { margin: 7px 0 0; color: var(--pv-muted); font-size: 12px; line-height: 1.45; }
.dashboard-modern-enterprise .vrvi-recording-panel { max-width: 680px; margin-top: 22px; padding: 18px; border: 1px solid var(--pv-border); background: var(--pv-subtle); }
.dashboard-modern-enterprise .vrvi-recording-panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dashboard-modern-enterprise .vrvi-recording-panel h3 { margin: 4px 0 0; font-size: 16px; }
.dashboard-modern-enterprise .vrvi-prompt { min-height: 42px; margin: 18px 0; padding: 12px; border-left: 3px solid var(--pv-purple); background: var(--pv-surface); color: var(--pv-text); line-height: 1.5; }
.dashboard-modern-enterprise .vrvi-recording-controls { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.dashboard-modern-enterprise .vrvi-recording-controls > [role="status"] { flex: 1 1 250px; min-width: 0; color: var(--pv-muted); font-size: 12px; line-height: 1.4; }
.dashboard-modern-enterprise .vrvi-upload-disclosure { max-width: 680px; margin-top: 14px; }
.dashboard-modern-enterprise .vrvi-upload-disclosure details { padding: 10px 12px; border: 1px solid var(--pv-border); background: var(--pv-surface); }
.dashboard-modern-enterprise .vrvi-upload-disclosure summary { color: var(--pv-purple-dark); cursor: pointer; font-size: 12px; font-weight: 650; }
.dashboard-modern-enterprise .vrvi-upload-disclosure p { margin: 10px 0; color: var(--pv-muted); font-size: 12px; }
.dashboard-modern-enterprise .vrvi-submit-row { display: flex; max-width: 680px; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.dashboard-modern-enterprise .vrvi-privacy-note { max-width: 680px; margin: 16px 0 0; color: var(--pv-muted); font-size: 11px; line-height: 1.5; }
.dashboard-modern-enterprise .vrvi-secret-callout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 22px; align-items: center; background: var(--pv-info-soft); border-color: #cbdfe2; }
.dashboard-modern-enterprise .vrvi-secret-callout h2 { margin: 4px 0 5px; font-size: 16px; }
.dashboard-modern-enterprise .vrvi-secret-callout p { margin: 0; color: var(--pv-muted); line-height: 1.5; }
.dashboard-modern-enterprise .vrvi-secret-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dashboard-modern-enterprise .vrvi-secret-input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.dashboard-modern-enterprise .vrvi-secret-control [role="status"] { grid-column: 1 / -1; min-height: 16px; font-size: 11px; }
.dashboard-modern-enterprise .vrvi-key-create > p { max-width: 680px; margin: 0 0 18px; color: var(--pv-muted); line-height: 1.55; }
.dashboard-modern-enterprise .vrvi-key-create-form { display: flex; max-width: 680px; flex-wrap: wrap; gap: 12px; align-items: end; }
.dashboard-modern-enterprise .vrvi-key-create-form > div { flex: 1 1 280px; }
.dashboard-modern-enterprise .vrvi-api-keys-table { min-width: 720px; }
.dashboard-modern-enterprise .vrvi-api-keys-table td { vertical-align: middle; }
.dashboard-modern-enterprise .vrvi-api-keys-table form { margin: 0; }
.dashboard-modern-enterprise .vrvi-page-links { margin-top: 14px; }

@media (max-width: 720px) {
  .dashboard-modern-enterprise .vrvi-settings-section,
  .dashboard-modern-enterprise .vrvi-secret-callout { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-modern-enterprise .section-heading-note { max-width: none; text-align: left; }
  .dashboard-modern-enterprise .vrvi-choice-grid,
  .dashboard-modern-enterprise .vrvi-profile-facts { grid-template-columns: 1fr; }
  .dashboard-modern-enterprise .vrvi-phone-pending { display: grid; }
  .dashboard-modern-enterprise .vrvi-phone-pending form { justify-self: start; }
  .dashboard-modern-enterprise .vrvi-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-modern-enterprise .vrvi-stepper li:nth-child(2) { border-right: 0; }
  .dashboard-modern-enterprise .vrvi-stepper li:nth-child(-n + 2) { border-bottom: 1px solid var(--pv-border); }

}