.portal-shell {
  max-width: none;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.portal-mobile-topbar {
  display: none;
}

.portal-mobile-topbar-actions {
  display: none;
}

.portal-mobile-menu-btn {
  display: none;
}

.portal-nav-overlay {
  display: none;
}

.portal-sidebar-close {
  display: none;
}

.portal-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: none;
  padding: 6px 18px 20px 0;
  margin-right: 24px;
  min-height: calc(100vh - 36px);
  min-width: 0;
}

.portal-brand {
  display: grid;
  gap: 2px;
}

.portal-brand-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.portal-brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-nav {
  display: grid;
  gap: 4px;
}

.portal-nav-group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-nav-group-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-nav-submenu {
  display: none;
  gap: 6px;
  margin: -2px 0 4px 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(var(--brand-rgb), 0.18);
}

.portal-nav-submenu.is-open {
  display: grid;
}

.portal-nav-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-nav-link:hover {
  transform: none;
  background: var(--surface-soft);
  border-color: transparent;
  box-shadow: none;
}

.portal-nav-link.active {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.14) inset;
}

.portal-nav-link.group-active {
  background: rgba(var(--brand-rgb), 0.12);
}

.portal-nav-link-icon,
.settings-sidebar-link-icon,
.portal-utility-link-icon,
.portal-support-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
}

.portal-nav-link.active .portal-nav-link-icon,
.settings-sidebar-link.active .settings-sidebar-link-icon {
  color: var(--ink);
}

.portal-nav-link-icon svg,
.settings-sidebar-link-icon svg,
.portal-utility-link-icon svg,
.portal-support-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-nav-link-label {
  min-width: 0;
}

.portal-sidebar-extras {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 8px;
  min-width: 0;
}

.portal-utility-link,
.portal-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.portal-utility-link:hover,
.portal-support-link:hover {
  background: var(--surface-soft);
}

.portal-upsell-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(215, 255, 23, 0.26), rgba(215, 255, 23, 0.18));
  border: 1px solid rgba(215, 255, 23, 0.36);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.portal-upsell-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.3;
}

.portal-upsell-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(5, 6, 7, 0.18);
  background: rgba(247, 247, 239, 0.82);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.portal-upsell-button span:first-child {
  width: 16px;
  height: 16px;
}

.portal-upsell-button span:first-child svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-upsell-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.portal-user-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  min-width: 0;
}

.portal-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.16);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-user-copy {
  display: grid;
  min-width: 0;
}

.portal-user-copy strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-user-copy strong,
.portal-user-copy small {
  line-height: 1.2;
}

.portal-user-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.portal-utility-link span:last-child,
.portal-support-link span:last-child,
.portal-upsell-title,
.portal-upsell-link,
.portal-user-copy strong,
.portal-user-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-nav-group-link.group-active .portal-nav-group-meta {
  color: var(--ink);
}

.portal-nav-sublink {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
}

.portal-nav-sublink:hover {
  transform: none;
  border-color: rgba(var(--brand-rgb), 0.2);
  box-shadow: none;
  color: var(--ink);
}

.portal-nav-sublink.active {
  border-color: rgba(var(--brand-rgb), 0.36);
  background: rgba(var(--brand-rgb), 0.14);
  color: var(--ink);
}

.portal-content {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-left: 8px;
}

.portal-content > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.settings-workspace-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.settings-workspace-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 22px;
  align-content: start;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: none;
  padding: 6px 18px 20px 0;
  margin-right: 24px;
  min-height: calc(100vh - 36px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.settings-sidebar-head {
  display: grid;
  gap: 0;
}

.settings-sidebar-head h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.settings-sidebar-group {
  display: grid;
  gap: 8px;
}

.settings-sidebar-group-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-sidebar-nav {
  display: grid;
  gap: 4px;
}

.settings-sidebar-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.settings-sidebar-link:hover {
  transform: none;
  background: var(--surface-soft);
  border-color: transparent;
  box-shadow: none;
}

.settings-sidebar-link.active {
  border-color: transparent;
  background: rgba(var(--brand-rgb), 0.12);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.14) inset;
}

.settings-workspace-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-workspace-main > * {
  min-width: 0;
  max-width: 100%;
}

.workspace-placeholder-body {
  display: grid;
  gap: 16px;
}

.workspace-template-page {
  display: grid;
  gap: 18px;
}

.workspace-template-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.workspace-template-main,
.workspace-template-rail {
  display: grid;
  gap: 16px;
}

.workspace-template-rail-card {
  display: grid;
  gap: 10px;
}

.workspace-template-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-template-section-head h2 {
  margin: 0;
}

.workspace-template-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.workspace-template-summary-grid,
.workspace-template-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-template-summary-card,
.workspace-template-action-card {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(247, 247, 239, 0.66);
}

.workspace-template-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.workspace-template-summary-card strong,
.workspace-template-action-card strong {
  font-size: 1rem;
  font-weight: 700;
}

.workspace-template-action-card {
  color: inherit;
  text-decoration: none;
}

.workspace-template-action-card:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: rgba(var(--brand-rgb), 0.08);
}

.workspace-template-action-card p {
  margin: 0;
  color: var(--muted);
}

.workspace-placeholder-note {
  max-width: 720px;
  border-left: 3px solid rgba(var(--brand-rgb), 0.5);
  padding: 4px 0 4px 16px;
}

.workspace-placeholder-note strong {
  display: block;
  margin-bottom: 6px;
}

.workspace-placeholder-note p {
  margin: 0;
  color: var(--muted);
}

.grow-brand-page {
  display: grid;
  gap: 18px;
}

.grow-brand-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.grow-brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.grow-brand-foundation-card,
.grow-brand-side-rail,
.grow-brand-lanes {
  display: grid;
  gap: 18px;
}

.grow-brand-rail-card,
.grow-brand-lane-card {
  display: grid;
  gap: 14px;
}

.grow-brand-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.grow-brand-section-head h2,
.grow-brand-section-head h3 {
  margin: 0;
}

.grow-brand-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.grow-brand-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(247, 247, 239, 0.68);
}

.grow-brand-metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.grow-brand-metric-card strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
}

.grow-brand-checklist {
  display: grid;
  gap: 10px;
}

.grow-brand-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(247, 247, 239, 0.62);
}

.grow-brand-check-item strong {
  display: block;
  margin: 0 0 4px;
}

.grow-brand-check-item p {
  margin: 0;
  color: var(--muted);
}

.grow-brand-check-item span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.grow-brand-check-item.is-complete {
  border-color: rgba(215, 255, 23, 0.24);
  background: rgba(215, 255, 23, 0.12);
}

.grow-brand-check-item.is-complete span:last-child {
  background: rgba(215, 255, 23, 0.12);
  color: #d7ff17;
}

.grow-brand-action-list,
.grow-brand-service-grid {
  display: grid;
  gap: 12px;
}

.grow-brand-action-card,
.grow-brand-service-card {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(247, 247, 239, 0.66);
  color: inherit;
  text-decoration: none;
}

.grow-brand-action-card:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: rgba(var(--brand-rgb), 0.08);
}

.grow-brand-action-card strong,
.grow-brand-service-card strong {
  font-size: 0.98rem;
}

.grow-brand-action-card p,
.grow-brand-service-card p {
  margin: 0;
  color: var(--muted);
}

.portal-content > .hero {
  max-width: none;
  margin: 0;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-hero .eyebrow,
.catalog-hero h1 {
  grid-column: 1;
}

.catalog-hero .eyebrow {
  margin: 0;
}

.catalog-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.catalog-hero .intro {
  grid-column: 1;
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog-hero .hero-badges {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
  justify-content: flex-end;
  align-self: start;
  gap: 8px;
}

.catalog-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-toolbar-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}

.toolbar-compact {
  padding: 10px 12px;
}

.toolbar-action-grid {
  grid-template-columns: minmax(0, 1fr);
}

.toolbar-action-grid .catalog-actions {
  justify-content: flex-end;
}

.catalog-tabset {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-tab-btn {
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-tab-btn.active {
  background: var(--brand);
  color: #f7f7ef;
  border-color: transparent;
}

.catalog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

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

.catalog-stat-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.catalog-stat-card strong {
  font-size: 1.35rem;
}

.catalog-content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.catalog-categories-card,
.catalog-table-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.catalog-category-tree {
  display: grid;
  gap: 8px;
}

.catalog-system-option {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 3px;
}

.catalog-system-option button {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.catalog-system-option small {
  color: var(--muted);
  font-size: 11px;
}

.catalog-system-option.is-active,
.catalog-category-item.is-active {
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.3) inset;
}

.catalog-category-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 9px;
  background: var(--surface-soft);
  display: grid;
  gap: 6px;
}

.catalog-category-item[data-depth="1"] {
  margin-left: 12px;
}

.catalog-category-item[data-depth="2"] {
  margin-left: 24px;
}

.catalog-category-item[data-depth="3"] {
  margin-left: 36px;
}

.catalog-category-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.catalog-category-select {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.catalog-category-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.catalog-inline-link {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.catalog-category-meta {
  font-size: 11px;
  color: var(--muted);
}

.catalog-empty-state {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-table-card .bookings-table {
  font-size: 12px;
}

.catalog-table-card .bookings-table td.actions-cell {
  min-width: 132px;
}

.catalog-table-card .bookings-table td.actions-cell a {
  text-decoration: none;
}

.catalog-table-card .bookings-table td.actions-cell .dot-sep {
  margin: 0 4px;
  color: var(--muted);
}

.catalog-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.catalog-rail-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.catalog-view-summary,
.catalog-rail-summary,
.catalog-coverage-list,
.catalog-attention-list {
  display: grid;
  gap: 10px;
}

.catalog-summary-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 8px;
}

.catalog-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.catalog-summary-row span {
  color: var(--muted);
  font-size: 12px;
}

.catalog-summary-row strong {
  font-size: 13px;
}

.catalog-coverage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.catalog-coverage-item strong {
  font-size: 12px;
}

.catalog-coverage-item.is-active {
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.2) inset;
  background: rgba(var(--brand-rgb), 0.08);
}

.catalog-attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.catalog-attention-item strong {
  display: block;
  margin-bottom: 4px;
}

.catalog-attention-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-attention-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12px;
}

.catalog-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.catalog-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.catalog-service-list {
  display: grid;
  gap: 12px;
}

.catalog-service-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface-soft);
}

.catalog-service-card.is-selected {
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.22) inset;
  background: rgba(var(--brand-rgb), 0.06);
}

.catalog-service-select {
  align-self: start;
  padding-top: 4px;
}

.catalog-service-media {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
}

.catalog-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-service-media.is-empty {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(var(--brand-rgb), 0.03));
}

.catalog-service-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.catalog-service-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-service-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.catalog-service-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-service-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-service-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.catalog-service-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.service-links-builder-grid label {
  margin: 0;
}

.service-links-builder-grid textarea {
  min-height: 74px;
  resize: vertical;
}

.share-presets-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.share-preset-name-field {
  margin: 0;
}

.share-presets-list {
  display: grid;
  gap: 8px;
}

.share-preset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.share-preset-card.is-active {
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.18) inset;
}

.share-preset-copy {
  display: grid;
  gap: 4px;
}

.share-preset-copy strong {
  display: block;
}

.share-preset-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.share-preset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-link-behavior-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
  display: grid;
  gap: 10px;
}

.share-link-behavior-card strong {
  display: block;
  margin-bottom: 4px;
}

.share-link-behavior-card .hint {
  margin: 0;
}

.share-link-prefill-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-link-prefill-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.service-shortcuts-table {
  width: 100%;
  border-collapse: collapse;
}

.service-shortcuts-table th,
.service-shortcuts-table td {
  border-bottom: 1px solid var(--card-border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.service-shortcuts-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.service-shortcuts-table td strong {
  display: block;
  margin-bottom: 2px;
}

.service-shortcuts-table td .hint {
  margin: 0;
  font-size: 12px;
}

.service-shortcut-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bulk-select-col,
.bulk-select-cell {
  width: 36px;
  text-align: center !important;
}

.bulk-editor-panel {
  margin-top: 0;
  border-style: dashed;
}

.bulk-editor-panel h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.bulk-editor-panel .hint {
  margin: 0;
}

.bulk-selection-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-edit-dialog {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  width: min(720px, calc(100vw - 20px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  background: var(--card);
  color: var(--ink);
}

.bulk-edit-dialog::backdrop {
  background: rgba(5, 6, 7, 0.56);
  backdrop-filter: blur(2px);
}

.bulk-edit-dialog-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.bulk-edit-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.bulk-edit-dialog-head h3 {
  margin: 0 0 4px;
}

.bulk-edit-dialog-head .hint {
  margin: 0;
}

.bookings-toolbar-grid {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 160px)) auto;
}

.bookings-advanced-filters {
  margin-top: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 8px 10px;
}

.bookings-advanced-filters summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.bookings-advanced-filters summary::-webkit-details-marker {
  display: none;
}

.bookings-advanced-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.resource-toolbar-grid {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.resource-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.resource-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.resource-rail-card {
  display: grid;
  gap: 10px;
}

.resource-view-summary {
  margin-bottom: 12px;
}

.bookings-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bookings-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.bookings-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.bookings-rail-card {
  display: grid;
  gap: 10px;
}

.bookings-view-summary {
  margin-bottom: 12px;
}

.customers-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customers-toolbar-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 160px) auto;
}

.customers-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.customers-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.customers-rail-card,
.customers-detail-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.customers-view-summary {
  margin-bottom: 12px;
}

.customers-table tr.is-selected {
  background: rgba(var(--brand-rgb), 0.04);
}

.bookings-table.customers-table tbody tr.is-selected {
  background: rgba(var(--brand-rgb), 0.04);
}

.customer-name-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
}

.customer-name-button strong,
.customer-name-button span {
  overflow-wrap: anywhere;
}

.customer-name-button span {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.customer-profile-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.customer-profile-block h3,
.customer-profile-block p {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-profile-block h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.customer-profile-block p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.customer-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.customer-detail-list div,
.customer-next-block {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
  min-width: 0;
}

.customer-detail-list dt,
.customer-next-block .label {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-detail-list dd,
.customer-next-block strong,
.customer-next-block p {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-detail-list dd,
.customer-next-block strong {
  color: var(--ink);
  font-weight: 800;
}

.customer-next-block p {
  color: var(--muted);
  font-size: 13px;
}

.payments-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payments-toolbar-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 170px) minmax(120px, 150px) auto;
}

.payments-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.payments-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.payments-rail-card,
.payments-status-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.payments-view-summary {
  margin-bottom: 12px;
}

.payment-booking-link {
  color: var(--ink);
  display: grid;
  gap: 3px;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
}

.payment-booking-link strong,
.payment-booking-link span {
  overflow-wrap: anywhere;
}

.payment-booking-link span {
  color: var(--muted);
  font-size: 12px;
}

.payment-health-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payment-health-block h3,
.payment-health-block p {
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-health-block h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.payment-health-block p {
  color: var(--muted);
  font-size: 12px;
}

.payment-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.payment-detail-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.reports-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.reports-toolbar-grid {
  grid-template-columns: minmax(190px, 240px) auto;
}

.reports-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.reports-main-column,
.reports-side-rail,
.reports-rail-card,
.reports-insight-card,
.reports-mix-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.reports-view-summary {
  margin-bottom: 12px;
}

.reports-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reports-insight-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.reports-insight-item span,
.reports-bar-row-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reports-insight-item strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.reports-insight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reports-table td:first-child {
  min-width: 180px;
}

.reports-table td:first-child strong,
.reports-table td:first-child span {
  display: block;
  overflow-wrap: anywhere;
}

.reports-table td:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.reports-bar-list {
  display: grid;
  gap: 12px;
}

.reports-bar-list.compact {
  gap: 10px;
}

.reports-bar-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reports-bar-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reports-bar-row-head strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.reports-bar-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(247, 247, 239, 0.06);
}

.reports-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.92), rgba(var(--brand-rgb), 0.34));
}

.notifications-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.notifications-toolbar-grid {
  grid-template-columns: minmax(130px, 170px) minmax(130px, 170px) minmax(110px, 140px) auto;
}

.notifications-operations-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 340px);
  gap: 12px;
  align-items: start;
}

.notifications-side-rail,
.notifications-rail-card,
.notifications-composer-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.notifications-view-summary {
  margin-bottom: 12px;
}

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

.notifications-composer-grid .span-2 {
  grid-column: 1 / -1;
}

.notifications-composer-grid textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.notification-event-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-event-name strong {
  line-height: 1.25;
  overflow-wrap: normal;
}

.notification-event-name small,
.notifications-row-muted {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.notification-event-name small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-status-stack {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.notification-status-stack small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.catalog-rail-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--card-border);
}

.catalog-rail-summary-row:last-child {
  border-bottom: 0;
}

.catalog-rail-summary-row span {
  color: var(--muted);
}

.catalog-rail-summary-row strong {
  color: var(--text);
  font-family: var(--font-display);
}

.notifications-table {
  width: 100%;
  table-layout: fixed;
}

.notifications-table th:nth-child(1),
.notifications-table td:nth-child(1) {
  width: 23%;
}

.notifications-table th:nth-child(2),
.notifications-table td:nth-child(2) {
  width: 23%;
}

.notifications-table th:nth-child(3),
.notifications-table td:nth-child(3) {
  width: 11%;
}

.notifications-table th:nth-child(4),
.notifications-table td:nth-child(4) {
  width: 15%;
}

.notifications-table th:nth-child(5),
.notifications-table td:nth-child(5) {
  width: 16%;
}

.notifications-table th:nth-child(6),
.notifications-table td:nth-child(6) {
  width: 12%;
}

.notifications-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notification-row-action {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}

.reviews-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) auto;
  gap: 10px;
  align-items: end;
}

.reviews-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.reviews-operations-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 340px);
  gap: 12px;
  align-items: start;
}

.reviews-side-rail,
.reviews-rail-card,
.reviews-composer-grid,
.reviews-gap-list,
.reviews-playbook-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.reviews-composer-grid .span-2 {
  grid-column: 1 / -1;
}

.reviews-composer-grid textarea {
  min-height: 128px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.55;
}

.review-customer-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.review-customer-cell strong {
  line-height: 1.25;
}

.review-customer-cell small,
.reviews-row-muted,
.reviews-muted-copy {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.review-customer-cell small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-gap-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.reviews-gap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reviews-table {
  width: 100%;
  table-layout: fixed;
}

.reviews-table th:nth-child(1),
.reviews-table td:nth-child(1) {
  width: 22%;
}

.reviews-table th:nth-child(2),
.reviews-table td:nth-child(2) {
  width: 18%;
}

.reviews-table th:nth-child(3),
.reviews-table td:nth-child(3) {
  width: 12%;
}

.reviews-table th:nth-child(4),
.reviews-table td:nth-child(4) {
  width: 13%;
}

.reviews-table th:nth-child(5),
.reviews-table td:nth-child(5) {
  width: 23%;
}

.reviews-table th:nth-child(6),
.reviews-table td:nth-child(6) {
  width: 12%;
}

.review-row-action {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}

.integrations-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(220px, 1fr) minmax(110px, 140px) auto;
  gap: 10px;
  align-items: end;
}

.integrations-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.integrations-operations-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 340px);
  gap: 12px;
  align-items: start;
}

.integrations-side-rail,
.integrations-rail-card,
.integrations-token-grid,
.integrations-readiness-list,
.integrations-playbook-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.integrations-token-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.integrations-token-grid .span-2 {
  grid-column: 1 / -1;
}

.integration-token-result {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.integration-token-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.integration-token-result textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.integration-event-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.integration-event-cell strong {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.integration-event-cell small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrations-table {
  width: 100%;
  table-layout: fixed;
}

.integrations-table th:nth-child(1),
.integrations-table td:nth-child(1) {
  width: 34%;
}

.integrations-table th:nth-child(2),
.integrations-table td:nth-child(2) {
  width: 12%;
}

.integrations-table th:nth-child(3),
.integrations-table td:nth-child(3) {
  width: 36%;
}

.integrations-table th:nth-child(4),
.integrations-table td:nth-child(4) {
  width: 18%;
}

.connect-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.connect-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.connect-operations-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 340px);
  gap: 12px;
  align-items: start;
}

.connect-main-column,
.connect-side-rail,
.connect-rail-card,
.connect-link-list,
.connect-architecture-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.connect-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.connect-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.connect-link-copy span,
.connect-architecture-item span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.connect-link-copy strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.connect-link-copy p,
.connect-detail-copy,
.connect-architecture-item p,
.connect-rule-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.connect-link-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.connect-view-summary {
  margin-bottom: 12px;
}

.connect-table {
  width: 100%;
  table-layout: fixed;
}

.connect-table th:nth-child(1),
.connect-table td:nth-child(1) {
  width: 28%;
}

.connect-table th:nth-child(2),
.connect-table td:nth-child(2) {
  width: 15%;
}

.connect-table th:nth-child(3),
.connect-table td:nth-child(3) {
  width: 41%;
}

.connect-table th:nth-child(4),
.connect-table td:nth-child(4) {
  width: 16%;
}

.connect-check-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.connect-check-cell strong,
.connect-check-cell span {
  overflow-wrap: anywhere;
}

.connect-check-cell span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.connect-row-action {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}

.connect-architecture-item,
.connect-rule-note {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.connect-rule-note strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.25;
}

.portal-content .badge.tone-success {
  border-color: rgba(var(--brand-rgb), 0.52);
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
}

.portal-content .badge.tone-warning,
.portal-content .badge.tone-neutral {
  border-color: var(--card-border);
  background: rgba(247, 247, 239, 0.06);
  color: var(--muted);
}

.general-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.general-toolbar-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.general-toolbar-copy strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.general-toolbar-copy span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.general-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.general-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 12px;
  align-items: start;
}

.general-main-column,
.general-side-rail,
.general-rail-card,
.general-form-card,
.general-coverage-list,
.general-audit-list,
.general-shortcut-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.general-form-grid label {
  min-width: 0;
}

.general-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.general-toggle-card,
.general-label-field {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  min-width: 0;
}

.general-toggle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.general-toggle-card input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.general-toggle-card span,
.general-label-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.general-toggle-card strong,
.general-toggle-card small,
.general-label-field input {
  overflow-wrap: anywhere;
}

.general-toggle-card strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.general-toggle-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.general-label-field {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.general-label-field input {
  width: 100%;
  min-width: 0;
}

.general-coverage-card,
.general-audit-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.general-coverage-card.is-ready {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: rgba(var(--brand-rgb), 0.08);
}

.general-coverage-card span,
.general-audit-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.general-coverage-card.is-ready span {
  color: var(--brand);
}

.general-coverage-card strong,
.general-audit-card strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.general-coverage-card p,
.general-audit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.general-shortcut-list .btn {
  justify-content: center;
  width: 100%;
}

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

  .reports-stats-grid,
  .reports-insight-grid,
  .notifications-stats-grid,
  .reviews-stats-grid,
  .integrations-stats-grid,
  .connect-stats-grid,
  .general-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-operations-grid,
  .notifications-operations-grid,
  .reviews-operations-grid,
  .integrations-operations-grid,
  .connect-operations-grid,
  .general-operations-grid {
    grid-template-columns: 1fr;
  }

  .notifications-toolbar-grid,
  .reviews-toolbar-grid,
  .integrations-toolbar-grid,
  .connect-toolbar-grid,
  .general-toolbar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .reports-toolbar-grid,
  .reports-stats-grid,
  .reports-insight-grid,
  .notifications-toolbar-grid,
  .notifications-stats-grid,
  .notifications-composer-grid,
  .reviews-toolbar-grid,
  .reviews-stats-grid,
  .reviews-composer-grid,
  .integrations-toolbar-grid,
  .integrations-stats-grid,
  .integrations-token-grid,
  .connect-toolbar-grid,
  .connect-stats-grid,
  .general-toolbar-grid,
  .general-stats-grid,
  .general-toggle-grid {
    grid-template-columns: 1fr;
  }

  .reports-toolbar-grid .catalog-actions,
  .notifications-toolbar-grid .catalog-actions,
  .reviews-toolbar-grid .catalog-actions,
  .integrations-toolbar-grid .catalog-actions,
  .connect-toolbar-grid .catalog-actions,
  .general-toolbar-grid .catalog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .reports-toolbar-grid .catalog-actions .btn-primary,
  .notifications-toolbar-grid .catalog-actions .btn-primary,
  .reviews-toolbar-grid .catalog-actions .btn-primary,
  .integrations-toolbar-grid .catalog-actions .btn-primary,
  .connect-toolbar-grid .catalog-actions .btn-primary,
  .general-toolbar-grid .catalog-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .connect-link-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .connect-link-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .reports-table,
  .notifications-table,
  .reviews-table,
  .integrations-table,
  .connect-table {
    display: block;
    min-width: 0;
  }

  .reports-table thead,
  .notifications-table thead,
  .reviews-table thead,
  .integrations-table thead,
  .connect-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .reports-table tbody,
  .notifications-table tbody,
  .reviews-table tbody,
  .integrations-table tbody,
  .connect-table tbody {
    display: grid;
    gap: 10px;
  }

  .reports-table tr,
  .notifications-table tr,
  .reviews-table tr,
  .integrations-table tr,
  .connect-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .reports-table td,
  .notifications-table td,
  .reviews-table td,
  .integrations-table td,
  .connect-table td {
    display: grid;
    grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border: 0;
  }

  .notifications-table th,
  .notifications-table td,
  .reviews-table th,
  .reviews-table td,
  .integrations-table th,
  .integrations-table td,
  .connect-table th,
  .connect-table td {
    width: 100%;
  }

  .notifications-table th:nth-child(n),
  .notifications-table td:nth-child(n),
  .reviews-table th:nth-child(n),
  .reviews-table td:nth-child(n),
  .integrations-table th:nth-child(n),
  .integrations-table td:nth-child(n),
  .connect-table th:nth-child(n),
  .connect-table td:nth-child(n) {
    width: 100%;
  }

  .notification-status-stack small {
    white-space: nowrap;
  }

  .reports-table td:first-child,
  .notifications-table td:first-child,
  .reviews-table td:first-child,
  .integrations-table td:first-child,
  .connect-table td:first-child {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .reports-table td::before,
  .notifications-table td::before,
  .reviews-table td::before,
  .integrations-table td::before,
  .connect-table td::before {
    color: var(--muted);
    content: "";
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .reports-table td:nth-child(1)::before {
    content: "Service";
  }

  .reports-table td:nth-child(2)::before {
    content: "Bookings";
  }

  .reports-table td:nth-child(3)::before {
    content: "Value";
  }

  .reports-table td:nth-child(4)::before {
    content: "Average";
  }

  .reports-table td:nth-child(5)::before {
    content: "Action";
  }

  .notifications-table td:nth-child(1)::before {
    content: "Event";
  }

  .notifications-table td:nth-child(2)::before {
    content: "Recipient";
  }

  .notifications-table td:nth-child(3)::before {
    content: "Channel";
  }

  .notifications-table td:nth-child(4)::before {
    content: "Status";
  }

  .notifications-table td:nth-child(5)::before {
    content: "Updated";
  }

  .notifications-table td:nth-child(6)::before {
    content: "Actions";
  }

  .reviews-table td:nth-child(1)::before {
    content: "Customer";
  }

  .reviews-table td:nth-child(2)::before {
    content: "Service";
  }

  .reviews-table td:nth-child(3)::before {
    content: "Booking";
  }

  .reviews-table td:nth-child(4)::before {
    content: "Stage";
  }

  .reviews-table td:nth-child(5)::before {
    content: "Request";
  }

  .reviews-table td:nth-child(6)::before {
    content: "Actions";
  }

  .integrations-table td:nth-child(1)::before {
    content: "Event";
  }

  .integrations-table td:nth-child(2)::before {
    content: "Status";
  }

  .integrations-table td:nth-child(3)::before {
    content: "Site";
  }

  .integrations-table td:nth-child(4)::before {
    content: "Received";
  }

  .connect-table td:nth-child(1)::before {
    content: "Connection";
  }

  .connect-table td:nth-child(2)::before {
    content: "Status";
  }

  .connect-table td:nth-child(3)::before {
    content: "Detail";
  }

  .connect-table td:nth-child(4)::before {
    content: "Action";
  }

  .notifications-row-actions {
    justify-content: flex-start;
  }
}

.bookings-record-list {
  display: grid;
  gap: 12px;
}

.bookings-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface-soft);
}

.bookings-record-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bookings-record-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.bookings-record-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.bookings-record-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bookings-record-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bookings-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bookings-record-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.bookings-record-note strong {
  color: var(--ink);
}

.bookings-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bookings-upcoming-list {
  display: grid;
  gap: 10px;
}

.bookings-upcoming-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.bookings-upcoming-item strong {
  font-size: 13px;
}

.bookings-upcoming-item p,
.bookings-upcoming-item span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bookings-pagination {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.bookings-pagination .hint {
  margin: 0;
  min-width: 120px;
  text-align: center;
}

.tenants-toolbar-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 180px) auto;
}

.tenants-provision-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.tenants-domain-grid {
  grid-template-columns: minmax(150px, 180px) minmax(260px, 1fr) auto;
  align-items: end;
}

.tenants-domain-grid textarea {
  min-height: 84px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
}

.tenants-session-layout {
  display: grid;
  gap: 8px;
}

.tenants-session-layout input {
  font-family: var(--font-mono);
  font-size: 12px;
}

.tenants-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.tenants-host-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tenants-host-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11px;
  font-family: var(--font-mono);
  line-height: 1.35;
}

.tenants-host-empty {
  color: var(--muted);
  font-size: 12px;
}

.pref-grid-head,
.pref-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 90px 96px 90px;
  gap: 8px;
  align-items: center;
}

.pref-flow-head,
.pref-flow-row {
  grid-template-columns: 44px 1fr 1.6fr 90px 96px 90px;
}

.pref-tabs-head,
.pref-tab-row {
  grid-template-columns: 44px 1.2fr 1.2fr 1fr 90px 96px 90px;
}

.pref-panels-head,
.pref-panel-row {
  grid-template-columns: 1.1fr 0.75fr 1.2fr 1.8fr 120px 140px;
}

.pref-vehicle-fields-head,
.pref-vehicle-field-row {
  grid-template-columns: 0.9fr 1.4fr 120px 120px;
}

.pref-editor-empty-state {
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(var(--surface-rgb), 0.55);
}

.pref-step-editor-view {
  display: grid;
  gap: 10px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.pref-step-editor-view[hidden] {
  display: none !important;
}

.pref-step-editor-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pref-step-editor-toolbar .hint {
  margin: 4px 0 0;
}

.pref-vehicle-fields-editor {
  display: grid;
  gap: 10px;
}

[data-step-options-for][hidden] {
  display: none !important;
}

.pref-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.pref-subtab-btn {
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pref-subtab-btn.is-active {
  background: var(--brand);
  color: #f7f7ef;
  border-color: transparent;
}

.pref-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.pref-tab-panel[hidden] {
  display: none !important;
}

.pref-subsection-title {
  margin: 4px 0 0;
  font-size: 1rem;
}

.pref-grid-head {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pref-grid {
  display: grid;
  gap: 8px;
}

.pref-row {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  background: var(--surface-soft);
}

.pref-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.pref-flow-row {
  cursor: grab;
}

.pref-tab-row {
  cursor: grab;
}

.pref-flow-row.is-dragging {
  opacity: 0.65;
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.25) inset;
}

.pref-flow-row.is-editing {
  border-color: rgba(var(--brand-rgb), 0.6);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.3) inset;
}

.pref-tab-row.is-dragging {
  opacity: 0.65;
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.25) inset;
}

.pref-drag-handle {
  width: 34px;
  height: 34px;
  border: 1px dashed var(--card-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  cursor: grab;
}

.pref-drag-handle:active {
  cursor: grabbing;
}

.pref-input {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
}

.pref-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.pref-toggle input {
  width: auto;
  margin: 0;
}

.pref-static {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.pref-panel-row textarea.pref-input {
  min-height: 58px;
  resize: vertical;
}

html[data-ui-shape="sharp"] .pref-row,
html[data-ui-shape="sharp"] .pref-input,
html[data-ui-shape="sharp"] .pref-drag-handle,
html[data-ui-shape="sharp"] .pref-subtab-btn,
html[data-ui-shape="sharp"] .brand-asset-preview-wrap,
html[data-ui-shape="sharp"] .brand-asset-controls input[type="file"],
html[data-ui-shape="sharp"] .vehicle-type-image-preview,
html[data-ui-shape="sharp"] .service-image-preview,
html[data-ui-shape="sharp"] .service-size-pricing-card,
html[data-ui-shape="sharp"] .service-size-pricing-row,
html[data-ui-shape="sharp"] .schedule-editor-card,
html[data-ui-shape="sharp"] .schedule-day-card,
html[data-ui-shape="sharp"] .timeoff-row,
html[data-ui-shape="sharp"] .color-swatch-input,
html[data-ui-shape="sharp"] .color-swatch-preview,
html[data-ui-shape="sharp"] .color-swatch-value {
  border-radius: 4px !important;
}

.catalog-editor-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.catalog-editor-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-editor-card > * {
  min-width: 0;
  max-width: 100%;
}

.catalog-editor-card[hidden] {
  display: none !important;
}

.catalog-editor-header {
  display: grid;
  gap: 8px;
}

.catalog-editor-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.catalog-editor-form-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.catalog-editor-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-editor-section > *,
.catalog-editor-section .span-2,
.catalog-editor-section .hint {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-editor-section input,
.catalog-editor-section select,
.catalog-editor-section textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-editor-section code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-editor-section .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-editor-section[hidden] {
  display: none;
}

.catalog-editor-section .hint {
  grid-column: 1 / -1;
  margin: 0;
}

.catalog-editor-section .span-2 {
  grid-column: 1 / -1;
}

.catalog-editor-section select[multiple] {
  min-height: 120px;
}

.brand-asset-field {
  display: grid;
  gap: 6px;
}

.brand-asset-field > label {
  margin: 0;
}

.brand-asset-upload {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  background: var(--input-bg);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.brand-asset-preview-wrap {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--surface-soft);
  min-height: 84px;
  padding: 10px;
  display: grid;
  place-items: center;
}

.brand-asset-preview {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-asset-preview-favicon {
  max-width: 44px;
  max-height: 44px;
}

.brand-asset-preview-logo {
  max-width: min(320px, 100%);
  max-height: 68px;
}

.brand-asset-placeholder {
  color: var(--muted);
  font-size: 12px;
}

.brand-asset-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-asset-controls input[type="file"] {
  margin: 0;
  min-width: 220px;
  width: auto;
  flex: 1 1 260px;
  padding: 7px 8px;
}

.color-picker-field {
  display: grid;
  gap: 6px;
}

.color-picker-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.color-swatch-input {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.color-swatch-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-swatch-input::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

.color-swatch-input::-moz-color-swatch {
  border: none;
  border-radius: 999px;
}

.color-swatch-preview {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--brand);
}

.color-swatch-value {
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: var(--surface-soft);
}

.vehicle-type-image-preview {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 10px;
  min-height: 92px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.vehicle-type-image-preview img {
  max-width: 140px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vehicle-type-image-preview.is-empty {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-type-table-thumb {
  width: 62px;
  height: 36px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-soft);
  object-fit: contain;
  padding: 2px;
}

.service-image-preview {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 10px;
  min-height: 130px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.service-image-preview img {
  width: 100%;
  max-width: 320px;
  max-height: 128px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.service-image-preview.is-empty {
  color: var(--muted);
  font-size: 12px;
}

.service-size-pricing-card {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.service-size-pricing-grid {
  display: grid;
  gap: 6px;
}

.service-size-pricing-row {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 140px 140px;
  gap: 8px;
  align-items: end;
}

.service-size-pricing-meta {
  display: grid;
  gap: 2px;
}

.service-size-pricing-meta strong {
  font-size: 13px;
}

.service-size-pricing-meta span {
  font-size: 11px;
  color: var(--muted);
}

.service-size-pricing-row label {
  margin: 0;
}

.schedule-editor-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--card);
  display: grid;
  gap: 10px;
}

.schedule-editor-head {
  display: grid;
  gap: 4px;
}

.schedule-editor-head h3 {
  margin: 0;
  font-size: 1rem;
}

.schedule-editor-head .hint {
  margin: 0;
}

.schedule-grid {
  display: grid;
  gap: 8px;
}

.schedule-day-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.schedule-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.schedule-day-toggle {
  margin: 0;
}

.schedule-add-btn,
.schedule-remove-btn {
  padding: 5px 10px;
  font-size: 12px;
}

.schedule-range-list {
  display: grid;
  gap: 6px;
}

.schedule-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.schedule-range-row input[type="time"] {
  min-width: 0;
}

.schedule-range-sep {
  color: var(--muted);
  font-size: 12px;
}

.timeoff-list {
  display: grid;
  gap: 8px;
}

.timeoff-row {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.timeoff-row label {
  margin: 0;
}

.timeoff-remove-btn {
  padding: 5px 10px;
  font-size: 12px;
  align-self: end;
}

.catalog-editor-aside {
  display: grid;
  gap: 8px;
  align-content: start;
}

.catalog-editor-aside h3 {
  margin: 0;
}

.catalog-editor-aside-copy {
  display: grid;
  gap: 8px;
}

.catalog-editor-aside-block {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

.catalog-editor-aside-block h4 {
  margin: 0;
  font-size: 0.95rem;
}

.catalog-editor-aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="dashboard"],
body[data-page="bookings-list"],
body[data-page="booking-editor"],
body[data-page="catalog-list"],
body[data-page="catalog-editor"],
body[data-page="resource-list"],
body[data-page="resource-editor"],
body[data-page="tenants-list"],
body[data-page="services-links"],
body[data-page="preferences"] {
  padding: 16px 14px 44px;
}

.branding-page {
  gap: 14px;
}

.branding-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: start;
}

.branding-header-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}

.branding-header-copy .intro {
  max-width: 700px;
}

.branding-header-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.branding-progress {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.branding-progress span {
  color: var(--ink);
  font-weight: 700;
}

.branding-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.branding-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 12px;
  align-items: start;
}

.branding-main-column {
  display: grid;
  gap: 10px;
}

.branding-section-tabs {
  position: sticky;
  top: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: auto hidden;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.branding-index-link {
  flex: 0 0 auto;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.branding-index-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.4);
}

.branding-index-link.is-active {
  border-color: transparent;
  background: var(--brand);
  color: #f7f7ef;
  box-shadow: none;
}

.branding-editor {
  display: grid;
  gap: 12px;
}

.branding-panel {
  display: grid;
  gap: 12px;
  scroll-margin-top: 96px;
}

.branding-panel-head {
  display: grid;
  gap: 4px;
}

.branding-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.branding-panel-head .hint {
  margin: 0;
}

.branding-option-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

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

.branding-asset-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-soft);
}

.branding-asset-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.branding-asset-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.branding-asset-head .hint {
  margin: 0;
}

.branding-asset-banner {
  grid-column: 1 / -1;
}

.branding-panel-grid {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

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

.branding-url-mode-row {
  display: grid;
  gap: 6px;
}

.branding-radio-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.branding-radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.branding-radio-inline input {
  width: auto;
  margin: 0;
}

.branding-subdomain-input {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--input-bg);
  overflow: hidden;
}

.branding-subdomain-input input {
  border: 0;
  margin-top: 0;
  border-radius: 0;
}

.branding-subdomain-input span {
  align-self: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.branding-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.branding-choice-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--input-bg);
  min-height: 90px;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}

.branding-choice-card input {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  margin: 0;
}

.branding-choice-card span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.branding-choice-card input:checked + span {
  color: var(--brand);
}

.branding-choice-card.is-selected,
.branding-choice-card:has(input:checked) {
  border-color: rgba(var(--brand-rgb), 0.56);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.24) inset;
}

#pref-brand-gallery-urls {
  min-height: 112px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
}

.branding-preview-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.branding-preview-head {
  display: grid;
  gap: 4px;
}

.branding-preview-head h2,
.branding-preview-head .hint {
  margin: 0;
}

.branding-preview-canvas {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(21, 26, 30, 0.92), rgba(21, 26, 30, 0.94));
  --preview-brand: #050607;
  --preview-accent: #d7ff17;
  --preview-light-bg: #f7f7ef;
  --preview-light-text: #050607;
  --preview-dark-bg: #050607;
  --preview-dark-text: #f7f7ef;
  --preview-panel-bg: var(--preview-dark-bg);
  --preview-panel-ink: var(--preview-dark-text);
  --preview-heading-font: "Urbanist", sans-serif;
  --preview-body-font: "Manrope", sans-serif;
  --preview-radius: 16px;
}

.branding-support-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.branding-support-card h3,
.branding-support-card p {
  margin: 0;
}

.branding-support-card p {
  color: var(--muted);
  font-size: 13px;
}

.branding-support-card .btn {
  justify-self: start;
}

.branding-preview-url-row {
  border-bottom: 1px solid rgba(247, 247, 239, 0.08);
  padding: 10px 12px;
  background: rgba(5, 6, 7, 0.14);
  color: #d8dfdf;
  font-family: var(--font-mono);
  font-size: 11px;
}

.branding-preview-phone {
  padding: 16px 16px 20px;
}

.branding-preview-phone-status {
  color: rgba(247, 247, 239, 0.72);
  font-size: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.branding-preview-phone-body {
  border-radius: 20px;
  border: 1px solid rgba(247, 247, 239, 0.12);
  background: var(--preview-panel-bg);
  padding: 14px;
  color: var(--preview-panel-ink);
  display: grid;
  gap: 10px;
}

.branding-preview-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(247, 247, 239, 0.16);
  background: rgba(247, 247, 239, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.branding-preview-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branding-preview-logo-wrap span {
  font-size: 11px;
  color: currentColor;
  opacity: 0.72;
}

.branding-preview-phone-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-family: var(--preview-heading-font);
}

.branding-preview-phone-body p {
  margin: 0;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
  font-family: var(--preview-body-font);
}

.branding-preview-lines {
  display: grid;
  gap: 6px;
}

.branding-preview-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.24;
}

.branding-preview-lines span:nth-child(1) {
  width: 88%;
}

.branding-preview-lines span:nth-child(2) {
  width: 66%;
}

.branding-preview-lines span:nth-child(3) {
  width: 74%;
}

.branding-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.branding-preview-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.branding-preview-list li span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.branding-preview-list li em {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.24;
}

#branding-preview-button {
  border: 0;
  border-radius: var(--preview-radius);
  background: var(--preview-brand);
  color: #f7f7ef;
  height: 36px;
  font-family: var(--preview-body-font);
  font-weight: 700;
  letter-spacing: 0.01em;
}

html[data-ui-shape="sharp"] .branding-index-link,
html[data-ui-shape="sharp"] .branding-preview-canvas,
html[data-ui-shape="sharp"] .branding-preview-phone-body,
html[data-ui-shape="sharp"] #branding-preview-button,
html[data-ui-shape="sharp"] .branding-asset-card,
html[data-ui-shape="sharp"] .branding-choice-card,
html[data-ui-shape="sharp"] .branding-subdomain-input,
html[data-ui-shape="sharp"] .branding-support-card {
  border-radius: 4px !important;
}

@media (max-width: 1080px) {
  .workspace-template-grid,
  .workspace-template-summary-grid,
  .workspace-template-actions-grid {
    grid-template-columns: 1fr;
  }

  .grow-brand-grid,
  .grow-brand-lanes,
  .grow-brand-metric-grid {
    grid-template-columns: 1fr;
  }

  body.portal-nav-open {
    overflow: hidden;
  }

  .portal-mobile-topbar {
    grid-column: 1;
    position: sticky;
    top: 12px;
    z-index: 70;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .portal-mobile-menu-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    padding: 0;
  }

  .portal-mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .portal-mobile-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .portal-mobile-topbar-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .portal-mobile-topbar-actions .theme-toggle-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    padding: 0;
    justify-content: center;
  }

  .catalog-hero .hero-badges {
    display: none;
  }

  body.portal-nav-open .portal-mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.portal-nav-open .portal-mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  body.portal-nav-open .portal-mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .portal-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(5, 6, 7, 0.56);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.2s ease;
  }

  .portal-sidebar-close {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 0 -6px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--card-strong);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--card-shadow);
    position: relative;
  }

  .portal-sidebar-close span {
    display: block;
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
  }

  .portal-sidebar-close span:nth-child(1) {
    transform: rotate(45deg);
  }

  .portal-sidebar-close span:nth-child(2) {
    transform: rotate(-45deg);
  }

  body.portal-nav-open .portal-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-sidebar {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    width: min(340px, calc(100vw - 28px));
    z-index: 80;
    overflow: auto;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }

  body.portal-nav-open .portal-sidebar {
    display: grid;
    transform: translateX(0);
    pointer-events: auto;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .toolbar-action-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .bookings-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customers-stats-grid,
  .payments-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bookings-operations-grid,
  .customers-operations-grid,
  .payments-operations-grid {
    grid-template-columns: 1fr;
  }

  .resource-operations-grid {
    grid-template-columns: 1fr;
  }

  .pref-grid-head,
  .pref-row,
  .pref-flow-head,
  .pref-flow-row,
  .pref-panels-head,
  .pref-panel-row,
  .pref-vehicle-fields-head,
  .pref-vehicle-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-content-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-hero .hero-badges {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .catalog-editor-shell {
    grid-template-columns: 1fr;
  }

  .branding-header {
    grid-template-columns: 1fr;
  }

  .branding-header-meta {
    justify-items: start;
  }

  .branding-header-actions {
    justify-content: flex-start;
  }

  .branding-workbench {
    grid-template-columns: 1fr;
  }

  .settings-workspace-shell {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .settings-workspace-sidebar {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: auto;
    margin-right: 0;
    padding: 4px 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--card-border);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .settings-sidebar-head {
    display: none;
  }

  .settings-sidebar-group {
    display: contents;
  }

  .settings-sidebar-group-title {
    display: none;
  }

  .settings-sidebar-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .settings-sidebar-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--card-border);
    background: var(--card);
    white-space: nowrap;
  }

  .settings-sidebar-group,
  .settings-sidebar-nav,
  .settings-sidebar-link {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-shell,
  .catalog-toolbar-card,
  .catalog-editor-card {
    width: 100%;
  }

  .catalog-toolbar-grid,
  .toolbar-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar-action-grid .catalog-actions,
  .catalog-actions {
    justify-content: flex-start;
  }

  .catalog-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }

  .pref-subtabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .catalog-editor-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-editor-section .span-2,
  .catalog-editor-section .hint {
    grid-column: 1;
  }

  .branding-preview-rail {
    position: static;
  }

  .branding-section-tabs {
    flex-wrap: wrap;
  }

  .share-presets-toolbar,
  .share-preset-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .share-preset-actions {
    justify-content: flex-start;
  }

  .schedule-range-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .schedule-range-row .schedule-remove-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .timeoff-row .timeoff-remove-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .catalog-toolbar-grid,
  .catalog-stats-grid,
  .catalog-editor-section,
  .grow-brand-metric-grid,
  .branding-assets-grid,
  .branding-color-grid,
  .branding-choice-grid,
  .bookings-toolbar-grid,
  .tenants-toolbar-grid,
  .tenants-provision-grid,
  .tenants-domain-grid,
  .bookings-advanced-grid,
  .bookings-stats-grid,
  .customers-toolbar-grid,
  .customers-stats-grid,
  .payments-toolbar-grid,
  .payments-stats-grid,
  .resource-toolbar-grid,
  .pref-grid-head,
  .pref-row,
  .pref-flow-head,
  .pref-flow-row,
  .pref-panels-head,
  .pref-panel-row,
  .pref-vehicle-fields-head,
  .pref-vehicle-field-row {
    grid-template-columns: 1fr;
  }

  .catalog-actions {
    justify-content: flex-start;
  }

  .bookings-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bookings-pagination .hint {
    min-width: 0;
  }

  .bookings-record-card {
    grid-template-columns: 1fr;
  }

  .bookings-record-head,
  .bookings-record-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .customers-table {
    display: block;
    min-width: 0;
  }

  .customers-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .customers-table tbody {
    display: grid;
    gap: 10px;
  }

  .customers-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .customers-table tr.is-selected {
    border-color: rgba(var(--brand-rgb), 0.42);
    box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.16) inset;
  }

  .customers-table td {
    display: grid;
    grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border: 0;
  }

  .customers-table td:first-child {
    grid-template-columns: 1fr;
  }

  .customers-table td::before {
    color: var(--muted);
    content: "";
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .customers-table td:nth-child(1)::before {
    content: "Customer";
  }

  .customers-table td:nth-child(2)::before {
    content: "Phone";
  }

  .customers-table td:nth-child(3)::before {
    content: "Status";
  }

  .customers-table td:nth-child(4)::before {
    content: "Bookings";
  }

  .customers-table td:nth-child(5)::before {
    content: "Next";
  }

  .customers-table td:nth-child(6)::before {
    content: "Last";
  }

  .customers-table td:nth-child(7)::before {
    content: "Garage";
  }

  .payments-operations-grid,
  .payments-table {
    display: block;
    min-width: 0;
  }

  .payments-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .payments-table tbody {
    display: grid;
    gap: 10px;
  }

  .payments-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .payments-table td {
    display: grid;
    grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border: 0;
  }

  .payments-table td:first-child {
    grid-template-columns: 1fr;
  }

  .payments-table td::before {
    color: var(--muted);
    content: "";
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .payments-table td:nth-child(1)::before {
    content: "Booking";
  }

  .payments-table td:nth-child(2)::before {
    content: "Customer";
  }

  .payments-table td:nth-child(3)::before {
    content: "When";
  }

  .payments-table td:nth-child(4)::before {
    content: "Status";
  }

  .payments-table td:nth-child(5)::before {
    content: "Amount";
  }

  .payments-table td:nth-child(6)::before {
    content: "Type";
  }

  .catalog-category-item[data-depth="1"],
  .catalog-category-item[data-depth="2"],
  .catalog-category-item[data-depth="3"] {
    margin-left: 0;
  }

  .grow-brand-check-item {
    grid-template-columns: 1fr;
  }

  .catalog-service-card {
    grid-template-columns: 1fr;
  }

  .catalog-service-select {
    padding-top: 0;
  }

  .catalog-service-head {
    flex-direction: column;
  }

  .catalog-service-actions {
    justify-content: flex-start;
  }

  .service-size-pricing-row {
    grid-template-columns: 1fr;
  }
}

.branded-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.branded-app-main-card,
.branded-app-share-card,
.branded-app-preview-card {
  display: grid;
  gap: 18px;
}

.branded-app-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.branded-app-section-head h2,
.branded-app-section-head h3 {
  margin: 0;
}

.branded-app-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.branded-app-form-grid .span-2 {
  grid-column: 1 / -1;
}

.branded-app-icon-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.branded-app-icon-preview {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(var(--brand-rgb), 0.18), rgba(5, 6, 7, 0.12));
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.branded-app-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branded-app-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.branded-app-toggle-stack {
  display: grid;
  gap: 12px;
}

.branded-app-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.branded-app-toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.branded-app-toggle-copy {
  display: grid;
  gap: 4px;
}

.branded-app-toggle-copy strong {
  font-size: 0.98rem;
}

.branded-app-toggle-copy small {
  color: var(--muted);
}

.card-soft {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
}

.branded-app-note h3 {
  margin: 0 0 10px;
}

.branded-app-note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.branded-app-side-column {
  display: grid;
  gap: 18px;
}

.branded-app-url-stack {
  display: grid;
  gap: 14px;
}

.branded-app-preview-shell {
  --branded-app-preview-theme: #050607;
  --branded-app-preview-surface: #050607;
  min-height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(var(--brand-rgb), 0.18), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--branded-app-preview-theme) 88%, #050607), color-mix(in srgb, var(--branded-app-preview-theme) 74%, #050607));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.branded-app-preview-phone {
  width: min(100%, 280px);
  min-height: 460px;
  padding: 18px;
  border-radius: 34px;
  border: 1px solid rgba(247, 247, 239, 0.14);
  background: color-mix(in srgb, var(--branded-app-preview-surface) 92%, #f7f7ef);
  box-shadow: 0 30px 60px rgba(5, 6, 7, 0.34);
  display: grid;
  align-content: start;
  gap: 18px;
}

.branded-app-preview-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.branded-app-preview-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #050607;
  color: #f7f7ef;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
}

.branded-app-preview-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branded-app-preview-header strong,
.branded-app-preview-header small {
  display: block;
}

.branded-app-preview-header small,
.branded-app-preview-description {
  color: rgba(5, 6, 7, 0.68);
}

.branded-app-preview-description {
  margin: 0;
}

.branded-app-preview-mock-list {
  display: grid;
  gap: 12px;
}

.branded-app-preview-mock-list span {
  height: 12px;
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.12);
}

.branded-app-preview-mock-list span:nth-child(1) {
  width: 82%;
}

.branded-app-preview-mock-list span:nth-child(2) {
  width: 74%;
}

.branded-app-preview-mock-list span:nth-child(3) {
  width: 88%;
}

.branded-app-preview-mock-list span:nth-child(4) {
  width: 68%;
}

.branded-app-preview-cta {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .branded-app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .branded-app-form-grid,
  .branded-app-icon-editor {
    grid-template-columns: 1fr;
  }

  .branded-app-toggle-row,
  .branded-app-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* TwinScroll 2026 platform shell */
.portal-sidebar {
  border-right-color: var(--card-border);
}

.portal-brand {
  padding-top: 0;
}

.portal-brand::before {
  content: none;
}

.ts-platform-logo {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  object-fit: contain;
}

.portal-brand-title {
  letter-spacing: 0;
}

.portal-nav-link,
.settings-sidebar-link,
.portal-utility-link,
.portal-support-link,
.portal-upsell-card,
.catalog-tab-btn,
.catalog-stat-card,
.catalog-toolbar-card,
.catalog-table-card,
.catalog-categories-card,
.catalog-rail-card,
.bookings-record-card,
.workspace-template-main,
.workspace-template-rail,
.grow-brand-foundation-card,
.grow-brand-side-rail,
.grow-brand-lanes,
.grow-brand-rail-card,
.grow-brand-lane-card {
  border-radius: 8px;
}

.portal-nav-link.active,
.portal-nav-link.group-active,
.settings-sidebar-link.active,
.catalog-tab-btn.active,
.catalog-category-item.is-active,
.catalog-system-option.is-active {
  background: rgba(215, 255, 23, 0.14);
  box-shadow: 0 0 0 1px rgba(215, 255, 23, 0.24) inset;
}

.portal-nav-link.active,
.portal-nav-link.group-active,
.settings-sidebar-link.active,
.catalog-tab-btn.active {
  color: var(--ink);
}

.portal-upsell-card {
  background: rgba(215, 255, 23, 0.12);
  border-color: rgba(215, 255, 23, 0.28);
}

.portal-upsell-button,
.grow-brand-action-card:hover,
.catalog-service-card.is-selected,
.bookings-record-card:hover {
  border-color: rgba(215, 255, 23, 0.48);
}

.portal-content > .hero {
  padding-top: 16px;
}

.portal-content > .hero::before {
  content: none;
}

.portal-content .btn-primary,
.portal-content .badge,
.catalog-actions .btn-primary,
.inline-actions .btn-primary {
  background: #d7ff17;
  color: #050607;
  border-color: rgba(5, 6, 7, 0.12);
}

.catalog-hero .eyebrow,
.portal-content .eyebrow {
  color: #d7ff17 !important;
}

.catalog-hero {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(5, 6, 7, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--card);
}

html[data-theme="dark"] .catalog-hero {
  background:
    linear-gradient(90deg, rgba(247, 247, 239, 0.055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(247, 247, 239, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--card);
}
